function hoverinbg(element, image) {
    document.getElementById(element).src = image;
}

function hoveroutbg(element, image) {
    if (element != 'activeitem') {
        document.getElementById(element).src = image;
    }
}

function InitializeMenu()
{
	if (document.all && document.getElementById)
	{
		var navRoot = document.getElementById("navlist");
                if(!navRoot){
                    return;
                }
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node = navRoot.childNodes[i];
			if (node.nodeName == "LI")
			{
				node.onmouseover=function()
				{
					this.className+=" over";
				}
				node.onmouseout=function()
				{
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

function InitializeQuickMenu()
{
	if (document.all && document.getElementById)
	{
		var navRoot = document.getElementById("quickmenu");
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node = navRoot.childNodes[i];
			if (node.nodeName == "LI")
			{
				node.onmouseover=function()
				{
					this.className+=" over";
				}
				node.onmouseout=function()
				{
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}