// jrg.js - javascript library

// slaunch is the slide show launcher 
function slaunch(myURL, myName, attrs, show) {
  var remote = open(myURL, myName, attrs);
  if (remote.opener == null)
    remote.opener = window;
  remote.opener.name = show;
  return remote;
}
// pops an image
function popPic(myImage,myWidth,myHeight,myTxt) {
imgHeight = myHeight;
if (imgHeight >= 620) { imgHeight = 600 } // resize if image too high for 728
myHeight += 36;
myWidth += 48;
TheImgWin = window.open(myImage,'image','height=' + myHeight + ',width=' + myWidth +
',toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');
TheImgWin.resizeTo(myWidth+2,myHeight+100);
TheImgWin.document.write('<html><head><title>Our Photos</title></head><body><form><img src="'+myImage+'" height="'+imgHeight+'">');
TheImgWin.document.write('<font face="Geneva, Arial, Helvetica, san-serif"><font size="2"></font><p>'+myTxt+'&nbsp;&nbsp;</font>');
TheImgWin.document.write('<input tabindex="0" type="Button" NAME="" VALUE="Close" onClick="top.close()"></form></body></html>');
TheImgWin.focus();
}

