
function overMenuItem(menuid,col) {
	if(document.getElementById){
		document.getElementById(menuid).style.backgroundColor = col;
	}
}
function leaveMenuItem(menuid) {
	if(document.getElementById){
		document.getElementById(menuid).style.backgroundColor = "transparent";
	}
}
function positionMenu(){
	if(document.getElementById){
		if(document.getElementById("menu"))
		{
			menu_el = document.getElementById("menu");
			offset_v = parseInt(menu_el.style.height) + parseInt(menu_el.style.left);
			// get inner dimensions of browser window
			var x,y;
			if (self.innerHeight) // all except Explorer
			{
				x = self.innerWidth;
				y = self.innerHeight;
			}
			else if (document.documentElement && document.documentElement.clientHeight)
				// Explorer 6 Strict Mode
			{
				x = document.documentElement.clientWidth;
				y = document.documentElement.clientHeight;
			}
			else if (document.body) // other Explorers
			{
				x = document.body.clientWidth;
				y = document.body.clientHeight;
			}
			menu_el.style.top = "" + (y - offset_v) + "px";
		}
	}
}
