﻿/***************************/
//@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 "studio":
				//change status & style menu
				$("#studio").addClass("active");
				$("#projects").removeClass("active");
				$("#press").removeClass("active");
				//display selected division, hide others
				$("div.studio").fadeIn([6000]);
				$("div.projects").css("display", "none");
				$("div.press").css("display", "none");
			break;
			case "projects":
				//change status & style menu
				$("#studio").removeClass("active");
				$("#projects").addClass("active");
				$("#press").removeClass("active");
				//display selected division, hide others
				$("div.projects").fadeIn([6000]);
				$("div.studio").css("display", "none");
				$("div.press").css("display", "none");
			break;
			case "press":
				//change status & style menu
				$("#studio").removeClass("active");
				$("#projects").removeClass("active");
				$("#press").addClass("active");
				//display selected division, hide others
				$("div.press").fadeIn([6000]);
				$("div.projects").css("display", "none");
				$("div.studio").css("display", "none");
			break;
		}
		//alert(e.target.id);
		return false;
	});
});


$(document).ready(function(){
	$("#content-close").click(function(e){
		//$("div#contentarea").fadeOut([6000]);
		$("div#contentarea").css("display", "none");
		$("div#contentspacer").fadeIn([6000]);
		$("div#contentspacer").css("display", "block");
	});
});

$(document).ready(function(){
	$("#contentopen").click(function(e){
		//$("div#contentspacer").fadeOut([6000]);
		$("div#contentspacer").css("display", "none");
		$("div#contentarea").fadeIn([6000]);
		$("div#contentarea").css("display", "block");
	});
});


