// JavaScript Document

	$(window).load(function() {
		$('#prox13slideshow').orbit({
			animation: 'horizontal-push',                  // fade, horizontal-slide, vertical-slide, horizontal-push
			animationSpeed: 1000,                // how fast animtions are
			timer: true, 			 // true or false to have the timer
			advanceSpeed: 7000, 		 // if timer is enabled, time between transitions 
			pauseOnHover: false, 		 // if you hover pauses the slider
			startClockOnMouseOut: false, 	 // if clock should start on MouseOut
			startClockOnMouseOutAfter: 1000, 	 // how long after MouseOut should the timer start again
			directionalNav: true, 		 // manual advancing directional navs
			captions: false, 			 // do you want captions?
			captionAnimation: 'fade', 		 // fade, slideOpen, none
			captionAnimationSpeed: 600, 	 // if so how quickly should they animate in
			bullets: true,			 // true or false to activate the bullet navigation
			bulletThumbs: false,		 // thumbnails for the bullets
			bulletThumbLocation: '',		 // location from this file where thumbs will be
			afterSlideChange: function(){} 	 // empty function 
		});
		$('#projects_slideshow').orbit({
			animation: 'horizontal-push',                  // fade, horizontal-slide, vertical-slide, horizontal-push
			animationSpeed: 1000,                // how fast animtions are
			timer: true, 			 // true or false to have the timer
			advanceSpeed: 7000, 		 // if timer is enabled, time between transitions 
			pauseOnHover: true, 		 // if you hover pauses the slider
			startClockOnMouseOut: true, 	 // if clock should start on MouseOut
			startClockOnMouseOutAfter: 500, 	 // how long after MouseOut should the timer start again
			directionalNav: true, 		 // manual advancing directional navs
			captions: true, 			 // do you want captions?
			captionAnimation: 'slideOpen', 		 // fade, slideOpen, none
			captionAnimationSpeed: 800, 	 // if so how quickly should they animate in
			bullets: true,			 // true or false to activate the bullet navigation
			bulletThumbs: false,		 // thumbnails for the bullets
			bulletThumbLocation: '',		 // location from this file where thumbs will be
			afterSlideChange: function(){} 	 // empty function 
		});
		$('#about_page_slideshow').orbit({
			animation: 'horizontal-push',                  // fade, horizontal-slide, vertical-slide, horizontal-push
			animationSpeed: 1000,                // how fast animtions are
			timer: false, 			 // true or false to have the timer
			advanceSpeed: 7000, 		 // if timer is enabled, time between transitions 
			pauseOnHover: true, 		 // if you hover pauses the slider
			startClockOnMouseOut: false, 	 // if clock should start on MouseOut
			startClockOnMouseOutAfter: 500, 	 // how long after MouseOut should the timer start again
			directionalNav: true, 		 // manual advancing directional navs
			captions: false, 			 // do you want captions?
			captionAnimation: 'fade', 		 // fade, slideOpen, none
			captionAnimationSpeed: 800, 	 // if so how quickly should they animate in
			bullets: true,			 // true or false to activate the bullet navigation
			bulletThumbs: true,		 // thumbnails for the bullets
			bulletThumbLocation: 'slideshow/',		 // location from this file where thumbs will be
			afterSlideChange: function(){} 	 // empty function 
		});
	});	             

	$(document).ready(function()
	{			
		initTimer();				
	});
	function initTimer()
	{
		var t=setTimeout("init()",1000);
		init_hide();
	}					
	function init()
	{		
		page_prox13_load();
		slider_init();
		footer_login_delay();
		footer_nav_show_delay();		
	}	
			
	function init_hide()
	{
		prox13_page_hide_fast();
		projects_page_hide_fast();		
		follow_page_hide_fast();
		about_page_hide_fast();	
		members_page_hide_fast();
		slider_hide_fast();
		footer_login_hideFast();
		footer_icon_links_hideFast();
		footer_nav_hideFast();
	}
		
	function page_prox13_load()
	{			
		projects_page_hide();
		follow_page_hide();
		about_page_hide();
		members_page_hide();
		$("#slider").animate({left:455},600,'swing', page_prox13_load_delay());
		/*footer_icon_links_hide();*/			
	}	
	function page_prox13_load_delay()
	{
		var t=setTimeout("prox13_page_show()",700);
	}
	function page_projects_load()
	{	
		prox13_page_hide();
		follow_page_hide();
		about_page_hide();
		members_page_hide();
		$("#slider").animate({left:588},600,'swing', page_projects_load_delay());
		/*footer_icon_links_hide();*/			
	}
	function page_projects_load_delay()
	{
		var t=setTimeout("projects_page_show()",700);
	}
	function page_follow_load()
	{
		projects_page_hide();	
		prox13_page_hide();	
		about_page_hide();
		members_page_hide();
		$("#slider").animate({left:851},600,'swing', page_follow_load_delay());	
		/*footer_icon_links_hide();*/	
	}
	function page_follow_load_delay()
	{
		var t=setTimeout("follow_page_show()",700);
	}
	function page_about_load()
	{		
		prox13_page_hide();	
		projects_page_hide();
		follow_page_hide();		
		members_page_hide();
		$("#slider").animate({left:725},600,'swing', page_about_load_delay());	
		/*footer_icon_links_show_delay();*/	
	}
	function page_about_load_delay()
	{
		var t=setTimeout("about_page_show()",700);
	}
	function page_members_load()
	{
		prox13_page_hide();	
		projects_page_hide();
		follow_page_hide();
		about_page_hide();
		$("#slider").animate({left:985},600,'swing', page_members_load_delay());
		/*footer_icon_links_show_delay();*/		
	}
	function page_members_load_delay()
	{
		var t=setTimeout("members_page_show()",700);
	}
	
	function prox13_page_hide_fast()
	{
		$("div#prox13_page").fadeOut(10);
		$("div#prox13_footer_text").fadeOut(10);
		prox13_nav_light_off_fast();
	}
	function prox13_page_hide()
	{
		$("div#prox13_page").fadeOut(500);
		$("div#prox13_footer_text").fadeOut(500);
		prox13_nav_light_off();
	}
	function prox13_page_show()
	{		
		$("div#prox13_page").fadeIn(500);
		$("div#prox13_footer_text").fadeIn(500);
		prox13_nav_light_on();
	}
	
	function projects_page_hide_fast()
	{
		$("div#projects_page").fadeOut(10);
		$("div#projects_page_captions").fadeOut(10);		
		projects_nav_light_off_fast();
	}
	function projects_page_hide()
	{
		$("div#projects_page").fadeOut(500);
		$("div#projects_page_captions").fadeOut(500);
		projects_nav_light_off();
	}
	function projects_page_show()
	{		
		$("div#projects_page").fadeIn(500);
		$("div#projects_page_captions").fadeIn(500);
		projects_nav_light_on();
	}
	
	function follow_page_hide_fast()
	{
		$("div#follow_page").fadeOut(10);
		$("div#follow_page_content").fadeOut(10);
		$("div#prox13_footer_text").fadeOut(10);
		about_nav_light_off_fast();	
	}
	function follow_page_hide()
	{
		$("div#follow_page").fadeOut(500);
		$("div#follow_page_content").fadeOut(500);
		$("div#prox13_footer_text").fadeOut(500);
		about_nav_light_off();
	}
	function follow_page_show()
	{
		$("div#follow_page").fadeIn(500);
		$("div#follow_page_content").fadeIn(500);
		$("div#prox13_footer_text").fadeIn(500);
		about_nav_light_on();
	}
	
	function about_page_hide_fast()
	{
		$("div#about_page").fadeOut(10);
		/*$("div#about_page_content").fadeOut(10);*/
		$("div#prox13_footer_text").fadeOut(10);
		follow_nav_light_off_fast();
		about_init_delay()
	}
	function about_page_hide()
	{
		$("div#about_page").fadeOut(500);
		/*$("div#about_page_content").fadeOut(500);*/
		$("div#prox13_footer_text").fadeOut(500);
		follow_nav_light_off();
		about_init_delay()
	}
	function about_page_show()
	{
		$("div#about_page").fadeIn(500);
		/*$("div#about_page_content").fadeIn(500);*/
		$("div#prox13_footer_text").fadeIn(500);
		follow_nav_light_on();
		about_init();
	}
	
	function members_page_hide_fast()
	{
		$("div#members_page").fadeOut(10);
		$("div#members_page_content").fadeOut(10);	
		$("div#prox13_footer_text").fadeOut(10);
		members_nav_light_off_fast();
	}
	function members_page_hide()
	{
		$("div#members_page").fadeOut(500);
		$("div#members_page_content").fadeOut(500);
		$("div#prox13_footer_text").fadeOut(500);
		members_nav_light_off();
	}
	function members_page_show()
	{
		$("div#members_page").fadeIn(500);
		$("div#members_page_content").fadeIn(500);
		$("div#prox13_footer_text").fadeIn(500);
		members_nav_light_on();
		
	}
	
	function prox13_nav_light_off_fast()
	{
		$("#prox13_nav_light").fadeOut(10);
	}
	function prox13_nav_light_on()
	{
		$("#prox13_nav_light").fadeIn(400);
	}
	function prox13_nav_light_off()
	{
		$("#prox13_nav_light").fadeOut(600);
	}
	
	function projects_nav_light_off_fast()
	{
		$("#projects_nav_light").fadeOut(10);	
	}
	function projects_nav_light_on()
	{
		$("#projects_nav_light").fadeIn(400);
	}
	function projects_nav_light_off()
	{
		$("#projects_nav_light").fadeOut(600);
	}
	
	function follow_nav_light_off_fast()
	{
		$("#follow_nav_light").fadeOut(10);	
	}
	function follow_nav_light_on()
	{
		$("#follow_nav_light").fadeIn(400);
	}
	function follow_nav_light_off()
	{
		$("#follow_nav_light").fadeOut(600);
	}
	
	function about_nav_light_off_fast()
	{
		$("#about_nav_light").fadeOut(10);	
	}
	function about_nav_light_on()
	{
		$("#about_nav_light").fadeIn(400);
	}
	function about_nav_light_off()
	{
		$("#about_nav_light").fadeOut(600);
	}
	
	function members_nav_light_off_fast()
	{
		$("#members_nav_light").fadeOut(10);	
	}
	function members_nav_light_on()
	{
		$("#members_nav_light").fadeIn(400);
	}
	function members_nav_light_off()
	{
		$("#members_nav_light").fadeOut(600);
	}
	function slider_hide_fast()
	{
		$("#slider").fadeOut(10);
	}
	function slider_init()
	{
		slider_hide_fast();	
		$("#slider").fadeIn(100);
	}
	function footer_login_show()
	{
		$("#footer_login").fadeIn(500);	
	}
	function footer_login_hideFast()
	{
		$("#footer_login").fadeOut(10);	
	}
	function footer_login_hide()
	{
		$("#footer_login").fadeOut(500);
	}
	function footer_login_delay()
	{
		var t=setTimeout("footer_login_show()",700);
	}
	
	function footer_icon_links_show()
	{
		$("#footer_icon_links").fadeIn(500);
	}
	function footer_icon_links_hide()
	{
		$("#footer_icon_links").fadeOut(500);
	}
	function footer_icon_links_hideFast()
	{
		$("#footer_icon_links").fadeOut(10);
	}
	function footer_icon_links_show_delay()
	{
		var t=setTimeout("footer_icon_links_show()",700);
	}
	
	function footer_nav_show()
	{
		$("#footer_nav").fadeIn(500);	
	}
	function footer_nav_show_delay()
	{
		var t=setTimeout("footer_nav_show()",700);
	}
	function footer_nav_hideFast()
	{
		$("#footer_nav").fadeOut(10);
	}	
	
	/*about page function set*/
	
	function about_init_delay()
	{
		var t=setTimeout("about_init()",400);	
	}
	function about_init()
	{
		about_team_show();
		about_team_title_fadeIn();	
		about_mission_title_fadeOut();
		about_location_title_fadeOut();	
		
		about_slideshow_fadeIn();
		about_mission_fadeOut_fast();
		about_location_fadeOut_fast();
	}
	
	function about_team_show()
	{
		$("#about_page_nav_team_btn").show();	
		$("#about_page_nav_mission_btn").hide();
		$("#about_page_nav_location_btn").hide();
	}
	function about_mission_show()
	{
		$("#about_page_nav_team_btn").hide();	
		$("#about_page_nav_mission_btn").show();
		$("#about_page_nav_location_btn").hide();
	}
	function about_location_show()
	{
		$("#about_page_nav_team_btn").hide();	
		$("#about_page_nav_mission_btn").hide();
		$("#about_page_nav_location_btn").show();
	}
	
	function about_team_btn_click()
	{
		about_team_title_fadeIn();	
		about_mission_title_fadeOut();
		about_location_title_fadeOut();
		
		about_slideshow_fadeIn();
		about_mission_fadeOut();
		about_location_fadeOut();
	}
	function about_mission_btn_click()
	{
		about_team_title_fadeOut();	
		about_mission_title_fadeIn();
		about_location_title_fadeOut();
		
		about_slideshow_fadeOut();
		about_mission_fadeIn();
		about_location_fadeOut();
	}
	function about_location_btn_click()
	{
		about_team_title_fadeOut();	
		about_mission_title_fadeOut();
		about_location_title_fadeIn();
		
		about_slideshow_fadeOut();
		about_mission_fadeOut();
		about_location_fadeIn();
	}
	
	function about_team_title_fadeOut()
	{
		$("#about_page_nav_team_title").fadeOut(500);	
	}
	function about_team_title_fadeIn()
	{
		$("#about_page_nav_team_title").fadeIn(500);	
	}
	function about_mission_title_fadeOut()
	{
		$("#about_page_nav_mission_title").fadeOut(500);	
	}
	function about_mission_title_fadeIn()
	{
		$("#about_page_nav_mission_title").fadeIn(500);	
	}
	function about_location_title_fadeOut()
	{
		$("#about_page_nav_location_title").fadeOut(500);	
	}
	function about_location_title_fadeIn()
	{
		$("#about_page_nav_location_title").fadeIn(500);	
	}
	
	function about_slideshow_fadeOut()
	{
		$("#about_page_slideshow_holder").fadeOut(500);	
	}
	function about_slideshow_fadeIn()
	{
		$("#about_page_slideshow_holder").fadeIn(500);
	}
	
	function about_mission_fadeOut()
	{
		$("#about_page_mission").fadeOut(500);
	}
	function about_mission_fadeIn()
	{
		$("#about_page_mission").fadeIn(500);
	}
	function about_mission_fadeOut_fast()
	{
		$("#about_page_mission").fadeOut(10);
	}
	
	function about_location_fadeOut()
	{
		$("#about_page_location").fadeOut(500);
	}
	function about_location_fadeIn()
	{
		$("#about_page_location").fadeIn(500);
	}
	function about_location_fadeOut_fast()
	{
		$("#about_page_location").fadeOut(10);
	}
	

