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( scieka_pliku, scieka_pliku_powiekszenie, szerokosc, wysokosc, szerokosc_powiekszenie, wysokosc_powiekszenie ) {
	
	document.write( '<div style="width:' + ( szerokosc + 10 ) + 'px;  height:auto; ">' );

	document.write( '<img src="' + scieka_pliku +'" width="' + szerokosc + '" height="' + wysokosc + '" vspace="0" hspace="0" border="0"  alt="Powiększenie..." style=" padding:5px; border:solid #CCCCCC 1px; cursor:pointer" onClick="ShowBigPicture2( \'' + scieka_pliku_powiekszenie + '\', ' + szerokosc_powiekszenie + ', ' + wysokosc_powiekszenie + ');">' );
	document.write( '</div>' );
	
}//function Show2( scieka_pliku, scieka_pliku_powiekszenie, szerokosc, wysokosc, szerokosc_powiekszenie, wysokosc_powiekszenie ) {


/******************************************************************************************************************************/


function ShowBigPicture(file_name, file_type, 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_name + '_big.' + file_type + '" 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 Show(file_name, file_type, width_small, height_small, width_big, height_big)
{
	
	document.write('<img src="' + file_name + '_small.' + file_type + '" width="' +
				width_small + '" height="' + height_small + '" vspace="0" hspace="0" border="0" alt="Powiększenie..." style="cursor:pointer" onClick="ShowBigPicture(\'' + 
				file_name + '\', \'' + file_type + '\', ' + width_big + ', ' + height_big + ')">');
}


/******************************************************************************************************************************/