
var menuList = new Array("eventMenu");

var timer;

var browserName = navigator.appName;
// Function to show the passed in menu name
function showMenu(menuID){
    clearTimeout(timer); // stop the timer
    hideAll(); // hide any already open
    if (browserName == "Microsoft Internet Explorer"){
        document.all[menuID].style.display = "";
    } else {     
        document.getElementById(menuID).style.display = "";
    }
}

// Function to hide the passed in menu name
function hideMenu(menuID){
    if (browserName == "Microsoft Internet Explorer"){
        document.all[menuID].style.display = "none";
    } else {     
        document.getElementById(menuID).style.display = "none";
    }
}

// Function to hide all menus
function hideAll(menuID){
    for (var i = 0; i < menuList.length; i++){
        hideMenu(menuList[i]);
    }
}

// set the timer to count 1/2 second then hide the menus if another one has not been selected
function setTimer(){
    timer = setTimeout("hideAll()", 500);
}

