//showPhoto.js
/* updated 25.oct.2005 */
/* x=path to photo file, w=width, h=height, a=alt text, b=caption text 
Don't use apostrophes in the caption; use \' instead.  
This creates a popup window - users can close window by clicking on the close window link. */
function showPhoto(x,w,h,a,b) {
	var features='toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,width='+(w+100)+',height='+(h+200);
	var newwin=window.open("","new_window",features);
	newwin.document.open();
	newwin.document.writeln('<html><head><title>',a,' - US EPA Region 5</title>');
	newwin.document.writeln('<style type="text/css"><!--p {	font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 0.95em; text-align: center;}--></style>');	
	newwin.document.writeln('</head>');
	newwin.document.writeln('<body>');
	newwin.document.writeln('<p><img src="',x,'"alt="',a,'"></p>');
	newwin.document.writeln('<p>',b,'</p>');
	newwin.document.writeln('<p><a href="javascript:window.close()">Close Window</a></p>');	
	newwin.document.writeln('</body></html>');
	newwin.document.close();
	newwin.focus();
}

