// (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 slideShowSpeed = 3500

// Duration of crossfade (seconds)
var crossFadeDuration = 1

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = '/freqflyer/slides_ffp/a1.jpg'
Pic[1] = '/freqflyer/slides_ffp/a2.jpg'
Pic[2] = '/freqflyer/slides_ffp/a3.jpg'
Pic[3] = '/freqflyer/slides_ffp/a4.jpg'
Pic[4] = '/freqflyer/slides_ffp/a5.jpg'
Pic[5] = '/freqflyer/slides_ffp/a6.jpg'
Pic[6] = '/freqflyer/slides_ffp/a7.jpg'
Pic[7] = '/freqflyer/slides_ffp/a8.jpg'
Pic[8] = '/freqflyer/slides_ffp/a9.jpg'
Pic[9] = '/freqflyer/slides_ffp/a10.jpg'
Pic[10] = '/freqflyer/slides_ffp/a11.jpg'
Pic[11] = '/freqflyer/slides_ffp/a12.jpg'
Pic[12] = '/freqflyer/slides_ffp/a13.jpg'
Pic[13] = '/freqflyer/slides_ffp/a14.jpg'
Pic[14] = '/freqflyer/slides_ffp/a15.jpg'
Pic[15] = '/freqflyer/slides_ffp/a16.jpg'
Pic[16] = '/freqflyer/slides_ffp/a17.jpg'
Pic[17] = '/freqflyer/slides_ffp/a18.jpg'
Pic[18] = '/freqflyer/slides_ffp/a19.jpg'
Pic[19] = '/freqflyer/slides_ffp/a20.jpg'
Pic[20] = '/freqflyer/slides_ffp/a21.jpg'
Pic[21] = '/freqflyer/slides_ffp/a22.jpg'
Pic[22] = '/freqflyer/slides_ffp/a23.jpg'
Pic[23] = '/freqflyer/slides_ffp/a24.jpg'
Pic[24] = '/freqflyer/slides_ffp/a25.jpg'
Pic[25] = '/freqflyer/slides_ffp/a26.jpg'
Pic[26] = '/freqflyer/slides_ffp/a27.jpg'
Pic[27] = '/freqflyer/slides_ffp/a28.jpg'

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[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 = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}