//INITIALIZE NEWS CONTENT
function newsContent(text, link, title){
	this.text = text;
	this.link = link;
	this.title = title;
	this.write = writeContent;
	}

//GENERATE THE HTML PRESENTATION FOR THE NEWS AND NOTES	ITEMS
function writeContent(){
	var str = '';
	str += '<h3><a href="' + this.link + '" title="' + this.title + '">' + this.title + '</a></h3>';
	str += this.text;
	return str;
	}

//ROTATION FUNCTION
var nIndex = 0;
var timerID = null;

function rotateContent(){
	var duration = newsNotesArray.length;
	if (nIndex >= duration)
		nIndex = 0;
	document.getElementById('news_notes_content').innerHTML =
		newsNotesArray[nIndex];
	nIndex++;
	timerID = setTimeout('rotateContent()',6000);
	}
function pauseNews() {
	if (timerID != null) {
		clearTimeout(timerID);
		timerID = null;
	}
}

function playNews() {
	if (timerID == null) {
		timerID = setTimeout('rotateContent()', 1000);
	}
}
