//these functions are used to handle the image rollovers for the main nav menu
//it was decided to use a mix of JavaScript and css to produce the most accessible menu
//basically, the main nav menu will do its job, if images, JavaScript, or css is turned off

function menuLoad() {
var menu1=new Array('home','whats-on','offers','venues','friends','reviews','learn-support','info');

menu=new Array();

for (var x = 0; x <= menu1.length-1; x++){
	var t = menu1[x]
	var tmp = new Image();
	tmp.src="/apa/images/bo/nav/"+t+"-over"
	menu[t]=tmp
	}
}
	   



function menuOver(elementID) {
	document.getElementById(elementID).src=menu[elementID].src
}

function menuOut(elementID) {
	tmp = menu[elementID].src
	tmp = tmp.substr(0,tmp.length-5)
	document.getElementById(elementID).src=tmp
}
