 $(document).ready(function(){
	// MAIN TABS
	//When page loads...
	$(".main-tab-content").hide(); //Hide all content
	$(".main-tab-content:first").show(); //Show first tab content
	$(".main-tabs:first").addClass("active").show(); //Activate first tab
	//Nav Tabs
	$(".main-tabs").click(function() {
		$(".main-tabs").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".main-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;
	});
	
	// MENU TAB
	//When page loads...
	$(".tab-menu .tab-content").hide(); //Hide all content
	$(".tab-menu .tab-content:first").show(); //Show first tab content
	$(".tab-menu .tabs li:first").addClass("active").show(); //Activate first tab
	// Menu Tabs
	$(".tab-menu .tabs li").click(function() {
		$(".tab-menu .tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab-menu .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
		if(activeTab == '#all'){ //show all
				$(".tab-menu .tab-content").each(function(index) {
					$(this).fadeIn();
				});
			}else{
				$(activeTab).fadeIn(); //Fade in the active ID content
			}
		return false;
	});
	
	// CAROUSEL
    $(".mini-gallery").jCarouselLite({
		auto: 4000,
    	speed: 1000
    }); 
	
 });

