var urlArray3 = new Array(3); //for URL's, increase size as necessary
var banArray3 = new Array(3); //for banners, increase size as necessary
var counter3 = 1;
var url3 = "http://www.mastv.net"; //initial URL

//add your necessary URL's
urlArray3[0] = "http://www.mastv.net";
urlArray3[1] = "http://www.allblueservices.com";
urlArray3[2] = "http://www.codigos-barras.com/";

if(document.images) //pre-load all banner images
{
  for(i = 0; i < 3; i++)
  {
    banArray3[i] = new Image(156, 40);
    banArray3[i].src = "images/banner3/3banner" + (i+1) + ".gif";
  }
}


function changeBanner3() //banner changer function
{
  if(counter3 > 2)
   counter3 = 0;

  document.banner3.src = banArray3[counter3].src; //sets a new banner

  url3 = urlArray3[counter3]; //sets a new URL to the banner
  counter3++; //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 timer3 = window.setInterval("changeBanner3()", 4500);