// JavaScript Document
function popUpFullText(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=700');");
}

var toggleDivs = ['modIntroDiv','modAlphaIndexDiv','modChronIndexDiv','modSecondSitesDiv','modBibDiv'];

function toggleLayer(whichLayer) {
	if (document.getElementById) {
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display? "":"block";
		if (style2.display == "block") {
			for (var i = 0; i < toggleDivs.length; i++) {
				if (toggleDivs[i] != whichLayer) {
					document.getElementById(toggleDivs[i]).style.display = "";
				}
			}
		}
		if (style2.display == "") {
			window.scrollTo(0,0);
		}
	} else if (document.all) {
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = style2.display? "":"block";
	} else if (document.layers) {
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = style2.display? "":"block";
	}
}
