$(document).ready(function() {
	
	$(".bonust h3:first").addClass("active");
	$(".bonust p:not(:first)").hide();

	$(".bonust h3").click(function(){
		$(this).next("p").slideToggle("slow")
		.siblings("p:visible").slideUp("slow");
		$(this).toggleClass("active");
		$(this).siblings("h3").removeClass("active");
	});

	$(".image-linksa").css("opacity","0");$(".image-linksa span").hover(function () {$(this).stop().animate({opacity: 1}, "normal");},function () {$(this).stop().animate({opacity: 0}, "slow");})
	
	//When page loads...
	$(".tab-t").hide(); //Hide all content
	$("ul.menyunder li:first").addClass("active").show(); //Activate first tab
	$(".tab-t:first").show(); //Show first tab content

	//On Click Event
	$("ul.menyunder li").click(function() {

		$("ul.menyunder li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab-t").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;
	});
	
	
});

