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 = 8;   
//Be sure to update this count of ads, below...//*************************************

headmidbot = new Array();for(var i=1; i<=adcount; i++) { headmidbot[i] = new create() }headmidbot[1].width = "620";headmidbot[1].height = "80";headmidbot[1].src = "http://tesla3.com/banners/ban_620_tesla3.jpg";


headmidbot[1].width = "620";headmidbot[1].height = "80";headmidbot[1].src = "http://tesla3.com/banners/ngo_620_en_GREENPEACE.jpg";headmidbot[1].href = "http://www.greenpeace.org/international/";headmidbot[1].target = "_blank";headmidbot[1].border = "0";headmidbot[1].mouseover = "Save the planet";headmidbot[1].sponsor = "";

headmidbot[2].width = "620";headmidbot[2].height = "80";headmidbot[2].src = "http://tesla3.com/banners/ngo_620_en_GREENPEACE2.jpg";headmidbot[2].href = "http://www.greenpeace.org/international/";headmidbot[2].target = "_blank";headmidbot[2].border = "0";headmidbot[2].mouseover = "Sauve the planet";headmidbot[2].sponsor = "";

headmidbot[3].width = "620";headmidbot[3].height = "80";headmidbot[3].src = "http://tesla3.com/banners/ngo_620_en_HANDICAPINTERNATIONAL.jpg";headmidbot[3].href = "http://www.handicap-international.org/";headmidbot[3].target = "_blank";headmidbot[3].border = "0";headmidbot[3].mouseover = "Stop to mines";headmidbot[3].sponsor = "";

headmidbot[4].width = "620";headmidbot[4].height = "80";headmidbot[4].src = "http://tesla3.com/banners/ngo_620_en_HANDICAPINTERNATIONAL2.jpg";headmidbot[4].href = "http://www.handicap-international.org/";headmidbot[4].target = "_blank";headmidbot[4].border = "0";headmidbot[4].mouseover = "Stop to mines";headmidbot[4].sponsor = "";

headmidbot[5].width = "620";headmidbot[5].height = "80";headmidbot[5].src = "http://tesla3.com/banners/ngo_620_en_KIVA.jpg";headmidbot[5].href = "http://www.kiva.org/";headmidbot[5].target = "_blank";headmidbot[5].border = "0";headmidbot[5].mouseover = "Loans that can change lifes";headmidbot[5].sponsor = "";

headmidbot[6].width = "620";headmidbot[6].height = "80";headmidbot[6].src = "http://tesla3.com/banners/ngo_620_en_KIVA2.jpg";headmidbot[6].href = "http://www.kiva.org/";headmidbot[6].target = "_blank";headmidbot[6].border = "0";headmidbot[6].mouseover = "Loans that can change lifes";headmidbot[6].sponsor = "";

headmidbot[7].width = "620";headmidbot[7].height = "80";headmidbot[7].src = "http://tesla3.com/banners/ngo_620_en_WWF.jpg";headmidbot[7].href = "http://wwf.org";headmidbot[7].target = "_blank";headmidbot[7].border = "0";headmidbot[7].mouseover = "For a living planet";headmidbot[7].sponsor = "";

headmidbot[8].width = "620";headmidbot[8].height = "80";headmidbot[8].src = "http://tesla3.com/banners/ngo_620_en_WWF2.jpg";headmidbot[8].href = "http://wwf.org";headmidbot[8].target = "_blank";headmidbot[8].border = "0";headmidbot[8].mouseover = "For a living planet";headmidbot[8].sponsor = "";


var n = randNum(adcount);n += "";var image = headmidbot[n];var headmidbot = "";headmidbot += '<a href="' + image.href + '" \n';headmidbot += 'target="' + image.target + '" \n';headmidbot += 'onMouseOver="self.status=\'' + image.mouseover + '\'\;return true" \n';headmidbot += 'onMouseOut="self.status=\'\'"> \n';headmidbot += '<img src="' + image.src + '" width=' + image.width;headmidbot += '\n height=' + image.height + ' border=' + image.border;headmidbot += '\n><br><br> ' + image.sponsor + '</a>';
