// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed1 = 3000;

// Duration of crossfade (seconds)
var crossFadeDuration = 3;

// Specify the image files
var Pic1 = new Array();

// to add more images, just continue
// the pattern, adding to the array below

Pic1[0] = 'images/slideshow/sfh-mv-camp-2010-2.jpg';
Pic1[1] = 'images/slideshow/evening-of-hope-2010-3.jpg';
Pic1[2] = 'images/slideshow/sfh-mv-camp-2010-4.jpg';
Pic1[3] = 'images/slideshow/food-industry-donation-5.jpg';
Pic1[4] = 'images/slideshow/kid-in-wheelchair-6.jpg';
Pic1[5] = 'images/slideshow/sfh-monday-2009-7.jpg';
Pic1[6] = 'images/slideshow/chivas-group-practice-8.jpg';
Pic1[7] = 'images/slideshow/chla-check-presentation-2010-1.jpg';

// =======================================
// do not edit anything below this line
// =======================================

var t;
var p1 = Pic1.length;

var preLoad1 = new Array();
for (i = 0; i < p1; i++)
{
   preLoad1[i] = new Image();
   preLoad1[i].src = Pic1[i];
}

var j = 0;
function runSlideShow1()
{
   if (document.all)
   {
      document.images.SlideShow1.style.filter="blendTrans(duration=2)";
      document.images.SlideShow1.style.filter="blendTrans(duration=crossFadeDuration)";
      document.images.SlideShow1.filters.blendTrans.Apply();
   }

   document.images.SlideShow1.src = preLoad1[j].src;
   if (document.all)
   {
      document.images.SlideShow1.filters.blendTrans.Play();
   }

   j = j + 1;
   if (j > (p1-1)) j=0;
   t = setTimeout('runSlideShow1()', slideShowSpeed1);
}

