/***************************/
//@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!					
/***************************/
var tj = jQuery.noConflict();
tj(document).ready(function(){
	tj(".menu > li").click(function(e){
		switch(e.target.id){
			case "news":
				//change status & style menu
				tj("#news").addClass("active");
				tj("#opinion").removeClass("active");
				tj("#features").removeClass("active");
				//display selected division, hide others
				tj("div.news").fadeIn();
				tj("div.opinion").css("display", "none");
				tj("div.features").css("display", "none");
			break;
			case "opinion":
				//change status & style menu
				tj("#news").removeClass("active");
				tj("#opinion").addClass("active");
				tj("#features").removeClass("active");
				//display selected division, hide others
				tj("div.opinion").fadeIn();
				tj("div.news").css("display", "none");
				tj("div.features").css("display", "none");
			break;
			case "features":
				//change status & style menu
				tj("#news").removeClass("active");
				tj("#opinion").removeClass("active");
				tj("#features").addClass("active");
				//display selected division, hide others
				tj("div.features").fadeIn();
				tj("div.news").css("display", "none");
				tj("div.opinion").css("display", "none");
			break;
			case "pschool":
				//change status & style menu
				tj("#hschool").removeClass("active");
				tj("#gschool").removeClass("active");
				tj("#pschool").addClass("active");
				//display selected division, hide others
				tj("div.pschool").fadeIn();
				tj("div.hschool").css("display", "none");
				tj("div.gschool").css("display", "none");
			break;
			case "gschool":
				//change status & style menu
				tj("#hschool").removeClass("active");
				tj("#gschool").addClass("active");
				tj("#pschool").removeClass("active");
				//display selected division, hide others
				tj("div.gschool").fadeIn();
				tj("div.hschool").css("display", "none");
				tj("div.pschool").css("display", "none");
			break;
			case "hschool":
				//change status & style menu
				tj("#hschool").addClass("active");
				tj("#gschool").removeClass("active");
				tj("#pschool").removeClass("active");
				//display selected division, hide others
				tj("div.hschool").fadeIn();
				tj("div.gschool").css("display", "none");
				tj("div.pschool").css("display", "none");
			break;
		}
		//alert(e.target.id);
		return false;
	});
});
