<!-- 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(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 width=130 ALT='" + alt + "'></A>");
}
banner.prototype.display = display;
banners = new Array();
banners[0] = new banner("used/sponsor1.gif","","Michigan Community Financial Services",10);
banners[1] = new banner("used/sponsor2.gif","","Al-Long Ford",10);
banners[2] = new banner("used/sponsor3.gif","","Dr. David Ayoub",10);
banners[3] = new banner("used/sponsor4.gif","","ICA",10);
banners[4] = new banner("used/sponsor5.gif","http://www.amerfatuhiart.com"," Amer Hanna Fatuhi",10);
banners[5] = new banner("used/sponsor6.gif","http://www.iraqiartists.org","Iraqi Artists Association",10);
banners[6] = new banner("used/sponsor7.gif","","Mr. Tarik Daoud - Al-Long Ford",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 + "' BORDER=0 ALT='" + banners[i].alt + "'></A>");
         return banners[i];
         break;
      }
   }
}
//-->
