function initMenu()
{
	var nodes = document.getElementsByTagName("ul");
	for (var i=0; i<nodes.length; i++)
	{
		nodes[i].onmouseover = function()
		{
			this.className += " hover";
		}
		nodes[i].onmouseout = function()
		{
			this.className = this.className.replace(" hover", "");
		}
	}
}
function initPage()
{
	var nav = document.getElementById("navigation")
	if(nav)
	{
		var nods = nav.getElementsByTagName("li");
		for (var i = 0; i < nods.length; i++)
		{
			nods[i].onmouseover = function()
			{
				this.className += " hover";
				nav.className += " active";
			}
			nods[i].onmouseout = function()
			{
				this.className = this.className.replace(" hover", "");
				nav.className = nav.className.replace("active", "");
			}	
		}
	}
}

if (window.addEventListener){
	window.addEventListener("load", initPage, false);
	}
else if (window.attachEvent){
	window.attachEvent("onload", initPage);
	window.attachEvent("onload", initMenu);
	}