var iRotateInterval = 5000; //REPLACE THIS MILLISECOND VALUE TO CHANGE THE ROTATION INTERVAL
var iLastVisibleIndex = -1;
var iMaximumIndex = 9;
var aBanner = new Array()
aBanner[0]="Book Now thru March 18.  Rates Start at $59.88.  Enjoy our comfortable room and free continental breakfast at a great value.<BR><BR><BR><BR>"//END
aBanner[1]="Book Now thru March 18.  Rates Start at $59.88.  Enjoy our comfortable room and free continental breakfast at a great value.<BR>Book Now thru March 18.  Rates Start at $59.88.  Enjoy our comfortable room and free continental breakfast at a great value.<BR>Book Now thru March 18.  Rates Start at $59.88.  Enjoy our comfortable room and free continental breakfast at a great value.<BR><BR><BR><BR><BR><BR><BR>"//END
aBanner[2]="Promotional Rates for Moab Marathon March 19 and March 20."//END
aBanner[3]="Promotional Rates for Moab Marathon March 19 and March 20."//END
aBanner[4]="Promotional Rates for Moab Marathon March 19 and March 20."//END
aBanner[5]="Promotional Rates for Moab Marathon March 19 and March 20."//END
aBanner[6]="If you are booking rooms between July through December.  Please call Hotel directly to book."//END
aBanner[7]="If you are booking rooms between July through December.  Please call Hotel directly to book."//END
aBanner[8]="If you are booking rooms between July through December.  Please call Hotel directly to book."//END
aBanner[9]="If you are booking rooms between July through December.  Please call Hotel directly to book."//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("whatsHotContent").innerHTML = aBanner[iCurrentVisibleIndex];			

	iLastVisibleIndex = iCurrentVisibleIndex;
	
	setTimeout("rotate();", iRotateInterval);
}