function CreateMenu(e, menuItem)
{
	if (document.all && document.getElementsByTagName)
	{
		if (menuItem == null)
		{
			menuItem = document.getElementById("Navbar");
		}
		
		var nodeList = menuItem.getElementsByTagName("li");

		for (var i = 0; i < nodeList.length; i++)
		{
			var node = nodeList[i];
			
			node.onmouseout = function()
			{
				this.className = this.classNameOld;
			}
			
			node.onmouseover = function()
			{
				this.classNameOld = this.className;
				this.className = "hover";
			}
		}
	}
}

if (window.addEventListener) window.addEventListener("load", CreateMenu, null);
else if (window.attachEvent) window.attachEvent("onload", CreateMenu);
