function showPageImages(imageId,pageId,x,y) {
	var wys=screen.height
	var szer=screen.width
	var left
	var top
	if(navigator.userAgent.indexOf('MSIE 7.0') > -1){y=y+125;}
	left=(szer-x)/2
	top=(wys-y)/2
  	o = window.open('inc/showPageImages.php?imageId='+imageId+'&pageId='+pageId+'', 'Galeria1', '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+'')
	o.focus();
	//return false;
}
function showProductImages(imageId,proId,x,y) {
	var wys=screen.height
	var szer=screen.width
	var left
	var top
	if(navigator.userAgent.indexOf('MSIE 7.0') > -1){y=y+125;}
	left=(szer-x)/2
	top=(wys-y)/2
  	o = window.open('inc/showProductImages.php?imageId='+imageId+'&proId='+proId+'', 'Galeria1', '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+'')
	o.focus();
	//return false;
}
function showImage(file,x,y) {
    var wys=screen.height
	var szer=screen.width
	var left
	var top
	if(navigator.userAgent.indexOf('MSIE 7.0') > -1){y=y+125;}
	left=(szer-x)/2
	top=(wys-y)/2
  	o = window.open('inc/showImage.php?file='+file+'', 'Galeria', '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+'')
	o.focus();
	//return false;
}