﻿// JavaScript Document
function popup(plik, w, h) {
	odlewa=(screen.width-w)/2;
	odgory=(screen.height-h)/2;	
	config='left='+odlewa+',top='+odgory+',width='+w+',height='+h+',innerheight='+h+',innerwidth='+w+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no';
	window.open( plik, "myWindow", config)
}
//
function bigfoto(nazwa,szer,wys,tyt) {
	var odlewa=(screen.width-szer)/2;
	var odgory=(screen.height-wys)/2;
	var config='left='+odlewa+',top='+odgory+',width='+szer+',height='+wys+',innerheight='+wys+',innerwidth='+szer+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes';
	var cel=window.open('',tyt,config);
cel.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml">\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n<title>'+tyt+'</title>\n<style type="text/css"><!-- \n html,body {width:100%;height:100%;background-color: #000000;margin: 0px;} \n .image{width:100%; height:100%;} \n --> \n </style></head>\n<body>\n<div class="image" onclick="javascript:window.self.close()"><img src="'+nazwa+'" alt="'+tyt+'" width="'+szer+'px" height="'+wys+'px" /></div>\n</body>\n</html>');
cel.focus();
}