function Show(text)	{	// заглушка для функции Show	return true;	}function pop_up_win(imageName,imageWidth,imageHeight)	{                                                	/* 	JavaScript ImageViewer by Ostashow K.N.  E-mail me kostja_K_N@mail.ru */
	res_x = screen.width;
	res_y = screen.height;
	
	leftPos = Math.floor(res_x/2 - imageWidth/2); 
	topPos  = Math.floor(res_y/2 - imageHeight/2);

	if (navigator.userAgent.indexOf("Opera") != "-1")
		{
		topPos = 20;
		}


	frame = 40;

	winWidth  = imageWidth*1+frame;
	winHeight = imageHeight*1+frame;

	
	cell_pad = Math.floor(frame/2);
		

	title = "";	


	newWindow = window.open("","newWindow","resizable=no,scrollbars=no,width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos);
	newWindow.document.open();

	newWindow.document.write('<html><head><title>'+title+'</title></head>');
	newWindow.document.write('<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#4c4c4c" onClick="self.close()">');  
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="'+cell_pad+'" align="center" height='+imageHeight+' ><tr><td>');
	newWindow.document.write('<a href="javascript:window.close();"><img border=0 src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt=\"Щелкните&nbsp;по&nbsp;картинке,&nbsp;чтобы&nbsp;закрыть&nbsp;окно\" ></a>'); 
	newWindow.document.write('</td></tr></table>');
	newWindow.document.write('</body></html>');

	newWindow.document.close();
	newWindow.focus();
	
	return false;
	}

function picwin(imageName,imageWidth,imageHeight,title)
	{
/* 	JavaScript ImageViewer by Ostashow K.N.  E-mail me kostja_K_N@mail.ru */


	res_x = screen.width;
	res_y = screen.height;
	
	leftPos = Math.floor(res_x/2 - imageWidth/2); 
	topPos  = Math.floor(res_y/2 - imageHeight/2);

	if (navigator.userAgent.indexOf("Opera") != "-1")
		{
		topPos = 20;
		}


	frame = 40;

	winWidth  = imageWidth*1+frame;
	winHeight = imageHeight*1+frame;

	
	cell_pad = Math.floor(frame/2);
		

	newWindow = window.open("","newWindow","resizable=no,scrollbars=no,width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos);
	newWindow.document.open();

	newWindow.document.write('<html><head><title>'+title+'</title></head>');
	newWindow.document.write('<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#4c4c4c" onClick="self.close()">');  
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="'+cell_pad+'" align="center" height='+imageHeight+' ><tr><td>');
	newWindow.document.write('<a href="javascript:window.close();"><img border=0 src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt=\"Щелкните&nbsp;по&nbsp;картинке,&nbsp;чтобы&nbsp;закрыть&nbsp;окно\" ></a>'); 
	newWindow.document.write('</td></tr></table>');
	newWindow.document.write('</body></html>');

	newWindow.document.close();
	newWindow.focus();
	
	return false;
	}

