<!-- Hide from old browsers

i = 4 // Number of banners that you have
banner1 = new Image();
banner1.src = "images/banner1.gif";

banner2 = new Image();
banner2.src = "images/banner2.gif";

banner3 = new Image();
banner3.src = "images/banner3.gif";

banner4 = new Image();
banner4.src = "images/banner4.gif";


links = new Array
links[1] = "login.asp"
links[2] = "JSLogin.asp"
links[3] = "login.asp"
links[4] = "login.asp"

description = new Array
description[1] = "This is your description takes you to main index"
description[2] = "This is your description takes you to about page"
description[3] = "This is your description takes you to IE5 stuff"
description[4] = "This is your description takes you to IE5 stuff"


function randombanner(){
	var randomnumber = Math.random();
	i = Math.round( (i - 1) * randomnumber) + 1;
	document.banner.src = eval("banner" + i + ".src");
}

function startTime(){

        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        closeTime=hours*3600+mins*60+secs;
        closeTime+=5;
        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 < 4){
                        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]
}

// -->












