// Set speed (milliseconds)
var speed = 2500

// Array of pictures for the slide show
var pic = new Array() 
pic[0] = 'profiles/images/j_armacost1.jpg'
pic[1] = 'profiles/images/b_rush1.jpg'
pic[2] = 'profiles/images/cwilliams.jpg'
pic[3] = 'profiles/images/d_olsen1.jpg'
pic[4] = 'profiles/images/f_doucet1.jpg'
pic[5] = 'profiles/images/didot2.jpg'
pic[6] = 'profiles/images/ryan_keith2.jpg'
pic[7] = 'profiles/images/d_cummins1.jpg'
pic[8] = 'profiles/images/jeff_horst.jpg'
pic[9] = 'profiles/images/Jay_training030.jpg'
pic[10] = 'profiles/images/m_foster1.jpg'
pic[11] = 'profiles/images/parney2.jpg'
pic[12] = 'profiles/images/l_blackketter1.jpg'



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()', speed)
}

// Start the slide show
window.onload=new Function("runSlideShow()");