noweOkno = null;
	function ImagePopup(picSrc,picTitle,w,h)
	{
		if(window.screen)
			{
			aw=screen.availWidth;
			ah=screen.availHeight;
			}
		else
			{
			aw=640;
			ah=450;
			}

		if(noweOkno!=null && (!noweOkno.closed))
			{
			noweOkno.window.close();
			}

		if(noweOkno==null || noweOkno.closed)
			{
			ustawienia=
			 "left=" + (aw-w)/2 + ","
			+"top=" + (ah-h)/2 + ","
			+"screenX=" + (aw-w)/2 + ","
			+"screenY=" + (ah-h)/2 + ","
			+"width=" + w + ","
			+"height=" + h + ","
			+"innerWidth=" + w + ","
			+"innerHeight=" + h + ","
			+"toolbar=no,"
			+"location=no,"
			+"directories=no,"
			+"status=no,"
			+"menubar=no,"
			+"scrollbars=no,"
			+"resizable=no"
			noweOkno = window.open(picSrc,'obrazek',ustawienia);
			}

		noweOkno.document.open();
		noweOkno.document.clear();
		noweOkno.document.write(
			 "<html>\n"
			+"<head>\n"
			+"<title>" + picTitle + "</title>\n"
			+"<style><!--\n"
			+"body{background-repeat:no-repeat}\n"
			+"--></style>\n"
			+"</head>\n"
			+"<body background='" + picSrc + "'>&nbsp;</body>\n"
			+"</html>"
		  );
		noweOkno.document.close();
		noweOkno.focus();
	}
/*
	function SwfPopup(picSrc,picTitle,width,height)
	{
//		if (newWindow && newWindow.open)
//			newWindow.close();
		newWindow=window.open(picSrc,"newWin","toolbar=no, width="+width+",height="+height);
		newWindow.close();
		newWindow=window.open(picSrc,"newWin","toolbar=no, width="+width+",height="+height);
//		newWindow.resizeTo($width, $height);
		newWindow.document.write("<html><head><title>"+picTitle+"<\/title><\/head><body>"+
			"<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" "+
						"codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" "+
						"WIDTH=\""+width+"\" HEIGHT=\""+height+"\" id=\"show\" ALIGN=\"\"> "+
						"<PARAM NAME=movie VALUE=\""+picSrc+"\"> "+
						"<PARAM NAME=quality VALUE=high> "+
						"<PARAM NAME=bgcolor VALUE=#FFFFFF> "+
						"<EMBED src=\""+picSrc+"\" quality=high bgcolor=#FFFFFF  WIDTH=\""+width+"\" HEIGHT=\""+height+"\" NAME=\""+picTitle+"\" ALIGN=\"\" "+
						"TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"> "+
						"</EMBED>"+
						"</OBJECT>"+
			"<\/body><\/html>");
		newWindow.focus();
	}
*/