
var i = 1;
banner1= new Image();
banner1.src = "http://www.buildingservicesmgt.com/ads/PureAir468x60.gif";
banner2 = new Image();
banner2.src = "http://www.buildingservicesmgt.com/images/fisher.gif";

var links = new Array
/* 
Put your link between the quotation marks " and " if they are outside of the domain make 
sure that you indicate that with something like: http://www.mydomain.com/thislink.html  
*/
links[1] = "http://www.pureaircontrols.com"
links[2] = "http://www.fishersafety.com"


var description = new Array
description[1] = "Pure Air Control Services, Inc."
description[2] = "Fisher Safety"

function loadBanner(){

        var time= new Date();
        alert("LoadBanner");
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        closeTime=hours*3600+mins*60+secs;
        closeTime+=15;	/* Change this number to increase decrease the rotation speed */        
        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)
        {
           var bannerImg = ( i % 2 ) ? banner1.src : banner2.src;
        
           document.banner.src = eval(bannerImg);
        		
		   loadBanner();
		   
		   alert("TEST");
	   }
	   else
	   {
           window.setTimeout("Timer()",1000)
       }

}

function GotoLink( strLink )
{
  top.location = strLink;
}

function ShowTipText( strText )
{
  window.status = strText;
}

function clickLink(){
	top.location = links[i]
}

function descript(){
	window.status = description[i]
}

function nothing() {
	window.status="";
}

