//you should change this to the number of ads
var AdNum=4;

//add/change the ad titles here
var AdTitle=new Array(
"<B>Excel VBA Training</B>", "<B>Available Now!</B>","<B>Be the First in  your Office!</B>","<B>Exclusively Available at VBAX</B>"
);
//add/change the ad links here
var AdLink=new Array(
"http://www.vbaexpress.com/training","http://www.vbaexpress.com/training","http://www.vbaexpress.com/training","http://www.vbaexpress.com/training"
);
//add/change the ad descriptions here
var AdText=new Array(
"","","",""
);

var iCycle=0 ; //(Math.round((Math.random()*(AdNum-1))));

function ChangeAd() {
	document.all.Ads.href=AdLink[iCycle];
	document.all.Ads.innerHTML=AdTitle[iCycle];
	document.all.AdDesc.innerHTML=AdText[iCycle];
	iCycle++;
	if (iCycle>=AdNum) {
		iCycle=0;
	}
	setTimeout('ChangeAd()',5000);
}
document.write("<a href=\"\" id=\"Ads\"></a><div id=\"AdDesc\"></div>");
document.all.Ads.href=AdLink[iCycle];
document.all.Ads.innerHTML=AdTitle[iCycle];
document.all.AdDesc.innerHTML=AdText[iCycle];

setTimeout('ChangeAd()',5000);


