
<!-- 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 + "' WIDTH=96 HEIGHT=186 BORDER=0 ALT='" + alt + "'></A>");
}
banner.prototype.display = display;
banners = new Array();
banners[0] = new banner("linkimages/ear-plugs-tnep-6400.jpg ",
                        "../earplugs/earplugs.html#6400  target='_new'",
                        " Max30 Earplugs and MAX-1 Earplugs feature a smooth, soil resistant skin that stands up to humidity and varying temperature conditions. ",
                        100);
banners[1] = new banner("linkimages/ear-plugs-tnep-6400mr.jpg",
                        "../workgloves/luminator-reflective-gloves.html  target='_self'",
                        "Easy grip handle allows easy insertion. Air bubble in the tip provides cushioned comfort. Can be washed and reused. ",
                        100);
banners[2] = new banner("linkimages/eye-care-tnsg-dpg56-clear.jpg",
                        "../earplugs/earplugs03.html#6400mr target='_blank'",
                        "Full wraparound frame, Rubber tipped temples with belt ribs. Soft, rubber nosepiece, Polycarbonate lens ",
                        100);
banners[3] = new banner("linkimages/eye-care-tnsg-dpg56-clear.jpg",
                        "../sglasses/dewalt-safety-glasses.html#dpg57 target='_blank'",
                        "Full wraparound frame, Rubber tipped temples with belt ribs. Soft, rubber nosepiece, Polycarbonate lens ",
                        100);
banners[4] = new banner("linkimages/eye-care-tnsg-gn504t.jpg",
                        "../sglasses/safety-goggles.html#wg200l target='_blank'",
                        "The Capstone can be used as a chemical splash goggle, or you can remove the vent caps for additional ventilation.",
                        100);
banners[5] = new banner("linkimages/foot-tncl-t120-3.jpg",
                        "../clothing/Sunsoft-impervious-boot-covers.html#t120-3 target='_blank'",
                        "The SunsoftTM material is a lightweight spunbonded polypropylene fabric with a polyethylene coating. ",
                        100);
banners[6] = new banner("linkimages/foot-tncl-12440.jpg",
                        "../clothing/Tyvek-Polypropylene-shoe-covers.html#14440 target='_blank'",
                        "DuPont TyvekŪ shoe covers are available in many sizes and designs.",
                        100);
banners[7] = new banner("linkimages/hair-net-tncl-801-21.jpg",
                        "../clothing/clothing10.html#b target='_blank'",
                        "This is an economical and sanitary protection for clean work environments. Roomy bouffant styling ensures non-binding fit for extra comfort.",
                        100);
banners[8] = new banner("linkimages/hair-net-tncl-701.jpg",
                        "../clothing/clothing9.html#a target='_blank'",
                        "Consider these disposable, more economical draw sting DuPont TyvekŪ hoods",
                        100);
banners[9] = new banner("linkimages/work-glove-tnwg-39-122.jpg",
                        "../workgloves/workgloves10.html#39-122 target='_blank'",
                        "The Ansell Edmont tough nitrile lasts longer and protects better than many unsupported chemical resistant gloves.",
                        100);
banners[10] = new banner("linkimages/work-glove-tnwg-1004.jpg",
                        "../workgloves/workgloves11.html#7005p target='_blank'",
                        "The soft 100% Best nitrile glove offers a high level of tactile sensitivity, comfort, dexterity and puncture resistance.",
                        100);



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=115 HEIGHT=165 BORDER=0 ALT='" + banners[i].alt + "'></A>");
         return banners[i];
         break;
      }
   }
}
//-->

