<!--

// Finish defining and activating the slideshow

///////////// MAIN SLIDESHOW /////////////
if (document.images) {

  // Tell the slideshow which image object to use
  ss1.image = document.images.ss1_img;

  // Tell the slideshow the ID of the element
  // that will contain the text for the slide
  ss1.textid = "slideshowCaption1";

  // Randomize the slideshow?
  // ss1.shuffle();

  // Update the image and the text for the slideshow
  ss1.update();

  // Auto-play the slideshow
  //ss1.play();
  
  // Create a function to ramp up the image opacity in Mozilla
	var fadein_opacity = 0.04;
	var fadein_img = ss1.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
	ss1.post_update_hook = function() { fadein(0.04); }

///////////// PROMOTIONS SLIDESHOW /////////////
  // Tell the slideshow which image object to use
  ss2.image = document.images.ss2_img;

  // Tell the slideshow the ID of the element
  // that will contain the text for the slide
  ss2.textid = "slideshowCaption2";

  // Randomize the slideshow?
  // ss2.shuffle();

  // Update the image and the text for the slideshow
  ss2.update();

  // Auto-play the slideshow
  //ss2.play();
  
  // Create a function to ramp up the image opacity in Mozilla
	var fadein2_opacity = 0.04;
	var fadein2_img = ss2.image;
	function fadein2(opacity) {
	  if (typeof opacity != 'undefined') { fadein2_opacity = opacity; }
	  if (fadein2_opacity < 0.99 && fadein2_img && fadein2_img.style &&
	      typeof fadein2_img.style.MozOpacity != 'undefined') {

    	fadein2_opacity += .05;
	    fadein2_img.style.MozOpacity = fadein2_opacity;
	    setTimeout("fadein2()", 50);
		}
	}

	// Tell the slideshow to call our function whenever the slide is changed
	ss2.post_update_hook = function() { fadein2(0.04); }

}
//-->