function a(txt) {
	self.status = txt;
}
function b() {
	self.status = "";
} 


function create() {
	this.width = '';
	this.height = '';
	this.src = '';
	this.href = '';
	this.target = '';
	this.border = '';
	this.mouseover = '';
	this.sponsor = '';
}

function randNum (num) {
   var Now = new Date;
   var rand = Math.round(num * Math.sin(Now.getTime() - 843683177440));
   if (rand < 0) rand = -rand;
   if (rand == 0) rand++;
   return rand;
}



//*************************************
adcount = 2;   //Be sure to update this count of ads, below...
//*************************************

TopAds = new Array();
for(var i=1; i<=adcount; i++) { TopAds[i] = new create() }

TopAds[1].width = "468";
TopAds[1].height = "60";
TopAds[1].src = "http://www.sightings.com/1.Rotational_ads/rotationalbnnr.gif";
TopAds[1].href = "http://www.sightings.com/1.ads/rotational.html";
TopAds[1].target = "_blank";
TopAds[1].border = "0";
TopAds[1].mouseover = "Check it out";
TopAds[1].sponsor = "Rotational Banner Advertising At Sightings.com";

TopAds[2].width = "468";
TopAds[2].height = "60";
TopAds[2].src = "http://www.sightings.com/1.Rotational_ads/oxyad.gif";
TopAds[2].href = "http://www.rense.com/products/oxy-c1.htm";
TopAds[2].target = "_blank";
TopAds[2].border = "0";
TopAds[2].mouseover = "Check it out";
TopAds[2].sponsor = "You've Heard About It, Now Try It!";


var n = randNum(adcount);
n += "";

var image = TopAds[n];
var TopAd = "";
TopAd += '<a href="' + image.href + '" \n';
TopAd += 'target="' + image.target + '" \n';
TopAd += 'onMouseOver="self.status=\'' + image.mouseover + '\'\;return true" \n';
TopAd += 'onMouseOut="self.status=\'\'"> \n';
TopAd += '<img src="' + image.src + '" width=' + image.width;
TopAd += '\n height=' + image.height + ' border=' + image.border;
TopAd += '\n><br><br> ' + image.sponsor + '</a>';

