function initMenu()
{
	var nodes = document.getElementById("menu").getElementsByTagName("a");
	for (var i=0; i<nodes.length; i++)
	{
		nodes[i].onmouseover = function()
		{
			this.parentNode.parentNode.className += " hover ";
			
		}
		nodes[i].onmouseout = function()
		{
			this.parentNode.parentNode.className = this.parentNode.parentNode.className.replace("hover", "");
		}
	}
}
if (window.addEventListener){
	window.addEventListener("load", initMenu, false);
	}
else if (window.attachEvent){
	window.attachEvent("onload", initMenu);
	}