var iRotateInterval = 5000; //REPLACE THIS MILLISECOND VALUE TO CHANGE THE ROTATION INTERVAL
var iLastVisibleIndex = -1;
var iMaximumIndex = 9;
var aBanner = new Array()
aBanner[0]="Super February Rates.  Enjoy our beautiful rooms in the best part of Moab Downtown! <BR>Promotional Rates:  $59.95 <BR>Book Now!"//END
aBanner[1]="25% Off. March Madness Special.   Book by March 5, 2010 on any dates between March 1 and March 18 or March 21 and March 30 and receive 25% Off regular rates.  Must call hotel to receive special offer.   Discount not valid with any other discounts."//END
aBanner[2]="25% Off. March Madness Special.   Book by March 5, 2010 on any dates between March 1 and March 18 or March 21 and March 30 and receive 25% Off regular rates.  Must call hotel to receive special offer.   Discount not valid with any other discounts."//END
aBanner[3]="Book Now while Promotional rates lasts and receive promotion rates on March 19 and March 20."//END
aBanner[4]="Book Now while Promotional rates lasts and receive promotion rates on March 19 and March 20."//END
aBanner[5]="Book Now while Promotional rates lasts and receive promotion rates on March 19 and March 20."//END
aBanner[6]="Book Now while Promotional rates lasts and receive promotion rates on March 19 and March 20."//END
aBanner[7]="25% Off. March Madness Special.   Book by March 5, 2010 on any dates between March 1 and March 18 or March 21 and March 30 and receive 25% Off regular rates.  Must call hotel to receive special offer.   Discount not valid with any other discounts."//END
aBanner[8]="25% Off. March Madness Special.   Book by March 5, 2010 on any dates between March 1 and March 18 or March 21 and March 30 and receive 25% Off regular rates.  Must call hotel to receive special offer.   Discount not valid with any other discounts."//END
aBanner[9]="25% Off. March Madness Special.   Book by March 5, 2010 on any dates between March 1 and March 18 or March 21 and March 30 and receive 25% Off regular rates.  Must call hotel to receive special offer.   Discount not valid with any other discounts."//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);
}