<!-- Hide from old browsers

// Javascript Rotating Banner
// designed for www.anglersfishinginfo.com
// Copyright www.anglersfishinginfo.com

// Dont touch the following items
links = new Array
description = new Array

// You can start editing here 
// Note that the // means a comment

// The following variable 'i' will equal the number of banners or images that you have 
// You will need to change it if you add or subtract more banners
i = 2;

// This is where you put your paths to your images or banners, 
// it is recommended they are the same size.
// If you add any banners, then make sure to change the variable 'i' above,
// add a URL below, and add a description below that
banner1 = new Image();
banner1.src = "../../bannergifs/baker.gif"; //1st banner
banner2 = new Image();
banner2.src = "../../bannergifs/advertisehere.jpg"; //2nd banner, so on

// Put your URLS or mailto's in the following array, 
// the number will correspond to the number of the banner image
links[1] = "http://www.greatplainsmapping.com"
links[2] = "mailto:catman@planetkc.com?subject=Advertising"

// Descriptions go here that are shown at the bottom of the page in the status bar
description[1] = "Analog & Digital Fishing Maps."
description[2] = "Let Your Ad Be Seen Throughout The Entire Site!!!"


//////////////////////////////////////////////////////////////
// Do not touch any of the following unless you want to 
// change the banner switching time
// It is designated below what number to change.
//////////////////////////////////////////////////////////////

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;  //this number controls the time between banners
        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 < 2){
                        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]
}

// -->
