// CSS Drop-Down Menu JS
// Binds missing properties in IE's CSS implimentation

function activateMenu(nav) {
	// currentStyle restricts the Javascript to IE only
	var navroot = document.getElementById(nav);  
	if (document.all && navroot && navroot.currentStyle) {          
		// 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 && (lis[i].lastChild.tagName == "UL")) {
				// assign the function to the LI
				lis[i].onmouseover = function() {					
					this.lastChild.style.display = "block";
				}
				lis[i].onmouseout = function() {                       
					this.lastChild.style.display = "none";
				}
			}
		}	// end for
	}	// end if
}


window.onload = function() {
	// List all menu classes you require to be drop-down activated here
    activateMenu('dropdownmenu'); 
	//activateMenu('seMenu'); 
}


