/*==========================================================
  Name: getimages.js
  Date: 1/24/09
  Description: This routine works in conjunction with getimages.php and slideshow.js
               1. getimages.php must be located in the same directory as the images
               2. getimages.php will loop through the directory and populate an array (galleryarray[]) with the filenames of all images in the directory
               3. This routine (getimages.js) will loop through the array and initialize the slideshow with the filenames and descriptions
               4. The description of each slide will be the filename minus the extension
           
 *=========================================================== */
function setup_slides(path) { 
  SLIDES = new slideshow("SLIDES");
  curimage = 0;
  var picarray = new Array();
  while (curimage < galleryarray.length) {
  s = new slide();
  
  s.src =  path + galleryarray[curimage];
  pic = galleryarray[curimage];
  dot = pic.indexOf('.');
  s.text = pic.substring(0,dot);
  s.link = "";
  s.target = "";
  s.attr = "";
  s.filter = "";
  SLIDES.add_slide(s);
  picarray.push = path + galleryarray[curimage];
  curimage ++;
  }
    
  if (false) SLIDES.shuffle();  
  return picarray;
}

