var slideShowSpeed = 3000;
var crossFadeDuration = 2;
var Pic1 = new Array();
 Pic1[0] = "/photos/1.jpg";
 Pic1[1] = "/photos/2.jpg";
 Pic1[2] = "/photos/3.jpg";
 Pic1[3] = "/photos/4.jpg";
var Pic2 = new Array();
 Pic2[0] = "/photos/5.jpg";
 Pic2[1] = "/photos/6.jpg";
 Pic2[2] = "/photos/7.jpg";
 Pic2[3] = "/photos/8.jpg";
var Pic3 = new Array();
 Pic3[0] = "/photos/9.jpg";
 Pic3[1] = "/photos/10.jpg";
 Pic3[2] = "/photos/11.jpg";
 Pic3[3] = "/photos/12.jpg";
var t = 0;
var j = 0;
var p1 = Pic1.length;
var p2 = Pic2.length;
var p3 = Pic3.length;
var preLoad1 = new Array();
for (i = 0; i < p1; i++) {
   preLoad1[i] = new Image();
   preLoad1[i].src = Pic1[i];
}
var preLoad2 = new Array();
for (i = 0; i < p2; i++) {
   preLoad2[i] = new Image();
   preLoad2[i].src = Pic2[i];
}
var preLoad3 = new Array();
for (i = 0; i < p3; i++) {
   preLoad3[i] = new Image();
   preLoad3[i].src = Pic3[i];
}
function runSlideShow() {
   if (document.all) {
      document.images.SlideShow1.style.filter="blendTrans(duration=1)";
      document.images.SlideShow1.style.filter="blendTrans(duration=crossFadeDuration)";
      document.images.SlideShow1.filters.blendTrans.Apply();
      document.images.SlideShow2.style.filter="blendTrans(duration=1)";
      document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)";
      document.images.SlideShow2.filters.blendTrans.Apply();
      document.images.SlideShow3.style.filter="blendTrans(duration=1)";
      document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration)";
      document.images.SlideShow3.filters.blendTrans.Apply();
   }
   document.images.SlideShow1.src = preLoad1[j].src;
   document.images.SlideShow2.src = preLoad2[j].src;
   document.images.SlideShow3.src = preLoad3[j].src;
   if (document.all) {
      document.images.SlideShow1.filters.blendTrans.Play();
      document.images.SlideShow2.filters.blendTrans.Play();
      document.images.SlideShow3.filters.blendTrans.Play();
   }
   j = j + 1;
   if (j > (p1-1)) j=0;
   if (j > (p2-1)) j=0;
   if (j > (p3-1)) j=0;
   t = setTimeout("runSlideShow()", slideShowSpeed);
}
