var slideShowSpeed = 3000
var crossFadeDuration = 3

var images = new Array()
images[0] = './images/flash-1.jpg'
images[1] = './images/flash-2.jpg'
images[2] = './images/flash-3.jpg'
images[3] = './images/flash-4.jpg'
images[4] = './images/flash-5.jpg'
images[5] = './images/flash-6.jpg'

var time
var j = 0
var imagesLen = images.length

var preLoad = new Array()

for (i = 0; i < imagesLen; i++){
   preLoad[i] = new Image()
   preLoad[i].src = images[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 > (imagesLen-1)) j=0
   time = setTimeout('runSlideShow()', slideShowSpeed)
}

/********************** To change picture from small to large ***********************/
function changeBgImage(whichCell) {
	largeImage ="url(images/";
	largeImage+=whichCell;
	largeImage+="l.gif)";				
	document.getElementById("divLarge").style.background=largeImage;		
}
/************************************************************************************/