	var obrazek=null
	var kont
	var wys=screen.height
	var szer=screen.width
	var left
	var top
	function pokaz_foto(id,x,y) {
		left=(szer-x)/2
		top=(wys-y)/2
		if (obrazek && !obrazek.closed) {
			if (id!=kont) { obrazek.close() } else { obrazek.focus() }
		}
		if (!obrazek || obrazek.closed) {
			kont=id
			obrazek = window.open('inc/pokaz_foto.php?id='+id+'', '', 'toolbar=0, location =0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, copyhistory=0, status=0, left='+left+', top='+top+', width='+x+', height='+y+'')
			obrazek.focus()
		}
	}
