function PopImage(url, width, height, description)
{
	var Okno=window.open(url,"","height="+height+", width="+width+",menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,fullscreen=no,channelmode=no");

	Okno.document.open();
	Okno.document.clear();
	Okno.document.write(
					"<html><head>\n"
					+"<title>"+unescape(description)+"</title>"
				+"<meta name=Pragma content=no-cache>\n"
				+"<META HTTP-EQUIV=\'Content-type\' CONTENT=\'text/html; charset=utf-8\'>"
					+"</head>\n"
					+"<body marginwidth=\"0\" marginheight=\"0\" leftmargin=\"0\" topmargin=\"0\" >"
				+"<a href=\"javascript:window.close()\">"
					+"<img src=\""+url+"\" width="+width+" height="+height+" border=\"0\">"
				+"</a>"
				+"</body>\n"
					+"</html>"
					);
	Okno.document.close();
	Okno.focus();
}

 var url, width, height, description;
// Handle all the the FSCommand messages in a Flash movie
function gallery_DoFSCommand(command, args) 
{
  if (command == "setUrl")
    url = args;
  if (command == "setWidth")
    width = args;
  if (command == "setHeight")
  	height = args;
  if (command == "setDescription")
  	description = args;
  if (command == "openWindow")
		PopImage(url, width, height, description);
}

//-->
