$(document).ready(function(){
	$("div .footer").hide('slow');
	$('#background_img').cycle({
		fx: 'fade',				// choose your transition type, ex: fade, scrollUp, shuffle, etc...
		height: '500px', 		// container height
		fit: 0,					// force slides to fit container
		containerResize: 0,		// resize container to fit largest slide
		pause:		   0,		// true to enable "pause on hover"
		timeout:	   7000,  	// milliseconds between slide transitions (0 to disable auto advance)
		speed:		   3000,  	// speed of the transition (any valid fx speed value)
		random:		   true,	// true for random, false for sequence (not applicable to shuffle fx)
		delay:		   -2000	// additional delay (in ms) for first transition (hint: can be negative)
	});
	$('#content_home').show('slow');

	
	$("a#home").click(function(){
		$(".content").hide('slow');
		$("div .footer").hide('slow');
		$("#content_home").show('slow');
	});
	
	$("a#projects").click(function(){
		$(".content").hide('slow');
		$(".footer").hide('slow');
		$("#content_projects").show('slow');
		$("#pm1").css("background","#EE5823");
				$(".projects_pages").hide('slow');
				$("#pr_1").show('slow');
				$("#content_home").show('slow');
				$(".projects_menu").css("background","#EEEEEE");
				$("#projects_foot").show('slow');
				$("#pm1").css("background","#EE5823");
						$('#gallery1').cycle({
							fx: 'fade',				// choose your transition type, ex: fade, scrollUp, shuffle, etc...
							height: '500px', 		// container height
							fit: 0,					// force slides to fit container
							containerResize: 0,		// resize container to fit largest slide
							pause:		   0		// true to enable "pause on hover"
						});
	});
	
			$("a#projects_menu_1").click(function(){	//PROJECT NUMBER 1 - RIVINGTON STREET
				$(".projects_pages").hide('slow');
				$("#pr_1").show('slow');
				$("#content_home").hide('slow');
				$(".projects_menu").css("background","#EEEEEE");
				$("#projects_foot").show('slow');
				$("#pm1").css("background","#EE5823");
						$('#gallery1').cycle({
							fx: 'fade',				// choose your transition type, ex: fade, scrollUp, shuffle, etc...
							height: '500px', 		// container height
							fit: 0,					// force slides to fit container
							containerResize: 0,		// resize container to fit largest slide
							pause:		   0,		// true to enable "pause on hover"
							next:   '#next', 
							prev:   '#prev',
							timeout:	   0, 		// milliseconds between slide transitions (0 to disable auto advance)
							speed:		   1000 	// speed of the transition (any valid fx speed value)
						});
			});
			$("a#projects_menu_2").click(function(){	//PROJECT NUMBER 2 - DEMO
				$(".projects_pages").hide('slow');
				$("#pr_2").show('slow');
				$("#content_home").hide('slow');
				$(".projects_menu").css("background","#EEEEEE");
				$("#projects_foot").show('slow');
				$("#pm2").css("background","#EE5823");
						$('#gallery2').cycle({
							fx: 'fade',				// choose your transition type, ex: fade, scrollUp, shuffle, etc...
							height: '500px', 		// container height
							fit: 0,					// force slides to fit container
							containerResize: 0,		// resize container to fit largest slide
							pause:		   0,		// true to enable "pause on hover"
							next:   '#next', 
							prev:   '#prev',
							timeout:	   0, 		// milliseconds between slide transitions (0 to disable auto advance)
							speed:		   1000 	// speed of the transition (any valid fx speed value)
						});
			});
			$("a#projects_menu_3").click(function(){	//PROJECT NUMBER 3 - ZOOM DEMO
				$(".projects_pages").hide('slow');
				$("#pr_3").show('slow');
				$("#content_home").hide('slow');
				$(".projects_menu").css("background","#EEEEEE");
				$("#projects_foot").show('slow');
				$("#pm3").css("background","#EE5823");
						$('#gallery3').cycle({
							fx: 'fade',		// choose your transition type, ex: fade, scrollUp, shuffle, etc...
							height: '500px', 		// container height
							fit: 0,					// force slides to fit container
							containerResize: 0,		// resize container to fit largest slide
							pause:		   0,		// true to enable "pause on hover"
							next:   '#next', 
							prev:   '#prev',
							timeout:	   0, 		// milliseconds between slide transitions (0 to disable auto advance)
							speed:		   1000 	// speed of the transition (any valid fx speed value)
						});
			});
			$("a#projects_menu_4").click(function(){
				$(".projects_pages").hide('slow');
				$("#pr_4").show('slow');
				$("#content_home").hide('slow');
				$(".projects_menu").css("background","#EEEEEE");
				$("#projects_foot").show('slow');
				$("#pm4").css("background","#EE5823");
						$('#gallery4').cycle({
							fx: 'fade',		// choose your transition type, ex: fade, scrollUp, shuffle, etc...
							height: '500px', 		// container height
							fit: 0,					// force slides to fit container
							containerResize: 0,		// resize container to fit largest slide
							pause:		   0,		// true to enable "pause on hover"
							next:   '#next', 
							prev:   '#prev',
							timeout:	   0, 		// milliseconds between slide transitions (0 to disable auto advance)
							speed:		   1000 	// speed of the transition (any valid fx speed value)						
						});
			});
			$("a#projects_menu_5").click(function(){
				$(".projects_pages").hide('slow');
				$("#pr_5").show('slow');
				$("#content_home").hide('slow');
				$(".projects_menu").css("background","#EEEEEE");
				$("#projects_foot").show('slow');
				$("#pm5").css("background","#EE5823");
						$('#gallery5').cycle({
							fx: 'fade',		// choose your transition type, ex: fade, scrollUp, shuffle, etc...
							height: '500px', 		// container height
							fit: 0,					// force slides to fit container
							containerResize: 0,		// resize container to fit largest slide
							pause:		   0,		// true to enable "pause on hover"
							next:   '#next', 
							prev:   '#prev',
							timeout:	   0, 		// milliseconds between slide transitions (0 to disable auto advance)
							speed:		   1000 	// speed of the transition (any valid fx speed value)						
						});
			});
			$("a#projects_menu_6").click(function(){
				$(".projects_pages").hide('slow');
				$("#pr_6").show('slow');
				$("#content_home").hide('slow');
				$(".projects_menu").css("background","#EEEEEE");
				$("#projects_foot").show('slow');
				$("#pm6").css("background","#EE5823");
						$('#gallery6').cycle({
							fx: 'fade',		// choose your transition type, ex: fade, scrollUp, shuffle, etc...
							height: '500px', 		// container height
							fit: 0,					// force slides to fit container
							containerResize: 0,		// resize container to fit largest slide
							pause:		   0,		// true to enable "pause on hover"
							next:   '#next', 
							prev:   '#prev',
							timeout:	   0, 		// milliseconds between slide transitions (0 to disable auto advance)
							speed:		   1000 	// speed of the transition (any valid fx speed value)						
						});
			});
			$("a#projects_menu_7").click(function(){
				$(".projects_pages").hide('slow');
				$("#pr_7").show('slow');
				$("#content_home").hide('slow');
				$(".projects_menu").css("background","#EEEEEE");
				$("#projects_foot").show('slow');
				$("#pm7").css("background","#EE5823");
						$('#gallery7').cycle({
							fx: 'fade',		// choose your transition type, ex: fade, scrollUp, shuffle, etc...
							height: '500px', 		// container height
							fit: 0,					// force slides to fit container
							containerResize: 0,		// resize container to fit largest slide
							pause:		   0,		// true to enable "pause on hover"
							next:   '#next', 
							prev:   '#prev',
							timeout:	   0, 		// milliseconds between slide transitions (0 to disable auto advance)
							speed:		   1000 	// speed of the transition (any valid fx speed value)						
						});
			});
			$("a#projects_menu_8").click(function(){
				$(".projects_pages").hide('slow');
				$("#pr_8").show('slow');
				$("#content_home").hide('slow');
				$(".projects_menu").css("background","#EEEEEE");
				$("#projects_foot").show('slow');
				$("#pm8").css("background","#EE5823");
						$('#gallery8').cycle({
							fx: 'fade',		// choose your transition type, ex: fade, scrollUp, shuffle, etc...
							height: '500px', 		// container height
							fit: 0,					// force slides to fit container
							containerResize: 0,		// resize container to fit largest slide
							pause:		   0,		// true to enable "pause on hover"
							next:   '#next', 
							prev:   '#prev',
							timeout:	   0, 		// milliseconds between slide transitions (0 to disable auto advance)
							speed:		   1000 	// speed of the transition (any valid fx speed value)						
						});
			});	
			$("a#projects_menu_9").click(function(){
				$(".projects_pages").hide('slow');
				$("#pr_9").show('slow');
				$("#content_home").hide('slow');
				$(".projects_menu").css("background","#EEEEEE");
				$("#projects_foot").show('slow');
				$("#pm9").css("background","#EE5823");
						$('#gallery9').cycle({
							fx: 'fade',		// choose your transition type, ex: fade, scrollUp, shuffle, etc...
							height: '500px', 		// container height
							fit: 0,					// force slides to fit container
							containerResize: 0,		// resize container to fit largest slide
							pause:		   0,		// true to enable "pause on hover"
							next:   '#next', 
							prev:   '#prev',
							timeout:	   0, 		// milliseconds between slide transitions (0 to disable auto advance)
							speed:		   1000 	// speed of the transition (any valid fx speed value)						
						});
			});	
			$("a#projects_menu_10").click(function(){
				$(".projects_pages").hide('slow');
				$("#pr_10").show('slow');
				$("#content_home").hide('slow');
				$(".projects_menu").css("background","#EEEEEE");
				$("#projects_foot").show('slow');
				$("#pm10").css("background","#EE5823");
						$('#gallery10').cycle({
							fx: 'fade',		// choose your transition type, ex: fade, scrollUp, shuffle, etc...
							height: '500px', 		// container height
							fit: 0,					// force slides to fit container
							containerResize: 0,		// resize container to fit largest slide
							pause:		   0,		// true to enable "pause on hover"
							next:   '#next', 
							prev:   '#prev',
							timeout:	   0, 		// milliseconds between slide transitions (0 to disable auto advance)
							speed:		   1000 	// speed of the transition (any valid fx speed value)						
						});
			});	
			
	$("a#currentwork").click(function(){
		$(".content").hide('slow');
		$(".footer").hide('slow');
		$("#projects_foot").show('slow');
		$("#content_currentwork").show('slow');
		$("#curr_proj").show('slow');
						$('#gallerycurrent').cycle({
							fx: 'fade',				// choose your transition type, ex: fade, scrollUp, shuffle, etc...
							height: '500px', 		// container height
							fit: 0,					// force slides to fit container
							containerResize: 0,		// resize container to fit largest slide
							pause:		   0,		// true to enable "pause on hover"
							next:   '#next', 
							prev:   '#prev',
							timeout:	   0, 		// milliseconds between slide transitions (0 to disable auto advance)
							speed:		   1000 	// speed of the transition (any valid fx speed value)						
						});
	});
	

	$("a#office").click(function(){
		$(".content").hide('slow');
		$(".footer").hide('slow');
		$("#content_home").show('slow'); 
		$("#content_office").show('slow');
		$(".office_menu").css("background","#EEEEEE");
			$(".office_pages").hide('slow');
			$("#office_about").show('slow');
			$(".office_menu").css("background","#EEEEEE");
			$("#om1").css("background","#EE5823");
	});
			$("a#office_menu_about").click(function(){
				$(".office_pages").hide('slow');
				$("#office_about").show('slow');
				$(".office_menu").css("background","#EEEEEE");
				$("#om1").css("background","#EE5823");
			});
			$("a#office_menu_people").click(function(){
				$(".office_pages").hide('slow');
				$("#office_people").show('slow');
				$(".office_menu").css("background","#EEEEEE");
				$("#om2").css("background","#EE5823");
			});
			$("a#office_menu_press").click(function(){
				$(".office_pages").hide('slow');
				$("#office_press").show('slow');
				$(".office_menu").css("background","#EEEEEE");
				$("#om3").css("background","#EE5823");
			});

	$("a#contact").click(function(){
		$(".content").hide('slow');
		$(".footer").hide('slow');
		$("#content_home").show('slow'); 
		$("#content_contact").show('slow');
	});
});
	$(function() {
        $('#lofts a').lightBox();
        $('#eightovereight a').lightBox();
        $('#lothbury a').lightBox();
    });
