function Create_Pop_Up_Window(PopUpTitle,HeaderContent,BodyContent,WindowName,Window_Def_String,Force_External,Showheader){if(!Boolean(PopUpTitle)){PopUpTitle=parent.USGSTitle;};if(!Boolean(HeaderContent)){HeaderContent=" ";HeaderContent+='<style type="text/css">';HeaderContent+='DIV.bannerColorBand, DIV.banner { background-color: '+parent.USGSBackgroundColor+'; }';HeaderContent+='.coop { padding-left: 4px; padding-right: 4px; position: absolute; height: 5.14em; background-color: white;}';HeaderContent+='Div.siteTitle, #pTitle, a.pTitle { background-color: '+parent.USGSBackgroundColor+'; color: '+parent.USGSTextColor+'; }';HeaderContent+='body { font-size: small; background-color: '+parent.USGSBackgroundColor+'; color: '+parent.USGSTextColor+'; }';HeaderContent+='th, td { font-size: small; }';HeaderContent+='</style>';};if(!Boolean(BodyContent)){BodyContent=" ";};if(!Boolean(WindowName)){WindowName=" ";};if(!Boolean(Window_Def_String)){Window_Def_String=" ";};if(!Boolean(Force_External)){Force_External=false;};if(!Boolean(Showheader)){Showheader=false;};var theFrame="parent.MapFrame";var Win1;if((useExternalWindow)||(!useTextFrame)||(Force_External)){Win1=window.open("",WindowName,Window_Def_String);try{var testWindowOpen=Win1.name;theFrame="opener";if(parent.MapFrame!=null){theFrame="opener.parent.MapFrame";}}catch(e){Win1=parent.TextFrame;theFrame="parent.MapFrame";if(parent.MapFrame!=null){theFrame="parent.MapFrame";};useExternalWindow=false;useTextFrame=true;Force_External=false;}}else{Win1=parent.TextFrame;};Win1.document.close();Win1.document.open();Win1.document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');Win1.document.writeln('<html xmlns="http://www.w3.org/1999/xhtml">');Win1.document.writeln('<head>');Win1.document.writeln('<!-- Set the Content Type to HTML -->');Win1.document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />');Win1.document.writeln('<!-- Turn off the IE image toolbar -->');Win1.document.writeln('<meta http-equiv="imagetoolbar" content="no" />');Win1.document.writeln('<!-- The Page Title shown in top of browser -->');Win1.document.writeln('<title>'+PopUpTitle+'</title>');Win1.document.writeln('<!-- Pull in the Stylesheet for rendering/etc -->');Win1.document.writeln('<link href="'+parent.USGSThisURL+'/styles/common.css" rel="stylesheet" type="text/css" />');Win1.document.writeln('<link href="'+parent.USGSThisURL+'/styles/custom.css" rel="stylesheet" type="text/css" />');Win1.document.writeln('<link href="'+parent.USGSThisURL+'/styles/viewer.css" rel="stylesheet" type="text/css" />');Win1.document.writeln(HeaderContent);Win1.document.writeln('</head>');Win1.document.writeln('<body>');if((useExternalWindow)||(!useTextFrame)||(Force_External)){Win1.document.writeln('<!-- BEGIN USGS Header Template -->');if(!Showheader){Win1.document.writeln('<!-- ');};Win1.document.writeln('<div class="bannerColorBand">');Win1.document.writeln('<div class="banner">');Win1.document.writeln('<div class="identifier"><a href="http://www.usgs.gov/" title="U.S. Geological Survey Home Page" target="_top"><img src="/Image_Library/USGS_Logo.jpg" alt="U.S. Geological Survey - science for a changing world" width="178" height="72" style="border: none;" border="0" /></a></div>');Win1.document.writeln('<img src="/Image_Library/pixel.gif" height="72" width="1" alt="" style="float: left;" />');Win1.document.writeln('<div class="ccsaBox">');Win1.document.writeln('<img src="/Image_Library/pixel.gif" height="72" width="1" alt="" style="float: left;" />');Win1.document.writeln('<div class="ccsa">');Win1.document.writeln('<br /><a href="http://www.usgs.gov/" target="_top">USGS Home</a><br />');Win1.document.writeln('<a href="http://www.usgs.gov/ask/index.html" target="_top">Contact USGS</a><br />');Win1.document.writeln('<a href="http://www.usgs.gov/search" target="_top">Search USGS</a><br />');Win1.document.writeln('</div>');Win1.document.writeln('</div>');Win1.document.writeln('</div>');Win1.document.writeln('</div>');if(!Showheader){Win1.document.writeln(' -->');};Win1.document.writeln('<div class="siteTitle" id="pTitle">');Win1.document.writeln(PopUpTitle+'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:window.close();" style="float:right;">Close Window</a></span>');Win1.document.writeln('</div>');Win1.document.writeln('<!-- END USGS Header Template -->');};Win1.document.writeln(BodyContent);if((useExternalWindow)||(!useTextFrame)||(Force_External)){if(Showheader){Win1.document.writeln('<!-- BEGIN USGS Footer Template -->');Win1.document.writeln('<!-- NOTE: override the margin in the style setting because this is inside a frame with limited space. -->');Win1.document.writeln('<p class="footerBar" style="margin:0px;">');Win1.document.writeln('<a href="http://www.usgs.gov/accessibility.html" title="Accessibility Policy (Section 508)." target="_top">Accessibility</a>');Win1.document.writeln('<a href="http://www.usgs.gov/foia/" title="Freedom of Information Act." target="_top">FOIA</a>');Win1.document.writeln('<a href="http://www.usgs.gov/privacy.html" title="Privacy policies of the U.S. Geological Survey." target="_top">Privacy</a>');Win1.document.writeln('<a href="http://www.usgs.gov/policies_notices.html" title="Policies and notices that govern information posted on USGS Web sites." target="_top">Policies and Notices</a>');Win1.document.writeln('</p>');};Win1.document.writeln('<p class="footerText" style="margin:0px;">');if(Showheader){Win1.document.writeln('<a href="http://www.takepride.gov/" target="_top"><img src="images/footer_graphic_takePride.png" alt="Take Pride in America home page." width="60" height="58" style="border: none;  float: right;" title="Take Pride in America home page." /></a>');Win1.document.writeln('<a href="http://firstgov.gov/" target="_top"><img src="images/footer_graphic_firstGov.png" alt="FirstGov button" width="90" height="26" style="border: none; float: right; margin-right: 10px;" title="FirstGov: The U.S. Government&apos;s Official Web Portal." /></a>');Win1.document.writeln('<a href="http://www.doi.gov" target="_top">U.S. Department of the Interior</a> | ');Win1.document.writeln('<a href="http://www.usgs.gov" target="_top">U.S. Geological Survey</a><br />');};Win1.document.writeln('Page Contact Information: <a href="mailto:webmapping@usgs.gov">webmapping@usgs.gov</a><br />');Win1.document.writeln('</p>');Win1.document.writeln('<hr />');if(Showheader){Win1.document.writeln('<!-- END USGS Footer Template -->');}};Win1.document.writeln('</body></html>');};function explain(prod,piece){WindowContent+="<p>Your data request consists of "+prod+" product(s), broken into "+piece+" individual piece(s). The data will be delivered through an on-line download interface. The 'Modify Data Request' button will allow you to specify different formats, products, or media. Clicking on the name of the Product will allow you to order the entire dataset from pre-mastered originals using the National Center for EROS Order pages. You may bookmark this page to return to this data request and download the same pieces.";Create_Pop_Up_Window('Explanation of Product','',WindowContent,'ExplainProduct','scrollbars=yes,resizable=yes');useExternalWindow=Local_useExternalWindow;};function Set_OGC_Busy(on_off){if(document.images["OGC_STATUS"]!=null){if(document.images["OGC_STATUS"].src!=null){if((on_off=="on")||(on_off=="On")||(on_off=="ON")){if(document.images["OGC_STATUS"].alt!="Still Downloading OGC WMS Images"){document.images["OGC_STATUS"].src="/Image_Library/"+parent.timer_image;document.images["OGC_STATUS"].alt="Still Downloading OGC WMS Images";}}else{document.images["OGC_STATUS"].src="/Image_Library/pixel_black2.gif";document.images["OGC_STATUS"].alt="Finished Downloading OGC WMS Images";}}else{}}else{}}

