/*
 * menuExpandable.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 initializeconMen(conmenId, conactId) {
    var conmen = document.getElementById(conmenId);
    var conact = document.getElementById(conactId);

    if (conmen == null || conact == null) return;

    //if (window.opera) return; // I'm too tired

    conact.parentNode.style.backgroundImage = "url( )";
    conact.onclick = function() {
        var display = conmen.style.display;
        this.parentNode.style.backgroundImage =
            (display == "block") ? "url( )" : "url( )";
        conmen.style.display = (display == "block") ? "none" : "block";

        return false;
    }
}