USGS_NMP_Loaded=true;function displayMapServicesInfo(){if(USGS_OGC_Loaded){OGCLayerMetadata();}else{var WindowContent='';WindowContent+=('<ul>');WindowContent+=('Current Extent = '+eLeft+', '+eBottom+', '+eRight+', '+eTop+'<br />');WindowContent+=('Map Image Size = '+iWidth+', '+iHeight+'<br />');var CenterAdjust=Math.abs(eRight-eLeft);var ApproxScale=HaversineScale((eLeft+CenterAdjust),eBottom,(eLeft+CenterAdjust),eTop,iHeight,ScaleToolDPI);WindowContent+=('The current Vertical Map Scale (at center) is 1 inch = '+ApproxScale+' ');if(MapUnits.toUpperCase()=="CENTIMETERS"){WindowContent+=('Centimeters');}else if(MapUnits.toUpperCase()=="FEET"){WindowContent+=('Feet');}else if(MapUnits.toUpperCase()=="KILOMETERS"){WindowContent+=('Kilometers');}else if(MapUnits.toUpperCase()=="METERS"){WindowContent+=('Meters');}else if(MapUnits.toUpperCase()=="MILES"){WindowContent+=('Miles');}else{WindowContent+=('Inches');};WindowContent+=('</ul>');WindowContent+=('<h2>Map Services Information:</h2><ul>');var mainSvc=getSvcName(parent.USGSMapService);var mainHost=getSvcHostName(parent.USGSMapService);WindowContent+=('Main Map Service: '+mainSvc+' Server: '+mainHost+'<br />');if(parent.USGSUseOverview){var ovSvc=getSvcName(parent.USGSOVService);var ovHost=getSvcHostName(parent.USGSOVService);WindowContent+=('Overview Map Service: '+ovSvc+' Server: '+ovHost);};WindowContent+=('</ul>');WindowContent+=('<br /><br /><br />');WindowContent+=('Alternate Content URL: <a href="'+parent.USGSalternative+'" target="_blank">'+parent.USGSalternative+'</a><br />');Create_Pop_Up_Window('Current Map Information','',WindowContent,'MapInfo','width=500,height=500,scrollbars=yes,resizable=yes',true);}};function displayUserInstructions(){hideLayer("measureBox");if(document.domain=="imsdemo.cr.usgs.gov"||document.domain=="landfire.cr.usgs.gov"){var Win1=open("userinstructions.htm","UserInstructionsWindow","width=575,height=300,scrollbars=yes,resizable=yes");}else{var Win1=open("userinstructions.php","UserInstructionsWindow","width=575,height=300,scrollbars=yes,resizable=yes");}};function displayMetadata(){hideLayer("measureBox");var Win1=open("docs/layers.htm","LayerMetadataWindow","width=575,height=300,scrollbars=yes,resizable=yes");};function AddUSGSLogoLayer(XPosition,YPosition){if(parent.USGScopyright.length>0){var content='<img name="USGScopyright" src="'+parent.USGScopyright+'" width="83" height="23" hspace="0" vspace="0" border="0" alt="USGS Logo" />';createLayer("USGSLogo",XPosition,YPosition,83,23,true,content);}};function getSvcName(str){var svc;var svcIndex=str.indexOf("Name=");if(svcIndex==-1){svc="Not Available";}else{svc=str.substring(svcIndex+5);};return(svc);};function getSvcHostName(str){var svcHost;var begIndex=str.indexOf(":");var endIndex=str.indexOf("/",begIndex+3);if((begIndex==-1)||(endIndex==-1)){svcHost="Not Available";}else{svcHost=str.substring(begIndex+3,endIndex);};return(svcHost);}

