// CUFON FONT REPLACEMENT
Cufon.replace('.av-a', { fontFamily: 'avenir' });
Cufon.replace('.av-b', { fontFamily: 'avenir' });
Cufon.replace('.av-c', { fontFamily: 'avenir' });
Cufon.replace('.av-d', { fontFamily: 'avenir' });
Cufon.replace('.av-e, #home-pod h1, #home-pod p, .av-g, #home-pod li a, #content-header h1 a, #right-column h2, #contact h1, #contact h2, .wpcf7-mail-sent-ok, #right-column h3', { fontFamily: 'avenir' });

 Cufon.replace('#nav-box ul li', { fontFamily: 'avenir', 
	hover: {
		color: '#0d5e0b'
	}
 });
 
 
 Cufon.replace('.av-f', { fontFamily: 'avenir' });
 
 
 Cufon.replace(' #nav-blog li a, #header-nav li a', { fontFamily: 'avenir', 
	hover: {
		color: '#dfdbdb'
	}
 });
 
 
 Cufon.replace('.av-g', { fontFamily: 'avenir', 
	hover: {
		color: '#0d5e0b'
	}
 });
 
/*
 Cufon.replace('#subnav ul li', { fontFamily: 'avenir', 
	hover: {
		color: '#FFFFFF'
	}
 });
*/
	 

 Cufon.replace('#right-column h1', { fontFamily: 'avenir', 
	hover: {
		color: '#666666'
	}
 });	 


	 
 //FOOTER CODE
 $(document).ready(function(){
	$('#wrap-footer').hover(function(){
				$( '#footer', this).addClass('down');
				$(this).stop().animate({bottom:'0'},{queue:false,duration:160});
		}, function() {
			if (!$(this).hasClass("active")) {
				$(this).removeClass('down');
				$( '#footer', this).removeClass('down');
				$(this).stop().animate({bottom:'-50px'},{queue:false,duration:160});
			}
	});
});
	
	
	
	
	
//TABS IN BLOG SIDEBAR	
$(document).ready(function() {

	//Default Action
	$(".pod .tab_content").hide(); //Hide all content
	$(".pod ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".pod .tab_content:first").show(); //Show first tab content
	
	//On Click Event
	$(".pod ul.tabs li").click(function() {
		$(".pod ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});
	
	
	
	//Default Action
	$(".tab_content_2").hide(); //Hide all content
	$("ul.tabs_2 li:first").addClass("active").show(); //Activate first tab
	$(".tab_content_2:first").show(); //Show first tab content
	
	//On Click Event
	$("ul.tabs_2 li").click(function() {
		$("ul.tabs_2 li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content_2").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});
	
	
	
	//Default Action
	$("#contact-tab .tab_content").hide(); //Hide all content
	$("#contact-tab ul.tabs li:first").addClass("active").show(); //Activate first tab
	$("#contact-tab .tab_content:first").show(); //Show first tab content
	
	//On Click Event
	$("#contact-tab ul.tabs li").click(function() {
		$("#contact-tab ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$("#contact-tab .tab_content").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		//$(activeTab).fadeIn(); //Fade in the active content
		$(activeTab).show();
		return false;
	});
	
	
	

});


	 
	 
	 
