<!--
	var t
	var id_riga=""
	var cod_pre=""
	var HTTP=createRequestObject()
					
	function spostaDiv(id,codice,albero) {
		clearTimeout(t)
		document.getElementById('menuPanel').innerHTML = ""
		if(id_riga!=""){
			document.getElementById("Rig" + id_riga).style.background='#FFFFFF'
			document.getElementById(cod_pre).style.color='#000000'
		}
		id_riga=id
		cod_pre=codice
		document.getElementById("Rig" + id).style.background='#9E1C38'
		document.getElementById(codice).style.color='#FFFFFF'
		sndReq(codice,albero)
		document.getElementById("menuPanel").style.top=132 + 18*id
		document.getElementById("menuPanel").style.zIndex=1
		document.getElementById("menuPanel").style.visibility="visible"
	}
					
	function hideDiv(){
		t=setTimeout("timeoutMenu()",500)
	}
					
	function timeoutMenu(){
		document.getElementById("menuPanel").style.visibility="hidden"
		if(id_riga!=""){
			document.getElementById("Rig" + id_riga).style.background='#FFFFFF'
			document.getElementById(cod_pre).style.color='#000000'
		}
	}
					
	function createRequestObject() {
    	var ro;
    	var browser = navigator.appName;
    	if(browser == "Microsoft Internet Explorer"){
        	ro = new ActiveXObject("Microsoft.XMLHTTP");
    	}else{
        	ro = new XMLHttpRequest();
    	}
    	return ro;
	}

	function sndReq(codice,albero) {
		var now= new Date();
			
    	HTTP.open('GET', 'gestMenu.php?cod=' + codice + '&desc_cat_web=' + albero + '&date=' + now, true);
		HTTP.onreadystatechange=function(){handleResponse()};
		HTTP.send("");
	}
					
	function handleResponse(){
		if(HTTP.readyState == 4){
			var response = HTTP.responseText;
      		document.getElementById('menuPanel').innerHTML = response;
   		}
	}
//-->