var myElementsEffects0;
var myElementsEffects1;
var myElementsEffects2;
var myElementsEffects3;
var myElementsEffects4;
var myElementsEffects5;
function initializeArrows(){
	var transitionDuration = 300;
	myElementsEffects0 = new Fx.Elements($$('#mainNav img.arrow0'),{duration: transitionDuration});
	myElementsEffects1 = new Fx.Elements($$('#mainNav img.arrow1'),{duration: transitionDuration});
	myElementsEffects2 = new Fx.Elements($$('#mainNav img.arrow2'),{duration: transitionDuration});
	myElementsEffects3 = new Fx.Elements($$('#mainNav img.arrow3'),{duration: transitionDuration});
	myElementsEffects4 = new Fx.Elements($$('#mainNav img.arrow4'),{duration: transitionDuration});
	myElementsEffects5 = new Fx.Elements($$('#mainNav img.arrow5'),{duration: transitionDuration});
}
function arrowHover(whichArrow){
	if(whichArrow == 0){
		myElementsEffects0.stop();
		myElementsEffects0.start({
			'0': { //let's change the first element's opacity
				'top': [-15,0]
			}
		});	
	}else if(whichArrow == 1){
		myElementsEffects1.stop();
		myElementsEffects1.start({
			'0': { //let's change the first element's opacity
				'top': [-15,0]
			}
		});
	}else if(whichArrow == 2){
		myElementsEffects2.stop();
		myElementsEffects2.start({
			'0': { //let's change the first element's opacity
				'top': [-15,0]
			}
		});
	}else if(whichArrow == 3){
		myElementsEffects3.stop();
		myElementsEffects3.start({
			'0': { //let's change the first element's opacity
				'top': [-15,0]
			}
		});
	}else if(whichArrow == 4){
		myElementsEffects4.stop();
		myElementsEffects4.start({
			'0': { //let's change the first element's opacity
				'top': [-15,0]
			}
		});
	}else if(whichArrow == 5){
		myElementsEffects5.stop();
		myElementsEffects5.start({
			'0': { //let's change the first element's opacity
				'top': [-15,0]
			}
		});
	}
}

function arrowOut(whichArrow){
	if(whichArrow == 0){
		myElementsEffects0.stop();
		myElementsEffects0.start({
			'0': { //let's change the first element's opacity
				'top': [0, -15]
			}
		});	
	}else if(whichArrow == 1){
		myElementsEffects1.stop();
		myElementsEffects1.start({
			'0': { //let's change the first element's opacity
				'top': [0, -15]
			}
		});
	}else if(whichArrow == 2){
		myElementsEffects2.stop();
		myElementsEffects2.start({
			'0': { //let's change the first element's opacity
				'top': [0, -15]
			}
		});
	}else if(whichArrow == 3){
		myElementsEffects3.stop();
		myElementsEffects3.start({
			'0': { //let's change the first element's opacity
				'top': [0, -15]
			}
		});
	}else if(whichArrow == 4){
		myElementsEffects4.stop();
		myElementsEffects4.start({
			'0': { //let's change the first element's opacity
				'top': [0, -15]
			}
		});
	}else if(whichArrow == 5){
		myElementsEffects5.stop();
		myElementsEffects5.start({
			'0': { //let's change the first element's opacity
				'top': [0, -15]
			}
		});
	}
}