
/* Inserire il numero di banner da far girare
   al posto del 2 che trovate inserito in questo esempio alla 
   voce : number_of_sponsors=2;  */

defaultStatus="";
//number_of_sponsors=0;

var sctr=-1;
var isn=new Array();



/*  Qui sotto il timer che regola il tempo fra un cambio 
	banner e l'altro, è espresso in millisecondi. 
	Al momento è impostato a 10 secondi: 10000
	(ovviamente 5000=5 secondi,  30000 = 30 sec, ecc ecc)
    Per cui, volendo ridurre o aumentare il tempo, si dovrà incrementare
	o decrementare questo numero. */

function rotateIt(){
  sctr++;
  if (sctr>number_of_sponsors-1){
   sctr=0;
   }
 /* $('#sfondo').fadeOut('slow', function(){
            document.getElementById("sfondo").style.background = isn[sctr];
            document.getElementById("prodotto").innerHTML = desc[sctr];
            document.getElementById("designer").innerHTML = pers[sctr];
            document.getElementById("motto").innerHTML = motto[sctr];
            $('#sfondo').fadeIn('slow');
            });*/
   $('#sfondo').fadeOut('fast', function() {
   document.getElementById("sfondo").style.background = isn[sctr];
   $('#sfondo').fadeIn('fast');
            });

  setTimeout("rotateIt()",5000);
}

