  function C_ShowImage ()
  {
    this.winImage = null;
    this.strSrc = '';
    this.strTitle = '';
    this.boolOkayToShowImage = false;

    this.show = show;
    this.showImage_callback = showImage_callback;

    function show (strSrc, strTitle)
    {
      if (this.winImage && this.winImage.close && !this.winImage.closed)
        this.winImage.close ();

      this.strSrc = strSrc;
      this.strTitle = strTitle;

      if (this.boolOkayToShowImage)
      {
        this.winImage = window.open ('/about/facilities/lewis/showImage.htm','_blank','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,width=100,height=100');
      }
    }
  }

  function showImage_callback ()
  {
    var doc = this.winImage.document;
    var img = doc.images [0];

    this.winImage.resizeTo (img.width, img.height);
    if (doc.body.offsetHeight && (doc.body.offsetHeight < img.height))
    {
      this.winImage.resizeTo (img.width + img.width - doc.body.offsetWidth,
                               img.height + img.height - doc.body.offsetHeight);
    }
    if (this.winImage.innerHeight && (this.winImage.innerHeight < img.height))
    {
      this.winImage.resizeTo (img.width + img.width - this.winImage.innerWidth,
                               img.height + img.height - this.winImage.innerHeight);
    }
    this.winImage.focus ();
  }

  window.PopImage = new C_ShowImage;

