var i = 2;
banner1 = new Image();
banner1.src = "images/front_feature_engineered.jpg";
banner2 = new Image();
banner2.src = "images/front_feature_hardwax.jpg";
banner3 = new Image();
banner3.src = "images/front_feature_specials.png";



links = new Array
links[1] = "fir_collections_engineered.html"
links[2] = "wood_floor_finishes.html"
links[3] = "specials_flooring.html"

description = new Array
description[1] = "Engineered Fir Floor"
description[2] = "wood Finishes"
description[3] = "flooring specials"


function startTime(){

        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        closeTime=hours*3600+mins*60+secs;
        closeTime+=6;	// 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 2 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 = description[i]
}