<!--  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+"')", 20);
    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();
}

// The following functions were modified from the examples
// "Gallery Viewer", "Text Effects: Wisdom Factory" and "Miscellaneous : Expand-Collapse Paragraph"
// at http://javascript.internet.com

browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);

var currentImgTextDiv = "imgTxt1";

function ohwChangeImg(imgName, imgTextDiv)
{
  if (ns3up || ie4up)
  {
    imgOn = ("" + imgName);
    document.mainImg.src = imgOn;
    document.mainImg.title = imgName;
    var e = document.getElementById(currentImgTextDiv);
    e.style.display = "none"
    e = document.getElementById(imgTextDiv);
    e.style.display = "block"
    currentImgTextDiv = imgTextDiv;
  }
}

// end hiding contents from old browsers  -->
