<!--
/*********************************
* author@TechSystems.com *
* http://www.portaldepot.net *
* management@techsystemsltd.com *
* (c)TechSystems.com 2005 *
* All Rights Reserved. *
*********************************/

        //Step 1: Set number of URL array, increase number to the         number of ads you want to display.
var urlArray = new Array(3); 

        //Step 2: Set number of Image array, increase number as necessary.
        //Make sure these numbers are the same.
var banArray = new Array(3);

        //Step 3: Put your initial URL here.
var url = "http://www.tomsriveronline.com/Events99.htm"; 
var adNo = 1;

        //Step 4: Place all your URL's Here.
urlArray[0] = "http://www.tomsriveronline.com/Events99.htm";
urlArray[1] = "http://www.tomsriveronline.com/Events99.htm";
urlArray[2] = "http://www.tomsriveronline.com/Events99.htm";

        //STEP 5: Imput the source of each image,
        // and change Banner Size to Your Requirements. 
        // All banners must be the same size.
        // The image sources can be from affiliate sites.
banArray[0] = new Image(1002, 180);
banArray[0].src = "HP_Photos/Main_Steet_March_2011.jpg";
banArray[1] = new Image(1002, 180);
banArray[1].src = "HP_Photos/High_School_South_March_2011_2.jpg";
banArray[2] = new Image(1002, 180);
banArray[2].src = "HP_Photos/SunsetAlongtheRiver.jpg";

function changeAd(){

        // This statement allows IE browsers to display images and URL's.
if (navigator.appName == "Microsoft Internet Explorer"){

        //STEP 6: If you display more ads than 3, change the 3 below to the
        // total number of ads you want to display.
if (adNo < 3){ 

switch(adNo){

        //STEP 7: For each case, input your URL and Banner Image source.
        // If you have more than 3 ads, add a case and all its statements
        // for each additional banner.
case 0:
banRot2.filters[0].Apply();
banRot2.innerHTML = '<a href="http://www.tomsriveronline.com/Events99.htm" target="_blank"><img src="HP_Photos/Main_Steet_March_2011.jpg" width="1002" height="180" border="0"/></a>';
banRot2.filters[0].Play();
adNo++;
break;

case 1:
banRot2.filters[0].Apply();
banRot2.innerHTML = '<a href="http://www.tomsriveronline.com/Events99.htm" target="_blank"><img src="HP_Photos/High_School_South_March_2011_2.jpg" width="1002" height="180" border="0"/></a>';
banRot2.filters[0].Play();
adNo++;
break;

case 2:
banRot2.filters[0].Apply();
banRot2.innerHTML = '<a href="http://www.tomsriveronline.com/Events99.htm" target="_blank"><img src="HP_Photos/SunsetAlongtheRiver.jpg" width="1002" height="180" border="0"/></a>';
banRot2.filters[0].Play();
adNo = 0;
break;
}
}
}
        // The else statement allows all other browsers to display images
        // without fadein. You don't change anything in this section.
else {
var banArrayLength = banArray.length-1; 
if(adNo > banArrayLength) adNo = 0;

document.bR.src = banArray[adNo].src;
url = urlArray[adNo]; 
adNo++;
} 
}
        //STEP 8: Change speed to your requirement, 5000 equals 5 sec.
var speed = window.setInterval("changeAd()",5000);

//-->



