function bannera(type,img_source,bgcolor,alt,name,width,height,url,chance) {
   this.type = type;
   this.img_source = img_source;
   this.bgcolor = bgcolor;
   this.alt = alt;
   this.name = name;
   this.width = width;
   this.height = height;
   this.url = url;
   this.chance = chance;
}
function bannerb(type,img_source,bgcolor,alt,name,width,height,url,chance) {
   this.type = type;
   this.img_source = img_source;
   this.bgcolor = bgcolor;
   this.alt = alt;
   this.name = name;
   this.width = width;
   this.height = height;
   this.url = url;
   this.chance = chance;
}

function bannerc(type,img_source,bgcolor,alt,name,width,height,url,chance) {
   this.type = type;
   this.img_source = img_source;
   this.bgcolor = bgcolor;
   this.alt = alt;
   this.name = name;
   this.width = width;
   this.height = height;
   this.url = url;
   this.chance = chance;
}

function display() {
with (this) document.write("<A HREF=" + url + "><" + type + " SRC='" + img_source + "' bgcolor='" + bgcolor + "' width='" + width + "'  height='" + height + "' border=0 quality=best wmode=opaque alt='" + alt + "' name='" + name + "'></A>");
}
bannera.prototype.display = display;
bannerb.prototype.display = display;
bannerc.prototype.display = display;


//Homepage First Bottom Banner
bannersa = new Array();
bannersa[0] = new bannera("img",
			"/gourmetsettings/content/graphics/banners/bottom_banners/img/shoponline.gif",
            "ffffff", 
            "Shop our stainless steel flatware",
            "Shop our stainless steel flatware",
			"222",
			"155",	
            "/flatware",
             100);

//Homepage Second Bottom Banner
bannersb = new Array();
bannersb[0] = new bannerb("img",
			"/gourmetsettings/content/graphics/banners/bottom_banners/img/restaurantsowners.gif",
            "ffffff", 
            "View our flatware for small restaurants",
            "View our flatware for small restaurants",
			"222",
			"155",	
            "/bulk-flatware",
             100);

//Homepage Third Bottom Banner
bannersc = new Array();
bannersc[0] = new bannerc("img",
			"/gourmetsettings/content/graphics/banners/bottom_banners/img/oprah_banner.jpg",
            "ffffff", 
            "Gourmet Setting Steak Knives Featured in Oprah Magazine",
            "Gourmet Setting Steak Knives Featured in Oprah Magazine",
			"222",
			"155",	
            "/steak-knife",
             100);
			 
sum_of_all_chances = 0;
for (i = 0; i < bannersc.length; i++) {
   sum_of_all_chances += bannersc[i].chance;
}
function bottom_thirdbanner() {
   chance_limit = 0;
   randomly_selected_chance = Math.round((sum_of_all_chances - 1) * Math.random()) + 1;
   for (i = 0; i < bannersc.length; i++) {
      chance_limit += bannersc[i].chance;
      if (randomly_selected_chance <= chance_limit) {
         document.write("<A HREF=" + bannersc[i].url + "><" + bannersc[i].type + " SRC='" + bannersc[i].img_source + "' bgcolor='" + bannersc[i].bgcolor + "' name='" + bannersc[i].name + "' width='" + bannersc[i].width + "' height='" + bannersc[i].height +  "' border=0 quality=best wmode=opaque alt='" + bannersc[i].alt + "'></A>");
         return bannersc[i];
         break;
      }
   }
}

function bottom_secondbanner() {
   chance_limit = 0;
   randomly_selected_chance = Math.round((sum_of_all_chances - 1) * Math.random()) + 1;
   for (i = 0; i < bannersb.length; i++) {
      chance_limit += bannersb[i].chance;
      if (randomly_selected_chance <= chance_limit) {
         document.write("<A HREF=" + bannersb[i].url + "><" + bannersb[i].type + " SRC='" + bannersb[i].img_source + "' bgcolor='" + bannersb[i].bgcolor + "' name='" + bannersb[i].name + "' width='" + bannersb[i].width + "' height='" + bannersb[i].height +  "' border=0 quality=best wmode=opaque alt='" + bannersb[i].alt + "'></A>");
         return bannersb[i];
         break;
      }
   }
}
function bottom_firstbanner() {
   chance_limit = 0;
   randomly_selected_chance = Math.round((sum_of_all_chances - 1) * Math.random()) + 1;
   for (i = 0; i < bannersa.length; i++) {
      chance_limit += bannersa[i].chance;
      if (randomly_selected_chance <= chance_limit) {
         document.write("<A HREF=" + bannersa[i].url + "><" + bannersa[i].type + " SRC='" + bannersa[i].img_source + "' bgcolor='" + bannersa[i].bgcolor + "' name='" + bannersa[i].name + "' width='" + bannersa[i].width + "' height='" + bannersa[i].height +  "' border=0 quality=best wmode=opaque alt='" + bannersa[i].alt + "'></A>");
         return bannersa[i];
         break;
      }
   }
}
//-->