var sound1Embed;

var pointerUrl='';

var imagePos="-69px";

function setupSound(){};

function topNavClick(){var currentPageClass=document.body.className;
var leftNavFx;$$('.topNav').each(function(link,i){if(link.hasClass(currentPageClass)){var tempVar=(-69+(i*23));imagePos=tempVar+"px";

changePointer(imagePos);pointerUrl=link.href;

leftNavFx=new Fx.Styles(link,{duration:250,wait:false,transition:Fx.Transitions.Quad.easeOut});

leftNavFx.set({'padding':0,'background-color':'#f2421f'})}});

var work=document.getElementById("work");

var people=document.getElementById("people");

var story=document.getElementById("story");

var contact=document.getElementById("contact");

work.onmouseover=function(event){
	sound1Play();
	imagePos="-69px";
	pointerUrl=this.href;
	changePointer(imagePos)
	};
	
people.onmouseover=function(event){
	sound1Play();
	imagePos="-46px";
	pointerUrl=this.href;
	changePointer(imagePos)
	};
	
story.onmouseover=function(event){sound1Play();
	imagePos="-23px";
	pointerUrl=this.href;
	changePointer(imagePos)
	};
	
contact.onmouseover=function(event){
	sound1Play();
	imagePos="0px";
	pointerUrl=this.href;
	changePointer(imagePos)
	};

feature.onmouseover=function(event){
	sound1Play();
	imagePos="0px";
	pointerUrl=this.href;changePointer(imagePos)
	};

blogNav.onmouseover=function(event){
	sound1Play();
	imagePos="0px";
	pointerUrl=this.href;
	changePointer(imagePos)
	};

$('pointer').onmouseover=function(event){$('pointer').style.cursor='pointer';

$('pointer').style.backgroundPosition=imagePos+" -23px"};

$('pointer').onmouseout=function(event){$('pointer').style.cursor='default';document.getElementById("pointer").style.backgroundPosition=imagePos+" 0"};

$('pointer').addEvent('click',function(e){if(window.location!=pointerUrl){window.location=pointerUrl}else{leftNavFx.start({'padding':5,'background-color':'#bf3519'}).chain(function(){leftNavFx.start({'padding':0,'background-color':'#f2421f'})})}})};function sound1Play(){};

function sound1Stop(){if(sound1Embed){document.body.removeChild(sound1Embed);sound1Embed=null}}function changePointer(imagePos){document.getElementById("pointer").style.backgroundPosition=imagePos+" 0"};

window.addEvent('load',function(){topNavClick();setupSound()});