
var i = 1;
banner1= new Image();
banner1.src = "images/levine&slavit.jpg";
banner2 = new Image();
banner2.src = "images/carservise.jpg"; //you may add as many as needed
links = new Array
links[1] = "http://www.newyorkinjuries.com/"
links[2] = "#" //be sure to ad numbers consecutively
description = new Array
description[1] = "Personal injuries attorney servicing the tri-state area."
description[2] = "New York Number 1 Car and Limosine Service" //be sure to ad message numbers consecutively 
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 < 2){	// 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]
}
