<!--
/* Display photos */

var myWin = null;
var message = "Copyright (c) Eileen Eby. All rights reserved.";
/* ========================================= */
/* Window - needs Pic, title & sizes */
/* ========================================= */
function show (Pic, Title, Width, Height) {
	
//	if (is_opera5up) return;

	if (Pic!=null) {
		/* Use Pic if no title */
		if (Title==null) Title=Pic;

		/* Size window, allow for margins */
		if (Width<100) Width=100;
		Width += 40;
		if (Height<100) Height=100;
		Height += 85;

		/* Close window if already open */
		if (myWin) {
			if (!myWin.closed)	myWin.close();
		}
		myWin=window.open("", 'myWin', 'width='+Width+',height='+Height+',menubar=0,toolbar=0,status=0,scrollbars=1,resizable=1');
		str = "<html>" +

				"<head>" +
				"<title>" +
				Title +
				"</title>" +
  		  		"<" + "script language='JavaScript' type='text/javascript' src='script/copyright.js'>" +
				"</" + "script>" + 
				"</head>" +
				"<body>" +

				"<p align='center'>" +
				"<img GALLERYIMG='no' border='0' src=" +
				Pic +
				" width='100%' ></p>" +
				"<p align='center'><a href='javascript:close()'>Close window</a></p>" +

				"</body>" +

				"</html>"

		self.myWin.document.open()
		self.myWin.document.write(str)
		self.myWin.document.close()
	
	}
}


/* ========================================= */
/* Picture window - needs Pic, title & sizes */
/* ========================================= */
function showPic (Pic, Title, Width, Height) {
	show (Pic, Title, Width, Height)
}



/* ======================================= */
/* Tidy up                                 */
/* ======================================= */
function closeWindows() {
	if (myWin) {
		if (!myWin.closed) myWin.close();
	} 
}
/* Displays a message on a right mouse click
*/


function click(e) {
	if (myWin) {
	if (myWin.document.all) {
		if (event.button == 2) {
			alert(message);
			return false;
					}
			}
	if (myWin.document.layers) {
		if (e.which == 3) {
			alert(message);
			return false;
				  }
			     }
	}
  }
if (myWin) {
	if (myWin.document.layers) {
		myWin.document.captureEvents(Event.MOUSEDOWN);
		     }
}
if (myWin) {
myWin.document.onmousedown=click;
myWin.document.onmousehover=click;
}
// -->
