// JavaScript Document
timerID=null;
var name="";
var urlArray = new Array(2); //for URL's, increase size as necessary
var banArray = new Array(2); //for banners, increase size as necessary
var counter = 0;
var url="http://mainserver/effizee";//initial URL for the first image that shows


urlArray[0] = "http://mainserver/effizee";//"http://javascript.internet.com";
urlArray[1] = "http://www.effizee.com/contactus/";//"http://www.semlist.com";



if(document.images) //pre-load all banner images
{
  for(i = 0; i < 2; i++)
  {
    banArray[i] = new Image(450,66);
    banArray[i].src = "images/topmost/topmost" + (i+1) + ".gif";
  }
}

function changeBanner() //banner changer function
{
  if(counter > 1)
   counter = 0;

  document.flasher.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 20 seconds
//change the timer as necessary (minutes * 60000) or (seconds * 1000)
var timer = window.setInterval("changeBanner()", 10000);
