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 and Fall Discounts.  Book now online or call hotel at 435.259.8838.  Sit-down full hot breakfast meal credit with every qualified room night."//END
aBanner[1]="Great Value and Fall Discounts.  Book now online or call hotel at 435.259.8838.  Sit-down full hot breakfast meal credit with every qualified room night."//END
aBanner[2]="Great Value and Fall Discounts.  Book now online or call hotel at 435.259.8838.  Sit-down full hot breakfast meal credit with every qualified room night."//END
aBanner[3]="Great Value and Fall Discounts.  Book now online or call hotel at 435.259.8838.  Sit-down full hot breakfast meal credit with every qualified room night."//END
aBanner[4]="Great Value and Fall Discounts.  Book now online or call hotel at 435.259.8838.  Sit-down full hot breakfast meal credit with every qualified room night."//END
aBanner[5]="Great Value and Fall Discounts.  Book now online or call hotel at 435.259.8838.  Sit-down full hot breakfast meal credit with every qualified room night."//END
aBanner[6]="Great Value and Fall Discounts.  Book now online or call hotel at 435.259.8838.  Sit-down full hot breakfast meal credit with every qualified room night."//END
aBanner[7]="Great Value and Fall Discounts.  Book now online or call hotel at 435.259.8838.  Sit-down full hot breakfast meal credit with every qualified room night."//END
aBanner[8]="Great Value and Fall Discounts.  Book now online or call hotel at 435.259.8838.  Sit-down full hot breakfast meal credit with every qualified room night."//END
aBanner[9]="Great Value and Fall Discounts.  Book now online or call hotel at 435.259.8838.  Sit-down full hot breakfast meal credit with every qualified room night."//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);
}
