
		
var max=3; // the number of banners to be rotated
var thisBanner=1; // initially banner 1
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=4,0,2,0" width="770" height="157" name="Flash Banner"><param name="WMode" value="Transparent"><param name="movie" value="flash\/bloodhound.swf"><param name="menu" value="false" /><param name="quality" value="best"><param name="play" value="true"><embed src="flash\/bloodhound.swf" type="application\/x-shockwave-flash" width="770" height="157" wmode="transparent" pluginspage="http:\/\/www.macromedia.com\/shockwave\/download\/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="best" play="true" name="Flash Banner"><\/embed></\object>';

banner[2]='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=4,0,2,0" width="770" height="157" name="Flash Banner"><param name="WMode" value="Transparent"><param name="movie" value="flash\/guy.swf"><param name="menu" value="false" /><param name="quality" value="best"><param name="play" value="true"><embed src="flash\/guy.swf" type="application\/x-shockwave-flash" width="770" height="157" wmode="transparent" pluginspage="http:\/\/www.macromedia.com\/shockwave\/download\/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="best" play="true" name="Flash Banner"><\/embed></\object>';

banner[3]='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=4,0,2,0" width="770" height="157" name="Flash Banner"><param name="WMode" value="Transparent"><param name="movie" value="flash\/girl.swf"><param name="menu" value="false" /><param name="quality" value="best"><param name="play" value="true"><embed src="flash\/girl.swf" type="application\/x-shockwave-flash" width="770" height="157" wmode="transparent" pluginspage="http:\/\/www.macromedia.com\/shockwave\/download\/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="best" play="true" name="Flash Banner"><\/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);
	}		
		
		
		
//-->		
