<!-- 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/

<!-- SIDE BAR 120x240-->
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=120 HEIGHT=240 BORDER=0 ALT='" + alt + "'></A>");
}
banner.prototype.display = display;
banners = new Array();
banners[0] = new bannerBL("http://www.motherswork.com/images/linkshare/2009/MH/NURSING/SHIPPING/MH120x240.jpg",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=83577.10000581&type=4&subid=0 target='_blank'",
                        "Mothers Work, Inc.",
                        1);
banners[1] = new bannerBL("http://www.motherswork.com/images/linkshare/2009/MH/PLUS/SHIPPING/MH120x240.jpg",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=83577.10000577&type=4&subid=0 target='_blank'",
                        "Mothers Work, Inc.",
                        1);
banners[2] = new bannerBL("http://www.motherswork.com/images/linkshare/2009/COLLECTION/pea120x240.jpg",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=83577.10000634&type=4&subid=0 target='_blank'",
                        "Destination Maternity Corporation", 
                        1);
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=120 HEIGHT=240 BORDER=0 ALT='" + banners[i].alt + "'></A>");
         return banners[i];
         break;
      }
   }
}
//-->

<!-- BOTTOM LEFT SIDE 468x60 -->
function bannerBL(img_source,url,alt,chance) {
   this.img_source = img_source;
   this.url = url;
   this.alt = alt;
   this.chance = chance;
}
function displayBL() {
   with (this) document.write("<A HREF=" + url + "><IMG SRC='" + img_source + "' WIDTH=468 HEIGHT=60 BORDER=0 ALT='" + alt + "'></A>");
}
bannerBL.prototype.displayBL = displayBL;
bannersBL = new Array();
bannersBL[0] = new bannerBL("http://www.babiesrus.com/graphics/promo/BRU/bru_babystrollers_468x60.jpg",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=144039.10000082&type=4&subid=0 target='_blank'",
                        "Babies R Us",
                        1);
bannersBL[1] = new bannerBL("http://www.babiesrus.com/graphics/promo/BRU/bru_clothlafay_468x60.gif",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=144039.10000008&type=4&subid=0 target='_blank'",
                        "Babies R Us",
                        1);
bannersBL[2] = new bannerBL("http://www.babiesrus.com/graphics/promo/BRU/bru_healthsafety_468x60.gif",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=144039.10000016&type=4&subid=0 target='_blank'",
                        "Babies R Us", 
                        1);
bannersBL[3] = new bannerBL("http://www.babiesrus.com/graphics/promo/BRU/bru_babyongo_468x60.gif",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=144039.10000022&type=4&subid=0 target='_blank'",
                        "Babies R Us", 
                        1);
bannersBL[4] = new bannerBL("http://www.babiesrus.com/graphics/promo/BRU/bru_twins_468x60.gif",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=144039.10000028&type=4&subid=0 target='_blank'",
                        "Babies R Us", 
                        1);
bannersBL[5] = new bannerBL("http://www.babiesrus.com/graphics/promo/BRU/bru_468x60.jpg",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=144039.10000034&type=4&subid=0 target='_blank'",
                        "Babies R Us", 
                        1);
bannersBL[6] = new bannerBL("http://www.babiesrus.com/graphics/promo/BRU/bru_wendybdesign_468x60.jpg",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=144039.10000079&type=4&subid=0 target='_blank'",
                        "Babies R Us", 
                        1);
bannersBL[7] = new bannerBL("http://www.babiesrus.com/graphics/promo/BRU/bru_carseats_468x60.jpg",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=144039.10000085&type=4&subid=0 target='_blank'",
                        "Babies R Us", 
                        1);
bannersBL[8] = new bannerBL("http://www.babiesrus.com/graphics/promo/BRU/bru_babyreg_468x60.jpg",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=144039.10000039&type=4&subid=0 target='_blank'",
                        "Babies R Us", 
                        1);
bannersBL[9] = new bannerBL("http://www.babiesrus.com/graphics/promo/BRU/bru_gifts_468x60.gif",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=144039.10000031&type=4&subid=0 target='_blank'",
                        "Babies R Us", 
                        1);
bannersBL[10] = new bannerBL("http://www.babiesrus.com/graphics/promo/BRU/bru_justformom_468x60.gif",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=144039.10000025&type=4&subid=0 target='_blank'",
                        "Babies R Us", 
                        1);
bannersBL[11] = new bannerBL("http://www.babiesrus.com/graphics/promo/BRU/bru_nursery_468x60.gif",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=144039.10000019&type=4&subid=0 target='_blank'",
                        "Babies R Us", 
                        1);
sum_of_all_chances = 0;
for (i = 0; i < bannersBL.length; i++) {
   sum_of_all_chances += bannersBL[i].chance;
}
function displayBL_banner() {
   chance_limit = 0;
   randomly_selected_chance = Math.round((sum_of_all_chances - 1) * Math.random()) + 1;
   for (i = 0; i < bannersBL.length; i++) {
      chance_limit += bannersBL[i].chance;
      if (randomly_selected_chance <= chance_limit) {
         document.write("<A HREF=" + bannersBL[i].url + "><IMG SRC='" + bannersBL[i].img_source + "' WIDTH=468 HEIGHT=60 BORDER=0 ALT='" + bannersBL[i].alt + "'></A>");
         return bannersBL[i];
         break;
      }
   }
}

//-->

<!-- BOTTOM RIGHT SIDE 468x60 -->
function bannerBR(img_source,url,alt,chance) {
   this.img_source = img_source;
   this.url = url;
   this.alt = alt;
   this.chance = chance;
}
function displayBR() {
   with (this) document.write("<A HREF=" + url + "><IMG SRC='" + img_source + "' WIDTH=468 HEIGHT=60 BORDER=0 ALT='" + alt + "'></A>");
}
bannerBR.prototype.displayBR = displayBR;
bannersBR = new Array();
bannersBR[0] = new bannerBR("http://www.motherswork.com/images/linkshare/edamame468x60.gif",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=83577.10000154&type=4&subid=0 target='_blank'",
                        "Mothers Work, Inc.",
                        1);
bannersBR[1] = new bannerBR("http://www.motherswork.com/images/linkshare/ls_dest_05_05_468_60.jpg",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=83577.10000140&type=4&subid=0 target='_blank'",
                        "Mothers Work, Inc.",
                        1);
bannersBR[2] = new bannerBR("http://www.motherswork.com/images/linkshare/linkshare_mhood_fall04_468_60.jpg",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=83577.10000065&type=4&subid=0 target='_blank'",
                        "Mothers Work, Inc.", 
                        1);
sum_of_all_chances = 0;
for (i = 0; i < bannersBR.length; i++) {
   sum_of_all_chances += bannersBR[i].chance;
}
function displayBR_banner() {
   chance_limit = 0;
   randomly_selected_chance = Math.round((sum_of_all_chances - 1) * Math.random()) + 1;
   for (i = 0; i < bannersBR.length; i++) {
      chance_limit += bannersBR[i].chance;
      if (randomly_selected_chance <= chance_limit) {
         document.write("<A HREF=" + bannersBR[i].url + "><IMG SRC='" + bannersBR[i].img_source + "' WIDTH=468 HEIGHT=60 BORDER=0 ALT='" + bannersBR[i].alt + "'></A>");
         return bannersBR[i];
         break;
      }
   }
}
//-->

<!-- TOP 468x60 -->
function bannerTOP(img_source,url,alt,chance) {
   this.img_source = img_source;
   this.url = url;
   this.alt = alt;
   this.chance = chance;
}
function displayTOP() {
   with (this) document.write("<A HREF=" + url + "><IMG SRC='" + img_source + "' WIDTH=468 HEIGHT=60 BORDER=0 ALT='" + alt + "'></A>");
}
bannerTOP.prototype.displayTOP = displayTOP;
bannersTOP = new Array();
bannersTOP[0] = new bannerTOP("http://a248.e.akamai.net/f/248/580/1d/pics.drugstore.com/prodimg/promo/assoclinks/468x60_savegas.gif",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=43440.10000402&type=4&subid=0 target='_blank'",
                        "drugstore.com",
                        1);
bannersTOP[1] = new bannerTOP("http://a248.e.akamai.net/f/248/580/1d/pics.drugstore.com/prodimg/promo/assoclinks/468x60_natural_bty.jpg",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=57302.10000096&type=4&subid=0 target='_blank'",
                        "Beauty.com",
                        1);
bannersTOP[2] = new bannerTOP("http://a216.g.akamai.net/v/216/580/1d/pics.drugstore.com/prodimg/promo/assoclinks/IVD/468x60_visiondirect_bml.gif",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=138854.10000081&type=4&subid=0 target='_blank'",
                        "Purchase your contact lenses at Vision Direct and get NO PAYMENTS for 90 days and FREE SHIPPING on orders of $100 or more!", 
                        1);
bannersTOP[3] = new bannerTOP("http://ad.linksynergy.com/fs-bin/show?id=kvWRQXdway4&bids=136622.10001169&subid=0&type=4&gridnum=1",
                        "http://click.linksynergy.com/fs-bin/click?id=kvWRQXdway4&offerid=136622.10001169&subid=0&type=4 target='_blank'",
                        "Family Vacations",
                        1);
bannersTOP[4] = new bannerTOP("http://ad.linksynergy.com/fs-bin/show?id=kvWRQXdway4&bids=139179.10002816&subid=0&type=4&gridnum=1",
                        "http://linksynergy.overstock.com/fs-bin/click?id=kvWRQXdway4&offerid=139179.10002816&subid=0&type=4 target='_blank'",
                        "Overstock.com",
                        1);
sum_of_all_chances = 0;
for (i = 0; i < bannersTOP.length; i++) {
   sum_of_all_chances += bannersTOP[i].chance;
}
function displayTOP_banner() {
   chance_limit = 0;
   randomly_selected_chance = Math.round((sum_of_all_chances - 1) * Math.random()) + 1;
   for (i = 0; i < bannersTOP.length; i++) {
      chance_limit += bannersTOP[i].chance;
      if (randomly_selected_chance <= chance_limit) {
         document.write("<A HREF=" + bannersTOP[i].url + "><IMG SRC='" + bannersTOP[i].img_source + "' WIDTH=468 HEIGHT=60 BORDER=0 ALT='" + bannersTOP[i].alt + "'></A>");
         return bannersTOP[i];
         break;
      }
   }
}
//-->

