//////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////

// adtop.js

// Need a copy of this file in each directory that refers to it

//////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////



<!--

arrAdList = new Array();



function addAd( topName, botName ) {

  this.topName = topName;

  this.botName = botName;

}



// Load up a list of the advertisers.

// advertisers can be listed more than 1nce if we want them

countAdList = 0;

// Fastclick

arrAdList[countAdList] = new addAd( "fastclick", "fastclick" );countAdList++;

// advertising.com

arrAdList[countAdList] = new addAd( "adv", "adv" );countAdList++;

arrAdList[countAdList] = new addAd( "adv", "adv" );countAdList++;

arrAdList[countAdList] = new addAd( "adv", "adv" );countAdList++;

arrAdList[countAdList] = new addAd( "adv", "adv" );countAdList++;

// doublclick

arrAdList[countAdList] = new addAd( "dctop", "dcbot" );countAdList++;

arrAdList[countAdList] = new addAd( "dctop", "dcbot" );countAdList++;

arrAdList[countAdList] = new addAd( "dctop", "dcbot" );countAdList++;

arrAdList[countAdList] = new addAd( "dctop", "dcbot" );countAdList++;

arrAdList[countAdList] = new addAd( "dctop", "dcbot" );countAdList++;

// old

//arrAdList[countAdList] = new addAd( "burst" );countAdList++;

//arrAdList[countAdList] = new addAd( "nextlevel" );countAdList++;



var adRand = Math.floor( Math.random() * countAdList );



// DoubleClick Javascript BEGIN

var axel = Math.random() + "";

var ord = axel * 1000000000000000000;

// This part of script alleviates a Netscape document.write bug

NS4 = document.layers;

if (NS4) {

	origWidth = innerWidth;

	origHeight = innerHeight;

}

function reDo() {

	if (innerWidth != origWidth || innerHeight != origHeight)

		location.reload();

}

if (NS4) onresize = reDo;



// -- DoubleClick Javascript END



function loadTopAd( adDir ) {



	//adRand++;

	//if ( adRand >= countAdList ) {

	//	adRand = 0;

	//}

	adRand = Math.floor( Math.random() * countAdList );



	var topHRef = adDir + "/" + arrAdList[adRand].topName + ".htm";

	var botHRef = adDir + "/" + arrAdList[adRand].botName + ".htm";



	adtop.document.location.replace( topHRef );

	// sssv for the bottom

	adbot.document.location.replace( botHRef );



	// reload ads every minute

	var reloadCall = "loadTopAd( '" + adDir + "' );";

	setTimeout(reloadCall, 60000 );

	//setTimeout(reloadCall, 10000 );



}



function getBGColor() {



	return frFlash.document.bgColor;



}

// -->

