$(document).ready(function() {

	//When page loads...
	$(".editorial_block .products_block .tab_container .tab_content").hide(); //Hide all content
	$("#tabli:first-child").addClass("active").show(); //Activate first tab
	$(".editorial_block .products_block ul.tabs li").css("background-color","#d7e8f0"); 
	$(".editorial_block .products_block ul.tabs li:first").css("background-color","#ffffff"); 
	$(".editorial_block .products_block .tab_container .tab_content:first").show(); //Show first tab content

	//On Click Event
	$(".editorial_block .products_block ul.tabs li").click(function() {
		$(".editorial_block .products_block ul.tabs li").css({background:"#d7e8f0"}); 
		$(this).css({background: "#ffffff"}); 
			
		$("#tabli").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".editorial_block .products_block .tab_container .tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to
               
		$(activeTab).fadeIn(); //Fade in the active ID content
		
		return false;
	});
});
