var currentActiveItem = null;

initPage = function() {

		var navRoot = document.getElementById("navigation-top");
		var lis = navRoot.getElementsByTagName("li");
		for (var i=0; i<lis.length; i++)
		{
				
			if (lis[i].firstChild.className == 'active')
			{
				currentActiveItem = lis[i];
				navRoot.className = lis[i].className;
			}
				
			lis[i].onmouseover = function()
			{
				navRoot.className = this.className;
			}
				
			lis[i].onmouseout = function()
			{
				if (currentActiveItem)
				{
						navRoot.className = currentActiveItem.className;
				}
				else
				{
					navRoot.className = "";
				}
			}
		}
}
	
if (window.addEventListener)
	window.addEventListener("load", initPage, false);
else if (window.attachEvent)
	window.attachEvent("onload", initPage);
