if (!document.getElementById)
{
    document.getElementById = function() { return null; }
}

var lastClicked;

function initializeMenu(menuId, actuatorId) {
	
    var menu = document.getElementById(menuId);
	var actuator = document.getElementById(actuatorId);

    if (menu == null || actuator == null) return;

    //if (window.opera) return; // Function not available on obsolete browsers

    actuator.parentNode.style.backgroundImage = "url(/images/plus.gif)";
    actuator.onclick = function() {
		if(lastClicked != null )
		{
			lastClicked.style.display = "none";
		}
        var display = menu.style.display;
		
		this.parentNode.style.backgroundImage = (display == "block") ? "url(/images/plus.gif)" : "url(/images/minus.gif)";
        menu.style.display = (display == "block") ? "none" : "block";
		lastClicked = menu;

        return false;
    }
}