﻿// JScript File

// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header: NS4-6,IE4-6, FireFox OK, doesn't fade
// Fade effect only in IE; degrades gracefully
// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 10000

// Duration of crossfade (seconds)
var crossFadeDuration = 5

// Specify the image files
var TopPics = new Array() // Please don't touch this
// to add more images, just continue
// the pattern, adding to the array below

TopPics[0] = 'IMG/BannerPics/LogoImage.gif'
TopPics[1] = 'IMG/BannerPics/Nurtured.gif'
TopPics[2] = 'IMG/BannerPics/Found.gif'
TopPics[3] = 'IMG/BannerPics/Adopted.gif'

//TopPics[0] = 'IMG/BannerPics/08CardHeader1.gif'
//TopPics[1] = 'IMG/BannerPics/08CardHeader2.gif'


//************************************************************************
// Please do not edit anything below this line
//************************************************************************

var t
var j = 0
var p = TopPics.length

var preLoadTop = new Array()

for (i = 0; i < p; i++)
{
   preLoadTop[i] = new Image()
   preLoadTop[i].src = TopPics[i]
}

function runSlideShow()
{
   if (document.all)
   {
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()
   }
   
   document.images.SlideShow.src = preLoadTop[j].src
   
   if (document.all)
   {
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
      t = setTimeout('runSlideShow()', slideShowSpeed)
}    
