$(document).ready(function(){
	$isIE6 = false;
	if ($.browser.msie && $.browser.version.substr(0,1)<7) {
		$isIE6 = true;
	}
	
	$('body').removeClass('noJS');
	
	
	
	var $scrollerWindow = $('#content');
	var $speed = 1500;
	
	function gotoHome()
	{
		$scrollerWindow.stop().scrollTo( $('#home'), $speed, {axis:'x',offset:{left: -20, top:0 }} );
		$('h1').stop().animate({backgroundPosition: '(0px 0px)'}, $speed );
		$('#title2').stop().animate({backgroundPosition: '(20px 0px)'}, $speed+300 );
		$('#title3').stop().animate({backgroundPosition: '(20px 0px)'}, $speed+600 );
		$('h1').text('');
		_gaq.push(['_trackEvent', 'Nav', 'Home']);
		return false;
	}
	
	function gotoThestory()
	{
		$scrollerWindow.stop().scrollTo( $('#thestory'), $speed, {axis:'x',offset:{left: -20, top:0 }} );$('h1').stop().animate({backgroundPosition: '(-980px 0px)'}, $speed );
		$('h1').stop().animate({backgroundPosition: '(-887px 0px)'}, $speed );
		$('#title2').stop().animate({backgroundPosition: '(-1160px 0px)'}, $speed+300 );
		$('#title3').stop().animate({backgroundPosition: '(-1360px 0px)'}, $speed+600 );
		$('h1').text('');$('.webDetail:visible').fadeOut('normal',function()
		{
			$('#webMain').fadeIn();
		});
		_gaq.push(['_trackEvent', 'Nav', 'Thestory']);
		return false;
	}
	
	function gotoThefilm()
	{
		$scrollerWindow.stop().scrollTo( $('#thefilm'), $speed, {axis:'x',offset:{left: -20, top:0 }} );
		$('h1').stop().animate({backgroundPosition: '(-1805px 0px)'}, $speed );
		$('#title2').stop().animate({backgroundPosition: '(-2340px 0px)'}, $speed+300 );
		$('#title3').stop().animate({backgroundPosition: '(-2740px 0px)'}, $speed+600 );
		$('h1').text('');
		_gaq.push(['_trackEvent', 'Nav', 'Thefilm']);
		return false;
	}
	
		function gotoThesetting()
	{
		$scrollerWindow.stop().scrollTo( $('#thesetting'), $speed, {axis:'x',offset:{left: -20, top:0 }} );
		$('h1').stop().animate({backgroundPosition: '(-2790px 0px)'}, $speed );
		$('#title2').stop().animate({backgroundPosition: '(-3520px 0px)'}, $speed+300 );
		$('#title3').stop().animate({backgroundPosition: '(-3960px 0px)'}, $speed+600 );
		$('h1').text('');
		_gaq.push(['_trackEvent', 'Nav', 'Thesetting']);
		return false;
	}
	
		function gotoMedia()
	{
		$scrollerWindow.stop().scrollTo( $('#media'), $speed, {axis:'x',offset:{left: -20, top:0 }} );
		$('h1').stop().animate({backgroundPosition: '(-3538px 0px)'}, $speed );
		$('#title2').stop().animate({backgroundPosition: '(-4740px 0px)'}, $speed+300 );
		$('#title3').stop().animate({backgroundPosition: '(-5120px 0px)'}, $speed+600 );
		$('h1').text('');
		_gaq.push(['_trackEvent', 'Nav', 'Media']);
		return false;
	}
	
			function gotoLinks()
	{
		$scrollerWindow.stop().scrollTo( $('#links'), $speed, {axis:'x',offset:{left: -20, top:0 }} );
		$('h1').stop().animate({backgroundPosition: '(-4525px 0px)'}, $speed );
		$('#title2').stop().animate({backgroundPosition: '(-5960px 0px)'}, $speed+300 );
		$('#title3').stop().animate({backgroundPosition: '(-6280px 0px)'}, $speed+600 );
		$('h1').text('');
		_gaq.push(['_trackEvent', 'Nav', 'Links']);
		return false;
	}
	
			function gotoContact()
	{
		$scrollerWindow.stop().scrollTo( $('#contact'), $speed, {axis:'x',offset:{left: -20, top:0 }} );
		$('h1').stop().animate({backgroundPosition: '(-5530px 0px)'}, $speed );
		$('#title2').stop().animate({backgroundPosition: '(-7000px 0px)'}, $speed+300 );
		$('#title3').stop().animate({backgroundPosition: '(-7000px 0px)'}, $speed+600 );
		$('h1').text('');
		_gaq.push(['_trackEvent', 'Nav', 'Contact']);
		return false;
	}
	
	function noScroll()
	{
		return false;
	}
	
	$('.goto_home').live("click", gotoHome);
	$('.goto_thefilm').live("click", gotoThefilm);
	$('.goto_thestory').live("click", gotoThestory);
	$('.goto_media').live("click", gotoMedia);
	$('.goto_links').live("click", gotoLinks);
	$('.goto_contact').live("click", gotoContact);
	$('.goto_thesetting').live("click", gotoThesetting);
	$('.noScroll').live("click", noScroll);
	


	
	{
	$('#synopsisLink').click(function()
	{
			$('.storyDetail:visible').fadeOut('normal',function()
		{
			$('#storyMain').fadeIn();
		});	
		
	}
	);
	
	
	$('#ryanLink').click(function()
	{
			$('.storyDetail:visible').fadeOut('normal',function()
		{
			$('#ryan').fadeIn();
		});	
		
		$('#storyMain').fadeOut('normal',function()
		{
			$('#ryan').fadeIn();
		});	
		
		
	
	}
	);
	
	$('#timLink').click(function()
	{
		
			$('.storyDetail:visible').fadeOut('normal',function()
		{
			$('#tim').fadeIn();
		});	
		
		$('#storyMain').fadeOut('normal',function()
		{
			$('#tim').fadeIn();
		});		
		
	}
	);
	
$('#louisLink').click(function()
	{
		
			$('.storyDetail:visible').fadeOut('normal',function()
		{
			$('#louis').fadeIn();
		});	
		
		$('#storyMain').fadeOut('normal',function()
		{
			$('#louis').fadeIn();
		});	
		
		
	
			}
	);
	
	
	
	$('#aboutLink').click(function()
	{
			$('.filmDetail:visible').fadeOut('normal',function()
		{
			$('#filmMain').fadeIn();
		});	
		
	}
	);
	
	
	$('#deanLink').click(function()
	{
			$('.filmDetail:visible').fadeOut('normal',function()
		{
			$('#dean').fadeIn();
		});	
		
		$('#filmMain').fadeOut('normal',function()
		{
			$('#dean').fadeIn();
		});	
		
		
	
	}
	);
	
	$('#gregLink').click(function()
	{
		
			$('.filmDetail:visible').fadeOut('normal',function()
		{
			$('#greg').fadeIn();
		});	
		
		$('#filmMain').fadeOut('normal',function()
		{
			$('#greg').fadeIn();
		});		
		
	}
	);
	
$('#taaLink').click(function()
	{
		
			$('.filmDetail:visible').fadeOut('normal',function()
		{
			$('#taa').fadeIn();
		});	
		
		$('#filmMain').fadeOut('normal',function()
		{
			$('#taa').fadeIn();
		});	
		
		
	
			}
	);

$('#chinaLink').click(function()
	{
		$('#mapMain').fadeOut('normal',function()
		{
			$('#china').fadeIn();
		});		
		_gaq.push(['_trackEvent', 'WebThumbs', 'China']);
		return false;
	}
	);
	
	$('#southafricaLink').click(function()
	{
		$('#mapMain').fadeOut('normal',function()
		{
			$('#southafrica').fadeIn();
		});		
		_gaq.push(['_trackEvent', 'WebThumbs', 'SouthAfrica']);
		return false;
	}
	);
	
	$('#australiaLink').click(function()
	{
		$('#mapMain').fadeOut('normal',function()
		{
			$('#australia').fadeIn();
		});		
		_gaq.push(['_trackEvent', 'WebThumbs', 'Aus']);
		return false;
	}
	);
	
	$('#franceLink').click(function()
	{
		$('#mapMain').fadeOut('normal',function()
		{
			$('#france').fadeIn();
		});		
		_gaq.push(['_trackEvent', 'WebThumbs', 'France']);
		return false;
	}
	);
	
	
	
	$('.back').click(function()
	{
		$('.filmDetail:visible').fadeOut('normal',function()
		{
			$('#filmMain').fadeIn();
		});	
		return false;
	}
	);
	

function gotoTwo () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#two').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#two').fadeIn();
		});	
	
	};



function gotoThree () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#three').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#three').fadeIn();
		});	
	};
	

function gotoFour () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#four').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#four').fadeIn();
		});	
	};
	
function gotoFive () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#five').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#five').fadeIn();
		});	
	};
	
function gotoSix () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#six').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#six').fadeIn();
		});	
	};
	
function gotoSeven () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#seven').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#seven').fadeIn();
		});	
	};
	
function gotoEight () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#eight').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#eight').fadeIn();
		});	
	};
	
function gotoNine () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#nine').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#nine').fadeIn();
		});	
	};	
	
function gotoTen () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#ten').fadeIn();
		});	
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#ten').fadeIn();
		});	
	};
	
function gotoEleven () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#eleven').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#eleven').fadeIn();
		});	
	};
	
function gotoTwelve () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#twelve').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#twelve').fadeIn();
		});	
	};
	
function gotoThirteen () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#thirteen').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#thirteen').fadeIn();
		});	
	};	
	
function gotoFourteen () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#fourteen').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#fourteen').fadeIn();
		});	
	};
	
function gotoFifteen () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#fifteen').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#fifteen').fadeIn();
		});	
	};
	
function gotoSixteen () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#sixteen').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#sixteen').fadeIn();
		});	
	};
	
function gotoSeventeen () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#seventeen').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#seventeen').fadeIn();
		});	
	};	
	
function gotoEighteen () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#eighteen').fadeIn();
		});	
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#eighteen').fadeIn();
		});	
	};
	
function gotoNineteen () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#nineteen').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#nineteen').fadeIn();
		});	
	};
	
function gotoTwenty () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#twenty').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#twenty').fadeIn();
		});	
	};
	
function gotoTwentyone () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#twentyone').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#twentyone').fadeIn();
		});	
	};
	
function gotoTwentytwo () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#twentytwo').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#twentytwo').fadeIn();
		});	
	};
	
function gotoTwentythree () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#twentythree').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#twentythree').fadeIn();
		});	
	};
	
function gotoTwentyfour () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#twentyfour').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#twentyfour').fadeIn();
		});	
	};
	
function gotoTwentyfive () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#twentyfive').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#twentyfive').fadeIn();
		});	
	};	
	
function gotoTwentysix () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#twentysix').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#twentysix').fadeIn();
		});	
	};
	
	
function gotoTwentyseven () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#twentyseven').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#twentyseven').fadeIn();
		});	
	};
	
function gotoTwentyeight () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#twentyeight').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#twentyeight').fadeIn();
		});	
	};
	
function gotoTwentynine () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#twentynine').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#twentynine').fadeIn();
		});	
	};
	
function gotoThirty () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#thirty').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#thirty').fadeIn();
		});	
	};
	
function gotoThirtyone () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#thirtyone').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#thirtyone').fadeIn();
		});	
	};
	
function gotoThirtytwo () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#thirtytwo').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#thirtytwo').fadeIn();
		});	
	};
	
function gotoThirtythree () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#thirtythree').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#thirtythree').fadeIn();
		});	
	};
	
function gotoThirtyfour () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#thirtyfour').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#thirtyfour').fadeIn();
		});	
	};
	
function gotoThirtyfive () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#thirtyfive').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#thirtyfive').fadeIn();
		});	
	};
	
function gotoThirtysix () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#thirtysix').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#thirtysix').fadeIn();
		});	
	};
	
function gotoThirtyseven () {	
	$('.mediaDetail:visible').fadeOut('normal',function()
		{
			$('#thirtyseven').fadeIn();
		});
	
	$('#mediaImage').fadeOut('normal',function()
		{
			$('#thirtyseven').fadeIn();
		});	
	};		
	
$('.goto_two').live("click", gotoTwo);
$('.goto_three').live("click", gotoThree);
$('.goto_four').live("click", gotoFour);
$('.goto_five').live("click", gotoFive);
$('.goto_six').live("click", gotoSix);
$('.goto_seven').live("click", gotoSeven);
$('.goto_eight').live("click", gotoEight);
$('.goto_nine').live("click", gotoNine);
$('.goto_ten').live("click", gotoTen);
$('.goto_eleven').live("click", gotoEleven);
$('.goto_twelve').live("click", gotoTwelve);
$('.goto_thirteen').live("click", gotoThirteen);
$('.goto_fourteen').live("click", gotoFourteen);
$('.goto_fifteen').live("click", gotoFifteen);
$('.goto_sixteen').live("click", gotoSixteen);
$('.goto_seventeen').live("click", gotoSeventeen);
$('.goto_eighteen').live("click", gotoEighteen);
$('.goto_nineteen').live("click", gotoNineteen);
$('.goto_twenty').live("click", gotoTwenty);
$('.goto_twentyone').live("click", gotoTwentyone);
$('.goto_twentytwo').live("click", gotoTwentytwo);
$('.goto_twentythree').live("click", gotoTwentythree);
$('.goto_twentyfour').live("click", gotoTwentyfour);
$('.goto_twentyfive').live("click", gotoTwentyfive);
$('.goto_twentysix').live("click", gotoTwentysix);
$('.goto_twentyseven').live("click", gotoTwentyseven);
$('.goto_twentyeight').live("click", gotoTwentyeight);
$('.goto_twentynine').live("click", gotoTwentynine);
$('.goto_thirty').live("click", gotoThirty);
$('.goto_thirtyone').live("click", gotoThirtyone);
$('.goto_thirtytwo').live("click", gotoThirtytwo);
$('.goto_thirtythree').live("click", gotoThirtythree);
$('.goto_thirtyfour').live("click", gotoThirtyfour);
$('.goto_thirtyfive').live("click", gotoThirtyfive);
$('.goto_thirtysix').live("click", gotoThirtysix);
$('.goto_thirtyseven').live("click", gotoThirtyseven);
	
	
	
	}});
