// Javascript for IE to support drop down menu bar

startList = function()
{
	if (document.all&&document.getElementById)
	{
		navRoot = document.getElementById("mainNav");
		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", "");
				}
				
				// Now loop through for the next list items (UL items)
				for (j=0; j < node.childNodes.length; j++)
				{
					var nodeSub = node.childNodes[j];
					//alert(nodeSub.nodeName);
					
					if (nodeSub.nodeName=="UL")
					{
						// Now loop through for the LI items
						for (k=0; k < nodeSub.childNodes.length; k++)
						{
							nodeSubSub = nodeSub.childNodes[k];
							if (node.nodeName=="LI")
							{
								nodeSubSub.onmouseover=function()
								{ 
									this.className +=" over";
								}
								nodeSubSub.onmouseout=function()
								{
									this.className=this.className.replace(" over", "");
								}	
							}
						}
							
					}
				}
			}
  		}
 	}
}
window.onload=startList;