var timeDelay = 5;
var Pix = new Array()

var howMany = 0;
timeDelay *= 1000;

//la première image est aléatoire
var PicCurrentNum = 0;

var PicCurrent = new Image();

function startPix() {
	setInterval("slideshow()", timeDelay);
	howMany = Pix.length;
}
function slideshow() {
	PicCurrentNum++;
	if (PicCurrentNum == howMany) {
		PicCurrentNum = 0;
	}
	PicCurrent.src = Pix[PicCurrentNum];
	document["ChangingPix"].src = PicCurrent.src;
}