// --BEGIN Pop-up Images Script----------------------------------------------------------------->


// Copyright 1999 - 2002 by Ray Stott, Pop-up Images Script ver 2.0
// OK to use if this copyright is included
// Script is available at http://www.crays.com/jsc

var pic = null;
var popImg = null ; // use this when referring to pop-up image
var picTitle = null;
var imgCount = 0;
var imgWinName = "popImg";

function openPopImg(picName, windowTitle, windowWidth, windowHeight,link){
  closePopImg();
  picTitle = windowTitle;
  imgWinName = "popImg" + imgCount++ ;  //unique name for each pop-up window
  popImg = window.open('', imgWinName,
           "toolbar=no,scrollbars=yes,resizable=yes,width=" 
           + (parseInt(windowWidth)+45)  + ",height=" 
           + (parseInt(windowHeight)+45)) ;
popImg.document.write(
'<a href="',link,'"> <img src="',picName,'" height="',windowHeight,'" width="',windowWidth,'"></a>')
  }


function openPopWin(picName, windowTitle, windowWidth, windowHeight,link){
  closePopImg();
  picTitle = windowTitle;
  imgWinName = "popImg" + imgCount++ ;  //unique name for each pop-up window
  popImg = window.open(link, imgWinName,
           "toolbar=yes,scrollbars=yes,resizable=yes,width=" 
           + (parseInt(windowWidth)+45)  + ",height=" 
           + (parseInt(windowHeight)+45)) ;

  }

function closePopImg(){    // close pop-up window if it is open 
  if (navigator.appName != "Microsoft Internet Explorer" 
      || parseInt(navigator.appVersion) >=4) //do not close if early IE
    if(popImg != null) if(!popImg.closed) popImg.close() 
  }

function setStatus(msg){
  status = msg
  return true
  }


// --END Pop-up Images Script------------------------------------------------------------------------------------------------->


