activateMenu = function(nav) {
	var navroot = document.getElementById(nav);
	var lis=navroot.getElementsByTagName("LI");  
	for (i=0; i<lis.length; i++) {
		subMenu = lis[i].getElementsByTagName("UL") 
		if(subMenu.length>0){
			lis[i].onmouseover=function(e) {	
			   this.getElementsByTagName("UL")[0].style.display='block';
			   this.style.backgroundColor="#d4c7c7"
			}
			lis[i].onmouseout=function() {   
			   this.getElementsByTagName("UL")[0].style.display="none";
			   this.style.backgroundColor=""			   
			}
		}
	}
}
