$(document).ready(function() {

	//When page loads...
	$(".tab_content").css('height','0px'); //Hide all content
//	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
//	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li.tab").click(function() {
		$("#featcubes").css('margin-top','0px');
		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		
		var activeTab = $(this).find("a").attr("rel"); //Find the href attribute value to identify the active tab + content
		$(activeTab).animate({height:"40px"}, 300 ); //Fade in the active ID content
		$(activeTab).siblings().animate({height:"0px"}, 300 );
		return false;
	});
});

