function initPage()
{
	var navRoot = document.getElementById("navigation");
	if (navRoot) {
		var lis = navRoot.getElementsByTagName("li");
		for (var i=0; i<lis.length; i++)
		{
			lis[i].onmouseover = function()
			{
				this.className += " hover";
	                }
			lis[i].onmouseout = function()
			{
				this.className = this.className.replace(new RegExp(" hover"),"");
			}
		}
	}
	var navRoot1 = document.getElementById("brand-links-box");
	if (navRoot1) {
		var lis = navRoot1.getElementsByTagName("li");
		for (var i=0; i<lis.length; i++)
		{
			lis[i].onmouseover = function()
			{
				this.className += " hover";
				this.parentNode.className += " hover";
	                }
			lis[i].onmouseout = function()
			{
				this.className = this.className.replace(new RegExp("hover"),"");
				this.parentNode.className = this.parentNode.className.replace(new RegExp("hover"),"");
			}
		}
	}
	var navRoot2 = document.getElementById("brand-links");
	if (navRoot2) {
		var lis = navRoot2.getElementsByTagName("li");
		for (var i=0; i<lis.length; i++)
		{
			lis[i].onmouseover = function()
			{
				this.parentNode.className += " hover";
	                }
			lis[i].onmouseout = function()
			{
				this.parentNode.className = this.parentNode.className.replace(new RegExp("hover"),"");
			}
		}
	}
}

if (window.addEventListener)
	window.addEventListener("load", initPage, false);
else if (window.attachEvent)
	window.attachEvent("onload", initPage);