<!--
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);


var enlargeImage;

function popup(picUrlString, windowWidth, windowHeight)
{

  // Always close the old one, so only one at a time is open
  if(enlargeImage || enlargeImage!=null)
  {
    if (!enlargeImage.closed) enlargeImage.close();
  }
  enlargeImage=null;

  // create a feature string for the popup
  var x=(screen.width-windowWidth)/2
  var y=(screen.height-windowHeight)/2
  var featureString = "toolbar=no,scrollbars=no,resizable=no"
  featureString = ',left='+x + ',top='+y
  featureString += ',width='+windowWidth+',height='+windowHeight

  // html content of the popup
  var htmlString = "<html><head><title>Click to close.</title></head>"
  htmlString += "<body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 bgcolor=black text=\"white\" onclick=\"self.close()\">"
  htmlString += "<A HREF=\"javascript:window.close();\" title=\"Close.\" >"
  htmlString += "<IMG SRC=\"" + picUrlString + "\" BORDER=\"0\" WIDTH=" + windowWidth + " HEIGHT=" + windowHeight + "></A>"
  htmlString += "</body></html>"

  enlargeImage = window.open("" ,"popup",featureString)
  enlargeImage = window.open("" ,"popup")
  enlargeImage.document.clear();
  enlargeImage.document.writeln(htmlString);
  enlargeImage.focus();
  enlargeImage.document.close(); // should trigger the picture loading.
  return enlargeImage;

}

function winclose()
{
  if (window.enlargeImage!=null && !window.enlargeImage.closed)
  {
    window.enlargeImage.close();
  }
}

function waitOn(){} // does nothing but required by JavaScript in this case
//-->