/* * menuExpandable2.js &ndash; implements an expandable menu based on a HTML list * Author: Dave Lindquist (dave@gazingus.org) Revised: Dan Rempel */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){    //if (actuator == null){		return;	}    //if (window.opera) return; // I'm too tired    actuator.mInit = function() {	    var display = menu.style.display;        menu.style.display = (display == "block") ? "none" : "block";        return false;    }    actuator.onclick = function() {		// If you don't wish to have the url followed, just enter # in the href		if(this.href.indexOf("#")==-1){window.location.href = this.href;}else{mInit();}    }	}