var urlArray4 = new Array(3); //for URL's, increase size as necessary
var banArray4 = new Array(3); //for banners, increase size as necessary
var counter4 = 1;
var url4 = "http://www.upccanarias.com"; //initial URL

//add your necessary URL's
urlArray4[0] = "http://www.musaazafatas.com";
urlArray4[1] = "http://www.upccanarias.com";
urlArray4[2] = "http://www.musicalmarti.com";

if(document.images) //pre-load all banner images
{
  for(i = 0; i < 3; i++)
  {
    banArray4[i] = new Image(156, 40);
    banArray4[i].src = "images/banner4/4banner" + (i+1) + ".gif";
  }
}


function changeBanner4() //banner changer function
{
  if(counter4 > 2)
   counter4 = 0;

  document.banner4.src = banArray4[counter4].src; //sets a new banner

  url4 = urlArray4[counter4]; //sets a new URL to the banner
  counter4++; //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 timer4 = window.setInterval("changeBanner4()", 4000);