		
var currentMenu = null;
		
if (!document.getElementById)
    document.getElementById = function() { return null; }
		
function initializeMenu(menuId, actuatorId) {
    var menu = document.getElementById(menuId);
    var actuator = document.getElementById(actuatorId);
		
    if (menu == null || actuator == null) return;
				
    actuator.onmouseover = function() {
        //alert(actuatorId);
        if (currentMenu) {
            currentMenu.style.visibility = "hidden";
            this.showMenu();
        }
    }
		  
    actuator.onmouseover = function() {
        if (currentMenu == null) {
            //alert(currentMenu);
            this.showMenu();
        }
        else {
            currentMenu.style.visibility = "hidden";
            currentMenu = null;
        }
		
        // return false;
    }
		
    actuator.showMenu = function() {
			
        menu.style.visibility = "visible";
        currentMenu = menu;
    }
    menu.style.visibility = "hidden";
}

// added from navigation include
sfHover = function() {
    var sfEls = document.getElementById("nav").getElementsByTagName("LI");
    for (var i=0; i<sfEls.length; i++) {
        sfEls[i].onmouseover=function() {
            this.className+=" sfhover";
        }
        sfEls[i].onmouseout=function() {
            this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
// end of added from navigation include

window.onload = function() {
    initializeMenu("aboutMenu", "aboutActuator");
    initializeMenu("focusMenu", "focusActuator");
    initializeMenu("productMenu", "productActuator");
    initializeMenu("partnerMenu", "partnerActuator");
    initializeMenu("communicationsMenu", "communicationsActuator");
}		
