/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Lee Underwood :: http://javascript.internet.com/ */

var theImages = new Array();
var theLinks = new Array();
  // Enter the names of the images below
						
theImages[0] = '../images/coolcover3.gif'
theImages[1] = '../images/gift.gif'
theImages[2] = '../images/lancaster.gif'
theImages[3] = '../images/fusiongreen-advert.gif'
theImages[4] = '../images/coolcover2.gif'
theLinks[0] = '#'
theLinks[1] = 'http://www.retronaija.com'
theLinks[2] = 'http://www.lancasterinvestments.com'
theLinks[3] = 'http://www.fusiongreen.com'
theLinks[4] = '#'



var newBanner = 0;
var totalBan = theImages.length;

function cycleBan() {
  newBanner++;
  if (newBanner == totalBan) {
    newBanner = 0;
  }
  document.banner.src=theImages[newBanner];
	document.getElementById('bannerlink').href=theLinks[newBanner];
  // set the time below for length of image display
  // i.e., "4*1000" is 4 seconds
  setTimeout("cycleBan()", 4*2000);
}
window.onload=cycleBan;