// system generated - original is on polecat

var newsid = 0;

function startnews()
{
if (navigator.appName == "Netscape" && parseFloat(navigator.appVersion) < 5) return;
document.getElementById("sbfocus").innerHTML="<h2>Focus on</h2><ul class=\"focus\"><li><a href=\"http://www8.open.ac.uk/study/explained/fees-2012\">OU reaffirms mission and announces fees in all jurisdictions.</a></li><li><a href=\"http://www8.open.ac.uk/employers/\">Services for Employers.</a></li><li><a href=\"http://www.open.ac.uk/openlearn\">OU educational resources freely available from OpenLearn.</a></li></ul>";
nextnews();
setInterval("nextnews()", 5000);
}

function nextnews()
{
newsid++;
if (newsid == 5) newsid = 1;
if (newsid == 1) document.getElementById("headlines").innerHTML = "<a href=\"http://www3.open.ac.uk/media/fullstory.aspx?id=22964\">Professor Colin Pillinger curates Objects in Space exhibition</a>";
if (newsid == 2) document.getElementById("headlines").innerHTML = "<a href=\"http://www3.open.ac.uk/media/fullstory.aspx?id=22931\">Schools are e-safe, but cyberbullying is rife</a>";
if (newsid == 3) document.getElementById("headlines").innerHTML = "<a href=\"http://www3.open.ac.uk/media/fullstory.aspx?id=22914\">Economists call for radical and immediate reform of financial system</a>";
if (newsid == 4) document.getElementById("headlines").innerHTML = "<a href=\"http://www3.open.ac.uk/media/fullstory.aspx?id=22899\">The Open University appoints new Dean</a>";
}
