<!--hide this script from non-javascript-enabled browsers

//////////////////////////////////////////////////////////
//
// Joint Earth Sciences Education Initiative
//
// Produced by Presenting Science
//  www.PresentingScience.com
//
// Copyright (C) Presenting Science
//
//////////////////////////////////////////////////////////

function doPrint() {
	parent.contentsFrame.focus();
	parent.contentsFrame.print();
}

var glossaryWin = null;

function doGlossary(url) {
	if (glossaryWin && !glossaryWin.closed) {
		glossaryWin.focus();
		 glossaryWin.location = url;
	}
	else {
                var w = 640;
                var h = 330;
                var l = (screen.width - w)/2;
                var t = (screen.height - h)/2;
		glossaryWin = window.open(url,
			"glossary",
			"status=no,scrollbars=yes,resizable=yes,"+
			"width="+w+",height="+h+
			",top="+t+",left="+l+
                        ",screenY="+t+",screenX="+l);
	}
}


var helpWin = null;

function doPopupHelp(url) {
	if (helpWin && !helpWin.closed) {
		helpWin.focus();
	}
	else {
                var w = 640;
                var h = 480;
                var l = (screen.width - w)/2;
                var t = (screen.height - h)/2;
		helpWin = window.open(url,
			"help",
			"status=no,scrollbars=yes,resizable=yes,"+
			"width="+w+",height="+h+
			",top="+t+",left="+l+
                        ",screenY="+t+",screenX="+l);
   }
}


function closePopUps() {
	if (helpWin && !helpWin.closed) {
           helpWin.close();
        }
	if (glossaryWin && !glossaryWin.closed) {
           glossaryWin.close();
        }
}


// stop hiding -->
