// JavaScript Document
// (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

var slideShowSpeed2 = 4500

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// 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] = 'rolling1.gif';
Pic[1] = 'rolling2.gif';
Pic[2] = 'rolling3.gif';
Pic[3] = 'rolling4.gif';
Pic[4] = 'rolling5.gif';

var Pic2 = new Array();

Pic2[0] = 'toprolling1.gif';
Pic2[1] = 'toprolling2.gif';
Pic2[2] = 'toprolling3.gif';
Pic2[3] = 'toprolling4.gif';
Pic2[4] = 'toprolling5.gif';
Pic2[5] = 'toprolling6.gif';
Pic2[6] = 'toprolling7.gif';

var Pic3 = new Array();

Pic3[0] = 'bookmark1.gif';
Pic3[1] = 'bookmark2.gif';
Pic3[2] = 'bookmark3.gif';
Pic3[3] = 'bookmark4.gif';
Pic3[4] = 'bookmark5.gif';
Pic3[5] = 'bookmark6.gif';
Pic3[6] = 'bookmark7.gif';

// =======================================
// 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 = 'images/'+ 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);
}

var x;
var y = 0;
var z = Pic2.length;

var preLoad2 = new Array();
for (a = 0; a < z; a++){
   preLoad2[a] = new Image();
   preLoad2[a].src = 'images/'+ Pic2[a];
}
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[y].src;
   if (document.all){
      document.images.SlideShow2.filters.blendTrans.Play();
   }
   y = y + 1;
   if (y > (z-1)) y=0;
   x = setTimeout('runSlideShow2()', slideShowSpeed2);
}

var l;
var m = 0;
var n = Pic3.length;

var preLoad3 = new Array();
for (f = 0; f < n; f++){
   preLoad3[f] = new Image();
   preLoad3[f].src = 'images/'+ Pic3[f];
}

function runSlideShow3(){
   if (document.all){
      document.images.SlideShow3.style.filter="blendTrans(duration=2)";
      document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration)";
      document.images.SlideShow3.filters.blendTrans.Apply()      ;
   }
   document.images.SlideShow3.src = preLoad3[m].src;
   if (document.all){
      document.images.SlideShow3.filters.blendTrans.Play();
   }
   m = m + 1;
   if (m > (n-1)) m=0;
   l = setTimeout('runSlideShow3()', slideShowSpeed);
}

