$(document).ready(function() {

	$("#navcontent2").hide();
	$("#navcontent3").hide();
	$("#navcontent4").hide();
	$("#navcontent5").hide();
	$("#navcontent6").hide();

	$("#tab1").click(function() {  
		$("#tab1").addClass("active");
		$("#tab2").removeClass("active");
		$("#tab3").removeClass("active");
		$("#tab4").removeClass("active");
		$("#tab5").removeClass("active");
		$("#tab6").removeClass("active");
		
		$("#navcontent2").fadeOut("slow");
		$("#navcontent3").fadeOut("slow");
		$("#navcontent4").fadeOut("slow");
		$("#navcontent5").fadeOut("slow");
		$("#navcontent6").fadeOut("slow");
		$("#navcontent1").fadeIn("slow");
	});
	$("#tab2").click(function() {  
		$("#tab1").removeClass("active");
		$("#tab2").addClass("active");
		$("#tab3").removeClass("active");
		$("#tab4").removeClass("active");
		$("#tab5").removeClass("active");
		$("#tab6").removeClass("active");		
		
		$("#navcontent1").fadeOut("slow");
		$("#navcontent3").fadeOut("slow");
		$("#navcontent4").fadeOut("slow");
		$("#navcontent5").fadeOut("slow");
		$("#navcontent6").fadeOut("slow");
		$("#navcontent2").fadeIn("slow");
	});	
	$("#tab3").click(function() {  
		$("#tab1").removeClass("active");
		$("#tab2").removeClass("active");
		$("#tab3").addClass("active");
		$("#tab4").removeClass("active");
		$("#tab5").removeClass("active");
		$("#tab6").removeClass("active");
		
		$("#navcontent1").fadeOut("slow");
		$("#navcontent2").fadeOut("slow");
		$("#navcontent4").fadeOut("slow");
		$("#navcontent5").fadeOut("slow");
		$("#navcontent6").fadeOut("slow");
		$("#navcontent3").fadeIn("slow");
	});		
	$("#tab4").click(function() {  
		$("#tab1").removeClass("active");
		$("#tab2").removeClass("active");
		$("#tab3").removeClass("active");
		$("#tab4").addClass("active");
		$("#tab5").removeClass("active");
		$("#tab6").removeClass("active");
		
		$("#navcontent1").fadeOut("slow");
		$("#navcontent2").fadeOut("slow");
		$("#navcontent3").fadeOut("slow");
		$("#navcontent5").fadeOut("slow");
		$("#navcontent6").fadeOut("slow");
		$("#navcontent4").fadeIn("slow");
	});	
	$("#tab5").click(function() {  
		$("#tab1").removeClass("active");
		$("#tab2").removeClass("active");
		$("#tab3").removeClass("active");
		$("#tab4").removeClass("active");
		$("#tab6").removeClass("active");
		$("#tab5").addClass("active");
		
		$("#navcontent1").fadeOut("slow");
		$("#navcontent2").fadeOut("slow");
		$("#navcontent3").fadeOut("slow");
		$("#navcontent4").fadeOut("slow");
		$("#navcontent6").fadeOut("slow");
		$("#navcontent5").fadeIn("slow");
	});	
	$("#tab6").click(function() {  
		$("#tab1").removeClass("active");
		$("#tab2").removeClass("active");
		$("#tab3").removeClass("active");
		$("#tab4").removeClass("active");
		$("#tab5").removeClass("active");
		$("#tab6").addClass("active");
		
		$("#navcontent1").fadeOut("slow");
		$("#navcontent2").fadeOut("slow");
		$("#navcontent3").fadeOut("slow");
		$("#navcontent4").fadeOut("slow");
		$("#navcontent5").fadeOut("slow");
		$("#navcontent6").fadeIn("slow");
	});		
});
