/*
 * menuExpandable2.js - implements an expandable menu based on a HTML list
 * Author: Dave Lindquist (http://www.gazingus.org)
 */

if (!document.getElementById)
    document.getElementById = function() { return null; }

function initializeMenuR(menuId, actuatorId) {
    var menu = document.getElementById(menuId);
    var actuator = document.getElementById(actuatorId);

    if (menu == null || actuator == null) return;

    //if (window.opera) return; // I'm too tired

    actuator.onclick = function() {
        var display = menu.style.display;
								myactive = getActiveStyleSheet();
								  switch (myactive) {											
												case 'Contrast' : 
													this.parentNode.style.backgroundImage =
            (display == "block") ? "url(css/img/arrow_blu1.gif)" : "url(css/img/dwn-arrow_blu1.gif)";
														break;
												case 'Contrast+' : 
													this.parentNode.style.backgroundImage =
            (display == "block") ? "url(css/img/arrow_blu1.gif)" : "url(css/img/dwn-arrow_blu1.gif)";
														break;
												case 'Contrast++' : 
													this.parentNode.style.backgroundImage =
            (display == "block") ? "url(css/img/arrow_blu1.gif)" : "url(css/img/dwn-arrow_blu1.gif)";
														break;						
												default :
													this.parentNode.style.backgroundImage =
            (display == "block") ? "url(css/img/arrow_blu1.gif)" : "url(css/img/dwn-arrow_blu1.gif)";		
										}

        menu.style.display = (display == "block") ? "none" : "block";

        return false;
    }
}

function initializeMenuL(menuId, actuatorId) {
    var menu = document.getElementById(menuId);
    var actuator = document.getElementById(actuatorId);

    if (menu == null || actuator == null) return;

    //if (window.opera) return; // I'm too tired

    actuator.onclick = function() {
        var display = menu.style.display;

        menu.style.display = (display == "block") ? "none" : "block";

        return false;
    }
}





