// JavaScript Document// thanks to val lanard for this script <http://www.sims.berkeley.edu/~vlanard>	var newwin;	var bOpen=false; //this is the variable which determines whether a popup window is currently open	function ImgWindow(imgsrc,width,height){	        //set new window dimensions according to img size	        var newheight=(height+60);	        var newwidth=(width+30);	        //if a popup window is already open, close it first	        if (bOpen){	                newwin.close();	                bOpen=false; //popup window no longer open	        }	        //open a new popup window, size it to fit image, and give it focus	        newwin = window.open( "","newwin","menubar=no,toolbar=no,height="+newheight+",width="+newwidth);	        newwin.focus();	        //write contents of new window; onload of new document, set bOpen flag in this doc to true; onunload, set bOpen to false	   newwin.document.write("<HTML><HEAD><TITLE>Photo</TITLE><link rel='stylesheet' type='text/css' href='util/styles1.css'></HEAD>");	   newwin.document.write("<BODY bgcolor=#fffff onload='window.opener.bOpen = true;' onunload='window.opener.bOpen = false;'>");	   newwin.document.write("<div id='Popup'><IMG src='"+imgsrc+"' border=0 height="+height+" width="+width+" class='imgCenter'>");	   newwin.document.write("<p><A href='javascript:window.close();'>Close this window</A></p></div></body></html>");	   newwin.document.close();	}		// nn4 resize fix -- //script from www.aifia.orgfunction resizeFix(){   if(document.resizeFix.initWidth!=window.innerWidth          ||document.resizeFix.initHeight!=window.innerHeight)				document.location=document.location;}function checkBrowser(){   if(document.layers){          if(typeof document.resizeFix=="undefined"){			document.resizeFix=new Object();			document.resizeFix.initWidth=window.innerWidth;			document.resizeFix.initHeight=window.innerHeight;          }          window.onresize=resizeFix;   }}
