/**
*	National Park Service
*	Intermountain Support Office -- Denver
*	Natural Resources, Research and Technology
*
*	Paul G. Voris
*  	January 2004
*/

var browserName=navigator.appName.toLowerCase();
var browserVersion=navigator.appVersion;
if (browserName=="netscape") {
	if ((parseFloat(browserVersion)) < 5 ) {
		var is_nav4 = true;
		LoadNS4css ();
	} else {
		var is_nav6up = true;
	}
}

function LoadNS4css () {
	document.write('<link rel="stylesheet" type="text/css" href="include/ns4_imgis.css">');
}

function launch(newURL, newName, newFeatures, orgName) {
	var remote = open("http://imgis.nps.gov" + newURL, newName, newFeatures);
	if (remote.opener == null)
		remote.opener = window;
	remote.opener.name = orgName;
	return remote;
}

function launchIMS(url, width, height) {
	myRemote = launch(url,"MAP","channelmode=0, dependent=1, directories=0, fullscreen=1, location=0, menubar=0, resizable=1, scrollbars=1, status=0, toolbar=0", "IMGIS");
	myRemote.focus();
}

function launchMap(site) {
	myRemote = launch("/Geocortex/Essentials/Web/viewer.aspx?Site=" + site,"MAP","channelmode=0, dependent=1, directories=0, fullscreen=0, location=0, menubar=0, resizable=1, scrollbars=1, status=0, toolbar=0", "IMGIS");
	myRemote.focus();
}

function launchMap21(site) {
	myRemote = launch("/Geocortex/Essentials/Web21/viewer.aspx?Site=" + site,"MAP","channelmode=0, dependent=1, directories=0, fullscreen=0, location=0, menubar=0, resizable=1, scrollbars=1, status=0, toolbar=0", "IMGIS");
	myRemote.focus();
}