var newWindow;function openWindow(url, name) {	newWindow = window.open(url, name, "width=" + screen.availWidth + ",height=" + (screen.availHeight - 30));	newWindow.focus();}function openLoginWindow() {	loginWindow = window.open("login.php","loginWindow", "width=" + screen.availWidth + ",height=" + (screen.availHeight - 30) + ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,screenX=0,screenY=0,left=0,top=0");	loginWindow.focus();}function newWindow(url, width, height, windowName) {	var left = (screen.availWidth / 2) - (width / 2);	var top = (screen.availHeight / 2) - (height / 2);	var newWindow;	if(!windowName) {		var windowName = 'newWindow' + Math.floor(Math.random() * 100);	}	newWindow = window.open(url, windowName, 'top=' + top + 'px,left=' + left + 'px,screenX=' + left + 'px,screenY=' + top + 'px,width=' + width + 'px,height=' + height + 'px,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no');	newWindow.focus();}function newPrintWindow(url, windowName) {	var width = 780;	var height = 580;	var left = (screen.availWidth / 2) - (width / 2);	var top = (screen.availHeight / 2) - (height / 2);	var newWindow;	if(!windowName) {		var windowName = 'newWindow' + Math.floor(Math.random() * 100);	}	newWindow = window.open(url, windowName, 'top=' + top + 'px,left=' + left + 'px,screenX=' + left + 'px,screenY=' + top + 'px,width=' + width + 'px,height=' + height + 'px,menubar=yes,resizable=yes,scrollbars=yes,status=no,toolbar=no');	newWindow.focus();}function newUserPageWindow(url, windowName) {	var width = 780;	var height = 580;	var left = (screen.availWidth / 2) - (width / 2);	var top = (screen.availHeight / 2) - (height / 2);	var newWindow;	if(!windowName) {		var windowName = 'newWindow' + Math.floor(Math.random() * 100);	}	newWindow = window.open(url, windowName, 'top=' + top + 'px,left=' + left + 'px,screenX=' + left + 'px,screenY=' + top + 'px,width=' + width + 'px,height=' + height + 'px,menubar=yes,resizable=yes,scrollbars=yes,status=no,toolbar=no');	newWindow.focus();}function printCoordinates(e,text) {	!e ? e = window.event : null;	window.document.getElementById('debug').style.display = '';	window.document.getElementById('debug').style.position = 'absolute';	window.document.getElementById('debug').style.top = e.clientY + 13 + 'px';	window.document.getElementById('debug').style.left = e.clientX + 13 + 'px';	window.document.getElementById('debug').innerHTML = text;}function hiddenCoordinates(e) {	!e ? e = window.event : null;	window.document.getElementById('debug').style.display = "none";}function printSituation(e,image,text) {	!e ? e = window.event : null;	window.document.getElementById('imageHover').style.display = '';	window.document.getElementById('imageHover').style.position = 'absolute';	window.document.getElementById('imageHover').style.top = e.clientY + document.body.scrollTop + 13 + 'px';	window.document.getElementById('imageHover').style.left = e.clientX   + 13 + 'px';	window.document.getElementById('imageHover').style.background = "rgb(255,218,121) url(" + image + ") center bottom no-repeat";	window.document.getElementById('imageHover').innerHTML = text;}function hiddenSituation(e) {	!e ? e = window.event : null;	window.document.getElementById('imageHover').style.display = "none";}function newMailWindow(url, width, height) {	url = BASE + url;	newWindow(url, width, height);}function mapa(kolik) {  document.getElementById('mapaSituation').style.backgroundPosition = "0px -5px";  document.getElementById('mapaSituation').style.zIndex = 1;}function mapaOut(kolik) {  document.getElementById('mapaSituation').style.backgroundPosition = "0px 0px";  document.getElementById('mapaSituation').style.zIndex = -1;}
