//set delay between message change (in miliseconds)
var delay=6000
// Declare arrays to hold the news/notes/tips...
var fcontentNews=new Array()
var fcontentNotes=new Array()
var fcontentTips=new Array()
fcontentTips[0]="
Truman faculty members are active teacher-scholars who regularly work collaboratively with students on undergraduate research projects."
var news=0
var notes=0
var tips=0
var mystring
//function to change content
function changecontent() {
if (news>=fcontentNews.length)
news=0
if (notes>=fcontentNotes.length)
notes=0
if (tips>=fcontentTips.length)
tips=0
mystring = ""
if (!fcontentNews.length==0) {
mystring = mystring+fcontentNews[news]
}
if (!fcontentNotes.length==0) {
mystring = mystring+fcontentNotes[notes]
}
mystring=mystring+fcontentTips[tips]+"
"
document.getElementById("newscontent").innerHTML=mystring
news++
notes++
tips++
setTimeout("changecontent()",delay)
}
// Set the changecontent function to be executed when the page loads...
window.onload=changecontent