<!-- Begin

//Preloaded slideshow script- By Jason Moon
//For this script and more
//Visit http://www.dynamicdrive.com

// PUT THE URL'S OF YOUR IMAGES INTO THIS ARRAY...
var Slides = new Array
('../images/gallery/pic-71.jpg',
'../images/gallery/pic-70.jpg',
'../images/gallery/pic-69.jpg',
'../images/gallery/pic-68.jpg',
'../images/gallery/pic-67.jpg',
'../images/gallery/pic-66.jpg',
'../images/gallery/pic-65.jpg',
'../images/gallery/pic-64.jpg',
'../images/gallery/pic-63.jpg',
'../images/gallery/pic-62.jpg',
'../images/gallery/pic-61.jpg',
'../images/gallery/pic-60.jpg',
'../images/gallery/pic-59.jpg',
'../images/gallery/pic-58.jpg',
'../images/gallery/pic-57.jpg',
'../images/gallery/pic-56.jpg',
'../images/gallery/pic-55.jpg',
'../images/gallery/pic-54.jpg',
'../images/gallery/pic-53.jpg',
'../images/gallery/pic-52.jpg',
'../images/gallery/pic-51.jpg',
'../images/gallery/pic-50.jpg',
'../images/gallery/pic-49.jpg',
'../images/gallery/pic-48.jpg',
'../images/gallery/pic-47.jpg',
'../images/gallery/pic-46.jpg',
'../images/gallery/pic-45.jpg',
'../images/gallery/pic-44.jpg',
'../images/gallery/pic-43.jpg',
'../images/gallery/pic-42.jpg',
'../images/gallery/pic-41.jpg',
'../images/gallery/pic-40.jpg',
'../images/gallery/pic-39.jpg',
'../images/gallery/pic-38.jpg',
'../images/gallery/pic-37.jpg',
'../images/gallery/pic-36.jpg',
'../images/gallery/pic-35.jpg',
'../images/gallery/pic-34.jpg',
'../images/gallery/pic-33.jpg',
'../images/gallery/pic-32.jpg',
'../images/gallery/pic-31.jpg',
'../images/gallery/pic-30.jpg',
'../images/gallery/pic-29.jpg',
'../images/gallery/pic-28.jpg',
'../images/gallery/pic-27.jpg',
'../images/gallery/pic-26.jpg',
'../images/gallery/pic-25.jpg',
'../images/gallery/pic-24.jpg',
'../images/gallery/pic-23.jpg',
'../images/gallery/pic-22.jpg',
'../images/gallery/pic-21.jpg',
'../images/gallery/pic-20.jpg',
'../images/gallery/pic-19.jpg',
'../images/gallery/pic-18.jpg',
'../images/gallery/pic-17.jpg',
'../images/gallery/pic-16.jpg',
'../images/gallery/pic-15.jpg',
'../images/gallery/pic-14.jpg',
'../images/gallery/pic-13.jpg',
'../images/gallery/pic-12.jpg',
'../images/gallery/pic-11.jpg',
'../images/gallery/pic-10.jpg',
'../images/gallery/pic-9.jpg',
'../images/gallery/pic-8.jpg',
'../images/gallery/pic-7.jpg',
'../images/gallery/pic-6.jpg',
'../images/gallery/pic-5.jpg',
'../images/gallery/pic-4.jpg',
'../images/gallery/pic-3.jpg',
'../images/gallery/pic-2.jpg',
'../images/gallery/pic-1.jpg');

// DO NOT EDIT BELOW THIS LINE!
function CacheImage(ImageSource) { // TURNS THE STRING INTO AN IMAGE OBJECT
   var ImageObject = new Image();
   ImageObject.src = ImageSource;
   return ImageObject;
}

function ShowSlide(Direction) {
   if (SlideReady) {
      NextSlide = CurrentSlide + Direction;
      // THIS WILL DISABLE THE BUTTONS (IE-ONLY)
      document.SlideShow.Previous.disabled = (NextSlide == 0);
      document.SlideShow.Next.disabled = (NextSlide == 
(Slides.length-1));    
 if ((NextSlide >= 0) && (NextSlide < Slides.length)) {
            document.images['Screen'].src = Slides[NextSlide].src;
            CurrentSlide = NextSlide++;
            Message = 'Picture ' + (CurrentSlide+1) + ' of ' + 
Slides.length;
            self.defaultStatus = Message;
            if (Direction == 1) CacheNextSlide();
      }
      return true;
   }
}

function Download() {
   if (Slides[NextSlide].complete) {
      SlideReady = true;
      self.defaultStatus = Message;
   }
   else setTimeout("Download()", 100); // CHECKS DOWNLOAD STATUS EVERY 100 MS
   return true;
}

function CacheNextSlide() {
   if ((NextSlide < Slides.length) && (typeof Slides[NextSlide] == 
'string'))
{ // ONLY CACHES THE IMAGES ONCE
      SlideReady = false;
      self.defaultStatus = 'Downloading next picture...';
      Slides[NextSlide] = CacheImage(Slides[NextSlide]);
      Download();
   }
   return true;
}

function StartSlideShow() {
   CurrentSlide = -1;
   Slides[0] = CacheImage(Slides[0]);
   SlideReady = true;
   ShowSlide(1);
}
//  End -->

