$(document).ready(function(){
	// Testimonials carousel
	$(".testimonials").jCarouselLite({
		vertical:true,									 
		visible: 1,  
		auto:4000,  
		speed:1000,
		scroll:1,
		easing:'swing',
       	btnNext: ".next2",
       	btnPrev: ".prev2"
    });	


	$(document).ready(function() {
	
		//When page loads...
		$(".tab_content").hide(); //Hide all content
		$(".tabs li:first").addClass("active").show(); //Activate first tab
		$(".tab_content:first").show(); //Show first tab content
	
		//On Click Event
		$(".tabs li").click(function() {
	
			$(".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 href attribute value to identify the active tab + content
			$(activeTab).show(); //Fade in the active ID content
			return false;
		});
	
	});

	$('h5').hover(function(){
		$(this).find("div").show();
		}, function(){
		$(this).find("div").hide();
	});

	$('h4').click(function(){    
//		$(this).find("div").slideToggle("slow");
		$(this).next('div').slideToggle("fast");

		return false;
//		$(this).toggleClass("active");
//		$(this).hasClass("active").removeClass("active");
	});       

return false;
});

function goToByScroll(id){
	$('html,body').animate({scrollTop: $("#friends").offset().top},'slow');
}

