// Script for expandable navbar
// by Adhitya S. Chittur
// modified from http://gazingus.org/js/menuExpandable3.js

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.parentNode.style.backgroundImage = "url(/img/arrowRight.gif)";

}
*/
function expandMenu(menu, actuator) {
	var actuator = document.getElementById(actuator);
	var menu = document.getElementById(menu);
	var display = menu.style.display;
    actuator.parentNode.style.backgroundImage =
	    (display == "block") ? "url(/img/arrowRight.gif)" : "url(/img/arrowDown.gif)";
    menu.style.display = (display == "block") ? "none" : "block";
    return false;
}