function makeNews(c,con,l,f){
this.copy = c;
this.content = con;
this.link = l;
this.follow = f;
this.write = writeNews;
}
function writeNews(){
var str = '';
str += '';
str += ''+this.copy + '
';
str += this.content + '
';
str += '' + this.follow + '';
return str;
}
var newsArray = new Array();
newsArray[0] = new makeNews('Peer Advisor Network','
If you missed the INCREDIBLE Workshops for Ar...','news_detail.php?newsID=19',' >> Read More').write(); var nIndex = 0; var timerID = null; function rotateNews(){ var len = newsArray.length; if(nIndex >= len) nIndex = 0; document.getElementById('stories').innerHTML = newsArray[nIndex]; nIndex++; timerID = setTimeout('rotateNews()',4000); } function pauseNews() { if (timerID != null) { clearTimeout(timerID); timerID = null; } } function playNews() { if (timerID == null) { timerID = setTimeout('rotateNews()', 4000); } }