<!-- 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/scripts/
function banner(url,chance) {
   this.url = url;
  this.chance = chance;
}
function display() {
   with (this) document.write(" " + url + " ");
}
banner.prototype.display = display;
banners = new Array();
banners[0] = new banner("<a href='http://www.superfutai.com' target='_blank' rel='nofollow'><img src='http://www.ccmp3.net/iframe-reclame/pagini.gif' border='0' width='468' height='60'></a>",25);
banners[1] = new banner("<a href='http://www.blogstate.info' target='_blank' rel='nofollow'><img src='http://www.ccmp3.net/iframe-reclame/foto-video.gif' border='0' width='468' height='60'></a>",25);
banners[2] = new banner("<a href='http://www.cws89.net/go.php?site=http://bit.ly/lmavSo' target='_blank'><img src='http://www.ccmp3.net/iframe-reclame/876.gif' border='0' width='468' height='60'></a>",25);
banners[3] = new banner("<a href='http://www.filmenoi2011.info/' target='_blank'><img src='http://www.ccmp3.net/iframe-reclame/468x60-3.gif' border='0' width='468' height='60'></a>",25);

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(" " + banners[i].url + " ");
         return banners[i];
         break;
      }
   }
}
//-->
