  // global variables
  var numphotos2 = 2;				// number of photos, up to 100
  var pics2 = new Array(numphotos2);		// array to hold pictures
  var rframe2 = 1;				// current frame, start at second one
  var timerID2 = 0;  				// name of timer
  var numsec2 = 3;				// number of seconds in delay

  // initialize pics array with image urls
  for(i2 = 0; i2 < numphotos2; i2++)
  {
    pics2[i2] = new Image();			// create new image
    pics2[i2].src = "images/spa" + i2 + ".jpg";	// set file names and browser loads
  }

    //  This function displays the slides on the screen with delay given above
    function photoAnimation2()
   {
       document.slideshow2.src = pics2[rframe2].src;
       rframe2++;				// increment frame counter
       if(rframe2 > numphotos2 - 1)  rframe2 = 0;		// return frame counter to frame 1
       timerID2 = setTimeout ("photoAnimation2()",numsec2 * 1000);
   }