var urlArray = new Array(5); //for URL's, increase size as necessaryvar banArray = new Array(5); //for banners, increase size as necessaryvar counter = 1;var url = ""; //initial URL//add your necessary URL'surlArray[0] = "";urlArray[1] = "";urlArray[2] = "";urlArray[3] = "";urlArray[4] = "";if(document.images) //pre-load all banner images{  for(i = 0; i < 5; i++)  {    banArray[i] = new Image(350, 50);    banArray[i].src = "images/topbanners/ban_" + (i+1) + ".gif";  }}function changeBanner() //banner changer function{  if(counter > 4)   counter = 0;  document.banner.src = banArray[counter].src; //sets a new banner  url = urlArray[counter]; //sets a new URL to the banner  counter++; //increase the counter for the next banner}//calls the changeBanner() function every 3 seconds//change the timer as necessary (minutes * 60000) or (seconds * 1000)var timer = window.setInterval("changeBanner()", 6000);