var displaying = 0;

function display(s,a,h,w) {
  if (navigator.appName == "Netscape") {
    if (   navigator.userAgent.indexOf("3.") != -1
        || navigator.userAgent.indexOf("4.") != -1
        || navigator.userAgent.indexOf("5.") != -1
        || navigator.userAgent.indexOf("6.") != -1) {
      arg='display2("'+s+'","'+a+'",'+h+','+w+')';
      timer=setTimeout(arg,500);
      }
    }
  }
function display2(s,a,h,w) {
  if (displaying)
    if (!picwin.closed) picwin.close()
  displaying = 0;

  if (   navigator.userAgent.indexOf("4.") != -1
      || navigator.userAgent.indexOf("5.") != -1
      || navigator.userAgent.indexOf("6.") != -1)
    a1=creationFlags12(h,w);
  else
    a1=creationFlags10(h,w);
  picwin=window.open("","picture",a1);

  picwin.document.open();
  picwin.document.write("<HTML>");
  picwin.document.write("<BODY><center><FONT FACE='Arial,Helvetica,Geneva,Swiss' size=2>");
  aa="\<img src='"+s+"'\>"
    picwin.document.write(aa);
  picwin.document.write("<br>");
  picwin.document.write(a);
  picwin.document.write("<br></center></font></BODY>");
  picwin.document.write("</HTML>");
  picwin.document.close();

  displaying=1
  }
function nodisplay() {
  if (navigator.appName == "Netscape") {
    if (   navigator.userAgent.indexOf("3.") != -1
        || navigator.userAgent.indexOf("4.") != -1
        || navigator.userAgent.indexOf("5.") != -1
        || navigator.userAgent.indexOf("6.") != -1) {
      clearTimeout(timer);
      }
    }
  }

function creationFlags10(h,w) {
  h = h + 16 + 10 + 20;
  w = w + 16;
  return "alwaysRaised=1,dependent=1,height=" + h + ",width=" + w +",screenX=200,screenY=100";
  }
function creationFlags12(h,w) {
  h = h + 16 + 10;
  w = w + 16;
  return "alwaysRaised=1,dependent=1,innerHeight=" + h + ",innerWidth=" + w +",screenX=200,screenY=100";
  }

function picture(label, file, width, height, description) {
  if (description == '') description = label;
  turl = 'photo.htm#file=' + file + '.jpg&width=' + width + '&height=' + height + '&label=' + escape(description);
  document.write('<a href="' + turl + '"');
  document.write(' onMouseOver="display(' + "'" + file + "', '" + label + "', " + height + ", " + width + ')"');
  document.write(' onMouseOut="nodisplay()">' + description + '</a>');
  if (label == description) document.writeln('<br>');
                       else document.writeln('&nbsp;');
  }


