var refreshTime = 4800;

var numAds = 7;

function makeAd() {
	this.width = ''
	this.height = ''
	this.src = ''
	this.href = ''
	this.mouseover = ''
	this.sponsor = ''
}

var ads = new Array()
for(var i = 1; i <= numAds; i++) { ads[i] = new makeAd() }

i = 1;

ads[i].width = "425"
ads[i].height = "54"
ads[i].src = "http://www.moose216.org/silverlight/sponsors425x54.jpg"
ads[i].href = "http://moose216.org/memberads.htm"
ads[i].mouseover = "MooseAds.net"
ads[i].sponsor = "" 
i++

ads[i].width = "425"
ads[i].height = "54"                 
ads[i].src = "http://www.moose216.org/silverlight/njmoose425x54.jpg"  			
ads[i].href = "http://www.njmoose.org"           	 
ads[i].mouseover = "NJMoose.org"       
ads[i].sponsor = ""                 
i++

ads[i].width = "425"
ads[i].height = "54"                 
ads[i].src = "http://www.moose216.org/silverlight/mooseradio425x54.jpg"  			
ads[i].href = "http://www.mooseradio.net"           	 
ads[i].mouseover = "MooseRadio.net"       
ads[i].sponsor = ""                 
i++

ads[i].width = "425"
ads[i].height = "54"                 
ads[i].src = "http://www.moose216.org/silverlight/atlcitymoose425x54.jpg"   			
ads[i].href = "http://www.moose216.org"           	 
ads[i].mouseover = "Moose216.org"       
ads[i].sponsor = ""                 
i++

ads[i].width = "425"
ads[i].height = "54"                 
ads[i].src = "http://www.moose216.org/silverlight/acriders425x54.jpg"   			
ads[i].href = "http://www.acriders.org"           	 
ads[i].mouseover = "ACRiders.org"       
ads[i].sponsor = ""                 
i++

ads[i].width = "425"
ads[i].height = "54"                 
ads[i].src = "http://www.moose216.org/silverlight/SocQuar425x54.png"   			
ads[i].href = "http://www.socialquarters.com"           	 
ads[i].mouseover = "SocialQuarters.com"       
ads[i].sponsor = ""                 
i++

ads[i].width = "425"
ads[i].height = "54"                 
ads[i].src = "http://www.moose216.org/silverlight/think425x54.jpg"   			
ads[i].href = "http://www.moose216.org"           	 
ads[i].mouseover = "Moose216.org"         
ads[i].sponsor = ""                 
i++

var myCode = '';
do {
var n= Math.floor(Math.random() * (numAds + 1) + 1);
} while(n > numAds);
var current_ad = n;
myCode = getCode(n);

function getCode(adNumber){
	var tempCode = ""
	tempCode += ('<a href="'+ ads[adNumber].href +'" \n')
	tempCode += ('onMouseOver="status=\''+ ads[adNumber].mouseover +'\';return true" \n')
	tempCode += ('onMouseOut="status=\'\'"> \n')
	tempCode += ('<img src="' + ads[adNumber].src + '" width=' + ads[adNumber].width)
	tempCode += (' onLoad="setTimeout(\'newAd();\',' + refreshTime + ');"')
	tempCode += ('\n height=' + ads[adNumber].height + ' border=0 >')
	tempCode += ('<br><font face=Vrinda size=-2 color=#000020><b>' + ads[adNumber].sponsor + '</b></font>') //
	tempCode += ('</a>')
	return tempCode;
	}

function newAd(){
	current_ad++;
	if (current_ad > numAds)
		current_ad = 1;
	if (document.all){
	   write(getCode(current_ad));
	   }
}

function write(text){
	if (document.layers) {
		document.bannerAd.document.write(text)
		document.bannerAd.document.close();
		}
	else
		if (document.all)
			document.all.bannerAd.innerHTML = text
	
}