<!--
  //LAYOUT GRAFICO
  function ScriviPaginaStd(){

  	//cornice
        tmpw=cL; for(i=0;i<cwid.length;i++) tmpw+=cwid[i]
    	document.write('<div style="position:absolute;top:0;left:0;width:'+tmpw+';height:'+(cH+cB+cB)+';background-color:rgb(23,23,23)">')
    	document.write('<div style="position:absolute;top:'+cB+';left:0;width:'+tmpw+';height:'+cH+';background-color:rgb(255,255,255)">')
        document.write('<table style="width:'+tmpw+';height:'+cH+'"><tr>')

 	document.write('<td style="width:'+cL+'"><img src="img/blk.gif" alt="" \/><\/td>')

        //capitoli
        for(i=0;i<cwid.length;i++){
  		//banda divisorio capitoli
 		document.write('<td style="width:3;background-color:'+bC+'"><img src="img/blk.gif" alt="" \/><\/td>')
 		document.write('<td style="width:20"><img src="img/blk.gif" alt="" \/><\/td>')
 		document.write('<td>')
 			document.write('<table style="width:'+(cwid[i]-40)+';height:'+cH+'"><tr>')
  			//immagine
  			if(cimg[i]!=""&&cimg[i]!=undefined){
  				document.write('<td class="txt" style="text-align:justify;vertical-align:middle">')
  				if(clnk[i]!=""&&clnk[i]!=undefined) document.write(ScriviLnk(i))
  				tmpalt="";if(clnk[i]!=""&&clnk[i]!=undefined) tmpalt=clnkdes[i]
  				document.write('<img src="img/'+mn1pat[liv1]+'/'+cimg[i]+'" alt="'+tmpalt+'" \/>')
  				if(clnk[i]!=""&&clnk[i]!=undefined) document.write('<\/a>')
  				document.write('<\/td>')
  			}
 			document.write('<td style="width:20"><img src="img/blk.gif" alt="" \/><\/td>')
  			//testo
  			document.write('<td class="txt" style="text-align:justify;vertical-align:middle">')
        		if(ctxt[i]!=""&&ctxt[i]!=undefined) document.write(ctxt[i])
  			if(clnk[i]!=""&&clnk[i]!=undefined) document.write('<br\/>'+ScriviLnk(i)+clnkdes[i]+'<\/a>')
  			document.write('<\/td>')
  			if(cimg[i]==""||cimg[i]==undefined) document.write('<td style="width:30"><img src="img/blk.gif" alt="" \/><\/td>')
  			document.write('<\/tr><\/table>')
  		document.write('<\/td>')
 		document.write('<td style="width:20"><img src="img/blk.gif" alt="" \/><\/td>')
  	}

        document.write('<\/tr><\/table>')
    	document.write('<\/div>')
    	document.write('<\/div>')

	//vai inizio
  	document.write('<div style="position:absolute;top:0;left:'+tmpw+';width:50;height:'+(cH+cB+cB)+';background-color:rgb(23,23,23);color:rgb(255,255,255)">')
  	document.write('<a class="lnk2" href="#inizio" style="font-size:18px" onmouseover="javascript:window.status=\'\';return true"><b>&lt;&lt;<\/b><\/a>')
  	document.write('<\/div>')
  }

  //LAYOUT MAPPA
  function ScriviPaginaStdM(){
        //capitoli
        for(i=0;i<cwid.length;i++){
		document.write('<div class="txt1" style="vertical-align:bottom;background-color:rgb(230,230,230)">'+mn1des[liv1]+'&nbsp;&sect;&nbsp;'+(i+1)+'<\/div>')
        	document.write('<div style="border: solid 1px rgb(200,200,200)">')
        	document.write('<table style="height:200;border: solid 10px rgb(255,255,255);background-color:rgb(255,255,255)">')
 		document.write('<tr><td style="height:50"><img src="img/blk.gif" alt="" \/><\/td><\/tr>')
  		//immagine
  		if(cimg[i]!=""&&cimg[i]!=undefined){
  			document.write('<tr><td class="txt">')
  			if(clnk[i]!=""&&clnk[i]!=undefined) document.write(ScriviLnk(i))
  			tmpalt="";if(clnk[i]!=""&&clnk[i]!=undefined) tmpalt=clnkdes[i]
  			document.write('<img src="img/'+mn1pat[liv1]+'/'+cimg[i]+'" alt="'+tmpalt+'" \/>')
  			if(clnk[i]!=""&&clnk[i]!=undefined) document.write('<\/a>')
  			document.write('<\/td><\/tr>')
  		}
 		document.write('<tr><td style="height:20"><img src="img/blk.gif" alt="" \/><\/td><\/tr>')
  		//testo
  		document.write('<td class="txt" style="text-align:center">')
        	document.write('<div style="width:400;text-align:justify">')
        	if(ctxt[i]!=""&&ctxt[i]!=undefined) document.write(ctxt[i])
  		if(clnk[i]!=""&&clnk[i]!=undefined) document.write('<br\/>&raquo;&nbsp;'+ScriviLnk(i)+clnkdes[i]+'<\/a>')
  		document.write('<\/div>')
  		document.write('<\/td><\/tr>')
 		document.write('<tr><td style="height:50"><img src="img/blk.gif" alt="" \/><\/td><\/tr>')
	       	document.write('<\/table>')
        	document.write('<\/div>')
		document.write('<div style="height:50;background-color:rgb(230,230,230)">&nbsp;<\/div>')
  	}

	//vai inizio
	document.write('<div style="background-color:rgb(230,230,230);text-align:center">')
  	document.write('<a class="lnk" href="#inizio">[inizio]<\/a>')
  	document.write('<br\/><br\/><br\/>')
        document.write('<\/div>')
	document.write('<div style="height:50">&nbsp;<\/div>')
  }

  //scrivi link (pop o nuova pagina)
  function ScriviLnk(xchi) {
  	if(clnkpop[xchi]!=""&&clnkpop[xchi]!=undefined){
 		tmps='<a class="lnk1" href="Javascript:void(0)" onclick="Javascript:ApriPop('+xchi+');return true">'
  	}else{
 		if(clnk[xchi].substr(0,7)=="http://"){
 			tmps='<a class="lnk1" href="'+clnk[xchi]+'" target="_blank">'
 		}else{
 			tmps='<a class="lnk1" href="'+clnk[xchi]+'">'
 		}
  	}
  	return tmps
  }
  //pop
  function ApriPop(xchi) {
 	if(clnk[xchi].substr(0,7)=="http://") tmplnk=clnk[xchi]
 	else tmplnk=mn1pat[liv1]+"/"+clnk[xchi]
	W2=window.open(tmplnk,"",clnkpop[xchi])
	W2.focus()
  }

//-->

