 // setup test for Nav 4.0
var isIE = false;
var isNav = (navigator.appName.indexOf("Netscape")>=0);
var isNav4 = false;
var isIE4 = false;
var is5up = false;

if (isNav) {
	
	if (parseFloat(navigator.appVersion)<5) {
		isNav4=true;
	} else {
		is5up = true;
	}
} else {
	isIE4=true;
	isIE=true;
	if ((navigator.appVersion.indexOf("MSIE 5")>0) || (navigator.appVersion.indexOf("MSIE 6")>0)) {
		isIE4 = false;
		is5up = true;
	}
}

var inLeft=202;
var inTop=89;
var hspc = inLeft;
var vspc = inTop;
if (isNav) {
	inLeft=inLeft-0;
	inTop=inTop+0;
	hspc = inLeft;
	vspc = inTop;
}

var maplayer;

function body_onload()	{
	// only for the survey box
	
	if (DHTML) {
		maplayer = new getObj('mainmap');
		setZoomBoxSettings();
		//setState(state);
		setStateOnLoad();
		showhideLayLeg();
		MM_preloadImages('images/locateB.GIF','images/updateB.GIF')
	} else {
		alert('This site required a newer version of MS Internet Explorer or Netscape Navigator');
	}
	initMO();
}