<!-- Begin

            //<!--  http://www.howtocreate.co.uk/perfectPopups.html  original unmodified script source  -->

            PositionX = 50;
            PositionY = 50;
            defaultWidth  = 600;
            defaultHeight = 400;
            
            var AutoClose = true;

            function popImage(imageURL,imageComment){
            	var imgWin = window.open('','_blank','scrollbars=no,resizable=1,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY);
            	if( !imgWin ) { return true; } //popup blockers should not cause errors
            	imgWin.document.write('<html>\n<head>\n<title>'+imageURL+'<\/title>\n<script type="text\/javascript">\n'+
            		'function resizeWinTo() {\n'+
            		'\tif( !document.images.length ) { document.images[0] = document.layers[0].images[0]; }'+
            		'\tvar oH = document.images[0].height, oW = document.images[0].width;\n'+
            		'\tif( !oH || window.doneAlready ) { return; }\n'+ //in case images are disabled
            		'\twindow.doneAlready = true;\n'+ //for Safari and Opera
            		'\tvar x = window; x.resizeTo( oW + 200, oH + 200 );\n'+
            		'\tvar myW = 0, myH = 0, d = x.document.documentElement, b = x.document.body;\n'+
            		'\tif( x.innerWidth ) { myW = x.innerWidth; myH = x.innerHeight; }\n'+
            		'\telse if( d && d.clientWidth ) { myW = d.clientWidth; myH = d.clientHeight; }\n'+
            		'\telse if( b && b.clientWidth ) { myW = b.clientWidth; myH = b.clientHeight; }\n'+
            		'\tif( window.opera && !document.childNodes ) { myW += 16; }\n'+
            		'\tx.resizeTo( oW = oW + ( ( oW + 200 ) - myW ), oH = oH + ( (oH + 200 ) - myH ) );\n'+
            		'\tvar scW = screen.availWidth ? screen.availWidth : screen.width;\n'+
            		'\tvar scH = screen.availHeight ? screen.availHeight : screen.height;\n'+
            		//<!-- '\tif( !window.opera ) { x.moveTo(Math.round((scW-oW)/2),Math.round((scH-oH)/2)); }\n'+  //re-centers window   -->
            		'}\n'+
            		'<\/script>'+
            		'<\/head>\n<body onload="resizeWinTo();"'+(AutoClose?' onblur="self.close();"':'')+'>\n'+
            		(document.layers?('<layer left="0" top="0">\n'):('<div style="position:absolute;left:0px;top:0px;">\n'))+
            		'<center>'+imageComment+'<\/center>\n'+
            		'<img src='+"images/"+imageURL+' alt="Loading image ..." title="" onload="resizeWinTo();">\n'+
            		(document.layers?'<\/layer>\n':'<\/div>\n')+'<\/body>\n<\/html>');
            	imgWin.document.close();
            	if( imgWin.focus ) { imgWin.focus(); }
            }

-->
