 
 
<!-- Copyright 2000 - Galichon Enterprises, Inc.  rich@galichon.net  http://www.galichon.net
// Permission granted to SimplytheBest.net to list the script in the DHTML scripts library
// Courtesy of SimplytheBest.net (http://simplythebest.net/info/dhtml_scripts.html
http://simplythebest.net/info/javascript21.html)
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 + "' BORDER=0 ALT='" + alt + "'></A>");
}
banner.prototype.display = display;
banners = new Array();
banners[0] = new banner("http://www.ukcitymedia.co.uk/bomsidebanner.jpg", "http://falcon1.betonmarkets.com/GB/BOMUK/MX2173 target='_blank'",
                        "BetOnMarkets - Fixed Odds betting in Forex, Stocks, indices, support, technical facilities. BetonMarkets.com", 
                        30);
banners[1] = new banner("http://impgb.tradedoubler.com/imp?type(img)g(17435408)a(1537928)", "http://clkuk.tradedoubler.com/click?p=65686&a=1537928&g=17435408 target='_blank'",
                        "tdwaterhouse online stockbroking services", 
                        20);
banners[2] = new banner("http://impgb.tradedoubler.com/imp?type(img)g(17435402)a(1537928)", "http://clkuk.tradedoubler.com/click?p=65686&a=1537928&g=17435402  target='_blank'",
                        "tdwaterhouse online self select ISA", 
                        20);
banners[3] = new banner("http://adfarm.mediaplex.com/ad/bn/9537-69184-25078-4", "http://www.ukcitymedia.co.uk/stockbrokers/barclays.php target='_blank'",
                        "Barclays Stockbrokers", 
                        20);
banners[4] = new banner("http://adfarm.mediaplex.com/ad/bn/9537-69184-25078-5", "http://www.ukcitymedia.co.uk/stockbrokers/barclays.php target='_blank'",
                        "Barclays Isa Offer", 
                        20);
banners[5] = new banner("reserved_for_spreadco", "reserved_for_spreadco target='_blank'",
                        "Spreadco", 
                        0);
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 + "' BORDER=0 ALT='" + banners[i].alt + "'></A>");
         return banners[i];
         break;
      }
   }
}
//-->
 

