// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000;
// Duration of crossfade (seconds)
var crossFadeDuration = 2;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'images/xubo-banner-john-kids.jpg'
Pic[1] = 'images/xubo-banner-opening-minds.jpg'
Pic[2] = 'images/xubo-banner-opening-minds.jpg'
Pic[3] = 'images/xubo-banner-touching-hearts.jpg'
Pic[4] = 'images/xubo-banner-touching-hearts.jpg'
Pic[5] = 'images/xubo-banner-frida-and-kids.jpg' 
Pic[6] = 'images/xubo-banner-greatwall.jpg' 
Pic[7] = 'images/xubo-banner-henry-kids.jpg'
Pic[8] = 'images/xubo-banner-calligraphy.jpg'
Pic[9] = 'images/xubo-banner-opening-minds.jpg'
Pic[10] = 'images/xubo-banner-opening-minds.jpg'
Pic[11] = 'images/xubo-banner-touching-hearts.jpg'
Pic[12] = 'images/xubo-banner-touching-hearts.jpg'
Pic[13] = 'images/xubo-banner-cerecare-kids.jpg'
Pic[14] = 'images/xubo-banner-shanghai-at-night.jpg'
Pic[15] = 'images/xubo-banner-mieke-kids.jpg' 

// 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 = new Image();
	preLoad = Pic;
}

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];
	if (document.all) { 
		document.images.SlideShow.filters.blendTrans.Play();
	}
	j = j + 1;
	if (j > (p - 1)) j = 0;
	t = setTimeout('runSlideShow()', slideShowSpeed);
}
