
// Finish defining and activating the slideshow

// Set up the select list with the slide titles
function config_SLIDES_select()
{
var selectlist = document.slidesform.slidesselect;
selectlist.options.length = 0;
for (var i = 0; i < SLIDES.slides.length; i++)
{
  selectlist.options[i]       = new Option();
  selectlist.options[i].text  = (i + 1) + '. '
			      + SLIDES.slides[i].title;
}
selectlist.selectedIndex  = SLIDES.current;
}

// If you want some code to be called before or
// after the slide is updated, define the functions here
SLIDES.pre_update_hook = function()
{
  return;
}

// For the select list with the slide titles,
// set the selected item to the current slide
SLIDES.post_update_hook = function()
{
  document.slidesform.slidesselect.selectedIndex = this.current;
  return;
}

if (document.images)
{
  // Tell the slideshow which image object to use
  SLIDES.image = document.images.slideimg;

  // Tell the slideshow the ID of the element
  // that will contain the text for the slide
  SLIDES.textid = "slidestext";

  // Randomize the slideshow?
  // SLIDES.shuffle();

  // Set up the select list with the slide titles
  config_SLIDES_select();

  // Create a function to ramp up the image opacity in Mozilla
  var fadein_opacity = 0;
  var fadein_img = SLIDES.image;
  function fadein(opacity)
  {
    if  (typeof opacity != 'undefined')
    {
      fadein_opacity = opacity;
    }
    if	(   fadein_opacity < 1 && fadein_img && fadein_img.style
	&&  typeof fadein_img.style.MozOpacity != 'undefined')
    {
      fadein_opacity		 += .05;
      fadein_img.style.MozOpacity = fadein_opacity;
      setTimeout("fadein()", 50);
    }
  }

  // Tell the slideshow to call our function whenever the slide is changed
  SLIDES.post_update_hook = function() { fadein(0); }

  SLIDES.textarea  = document.slidesform.slidestext;

  // Update the image and the text for the slideshow
  SLIDES.update();

  // Auto-play the slideshow
  SLIDES.play();
  // Make the slideshow accessible to search engines
  // and non-javascript browsers.
  //
  // The following function is normally left commented out.
  // It is used only to produce some HTML that you can copy
  // into the NOscript section below.
  // The HTML produced will contain all of the slideshow images,
  // plus the text for each image.

  // document.write("<PRE>" + ss.noscript() + "<\/PRE>");
}






