$(document).ready(function(){
	$(".content").hide();
	$(".show_brand-thinking").show();
	$(".show_cultural-insight").show();
	$(".show_work").show();
	
	/*
	$("#nav li#nav_work a.header").click(function(){
	}
	$("#nav li#nav_brand-thinking a.header").click(function(){
	}
	$("#nav li#nav_cultural-insight a.header").click(function(){
	}
	*/

	$("#nav li#nav_work a.header").click(function(){	
		if(($(this).parent().attr("id"))!='nav_contact'){
			if($(this).is('.active')){
				$(this).toggleClass("active");
				$(this).parent().removeClass("on");
				//$("#nav li").toggleClass("on");
				$(this).next(".content").slideToggle();
				return false;
			}
			else{
				$(".content:visible").slideUp("fast");
				$("#nav li.header a.active").removeClass("active");
				$(this).toggleClass("active");
				$("#nav li").removeClass("on");
				$(this).parent().addClass("on");
				$(this).next(".content").slideToggle();
				return false;
			}
		}
	});
	$("#nav li#nav_brand-thinking a.header").click(function(){	
		if(($(this).parent().attr("id"))!='nav_contact'){
			if($(this).is('.active')){
				$(this).toggleClass("active");
				$(this).parent().removeClass("on");
				//$("#nav li").toggleClass("on");
				$(this).next(".content").slideToggle();
				return false;
			}
			else{
				$(".content:visible").slideUp("fast");
				$("#nav li.header a.active").removeClass("active");
				$(this).toggleClass("active");
				$("#nav li").removeClass("on");
				$(this).parent().addClass("on");
				$(this).next(".content").slideToggle();
				return false;
			}
		}
	});
	$("#nav li#nav_cultural-insight a.header").click(function(){	
		if(($(this).parent().attr("id"))!='nav_contact'){
			if($(this).is('.active')){
				$(this).toggleClass("active");
				$(this).parent().removeClass("on");
				//$("#nav li").toggleClass("on");
				$(this).next(".content").slideToggle();
				return false;
			}
			else{
				$(".content:visible").slideUp("fast");
				$("#nav li.header a.active").removeClass("active");
				$(this).toggleClass("active");
				$("#nav li").removeClass("on");
				$(this).parent().addClass("on");
				$(this).next(".content").slideToggle();
				return false;
			}
		}
	});
});