// JavaScript Document
// IE only makes :hover work on LI tags

function activateA(t)
{
	t.className +="-hoveratag";
}

function deActivateA(t)
{
	t.className=t.className.replace("-hoveratag", "");
}

activateMenu = function(nav) {
	/* Get all the list items within the menu */
	var navroot = document.getElementById(nav);
	var lis=navroot.getElementsByTagName("LI");
	var countUL=0;
	for (i=0; i<lis.length; i++) 
	{
		/* If the LI has another menu level */
		if(lis[i].lastChild!=null)
		{
			if(lis[i].lastChild.tagName=="UL")
			{	
				countUL++;
				/* assign the function to the LI */
				lis[i].onmouseover=function() 
				{		
					/* display the inner menu */
					this.lastChild.style.display="block";					
					activateA(this);
				}
				lis[i].onmouseout=function() 
				{
					this.lastChild.style.display="none";
					deActivateA(this);
				}
			}
		}
	}
	
	
}
