<!--
/*********************************
* 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(8); 

        //Step 2: Set number of Image array, increase number as necessary.
        //Make sure these numbers are the same.
var banArray = new Array(8);

        //Step 3: Put your initial URL here.
var url = ""; 
var adNo = 1;

        //Step 4: Place all your URL's Here.
urlArray[0] = "/promo/";
urlArray[1] = "/promo/";
urlArray[2] = "/promo/";
urlArray[3] = "/promo/";
urlArray[4] = "/promo/";
urlArray[5] = "/promo/";
urlArray[6] = "/promo/";
urlArray[7] = "/promo/";

        //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(808, 178);
banArray[0].src = "/headers/hbeachcouple.jpg";
banArray[1] = new Image(808, 178);
banArray[1].src = "/headers/hsurfing.jpg";
banArray[2] = new Image(808, 178);
banArray[2].src = "/headers/hpunta_de_mita.jpg";
banArray[3] = new Image(808, 178);
banArray[3].src = "/headers/hhorse.jpg";
banArray[4] = new Image(808, 178);
banArray[4].src = "/headers/hcosta_azul.jpg";
banArray[5] = new Image(808, 178);
banArray[5].src = "/headers/hfood5x.jpg";
banArray[6] = new Image(808, 178);
banArray[6].src = "/headers/hchurchW.jpg";
banArray[7] = new Image(808, 178);
banArray[7].src = "/headers/hhumpback.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 < 8){ 

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="/promo/"><img src="/headers/hbeachcouple.jpg" width="808" height="178" border="0"/></a>';
banRot2.filters[0].Play();
adNo++;
break;

case 1:
banRot2.filters[0].Apply();
banRot2.innerHTML = '<a href="/promo/"><img src="/headers/hsurfing.jpg" width="808" height="178" border="0"/></a>';
banRot2.filters[0].Play();
adNo++;
break;

case 2:
banRot2.filters[0].Apply();
banRot2.innerHTML = '<a href="/promo/"><img src="/headers/hpunta_de_mita.jpg" width="808" height="178" border="0"/></a>';
banRot2.filters[0].Play();
adNo++;
break;

case 3:
banRot2.filters[0].Apply();
banRot2.innerHTML = '<a href="/promo/"><img src="/headers/hhorse.jpg" width="808" height="178" border="0"/></a>';
banRot2.filters[0].Play();
adNo++;
break;

case 4:
banRot2.filters[0].Apply();
banRot2.innerHTML = '<a href="/promo/"><img src="/headers/hcosta_azul.jpg" width="808" height="178" border="0"/></a>';
banRot2.filters[0].Play();
adNo++;
break;

case 5:
banRot2.filters[0].Apply();
banRot2.innerHTML = '<a href="/promo/"><img src="/headers/hfood5x.jpg" width="808" height="178" border="0"/></a>';
banRot2.filters[0].Play();
adNo++;
break;

case 6:
banRot2.filters[0].Apply();
banRot2.innerHTML = '<a href="/promo/"><img src="/headers/hchurchW.jpg" width="808" height="178" border="0"/></a>';
banRot2.filters[0].Play();
adNo++;
break;

case 7:
banRot2.filters[0].Apply();
banRot2.innerHTML = '<a href="/promo/"><img src="/headers/hhumpback.jpg" width="808" height="178" border="0"/></a>';
banRot2.filters[0].Play();
adNo++;
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()",4000);

//-->
