var i = 0;

// Create an array with the contents to be displayed one by one
var display = new Array(
"<p>UB is pleased to announce the initiation of VHub, please visit the <a href='/VHub/'>VHub section</a> to read more about it.</p>", 
"<p>Please visit our News section to view the most recent <a href='/news-events/newsletter/'>GeoHazards Newsletter</a>!</p>",
"<p>Our <a href='/research/invoge/'>INVOGE program</a> aims to provide students with international training in volcanology &amp; geotechniques.</p>",
"<p>Check out our <a href='/seminar_series/'>Seminar Series</a> - it's is a forum where members & guests can exchange research ideas.</p>");

// The function that will change the contents displayed
function changeContents() {

// If you are at the end of the Array
if(i >= display.length) {

// Go to the beginning of the array
i = 0;

}
// Get the div with ID "changingInfo" and set it's contents to the
// contents selected from the array
document.getElementById("changingInfo").innerHTML=display[i];

// Increase i so next time it will look at the next value in the Array
i++;

// Repeat after 7 seconds
timer = setTimeout("changeContents()", 7000);
}
