<!--
//----------------------------------------------------------------------
// SUB WINDOW OPENER SCRIPTS
//----------------------------------------------------------------------
// Last update: 8/1/03
// Author: 		 James Khazar
// Usage:
//	<a href="JavaScript:;" onclick="openSubWindow(file.htm,200,300);">
//
var gWindowAgentString=navigator.userAgent.toLowerCase();
function openSubWindow(theURL,winName,theWidth,theHeight) {
	myWindow=null;
	if (gWindowAgentString.indexOf("explorer")!=-1 && gWindowAgentString.indexOf("mac") !=-1) {
			theWidth=theWidth-13;
			theHeight=theHeight-13;
		}
		myFeatureString = "WIDTH=" + theWidth + ", HEIGHT=" + theHeight;
		if (myWindow != null) {
			myWindow.close();
		}
		myWindow=window.open(theURL,winName,myFeatureString);
		myWindow.focus();
	}
//----------------------------------------------------------------------
// SLIDE SHOW WINDOW OPENER SCRIPTS
//----------------------------------------------------------------------
// Last update: 10/24/07
// Author: 		 James Khazar
function slideShow(theSlide) {
		theURL="images_frames.htm";
		winName="slideViewer";
		theWidth=720;
		theHeight=808;
		writeCookie("slide",theSlide,24); // needed to open to specific slide
		if (gWindowAgentString.indexOf("explorer")!=-1 && gWindowAgentString.indexOf("mac") !=-1) {
			theWidth=theWidth-13;
			theHeight=theHeight-13;
		}
		myFeatureString = "WIDTH=" + theWidth + ", HEIGHT=" + theHeight;
		myImagesWindow=window.open(theURL,winName,myFeatureString);
		myImagesWindow.focus();
}
//----------------------------------------------------------------------
// WRITE COOKIE
//----------------------------------------------------------------------
// writeCookie("myCookie", "my name", 24);
// Stores the string "my name" in the cookie "myCookie" which expires after 24 hours.
function writeCookie(name, value, hours)
{
  expire = "";
  if(hours != null)
  {
	 expire = new Date((new Date()).getTime() + hours * 3600000);
	 expire = "; expires=" + expire.toGMTString();
  }
  document.cookie = name + "=" + escape(value) + expire;
}
	

