
var i = 1;
banner1= new Image();
banner1.src = "http://www.forthvalleyjobs.com/graphics/ukopencollege.gif";
banner2 = new Image();
banner2.src = "http://www.forthvalleyjobs.com/graphics/broadbean_banner.gif"; 
banner3 = new Image();
banner3.src = "http://www.forthvalleyjobs.com/graphics/iptv.gif"; 
links = new Array
links[1] = "http://www.ukopencollege.co.uk/"
links[2] = "http://www.broadbean.com/free-trial.html?hirer" 
links[3] = "http://www.open.ac.uk/cam/ony_r11/?ONBAN=SC0709&MEDIA=SC0709_25" 
description = new Array
description[1] = "Open College"
description[2] = "Broadbean" 
description[3] = "Open University" 
function startTime(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
closeTime=hours*3600+mins*60+secs;
closeTime+=15;	// How many seconds until the next banner rotation
Timer();
}
function Timer(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
curTime=hours*3600+mins*60+secs
if (curTime>=closeTime){
if (i < 3){	// The number 2 is the amount of banners that you have above - adjust accordingly
i++;
document.banner.src = eval("banner" + i + ".src");
}
else{
i = 1;
document.banner.src = eval("banner" + i + ".src");
}
startTime();
}
else{
window.setTimeout("Timer()",1000)}
}
function clickLink(){
top.location = links[i]
}
function descript(){
window.status = description[i]
}
