// JavaScript Document

if (document.images)
{
  SLIDES1.set_image(document.images.SLIDESIMG1);
  SLIDES1.set_textid("SLIDESTEXT"); // optional
  SLIDES1.update();
  SLIDES1.play(); //optional
}

if (document.images)
{
  SLIDES2.set_image(document.images.SLIDESIMG2);
  SLIDES2.set_textid("SLIDESTEXT"); // optional
  SLIDES2.update();
  SLIDES2.play(); //optional
}

if (document.images)
{
  SLIDES3.set_image(document.images.SLIDESIMG3);
  SLIDES3.set_textid("SLIDESTEXT"); // optional
  SLIDES3.update();
  SLIDES3.play(); //optional
}

if (document.images)
{
  SLIDES4.set_image(document.images.SLIDESIMG4);
  SLIDES4.set_textid("SLIDESTEXT"); // optional
  SLIDES4.update();
  SLIDES4.play(); //optional
}


if (document.images) {

SLIDES1.image = document.images.SLIDESIMG1;

// Create a function to ramp up the image opacity in Mozilla
var fadein_opacity = 0.04;
var fadein_img = SLIDES1.image;
function fadein(opacity) {
  if (typeof opacity != 'undefined') { fadein_opacity = opacity; }
  if (fadein_opacity < 0.99 && 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
SLIDES1.post_update_hook = function() { fadein(0.04); }

}

if (document.images) {

SLIDES2.image = document.images.SLIDESIMG2;

// Create a function to ramp up the image opacity in Mozilla
var fadein_opacity = 0.04;
var fadein_img = SLIDES2.image;
function fadein(opacity) {
  if (typeof opacity != 'undefined') { fadein_opacity = opacity; }
  if (fadein_opacity < 0.99 && 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
SLIDES2.post_update_hook = function() { fadein(0.04); }

}

if (document.images) {

SLIDES3.image = document.images.SLIDESIMG3;

// Create a function to ramp up the image opacity in Mozilla
var fadein_opacity = 0.04;
var fadein_img = SLIDES3.image;
function fadein(opacity) {
  if (typeof opacity != 'undefined') { fadein_opacity = opacity; }
  if (fadein_opacity < 0.99 && 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
SLIDES3.post_update_hook = function() { fadein(0.04); }

}

if (document.images) {

SLIDES4.image = document.images.SLIDESIMG4;

// Create a function to ramp up the image opacity in Mozilla
var fadein_opacity = 0.04;
var fadein_img = SLIDES4.image;
function fadein(opacity) {
  if (typeof opacity != 'undefined') { fadein_opacity = opacity; }
  if (fadein_opacity < 0.99 && 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
SLIDES4.post_update_hook = function() { fadein(0.04); }

}
