// This document is used to open a new browser window 
// to display a photo with a description below.

function photoWindow(picLocation,picW,picH,picDescription) {

  BrWin_w=parseInt(picW)+31;
  BrWin_h=parseInt(picH)+45;
  var BrWin_features = ''+'resizable=yes,width='+BrWin_w+',height='+BrWin_h+'';
		
  BrWin = window.open('','Photos',BrWin_features);    // uses inner sizes
	BrWin.resizeTo(BrWin_w+10,BrWin_h+28);              // uses outer sizes
  BrWin.moveTo('115','24');
  BrWin.focus();
	
	var title=''+'Bonnie J Jensen  - Gallery';
	var css=''+'include/bjj.css'

  var popupString=''+
'<html>'+
'<head>'+
'  <title>'+title+'</title>'+
'  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">'+
'  <link rel="stylesheet" type="text/css" href="'+css+'">'+
'</head>'+
'<body bgcolor="#000000" text="#FFFFFF" onMouseDown="parent.window.focus();top.window.close()">'+
'<!--<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">-->'+
'  <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">'+
'    <tr align="center" valign="middle"> '+
'      <td>'+
'        <img src="'+picLocation+'" width="'+picW+'" height="'+picH+'" border="1" alt=" Click anywhere to close ">'+
'        <table width="'+picW+'" border="0" cellspacing="0" cellpadding="0">'+
'          <tr>'+
'            <td width="350" align="left" valign="top" class="txt-pic">'+picDescription+'</td>'+
'            <td align="right" valign="bottom"><font size="2"><a href="javascript:parent.window.focus();top.window.close()" class="ftr-2">Close</a></font></td>'+
'          </tr>'+
'        </table>'+
'      </td>'+
'    </tr>'+
'  </table>'+
'</body>'+
'</html>'+
''

  BrWin.document.open();
  BrWin.document.write(popupString);
  BrWin.document.close();
}
