$(document).ready(function()
	{
		$isIE6 = false;
	
		if ($.browser.msie && $.browser.version.substr(0,1)<7) 
			{
				$isIE6 = true;
			}
	
		$('body').removeClass('noJS');
	
		$footerHeight = $(window).height() - $('#footerContainer').position().top;
	
		if (!$.browser.msie)
			{
				$('#footerContainer').css({'minHeight':$footerHeight});
			}
	
		var $scrollerWindow = $('#contentContainer');
	
		var $speed = 750;
	
		$('#navigation li a').hover(function()
			{
				$(this).fadeTo('fast',0.5);
			},
	
		function()
			{
				$(this).fadeTo('fast',1);
			});
	
		$('#logo').hover(function()
			{
				$(this).fadeTo('fast',0.7);
			},
	
		function()
			{
				$(this).fadeTo('fast',1);
			});
	
		function gotoHome()
			{
				$scrollerWindow.stop().scrollTo( $('#home'), $speed, {axis:'x',offset:{left: 0, top:0 }} );
				$('imageContainer1').stop().animate({backgroundPosition: '(0px 0px)'}, $speed );
				
				
				return false;
				
			}
	
		function gotoBio()
			{
				$scrollerWindow.stop().scrollTo( $('#bio'), $speed, {axis:'x',offset:{left: 0, top:0 }} );
				$('bioContainer').stop().animate({backgroundPosition: '(-980px 0px)'}, $speed );
				$('#bioContentPanel').stop().animate({backgroundPosition: '(0px 0px)'}, $speed+300 );

				return false;
			}
	
		function gotoMedia()
			{
				$scrollerWindow.stop().scrollTo( $('#media'), $speed, {axis:'x',offset:{left: 0, top:0 }} );
				return false;
			}
	
		function gotoContact()
			{
				$scrollerWindow.stop().scrollTo( $('#contact'), $speed, {axis:'x',offset:{left: 0, top:0 }} );
				return false;
			}
	
		function noScroll()
			{
				return false;
			}
	
		$('.goto_home').live("click", gotoHome);
		$('.goto_bio').live("click", gotoBio);
		$('.goto_media').live("click", gotoMedia);
		$('.goto_contact').live("click", gotoContact);
		$('.noScroll').live("click", noScroll);

	});
