//  ===========================================================================================
//  <a href="javascript:popUp('path/image.jpg','Window Width','Window Height','Window Title')">
//  ===========================================================================================

function popUp()
{
   var adjustHorizontal = -40;
   var adjustVertical = -20;

   winPar = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+popUp.arguments[1]+",height="+popUp.arguments[2]+",Top="+Math.round((window.screen.height/2-popUp.arguments[2]/2)+adjustVertical)+",Left="+Math.round((window.screen.width/2-popUp.arguments[1]/2)+adjustHorizontal);
   picWin = open( '','tinyWindow',winPar );
   picWin.document.writeln('<html>');
   picWin.document.writeln('<head>');
   picWin.document.writeln('<title>'+popUp.arguments[3]+'</title>');
   picWin.document.writeln('<style type="text/css">');
   picWin.document.writeln('body {');
   picWin.document.writeln('width: '+popUp.arguments[1]+'px;');
   picWin.document.writeln('height: '+popUp.arguments[2]+'px;');
   picWin.document.writeln('background: url('+popUp.arguments[0]+');');
   picWin.document.writeln('background-repeat: no-repeat;');
   picWin.document.writeln('background-position: center;');
   picWin.document.writeln('}');
   picWin.document.writeln('</style>');
   picWin.document.writeln('</head>');
   picWin.document.writeln('<body onLoad="window.focus();" onBlur="window.close();">');
   picWin.document.writeln('</body>');
   picWin.document.writeln('</html>');
   picWin.document.close();
}
