//User defined variables var ImagesFolder = "jpgindex/";                                       var Images_JPG = new Array('001.jpg','003.jpg','004.jpg','005.jpg');   var DisplayInterval = 5; //Number of seconds to wait before the next image is displayed//Internal variables (do not change these unless you know what you are doing)var IsValidBrowser = false;var BannerIndex = 0;var BannerNumImages = Images_JPG.length;var DisplayInterval = DisplayInterval * 1000;//Function runs when this page has been loaded and does the following://1. Determine the browser name and version  (since the script will only work on Netscape 3+ and Internet Explorer 4+).//2. Start the timer object that will periodically change the image displayed by the Banner Ad.//3. Preload the images used by the Banner Ad rotator scriptfunction InitialisebannerRotator() {//Determine the browser name and version//The script will only work on Netscape 3+ and Internet Explorer 4+var BrowserType = navigator.appName;var BrowserVersion = parseInt(navigator.appVersion);if (BrowserType == "Netscape" && (BrowserVersion >= 3)) {IsValidBrowser = true;}if (BrowserType == "Microsoft Internet Explorer" && (BrowserVersion >= 4)) {IsValidBrowser = true;}if (IsValidBrowser) {TimerObject = setTimeout("ChangeImage()", DisplayInterval);BannerIndex = 0;}}//Function to change the src of the Banner Ad imagefunction ChangeImage() {BannerIndex = BannerIndex + 1;if (BannerIndex >= BannerNumImages) {BannerIndex = 0;}window.document.banner.src = ImagesFolder + Images_JPG[BannerIndex];TimerObject = setTimeout("ChangeImage()", DisplayInterval);}InitialisebannerRotator();