/*
 * menuTree2.js - implements an expandable menu based on a HTML list
 */
if (!document.getElementById)
    document.getElementById = function() { return null; }

function initializeTree(menuId, actuatorId)
{
    var menu = document.getElementById(menuId);         //TAG UL
    var actuator = document.getElementById(actuatorId); //TAG IMG che visualiiza gli altri link

    actuator.style.backgroundImage = "url(/images/icon/plus.gif)";

    if (menu == null || actuator == null) return;
    //if (window.opera) return; //
    actuator.onclick = function()
	{
         var display = menu.style.display;
		 this.style.backgroundImage = (display == "block") ? "url(/images/icon/plus.gif)" : "url(/images/icon/minus.gif)";
         menu.style.display = (display == "block") ? "none" : "block"; 
         return false;
    }
}




