	// Set slideShowSpeed (milliseconds)
	var slideShowSpeed = 5000;
	// Duration of crossfade (seconds)
	var crossFadeDuration = 3;
	// Specify the image files
	var Pic = new Array();
Pic[0]='img/hlavicka1.gif';
Pic[1]='img/hlavicka2.gif';
Pic[2]='img/hlavicka3.gif';
Pic[3]='img/hlavicka4.gif';

	var Width = new Array();
Width[0]='535';
Width[1]='535';
Width[2]='535';
Width[3]='535';

	var Height = new Array();
Height[0]='94';
Height[1]='94';
Height[2]='94';
Height[3]='94';

	// do not edit anything below this line
	var t;
	var j = Pic.length-1;
	var p = Pic.length;
	var preLoad = new Array();
	for (i = 0; i < p; i++) {
		preLoad[i] = new Image();
		preLoad[i].src = Pic[i];
	}
	function RunSlideShow() {
		j = j + 1;
		if (j > (p - 1)) j = 0;
		if (document.all) {
			document.images.foto.style.filter='blendTrans(duration=2)';
			document.images.foto.style.filter='blendTrans(duration=crossFadeDuration)';
			document.images.foto.filters.blendTrans.Apply();
		}
		document.images.foto.src = preLoad[j].src;
		document.images.foto.style.width = Width[j];
		document.images.foto.style.height = Height[j];
		if (document.all) {
			document.images.foto.filters.blendTrans.Play();
		}
		t = setTimeout('RunSlideShow()', slideShowSpeed);
	}
	function NextSlide(){
		j = j + 1;
		if (j > (p - 1)) j = 0;
		document.images.foto.src = preLoad[j].src;
		document.images.foto.style.width = Width[j];
		document.images.foto.style.height = Height[j];
		clearTimeout(t);
		t = setTimeout('RunSlideShow()', slideShowSpeed);
	}
	function PreviousSlide(){
		j = j - 1;
		if (j < 0) j = p-1;
		document.images.foto.src = preLoad[j].src;
		document.images.foto.style.width = Width[j];
		document.images.foto.style.height = Height[j];
		clearTimeout(t);
		t = setTimeout('RunSlideShow()', slideShowSpeed);
	}