<!--

/********************************
* author@TechSystems.com *
* http://www.portaldepot.net *
* management@techsystemsltd.com *
* (c)TechSystems.com 2005 *
* All Rights Reserved. *
********************************/

        //STEP 1
//Set number of URL's, increase size as necessary.

var urlArray = new Array(2);

//Set number of banners to be displayed.

var banArray = new Array(2);

//The number of URL's should = number of banners.

        //STEP 2
//Add initial URL (put the first URL to be linked with your first banner).

var url = "http://www.tomsriveronline.com/BusinessLanding.htm";
var counter = 1;

        //STEP 3
//Add all your URL's here.

urlArray[0] = "http://www.tomsriveronline.com/BusinessLanding.htm";
urlArray[1] = "http://www.tomsriveronline.com/Coupon_Page.htm";


        //STEP 4
// Change Banner Size and Image sources to Your Requirements.
// all banners must be the same size.
// And input the source of each banner image. The source can be from an affiliate site.

banArray[0] = new Image(468, 60);
banArray[0].src = "images/BusinessAdvertising2.jpg";
banArray[1] = new Image(468, 60);
banArray[1].src = "images/CouponBanner.jpg";


function changeBanner() {

var banArrayLength = banArray.length-1; 
if(counter > banArrayLength) counter = 0;

document.banner1.src = banArray[counter].src;
url = urlArray[counter]; 
counter++; 
}

        // STEP 5
//Change the interval as necessary (5000 = 5 seconds)

var timer = window.setInterval("changeBanner()", 5000);

-->

