//function LoadImages(){
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below
Pic[0] = 'gallery/duoduo4Y_/_thb_Duoduo_58870_4Y113D_2.jpg';
Pic[1] = 'gallery/duoduo4Y_/_thb_Duoduo_58870_4Y113D_6.jpg';
Pic[2] = 'gallery/duoduo4Y_/_thb_Duoduo_58880_4Y112D_1.jpg';
Pic[3] = 'gallery/duoduo4Y_/_thb_Duoduo_58900_4Y110D_2.jpg';
Pic[4] = 'gallery/duoduo4Y_/_thb_Duoduo_58900_4Y110D_5.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[i] = new Image();
preLoad[i].src = Pic[i];
}
rnd.today=new Date(); 
rnd.seed=rnd.today.getTime(); 

function rnd() { 
rnd.seed = (rnd.seed*9301+49297) % 233280; 
return rnd.seed/(233280.0); 
}; 

function rand(number) { 
return Math.ceil(rnd()*number); 
}; 

j = rand(p) - 1;
//}

function runSlideShow() {
	//alert(j);
	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();
	}
	//j = rand(p) - 1;
	document.images.SlideShow.src = preLoad[j].src;
	if (document.all) {
	document.images.SlideShow.filters.blendTrans.Play();
	}
	j = j + 1;
	if (j > (p - 1)) j = 0;
	t = setTimeout('runSlideShow()', slideShowSpeed);
}
