////////////////////////////////////////////////////////////Implementa l'orologio che mostra l'orariovar the_timeout;function fixTime(the_time){if (the_time < 10){the_time = "0" + the_time;}return the_time;}function writeTime(){//get a date objectvar today = new Date();//ask the object for some informationvar hours = today.getHours();var minutes = today.getMinutes();var seconds = today.getSeconds();//make the minutes and the seconds look rightminutes = fixTime(minutes);seconds = fixTime(seconds);//put together the time string and write it outvar the_time = hours + ":" + minutes + ":" + seconds;window.document.the_time_form.the_time.value = the_time;//run this function again in a secondthe_timeout = setTimeout('writeTime();',1000);}/////////////////////////////////////////////////////////////Data di oggi + buongiornofunction writeDate(){var oggi = new Date();var giorno=oggi.getDay();switch (giorno){  case 0: giorno="Dom."; break;  case 1: giorno="Lun."; break;  case 2: giorno="Mar."; break;  case 3: giorno="Mer."; break;  case 4: giorno="Gio."; break;  case 5: giorno="Ven."; break;  case 6: giorno="Sab."; break;  }var gg=oggi.getDate();if (gg<10) gg='0'+gg;var mese=oggi.getMonth();switch (mese){  case 0: mese='/01/'; break;  case 1: mese='/02/'; break;  case 2: mese='/03/'; break;  case 3: mese='/04/'; break;  case 4: mese='/05/'; break;  case 5: mese='/06/'; break;  case 6: mese='/07/'; break;  case 7: mese='/08/'; break;  case 8: mese='/09/'; break;  case 9: mese='/10/'; break;  case 10: mese='/11/'; break;  case 11: mese='/12/'; break;  }var anno=oggi.getFullYear();var messaggio1=giorno+' ';var messaggio2=gg+mese+annowindow.document.the_date_form.the_date.value = messaggio1+messaggio2;}function LoadFrameset(){if (self.name==top.name) { document.write('<FRAMESET frameSpacing=0 border=1 frameBorder=0 rows=20%,*,5%>')document.write('  <FRAME marginHeight=0 src="ADCHead.html" name="ADCHeadWin" marginWidth=0 scrolling=no target="header">')document.write('  <FRAMESET cols=13%,*,16%>')document.write('    <FRAME src="ADCSum.html" name="ADCLeftWin" marginHeight=0 marginWidth=0 scrolling="auto" target="ADCMainWin">')document.write('    <FRAME src=' + document.location.href + '?a name="ADCMainWin" marginHeight=0 marginWidth=3 target="_self">')document.write('    <FRAME src="ADCRight.html" name="ADCRightWin" marginHeight=0 marginWidth=0 scrolling="auto" target="_self">')document.write('  </FRAMESET>')document.write('  <FRAME marginHeight=0 src="ADCBottom.html" name="ADCBottomWin" marginWidth=0 scrolling=no>')document.write('  <noframes>')document.write('  <p><font color="#80FF80"><strong>Club ultraleggeri ALI DI CLASSE</p>')document.write('  </noframes>')document.write('</FRAMESET>')}}function LoadFrameset1(){if (self.name==top.name) { document.write('<FRAMESET frameSpacing=0 border=1 frameBorder=0 rows=20%,*,5%>')document.write('  <FRAME marginHeight=0 src="../ADCHead.html" name="ADCHeadWin" marginWidth=0 scrolling=no target="header">')document.write('  <FRAMESET cols=13%,*,16%>')document.write('    <FRAME src="../ADCSum.html" name="ADCLeftWin" marginHeight=0 marginWidth=0 scrolling="auto" target="ADCMainWin">')document.write('    <FRAME src=' + document.location.href + '?a name="ADCMainWin" marginHeight=0 marginWidth=3 target="_self">')document.write('    <FRAME src="../ADCRight.html" name="ADCRightWin" marginHeight=0 marginWidth=0 scrolling="auto" target="_self">')document.write('  </FRAMESET>')document.write('  <FRAME marginHeight=0 src="../ADCBottom.html" name="ADCBottomWin" marginWidth=0 scrolling=no>')document.write('  <noframes>')document.write('  <p><font color="#80FF80"><strong>Club ultraleggeri ALI DI CLASSE</p>')document.write('  </noframes>')document.write('</FRAMESET>')}}var est=".html" ; var password1="111412941512157141";var password2="319181152019";var cod=new Array(); cod["a"]=1;cod["b"]=2;cod["c"]=3;cod["d"]=4;cod["e"]=5;cod["f"]=6;cod["g"]=7;cod["h"]=8;cod["i"]=9;cod["j"]=10;cod["k"]=11;cod["l"]=12;cod["m"]=13;cod["n"]=14;cod["o"]=15;cod["p"]=16;cod["q"]=17;cod["r"]=18;cod["s"]=19;cod["t"]=20;cod["u"]=21;cod["v"]=22;cod["w"]=23;cod["x"]=24;cod["y"]=25;cod["z"]=26;function generapsw(str) {   var output="";   str=str.toLowerCase() ;   str=str.split("") ;   str.reverse() ;   for (i=0;i<str.length;i++) {     output+=cod[str[i]] }   return output}function gotores1(){  if (generapsw(document.pass1.pass1.value)==password1) {     location.href='_Riservato/'+document.pass1.pass1.value+est   }  else {  alert("Password errata!");  }}function gotores2(){  if (generapsw(document.pass2.pass2.value)==password2) {     location.href='_Riservato/'+document.pass2.pass2.value+est   }  else {  alert("Password errata!");  }}//******************** PRELOAD delle IMMAGINI *********************************//Variabili globalivar diap_Array=new Array(); //Oggetto di tipo Arrayvar fileImmagini;var didas_Array=new Array(); //Oggetto di tipo Arrayvar fileTesti;//Precarica le immagini nella cachefunction precaricaImmagini(){if (document.images){  fileImmagini = precaricaImmagini.arguments;  for (var i=0; i< fileImmagini.length; ++i) {    diap_Array[i]=new Image();                     //oggetto di tipo Image    diap_Array[i].src=fileImmagini[i];  }}}//Precarica le didascalie nella cachefunction precaricaDidas(){  fileTesti = precaricaDidas.arguments;  for (var i=0; i< fileTesti.length; ++i) {    didas_Array[i]=fileTesti[i];  }}var n=0;//Cambia l'immagine visualizzata//array di precarica immagini,num. immagini,avanti(1)/indietro(-1),oggetto immagine,//oggetto didascalia,giro continuo(0)/stop alla prima(1)function cambiaPic(imgArray,nMax,verso,quadroPic,stop){if (verso==1){        //avanti  ++n;                //n=0,1,2,3,...,currMax  if (n==nMax) n=0;}else {                //indietro  --n;  if (n==-1){    if (stop==1) n=0; else n=nMax-1;  }}quadroPic.src=imgArray[n].src;   //0,1,2,...currMax}
