
<!-- 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=468 HEIGHT=60 BORDER=0 ALT='" + alt + "'></A>");
}
banner.prototype.display = display;
banners = new Array();
// New code removed reference to specific site url for image and removed reference to open to external link, but will need to replace when there are Ads; for now it references the Advertise page
	banners[0] = new banner("img/468/AdvWithUs.jpg","advertise.php target='_parent'","Rotating Banner 3",10);
	banners[1] = new banner("img/468/AdvWithUs.jpg","advertise.php target='_parent'","Rotating Banner 2",10);
	banners[2] = new banner("img/468/AdvWithUs.jpg","advertise.php target='_parent'","Rotating Banner 1",10);
	//Original code line 20 thru 22
	//banners[0] = new banner("img/468/banner3.gif","http://www.google.com target='_blank'","Rotating Banner 3",10);
	//banners[1] = new banner("img/468/banner2.gif","http://www.yahoo.com target='_blank'","Rotating Banner 2",10);
	//banners[2] = new banner("img/468/banner1.gif","http://www.ebay.com target='_blank'","Rotating Banner 1",10);
	// End of Original code
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=468 HEIGHT=63 BORDER=0 ALT='" + banners[i].alt + "'></A>");
         return banners[i];
         break;
      }
   }
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0

  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

  if (restore) selObj.selectedIndex=0;

}
//-->
