<!-- Hide it

// Test browser
var browserName = navigator.appName;
var browserVer = parseInt(navigator.appVersion);
var version = 'false';

if((browserName=='Netscape' && browserVer>=3) || (browserName=='Microsoft Internet Explorer' && browserVer>=4)) {
	version = 'true';
}

function newWindow(url,name,width,height,left,top,scroll) {
	if((left < 0) && (top < 0)) {
		left = (screen.width-width)/2;
		top  = (screen.height-height)/2;
	}

  winProps = 'width='+width+',height='+height+',left='+left+',top='+top+',resizable=no,menubar=no,scrollbars='+scroll;
  win = window.open(url,name,winProps);

	if(version == 'true')
//	if(browserVer >= 4)
		win.window.focus(); 
}

function badWindow(winName) {
	var temp = '';
  if(winName.toLowerCase() != window.name.toLowerCase())
		temp = '<tr><td class=\"data\" height=\"15\"><a class=\"s\" href=\"http://www.mikon.pl/index.html\">P.P.H.U.&nbsp;MIKON&nbsp;s.c.&nbsp;&nbsp;-&nbsp;strona&nbsp;główna&nbsp;</a></td></tr>';
	return temp;
}

function resizeWindow(width,height,left,top) {
	if(width > screen.width) {
		if(left > 0)
			width = screen.width - 2*left;
		else
			width = screen.width;
	}
	if(height > screen.height) {
		if(top > 0)
			height = screen.height - 2*top;
		else
			height = screen.height;
	}

	window.resizeTo(width,height);
	if(left >= 0 && top >= 0)
		window.moveTo(left,top);

	if(version == 'true')
//	if (browserVer >= 4)
		window.focus(); 
}

function newPhotoWindow(urlPicture,winName,width,height) {
  var left = (screen.width-width)/2;
	var top  = (screen.height-height)/2;

  winProps = 'width='+width+',height='+height+',left='+left+',top='+top+',titlebar=no,toolbar=no,resizable=no,status=no,scrollbars=no,menubar=no,location=no,directories=no';
	stadion = window.open('',winName,winProps);
	stadion.document.write('<html><head>');
	stadion.document.write('<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1250\">');
	stadion.document.write('<title>P.P.H.U. MIKON s.c. - Galeria</title>');
	stadion.document.write('<script language=\"JavaScript\">');
	stadion.document.write('setTimeout(\'self.close();\',300000)');
	stadion.document.write('</script></head>');	
	stadion.document.write('<body bgcolor=white leftmargin=0 topmargin=0 marginheight=0 marginwidth=0><div align=center>');
	stadion.document.write('<a href=# onclick=\"javascript:self.close();\"><img src='+urlPicture+' border=0></a>');
	stadion.document.write('</div></body></html>');

	if(version == 'true')
//	if(browserVer >= 4)
		stadion.focus();
}

function closeWindow() {
	window.close();
}

// -->
