<!--
   //menu
   var curmenu=0
   var curid=0
   var mnurl=new Array()
   var mnpat=new Array()
   var mndes=new Array()
   var mnenb=0 //=1 forza enable del menu corrente

   mx=0; mnurl[mx]="index.asp";    mnpat[mx]="";	mndes[mx]="CALENDARIO"
   mx++; mnurl[mx]="page.html";    mnpat[mx]="ass";	mndes[mx]="ASSOCIAZIONE"
   mx++; mnurl[mx]="page.html";    mnpat[mx]="cnt";	mndes[mx]="CONTATTI"
   mx++; mnurl[mx]="archivio.asp"; mnpat[mx]="";	mndes[mx]="ARCHIVIO"
   mx++; mnurl[mx]="page.html";    mnpat[mx]="lnk";	mndes[mx]="LINK"

   //colore
   var colrgb=new Array()
   colrgb[0]="rgb(200,200,200)"
   colrgb[1]="rgb(127,160,197)"
   colrgb[2]="rgb(244,145,52)"
   var colore=parseFloat(document.cookie.substr(document.cookie.indexOf("csc-colore=")+11,1))
   if(isNaN(colore))colore=0

   function ScriviMenu() {
   	//menu cambia colore
   	document.write('<div style="height:85">')
   		document.write('<table><tr>')
   		document.write('<td style="width:530">&nbsp;</td>')
   		for(i=0;i<colrgb.length;i++){
   			document.write('<td style="border-left:solid 5px rgb(255,255,255)">')
   			tmpsty="width:15;height:15;border:solid 2px rgb(180,180,180);background-color:"+colrgb[i]
   			tmpsty=""
   			tmpeve=""
   			if(i!=colore){
   				tmpsty+="cursor:pointer"
   				tmpeve="onclick='javascript:CambiaColore("+i+");return true'"
   			}
   			document.write('<div style="'+tmpsty+'" '+tmpeve+'><img src="img/btco'+i+'.gif" alt=""/><\/div>')
   			document.write('<\/td>')
        	}
   		document.write('<\/tr><\/table>')
   	document.write('<\/div>')
   	//menu
   	document.write('<div>')
   		document.write('<table><tr>')
   		document.write('<td style="width:50">&nbsp;</td>')
   		for(i=0;i<mnurl.length;i++){
   			document.write('<td>')
   			document.write('<div class="boxmnu">')
   			if(i==curmenu&&mnenb==0) document.write('<span class="lnkmnuh">')
   			if(i!=curmenu||mnenb==1) document.write('<a class="lnkmnu" href="'+mnurl[i]+'?menu='+i+'">')
			document.write('&nbsp;'+mndes[i]+'&nbsp;')
   			if(i==curmenu&&mnenb==0) document.write('<\/span>')
   			if(i!=curmenu||mnenb==1) document.write('<\/a>')
   			document.write('<\/div>')
   			document.write('<\/td>')
   			document.write('<td style="width:10">&nbsp;</td>')
        	}
   		document.write('<\/tr><\/table>')
   	document.write('<\/div>')
   }

   function InfoHi(xhi,xchi) {
   	if(xhi) document.images["info"+xchi].src="img/btinfh.gif"
   	if(!xhi) document.images["info"+xchi].src="img/btinf.gif"
   }
   function InfoGo(xid) {
   	tmpmenu=0
   	for(i=0;i<mnurl.length;i++) if(mnurl[i]=="archivio.asp") tmpmenu=i
   	return "archivio.asp?menu="+tmpmenu+"&id="+xid
   }
   function Trim(tmps){
  	return tmps.replace(/^\s+/,"").replace(/\s+$/,"");
   }
   function CambiaColore(xchi){
    	date=new Date()
    	date.setTime(date.getTime()+(365*24*60*60*1000));
  	document.cookie = name+"csc-colore="+xchi+"; expires="+date.toGMTString()
  	top.location=mnurl[curmenu]+"?menu="+curmenu+"&id="+curid
   }

//-->

