/*
 * menuExpandable2.js - implements an expandable menu based on a HTML list
 * Author: Dave Lindquist (http://www.gazingus.org)
 */

if (!document.getElementById)
    document.getElementById = function() { return null; }

function initializeMenu1(menuId, minusId) {
    var menu = document.getElementById(menuId);
    var minus = document.getElementById(minusId);

    if (menu == null || minus == null) return;

    //if (window.opera) return; // I'm too tired

    minus.onclick = function() {
        var display = menu.style.display;
        this.parentNode.style.backgroundImage =
            (display == "none") ? "url(/i/minus.gif)" : "url(/i/plus.gif)";
        menu.style.display = (display == "none") ? "block" : "none";

        return false;
    
    }
}



