/*
 * menuExpandable2.js - implements an expandable menu based on a HTML list
 * Author: Dave Lindquist (http://www.gazingus.org)
 */

/*
* Modificato da meska per renderlo statico
*/
if (!document.getElementById)
    document.getElementById = function() { return null; }

function initializeMenu(menuId, actuatorId,aperto) {
    var menu = document.getElementById(menuId);
    var actuator = document.getElementById(actuatorId);
    
    if (menu == null || actuator == null) return;

    //if (window.opera) return; // I'm too tired

    if (aperto) {
        var display = menu.style.display;
        actuator.parentNode.style.backgroundImage = (display == "block") ? "url(immagini/plus.gif)" : "url(immagini/minus.gif)";
        menu.style.display = (display == "block") ? "none" : "block";
        return true;
	}
    
}