/*
* Expandable menu based on a HTML list by Dave Lindquist (http://www.gazingus.org)
 */

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;

    //if (window.opera) return; // I'm too tired

    actuator.parentNode.style.backgroundImage = "url(/images/menu_plus.gif)";
    actuator.onclick = function() {
        var display = menu.style.display;
        this.parentNode.style.backgroundImage =
            (display == "block") ? "url(/images/menu_plus.gif)" : "url(/images/menu_minus.gif)";
          menu.style.display = (display == "block") ? "none" : "block";

        return false;
    }
}
function ExpandMenu(menuId,Status){
    var menu = document.getElementById(menuId);
if (Status==1){ menu.style.display ="block";}
if (Status==0) {menu.style.display="none";}
}
