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.style.backgroundImage = "url(assets/plus.gif)";
    actuator.onclick = function() {
        var display = menu.style.display;
        this.style.backgroundImage =
            (display == "block") ? "url(assets/plus.gif)" : "url(assets/minus.gif)";
        menu.style.display = (display == "block") ? "none" : "block";

        return false;
    }
}

function initialiseCurrent(menuId, actuatorId){
		
		var menuTemp = document.getElementById(menuId);
		var actuatorTemp = document.getElementById(actuatorId);
		
		var display = menuTemp.style.display;
		actuatorTemp.style.backgroundImage =
		(display == "block") ? "url(assets/plus.gif)" : "url(assets/minus.gif)";
		menuTemp.style.display = (display == "block") ? "none" : "block";
	}



