<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="WebMapApplication" %>

<%@ Register Assembly="ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=9.2.4.1420, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86"
  Namespace="ESRI.ArcGIS.ADF.Web.UI.WebControls" TagPrefix="esri" %>

<%@ Register Src="UC_SiteInfo.ascx" TagName="UC_SiteInfo" TagPrefix="uc2" %>

<%--
<%@ Register Assembly="ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=9.2.0.1324, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86"   Namespace="ESRI.ArcGIS.ADF.Web.UI.WebControls" TagPrefix="esri" %>
<%@ Register Assembly="ESRI.ArcGIS.ADF.Tasks, Version=9.2.0.1324, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86" Namespace="ESRI.ArcGIS.ADF.Tasks" TagPrefix="esriTasks" %>
--%>
<%@ Register Assembly="ESRI.ArcGIS.ADF.Tasks, Version=9.2.4.1420, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86" Namespace="ESRI.ArcGIS.ADF.Tasks" TagPrefix="esriTasks" %>
<%@ Register Src="Measure.ascx" TagName="Measure" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Hydrologic Information System - HIS</title>
    <script type="text/javascript" language="javascript">
      function GetActiveNetworkName(){
        var NetworkName = document.getElementById("ddlActiveLayer").value;
        return NetworkName;
      }     
      function shutdown(){
        if(winMultiple){
          winMultiple.close();
        }
        if(winDataCart){
          winDataCart.close();
        }
        if(winChart){
          winChart.close();
        }
      }
      function start(){
        ActiveNetworkName=GetActiveNetworkName()
      }      
    </script>
</head>
<body style="margin: 0px 0px 0px 0px; background-color: white;  width: 100%; font-family: Verdana; font-size: 8pt; color: #A9A9A9; " onload="start()" onunload="shutdown()">
    <form id="form1" runat="server">
    <script language="javascript" type="text/javascript" src="javascript/WebMapApp.js"></script> 
    <script language="javascript" type="text/javascript" src="javascript/cuahsi.js"></script> 
    <script language="javascript" type="text/javascript" src="javascript/calendar.js"></script> 
    <script language="javascript" type="text/javascript">
      var maximumLapseTime = 60;
    </script> 
    <div style="position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; overflow: hidden;">
 
  <%-- Page Header --%>
            <asp:Panel runat="server" ID="PageHeader" CssClass="MapViewer_TitleBannerStyle" Width="100%" Height="50px" style="position: relative; z-index: 100;" BackImageUrl="~/Images/header.jpg" >
                <div style="top: 0px; float: right;">
                    <asp:HyperLink ID="CloseHyperLink" runat="server" Style="color: White; font-family: Verdana; font-size: 8pt;" NavigateUrl="JavaScript: CloseOut()" Visible="False" ToolTip="Close Application" >Close</asp:HyperLink>&nbsp;&nbsp;
                </div>
                &nbsp;
              <asp:LoginStatus ID="LoginStatus1" runat="server" Style="z-index: 100; left: 300px;
                position: absolute; top: 16px" Width="44px" ForeColor="White" Height="16px" />
              <asp:LoginView ID="LoginView1" runat="server">
                <LoggedInTemplate>
                  <asp:LoginName ID="LoginName1" runat="server" ForeColor="White" Style="z-index: 100;
                    left: 356px; position: absolute; top: 16px" Height="16px" Width="100px" />
                  <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="White" Style="z-index: 102;
                    left: 464px; position: absolute; top: 16px" Width="144px" NavigateUrl="~/PasswordChange.aspx">Change Password</asp:HyperLink>
                </LoggedInTemplate>
                <AnonymousTemplate>
                  <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="White" NavigateUrl="~/Register.aspx"
                    Style="z-index: 100; left: 352px; position: absolute; top: 16px" Width="48px">Register</asp:HyperLink>
                  &nbsp;
                </AnonymousTemplate>
              </asp:LoginView>
              &nbsp; &nbsp;
           </asp:Panel> 
 <%-- Link and Tool bar --%>
            <asp:Panel runat="server" ID="LinkBar" CssClass="MapViewer_TaskbarStyle" Width="100%" Height="30px">
                <table cellpadding="0" cellspacing="0" style="width: 100%; font-family: Verdana; font-size: 8pt;"><tr>
                    <td align="left" style="height: 30px; padding-left: 5px; width: 667px;" valign="middle">
                            <esri:Toolbar ID="Toolbar1" runat="server" BuddyControlType="Map" Group="Toolbar1_Group" Height="28px" 
                        ToolbarItemDefaultStyle-BackColor="Transparent" ToolbarItemDefaultStyle-Font-Names="Arial" 
                        ToolbarItemDefaultStyle-Font-Size="Smaller" ToolbarItemDisabledStyle-BackColor="Transparent" 
                        ToolbarItemDisabledStyle-Font-Names="Arial" ToolbarItemDisabledStyle-Font-Size="Smaller" 
                        ToolbarItemDisabledStyle-ForeColor="Gray" ToolbarItemHoverStyle-BackColor="Transparent" 
                        ToolbarItemHoverStyle-Font-Bold="True" ToolbarItemHoverStyle-Font-Italic="True" 
                        ToolbarItemHoverStyle-Font-Names="Arial" ToolbarItemHoverStyle-Font-Size="Smaller" 
                        ToolbarItemSelectedStyle-BackColor="WhiteSmoke" ToolbarItemSelectedStyle-Font-Bold="True" 
                        ToolbarItemSelectedStyle-Font-Names="Arial" ToolbarItemSelectedStyle-Font-Size="Smaller" 
                        ToolbarStyle="ImageOnly" WebResourceLocation="/aspnet_client/ESRI/WebADF/" 
                        Width="408px" ToolbarItemHoverStyle-BorderColor="Black" ToolbarItemHoverStyle-BorderStyle="Solid" ToolbarItemHoverStyle-BorderWidth="1px" ToolbarItemSelectedStyle-BorderColor="Black" ToolbarItemSelectedStyle-BorderStyle="Solid" ToolbarItemSelectedStyle-BorderWidth="1px" CurrentTool="MapPan">
                            <ToolbarItems>
                              <esri:Tool ClientAction="DragRectangle" DefaultImage="~/Images/zoom-in.png" HoverImage="~/Images/zoom-in.png"
                                JavaScriptFile="" Name="MapZoomIn" SelectedImage="~/Images/zoom-in.png" ServerActionAssembly="ESRI.ArcGIS.ADF.Web.UI.WebControls"
                                ServerActionClass="ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapZoomIn" Text="Zoom In"
                                ToolTip="Zoom In" />
                              <esri:Tool ClientAction="DragRectangle" DefaultImage="~/Images/zoom-out.png" HoverImage="~/Images/zoom-out.png"
                                JavaScriptFile="" Name="MapZoomOut" SelectedImage="~/Images/zoom-out.png" ServerActionAssembly="ESRI.ArcGIS.ADF.Web.UI.WebControls"
                                ServerActionClass="ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapZoomOut" Text="Zoom Out"
                                ToolTip="Zoom Out" />
                              <esri:Tool ClientAction="DragImage" DefaultImage="~/Images/pan.png" HoverImage="~/Images/pan.png"
                                JavaScriptFile="" Name="MapPan" SelectedImage="~/Images/pan.png" ServerActionAssembly="ESRI.ArcGIS.ADF.Web.UI.WebControls"
                                ServerActionClass="ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapPan" Text="Pan"
                                ToolTip="Pan" />
                              <esri:Command ClientAction="GetLastExtent();" DefaultImage="~/Images/previous.png"
                                DisabledImage="~/Images/previous.png" HoverImage="~/Images/previous.png" JavaScriptFile=""
                                Name="Command" SelectedImage="~/Images/previous.png" ToolTip="Last extent." />
                              <esri:Command ClientAction="" DefaultImage="~/images/zoom-full-extent1.png" HoverImage="~/images/zoom-full-extent1.png"
                                JavaScriptFile="" Name="MapFullExtent" SelectedImage="~/images/zoom-full-extent1.png"
                                ServerActionAssembly="ESRI.ArcGIS.ADF.Web.UI.WebControls" ServerActionClass="ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools.MapFullExtent"
                                Text="Full Extent" ToolTip="Full Extent" />
                              <esri:Tool ClientAction="MapIdentify('Map1');" DefaultImage="~/Images/identify.png"
                                HoverImage="~/Images/identify.png" JavaScriptFile="" Name="MapIdentify" SelectedImage="~/Images/identify.png"
                                Text="Identify" ToolTip="Identify (Ctrl-MouseClick)" />
                              <esri:Tool ClientAction="startMeasure()" DefaultImage="~/images/measure.png" HoverImage="~/images/measure.png"
                                JavaScriptFile="" Name="Measure" SelectedImage="~/images/measure.png" Text="Measure"
                                ToolTip="Measure" />
                              <esri:Tool ClientAction="DragRectangle" DefaultImage="~/Images/select_rect_1.gif"
                                JavaScriptFile="" Name="Tool" SelectedImage="~/Images/select_rect_2.gif" ServerActionAssembly="App_Code"
                                ServerActionClass="CuahsiTools.SelectStationsTool" ToolTip="Select Stations" />
                              <esri:Command ClientAction="ToggleSelection();" DefaultImage="~/Images/back.gif"
                                HoverImage="~/Images/back.gif" JavaScriptFile="" Name="PreviousSelected" SelectedImage="~/Images/back.gif"
                                ToolTip="Previous Selected (Toggle)" />
                              <esri:Command ClientAction="JavaScript:ClearSelection();" DefaultImage="~/images/ClearSelect.gif"
                                HoverImage="~/images/ClearSelectM.gif" JavaScriptFile="" Name="ClearSelection"
                                ToolTip="Clear selections (apply to all layers)." />
                              <esri:Command ClientAction="ShowMultipleSelect();" DefaultImage="~/Images/ctxwiz_hide.gif"
                                HoverImage="~/Images/ctxwiz_show.gif" JavaScriptFile="" Name="MultipleSelect" SelectedImage="~/Images/ctxwiz_hide.gif"
                                ToolTip="Multiple Station Select" />
                              <esri:Tool ClientAction="HIS_ID('Map1');" DefaultImage="~/Images/HydroID.gif" HoverImage="~/Images/HydroID_HOVER.gif"
                                JavaScriptFile="" Name="HISID" SelectedImage="~/Images/HydroID_ON.gif" ToolTip="HIS network identify." />
                              <esri:Command ClientAction="showCartInfo();" DefaultImage="~/Images/DataCart.gif"
                                HoverImage="~/Images/DataCart_Over.gif" JavaScriptFile="" Name="cmdDataCart" SelectedImage="~/Images/DataCartAdd2.gif"
                                ToolTip="Show data cart." />
                           </ToolbarItems>
                            <BuddyControls>
                                <esri:BuddyControl Name="Map1" />
                            </BuddyControls>
                        </esri:Toolbar>
                      <asp:DropDownList ID="ddlActiveLayer" runat="server" Style="z-index: 100; left: 420px;
                        position: absolute; top: 52px" Width="104px" onmouseover="javascript:SetStatusMsg('Select active network.')" onmouseexit="javascript:SetStatusMsg('done')">
                        <asp:ListItem>NWIS</asp:ListItem>
                        <asp:ListItem>EPA</asp:ListItem>
                      </asp:DropDownList>
                        </td> 
                     <td style="height: 30px; padding-right: 5px" align="right" >
                        <asp:Menu ID="TitleMenu" runat="server" BackColor="Transparent" Orientation="Horizontal" Font-Size="8pt" DataSourceID="SiteMapDataSource1" OnDataBound="TitleMenu_DataBound" SkinID="TaskBarSkin" Target="_Blank">
                            <StaticMenuItemStyle ItemSpacing="4px" />
                        </asp:Menu>
                        <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false" SiteMapProvider="AspnetXmlSiteMapProvider" />
                        
                    </td>
               </tr></table>          
          </asp:Panel> 

 <%-- Page content area ..... Left panel and Map display --%>            
           <div id="PageContent" style="width: 100%; position: relative; z-index: 101;"  onmouseover="webMapAppCheckPanelScroll()">
<%-- Map Display --%>
                          <div id="Map_Panel" style="width: 512px; height: 512px; position: absolute; top: 0px; left: 260px;">
                                <esri:Map ID="Map1" runat="server" MapResourceManager="MapResourceManager1" style="" Height="101%" Width="105%" PrimaryMapResource="">
                                </esri:Map>
                         </div>
<%-- Left Panel ..... for tasks, results, toc, overview map, etc --%> 
                        <table id="LeftPanelCell" cellpadding="0" cellspacing="0" style="position: absolute; left: 0px; top: 0px; background-color: White;">
                            <tr><td id="LeftPanelTableCell" style="position: relative;">
                            <div id="LeftPanelScrollDiv" style="position: relative; width: auto;">
                           <div id="LeftPanelCellDiv" style="width: 250px;  border: solid 1px #999999; position: relative" >
                                  <!-- Tasks -->
                                            <esri:FloatingPanel ID="Tasks_Menu_Panel" runat="server" BackColor="White" BorderColor="White"
                                                BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black"
                                                Height="75px" Style="position:relative; margin-bottom:0px;" Draggable="False"
                                                Title="Tasks" TitleBarColor="White" TitleBarHeight="20px" TitleBarSeparatorLine="True"
                                                Transparency="0" Width="100%" Font-Bold="True" CloseButton="False" TitleBarForeColor="DarkGray"
                                                WidthResizable="False" ShowDockButton="True" ShowDockedContextMenu="True" DockingContainerElementID="LeftPanelCellDiv">
                                                <asp:Menu ID="TaskMenu" runat="server" Style="left: 0px; position: relative;
                                                    top: 0px" Orientation="Vertical" BackColor="#F7F6F3" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="8pt" ForeColor="#7C6F57" StaticSubMenuIndent="10px">
                                                    <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                                                    <DynamicHoverStyle BackColor="#7C6F57" ForeColor="White" />
                                                    <DynamicMenuStyle BackColor="#F7F6F3" />
                                                    <StaticSelectedStyle BackColor="#5D7B9D" />
                                                    <DynamicSelectedStyle BackColor="#5D7B9D" />
                                                    <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                                                    <StaticHoverStyle BackColor="#7C6F57" ForeColor="White" />
                                                </asp:Menu>
                                            </esri:FloatingPanel>
                                    <!-- TOC ... Map Contents -->
                                         <esri:FloatingPanel ID="Toc_Panel" runat="server" BackColor="White" BorderColor="LightGray"
                                            BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black"
                                            Height="150px" Style="position:relative; left: 0px; top: -6px;" Draggable="False"
                                            Title="Map Contents" TitleBarColor="White" TitleBarHeight="20px" TitleBarSeparatorLine="True"
                                            Transparency="0" Width="100%" HeightResizable="True" Font-Bold="True" CloseButton="False" TitleBarForeColor="DarkGray"
                                            WidthResizable="False" Expanded="False" ShowDockButton="True" ShowDockedContextMenu="True" DockingContainerElementID="LeftPanelCellDiv">
                                                <esri:Toc ID="Toc1" runat="server" Font-Bold="False" Width="100%" Height="100%" Style="left: 0px; width: 100%; position: absolute; top: 0px; height: 100%; overflow:auto; " BuddyControl="Map1" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" RenderOnDemand="True" TocType="SwatchList" ShowLayerCheckBoxes="True" ShowResourceCheckBoxes="True" ExpandDepth="1"/>
                                        </esri:FloatingPanel>
                                      
                                  <!-- Results -->
                                            <esri:FloatingPanel ID="Results" runat="server" BackColor="White" BorderColor="White"
                                                BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black"
                                                Height="150px" Style="position:relative; margin-bottom:0px;" Draggable="False"
                                                Title="Results" TitleBarColor="White" TitleBarHeight="20px" TitleBarSeparatorLine="True"
                                                Transparency="0" Width="100%" HeightResizable="True" Font-Bold="True" CloseButton="False" TitleBarForeColor="DarkGray"
                                                Expanded="False" WidthResizable="False" ShowDockButton="True" ShowDockedContextMenu="True" DockingContainerElementID="LeftPanelCellDiv">
                                                    <esri:TaskResults ID="TaskResults1" runat="server" BackColor="#ffffff" Font-Names="Verdana" Font-Size="8pt" Font-Bold="False" ForeColor="#000000" Height="200px" Style="left: 0px; width: 100%; position: absolute; top: 0px; height: 100%; overflow:auto;" Width="200px" Map="Map1" />
                                            </esri:FloatingPanel>
                                                                                
                                  <!-- HISID Results -->
                                            <esri:FloatingPanel ID="HISIDResults" runat="server" BackColor="White" BorderColor="White"
                                                BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black"
                                                Height="150px" Style="position:relative; margin-bottom:0px;" Draggable="False"
                                                Title="HISID Results" TitleBarColor="White" TitleBarHeight="20px" TitleBarSeparatorLine="True"
                                                Transparency="0" Width="100%" HeightResizable="True" Font-Bold="True" CloseButton="False" TitleBarForeColor="DarkGray"
                                                Expanded="False" WidthResizable="False" ShowDockButton="True" ShowDockedContextMenu="True" DockingContainerElementID="LeftPanelCellDiv">
                                                    <esri:TaskResults ID="TaskResults2" runat="server" BackColor="#ffffff" Font-Names="Verdana" Font-Size="8pt" Font-Bold="False" ForeColor="#000000" Height="200px" Style="left: 0px; width: 100%; position: absolute; top: 0px; height: 100%; overflow:auto;" Width="200px" Map="Map1" />
                                            </esri:FloatingPanel>


                                 <!-- Navigation -->
                                         <esri:FloatingPanel ID="Navigation_Panel" runat="server" BackColor="White" BorderColor="White"
                                            BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black"
                                            Style="position:relative; margin-bottom:0px; overflow: auto;" Draggable="False"
                                            Title="Navigation" TitleBarColor="White" TitleBarHeight="20px" TitleBarSeparatorLine="True"
                                            Transparency="0" Width="100%" HeightResizable="True" Font-Bold="True" CloseButton="False" TitleBarForeColor="DarkGray"
                                            Expanded="False" WidthResizable="False" ShowDockButton="True" ShowDockedContextMenu="True" DockingContainerElementID="LeftPanelCellDiv">
                                              <table id="Navigation_Table" cellpadding="2" cellspacing="0" style="width: 100%" ><tr>
                                              <td align="center" valign="middle" >
                                                 <esri:Navigation ID="Navigation1" runat="server" Map="Map1" Height="100px" Width="100%" ForeColor="Black" BackColor="White" ImageFormat="PNG8">
                                                        <DisplayCharacter CharacterIndex="58" FontName="ESRI North" />
                                                    </esri:Navigation>
                                                </td>
                                                <td align="center" valign="middle" >
                                                  <esri:ZoomLevel ID="ZoomLevel1" runat="server" Map="Map1" />
                                             </td>
                                          </tr></table>
                                       </esri:FloatingPanel>
                                 <!-- Overview Map -->
                                        <esri:FloatingPanel ID="OverviewMap_Panel" runat="server" BackColor="White" BorderColor="White"
                                                BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Style="position:relative; margin-bottom:0px;" Draggable="False"
                                                Title="Overview" TitleBarColor="White" TitleBarHeight="20px" TitleBarSeparatorLine="True"
                                                Transparency="0" Width="100%" HeightResizable="False" Font-Bold="True" CloseButton="False" TitleBarForeColor="DarkGray"
                                                WidthResizable="False" Expanded="False" Height="160px" ShowDockButton="True" ShowDockedContextMenu="True" DockingContainerElementID="LeftPanelCellDiv">
                                               <div style="width: 100%; overflow: hidden; height: auto;">
                                                   <table cellpadding="0" cellspacing="0" style="width: 100%" ><tr><td align="center" >
                                                    <esri:OverviewMap ID="OverviewMap1" runat="server"
                                                        Map="Map1" Height="150px" MapResourceManager="MapResourceManager1" OverviewMapResource="CUAHSI"
                                                        Style="" Width="205px" Font-Bold="False" Enabled="False"/>
                                                    </td></tr></table>
                                                </div>
                                         </esri:FloatingPanel>
                                   </div>
                                </div>
                             </td>
                             
                             <td> 
 <%-- Toggle Bar ..... toggles left panel visibility --%>
                                <div id="ToggleCell" style="overflow: hidden; width: 10px; border: solid 1px #999999; background-color: White; position: relative ">
                                    <table id="ToggleCellTable" cellpadding="0" cellspacing="0" style="position: relative; height: 100%; width: 100%;">
                                        <tr>
                                            <td id="PanelSlider" onmousedown="startWebMapAppDockDrag(event); return false;" style="cursor: e-resize; background-color: White; height: 45%" ></td>
                                        </tr> 
                                        <tr>
                                            <td style="height: 24px;"  ><img id="CollapseImage" src="images/collapse_left.gif" alt="Collapse" onmousedown="togglePanelDock()"  style="cursor: pointer" height="20px" /></td>
                                        </tr> 
                                        <tr>
                                            <td id="PanelSliderBottom" onmousedown="startWebMapAppDockDrag(event); return false;" style="cursor: e-resize; background-color: White; height: 50%" ></td>
                                        </tr> 
                                    </table>
                                </div>
                                
                            </td>
                        </tr>
                   </table>  
                               
    </div>
      <a href="Default.aspx">Default.aspx</a></div>
    <div style="position:absolute;width:100px; height:24px; visibility:hidden; left:352px; top:280px; z-index:auto;" id="loadingDiv">
            <img src="Images/loading.gif" alt="Loading" style="" id="loadingImg"  />
    </div>

       <esri:MapResourceManager ID="MapResourceManager1" runat="server" Style="z-index: 101;
            left: 525px; position: absolute; top: 160px">
      <ResourceItems><esri:MapResourceItem Definition="&lt;Definition DataSourceDefinition=&quot;localhost&quot; DataSourceType=&quot;ArcGIS Server Local&quot; Identity=&quot;To set, right-click project and 'Add ArcGIS Identity'&quot; ResourceDefinition=&quot;Layers@Networks&quot; DataSourceShared=&quot;True&quot; /&gt;" DisplaySettings="visible=True:transparency=0:mime=True:imgFormat=PNG8:height=100:width=100:dpi=96:color=-16711165:transbg=True:displayInToc=True" Name="HIS" />
        <esri:MapResourceItem Definition="&lt;Definition DataSourceDefinition=&quot;http://river.sdsc.edu/arcgis/services&quot; DataSourceType=&quot;ArcGIS Server Internet&quot; Identity=&quot;&quot; ResourceDefinition=&quot;Layers@BaseMap&quot; DataSourceShared=&quot;True&quot; /&gt;"
          DisplaySettings="visible=True:transparency=0:mime=True:imgFormat=PNG8:height=100:width=100:dpi=96:color=:transbg=False:displayInToc=True"
          Name="BaseMap" />
      </ResourceItems></esri:MapResourceManager>
      
        <esri:ScaleBar ID="ScaleBar1" runat="server" BarHeight="8" Height="30px" Map="Map1"
            Style=" left: 278px; position: absolute; top: 485px; "
            Width="175px" BarUnits="Miles" BarColor="Black" ForeColor="Black"/>
        <asp:Panel ID="CopyrightTextHolder" runat="server" Style="position: absolute; left: 625px; top: 580px; padding: 3px; cursor: pointer; -moz-opacity: 0.75; filter: alpha(opacity=75); " BorderColor="DarkGray" BorderStyle="Solid" BorderWidth="1px" ToolTip="Display Copyright Information" Font-Underline="True" BackColor="White" Font-Size="XX-Small">
            Copyright
        </asp:Panel>
        <esri:FloatingPanel ID="CopyrightText_Panel" runat="server" BackColor="White" BorderColor="Gray"
            BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black"
            Height="200px" Style="left: 708px; position: absolute; top: 696px"
            Title="Copyright" TitleBarColor="WhiteSmoke" TitleBarHeight="20px"
            TitleBarSeparatorLine="False" Transparency="35" Width="250px" Visible="False" Docked="False">
           <div id="CopyrightTextContents" style="width: 100%" >Copyright Information</div>
       </esri:FloatingPanel>
       <esri:FloatingPanel ID="SiteSelect_Panel" runat="server" Style="left: 560px; position: absolute; top: 416px" Height="210px" Width="300px" ShowDockButton="True" ShowDockedContextMenu="True" Title="Site Variables" DockingContainerElementID="LeftPanelCellDiv" Expanded="False" WidthResizable="False" CloseButton="False" Draggable="False">
            <div id="windowcontent" class="variableForm" style="width: 500px;
        height: 257px; visibility:hidden; background-color: white; border-top-width: thin; border-left-width: thin; border-left-color: #0000ff; border-bottom-width: thin; border-bottom-color: #0000ff; border-top-color: #0000ff; border-right-width: thin; border-right-color: #0000ff;">
              <uc2:UC_SiteInfo ID="UC_SiteInfo1" runat="server" />

      </div>
       </esri:FloatingPanel>

    <script language="javascript" type="text/javascript">
         setPageElementSizes();
    </script>

      &nbsp;&nbsp;
        
         <esri:Magnifier ID="Magnifier1" runat="server" style="position: absolute; left: 256px; top: 748px;" Font-Names="Verdana,Sans Serif" Font-Size="8pt" MagnifierMapResource="HIS10" Map="Map1" MapResourceManager="MapResourceManager1" TitleBarColor="White" Transparency="50" Visible="False" BackColor="White" BorderColor="DarkGray" BorderStyle="Solid" BorderWidth="1px" Font-Bold="True" ForeColor="Black" TitleBarForeColor="DarkGray">
        </esri:Magnifier>
                
        <uc1:Measure ID="Measure1" runat="server" AreaUnits="Sq_Miles" MapBuddyId="Map1"
            MapUnits="Resource_Default" MeasureUnits="Miles" NumberDecimals="3"  />
            
        <esri:TaskManager ID="TaskManager1" runat="server" BuddyControl="TaskMenu" Font-Names="Verdana"
            Font-Size="8pt" ForeColor="Black" Height="17px" Style="left: 799px;
            position: absolute; top: 157px" Width="204px"></esri:TaskManager>

  
         <esri:GeocodeResourceManager ID="GeocodeResourceManager1" runat="server" style="left: 328px; position: absolute; top: 792px">
         <ResourceItems></ResourceItems></esri:GeocodeResourceManager>
        <esri:GeoprocessingResourceManager ID="GeoprocessingResourceManager1" runat="server" style="left: 620px; position: absolute; top: 808px">
        <ResourceItems></ResourceItems></esri:GeoprocessingResourceManager>

        
<!--
        <asp:TextBox ID="MapDebugBox" runat="server" Height="200px" Width="935px" TextMode="MultiLine" style="left: 5px; position: absolute; top: 549px" Visible="true">Debug box... 
      This is useful for debugging modifications or additions to the Map Viewer application. 
      Set Visible property to true to display Map Viewer requests and responses on web page.
      By default, the property is set to false, and the box will not be rendered on the web page.
       </asp:TextBox>
        <input id="Button1" style="left: 749px; position: absolute; top: 516px" type="button"
            value="Clear Debug Box"  onmousedown="document.forms[0].MapDebugBox.value=''" />
-->

    </form>
 
  <script language="javascript" type="text/javascript">
      newLoad = <%=m_newLoad %>; 
      webMapAppCloseCallback = "<%=m_closeOutCallback %>";
      webMapAppCopyrightCallback = "<%=m_copyrightCallback %>";
      startUp(); 
  </script> 
  <script language="javascript" type="text/javascript">
    function showBusyIndicator(sender) {
          ShowLoading(true);
          if (sender!=null) {
            window.status = "Pending Tiles: " + sender.pendingTiles.length; 
          }  
      }
      function showPendingTiles(sender) {
        if (sender!=null) {
          window.status = "Pending Tiles: " + sender.pendingTiles.length; 
        }  
      }

      function hideBusyIndicator(sender) {
          ShowLoading(false);
          if (sender!=null) {
              window.status = ""; 
          }  

      } 
      // add busy indicator functions to the map
      map = Maps["Map1"];
      map.pendingTiles.add_onRequestsPending(showBusyIndicator);
      map.pendingTiles.add_onRequestsRemove(showPendingTiles);
      map.pendingTiles.add_onRequestsCompleted(hideBusyIndicator);   

  </script> 


</body>
</html>
