<!--  //

// Specify the image files
var Pic = new Array() 
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] ='images/homeimage1.jpg'
Pic[1] ='images/homeimage2.jpg'
Pic[2] ='images/homeimage3.jpg'

var t
var j = 0
var k = 1
var l = 2
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

var firsttime=1

function runSlideShow(){
   		if (document.all){
      		document.images.SlideShow1.style.filter="blendTrans(duration=4)"
      		document.images.SlideShow1.filters.blendTrans.Apply()  
	  
			document.images.SlideShow2.style.filter="blendTrans(duration=4)"
      		document.images.SlideShow2.filters.blendTrans.Apply() 
	  
      		document.images.SlideShow3.style.filter="blendTrans(duration=4)"
      		document.images.SlideShow3.filters.blendTrans.Apply()    
   		}

   		document.images.SlideShow1.src = preLoad[j].src
   		document.images.SlideShow2.src = preLoad[k].src
   		document.images.SlideShow3.src = preLoad[l].src
   
   		if (document.all){
			document.images.SlideShow1.filters.blendTrans.Play()
			setTimeout('document.images.SlideShow2.filters.blendTrans.Play()', 1000);
			setTimeout('document.images.SlideShow3.filters.blendTrans.Play()', 2000);  
   		}
   
		if (firsttime==1) {
      		j = j + 1
			k = k + 1
			l = l + 1
   			if (j == 3) j=0
			if (k == 3) k=0
			if (l == 3) l=0
   		}
		else {
			if (j != 0) {
				j = j + 1
				k = k + 1
				l = l + 1
   				if (j == 3) j=0
				if (k == 3) k=0
				if (l == 3) l=0
			}
		}
		
		firsttime=2
				
   		//j = j + 1
   		//if (j > (p-1)) j=0
		
	//	k = k + 1
		//if (k > (p-1)) k=0
		
		//l = l + 1
		//if (l > (p-1)) l=0
		
   		t = setTimeout('runSlideShow()', 6000)
}
// -->