
     var slideCache = new Array();
     function RunSlideShow(pictureName,imageFiles,displaySecs,imageAlt)
    {     
      var imageSeparator = imageFiles.indexOf(";");
      var altSeparator = imageAlt.indexOf(";");
      var nextImage = imageFiles.substring(0,imageSeparator);
      var nextAlt = imageAlt.substring(0,altSeparator);
      if (document.all)
      {
        document.getElementById(pictureName).style.filter="blendTrans(duration=2)";
        document.getElementById(pictureName).filters.blendTrans.Apply();
      }
      document.getElementById(pictureName).src = nextImage;
      document.getElementById(pictureName).title = nextAlt;
      if (document.all)
      {
        document.getElementById(pictureName).filters.blendTrans.Play();
      }
      var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length)+ ';' + nextImage;
      var futureAlt= imageAlt.substring(altSeparator+1,imageAlt.length)+ ';' + nextAlt;
      setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+displaySecs+",'"+futureAlt+"')",displaySecs*1000);
      // Cache the next image to improve performance.
      imageSeparator = futureImages.indexOf(";");
      altSeparator=futureAlt.indexOf(";");
      nextAlt=futureAlt.substring(0,altSeparator);
      nextImage = futureImages.substring(0,imageSeparator);
      if (slideCache[nextImage] == null) {
      slideCache[nextImage] = new Image;
      slideCache[nextImage].src = nextImage;
      }
    }


