<!--
eventochiudi=null;

var brwsie4=document.all;
var brwsns6=document.getElementById;
var brwsns4=document.layers;

var tempX;
var tempY;

var xMousePos = 0; // Horizontal position of the mouse on the screen
var yMousePos = 0; // Vertical position of the mouse on the screen
var xMousePosMax = 0; // Width of the page
var yMousePosMax = 0; // Height of the page

if (document.layers) { // Netscape
    document.captureEvents(Event.MOUSEMOVE);
    document.onmousemove = captureMousePosition;
} else if (document.all) { // Internet Explorer
    document.onmousemove = captureMousePosition;
} else if (document.getElementById) { // Netscape 6
    document.onmousemove = captureMousePosition;
}

function captureMousePosition(e) {
    if (document.layers) {
        xMousePos = e.pageX;
        yMousePos = e.pageY;
        xMousePosMax = window.innerWidth+window.pageXOffset;
        yMousePosMax = window.innerHeight+window.pageYOffset;
    } else if (document.all) {
        xMousePos = window.event.x+document.body.scrollLeft;
        yMousePos = window.event.y+document.body.scrollTop;
        xMousePosMax = document.body.clientWidth+document.body.scrollLeft;
        yMousePosMax = document.body.clientHeight+document.body.scrollTop;
    } else if (document.getElementById) {
        xMousePos = e.pageX;
        yMousePos = e.pageY;
        xMousePosMax = window.innerWidth+window.pageXOffset;
        yMousePosMax = window.innerHeight+window.pageYOffset;
    }
}

function chiudilivello(nomelivello){
	eventochiudi=setTimeout("MM_showHideLayers('"+nomelivello+"','','hide')",100);
}


function mostralivello() {
	if(eventochiudi) {
		clearTimeout(eventochiudi);
	}

}

function MostraLivelloMenu(posizioneX,posizioneY,nomelivello,nomelivelloOver,target) { //v3.0

   var args=MostraLivelloMenu.arguments;
   //alert (args[2])
   var contenutomiolivello2 = "";
//fine if per vedere se il link contiene sottomenų
 if ( args[2] == undefined ) {
   var contenutomiolivello = "";
 } else {  
//codice x costruire la tabella dal sottomenų
   for ( i=4; i<args.length; i=i+3)  {
      contenutomiolivello2 = contenutomiolivello2 + 
                              "<tr>"+
                                 "<td width=5><img src=../img/shim.gif width=5 height=20></td>"+
                                 "<td class=etichetta><a href="+args[i+1]+" target="+args[i+2]+" >"+args[i]+"</a></td>"+
								 "<td width=5><img src=../img/shim.gif width=5 height=20></td>"+
                              "</tr>"

     }
   
	mostralivello();
	
	tempX = xMousePos + 0;
	tempY = yMousePos + 0;

	if (tempX>(xMousePosMax/2)) {
		tempX = xMousePos-200;
	}

    var contenutomiolivello1 = "<div id='"+nomelivelloOver+"' style='position:absolute; top:" + posizioneY + "; left:" + posizioneX + "; visibility: show; z-index:14;'>"+
							   "<table width=150 border=0 cellspacing=0 cellpadding=0 onMouseOver='mostralivello()' onMouseOut=chiudilivello('"+nomelivelloOver+"')>"+
							    "<tr>"+
							      "<td> "+
							        "<table width=100% border=0 cellpadding=0 cellspacing=0 class=sottoMenu>"
    
    var contenutomiolivello3 =      "</table></td>"+
							      "<td width=5 align=left valign=top background=../img/sottomenu-ombra-dx.gif><img src=../img/sottomenu-ang-up.gif width=5 height=10></td>"+
							    "</tr>"+
							    "<tr>"+
							      "<td height=5 align=left valign=top background=../img/sottomenu-ombra-down.gif><img src=../img/sottomenu-ang-downsx.gif width=11 height=5></td>"+		
							      "<td align=left valign=top><img src=../img/sottomenu-ang-downdx.gif width=5 height=4></td>"+
							    "</tr>"+
							   "</table>"+
							   "</div>"; 

	var contenutomiolivello = contenutomiolivello1 + contenutomiolivello2 + contenutomiolivello3; 
//fine codice x tabella sottomenų
   }
//fine if per vedere se il link contiene sottomenu
	
	if(brwsie4||brwsns6){
		if(brwsie4){
  			var ilmiolivello=document.all.miolivello;}
 		if(brwsns6){
 			var ilmiolivello=document.getElementById("miolivello");}
			ilmiolivello.innerHTML= contenutomiolivello;}
		
		else if(brwsns4){
			var ilmiolivello=document.miolivellons;
			ilmiolivello.document.write(contenutomiolivello);
			ilmiolivello.document.close();
	}
}


// -->
