var indexI = 1;
var banner1= new Image();
banner1.src = "/images/home/2h-banner-rit.jpg";
var banner2 = new Image();
banner2.src = "/images/home/2h-banner-oem.jpg";
var banner3 = new Image();
banner3.src = "/images/home/2h-banner-xsp.jpg";

var links = new Array();
links[1] = "http://www/farstone.com/software/restoreit-pro.htm";
links[2] = "http://www/farstone.com/partner/oem-opportunities.htm";
links[3] = "http://www/farstone.com/partner/restoreit-xsp.htm";

var description = new Array();
description[1] = "One-click data backup and recovery";
description[2] = "Customized OEM software to complement your brand";
description[3] = "Personal Disater Recovery solutions that reduce the need for tech support";


function startTime()
{
        var curDate= new Date();
        hours= curDate.getHours();
        mins= curDate.getMinutes();
        secs= curDate.getSeconds();
        closeTime=hours*3600+mins*60+secs;
        closeTime+=10;	// How many seconds til the next rotation
        Timer();
}

function Timer(){
        var curDate= new Date();
        hours= curDate.getHours();
        mins= curDate.getMinutes();
        secs= curDate.getSeconds();
        curTime=hours*3600+mins*60+secs
        if (curTime>=closeTime)
        {
    		if (indexI < 4)// The number 2 is the amount of banners that you have
            {
    			indexI++;
    			document.getElementById("banner").src = eval("banner" + indexI + ".src");
    		}
    		else
            {
    			indexI = 1;
    			document.getElementById("banner").src = eval("banner" + indexI + ".src");
    		}
    		startTime();
    	}
        else
        {
                window.setTimeout("Timer()",10000)
        }

}

function clickLink(){
	top.location = links[indexI];
}

function descript(){
	window.status = description[indexI];
}