/*
 * 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 initializeMenu(menuId, actuatorId) {
    var menu = document.getElementById(menuId);
    var actuator = document.getElementById(actuatorId);

    if (menu == null || actuator == null) return;

    actuator.onclick = function() {
        var display = menu.style.display;
		this.parentNode.style.backgroundColor = (display == "block") ? "#777777" : "#888888";
        this.parentNode.style.backgroundImage = (display == "block") ? "url(http://tie.telemed.org/images/t2/plus.gif)" : "url(http://tie.telemed.org/images/t2/minus.gif)";
       	menu.style.display = (display == "block") ? "none" : "block";
        return false;
    }
}




