activateMenu = function(nav) {
	var MSIEOffset = 0;
	if(document.all && document.getElementById(nav))
	{
		//MSIE
		var navroot = document.getElementById(nav);

		/* Get all the list items within the menu */
		var lis=navroot.getElementsByTagName("LI");
		for(i=0;i<lis.length;i++)
		{
			/* If the LI has another menu level */
			if(lis[i].lastChild.tagName=="UL")
			{
				if(lis[i].parentNode.id == nav) 
				{
					lis[i].lastChild.style.marginLeft = "-"+MSIEOffset+"px";
				}
				else
				{
					lis[i].lastChild.style.marginLeft = MSIEOffset+"px";
				}
				/* assign the function to the LI */
				lis[i].onmouseover=function()
				{
					this.lastChild.style.display="block";
				}
				lis[i].onmouseout=function()
				{
					this.lastChild.style.display="none";
				}
			}
		}
	}
	else
	{
		//Firefox
	}
}