<!-- Hide from old browsers
// Copyright &copy; 1999 Doug Popeney
// Created by Doug Popeney (easyjava@easyjavascipt.com)
// JavaScript Made Easy!! - http://www.easyjavascript.com


// These two numbers specify the number of banners you have in the rotation

i = 18
maxi = 18

// Banners

banner1 = new Image();
banner1.src = "http://www.thebindingedge.com/banners/GaneBrothers.jpg";
banner2 = new Image();
banner2.src = "http://www.thebindingedge.com/banners/Standard.jpg";
banner3 = new Image();
banner3.src = "http://www.thebindingedge.com/banners/Baum_banner09.jpg";
banner4 = new Image();
banner4.src = "http://www.thebindingedge.com/banners/JorsonCarlson_banner09.jpg";
banner5 = new Image();
banner5.src = "http://www.thebindingedge.com/banners/PunchMaster_banner09.jpg";
banner6 = new Image();
banner6.src = "http://www.thebindingedge.com/banners/dienamic_BE.JPG";
banner7 = new Image();
banner7.src = "http://www.thebindingedge.com/banners/SpiralBinding_CA2197.jpg";
banner8 = new Image();
banner8.src = "http://www.thebindingedge.com/banners/Nordson_banner.jpg";
banner9 = new Image();
banner9.src = "http://www.thebindingedge.com/banners/Spellbinding_468x60.gif";
banner10 = new Image();
banner10.src = "http://www.thebindingedge.com/banners/Gluefast_BE_banner.jpg";
banner11 = new Image();
banner11.src = "http://www.thebindingedge.com/banners/HBFuller.gif";
banner12 = new Image();
banner12.src = "http://www.thebindingedge.com/banners/DHP_banner.gif";
banner13 = new Image();
banner13.src = "http://www.thebindingedge.com/banners/WCJpilgrim_BE_banner.jpg";
banner14 = new Image();
banner14.src = "http://www.thebindingedge.com/banners/Perfecta_BE_banner.gif";
banner15 = new Image();
banner15.src = "http://www.thebindingedge.com/banners/PFC_BE_banner.gif";
banner16 = new Image();
banner16.src = "http://www.thebindingedge.com/banners/Spiel_BE_banner.jpg";
banner17 = new Image();
banner17.src = "http://www.thebindingedge.com/banners/Circle_Banner_Ad-468x60_VerA1.gif";
banner18 = new Image();
banner18.src = "http://www.thebindingedge.com/banners/OD_468x60_v2.gif";


// Links

links = new Array
links[1] = "http://www.ganebrothers.com"
links[2] = "http://www.sdmc.com/bindingedge"
links[3] = "http://www.baumfolder.com"
links[4] = "http://www.jorsonandcarlson.com"
links[5] = "http://www.punchmastertools.com"
links[6] = "http://www.dienamicmis.com"
links[7] = "http://www.spiralbinding.com"
links[8] = "http://www.nordson.com/bookbinding"
links[9] = "http://www.heidelberg.com/us/www/en/content/products/postpress/adhesive_binders/eurobind_600"
links[10] = "http://www.gluefast.com/products/case-maker.html"
links[11] = "http://www.hbfuller.com/north-america/products-solutions/markets-and-applications/paper-converting/graphic-arts-and-bookbinding"
links[12] = "http://www.dhpcatalog.com"
links[13] = "http://www.wcjwire.com"
links[14] = "http://www.perfectausa.com"
links[15] = "http://www.plasticfilmcorp.com"
links[16] = "http://www.spielassociates.com/videos.html"
links[17] = "http://www.circleincorporated.com/pgs/products.htm"
links[18] = "http://www.ondemandexpo.com"




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+=10;   
        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 < maxi){
                        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]
}


// -->


