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; 


footer = new Array();
for(var i=1; i<=adcount; i++) { footer[i] = new create() }




var n = randNum(adcount);
n += "";

var ad = footer[n];
var footer = "";
if (ad.type == "img") {
	footer += '<a href="' + ad.href + '" \n';
	footer += 'target="' + ad.target + '" \n';
	footer += 'onMouseOver="self.status=\'' + ad.mouseover + '\'\;return true" \n';
	footer += 'onMouseOut="self.status=\'\'"> \n';
	footer += '<img src="' + ad.src + '" width=' + ad.width;
	footer += '\n height=' + ad.height + ' border=' + ad.border;
	footer += '\n><br><br> ' + ad.sponsor + '</a>';
}

if (ad.type == "htm") {	
	footer += '<table width="' + ad.width + '" height="' + ad.height;
	footer += '" border="' + ad.border;
	footer += '" bordercolor="' + ad.borderColor;
	footer += '" bgcolor="' + ad.bgColor;	
	footer += '" cellpadding="' + ad.cellPadd;
	footer += '" cellspacing="' + ad.cellSpace;
	footer += '"> \n';
	footer += '<tr><td align="' + ad.align;
	footer += '" > \n';
	footer += '<a href="' + ad.href + '" \n';
	footer += 'target="' + ad.target + '" \n';
	footer += 'onMouseOver="self.status=\'' + ad.mouseover + '\'\;return true" \n';
	footer += 'onMouseOut="self.status=\'\'"> \n';	
	footer += ad.sponsor + '</a>';	
	footer += '</td></tr> \n';
	footer += '</table> \n';
}

if (ad.type == "inc") {
	footer += '<iframe src="' + ad.href + '" name="ad" width="' + ad.width + '" height="' + ad.height;
	footer += ' marginwidth="0" marginheight="0" frameborder="' + ad.frameBorder + '" scrolling="' + ad.scrolling + '"></iframe>';
}