
//<![CDATA[
	$(document).ready(function(){
	//make default home page.	
		
		//initialize lightbox plugin
		$(".lightbox").lightbox();
		
		$(".lightbox").click(function(){
			$("#caption").hide();
		});
	
		$("#a_facts, #film, #television, #stage, #info, #a_about, #a_gallery, #a_stage, #a_studio, #a_contact").click(function(){
			// Stop the link click from doing its normal thing
    		return false;
		});

		
		//hide all layers at startup (Doesn't work the CSS way)
		$("#facts, #contact").hide();	
		
		//add index background
		$("body").addClass("index");
		
		//add border around wrapper
		$("#wrapper").css("border","1px solid #999");
		//add main navigation
		$("#mainNav").show();
	
		
		//facts
		$("#a_facts").click(function(){
			$("#facts, #about, #gallery, #contact, #gallerybutton, #mainNav li ul, #gallery_stage, #gallery_studio").hide();
			//change body background
			$("body").removeClass();
			$("body").addClass("facts");

			//fade in content
			$("#facts").hide().fadeIn(300);
			$("#subNav").hide().fadeIn(300);
			$(".film").hide().fadeIn(300);
			//show subcontent, hide others
			$(".television, .stage, .info").hide();
			
			$("#film").click(function(){
			$("#facts").hide().fadeIn(300);
				$(".film").hide().fadeIn(300);
				$(".television, .stage, .info").hide();
			});
			
			$("#television").click(function(){
			$("#facts").hide().fadeIn(300);
				$(".television").hide().fadeIn(300)
				$(".film, .stage, .info").hide();
			;});
			
			$("#stage").click(function(){
			$("#facts").hide().fadeIn(300);
				$(".stage").hide().fadeIn(300);
				$(".television, .film, .info").hide();
			});
			
			$("#info").click(function(){
				$("#facts").hide().fadeIn(300);
				$(".info").hide().fadeIn(300);
				$(".television, .stage, .film").hide();
			});
		});
		
		//about
		$("#a_about").click(function(){
			$("#facts, #about, #gallery, #gallerybutton, #contact, #subNav, #mainNav li ul, #gallery_stage, #gallery_studio").hide();
			//change body background
			$("body").removeClass();
			$("body").addClass("about");

			//fade in content
			$("#about").hide().fadeIn(500);
		});
		
		//gallery
		$("#a_gallery").click(function(){
			$("#facts, #about, #gallery, #contact, #subNav, #gallery_stage, #gallery_studio").hide();
			//change body background
			$("body").removeClass();
			$("body").addClass("gallery");
					//fade in content
					$("#gallery").hide().fadeIn(300);
					$("#gallery_stage").hide().fadeIn(300);
					$("#gallery_studio").hide().fadeIn(300);
						
		});
		
		//contact
		$("#a_contact").click(function(){
			$("#facts, #about, #gallery, #contact, #subNav, #gallerybutton, #mainNav li ul, #gallery_stage, #gallery_studio").hide();
			//change body background
			$("body").removeClass();
			$("body").addClass("contact");
			
			//fade in content
			$("#contact").hide().fadeIn(300);
		});
	});
//]]>