// JavaScript Document

var agt=navigator.userAgent.toLowerCase();
function displayBio(obj) {
	var docURL = location.href;
	if (obj.checked) {
		if (docURL.indexOf('showBibliography') == -1) {
			location.href = docURL+"&showBibliography=Y";
		}else {
			location.href = docURL.replace( /showBibliography=N/, "showBibliography=Y" );
		}
	}
	else {
		if (docURL.indexOf('showBibliography') == -1) {
			location.href = docURL+"&showBibliography=N";
		}else {
			location.href = docURL.replace( /showBibliography=Y/, "showBibliography=N" );
		}
	}
}


function printArticle() {
	var prn = new Image();
	prn.src="http://trk.clickability.com/trk.gif?0400|5010|4010|3000|2004|2004|-1||4086979126252719679|-9148407460761194173|3||||||||";
	if (window.print) {
		setTimeout('window.print();',200);
	}
	else if (agt.indexOf("mac") != -1) {
		alert("Press 'Cmd+p' on your keyboard to print article.");
	}
	else {
		alert("Press 'Ctrl+p' on your keyboard to print article.")
	}
}

function hidePrint() {
	if (document.all) {
		document.all.hideTop.innerHTML = "";
		document.all.hideBottom.innerHTML = "";
	}
}

function showPrint() {
	if (document.all) {
		document.all.hideTop.innerHTML = str;
		document.all.hideBottom.innerHTML = str;
	}
}

function showLayer() {
	if (document.layers) {
		document.layers.layerTop.visibility = "show";
		document.layers.layerBottom.visibility = "show";
	}
}