/***************************/
//@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 "mission":
				//change status & style menu
				$("#mission").addClass("active");
				$("#about").removeClass("active");
				$("#bio").removeClass("active");
				$("#other").removeClass("active");
				//display selected division, hide others
				$("div.mission").fadeIn("slow");
				$("div.about").css("display", "none");
				$("div.bio").css("display", "none");
				$("div.other").css("display", "none");
			break;
			case "about":
				//change status & style menu
				$("#mission").removeClass("active");
				$("#about").addClass("active");
				$("#bio").removeClass("active");
				$("#other").removeClass("active");
				//display selected division, hide others
				$("div.about").fadeIn("slow");
				$("div.mission").css("display", "none");
				$("div.bio").css("display", "none");
				$("div.other").css("display", "none");
			break;
			case "bio":
				//change status & style menu
				$("#mission").removeClass("active");
				$("#about").removeClass("active");
				$("#bio").addClass("active");
				$("#other").removeClass("active");
				//display selected division, hide others
				$("div.other").css("display", "none");
				$("div.mission").css("display", "none");
				$("div.bio").fadeIn("slow");
				$("div.about").css("display", "none");
			break;
			case "other":
				//change status & style menu
				$("#mission").removeClass("active");
				$("#about").removeClass("active");
				$("#bio").removeClass("active");
				$("#other").addClass("active");
				//display selected division, hide others
				$("div.other").fadeIn("slow");
				$("div.mission").css("display", "none");
				$("div.bio").css("display", "none");
				$("div.about").css("display", "none");
			break;
		}
		//alert(e.target.id);
		return false;
	});
});
