<!--


// ADD THIS CODE INSIDE THE <HEAD> TAG:
//   <SCRIPT LANGUAGE="JavaScript" SRC="slides.js"></SCRIPT>

// ADD THIS CODE TO THE <BODY> TAG:
//   onLoad="slide_init(0);"

// ADD THIS CODE TO THE LOCATION OF THE SLIDE SHOW:
//   <IMG SRC="../graphics/event1/slide1.jpg" NAME="slide" WIDTH="450" HEIGHT="338" ALT="" style="filter:blendTrans(duration=2)" BORDER="0">

// SET SITE SPECIFIC INFORMATION HERE
var totalSlides = 53;      // total number of slides
var slideWidth = 450;     // slide width
var slideHeight = 338;    // slide height
var slideDelay = 3500;    // slide delay in milliseconds (6000 = 6 seconds)






// test for Opera Web browser
isOpera = (navigator.appName == 'Opera') ? true : false;
var slidesLoading = true;

if (document.images) 
{
  // pre-cache first slide show image
  var slideImages = Array();
  slideImages[0] = new Image(slideWidth, slideHeight);
  slideImages[0].src = "../graphics/event9/slide1.jpg";
}


// do slide show
var slideNum;

function slide_init(input)
{
  var num = input;
  if (slidesLoading)
  {
    if (slideImages[num].complete)
    {
      // the next slide has loaded completely
      do_slide(num);
      num = increment_slide(num);
      if (num == 0)
      {
        // we're done loading slides
        slidesLoading = false;
      }
      else
      {
        // load next slide
        slideImages[num] = new Image(slideWidth, slideHeight);
        slideImages[num].src = "../graphics/event9/slide" + (num+1) + ".jpg";
      }
      setTimeout("slide_init(" + num + ")", slideDelay);
    }
    else
    {
      // wait another second as the next slide has yet to finish loading
      setTimeout("slide_init(" + num + ")", 1000);
    }
  }
  else
  {
    do_slide(num);
    setTimeout("slide_init(" + increment_slide(num) + ")", slideDelay);
  }
}

function do_slide(num)
{
  if (!document.images)
    return;
  // if the browser is IE 4.x
  if (document.all && !isOpera)
    slide.filters.blendTrans.apply();
  document.images.slide.src = eval("slideImages[" + num + "].src");
  // if the browser is IE 4.x
  if (document.all && !isOpera)
    slide.filters.blendTrans.play();
}

function increment_slide(num)
{
  if (num < (totalSlides - 1))
    return (num+1);
  else
    return (0);
}

// -->
