function ShowBigPicture2(file_name2, width_big, height_big) {
	
	var picture_left = screen.width;
	var picture_top = screen.height;

	if((picture_left > width_big) && (picture_top > height_big)) {
		
		picture_left = (picture_left/2) - (width_big/2);
		picture_top = (picture_top/2) - (height_big/2);

	} else { picture_left = 0; picture_top = 0; }
	
	PictureWindow = window.open('', '', 'toolbar=no, resizable=no, width=' + width_big + ', height=' + height_big + ', left=' + picture_left + ', top=' + picture_top);
	PictureWindow.document.open();
	PictureWindow.document.write('<HTML><HEAD><TITLE>Powiększenie...</TITLE></HEAD><BODY marginheight="0" marginwidth="0" topmargin="0" leftmargin="0">');
	PictureWindow.document.write('<a href="javascript:window.close()"><img src="' + file_name2 + '" width=' +
				      			   width_big + ' height=' + height_big + ' vspace="0" hspace="0" border="0" alt="Zamknij okno..."></a>');
	PictureWindow.document.write('</BODY></HEAD>');
	PictureWindow.document.close();
	PictureWindow.focus();

}


function Show2(file_name1, file_name2, width_small, height_small, width_big, height_big)
{
	
	document.write('<img src="' + file_name1 +'" width="' +
				width_small + '" height="' + height_small + '" vspace="0" hspace="0" border="0" alt="Powiększ obrazek..." style="border:solid 1px #cccccc; padding:3px; cursor:pointer" onClick="ShowBigPicture2(\'' + 
				file_name2 + '\', ' + width_big + ', ' + height_big + ')">');
}

function okno1(adres1)
{
var x='width=900,';
x +='height=600,';
x +='directories=no,';
x +='toolbar=no,';
x +='location=no,';
x +='status=no,';
x +='menubar=yes,';
x +='scrollbars=yes,';
x +='resizable=yes,';
open (adres1,'_blank',x);
}
