window.onload = rotate;

var adImages = new Array("images/adHeros/hero4.jpg","images/adHeros/hero1.jpg","images/adHeros/hero3.jpg","images/adHeros/hero5.jpg","images/adHeros/hero2.jpg");
var thisAd = 0;

function rotate() {
	thisAd++;
	if (thisAd == adImages.length) {
		thisAd = 0;
	}
	document.getElementById("adHeros").src =
		adImages[thisAd];
		
	setTimeout("rotate()", 5 * 1250);
}

// JavaScript Document
