function preloadImages() {
	if (document.images) {
		document.menuarrow = new Image();
		document.menuarrow.src = "images/menuarrow.gif";
		document.transp = new Image();
		document.transp.src = "images/transp.gif";
	};
}

function setmenuoffset() {
	if(document.all) 
	{
		document.all['menu1'].style.left = (document.body.offsetWidth/2)-166;
		document.all['menu2'].style.left = (document.body.offsetWidth/2)-77;
		document.all['menu3'].style.left = (document.body.offsetWidth/2)+12;
		document.all['menu4'].style.left = (document.body.offsetWidth/2)+101;
		document.all['menu5'].style.left = (document.body.offsetWidth/2)+190;
		//document.all['menu6'].style.left = (document.body.offsetWidth/2)+279;
			//window.innerHeight
	} else {
		//document.getElementById('menu1').style.left = (window.innerWidth/2)-156;
		document.getElementById('menu1').style.left = (document.body.offsetWidth/2)-156;
		document.getElementById('menu2').style.left = (document.body.offsetWidth/2)-67;
		document.getElementById('menu3').style.left = (document.body.offsetWidth/2)+22;
		document.getElementById('menu4').style.left = (document.body.offsetWidth/2)+111;
		document.getElementById('menu5').style.left = (document.body.offsetWidth/2)+200;
		document.getElementById('menu6').style.left = (document.body.offsetWidth/2)+289;
	};
}

function mouseover(button)
{
	whichmenu = "menu" + button;
	if (document.all)
	{
		document.all[whichmenu].style.visibility = "visible";
	} else {
		document.getElementById(whichmenu).style.visibility = "visible";
	};
}

function mouseout(button)
{
		
	whichmenu = "menu" + button;
	if (document.all)
	{
		document.all[whichmenu].style.visibility = "hidden";
	} else {
		document.getElementById(whichmenu).style.visibility = "hidden";
	};
}

function highlight(item)
{
	item.style.color = "#FDA636";
	item.style.background = "#E0EAF4";
}

function dehighlight(item)
{
	item.style.color = "#000000";
	item.style.background = "#EDF3FA";
}

function showarrow(arrow)
{
	document[arrow].src = document.menuarrow.src;

}

function hidearrow(arrow)
{
	document[arrow].src = document.transp.src;

}
