/***************************/
//@Author: Adrian "yEnS" Mato Gondelle & Ivan Guardado Castro
//@website: www.yensdesign.com
//@email: yensamg@gmail.com
//@license: Feel free to use it, but keep this credits please!					
/***************************/

$(document).ready(function(){
	$(".menu > li").click(function(e){
		switch(e.target.id){
			case "news":
				//change status & style menu
				$("#news").addClass("active");
				$("#tutorials").removeClass("active");
				$("#links").removeClass("active");
				$("#fourth").removeClass("active");
				//display selected division, hide others
				$("div.news").fadeIn();
				$("div.tutorials").css("display", "none");
				$("div.links").css("display", "none");
				$("div.fourth").css("display", "none");
			break;
			case "tutorials":
				//change status & style menu
				$("#tutorials").addClass("active");
				$("#news").removeClass("active");
				$("#links").removeClass("active");
				$("#fourth").removeClass("active");
				//display selected division, hide others
				$("div.tutorials").fadeIn();
				$("div.news").css("display", "none");
				$("div.links").css("display", "none");
				$("div.fourth").css("display", "none");
			break;
			case "links":
				//change status & style menu
				$("#links").addClass("active");
				$("#news").removeClass("active");
				$("#tutorials").removeClass("active");
				$("#fourth").removeClass("active");
				//display selected division, hide others
				$("div.links").fadeIn();
				$("div.news").css("display", "none");
				$("div.tutorials").css("display", "none");
				$("div.fourth").css("display", "none");
			break;
			case "fourth":
				//change status & style menu
				$("#fourth").addClass("active");
				$("#news").removeClass("active");
				$("#tutorials").removeClass("active");
				$("#links").removeClass("active");
				//display selected division, hide others
				$("div.fourth").fadeIn();
				$("div.links").css("display", "none");
				$("div.news").css("display", "none");
				$("div.tutorials").css("display", "none");
			break;
		}
		//alert(e.target.id);
		return false;
	});
	
	$(".menu2 > li").click(function(e){
		switch(e.target.id){
			case "news2":
				//change status & style menu
				$("#news2").addClass("active");
				$("#tutorials2").removeClass("active");
				//display selected division, hide others
				$("div.news2").fadeIn();
				$("div.tutorials2").css("display", "none");
			break;
			case "tutorials2":
				//change status & style menu
				$("#tutorials2").addClass("active");
				$("#news2").removeClass("active");
				//display selected division, hide others
				$("div.tutorials2").fadeIn();
				$("div.news2").css("display", "none");
			break;
		}
		//alert(e.target.id);
		return false;
	});
	
		$(".menu3 > li").click(function(e){
		switch(e.target.id){
			case "news3":
				//change status & style menu
				$("#news3").addClass("active");
				$("#tutorials3").removeClass("active");
				$("#links3").removeClass("active");
				$("#fourth3").removeClass("active");
				//display selected division, hide others
				$("div.news3").fadeIn();
				$("div.tutorials3").css("display", "none");
				$("div.links3").css("display", "none");
				$("div.fourth3").css("display", "none");
			break;
			case "tutorials3":
				//change status & style menu
				$("#tutorials3").addClass("active");
				$("#news3").removeClass("active");
				$("#links3").removeClass("active");
				$("#fourth3").removeClass("active");
				//display selected division, hide others
				$("div.tutorials3").fadeIn();
				$("div.news3").css("display", "none");
				$("div.links3").css("display", "none");
				$("div.fourth3").css("display", "none");
			break;
			case "links3":
				//change status & style menu
				$("#links3").addClass("active");
				$("#news3").removeClass("active");
				$("#tutorials3").removeClass("active");
				$("#fourth3").removeClass("active");
				//display selected division, hide others
				$("div.links3").fadeIn();
				$("div.news3").css("display", "none");
				$("div.tutorials3").css("display", "none");
				$("div.fourth3").css("display", "none");
			break;
			case "fourth3":
				//change status & style menu
				$("#fourth3").addClass("active");
				$("#news3").removeClass("active");
				$("#tutorials3").removeClass("active");
				$("#links3").removeClass("active");
				//display selected division, hide others
				$("div.fourth3").fadeIn();
				$("div.links3").css("display", "none");
				$("div.news3").css("display", "none");
				$("div.tutorials3").css("display", "none");
			break;
		}
		//alert(e.target.id);
		return false;
	});
	
		$(".menu4 > li").click(function(e){
		switch(e.target.id){
			case "news4":
				//change status & style menu
				$("#news4").addClass("active");
				$("#tutorials4").removeClass("active");
				//display selected division, hide others
				$("div.news4").fadeIn();
				$("div.tutorials4").css("display", "none");
			break;
			case "tutorials4":
				//change status & style menu
				$("#tutorials4").addClass("active");
				$("#news4").removeClass("active");
				//display selected division, hide others
				$("div.tutorials4").fadeIn();
				$("div.news4").css("display", "none");
			break;
		}
		//alert(e.target.id);
		return false;
	});
	
	$(".menu5 > li").click(function(e){
		switch(e.target.id){
			case "news5":
				//change status & style menu
				$("#news5").addClass("active");
				$("#tutorials5").removeClass("active");
				$("#links5").removeClass("active");
				$("#fourth5").removeClass("active");
				//display selected division, hide others
				$("div.news5").fadeIn();
				$("div.tutorials5").css("display", "none");
				$("div.links5").css("display", "none");
				$("div.fourth5").css("display", "none");
			break;
			case "tutorials5":
				//change status & style menu
				$("#tutorials5").addClass("active");
				$("#news5").removeClass("active");
				$("#links5").removeClass("active");
				$("#fourth5").removeClass("active");
				//display selected division, hide others
				$("div.tutorials5").fadeIn();
				$("div.news5").css("display", "none");
				$("div.links5").css("display", "none");
				$("div.fourth5").css("display", "none");
			break;
			case "links5":
				//change status & style menu
				$("#links5").addClass("active");
				$("#news5").removeClass("active");
				$("#tutorials5").removeClass("active");
				$("#fourth5").removeClass("active");
				//display selected division, hide others
				$("div.links5").fadeIn();
				$("div.news5").css("display", "none");
				$("div.tutorials5").css("display", "none");
				$("div.fourth5").css("display", "none");
			break;
			case "fourth5":
				//change status & style menu
				$("#fourth5").addClass("active");
				$("#news5").removeClass("active");
				$("#tutorials5").removeClass("active");
				$("#links5").removeClass("active");
				//display selected division, hide others
				$("div.fourth5").fadeIn();
				$("div.links5").css("display", "none");
				$("div.news5").css("display", "none");
				$("div.tutorials5").css("display", "none");
			break;
		}
		//alert(e.target.id);
		return false;
	});
	
		$(".menu6 > li").click(function(e){
		switch(e.target.id){
			case "news6":
				//change status & style menu
				$("#news6").addClass("active");
				$("#tutorials6").removeClass("active");
				//display selected division, hide others
				$("div.news6").fadeIn();
				$("div.tutorials6").css("display", "none");
			break;
			case "tutorials6":
				//change status & style menu
				$("#tutorials6").addClass("active");
				$("#news6").removeClass("active");
				//display selected division, hide others
				$("div.tutorials6").fadeIn();
				$("div.news6").css("display", "none");
			break;
		}
		//alert(e.target.id);
		return false;
	});

	$(".menu7 > li").click(function(e){
		switch(e.target.id){
			case "news7":
				//change status & style menu
				$("#news7").addClass("active");
				$("#tutorials7").removeClass("active");
				$("#links7").removeClass("active");
				$("#fourth7").removeClass("active");
				//display selected division, hide others
				$("div.news7").fadeIn();
				$("div.tutorials7").css("display", "none");
				$("div.links7").css("display", "none");
				$("div.fourth7").css("display", "none");
			break;
			case "tutorials7":
				//change status & style menu
				$("#tutorials7").addClass("active");
				$("#news7").removeClass("active");
				$("#links7").removeClass("active");
				$("#fourth7").removeClass("active");
				//display selected division, hide others
				$("div.tutorials7").fadeIn();
				$("div.news7").css("display", "none");
				$("div.links7").css("display", "none");
				$("div.fourth7").css("display", "none");
			break;
			case "links7":
				//change status & style menu
				$("#links7").addClass("active");
				$("#news7").removeClass("active");
				$("#tutorials7").removeClass("active");
				$("#fourth7").removeClass("active");
				//display selected division, hide others
				$("div.links7").fadeIn();
				$("div.news7").css("display", "none");
				$("div.tutorials7").css("display", "none");
				$("div.fourth7").css("display", "none");
			break;
			case "fourth7":
				//change status & style menu
				$("#fourth7").addClass("active");
				$("#news7").removeClass("active");
				$("#tutorials7").removeClass("active");
				$("#links7").removeClass("active");
				//display selected division, hide others
				$("div.fourth7").fadeIn();
				$("div.links7").css("display", "none");
				$("div.news7").css("display", "none");
				$("div.tutorials7").css("display", "none");
			break;
		}
		//alert(e.target.id);
		return false;
	});
	
	$(".menu8 > li").click(function(e){
		switch(e.target.id){
			case "news8":
				//change status & style menu
				$("#news8").addClass("active");
				//display selected division, hide others
				$("div.news8").fadeIn();
			break;
		}
		//alert(e.target.id);
		return false;
	});
	
		$(".menu9 > li").click(function(e){
		switch(e.target.id){
			case "news9":
				//change status & style menu
				$("#news9").addClass("active");
				//display selected division, hide others
				$("div.news9").fadeIn();
				break;
		}
		//alert(e.target.id);
		return false;
	});


});