	// general child window function
	function childWindow(theURL,calledBy) {
		if (calledBy == "google") {var features = "width=650,height=475,";}
		else if (calledBy == "maione") {var features = "width=650,height=780,";}
		var features2 = "scrollbars,resizable";
		features += features2;
// - add code to check if already open (in which case, just give it focus)
		var newWin = window.open(theURL,calledBy,features);
		if (newWin && newWin.focus) {newWin.focus();}
		return false;
	}

	// open windows: historical pictures
	function showBigPic(picPage) {
		var myDate = new Date();
		// getSeconds does not completely prevent name collisions, so random is used (which adds a floating
		// point), and then the floating point is stripped out because it's illegal in a window name
		if (Math.random && 'a'.replace) {
			var newWindowName = (myDate.getSeconds() * Math.random()).toString().replace(/\./,'');
		} else {
			var newWindowName = myDate.getSeconds();
		}
		// window height = pic height + 2 px pic border + 153, 165, or 177 px, depending on the caption being 1, 2, or 3 lines
		// largest picture = 648; window height = 827
		var newWindow = window.open(picPage,newWindowName,"width=760,height=827,scrollbars,resizable");
		if (newWindow && newWindow.focus) {newWindow.focus();}
	}

	// open windows: recent pictures
	function showBigPic2(picPage) {
		var myDate = new Date();
		// getSeconds does not completely prevent name collisions, so random is used (which adds a floating
		// point), and then the floating point is stripped out because it's illegal in a window name
		if (Math.random && 'a'.replace) {
			var newWindowName = (myDate.getSeconds() * Math.random()).toString().replace(/\./,'');
		} else {
			var newWindowName = myDate.getSeconds();
		}
		// window height = pic height + 2 px pic border + 153, 165, or 177 px, depending on the caption being 1, 2, or 3 lines
		// largest picture = 648; window height = 827
		var newWindow = window.open(picPage,newWindowName,"width=760,height=827,scrollbars,resizable");
		if (newWindow && newWindow.focus) {newWindow.focus();}
	}

