<!--

/********************************
* 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.trumpmarina.com/entertainment-clubs/deck.cfm";
var counter = 1;

        //STEP 3
//Add all your URL's here.

urlArray[0] = "http://www.trumpmarina.com/entertainment-clubs/deck.cfm";
urlArray[1] = "http://www.trumpplaza.com/entertainment/beachbar.cfm";


        //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(728, 90);
banArray[0].src = "images/TrumpDeck.jpg";
banArray[1] = new Image(728, 90);
banArray[1].src = "images/Banner-Ad.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);

-->

