$(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	
	$(".tabs_wrap").each(function(i){
		$(this).find("ul.tabs li:first").addClass("active").show(); //Activate first tab
		$(this).find(".tab_content:first").show()
		}); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$(this).parent().find("li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(this).parents(".tabs_wrap").find(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});
	
	$("#heart-list span").hide()
	$("#heart-list a").hover(
		function() {
			$(this).find("span").stop(true, true).animate({opacity: "show", bottom: "20"}, "slow");}, 
		function() {
			$(this).find("span").animate({opacity: "hide", bottom: "-10"}, "fast");
	});
 	$("#heart-list a").click(function(){return false;})


});

