function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function lookit(dis) {   //displays image in auto-sized popup window with live close button
pic = new Image;
pic.src = dis;
w = pic.width;   //does this work in Netscape etc.?
l=0;
msg='Back to info page';
if (w<420){msg='Back'};
if (w<350){l=(350-w)/2;	w=350;};
h = pic.height+55;
view=window.open('','z','resizable=yes,width='+w+',height='+h);
//view.close;		//open, close, open again: trying to get it to open to the right fucking size!
//view=window.open('','z','resizable=yes,width='+w+',height='+h);
view.moveTo(40,40);
view.resizeTo(w+10,h+66);   //redundant. Sometimes the window would open at about 200x200.
var win= view.document;
win.write('<html><head><title>Closeup View</title>');
win.write('<link rel="stylesheet" href="proimagecrest.css" type="text/css">');
//win.write('</head>\n<body><div id="lookit" style="left:'+l+'">\n');
win.write('</head>\n<body><div id="lookit">\n');
win.write('<img src="'+dis+'" style="margin:0 '+l+'px 5px '+l+'px">');
win.write('<br>\n<div align="center" class="buttn">\n');
win.write('<a href="javascript:window.close()" \nonMouseOver="window.status=\''+msg+'\'; ');
//win.write('document.title=\''+msg+'\'; ');  //BAH - URL stays in the title
win.write('return true;" \nonClick="window.status=\''+msg+'\'; ');
//win.write('document.title=\'Closeup View\'; return true; ');
win.write('return true;" \nonMouseOut="window.status=\'\'; ');
win.write('">Close this view</a>\n</div>');
win.write('<br></div></body></html>');
win.close();
if (window.focus) {view.focus();}
return false;
} 
