<!--  to hide script contents from old browsers

// imgs.js by Orjan Hansson, 2006-03-19
// JavaScript source file

// The following functions were modified from the example
// "Thumbnail Viewer" at http://javascript.internet.com

function ohwShowImg(imgFile)
{
  imgObj = new Image();
  imgObj.src = imgFile;
  ohwOpenImgWnd(imgFile, imgObj.width, imgObj.height, imgFile);
}

function ohwOpenImgWnd(ifile, ix, iy, ititle)
{
  var win;
  var sWidth;
  var sHeight;
  var NS = (document.layers) ? 1 : 0;
  win = window.open("", "imageviewer", "width=" + ix + ", height=" + iy);
  if (NS)
  {
    sWidth = win.innerWidth;
    sHeight = win.innerHeight;
  }
  else
  {
    sWidth = win.document.body.clientWidth;
    sHeight = win.document.body.clientHeight;
  }
  if(sWidth!=ix || sHeight!=iy)
  {
    win.close();
    setTimeout("ohwOpenImgWnd('"+ifile+"',"+ix+","+iy+",'"+ititle+"')", 250);
    return;
  }
  win.document.open();
  win.document.write("<html><head><title>" + ititle + "</title></head><body>");
  win.document.write('<div style="position:absolute; width:' + ix + 'px; height:' + iy + 'px; left:0px; top:0px">');
  win.document.write("<img src=" + ifile + ">");
  win.document.write("</div>");
  win.document.write("</body></html>");
  win.document.close();
  win.focus();
}

// end hiding contents from old browsers  -->
