
function navWarning()
{
	supported=(navigator.appName!="Microsoft Internet Explorer" || (document.all && document.getElementById));

	if (!supported)
	{
		obj=document.getElementById("navWarning");
		obj.style.display="table-row";
	}
}




// required for IE

// IE/Win only allows the :hover pseudo-class to be applied to a link — so the li:hover that makes the sub-menus appear means nothing to IE.  A bit of JavaScript is required to kick IE back into action:

function navGo(navRoot)
{
//	alert(navRoot.nodeName+" id="+navRoot.id+": "+navRoot.childNodes.length+" child nodes");

	if (navRoot && navRoot.childNodes)
		for (var i=0; i<navRoot.childNodes.length; ++i)
		{
			var node=navRoot.childNodes[i];

			if (node.nodeName=="LI")
			{
	//			alert("node #"+i+" name="+node.nodeName+" id="+node.id);

				node.onmouseover=function()
				{
					this.className+=" over";
				}

				node.onmouseout=function()
				{
					this.className=this.className.replace(" over", "");
				}
			}

			navGo(node);
		}
	else
		window.status="pub/inc/menu/menu.js: navRoot(="+navRoot+") has no childNodes";
}


navStart=function()
{
	navWarning();

	if (navigator.appName=="Microsoft Internet Explorer" &&
		document &&
//		document.all &&
		document.getElementById &&
		document.getElementById("nav0"))
		navGo(document.getElementById("nav0"));
//	else
//		window.status="pub/inc/menu/menu.js: can't find element 'nav0'";
}

window.onload=navStart;
