
/* Banner Up! - Improve your batting average with real-time 
* banner rotation.
* Copyright 1999-2000 By Heidi Allen
* Knowledge Hound - The How-To Hunter
* Learn how to do almost anything...for free!
* Please visit us at http://www.knowledgehound.com
* License for use of this script is granted if and only if
* this entire copyright notice is included with it. We do not provide
* support for this script. It is provided solely as a friendly gesture.
* Use at your own risk. Thanks! */

//Banner Up! - Part One

/*If you want to cycle images without links attached to them, 
use Part One only.*/

/*Although Banner Up! can rotate multiple instances of each image, only one specific image will be displayed at a time. However, the place-holding images specified in the HTML of your page can be different, provided that they still use the same link.*/

/*All of the images that you use for Banner Up! must be the same size, although that size can be anything that you choose. Static images are recommended over animated ones.*/

var image="";
var banners=0;

function cycle() {
  if (++banners > 4) banners=1;
    loadbanners();
    document.banner1.src = image;


/* Choose how fast you want your images to cycle here. The default is a new image every 7 seconds. However, take into account different modem speeds. Larger images will require more time, especially with slower modems. The timing may be strange the first cycle around. That's because the image files have to be retrieved and cached on the user's local drive. All images in a set must be the same size. */

    window.setTimeout('cycle();',10000);
  }

//List your images here

  
function loadbanners() {
   if (banners==1)
      {
      image="/images/banner1.gif";
      }
   if (banners==2)
      {
      image="/images/banner2.gif";
      }
   if (banners==3)
      {
      image="/images/banner3.gif";
      }
   if (banners==4)
      {
      image="/images/banner4.gif";
      }
}
