<!--

// Notes:
// When using text for descriptions and not images, adhere to the following:
// Use a value of -43 for var ExtraHeight if you have no text under the picture
// Use a value of -12 for var ExtraHeight if you have only one line of text under the picture
// Use a value of +12 for var ExtraHeight for each line of text over a count of two under the picture

function ePicIt(ImageURL, Desc, PicWidth, PicHeight, ExtraHeight){

var PicURL = ImageURL;
PicHeight = parseInt(PicHeight);
PicWidth = parseInt(PicWidth);
if (!ExtraHeight) { var ExtraHeight = 0; } else { ExtraHeight = parseInt(ExtraHeight); }
// The following line is the window height when using text for the image descriptions
// We'll be using images this time around, so we've removed it and replaced it with one
// that's the appropriate height for all the images we'll use as descriptions
// var WinHeight = PicHeight + 148 + ExtraHeight;
var WinHeight = PicHeight + 144;
var WinWidth = PicWidth + 170;
if (WinWidth < 475)
	WinWidth = 475;
	
// var header = "/js/epicsheaders/header" + GalleryID + ".jpg";
// var headerbg = "/js/epicsheaders/headerbg" + GalleryID + ".jpg";

var WinAtt = "height=" + WinHeight + ",width=" + WinWidth + ",scrollbars=no,resizable=yes";

if (document.getElementById)
	if (window.ePicWindow) { window.ePicWindow.close(); }

ePicWindow = window.open("", "ePicWindow", WinAtt);

window.ePicWindow.document.write("<html><head><title>Photo Gallery</title><style type=\"text/css\"><!-- .borders { border: 1px; border-style: solid; border-color: #314966; }.mainTD { border-top: 0px; border-right: 1px; border-bottom: 1px; border-left: 1px; border-style: solid; border-color: #314966; } --></style><body bgcolor=\"#FFFFFF\" topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\"><center><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"" + WinWidth + "\"><tr><td class=\"borders\" background=\"images/galleryheaderbg.gif\" align=\"right\" valign=\"top\"><img src=\"images/galleryheader.gif\" width=\"473\" height=\"49\" vspace=\"0\" hspace=\"0\" border=\"0\"></td></tr><tr><td class=\"mainTD\" bgcolor=\"#D7E1E9\" align=\"center\" valign=\"middle\" height=\"100%\"><br><table class=\"borders\" bgcolor=\"#FFFFFF\" cellspacing=\"0\" cellpadding=\"10\" border=\"0\"><tr><td align=\"center\" valign=\"middle\"><img src=\"" + PicURL + "\" width=\"" + PicWidth + "\" height=\"" + PicHeight + "\" vspace=\"0\" hspace=\"0\" class=\"borders\" style=\"margin-bottom: 10px;\"><br><font face=\"Verdana\" size=\"1\"><b>" + Desc + "</b></font></td></tr></table><br></td></tr></table></center></body></html>");

ePicWindow.document.title = "Photo Gallery";
ePicWindow.focus();
}
-->