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...//*************************************

headrights = new Array();for(var i=1; i<=adcount; i++) { headrights[i] = new create() }headrights[1].width = "151";headrights[1].height = "151";headrights[1].src = "";


headrights[1].width = "151";headrights[1].height = "151";headrights[1].src = "http://tesla3.com/images/zz_mms_logo1.jpg";headrights[1].href = "http://mmsglobe.com";headrights[1].target = "_blank";headrights[1].border = "0";headrights[1].mouseover = "Buy MMS today";headrights[1].sponsor = "";

headrights[2].width = "151";headrights[2].height = "151";headrights[2].src = "http://tesla3.com/images/zz_mms_logo1.jpg";headrights[2].href = "http://mmsfrance.com";headrights[2].target = "_blank";headrights[2].border = "0";headrights[2].mouseover = "Save your life";headrights[2].sponsor = "";

var n = randNum(adcount);
n += "";

var image = headrights[n];
var headright = "";
headright += '<a href="' + image.href + '" \n';
headright += 'target="' + image.target + '" \n';
headright += 'onMouseOver="self.status=\'' + image.mouseover + '\'\;return true" \n';
headright += 'onMouseOut="self.status=\'\'"> \n';
headright += '<img src="' + image.src + '" width=' + image.width;
headright += '\n height=' + image.height + ' border=' + image.border;
headright += '\n><br><br> ' + image.sponsor + '</a>';
