var max=2; // the number of banners to be rotated
var thisBanner=2; // initially banner 2
var banner=new MakeBannerArray(max); // create an array of banners

function MakeBannerArray(n)
	{
	this.length=n;
	for (var i=1; i<=n;i++)
		{
		this[i]="";
		}
	return this;
	}
	
// then populate the array with the banner links and file path	
		

banner[1]='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash/swflash.cab#version=8,0,0,0" width="390" height="296"><param name="movie" value="banners/nitbus_new.swf"><param name="quality" value="best"><param name="play" value="true"><param name="wmode" value="transparent"><embed src="banners/nitbus_new.swf" type="application\/x-shockwave-flash" width="390" height="296" pluginspage="http:\/\/www.macromedia.com\/shockwave\/download\/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="best" wmode="transparent" play="true"><\/embed></\object>';

banner[2]='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash/swflash.cab#version=8,0,0,0" width="390" height="296"><param name="movie" value="banners/tusgsal25.swf"><param name="quality" value="best"><param name="play" value="true"><param name="wmode" value="transparent"><embed src="banners/tusgsal25.swf" type="application\/x-shockwave-flash" width="390" height="296" pluginspage="http:\/\/www.macromedia.com\/shockwave\/download\/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="best" wmode="transparent" play="true"><\/embed></\object>';


// the random number function returns a number 1 to max
function rand(n)
	{
	rnum=Math.floor(n*Math.random())+1
	return rnum;
	}
		

// the function that is called from the body script
function setBanner()
	{
	thisBanner=rand(max);
	}
	
