
var menu;


function initMenu() {
if (document.getElementById("menulist")) {
menu = document.getElementById("menulist");
menuLabels = menu.childNodes;

for ( i = 0; i < menuLabels.length-1; i++ ) {
if (menuLabels[i].childNodes.length > 2) {
thisLabel = menuLabels[i];
thisLabel2 = thisLabel.id + "menulink";
eval("menuName" + i + "= thisLabel.id + \"menu\"");
eval("thisLabel.onmouseover = function(){show(menuName" + i + ",'yes')}");
eval("thisLabel.onmouseout = function(){hide(menuName" + i + ",'yes')}");
}
}
}
}

function show(menuID,hidesearch) {
menuToShow = document.getElementById(menuID);
menuToShow.style.display = 'block';

}

function hide(menuID,hidesearch) {
menuToShow = document.getElementById(menuID);
menuToShow.style.display = 'none';

}



function addOnloadEvent(fnc) {
    if ( typeof window.addEventListener != "undefined" )
        window.addEventListener( "load", fnc, false );
    else if ( typeof window.attachEvent != "undefined" ) {
        window.attachEvent( "onload", fnc );
    }
    else {
         if ( window.onload != null ) {
         var oldOnload = window.onload;
            window.onload = function ( e ) {
            oldOnload( e );
            window[fnc]();
            };
        }
        else
            window.onload = fnc;
    }
}



addOnloadEvent(initMenu);
 








