<!--
  //PAGINA GENERALE
  document.write('<div id="div0" style="position:absolute;top:0;left:0;height:262;width:680;background-color:rgb(255,255,255)">')
  	//logo
  	document.write('<div id="logos" style="position:absolute;top:-10;left:0;width:420;height:282"><a id="inizio">&nbsp;<\/a><\/div>')
  	document.write('<div id="logo1"  style="position:absolute;top:-10;left:150;width:226;height:282;background-image:url(\'img/logo1.jpg\');visibility:hidden">&nbsp;<\/div>')
  	document.write('<div id="logo2"  style="position:absolute;top:-10;left:150;width:226;height:282;background-image:url(\'img/logo2.jpg\')">&nbsp;<\/div>')
  	document.write('<div id="logot" style="position:absolute;top:0;left:400;width:51;height:262;background-image:url(\'img/logo3.jpg\')">&nbsp;<\/div>')
  	document.write('<div style="position:absolute;top:97;left:343;width:20;height:20;cursor:pointer" onclick="JavaScript:Luce();return true">&nbsp;<\/div>')

  	//menu
  	document.write('<div class="txt" style="position:absolute;top:0;left:460">')
		for(i=0;i<mn1des.length;i++){
			if(i==liv1){
				document.write('<img src="img/'+mn1pat[i]+'/mn1h.jpg" alt="" \/><br\/>')
			}else if(mn1enb[i]==0){
				document.write('<img src="img/'+mn1pat[i]+'/mn1.jpg" alt="in costruzione" \/><br\/>')
			}else{
  				tmpurl="00"+i; tmpurl=tmpurl.substr(tmpurl.length-2)
  				tmpurl=mn1url[i]+'?'+tmpurl
				document.write('<a href="'+tmpurl+'" onmouseover="JavaScript:Mnu1Hi(true,'+i+');window.status=\''+mn1des[i]+'\';return true" onmouseout="JavaScript:Mnu1Hi(false,'+i+');window.status=\'\';return true">')
				document.write('<img id="imnu1'+i+'" src="img/'+mn1pat[i]+'/mn1.jpg" alt="'+mn1des[i]+'" \/>')
				document.write('<\/a><br\/>')
        		}
        	}
 	document.write('<\/div>')

 	//mappa
  	document.write('<div class="txt" style="position:absolute;top:244;left:460">')
  	tmpurl="00"+liv1; tmpurl=tmpurl.substr(tmpurl.length-2)
  	tmpurl="mappa.html?"+tmpurl
	document.write('<a class="lnk1" href="'+tmpurl+'">mappa<\/a>')
 	document.write('<\/div>')

    	//titolo pagina verticale
    	document.write('<div style="position:absolute;top:-10;left:620;width:60;height:282;text-align:center;background-color:rgb(23,23,23)">')
    	document.write('<img id="titolo" src="img/'+mn1pat[liv1]+'/titolo.jpg" alt="" \/>')
    	document.write('<\/div>')

  	//pagina
  	document.write('<div style="position:absolute;top:0;left:680">')
  		ScriviPagina()
  	document.write('<\/div>')
  document.write('<\/div>')
  Resize0()
  Luce()

  //FUNZIONI
  function Luce() {
  	document.getElementById("logo1").style.visibility="hidden"
  	document.getElementById("logo2").style.visibility="hidden"
  	if(mn1pat[liv1]=="rip"){
  		document.getElementById("corvi1").style.visibility="hidden"
  		document.getElementById("corvi1h").style.visibility="hidden"
  		document.getElementById("corvi2").style.visibility="hidden"
  		document.getElementById("corvi2h").style.visibility="hidden"
  		}
  	if(stato_luce){
  		document.getElementById("logo2").style.visibility="visible"
  		document.getElementById("logos").style.backgroundColor="rgb(23,23,23)"
  		document.getElementById("body").style.backgroundColor="rgb(80,80,80)"
  		document.images["titolo"].src="img/"+mn1pat[liv1]+"/titolo.jpg"
  		if(mn1pat[liv1]=="rip"){
  			document.getElementById("corvi1").style.visibility="visible"
  			document.getElementById("corvi2").style.visibility="visible"
  		}
  		stato_luce=false
        }else{
  		document.getElementById("logo1").style.visibility="visible"
  		document.getElementById("logos").style.backgroundColor="rgb(255,255,255)"
  		document.getElementById("body").style.backgroundColor="rgb(255,255,255)"
  		document.images["titolo"].src="img/"+mn1pat[liv1]+"/titoloh.jpg"
  		if(mn1pat[liv1]=="rip"){
  			document.getElementById("corvi1h").style.visibility="visible"
  			document.getElementById("corvi2h").style.visibility="visible"
  		}
  		if(mn1pat[liv1]=="inf"){
  			document.getElementById("msgluce").style.visibility="hidden"
  		}
        	stato_luce=true
        }
    	date=new Date()
    	date.setTime(date.getTime()+(365*24*60*60*1000));
  	document.cookie = name+"luce="+stato_luce+"; expires="+date.toGMTString()
  }
  function Resize0(){
        tmptop=(rH() - 262) / 2
        if(tmptop<10) tmptop=10
        document.getElementById("div0").style.top=tmptop
  }
  function rH(){
	return (window.innerHeight)?window.innerHeight:
		(document.documentElement.clientHeight)?document.documentElement.clientHeight:
		(document.body.clientHeight)?document.body.clientHeight:0;
  }
  function Mnu1Hi(hi,chi){
   	if(hi){
		document.images["imnu1"+chi].src="img/"+mn1pat[chi]+"/mn1h.jpg"
	}else{
		document.images["imnu1"+chi].src="img/"+mn1pat[chi]+"/mn1.jpg"
        }
  }


//-->

