(function($){
	Cufon.replace('p.information', { hover: true });
	Cufon.replace('p.author', { hover: true });
	Cufon.replace('.quote h4', { hover: true });
	Cufon.replace('.album .blue-box h3', { hover: true });
	Cufon.replace('.about .content .info h3');
	Cufon.replace('.sidebar-box h3');
	
	$(document).ready (function(){
		
		//PNG FIX for IE6
		if($.browser.msie && $.browser.version.substr(0,1) == 6 ){
			DD_belatedPNG.fix(' h1#logo span, .contact .shell-b, .contact .shell-t, .shell, .shell-t, .shell-b, .contact .content .sidebox-b , .contact .content .sidebar-repeat, .contact .content .sidebox-t, .contact .content .intro .last span.border , .contact .content .intro .center span.border, .contact .content .intro .first span.border,  .album .blue-box .box-holder, .album .blue-box, .album .shell-b, .album .shell-t, .content .home-image span.border, #photo div.info div.bottom a, #photos.grid div.photo_container a.photo div.photo, .hr  ')
		}
	
		$(".tab_content").hide(); //Hide all content

		//Default Action

		$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	
		$(".tab_content:first").show(); //Show first tab content
	
		$("a.fancybox").fancybox({
			'overlayShow'	: true,
			'overlayColor'	: '#e7e8d7',
			'transitionIn'	: 'elastic',
			'transitionOut'	: 'elastic',
			'titlePosition'	: 'inside',
		});
	
		//On Click Event
	
		$("ul.tabs li").click(function() {
	
			$("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;
	
		});
		
	});
})(jQuery)
