///////////////////PRIMO BANNER
icone = new Array(
				  "immagini/banner/controls.gif"
				  );
				

collegamento = new Array(
						 "http://www.controls.it"
						 );
			             
						 
curDate = new Date();
curSec = curDate.getSeconds();
numeroimg = curSec % icone.length;
temporizzatore = 0;

function ruota1(){
  numeroimg = numeroimg + 1;
  if (numeroimg >= icone.length) {
    numeroimg = 0;
    }
  document.rotante1.src = icone[numeroimg];
  temporizzatore = setTimeout("ruota1()",3000);
}

function salta1(){
  //clearTimeout(temporizzatore);
  window.open(collegamento[numeroimg]);
  //riprendi(ruota1);
  }
///////////////////SECONDO BANNER
icone2 = new Array(
	   	 	 	   "immagini/banner/zwikroell.gif"								 
                   );
				   
collegamento2= new Array(
						 "http://www.zwickroell.com"
						 );
						 
curDate = new Date();
curSec = curDate.getSeconds();
numeroimg2 = curSec % icone.length;
temporizzatore2 = 0;

function ruota2(){
  numeroimg2 = numeroimg2 + 1;
  if (numeroimg2 >= icone2.length) {
    numeroimg2 = 0;
    }
  document.rotante2.src = icone2[numeroimg2];
  temporizzatore2 = setTimeout("ruota2()",3000);
}

function salta2(){
  //clearTimeout(temporizzatore2);
  window.open(collegamento2[numeroimg2]);
}

///////////////////TERZO BANNER
icone3 = new Array(
	   	 	 	  "immagini/banner/skydomus.gif",
				  "immagini/banner/macanimnew.gif"
				  );

collegamento3= new Array(
				         "http://www.skydomus.com",
						 "http://www.beniculturali-patrimoni.it/mac"
						 );
curDate = new Date();
curSec = curDate.getSeconds();
numeroimg3 = curSec % icone.length;
temporizzatore3 = 0;

function ruota3(){
  numeroimg3 = numeroimg3 + 1;
  if (numeroimg3 >= icone3.length) {
    numeroimg3 = 0;
    }
  document.rotante3.src = icone3[numeroimg3];
  temporizzatore3 = setTimeout("ruota3()",3000);
}

function salta3(){
  //clearTimeout(temporizzatore3);
  window.open(collegamento3[numeroimg3]);
}
						
///////////////////QUARTO BANNER
icone4 = new Array(
	   	 	 	  "immagini/banner/cire.gif"
				  );

collegamento4 = new Array(
			  	          "http://www.cireimmobiliare.com"
						  );
			             
						
curDate = new Date();
curSec = curDate.getSeconds();
numeroimg4 = curSec % icone.length;
temporizzatore4 = 0;

function ruota4(){
  numeroimg4 = numeroimg4 + 1;
  if (numeroimg4 >= icone4.length) {
    numeroimg4 = 0;
    }
  document.rotante4.src = icone4[numeroimg4];
  temporizzatore4 = setTimeout("ruota4()",3000);
}

function salta4(){
  //clearTimeout(temporizzatore4);
  window.open(collegamento4[numeroimg4]);
 
  }
  
  ///////////////////QUINTO BANNER
icone5 = new Array(
	   	 	 	  "immagini/banner/ranieri.gif"
				  );

collegamento5 = new Array(
			  	          "http://www.fondazioneranieri.org"
						  );
			             
						
curDate = new Date();
curSec = curDate.getSeconds();
numeroimg5 = curSec % icone.length;
temporizzatore5 = 0;

function ruota5(){
  numeroimg5 = numeroimg5 + 1;
  if (numeroimg5 >= icone5.length) {
    numeroimg5 = 0;
    }
  document.rotante5.src = icone5[numeroimg5];
  temporizzatore5 = setTimeout("ruota5()",3000);
}

function salta5(){
  //clearTimeout(temporizzatore5);
  window.open(collegamento5[numeroimg5]);
 
  }
  
  ///////////////////SESTO BANNER
icone6 = new Array("immagini/banner/lungarotti.gif"
	   	 	 		
	   	 	 	  );

collegamento6 = new Array("http://www.lungarotti.it"
			              
			  	          );
			             
						
curDate = new Date();
curSec = curDate.getSeconds();
numeroimg6 = curSec % icone.length;
temporizzatore6 = 0;

function ruota6(){
  numeroimg6 = numeroimg6 + 1;
  if (numeroimg6 >= icone6.length) {
    numeroimg6 = 0;
    }
  document.rotante6.src = icone6[numeroimg6];
  temporizzatore6 = setTimeout("ruota6()",3000);
}

function salta6(){
  //clearTimeout(temporizzatore6);
  window.open(collegamento6[numeroimg6]);
 
  }

