﻿<!--
function PopupPic(bigPic,title,w,h) {
if (w>500 || h>500){
var winl = (screen.width - 500) / 2;
var wint = (screen.height - 500) / 2;
var smarty_hack = 'head';
var hpercent = 500 / h;
var neww = (hpercent * w) + 20;
newWindow = window.open('','title','height=520,width='+neww+',top='+wint+',left='+winl+',resizable=0,scrollbars=0'); 
newWindow.document.write('<html><head><title>'+title+'</title>'); 
newWindow.document.write('<meta http-equiv="content-type" content="text/html; charset=UTF-8" />'); 
newWindow.document.write('<style type="text/css"></style><!-- html, body {margin: 0px; background-color: #000;} -->'); 
newWindow.document.write('<!--'+smarty_hack+'-->'); 
newWindow.document.write('<p><img height=500 alt="'+title+'" src="'+bigPic+'" /></p>'); 
newWindow.document.write('</body></html>'); 
newWindow.document.close(); 
newWindow.focus();  
} else { 
var winl = (screen.width - w) / 2; 
var wint = (screen.height - h) / 2; 
var smarty_hack = 'head'; 
newWindow = window.open('','title','height='+h+',width='+w+',top='+wint+',left='+winl+',resizable=0,scrollbars=0'); 
newWindow.document.write('<html><head><title>'+title+'</title>'); 
newWindow.document.write('<meta http-equiv="content-type" content="text/html; charset=UTF-8" />'); 
newWindow.document.write('<style type="text/css"></style><!-- html, body {margin: 0px; background-color: #000;} -->'); 
newWindow.document.write('<!--'+smarty_hack+'-->'); 
newWindow.document.write('<p><img alt="'+title+'" src="'+bigPic+'" /></p>'); 
newWindow.document.write('</body></html>'); 
newWindow.document.close(); 
newWindow.focus(); }
}
-->