function dispImage(image){
	var delka = "image002.jpg,image004.jpg,image005.jpg,image014.jpg,image017.jpg,image042.jpg,image066.jpg,image068.jpg,image070.jpg,image072.jpg,image073.jpg";
	var imagedisp = document.getElementById('imagedisp');
	var nimage = image.substr(image.lastIndexOf('/')+1,12);
	var nrow = Math.ceil(nimage.substring(5,8)/5);
	var ncol = Math.round(5*(1-(nrow-(nimage.substring(5,8)/5))));
	var htmltext = "<div class=\"cform\"><b>Click on picture to close it</b></div>";
	if (delka.indexOf(nimage) >= 0 ){
		htmltext = htmltext + "<img src=\"fotky/velke/" + nimage + "\" border=\"1\" width=\"400\" height=\"532\" >";
		imagedisp.style.left ="200px";
	} else {
		htmltext = htmltext + "<img src=\"fotky/velke/" + nimage + "\" border=\"1\" width=\"532\" height=\"400\" >";
		imagedisp.style.left ="134px";
	} ;
	imagedisp.innerHTML = htmltext;	
//	imagedisp.style.top = ((nrow - 1) * 110)- 80 + "px";
//	imagedisp.style.left =(300 - ((ncol - 1) * 60)) + "px";
	imagedisp.style.display = "block";
}

function dispDiv(divname) {
	collOldDiv(18);
	var newdiv = document.getElementById(divname);
	newdiv.style.display = "block";
}

function collOldDiv(number) {
	for (var n=1; n<=number; n++){
 		var olddiv = document.getElementById("Picture" + n);
		olddiv.style.display = "none";
	};
}
 