function ServicesShow(x) {
	document.getElementById('box2-' + x).style.display = 'block';
	document.getElementById('pic-' + x).className = 'pic-over';
}

function ServicesHide(x) {
	document.getElementById('box2-' + x).style.display = 'none';
	document.getElementById('pic-' + x).className = 'pic';
}

function ShowProjectTypes() {
	document.getElementById('project-types').style.display = 'block';
}

function HideProjectTypes() {
	document.getElementById('project-types').style.display = 'none';
}

var popupWindow;
function ShowPic(path, description, poradi, text_close, sirka, vyska) {
	var clW = screen.width;
	var clH = screen.height;
	var wwidth = sirka;
	var wheight = vyska + 40;
	var winl = (clW - wwidth) / 2;
	var wint = (clH - wheight - 40) / 2;
	
	if (popupWindow) popupWindow.close();
	popupWindow = window.open('', 'popupWindow', 'directories=no,location=no,menubars=no,menubar=no,resizable=yes,scrollbars=no,statusbars=no,status=no,titlebar=no,toolbar=no,fullscreen=no,width='+wwidth+',height='+wheight+',left='+winl+',top='+wint+',screenX='+winl+',screenY='+wint);
	popupWindow.opener = self;
	
	popupWindow.document.writeln('<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1250\" />');
	popupWindow.document.writeln('<script type=\"text/javascript\" src=\"./include/scripts-popup.js\"></script>');
	popupWindow.document.writeln('<style type=\"text/css\">@import \"./include/styles-popup.css\";</style>');
	popupWindow.document.writeln('<title>' + description + '</title></head><body style=\"padding: 0; margin: 0; text-align: center;\">');
	popupWindow.document.writeln('<img src=\"./pictures/'+path+'\" width=\"'+sirka+'\" height=\"'+vyska+'\" alt=\"'+description+'\" onclick=\"CloseWindow();\" style=\"cursor: hand;\" />');
	popupWindow.document.writeln('<div>' + description + '<strong>' + poradi + '</strong><br /><a href="javascript:CloseWindow()">' + text_close + '</a></div>');
	popupWindow.document.writeln('</body></html>');
	popupWindow.window.focus();
	return false;
}

function ShowMap(jazyk) {
	var clW = screen.width;
	var clH = screen.height;
	var wwidth = 403;
	var wheight = 650;
	var winl = (clW - wwidth) / 2;
	var wint = (clH - wheight - 40) / 2;
	
	if (popupWindow) popupWindow.close();
	popupWindow = window.open('map-' + jazyk + '.html', 'popupWindow', 'directories=no,location=no,menubars=no,menubar=no,resizable=yes,scrollbars=yes,statusbars=no,status=no,titlebar=no,toolbar=no,fullscreen=no,width='+wwidth+',height='+wheight+',left='+winl+',top='+wint+',screenX='+winl+',screenY='+wint);
	popupWindow.opener = self;
}