// This script opens a new browser window and writes
// HTML to display an image with a title and caption

function show_photo( pFileName, pTitle, pCaption, pSource, pDate ) {

// specify window parameters
  photoWin = window.open( "", "photo", "width=600,height=450,status,scrollbars,resizable,screenX=25,screenY=50,left=25,top=50,copyhistory=no");

// wrote content to window
  photoWin.document.write('<html><head><title>' + pTitle + '</title></head>');
  photoWin.document.write('<BODY BGCOLOR=#000000 TEXT=#FFFFCC LINK=#33CCFF VLINK=#FF6666>');
  photoWin.document.write('<center>');
  photoWin.document.write('<font size=+3 face="arial,helvetica"><b>' + pCaption + '</b></font><p>');
  photoWin.document.write('<a href="javascript:window.close();"><img src="' + pFileName + '" border="0"></a><p>');
  photoWin.document.write('<font face="arial,helvetica">');
  photoWin.document.write('Image courtesy ' + pSource + ', ' + pDate + '<br>');
  photoWin.document.write('<a href="/about/" target="_new">About Us</a> | <a href="/about/contact.shtml" target="_new">Contact Us</a> | <a href="/about/copyright.shtml" target="_new">Copyright © 1997-2012</a> | <a href="javascript:window.close();">Close Window</a>');
  photoWin.document.write('<p></center></font></body></html>');
  photoWin.document.close();

// If we are on NetScape, we can bring the window to the front
        if (navigator.appName.substring(0,8) == "Netscape") photoWin.focus();

}
