function openPhotoWindow(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}
function setAddr(name) {
	var obj = document.getElementById('contactAddr');
	if (obj) {
		name +='zavadil';
		var dmn = new Array('com','.','l','g').reverse().toString();
		dmn = dmn.replace(/\,/g,'').replace(/(g)/g,'$1mai');
		obj.href = 'mailto:' + name + '@' + dmn;
	}
	return true;
}
