// (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 slideShowSpeed2 = 4000

// Specify the image files
var Pic2 = new Array() // don't touch this

// to add more images, just continue
// the pattern, adding to the array below

var i=0;
for (i=0;i<=7;i++)
{
Pic2[i] = '/i/rotate/rotate'+(i+1)+'.jpg'
}

function fisherYates ( Pic2 ) {
  var i = Pic2.length;
  if ( i == 0 ) return false;
  while ( --i ) {
     var j = Math.floor( Math.random() * ( i + 1 ) );
     var tempi = Pic2[i];
     var tempj = Pic2[j];
     Pic2[i] = tempj;
     Pic2[j] = tempi;
   }
}
fisherYates(Pic2);



// =======================================
// do not edit anything below this line
// =======================================

var t2
var j2 = 0
var p2 = Pic2.length

var preLoad2 = new Array()
for (i = 0; i < p2; i++){
   preLoad2[i] = new Image()
   preLoad2[i].src = Pic2[i]
}

function runSlideShow2(){
   if (document.all){
      document.images.SlideShow2.style.filter="blendTrans(duration=2)"
      document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow2.filters.blendTrans.Apply()    
   }
   document.images.SlideShow2.src = preLoad2[j2].src
   if (document.all){
      document.images.SlideShow2.filters.blendTrans.Play()
   }
   j2 = j2 + 1
   if (j2 > (p2-1)) j2=0
   t2 = setTimeout('runSlideShow2()', slideShowSpeed2)
}
window.onload = function() { runSlideShow2(); };