function popup(popup_url,name,width,height) {
        size = 'width=' + width + ',height=' + height;
        newwindow = window.open(popup_url,name, 'resize=no, menubar=no, location=no, toolbar=no, status=no, scrollbars=yes, directories=no,' + size);           
        window.open(popup_url,name, 'resize=no, menubar=no, location=no, toolbar=no, status=no, scrollbars=auto, directories=no' + size);
}


var i = 1;
banner1= new Image();
banner1.src = "images/slide-2008-1.jpg";
banner2 = new Image();
banner2.src = "images/slide-2008-2.jpg";
banner3 = new Image(); 
banner3.src = "images/slide-2008-3.jpg"; 

links = new Array
links[1] = "YOUR LINK #1"
links[2] = "YOUR LINK #2"
links[3] = "YOUR LINK #3" 

descr = new Array
descr[1] = "YOUR descr #1"
descr[2] = "YOUR descr #2"
descr[3] = "YOUR descr #3" 

function startTime(){

        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        closeTime=hours*3600+mins*60+secs;
        closeTime+=5;	// How many seconds til the next 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 3 is the amount of banners that you have
			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 = descr[i]
}
