var _TEXT_BILLBOARD;

function CTextBillboard( text_ary, target_content ) {
	// the list of billboard strings to display
	this.textAry = text_ary;
	// the string number to start with (0 is first)
	this.ndx = 0;
	// the length (in milliseconds) for which each item will be displayed
	this.delayMilliseconds = 3000;
	// target content object
	this.targetContent = target_content;
}

function text_billboard_start( text_ary, target_content ) {
	_TEXT_BILLBOARD = new CTextBillboard(text_ary,target_content);
	text_billboard_next();
}

// process next billboard text	
function text_billboard_next() {
	_TEXT_BILLBOARD.targetContent.innerHTML = _TEXT_BILLBOARD.textAry[_TEXT_BILLBOARD.ndx];
	// set the next item, roll-over to the start of the list, if needed
	_TEXT_BILLBOARD.ndx = (_TEXT_BILLBOARD.ndx + 1) % _TEXT_BILLBOARD.textAry.length;
	// run this function again after a delay
	setTimeout("text_billboard_next()", _TEXT_BILLBOARD.delayMilliseconds);
}
