function over(Name) {
	document.images[Name].src = "images/nav_" + Name + "_over.jpg";
}

function out(Name) {
	document.images[Name].src = "images/nav_" + Name + "_reg.jpg";
}

function overgif(Name) {
	document.images[Name].src = "images/nav_" + Name + "_over.gif";
}

function outgif(Name) {
	document.images[Name].src = "images/nav_" + Name + "_reg.gif";
}

if (!document.getElementById)
    document.getElementById = function() { return null; }

function initializeMenu(menuId, actuatorId, state) {
    var menu = document.getElementById(menuId);
    var actuator = document.getElementById(actuatorId);

    if (menu == null || actuator == null) return;

	menu.style.display = state;

    actuator.onclick = function() {
        var display = menu.style.display;
        menu.style.display = (display == "block") ? "none" : "block";
        return false;
    }
}
