// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000;
// Duration of crossfade (seconds)
var crossFadeDuration = 5;
// Specify the image files

// to add more images, just continue
// the pattern, adding to the array below
// do not edit anything below this line
var t;
var j1 = 0,j2 = 0, j3 = 0, j4 = 0;
var p1 = Pic1.length;

var preLoad1 = new Array();
for (i = 0; i < p1; i++) {
  preLoad1[i] = new Image();
  preLoad1[i].src = Pic1[i];
}

function runSlideShow(nr) {
  if (document.all) {
  eval('document.images.SlideShow'+nr+'.style.filter="blendTrans(duration=2)";');
  eval('document.images.SlideShow'+nr+'.style.filter="blendTrans(duration=crossFadeDuration)";');
  eval('document.images.SlideShow'+nr+'.filters.blendTrans.Apply();');
  }
  eval('document.images.SlideShow'+nr+'.src = preLoad'+nr+'[j'+nr+'].src;');
  if (document.all) {
  eval('document.images.SlideShow'+nr+'.filters.blendTrans.Play();');
  }
  eval('j'+nr+' = j'+nr+' + 1;');
  eval('if (j'+nr+' > (p'+nr+' - 1)) j'+nr+' = 0;');
  eval('t = setTimeout("runSlideShow('+nr+')", slideShowSpeed);');
}
