
var timeDelay = 2; // change delay time in seconds
var Pix = new Array
	("images/2_home_09.gif"
	,"images/DonecekFoto1.jpg"
	,"images/DonecekFoto2.jpg"
	,"images/DonecekFoto3.jpg"
	,"images/DonecekFoto4.jpg"
	,"images/DonecekFoto5.jpg"
	,"images/DonecekFoto6.jpg"
	,"images/DonecekFoto7.jpg"
	);
var howMany = Pix.length;
timeDelay *= 1000;
var PicCurrentNum = 0;
var PicCurrent = new Image();
PicCurrent.src = Pix[PicCurrentNum];

function startPix() {
	setInterval("slideshow()", timeDelay);
}
function slideshow() {
	PicCurrentNum++;
	if (PicCurrentNum == howMany) {
		PicCurrentNum = 0;
	}
	PicCurrent.src = Pix[PicCurrentNum];
	document["ChangingPix"].src = PicCurrent.src;
}

