// JScript File

// okno pro obrazek
function Pic(obrazek, sirka, vyska, nazev) {
	image = new Image();
	image.src = obrazek;
	// alert(image.src);
	newWindow = window.open(image.src, 'newWin', 'toolbar=no,width='+sirka+',height='+vyska);
	newWindow.document.write('<html><head><title>');
	newWindow.document.write(nazev);
	newWindow.document.writeln('<\/title>');
	newWindow.document.writeln('<style type="text/css">body { margin:0;padding:0; }</style>');
	newWindow.document.writeln('<\/head>');
	newWindow.document.writeln('<body onclick="window.close();">');
	newWindow.document.writeln('<img src="'+image.src+'" width="'+sirka+'" height="'+vyska+'">');
	newWindow.document.writeln('<\/body><\/html>');
	newWindow.resizeBy(sirka-newWindow.document.body.clientWidth, vyska-newWindow.document.body.clientHeight);
	newWindow.focus();
}
