function banner(img_source,url,alt,chance) {
   this.img_source = img_source;
   this.url = url;
   this.alt = alt;
   this.chance = chance;
}
function display() {
   with (this) document.write("<A HREF=" + url + "><IMG SRC='" + img_source + "' WIDTH=468 HEIGHT=60 BORDER=1 ALT='" + alt + "'></A>");
}
banner.prototype.display = display;
banners = new Array();
banners[0] = new banner("images/livejasmin_top_rotator.gif",
                        "http://www.livejasmin.com/listpage.php?tags=fetish&type=40&psid=awstars&psprogram=REVS target='_blank'",
                        "Fetish Adult Video Chat",
                        10);
banners[1] = new banner("images/imlive_top_rotator.gif",
                        "http://imlive.com/wmaster.ashx?WID=124935239295&LinkID=1036&QueryID=5&promocode=BCODECDH73CE6_hfc target='_blank'",
                        "Naughty Adult Fetish Models",
                        10);
banners[2] = new banner("images/bondage_top_rotator.gif",
                        "http://bondage.com/go/g923377-pct target='_blank'",
                        "Bondage Webcams live sex community and dating",
                        10);
banners[3] = new banner("images/bound_top_banner.jpg",
                        "http://boundandbanged.com/psm_awstars_A target='_blank'",
                        "Fetish and BDSM websites",
                        10);
sum_of_all_chances = 0;
for (i = 0; i < banners.length; i++) {
   sum_of_all_chances += banners[i].chance;
}
function display_banner() {
   chance_limit = 0;
   randomly_selected_chance = Math.round((sum_of_all_chances - 1) * Math.random()) + 1;
   for (i = 0; i < banners.length; i++) {
      chance_limit += banners[i].chance;
      if (randomly_selected_chance <= chance_limit) {
         document.write("<A HREF=" + banners[i].url + "><IMG SRC='" + banners[i].img_source + "' WIDTH=468 HEIGHT=60 BORDER=1 ALT='" + banners[i].alt + "'></A>");
         return banners[i];
         break;
      }
   }
}

      function tableWorkaround(cols) { if (document.all) { document.write('<tr>'); for (var i = 0; i < cols; i++) { document.write('<td></td>'); } document.write('</tr>') }; }
      function tableWorkaround2_colheader() { if (document.all) { document.write('<col width="0">') }; }
      function tableWorkaround2(rowHeight) { if (document.all) { document.write('<td height="' + rowHeight + '">'); document.write('</td>') }; }