var iRotateInterval = 5000; //REPLACE THIS MILLISECOND VALUE TO CHANGE THE ROTATION INTERVAL
var iLastVisibleIndex = -1;
var iMaximumIndex = 9;
var aBanner = new Array()
aBanner[0]="Great value. Great Rates.  Cool off with our summer savings.  Check out our rates online."//END
aBanner[1]="Great value. Great Rates.  Cool off with our summer savings.  Check out our rates online."//END
aBanner[2]="Great value. Great Rates.  Cool off with our summer savings.  Check out our rates online."//END
aBanner[3]="Great value. Great Rates.  Cool off with our summer savings.  Check out our rates online."//END
aBanner[4]="Great value. Great Rates.  Cool off with our summer savings.  Check out our rates online."//END
aBanner[5]="Great value. Great Rates.  Cool off with our summer savings.  Check out our rates online."//END
aBanner[6]="Great Rates. Great Value.  Moab's Heart of Downtown Location."//END
aBanner[7]="Great Rates. Great Value.  Moab's Heart of Downtown Location."//END
aBanner[8]="Great Rates. Great Value.  Moab's Heart of Downtown Location."//END
aBanner[9]="Great Rates. Great Value.  Moab's Heart of Downtown Location."//END

function rotate()
{
	var iIndex, iCurrentVisibleIndex;
	
	iCurrentVisibleIndex = iLastVisibleIndex + 1;
	if(iCurrentVisibleIndex > iMaximumIndex || aBanner[iCurrentVisibleIndex].length == 0)
		iCurrentVisibleIndex = 0;
	
	//IF THE CURRENT ARRAY INDEX HAS A VALUE, THEN DISPLAY IT
	if(aBanner[iCurrentVisibleIndex].length > 0) 
		document.getElementById("viz_banner").innerHTML = aBanner[iCurrentVisibleIndex];			

	iLastVisibleIndex = iCurrentVisibleIndex;
	
	setTimeout("rotate();", iRotateInterval);
}