

number_of_sponsors=3;

var sctr=0;
var halt=0;
var isn=new Array();
for (i=0;i<number_of_sponsors;i++){
 isn[i]=new Image();
}


isn[0].src="http://www.appuntisuldigitalvideo.it/images/asdv2.gif";
isn[1].src="http://www.cinemaindipendente.it/banner/bannercorsi2.gif";
isn[2].src="http://www.cinemaindipendente.it/banner/docvideo.jpg";



/* Finally, replace the URL's below with those of
   your sponsors IN THE SAME ORDER. */
   
var durl=new Array();
durl[0]="http://www.appuntisuldigitalvideo.it";
durl[1]="http://www.cinemaindipendente.it/corsi";
durl[2]="http://www.docvideo.it";






/* This script is set to rotate every 10 seconds.
   (5000=5 seconds, so 30000 would equal 30, etc)
   You should change the number in the setTimeout()
   call below for the number of seconds you wish. */
   
function rotateIt(){
 if (halt!=1){
  sctr++;
  if (sctr>number_of_sponsors-1){
   sctr=0;
   }
  document.sponsor.src=isn[sctr].src;
  setTimeout("rotateIt()",20000);
  }
 }

/* This code will work just fine with or without
   frames.  However, if you are in frames and wish
   to replicate the TARGET="_top" call to remove
   frames, change the location.href call to:
    parent.location.href=durl[sctr];
   below. */

function doIt(){
 halt=1;
//parent.location.href=durl[sctr];
var ciccio=durl[sctr];
parent.location.href="banner/rotator.asp?id=" + ciccio;
 }

function dispIt(){
parent.window.status=durl[sctr];
 }
// End Hiding -->
