var MapService_BLM_LANDSVIEWER = '/BLM_LANDSVIEWER/MapServer/WMSServer';

var wselectedrec;
var slayerid="";
var wsketch;

var wss1;
var wss2;

var wsolar_fast_track_parcels;
var wsolar_fast_track_parcels_labels;
var wwind_fast_track_parcels;
var wwind_fast_track_parcels_labels;
var wgeothermal_fast_track_parcels;
var wgeothermal_fast_track_parcels_labels;
var wtransmission_fast_track_parcels;
var wtransmission_fast_track_parcels_labels;

var wBLM_Admin_Areas;
var wBLM_Admin_Areas_labels;
var wBLM_Admin_Dist;
var wBLM_Admin_Dist_labels;
var wBLM_FORA;
var wBLM_FORA_labels;

var wEasement;
var wWilderness;
var wWildScenicRiver;
var wSpecIntMgmtArea;
var wOtherNatDegArea;
var wDevelopedSite;

var wEasement_labels;
var wWilderness_labels;
var wWildScenicRiver_labels;
var wSpecIntMgmtArea_labels;
var wOtherNatDegArea_labels;
var wDevelopedSite_labels;

var wSurfaceRight;
var wSubSurfaceRight;
var wSurfaceOwnership;
var wSurfaceRight_labels;
var wSubSurfaceRight_labels;
var wSurfaceOwnership_labels;

var wNone;
var wColorRelief;
var wNED;
var wTopos;
var wOrtho;
var wSMA;
var wPLSS_PM;
var wtwp_Index2;

var wNGS_Topo_US_2D;
var wNGS_Topo;//
var wTerra_Server_Areial; //
var wTerra_Server_Topo;

var wNGS_Political_World_2D;
var wMDA_Satellite_World_2D;
var wESRI_ShadedRelief_World_2D;
var wESRI_StreetMap_World_2D;
var wI3_Imagery_Prime_World_2D;
var wSMA_Test;

var wLakes;
var wRivers;
var wRoadsBTS;

var wreport_case_errors;
var wreport_case_totals;

var wBTSRoads_WMS_labels_mxd;
var wBTSRoads_WMS_mxd;
var wBTSRoads_IMS_mxd;
var wIMS_LakesRivers_mxd;
var wWMS_Rivers_mxd;
var wWMS_Lakes_mxd;

var wstates_labels_93; //last 93 code in use
var wstates2_label_93;  //9_28_09

var wWind_Potential_LR;
var woil_shale_potent_areas;
var wgt_potent_areas;
var wROW_energycorridor;
var wROW_energycorridor_labels;
var wROW_energycenterline;
var wROW_energycenterline_labels;
var wmc_a_density_qq_label;
var wmc_a_density_section_label;
var wmc_a_density_twn_label;
var wDOD_stips;
var wDoD_MTR_labels;
var wDoD_SUA_labels;
var wDoD_MTR;
var wDoD_SUA;
var wdrow_NM3_labels;
var wdrow_NM2_labels;
var wdrow_NM1_labels;
var wdrow_WY2_labels;
var wdrow_WY1_labels;
var wdrow_all_serial_num;
var wdrow_all_row_desc;
var wdrow_all_row_type;
var wdrow_all_case_type;
var wdrow_all_cust_name;
var wdrow_JOB_AOI;
var wdrow_all;
var wdrow_NM3;
var wdrow_NM2;
var wdrow_NM1;
var wdrow_WY2;
var wdrow_WY1;
var wra_usfs;
var wra_usfs_labels;
var wherd_mgtareas;
var wherd_mgtareas_labels;
var wherd_areas;
var wherd_areas_labels;
var wog_lse_hycarb_labels;
var wog_lse_hycarb;
var wog_lse_nonpro_labels;
var wog_lse_nonpro;
var wog_lse_pro_labels;
var wog_lse_pro;
var wblm_amm_usfs_labels;
var wblm_amm_toms_labels;
var wblm_amm_osm_noncoal_labels;
var wblm_amm_osm_coal_labels;
var wblm_amm_msha_noncoal_labels;
var wblm_amm_msha_coal_labels;
var wblm_amm_mils_noncoal_labels;
var wblm_amm_mils_coal_labels;
var wblm_amm_gnis_labels;
var wblm_amm_epa_uranium_labels;
var wblm_amm_epa_labels;
var wblm_amm_noncoal_labels;
var wblm_amm_coal_labels;
var wUTM_Area;
var wgt_kla_labels_clsd;
var wgt_kla_clsd;
var wgt_lse_nom_clsd;
var wgt_lse_nom_clsd_labels;
var wtwp_labelsD;
var wtwpsB;
var wsma_nonusfs2;
var wcomments_landstatus;
var wpso;
var wpso_labels;
var wog_basin_labels;
var wog_basins;
var wog_gas_density;
var wog_gas_density_labels;
var wog_liquid_density_labels;
var wog_liquid_density;
var whuc;
var wcase_grants_labels;
var wcase_classification_labels;
var wcase_withdrawal_labels;
var wcase_min_patents;
var wcase_acquisition;
var wcase_designated_area_labels;
var wcase_exchange;
var wcase_grants;
var wcase_withdrawal;
var wcase_classification;
var wcase_withdrawal_and_classification;
var wcase_designated_area;
var wcase_min_patents_labels;
var wcase_pending_exchange_labels;
var wcase_exchange_labels;
var wcase_corrective_labels;
var wcase_land_disposal_labels;
var wcase_public_law;
var wcases_all;
var wcase_pending_exchange;
var wcase_land_sales_labels;
var wcase_public_law_labels;
var wcase_land_sales;
var wcase_corrective;
var wcase_acquisition_labels;
var wcase_land_disposal;
var wsma_forest_labels2;
var wsma_forests2;
var wusfs2;
var wMMD_closed;
var wULP_closed;
var wROW_all;
var wMMD_auth_labels;
var wrow_general_labels;
var wMMD_all;
var wrow_general;
var wROW_auth;
var wsolar_closed_labels;
var wwind_active_no_labels;
var wwind_dev_fac_labels;
var wrow_closed_labels;
var wROW_closed_labels;
var wrow_railroads;
var wrow_pipelines;
var wrow_roads_labels;
var wrow_fiber_optics_labels;
var wrow_railroads_labels;
var wULP_auth_labels;
var wrow_water;
var wwind_closed_labels;
var wrow_roads;
var wrow_fiber_optics;
var wwind_closed;
var wrow_pipelines_labels;
var wsolar_dev_fac_pend;
var wsolar_dev_fac_auth;
var wsolar_study;
var wsolar_study_labels;
var wsolar_PV_SR;
var wsolar_PV_SR_labels;
var wsolar_CSP_SR;
var wsolar_CSP_SR_labels;
var wrow_power_labels;
var wrow_closed;
var wrow_other_labels;
var wULP_all;
var wROW_closed;
var wrow_comm_sites;
var wULP_auth;
var wsolar_closed;
var wMMD_closed_labels;
var wrow_power;
var wwind_site_test_auth;
var wwind_site_test_pend;
var wwind_dev_fac_auth;
var wwind_dev_fac_pend;
var wrow_comm_sites_lables;
var wrow_other;
var wrow_water_labels;
var wMMD_auth;
var wrow_telephone;
var wROW_auth_labels;
var wsolar_dev_fac_labels;
var wULP_closed_labels;
var wVisual_Resource_Management;
var wother_sm_auth;
var wgt_agm_all;
var wmc_labels_name_c;
var wgt_agm_labels;
var wlmu_labels_auth;
var wgt_lse_nom_labels;
var wgt_lse_nonpro_labels;
var wgt_lse_pro_labels;
var wgt_kla_labels;
var wstip_labels;
var wsm_kla_closed;
var woil_shale_closed_labels;
var wmc_plans_notice_auth_labels;
var wog_agm_communa;
var wgt_lse_nonpro;
var wcoal_lse_labels_auth;
var wcoal_lse_labels_perml;
var wcoal_lse_other;
var wcoal_lse_labels_other;
var wmc_labels_serial;
var wEndangered_Species_Act;
var wNo_Lease;
var woil_shale_auth;
var wcoal_lse_closed;
var wog_agm;
var wmc_a;
var wmc_a_density_twn;
var wmc_a_density_qq;
var wog_lse_all;
var wstips;
var wgt_lse_c;
var wsm_kla_labels_auth;
var wNo_Lease_Non_Discretionary;
var wmc_plans_notice_closed;
var wog_agm_othera_labels;
var wgt_lse_nom;
var wmc_type;
var wNo_Category;
var wgt_agm;
var wog_lse_labels_c;
var wNo_Surface_Occupancy;
var wmc_plans_notice_auth;
var wgt_lse_all;
var wog_lse;
var wNo_Lease_Discretionary;
var wLease_Notice;
var woil_shale_closed;
var wsm_kla_labels_closed;
var wmc_c;
var wTiming_Limitation;
var wog_agm_all;
var wog_lse_labels;
var wSpecial;
var wlmu_auth;
var wgt_lse;
var wmc_plans_notice_closed_labels;
var wog_agm_labels;
var wog_agm_othera;
var wother_sm_labels_closed;
var wgt_agm_labels_c;
var wog_agm_partarea_labels;
var wgt_lse_labels_c;
var wCoalbed_Methane_Coal_Mining;
var wlmu_labels_closed;
var wTraditional_Cultural_Properties;
var wcoal_lse_auth;
var wcoal_lse_perml;
var wog_agm_partarea;
var wcoal_lse_labels_closed;
var wother_sm_closed;
var wmc_labels_name;
var wControlled_Surface_Use_Timing_Limitation;
var wlmu_closed;
var wgt_agm_c;
var wNone_Various_Reasons;
var wgt_kla;
var wgt_agm_unita;
var wgt_agm_unita_labels;
var wgt_agm_partarea;
var wgt_agm_partarea_labels;
var wgt_agm_communa;
var wgt_agm_communa_labels;
var wgt_agm_othera;
var wgt_agm_othera_labels;
var wog_agm_unita_labels;
var wPlan_of_Development;
var wog_agm_labels_c;
var wsm_kla_auth;
var wog_agm_communa_labels;
var wgt_lse_labels;
var wother_sm_labels_auth;
var woil_shale_auth_labels;
var wog_lse_c;
var wgt_lse_pro;
var wog_agm_unita;
var wog_agm_c;
var wControlled_Surface_Use;
var wtwps;
var wtwp_labels;
var wsec;
var wsec_labels;

var wqq;
var wqq_labels;
var wqq_labels_acerage;
var wqq_labels_survey_type;

var wspecialsurvey;
var wspecialsurvey_labels;
var wspecialsurvey_labels_acreage;
var wspecialsurvey_labels_survey_type;

var wladesc_minor_sub;
var wladesc_minor_sub_labels;
var wladesc_minor_sub_labels_acerage;
var wladesc_minor_sub_labels_survey_type;


var wall_labels;
var wga_allot_labels;
var wga_allot_labels_num; //not used yet but might be - decision pending RD 
var wga_allot_labels_name; 
var wga_allot;
var wga_past;
var wga_past_labels;
var waii_project_labels;
var waii_project;
var waii_project_unknown;
var waii_project_1960;
var waii_project_1970;
var waii_project_1980;
var waii_project_1990;
var waii_project_2000;
var waii_flight_labels;
var waii_flight;
var waii_photoc_labels;
var waii_photoc;
var wUrban_Area_labels;
var wUrban_Area_labels_SNPLMA;
var wCounties;
var wCounties_SNMPLA;
var wCounty_labels;
var wCounty_labels_SNPLMA;
var wUrban_Area;
var wUrban_Area_SNPLMA;
var wstates_labels;
var wstates;
var wusfs_region_labels2;
var wProclaimedForest;
var wstates2;
var wnffidarea_labels;
var wcivil_division_labels;
var wranger_district;
var wnffidarea;
var wCounties2;
var wcongressional_district_labels;
var wstates2_label;
var wranger_district_labels;
var wcivil_division;
var wcongressional_district;
var wusfs_regions2;
var wProclaimed_Forest_Label;
var wUrban_Area2;
var wCounties2_label;

var wAll_Major_Roads;
var wAll_Major_Roads_Labels;
var wRCA_Major_Roads_Labels;
var wRCA_Major_Roads;
var wInterstates;
var wUS_Highways;
var wOtherMajor_Roads;

var wall_blm_roads;
var wblmCA_roads; //staging and blm roads
var wblm_roads_labeled_by_name;
var wblmCA_roads_labeled_by_name; //staging and blm roads
var wblm_roads_labeled_by_location_num;

var wnonRoads;
var wnonblm_roads_labels;

var wblm_segment_labels_location_num;
var wblm_segment_labels_mile;
var wblm_segments;
var wblm_segments_by_maintenance_resp;
var wblm_segments_by_surfacecondition;
var wblm_segments_by_maintenancelevel;
var wblm_segments_own_control;
var wblm_segments_by_surfacetype;
var wblm_segments_by_closurestatus;

var wstaging_segments;
var wstaging_segments_labeled_by_mile;
var wstaging_segments_by_maint_level;
var wstaging_segments_by_surface_type;
var wstaging_segments_labeled_by_location_num;
var wstaging_segments_by_surface_width;

var wall_staging_roads;
var wstaging_roads_labeled_by_Route_Name;
var wstaging_roads_labeled_by_location_num;

var wasset_points_all_labels;
var wasset_points_all;
var wstaging_asset_points_all;
var wstaging_asset_points_all_labels;

//townships to display differently in RCA
var wtwps_RCA;


//not used//////
var wblm_road_segment_id;
var wstaging_roads_by_cost;
var wblm_roads_labeled_by_num;
var wblm_roads_labeled_by_name2;
var wblm_roads_by_class;
////////////

var wmax_fams_linear_asset;
var wmax_fams_linear_asset_labels;
var wmax_fams_major_culvert;
var wmax_fams_major_culvert_labels;
var wmax_fams_bridge;
var wmax_fams_bridge_labels;
var wmax_fams_dam;
var wmax_fams_dam_labels;
var wmax_fams_admin_site;
var wmax_fams_admin_site_labels;
var wmax_fams_rec_site;
var wmax_fams_rec_site_labels;
var wmax_fams_building;
var wmax_fams_building_labels;

//obsolete

var wfams_sites_dams;
var wfams_sites_dams_labels;
var wfams_sites_bridges;
var wfams_sites_bridges_labels;
var wfams_sites_camp;
var wfams_sites_camp_labels;
var wfams_sites_building;
var wfams_sites_building_labels;
var wfams_sites_rec;
var wfams_sites_rec_labels;
var wfams_sites_adm;
var wfams_sites_adm_labels;


var wblm_amm_type_labels;
var wblm_amm_mils_coal;
var wblm_amm_coal;
var wblm_amsc_all_id;
var wblm_scm;
var wblm_amm_osm_coal;
var wblm_amm_mils_noncoal;
var wblm_amm_epa;
var wblm_amm;
var wblm_amm_epa_uranium;
var wblm_amm_msha_coal;
var wblm_amm_name_labels;
var wblm_amm_osm_noncoal;
var wSNPLMA_sites;
var wblm_amm_msha_noncoal;
var wblm_amm_toms;
var wblm_amm_gnis;
var wblm_wat303d_l;
var wblm_amm_noncoal;
var wSNPLMA_sites_labels;
var wblm_amm_usfs;
var wblm_imparied_ws;
var wblm_scm_labels;
var wfws;
var wbor_labels;
var wblm_mon;
var wusfs;
var wstate;
var wnps;
var wbor;
var wdod;
var wlocal_labels;
var wblm_mon_labels;
var wfws_labels;
var wdod_labels;
var wbnkhd_j_labels;
var wblm_wa_labels;
var wother_labels;
var wbia;
var wblm_wa;
var wlocal;
var wblm;
var wusfs_labels;
var wblm_nca;
var wother;
var wblm_nca_labels;
var wbnkhd_j;
var wnps_labels;
var wbia_labels;
var wstaging_chealth_all;
var wstaging_chealth_all_labels;
var wsub_sma_other;
var wsub_sma_all;
var wsub_sma_coal;
var wsub_sma_ogc;
var wsub_sma_og;
var wsub_sma_none;
var wtwp_index;
var wlmu;
var wmc_plans_notices;

var wtwp_availability_blm;
var wtwp_availability_altsrc;
var wtwp_availability_flatfile;

function init_all(){

wmc_plans_notices = new WMSLAYER2('Mining Claim - Plans & Notices',HostName_PARCELS,MapService_PARCELS,'mc_plans_notices_all');
   wmc_plans_notices.tablename = dbprefix + "case";
   wmc_plans_notices.label_columns = "serial_nr_full";
   wmc_plans_notices.statelayer = true;
   wmc_plans_notices.hideOnTOC = true;
   wmc_plans_notices.label_columns = "serial_nr_full";


wlmu = new WMSLAYER2('Logical Mining Units',HostName_PARCELS,MapService_PARCELS,"logical_mining_units");
    wlmu.tablename = dbprefix + "lmu";
    wlmu.statelayer = true;
    wlmu.label_columns = "serial_nr_full";
    wlmu.hideOnTOC = true;
    

  wsma_nonusfs2 = new WMSLAYER2('Other Lands',HostName_SMA,"BLM_SURFACE_MGT_AGY","SMA_ALL");
    wsma_nonusfs2.OnTop = true;

  wcomments_landstatus = new WMSLAYER2('Land Status Report',HostName_SMA,MapService_LANDSVIEWER,"Landstatus_Report");
    wcomments_landstatus.OnTop = true;
    //wcomments_landstatus.legend = "sma_blm_wa.jpg";

  wpso = new WMSLAYER2('Lease Sale Parcels',HostName_PARCELS,"BLM_OTHER_LEASES_wms",'presale_offer');
    wpso.OnTop = true;
    wpso.Visible = true;
    wpso.tablename = dbprefix + "presale_parcels";
    wpso.legend = "og_lease_parcel.jpg";
    wpso.label_columns = "serial_num";
    wpso.featuretype = "polygon";
    wpso.DisplayExternal=true;
    wpso.DisplayInternal=true;


  wpso_labels = new WMSLAYER2('Lease Sale Parcels Labels',HostName_PARCELS,"BLM_OTHER_LEASES_wms",'presale_offer_labels_name');
    wpso_labels.OnTop = true;
    wpso_labels.MaxScale = .003;
    wpso_labels.DisplayExternal=true;
    wpso_labels.DisplayInternal=true;    

  wog_basin_labels = new WMSLAYER2('Basin Study Area Labels',HostName_PARCELS,"BLM_PARCELS_wms",'og_basins_labels');
    wog_basin_labels.OnTop = true;

  wog_basins = new WMSLAYER2('Basin Study Areas',HostName_PARCELS,"BLM_PARCELS_wms","og_basins");
    wog_basins.OnTop = true;
    wog_basins.legend = "og_density_study_areas.jpg";
    wog_basins.Metadata = "<br><a href = 'http://www.blm.gov/epca/' target = _blank>http://www.blm.gov/epca/</a>";
    wog_basins.label_columns = "name_";
    wog_basins.featuretype = "polygon";
    wog_basins.tablename = dbprefix + "og_basins";

  wog_gas_density = new WMSLAYER2('Gas Density (MMcf)',HostName_PARCELS,"BLM_PARCELS_wms","og_gas_density");
    wog_gas_density.OnTop = true;
    wog_gas_density.legend = "og_density_gas_symbology_mmcf.jpg";
    wog_gas_density.Summary = "Units are MMcf (Million Cubic Feet Per Square Mile)";
    wog_gas_density.Metadata = "<br><a href = 'http://www.blm.gov/epca/' target = _blank>http://www.blm.gov/epca/</a>";
    wog_gas_density.label_columns = "cls_brk";
    wog_gas_density.featuretype = "polygon";
    wog_gas_density.tablename = dbprefix + "og_liquid_density";

  wog_gas_density_labels = new WMSLAYER2('Gas Density Labels',HostName_PARCELS,"BLM_PARCELS_wms",'og_gas_density_labels');
    wog_gas_density_labels.OnTop = true;

  wog_liquid_density_labels = new WMSLAYER2('Oil Density Labels',HostName_PARCELS,"BLM_PARCELS_wms",'og_liquid_density_labels');
    wog_liquid_density_labels.OnTop = true;

  wog_liquid_density = new WMSLAYER2('Oil Density (Mbbls)',HostName_PARCELS,"BLM_PARCELS_wms",'og_liquid_density');
    wog_liquid_density.OnTop = true;
    wog_liquid_density.legend = "og_density_oil_symbology_mBbl.jpg";
    wog_liquid_density.Summary = "Units are Mbbls (Thousands of Barrels Per Square Mile) ";
    wog_liquid_density.Metadata = "<br><a href = 'http://www.blm.gov/epca/' target = _blank>http://www.blm.gov/epca/</a>";
    wog_liquid_density.label_columns = "cls_brk";
    wog_liquid_density.featuretype = "polygon";

  whuc = new WMSLAYER2('Hydrologic Unit Codes (HUC)',HostName_MISC,"BLM_SITES_wms",'huc,hucs_region,hucs_sub_region,hucs_basin');
    whuc.OnTop = true;
    whuc.MaxScale = .006;
    whuc.Summary = "1:2,000,000-Scale Hydrologic Unit Boundaries";
    whuc.Metadata = "<a href='http://www.nationalatlas.gov/mld/hucs00m.html' target=_blank>National Atlas</a>";
    whuc.DisplayExternal=false;
    whuc.DisplayInternal=true;    

  wcase_grants_labels = new WMSLAYER2('Grants Labels',HostName_CTALS,MapService_CTALS,"case_grants_labels");
    wcase_grants_labels.OnTop = true;
    wcase_grants_labels.MaxScale = 0.003;

  wcase_classification_labels = new WMSLAYER2('Classifications Labels',HostName_CTALS,MapService_CTALS,"case_classification_labels");
    wcase_classification_labels.OnTop = true;
    wcase_classification_labels.MaxScale = 0.003;

  wcase_withdrawal_labels = new WMSLAYER2('Withdrawals Labels',HostName_CTALS,MapService_CTALS,"case_withdrawals_labels");
    wcase_withdrawal_labels.OnTop = true;
    wcase_withdrawal_labels.MaxScale = 0.003;

  wcase_min_patents = new WMSLAYER2('Mineral Patents',HostName_CTALS,MapService_CTALS,'case_min_patents');
    wcase_min_patents.OnTop = true;
    wcase_min_patents.Visible = true;
    wcase_min_patents.MaxScale = 0.003;
    wcase_min_patents.legend = "mineral_patents.jpg";
    wcase_min_patents.label_columns="serial_nr_full";


  wcase_acquisition = new WMSLAYER2('Acquisitions',HostName_CTALS,MapService_CTALS,'case_acquisitions');
    wcase_acquisition.OnTop = true;
    wcase_acquisition.Visible = true;
    wcase_acquisition.MaxScale = 0.003;
    wcase_acquisition.legend = "acquisitions.jpg";
    wcase_acquisition.label_columns="serial_nr_full";

  wcase_designated_area_labels = new WMSLAYER2('Designated Areas Labels',HostName_CTALS,MapService_CTALS,"case_designated_area_labels");
    wcase_designated_area_labels.OnTop = true;
    wcase_designated_area_labels.MaxScale = 0.003;

  wcase_exchange = new WMSLAYER2('Exchanges',HostName_CTALS,MapService_CTALS,'case_exchange');
    wcase_exchange.OnTop = true;
    wcase_exchange.Visible = true;
    wcase_exchange.MaxScale = 0.003;
    wcase_exchange.legend = "exchanges.jpg";
    wcase_exchange.label_columns="serial_nr_full";

  wcase_grants = new WMSLAYER2('Grants',HostName_CTALS,MapService_CTALS,'case_grants');
    wcase_grants.OnTop = true;
    wcase_grants.Visible = true;
    wcase_grants.MaxScale = 0.003;
    wcase_grants.legend = "grants2.jpg";
    wcase_grants.label_columns="serial_nr_full";

 wcase_classification = new WMSLAYER2('Classifications',HostName_CTALS,MapService_CTALS,'case_classification');
    wcase_classification.OnTop = true;
    wcase_classification.MaxScale = 0.003;
    wcase_classification.legend = "classifications.jpg";
    wcase_classification.label_columns="serial_nr_full";

 wcase_withdrawal = new WMSLAYER2('Withdrawals',HostName_CTALS,MapService_CTALS,'case_withdrawal');
    wcase_withdrawal.OnTop = true;
    wcase_withdrawal.MaxScale = 0.003;
    wcase_withdrawal.legend = "withdrawals.jpg";
    wcase_withdrawal.label_columns="serial_nr_full";

  wcase_withdrawal_and_classification = new WMSLAYER2('Withdrawals & Classifications',HostName_CTALS,MapService_CTALS,'case_withdrawal_and_classification');
    wcase_withdrawal_and_classification.OnTop = true;
    wcase_withdrawal_and_classification.MaxScale = 0.003;
    wcase_withdrawal_and_classification.legend = "withdrawals_and_classifications.jpg";
    wcase_withdrawal_and_classification.label_columns="serial_nr_full";

  wcase_designated_area = new WMSLAYER2('Designated Areas',HostName_CTALS,MapService_CTALS,'case_designated_area');
    wcase_designated_area.OnTop = true;
    wcase_designated_area.Visible = true;
    wcase_designated_area.MaxScale = 0.003;
    wcase_designated_area.legend = "designated_areas.jpg";
    wcase_designated_area.label_columns="serial_nr_full";

  wcase_min_patents_labels = new WMSLAYER2('Mineral Patents Labels',HostName_CTALS,MapService_CTALS,"case_min_patents_labels");
    wcase_min_patents_labels.OnTop = true;
    wcase_min_patents_labels.MaxScale = 0.003;

  wcase_pending_exchange_labels = new WMSLAYER2('Exchanges Pending Labels',HostName_CTALS,MapService_CTALS,"case_pending_exchange_labels");
    wcase_pending_exchange_labels.OnTop = true;
    wcase_pending_exchange_labels.MaxScale = 0.003;

  wcase_exchange_labels = new WMSLAYER2('Exchanges Labels',HostName_CTALS,MapService_CTALS,"case_exchange_labels");
    wcase_exchange_labels.OnTop = true;
    wcase_exchange_labels.MaxScale = 0.003;

  wcase_corrective_labels = new WMSLAYER2('Corrective Labels',HostName_CTALS,MapService_CTALS,"case_corrective_labels");
    wcase_corrective_labels.OnTop = true;
    wcase_corrective_labels.MaxScale = 0.003;

  wcase_land_disposal_labels = new WMSLAYER2('Land Disposals Labels',HostName_CTALS,MapService_CTALS,"case_land_disposal_labels");
    wcase_land_disposal_labels.OnTop = true;
    wcase_land_disposal_labels.MaxScale = 0.003;

  wcase_public_law = new WMSLAYER2('Public Law 167',HostName_CTALS,MapService_CTALS,'case_public_law');
    wcase_public_law.OnTop = true;
    wcase_public_law.MaxScale = 0.003;
    wcase_public_law.legend = "public_law.jpg";
    wcase_public_law.label_columns="serial_nr_full";


  wcases_all = new WMSLAYER2('All Cases',HostName_CTALS,MapService_CTALS,"cases_all");
    wcases_all.OnTop = true;
    wcases_all.MaxScale = 0;
    wcases_all.label_columns = "serial_nr_full";
    wcases_all.featuretype = "polygon";
    wcases_all.tablename = dbprefix + "case";
    wcases_all.hideOnTOC = true;
    wcases_all.statelayer = true;

  wcase_pending_exchange = new WMSLAYER2('Exchanges Pending',HostName_CTALS,MapService_CTALS,'case_pending_exchange');
    wcase_pending_exchange.OnTop = true;
    wcase_pending_exchange.Visible = true;
    wcase_pending_exchange.MaxScale = 0.003;
    wcase_pending_exchange.legend = "pending_exchanges.jpg";
    wcase_pending_exchange.label_columns="serial_nr_full";


  wcase_land_sales_labels = new WMSLAYER2('Land Sales Labels',HostName_CTALS,MapService_CTALS,"land_sales_labels");
    wcase_land_sales_labels.OnTop = true;
    wcase_land_sales_labels.MaxScale = 0.003;

  wcase_public_law_labels = new WMSLAYER2('Public Law 167 Labels',HostName_CTALS,MapService_CTALS,"case_public_law_labels");
    wcase_public_law_labels.OnTop = true;
    wcase_public_law_labels.MaxScale = 0.003;

  wcase_land_sales = new WMSLAYER2('Land Sales',HostName_CTALS,MapService_CTALS,'land_sales');
    wcase_land_sales.OnTop = true;
    wcase_land_sales.Visible = true;
    wcase_land_sales.MaxScale = 0.003;
    wcase_land_sales.legend = "withdrawals_and_classifications.jpg";
    wcase_land_sales.label_columns="serial_nr_full";


  wcase_corrective = new WMSLAYER2('Corrective',HostName_CTALS,MapService_CTALS,'case_corrective');
    wcase_corrective.OnTop = true;
    wcase_corrective.Visible = true;
    wcase_corrective.MaxScale = 0.003;
    wcase_corrective.legend = "corrective.jpg";
    wcase_corrective.label_columns="serial_nr_full";


  wcase_acquisition_labels = new WMSLAYER2('Acquisitions Labels',HostName_CTALS,MapService_CTALS,"case_acquisition_labels");
    wcase_acquisition_labels.OnTop = true;
    wcase_acquisition_labels.MaxScale = 0.003;

  wcase_land_disposal = new WMSLAYER2('Land Disposals',HostName_CTALS,MapService_CTALS,'case_land_disposal');
    wcase_land_disposal.OnTop = true;
    wcase_land_disposal.Visible = true;
    wcase_land_disposal.MaxScale = 0.003;
    wcase_land_disposal.legend = "land_disposals.jpg";
    wcase_land_disposal.label_columns="serial_nr_full";


  wsma_forest_labels2 = new WMSLAYER2('USFS Forest Labels',HostName_SMA,MapService_LANDSVIEWER,"AdministrativeForest_labels");
    wsma_forest_labels2.OnTop = true;
    wsma_forest_labels2.Visible = true;
    wsma_forest_labels2.MaxScale = 0.02;

  wsma_forests2 = new WMSLAYER2('Administrative Forest Boundaries',HostName_SMA,MapService_LANDSVIEWER,"AdministrativeForest");
    wsma_forests2.OnTop = true;
    wsma_forests2.Visible = true;
    wsma_forests2.label_columns = "forestname";
    wsma_forests2.featuretype = "polygon";
    wsma_forests2.tablename = dbprefix + "sma_usfs";
    wsma_forests2.Metadata = "<a href = '../GeoComm/metadata/sma/fedland_metadata.htm' target=_blank>BLM Metadata</a>";

  wusfs2 = new WMSLAYER2('USFS Lands',HostName_SMA,MapService_LANDSVIEWER,"SMA_USFS");
    wusfs2.OnTop = true;
    wusfs2.legend = "sma_usfs.jpg";
  

  wMMD_closed = new WMSLAYER2('MMD - Closed',HostName_CTALS,MapService_OTHER_LEASES,'mmd_closed');
    wMMD_closed.OnTop = true;
    wMMD_closed.legend = "mineral_patents.jpg";
    wMMD_closed.label_columns="serial_nr_full";

  wULP_closed = new WMSLAYER2('Land Use Permits - Closed',HostName_CTALS,MapService_OTHER_LEASES,'ulp_closed');
    wULP_closed.OnTop = true;
    wULP_closed.legend = "exchanges.jpg";
    wULP_closed.label_columns="serial_nr_full";
   

  wROW_all = new WMSLAYER2('Rights of Way - All',HostName_CTALS,MapService_OTHER_LEASES,"row_all");
    wROW_all.OnTop = true;
    wROW_all.MaxScale = 0;
    wROW_all.label_columns = "serial_nr_full";
    wROW_all.featuretype = "polygon";
    wROW_all.tablename = dbprefix + "row";
    wROW_all.hideOnTOC = true;
    wROW_all.statelayer = true;
     

  wMMD_auth_labels = new WMSLAYER2('MMD Labels',HostName_CTALS,MapService_OTHER_LEASES,'mmd_auth_labels');
    wMMD_auth_labels.OnTop = true;
    wMMD_auth_labels.MaxScale = 0.003;

  wrow_general_labels = new WMSLAYER2('General Labels',HostName_CTALS,MapService_OTHER_LEASES,"row_general_labels");
    wrow_general_labels.OnTop = true;
    wrow_general_labels.MaxScale = 0.003;

  wMMD_all = new WMSLAYER2('MMD - All',HostName_CTALS,MapService_OTHER_LEASES,"mmd_all");
    wMMD_all.OnTop = true;
    wMMD_all.MaxScale = 0;
    wMMD_all.label_columns = "serial_nr_full";
    wMMD_all.featuretype = "polygon";
    wMMD_all.tablename = dbprefix + "mmd";
    wMMD_all.hideOnTOC = true;
    wMMD_all.statelayer = true;

  wrow_general = new WMSLAYER2('General',HostName_CTALS,MapService_OTHER_LEASES,'row_general');
    wrow_general.Visible = true;
    wrow_general.OnTop = true;
    wrow_general.MaxScale = 0.013;
    wrow_general.legend = "row_general.gif";
    wrow_general.label_columns="serial_nr_full";

  wROW_auth = new WMSLAYER2('Rights of Way - Authorized',HostName_CTALS,MapService_OTHER_LEASES,'row_auth');
    wROW_auth.OnTop = true;
    wROW_auth.MaxScale = 0.013;
    wROW_auth.legend = "row_auth.jpg";
     wROW_auth.label_columns="serial_nr_full";


  wsolar_closed_labels = new WMSLAYER2('Solar Energy - Closed Labels',HostName_PARCELS,MapService_OTHER_LEASES,'solar_energy_closed_labels');
    wsolar_closed_labels.OnTop = true;
    wsolar_closed_labels.MaxScale = 0.003;

  wwind_site_testing_labels = new WMSLAYER2('Site Testing Labels',HostName_PARCELS,MapService_OTHER_LEASES,'wind_site_testing_labels');
    wwind_site_testing_labels.OnTop = true;
    wwind_site_testing_labels.MaxScale = 0.003;

  wwind_dev_fac_labels = new WMSLAYER2('Development Facilities Labels',HostName_PARCELS,MapService_OTHER_LEASES,'wind_dev_fac_labels');
    wwind_dev_fac_labels.OnTop = true;
    wwind_dev_fac_labels.MaxScale = 0.003;

  wrow_closed_labels = new WMSLAYER2('ALL Closed Labels',HostName_CTALS,MapService_OTHER_LEASES,"row_closed_labels");
    wrow_closed_labels.OnTop = true;
    wrow_closed_labels.MaxScale = 0.003;

  wROW_closed_labels = new WMSLAYER2('Rights of Way - Closed Labels',HostName_CTALS,MapService_OTHER_LEASES,'row_closed_labels');
    wROW_closed_labels.OnTop = true;
    wROW_closed_labels.MaxScale = 0.003;

  wrow_railroads = new WMSLAYER2('Railroads',HostName_CTALS,MapService_OTHER_LEASES,'row_railroads');
    wrow_railroads.Visible = true;
    wrow_railroads.OnTop = true;
    wrow_railroads.MaxScale = 0.013;
    wrow_railroads.legend = "row_railroads.gif";
    wrow_railroads.label_columns="serial_nr_full";

  wrow_pipelines = new WMSLAYER2('Pipelines',HostName_CTALS,MapService_OTHER_LEASES,'row_pipelines');
    wrow_pipelines.Visible = true;
    wrow_pipelines.OnTop = true;
    wrow_pipelines.MaxScale = 0.013;
    wrow_pipelines.legend = "row_pipelines.gif";
    wrow_pipelines.label_columns="serial_nr_full";

  wrow_roads_labels = new WMSLAYER2('Roads Labels',HostName_CTALS,MapService_OTHER_LEASES,"row_roads_labels");
    wrow_roads_labels.OnTop = true;
    wrow_roads_labels.MaxScale = 0.003;

  wrow_fiber_optics_labels = new WMSLAYER2('Fiber Optics Labels',HostName_CTALS,MapService_OTHER_LEASES,"row_fiber_optics_labels");
    wrow_fiber_optics_labels.OnTop = true;
    wrow_fiber_optics_labels.MaxScale = 0.003;

  wrow_railroads_labels = new WMSLAYER2('Railroads Labels',HostName_CTALS,MapService_OTHER_LEASES,"row_railroads_labels");
    wrow_railroads_labels.OnTop = true;
    wrow_railroads_labels.MaxScale = 0.003;

  wULP_auth_labels = new WMSLAYER2('Land Use Permits Labels',HostName_CTALS,MapService_OTHER_LEASES,'ulp_auth_labels');
    wULP_auth_labels.OnTop = true;
    wULP_auth_labels.MaxScale = 0.003;

  wrow_water = new WMSLAYER2('Water Facilities',HostName_CTALS,MapService_OTHER_LEASES,'row_water');
    wrow_water.Visible = true;
    wrow_water.OnTop = true;
    wrow_water.MaxScale = 0.013;
    wrow_water.legend = "row_water.gif";
    wrow_water.label_columns="serial_nr_full";

  wwind_closed_labels = new WMSLAYER2('Wind Energy - Closed Labels',HostName_PARCELS,MapService_OTHER_LEASES,'wind_energy_closed_labels');
    wwind_closed_labels.OnTop = true;
    wwind_closed_labels.MaxScale = 0.003;

  wrow_roads = new WMSLAYER2('Roads',HostName_CTALS,MapService_OTHER_LEASES,'row_roads');
    wrow_roads.Visible = true;
    wrow_roads.OnTop = true;
    wrow_roads.MaxScale = 0.013;
    wrow_roads.legend = "row_roads.gif";
    wrow_roads.label_columns="serial_nr_full";

  wwind_closed = new WMSLAYER2('Wind Energy - Closed',HostName_PARCELS,MapService_OTHER_LEASES,'wind_energy_closed');
    wwind_closed.OnTop = true;
    wwind_closed.legend = "wind_energy_closed.gif";
    

  wWind_Potential_LR = new WMSLAYER2('NREL Wind Potential',HostName_PARCELS,MapService_PARCELS,'wind_potential_low_res,wind_potential_high_res');
     wWind_Potential_LR.Visible = false;
     wWind_Potential_LR.OnTop = true;
     wWind_Potential_LR.legend = "windpower_wpc.jpg";
     wWind_Potential_LR.Summary = "high resolution data not available for all states";


  wWind_Potential_labels = new WMSLAYER2('Wind Potential (WPC) - Labels',HostName_PARCELS,MapService_OTHER_LEASES,'');
    wWind_Potential_labels.Visible = false;
    wWind_Potential_labels.OnTop = true;
    wWind_Potential_labels.MaxScale = 0.003;


  wDOD_stips = new WMSLAYER2('DoD Airspace Consultation Areas',HostName_PARCELS,MapService_OTHER_LEASES,'DOD_Stipulations');
    wDOD_stips.OnTop = true;
    wDOD_stips.Visible = true;
    wDOD_stips.legend = "DoDStips.jpg";
 
   wrow_pipelines_labels = new WMSLAYER2('Pipelines Labels',HostName_CTALS,MapService_OTHER_LEASES,"row_pipelines_labels");
    wrow_pipelines_labels.OnTop = true;
    wrow_pipelines_labels.MaxScale = 0.003;

  wsolar_dev_fac_pend = new WMSLAYER2('Development Facilities Pending',HostName_PARCELS,MapService_OTHER_LEASES,'solar_dev_fac_pend');
    wsolar_dev_fac_pend.Visible = true;
    wsolar_dev_fac_pend.OnTop = true;
    wsolar_dev_fac_pend.legend = "solar_dev_pend.gif";
    wsolar_dev_fac_pend.label_columns="serial_nr_full";

  wsolar_dev_fac_auth = new WMSLAYER2('Development Facilities Authorized',HostName_PARCELS,MapService_OTHER_LEASES,'solar_dev_fac_auth');
    wsolar_dev_fac_auth.Visible = true;
    wsolar_dev_fac_auth.OnTop = true;
    wsolar_dev_fac_auth.legend = "solar_energy_dev_auth.gif";
    wsolar_dev_fac_auth.label_columns="serial_nr_full";

    wsolar_study = new WMSLAYER2('Solar Energy Zones',HostName_PARCELS,MapService_PARCELS,'solar_en_study_areas');
     wsolar_study.Visible = true;
     wsolar_study.OnTop = true;
     wsolar_study.legend = "solar_study_areas.jpg";
     wsolar_study.Metadata = "<a href = 'http://solareis.anl.gov/eis/maps/index.cfm' target = _blank>Source</a>";
    wsolar_study.DisplayExternal=true;
    wsolar_study.DisplayInternal=true;

    wsolar_study_labels = new WMSLAYER2('Solar Energy Zones - Labels',HostName_PARCELS,MapService_PARCELS,'solar_en_study_areas_labels');
     wsolar_study_labels.Visible = false;
     wsolar_study_labels.OnTop = true;
     wsolar_study_labels.MaxScale = 0.003;
    wsolar_study_labels.DisplayExternal=true;
    wsolar_study_labels.DisplayInternal=true;     
     

     wsolar_PV_SR = new WMSLAYER2('NREL Photovoltaic Resource Potential',HostName_PARCELS,MapService_PARCELS,'PV_solar_potential_low_res,PV_solar_potential_high_res');
       wsolar_PV_SR.Visible = false;
       wsolar_PV_SR.OnTop = true;
       wsolar_PV_SR.legend = "CSPPV_solar_potential.jpg";
       //wsolar_PV_SR.MaxScale = 0.011;

    wsolar_CSP_SR = new WMSLAYER2('NREL Concentrating Solar Power R.P.',HostName_PARCELS,MapService_PARCELS,'CSP_solar_potential');
       wsolar_CSP_SR.Visible = false;
       wsolar_CSP_SR.OnTop = true;
       wsolar_CSP_SR.legend = "CSPPV_solar_potential.jpg";
       wsolar_CSP_SR.MaxScale = 0.011;
       wsolar_CSP_SR.Summary = "low resolution data not available";


  wrow_power_labels = new WMSLAYER2('Power Labels',HostName_CTALS,MapService_OTHER_LEASES,"row_power_labels");
   wrow_power_labels.OnTop = true;
   wrow_power_labels.MaxScale = 0.003;

  wrow_closed = new WMSLAYER2('ALL Closed',HostName_CTALS,MapService_OTHER_LEASES,'row_closed');
    wrow_closed.OnTop = true;
    wrow_closed.MaxScale = 0.003;
    wrow_closed.legend = "row_closed.jpg";
    wrow_closed.label_columns="serial_nr_full";

  wrow_other_labels = new WMSLAYER2('Other Labels',HostName_CTALS,MapService_OTHER_LEASES,"row_other_labels");
    wrow_other_labels.OnTop = true;
    wrow_other_labels.MaxScale = 0.003;

  wULP_all = new WMSLAYER2('Land Use Permits - All',HostName_CTALS,MapService_OTHER_LEASES,"ulp_all");
    wULP_all.OnTop = true;
    wULP_all.MaxScale = 0;
    wULP_all.label_columns = "serial_nr_full";
    wULP_all.featuretype = "polygon";
    wULP_all.tablename = dbprefix + "ulp";
    wULP_all.hideOnTOC = true;
    wULP_all.statelayer = true;

  wROW_closed = new WMSLAYER2('Rights of Way - Closed',HostName_CTALS,MapService_OTHER_LEASES,'row_closed');
    wROW_closed.OnTop = true;
    wROW_closed.MaxScale = 0.003;
    wROW_closed.legend = "row_closed.jpg";
    wROW_closed.label_columns="serial_nr_full";

wdrow_all = new WMSLAYER2('DROW All',HostName_DROW,MapService_DROW,'drow_all,drow_all_zoom');
    wdrow_all.Visible = true;
    wdrow_all.OnTop = true;
    //wdrow_all.MaxScale = 0.003;
    wdrow_all.legend = "drow_all.jpg";

 wdrow_all_serial_num = new WMSLAYER2('Serial Number',HostName_DROW,MapService_DROW,'drow_all_serial_num');
   wdrow_all_serial_num.Visible = false;
   wdrow_all_serial_num.OnTop = true;
   wdrow_all_serial_num.MaxScale = 0.003;
 
wdrow_all_row_desc = new WMSLAYER2('ROW Description',HostName_DROW,MapService_DROW,'drow_all_row_desc');
   wdrow_all_row_desc.Visible = false;
   wdrow_all_row_desc.OnTop = true;
   wdrow_all_row_desc.MaxScale = 0.003;
 
wdrow_all_row_type = new WMSLAYER2('ROW Type',HostName_DROW,MapService_DROW,'drow_all_row_type');
   wdrow_all_row_type.Visible = false;
   wdrow_all_row_type.OnTop = true;
   wdrow_all_row_type.MaxScale = 0.003;
 
wdrow_all_case_type = new WMSLAYER2('Case Type',HostName_DROW,MapService_DROW,'drow_all_case_type');
   wdrow_all_case_type.Visible = false;
   wdrow_all_case_type.OnTop = true;
   wdrow_all_case_type.MaxScale = 0.003;

wdrow_all_cust_name = new WMSLAYER2('Customer Name',HostName_DROW,MapService_DROW,'drow_all_cust_name');
   wdrow_all_cust_name.Visible = false;
   wdrow_all_cust_name.OnTop = true;
   wdrow_all_cust_name.MaxScale = 0.003;

 wdrow_WY1 = new WMSLAYER2('WY1',HostName_DROW,MapService_DROW,'drow_WY1,drow_WY1_zoom');
    wdrow_WY1.Visible = false;
    wdrow_WY1.OnTop = true;
    //wdrow_WY1.MaxScale = 0.003;
    wdrow_WY1.legend = "drow_WY1.jpg";

 wdrow_WY1_labels = new WMSLAYER2('WY1 Labels',HostName_DROW,MapService_DROW,'drow_WY1_labels');
    wdrow_WY1_labels.Visible = false;
    wdrow_WY1_labels.OnTop = true;
    wdrow_WY1_labels.MaxScale = 0.003;
 
  wdrow_WY2 = new WMSLAYER2('WY2',HostName_DROW,MapService_DROW,'drow_WY2,drow_WY2_zoom');
    wdrow_WY2.Visible = false;
    wdrow_WY2.OnTop = true;
    //wdrow_WY2.MaxScale = 0.003;
    wdrow_WY2.legend = "drow_WY2.jpg";

 wdrow_WY2_labels = new WMSLAYER2('WY2 Labels',HostName_DROW,MapService_DROW,'drow_WY2_labels');
    wdrow_WY2_labels.Visible = false;
    wdrow_WY2_labels.OnTop = true;
    wdrow_WY2_labels.MaxScale = 0.003;

  wdrow_NM1 = new WMSLAYER2('NM1 (Lines)',HostName_DROW,MapService_DROW,'drow_NM1,drow_NM1_zoom');
   wdrow_NM1.Visible = false;
   wdrow_NM1.OnTop = true;
 //wdrow_NM1.MaxScale = 0.003;
   wdrow_NM1.legend = "drow_NM1.jpg";

 wdrow_NM1_labels = new WMSLAYER2('NM1 (Lines) Labels',HostName_DROW,MapService_DROW,'drow_NM1_labels');
   wdrow_NM1_labels.Visible = false;
   wdrow_NM1_labels.OnTop = true;
   wdrow_NM1_labels.MaxScale = 0.003;
 
  wdrow_NM2 = new WMSLAYER2('NM2 (Points)',HostName_DROW,MapService_DROW,'drow_NM2');
    wdrow_NM2.Visible = false;
    wdrow_NM2.OnTop = true;
  //wdrow_NM2.MaxScale = 0.003;
   wdrow_NM2.legend = "drow_NM2.jpg";

  wdrow_NM2_labels = new WMSLAYER2('NM2 (Points) Labels',HostName_DROW,MapService_DROW,'drow_NM2_labels');
     wdrow_NM2_labels.Visible = false;
     wdrow_NM2_labels.OnTop = true;
     wdrow_NM2_labels.MaxScale = 0.003;

   wdrow_NM3 = new WMSLAYER2('NM3 (Polygons)',HostName_DROW,MapService_DROW,'drow_NM3');
     wdrow_NM3.Visible = false;
     wdrow_NM3.OnTop = true;
   //wdrow_NM3.MaxScale = 0.003;
   wdrow_NM3.legend = "drow_NM3.jpg";

  wdrow_NM3_labels = new WMSLAYER2('NM3 (Polygons) Labels',HostName_DROW,MapService_DROW,'drow_NM3_labels');
      wdrow_NM3_labels.Visible = false;
      wdrow_NM3_labels.OnTop = true;
      wdrow_NM3_labels.MaxScale = 0.003;

  wdrow_JOB_AOI = new WMSLAYER2('Jobs AOI',HostName_DROW,MapService_DROW,'JOB_AOI');
      wdrow_JOB_AOI.Visible = false;
      wdrow_JOB_AOI.OnTop = true;
    //wdrow_JOB_AOI.MaxScale = 0.003;
      wdrow_JOB_AOI.legend = "job_aoi.jpg";


  wrow_comm_sites = new WMSLAYER2('Communication Sites',HostName_CTALS,MapService_OTHER_LEASES,'row_comm_sites');
    wrow_comm_sites.Visible = true;
    wrow_comm_sites.OnTop = true;
    wrow_comm_sites.MaxScale = 0.013;
    wrow_comm_sites.legend = "row_comm_site_auth.gif";
    wrow_comm_sites.label_columns="serial_nr_full";
    


  wULP_auth = new WMSLAYER2('Land Use Permits',HostName_CTALS,MapService_OTHER_LEASES,'ulp_auth');
    wULP_auth.Visible = true;
    wULP_auth.OnTop = true;
    wULP_auth.legend = "sm_lease_auth.jpg";
    wULP_auth.label_columns="serial_nr_full";


  wsolar_closed = new WMSLAYER2('Solar Energy - Closed',HostName_PARCELS,MapService_OTHER_LEASES,'solar_energy_closed');
    wsolar_closed.OnTop = true;
    wsolar_closed.legend = "solar_energy_closed.gif";

  wMMD_closed_labels = new WMSLAYER2('MMD - Closed Labels',HostName_CTALS,MapService_OTHER_LEASES,'mmd_closed_labels');
    wMMD_closed_labels.OnTop = true;
    wMMD_closed_labels.MaxScale = 0.003;

  wrow_power = new WMSLAYER2('Power',HostName_CTALS,MapService_OTHER_LEASES,'row_power');
    wrow_power.Visible = true;
    wrow_power.OnTop = true;
    wrow_power.MaxScale = 0.013;
    wrow_power.legend = "row_power.gif";
    wrow_power.label_columns="serial_nr_full";


  wwind_site_test_pend = new WMSLAYER2('Site Testing Pending',HostName_PARCELS,MapService_OTHER_LEASES,'wind_site_testing_pend');
    wwind_site_test_pend.Visible = true;
    wwind_site_test_pend.OnTop = true;
    wwind_site_test_pend.legend = "wind_site_testing_pend.jpg";
    wwind_site_test_pend.label_columns="serial_nr_full";

  wwind_site_test_auth = new WMSLAYER2('Site Testing Authorized',HostName_PARCELS,MapService_OTHER_LEASES,'wind_site_testing_auth');
    wwind_site_test_auth.Visible = true;
    wwind_site_test_auth.OnTop = true;
    wwind_site_test_auth.legend = "wind_site_testing_auth.jpg";
    wwind_site_test_auth.label_columns="serial_nr_full";

  wwind_dev_fac_pend = new WMSLAYER2('Development Facilities Pending',HostName_PARCELS,MapService_OTHER_LEASES,'wind_dev_fac_pend');
    wwind_dev_fac_pend.Visible = true;
    wwind_dev_fac_pend.OnTop = true;
    wwind_dev_fac_pend.legend = "wind_dev_fac_pend.jpg";
    wwind_dev_fac_pend.label_columns="serial_nr_full";

  wwind_dev_fac_auth = new WMSLAYER2('Development Facilities Authorized',HostName_PARCELS,MapService_OTHER_LEASES,'wind_dev_fac_auth');
    wwind_dev_fac_auth.Visible = true;
    wwind_dev_fac_auth.OnTop = true;
    wwind_dev_fac_auth.legend = "wind_dev_fac_auth.jpg";
    wwind_dev_fac_auth.label_columns="serial_nr_full";

  wDoD_SUA = new WMSLAYER2('DoD - Special Use Airspace',HostName_PARCELS,MapService_OTHER_LEASES,'DoD_SUA');
    wDoD_SUA.Visible = false;
    wDoD_SUA.OnTop = true;

  wDoD_SUA_labels = new WMSLAYER2('DoD - SUA Labels',HostName_PARCELS,MapService_OTHER_LEASES,'DoD_SUA_labels');
    wDoD_SUA_labels.OnTop = true;
    wDoD_SUA_labels.MaxScale = 0.003;

  wDoD_MTR = new WMSLAYER2('DoD - Military Training Routes',HostName_PARCELS,MapService_OTHER_LEASES,'DoD_MTR');
    wDoD_MTR.Visible = false;
    wDoD_MTR.OnTop = true;

 wDoD_MTR_labels = new WMSLAYER2('DoD - MTR Labels',HostName_PARCELS,MapService_OTHER_LEASES,'DoD_MTR_labels');
    wDoD_MTR_labels.OnTop = true;
    wDoD_MTR_labels.MaxScale = 0.003;

  wrow_comm_sites_lables = new WMSLAYER2('Communication Sites Labels',HostName_CTALS,MapService_OTHER_LEASES,"row_comm_sites_labels");
    wrow_comm_sites_lables.OnTop = true;
    wrow_comm_sites_lables.MaxScale = 0.003;

  wrow_telephone_labels = new WMSLAYER2('Telephone & Telegraph Labels',HostName_CTALS,MapService_OTHER_LEASES,"row_telephone_labels");
    wrow_telephone_labels.OnTop = true;
    wrow_telephone_labels.MaxScale = 0.003;

  wrow_other = new WMSLAYER2('Other',HostName_CTALS,MapService_OTHER_LEASES,'row_other');
    wrow_other.Visible = true;
    wrow_other.OnTop = true;
    wrow_other.MaxScale = 0.013;
    wrow_other.legend = "row_other.gif";
    wrow_other.label_columns="serial_nr_full";

  wrow_water_labels = new WMSLAYER2('Water Facilities Labels',HostName_CTALS,MapService_OTHER_LEASES,"row_water_labels");
    wrow_water_labels.OnTop = true;
    wrow_water_labels.MaxScale = 0.003;

  wMMD_auth = new WMSLAYER2('MMD',HostName_CTALS,MapService_OTHER_LEASES,'mmd_auth');
    wMMD_auth.Visible = true;
    wMMD_auth.OnTop = true;
    wMMD_auth.legend = "mmd_auth.jpg";
    wMMD_auth.label_columns="serial_nr_full";

  wrow_fiber_optics = new WMSLAYER2('Fiber Optics',HostName_CTALS,MapService_OTHER_LEASES,'row_fiber_optics');
    wrow_fiber_optics.Visible = true;
    wrow_fiber_optics.OnTop = true;
    wrow_fiber_optics.MaxScale = 0.013;
    wrow_fiber_optics.legend = "fiber_optics.jpg";
    wrow_fiber_optics.label_columns="serial_nr_full";


  wrow_telephone = new WMSLAYER2('Telephone & Telegraph',HostName_CTALS,MapService_OTHER_LEASES,'row_telephone');
    wrow_telephone.Visible = true;
    wrow_telephone.OnTop = true;
    wrow_telephone.MaxScale = 0.013;
    wrow_telephone.legend = "row_telephone_telegraph.gif";
    wrow_telephone.label_columns="serial_nr_full";

  wROW_auth_labels = new WMSLAYER2('Rights of Way - Authorized Labels',HostName_CTALS,MapService_OTHER_LEASES,'row_auth_labels');
    wROW_auth_labels.MaxScale = 0.003;
    wROW_auth_labels.MaxScale = 0.003;

  wsolar_dev_fac_labels = new WMSLAYER2('Development Facilities Labels',HostName_PARCELS,MapService_OTHER_LEASES,'solar_dev_labels');
    wsolar_dev_fac_labels.OnTop = true;
    wsolar_dev_fac_labels.MaxScale = 0.003;


  wULP_closed_labels = new WMSLAYER2('Land Use Permits - Closed Labels',HostName_CTALS,MapService_OTHER_LEASES,'ulp_closed_labels');
    wULP_closed_labels.OnTop = true;
    wULP_closed_labels.MaxScale = 0.003;

  wVisual_Resource_Management = new WMSLAYER2('Visual Resource Management',HostName_PARCELS,MapService_PARCELS,"Visual_Resource_Management");
    wVisual_Resource_Management.Visible = true;
    wVisual_Resource_Management.OnTop = true;
    wVisual_Resource_Management.MaxScale = 0.005;
    wVisual_Resource_Management.legend = "Visual_Resource_Management.jpg";
    
  wother_sm_auth = new WMSLAYER2('Solid Minerals',HostName_PARCELS,MapService_PARCELS,'solidmineral_leases_auth');
    wother_sm_auth.Visible = true;
    wother_sm_auth.OnTop = true;
    wother_sm_auth.legend = "sm_auth.jpg";
    wother_sm_auth.label_columns = "serial_nr_full";

  wgt_agm_all = new WMSLAYER2('Geothermal Agreements - All',HostName_PARCELS,MapService_PARCELS,"gt_agreement_all");
    wgt_agm_all.OnTop = true;
    wgt_agm_all.MaxScale = 0;
    wgt_agm_all.label_columns = "serial_nr_full";
    wgt_agm_all.featuretype = "polygon";
    wgt_agm_all.tablename = dbprefix + "gt_agreement";
    wgt_agm_all.hideOnTOC = true;
    wgt_agm_all.statelayer = true;

  wmc_labels_name_c = new WMSLAYER2('Closed Mining Claims Labels',HostName_PARCELS,MapService_PARCELS,'mc_labels_name_c');
    wmc_labels_name_c.OnTop = true;
    wmc_labels_name_c.MaxScale = 0.0017;

  wgt_agm_labels = new WMSLAYER2('GT Agreements Labels',HostName_PARCELS,MapService_PARCELS,'gt_agm_labels_a');
    wgt_agm_labels.OnTop = true;
    wgt_agm_labels.MaxScale = 0.003;

  wgt_agm_unita_labels = new WMSLAYER2('GT Unit Agreements Labels',HostName_PARCELS,MapService_PARCELS,'gt_agm_unita_labels');
    wgt_agm_unita_labels.OnTop = true;
    wgt_agm_unita_labels.MaxScale = 0.003;

  wgt_agm_partarea_labels = new WMSLAYER2('GT Participating Area Agreements Labels',HostName_PARCELS,MapService_PARCELS,'gt_agm_partarea_labels');
    wgt_agm_partarea_labels.OnTop = true;
    wgt_agm_partarea_labels.MaxScale = 0.003;

  wgt_agm_communa_labels = new WMSLAYER2('GT Communitization Agreements Labels',HostName_PARCELS,MapService_PARCELS,'gt_agm_communa_labels');
    wgt_agm_communa_labels.OnTop = true;
    wgt_agm_communa_labels.MaxScale = 0.003;

  wgt_agm_othera_labels = new WMSLAYER2('GT Other Agreements Labels',HostName_PARCELS,MapService_PARCELS,'gt_agm_othera_labels');
    wgt_agm_othera_labels.OnTop = true;
    wgt_agm_othera_labels.MaxScale = 0.003;

  wgt_lse_pro_labels = new WMSLAYER2('GT Leases Producing Labels',HostName_PARCELS,MapService_PARCELS,'gt_lse_pro_labels');
    wgt_lse_pro_labels.OnTop = true;
    wgt_lse_pro_labels.MaxScale = .003;

  wgt_lse_nonpro_labels = new WMSLAYER2('GT Leases Non-Producing Labels',HostName_PARCELS,MapService_PARCELS,'gt_lse_nonpro_labels');
    wgt_lse_nonpro_labels.OnTop = true;
    wgt_lse_nonpro_labels.MaxScale = .003;

  wgt_lse_nom_labels = new WMSLAYER2('GT Nominations Labels',HostName_PARCELS,MapService_PARCELS,'gt_lse_nom_labels');
    wgt_lse_nom_labels.OnTop = true;
    wgt_lse_nom_labels.MaxScale = .003;

    wgt_lse_nom_clsd_labels = new WMSLAYER2('GT Nominations Closed Labels',HostName_PARCELS,MapService_PARCELS,'gt_lse_nom_clsd_labels');
    wgt_lse_nom_clsd_labels.OnTop = true;
    wgt_lse_nom_clsd_labels.MaxScale = .003;

  wlmu_labels_auth = new WMSLAYER2('Logical Mining Units Labels',HostName_PARCELS,MapService_PARCELS,'logical_mining_units_labels_auth');
    wlmu_labels_auth.OnTop = true;
    wlmu_labels_auth.MaxScale = 0.003;

  wgt_kla_labels = new WMSLAYER2('GT Known Leasing Areas Labels',HostName_PARCELS,MapService_PARCELS,'gt_known_leasing_areas_labels');
    wgt_kla_labels.OnTop = true;
    wgt_kla_labels.MaxScale = 0.003;

    wgt_kla_labels_clsd = new WMSLAYER2('GT Known Leasing Areas Closed Labels',HostName_PARCELS,MapService_PARCELS,'gt_known_leasing_areas_clsd_labels');
    wgt_kla_labels_clsd.OnTop = true;
    wgt_kla_labels_clsd.MaxScale = 0.003;

  wstip_labels = new WMSLAYER2('Stipulation Labels',HostName_PARCELS,MapService_PARCELS,'og_stip_labels,og_stip_labels_summary');
    wstip_labels.OnTop = true;
    wstip_labels.MaxScale = .003;

  wsm_kla_closed = new WMSLAYER2('Known Leasing Areas - Closed',HostName_PARCELS,MapService_PARCELS,'sm_known_leasing_areas_closed');
    wsm_kla_closed.OnTop = true;
    wsm_kla_closed.legend = "sm_kla_closed.jpg";
    wsm_kla_closed.label_columns="serial_nr_full";

  woil_shale_closed_labels = new WMSLAYER2('Oil Shale - Closed Labels',HostName_PARCELS,MapService_PARCELS,'oil_shale_closed_labels');
    woil_shale_closed_labels.OnTop = true;
    woil_shale_closed_labels.MaxScale = 0.003;

  wmc_plans_notice_auth_labels = new WMSLAYER2('Plans/Notices Labels',HostName_PARCELS,MapService_PARCELS,'mc_plans_notices_auth_labels');
    wmc_plans_notice_auth_labels.OnTop = true;
    wmc_plans_notice_auth_labels.MaxScale = .003;

  wog_agm_communa = new WMSLAYER2('Communitization Agreements',HostName_PARCELS,MapService_PARCELS,'og_agm_communa');
    wog_agm_communa.OnTop = true;
    wog_agm_communa.legend = "og_agm_comm.jpg";  

  wgt_lse_nonpro = new WMSLAYER2('GT Leases Non-Producing',HostName_PARCELS,MapService_PARCELS,'gt_lse_nonpro');
    wgt_lse_nonpro.Visible = true;
    wgt_lse_nonpro.OnTop = true;
    wgt_lse_nonpro.legend = "gt_lse_nonpro.jpg";
    
  wcoal_lse_labels_auth = new WMSLAYER2('Coal Lease Labels',HostName_PARCELS,MapService_PARCELS,'coal_lease_labels_auth');
    wcoal_lse_labels_auth.OnTop = true;
    wcoal_lse_labels_auth.MaxScale = 0.003;

  wcoal_lse_labels_perml = new WMSLAYER2('Coal Permits/Licenses Labels',HostName_PARCELS,MapService_PARCELS,'coal_lease_perml_labels');
    wcoal_lse_labels_perml.OnTop = true;
    wcoal_lse_labels_perml.MaxScale = 0.003;

  wcoal_lse_labels_other = new WMSLAYER2('Coal Other Labels',HostName_PARCELS,MapService_PARCELS,'coal_lease_other_labels');
   wcoal_lse_labels_other.OnTop = true;
   wcoal_lse_labels_other.MaxScale = 0.003;

  wmc_labels_serial = new WMSLAYER2('Labels - Serial Numbers',HostName_PARCELS,MapService_PARCELS,'mc_labels_serial');
    wmc_labels_serial.OnTop = true;
    wmc_labels_serial.MaxScale = 0.0017;

  wEndangered_Species_Act = new WMSLAYER2('Endangered Species Act',HostName_PARCELS,MapService_PARCELS,"Endangered_Species_Act");
    wEndangered_Species_Act.Visible = true;
    wEndangered_Species_Act.OnTop = true;
    wEndangered_Species_Act.MaxScale = 0.005;
    wEndangered_Species_Act.legend = "Endangered_Species_Act.jpg";
    
  wNo_Lease = new WMSLAYER2('No Lease',HostName_PARCELS,MapService_PARCELS,"No_Lease");
    wNo_Lease.Visible = true;
    wNo_Lease.OnTop = true;
    wNo_Lease.MaxScale = 0.005;
    wNo_Lease.legend = "No_Lease.jpg";    

  woil_shale_auth = new WMSLAYER2('Oil Shale',HostName_PARCELS,MapService_PARCELS,'oil_shale_auth');
    woil_shale_auth.Visible = true;
    woil_shale_auth.OnTop = true;
    woil_shale_auth.legend = "sm_auth.jpg";
    woil_shale_auth.label_columns="serial_nr_full";

   woil_shale_potent_areas = new WMSLAYER2('Oil Shale Prospective Areas',HostName_PARCELS,MapService_PARCELS,'oil_shale_potential');
     woil_shale_potent_areas.Visible = false;
     woil_shale_potent_areas.OnTop = true;
     woil_shale_potent_areas.legend = "oil_shale_potential.jpg";
     woil_shale_potent_areas.label_columns="serial_nr_full";


  wcoal_lse_closed = new WMSLAYER2('Coal - Closed',HostName_PARCELS,MapService_PARCELS,'coal_leases_closed');
    wcoal_lse_closed.OnTop = true;
    wcoal_lse_closed.legend = "sm_coal_closed.jpg";
    wcoal_lse_closed.label_columns="serial_nr_full"; 

  wog_agm = new WMSLAYER2('Agreements Authorized',HostName_PARCELS,MapService_PARCELS,'og_agreement_a,og_agreement_dissolved');
    wog_agm.OnTop = true;
    wog_agm.legend = "og_agreements_authorized.jpg";
    wog_agm.label_columns="serial_nr_full";

  wmc_a = new WMSLAYER2('Active Mining Claims',HostName_PARCELS,MapService_PARCELS,'mc_active_dissolved,mc_active');
    wmc_a.Visible = true;
    wmc_a.OnTop = true;
    wmc_a.legend = "mc_active.jpg";
    wmc_a.label_columns = "claim_name";
    wmc_a.featuretype = "polygon";
    wmc_a.tablename = dbprefix + "MC_Active";
    wmc_a.statelayer = true;

  wmc_a_density_twn = new WMSLAYER2('Active Claims/Township',HostName_PARCELS,MapService_PARCELS,'mcdensity_twn');
     wmc_a_density_twn.OnTop = true;
     wmc_a_density_twn.legend = "mcdensity_twn5.jpg";
     wmc_a_density_twn.MaxScale = .0111;
     wmc_a_density_twn.label_columns = "claim_name";
     wmc_a_density_twn.Visible = true;

     wmc_a_density_twn_label = new WMSLAYER2('# Active Claims/Township - Labels',HostName_PARCELS,MapService_PARCELS,'mcdensity_twn_label');
      wmc_a_density_twn_label.OnTop = true;
      wmc_a_density_twn_label.MaxScale = .006;

   wmc_a_density_section = new WMSLAYER2('Active Claims/Section',HostName_PARCELS,MapService_PARCELS,'mcdensity_section_blm,mcdensity_section_alt');
      wmc_a_density_section.OnTop = true;
      wmc_a_density_section.legend = "mcdensity_qq3.jpg"; //same graphic as qq unless symbology changes
      wmc_a_density_section.MaxScale = .006;

    wmc_a_density_section_label = new WMSLAYER2('# Active Claims/Section - Labels',HostName_PARCELS,MapService_PARCELS,'mcdensity_section_blm_label,mcdensity_section_alt_label');
      wmc_a_density_section_label.OnTop = true;
      wmc_a_density_section_label.MaxScale = .001375;

   wmc_a_density_qq = new WMSLAYER2('Active Claims/Quarter Section',HostName_PARCELS,MapService_PARCELS,'mcdensity_qq');
     wmc_a_density_qq.OnTop = true;
     wmc_a_density_qq.legend = "mcdensity_qq3.jpg";
     wmc_a_density_qq.MaxScale = .002;
  
    wmc_a_density_qq_label = new WMSLAYER2('# Active Claims/Quarter Section - Labels',HostName_PARCELS,MapService_PARCELS,'mcdensity_qq_label');
     wmc_a_density_qq_label.OnTop = true;
     wmc_a_density_qq_label.MaxScale = .00069;

  wog_lse_all = new WMSLAYER2('O&G Leases - All',HostName_PARCELS,MapService_PARCELS,"og_lease_all");
    wog_lse_all.OnTop = true;
    wog_lse_all.MaxScale = 0;
    wog_lse_all.label_columns = "serial_nr_full";
    wog_lse_all.featuretype = "polygon";
    wog_lse_all.tablename = dbprefix + "og_lease";
    wog_lse_all.hideOnTOC = true;
    wog_lse_all.statelayer = false;

  wstips = new WMSLAYER2('Stipulations',HostName_PARCELS,MapService_PARCELS,'og_stips');
    wstips.OnTop = true;
    wstips.MaxScale = .005;
    wstips.legend = "og_stipulation.jpg";

  wgt_lse_c = new WMSLAYER2('GT Leases - Closed',HostName_PARCELS,MapService_PARCELS,'gt_lease_c');
    wgt_lse_c.OnTop = true;
    //wgt_lse_c.MaxScale = 0.003;
    wgt_lse_c.legend = "og_leases_closed.jpg";
    wgt_lse_c.label_columns = "serial_nr_full";


  wsm_kla_labels_auth = new WMSLAYER2('Known Leasing Areas Labels',HostName_PARCELS,MapService_PARCELS,'sm_known_leasing_areas_labels_auth');
    wsm_kla_labels_auth.OnTop = true;
    wsm_kla_labels_auth.MaxScale = 0.003;

  wNo_Lease_Non_Discretionary = new WMSLAYER2('No Lease - Non-Discretionary',HostName_PARCELS,MapService_PARCELS,"No_Lease_Non_Discretionary");
    wNo_Lease_Non_Discretionary.Visible = true;
    wNo_Lease_Non_Discretionary.OnTop = true;
    wNo_Lease_Non_Discretionary.MaxScale = 0.005;
    wNo_Lease_Non_Discretionary.legend = "No_Lease_Non_Discretionary.jpg";

  wmc_plans_notice_closed = new WMSLAYER2('Plans/Notices - Closed',HostName_PARCELS,MapService_PARCELS,"mc_plans_notices_closed");
    wmc_plans_notice_closed.OnTop = true;
    wmc_plans_notice_closed.legend = "mc_plans_notice_closed.gif";
    wmc_plans_notice_closed.label_columns = "serial_nr_full";
    wmc_plans_notice_closed.featuretype = "polygon";
    wmc_plans_notice_closed.tablename = dbprefix + "case";
    wmc_plans_notice_closed.statelayer = true;
 
  wog_agm_othera_labels = new WMSLAYER2('Other Agreements Labels',HostName_PARCELS,MapService_PARCELS,'og_agm_othera_labels');
    wog_agm_othera_labels.OnTop = true;
    wog_agm_othera_labels.MaxScale = 0.003;

  wgt_lse_nom = new WMSLAYER2('GT Nominations',HostName_PARCELS,MapService_PARCELS,'gt_lse_nom');
    wgt_lse_nom.OnTop = true;
    wgt_lse_nom.legend = "gt_lse_nom.JPG";
    wgt_lse_nom.label_columns = "serial_nr_full";


  wgt_lse_nom_clsd = new WMSLAYER2('GT Nominations Closed',HostName_PARCELS,MapService_PARCELS,'gt_lse_nom_clsd');
    wgt_lse_nom_clsd.OnTop = true;
    wgt_lse_nom_clsd.MaxScale = 1;
    wgt_lse_nom_clsd.legend = "gt_lse_nom_clsd.JPG";
    wgt_lse_nom_clsd.label_columns = "serial_nr_full";

    wgt_potent_areas = new WMSLAYER2('Geothermal Prospective Areas',HostName_PARCELS,MapService_PARCELS,'gt_potential');
    wgt_potent_areas.OnTop = true;
    wgt_potent_areas.MaxScale = 1;
    wgt_potent_areas.legend = "gt_potential.jpg";

  wmc_type = new WMSLAYER2('Mining Claims',HostName_PARCELS,MapService_PARCELS,"mc_by_type");
    wmc_type.OnTop = true;
    wmc_type.MaxScale = 0;
    wmc_type.label_columns = "claim_name";
    wmc_type.featuretype = "polygon";
    wmc_type.tablename = dbprefix + "MC_ACTIVE";
    wmc_type.hideOnTOC = true;

  wNo_Category = new WMSLAYER2('No Category',HostName_PARCELS,MapService_PARCELS,"No_Category");
    wNo_Category.Visible = true;
    wNo_Category.OnTop = true;
    wNo_Category.MaxScale = 0.005;
    wNo_Category.legend = "No_Category.jpg";

  wgt_agm = new WMSLAYER2('GT Agreements',HostName_PARCELS,MapService_PARCELS,'gt_agreement_a');
    wgt_agm.OnTop = true;
    wgt_agm.legend = "og_agreements_authorized.jpg";
    wgt_agm.label_columns = "serial_nr_full";

  wgt_agm_unita = new WMSLAYER2('GT Unit Agreements',HostName_PARCELS,MapService_PARCELS,'gt_agm_unita');
    wgt_agm_unita.OnTop = true;
    wgt_agm_unita.legend = "gt_agm_unita.jpg";

  wgt_agm_partarea = new WMSLAYER2('GT Participating Area Agreements',HostName_PARCELS,MapService_PARCELS,'gt_agm_partarea');
    wgt_agm_partarea.OnTop = true;
    wgt_agm_partarea.legend = "gt_agm_parta.jpg";

  wgt_agm_communa = new WMSLAYER2('GT Communitization Agreements',HostName_PARCELS,MapService_PARCELS,'gt_agm_communa');
    wgt_agm_communa.OnTop = true;
    wgt_agm_communa.legend = "gt_agm_comm.jpg";

  wgt_agm_othera = new WMSLAYER2('GT Other Agreements',HostName_PARCELS,MapService_PARCELS,'gt_agm_othera');
    wgt_agm_othera.OnTop = true;
    wgt_agm_othera.legend = "gt_agm_other.jpg";

  wog_lse_labels_c = new WMSLAYER2('Leases - Closed Labels',HostName_PARCELS,MapService_PARCELS,'og_lse_labels_c');
    wog_lse_labels_c.OnTop = true;
    wog_lse_labels_c.MaxScale = 0.003;

  wNo_Surface_Occupancy = new WMSLAYER2('No Surface Occupancy',HostName_PARCELS,MapService_PARCELS,"No_Surface_Occupancy");
    wNo_Surface_Occupancy.Visible = true;
    wNo_Surface_Occupancy.OnTop = true;
    wNo_Surface_Occupancy.MaxScale = 0.005;
    wNo_Surface_Occupancy.legend = "No_Surface_Occupancy.jpg";
 
  wmc_plans_notice_auth = new WMSLAYER2('Plans/Notices',HostName_PARCELS,MapService_PARCELS,"mc_plans_notices_auth");
    wmc_plans_notice_auth.Visible = true;
    wmc_plans_notice_auth.OnTop = true;
    wmc_plans_notice_auth.legend = "mc_plans_notice_auth.gif";
    wmc_plans_notice_auth.label_columns = "serial_nr_full";
    wmc_plans_notice_auth.featuretype = "polygon";
    wmc_plans_notice_auth.tablename = dbprefix + "case";
    wmc_plans_notice_auth.statelayer = true;

  wgt_lse_all = new WMSLAYER2('Geothermal Leases - All',HostName_PARCELS,MapService_PARCELS,"gt_lease_all");
    wgt_lse_all.OnTop = true;
    wgt_lse_all.MaxScale = 0;
    wgt_lse_all.label_columns = "serial_nr_full";
    wgt_lse_all.featuretype = "polygon";
    wgt_lse_all.tablename = dbprefix + "gt_lease";
    wgt_lse_all.hideOnTOC = true;
    wgt_lse_all.statelayer = true;

  wog_lse = new WMSLAYER2('Leases',HostName_PARCELS,MapService_PARCELS,'og_lease_a,og_lease_dissolved');
    wog_lse.Visible = false;
    wog_lse.OnTop = true;
    wog_lse.legend = "og_leases_authorized.jpg";
    wog_lse.label_columns = "serial_nr_full";

  wog_lse_pro = new WMSLAYER2('Leases Producing',HostName_PARCELS,MapService_PARCELS,'og_lse_pro');
    wog_lse_pro.Visible = true;
    wog_lse_pro.OnTop = true;
    wog_lse_pro.legend = "og_lse_pro.jpg";
 
  wog_lse_pro_labels = new WMSLAYER2('Leases Producing Labels',HostName_PARCELS,MapService_PARCELS,'og_lse_pro_labels');
    wog_lse_pro_labels.Visible = false;
    wog_lse_pro_labels.OnTop = true;
    wog_lse_pro_labels.MaxScale = 0.003;

  wog_lse_nonpro = new WMSLAYER2('Leases Non-Producing',HostName_PARCELS,MapService_PARCELS,'og_lse_nonpro');
    wog_lse_nonpro.Visible = true;
    wog_lse_nonpro.OnTop = true;
    wog_lse_nonpro.legend = "og_lse_nonpro.jpg";
  
  wog_lse_nonpro_labels = new WMSLAYER2('Leases Non-Producing Labels',HostName_PARCELS,MapService_PARCELS,'og_lse_nonpro_labels');
   wog_lse_nonpro_labels.Visible = false;
   wog_lse_nonpro_labels.OnTop = true;
   wog_lse_nonpro_labels.MaxScale = 0.003;

  wog_lse_hycarb = new WMSLAYER2('Hydrocarbon Leases',HostName_PARCELS,MapService_PARCELS,'og_lse_hycarb');
   wog_lse_hycarb.Visible = false;
   wog_lse_hycarb.OnTop = true;
   wog_lse_hycarb.legend = "og_lse_hycarb.jpg";

  wog_lse_hycarb_labels = new WMSLAYER2('Hydrocarbon Leases Labels',HostName_PARCELS,MapService_PARCELS,'og_lse_hycarb_labels');
   wog_lse_hycarb_labels.Visible = false;
   wog_lse_hycarb_labels.OnTop = true;
   wog_lse_hycarb_labels.MaxScale = 0.003;

  wNo_Lease_Discretionary = new WMSLAYER2('No Lease - Discretionary',HostName_PARCELS,MapService_PARCELS,"No_Lease_Discretionary");
    wNo_Lease_Discretionary.Visible = true;
    wNo_Lease_Discretionary.OnTop = true;
    wNo_Lease_Discretionary.MaxScale = 0.005;
    wNo_Lease_Discretionary.legend = "No_Lease_Discretionary.jpg";
 
  wLease_Notice = new WMSLAYER2('Lease Notice',HostName_PARCELS,MapService_PARCELS,"Lease_Notice");
    wLease_Notice.Visible = true;
    wLease_Notice.OnTop = true;
    wLease_Notice.MaxScale = 0.005;
    wLease_Notice.legend = "Lease_Notice.jpg";

  woil_shale_closed = new WMSLAYER2('Oil Shale - Closed',HostName_PARCELS,MapService_PARCELS,'oil_shale_closed');
    woil_shale_closed.OnTop = true;
    woil_shale_closed.legend = "sm_closed.jpg";
    woil_shale_closed.label_columns="serial_nr_full";

  wsm_kla_labels_closed = new WMSLAYER2('Known Leasing Areas - Closed Labels',HostName_PARCELS,MapService_PARCELS,'sm_known_leasing_areas_labels_closed');
    wsm_kla_labels_closed.OnTop = true;
    wsm_kla_labels_closed.MaxScale = 0.003;

  wmc_c = new WMSLAYER2('Closed Mining Claims',HostName_PARCELS,MapService_PARCELS,"mc_closed");
    wmc_c.OnTop = true;
    wmc_c.MaxScale = 0.0017;
    wmc_c.legend = "mc_closed.jpg";
    wmc_c.label_columns = "claim_name";
    wmc_c.featuretype = "polygon";
    wmc_c.tablename = dbprefix + "MC_Closed";
    wmc_c.statelayer = true;

  wTiming_Limitation = new WMSLAYER2('Timing Limitation',HostName_PARCELS,MapService_PARCELS,"Timing_Limitation");
    wTiming_Limitation.Visible = true;
    wTiming_Limitation.OnTop = true;
    wTiming_Limitation.MaxScale = 0.005;
    wTiming_Limitation.legend = "Timing_Limitation.jpg";
    
  wog_agm_all = new WMSLAYER2('O&G Agreements - All',HostName_PARCELS,MapService_PARCELS,"og_agreement_all");
    wog_agm_all.OnTop = true;
    wog_agm_all.MaxScale = 0;
    wog_agm_all.label_columns = "serial_nr_full";
    wog_agm_all.featuretype = "polygon";
    wog_agm_all.tablename = dbprefix + "og_agreement";
    wog_agm_all.hideOnTOC = true;
    wog_agm_all.statelayer = true;

  wog_lse_labels = new WMSLAYER2('Leases Labels',HostName_PARCELS,MapService_PARCELS,'og_lse_labels_a');
    wog_lse_labels.OnTop = true;
    wog_lse_labels.MaxScale = 0.003;

  wSpecial = new WMSLAYER2('Special',HostName_PARCELS,MapService_PARCELS,"Special");
    wSpecial.Visible = true;
    wSpecial.OnTop = true;
    wSpecial.MaxScale = 0.005;
    wSpecial.legend = "Special.jpg";

  wlmu_auth = new WMSLAYER2('Logical Mining Units',HostName_PARCELS,MapService_PARCELS,'logical_mining_units_auth');
    wlmu_auth.Visible = true;
    wlmu_auth.OnTop = true;
    wlmu_auth.legend = "sm_lmu_auth.jpg";
    wlmu_auth.label_columns="serial_nr_full";

  wgt_lse = new WMSLAYER2('GT Leases Authorized',HostName_PARCELS,MapService_PARCELS,'gt_lease_a');
    wgt_lse.Visible = true;
    wgt_lse.OnTop = true;
    wgt_lse.legend = "legend-known-leasing-areas.jpg";
    wgt_lse.label_columns = "serial_nr_full";

  wmc_plans_notice_closed_labels = new WMSLAYER2('Plans/Notices - Closed Labels',HostName_PARCELS,MapService_PARCELS,'mc_plans_notices_closed_labels');
    wmc_plans_notice_closed_labels.OnTop = true;
    wmc_plans_notice_closed_labels.MaxScale = 0.003;

  wog_agm_labels = new WMSLAYER2('Agreements Authorized Labels',HostName_PARCELS,MapService_PARCELS,'og_agm_labels_a');
    wog_agm_labels.OnTop = true;
    wog_agm_labels.MaxScale = 0.003;

  wog_agm_othera = new WMSLAYER2('Other Agreements',HostName_PARCELS,MapService_PARCELS,'og_agm_othera');
    wog_agm_othera.OnTop = true;
    wog_agm_othera.legend = "og_agm_other.jpg";
  
  wother_sm_labels_closed = new WMSLAYER2('Solid Minerals - Closed Labels',HostName_PARCELS,MapService_PARCELS,'solidmineral_lease_labels_closed');
    wother_sm_labels_closed.OnTop = true;
    wother_sm_labels_closed.MaxScale = 0.003;

  wgt_agm_labels_c = new WMSLAYER2('GT Agreements - Closed Labels',HostName_PARCELS,MapService_PARCELS,'gt_agm_labels_c');
    wgt_agm_labels_c.OnTop = true;
    wgt_agm_labels_c.MaxScale = 0.003;

  wog_agm_partarea_labels = new WMSLAYER2('Participating Area Agreements Labels',HostName_PARCELS,MapService_PARCELS,'og_agm_partarea_labels');
    wog_agm_partarea_labels.OnTop = true;
    wog_agm_partarea_labels.MaxScale = 0.003;

  wgt_lse_labels_c = new WMSLAYER2('GT Leases - Closed Labels',HostName_PARCELS,MapService_PARCELS,'gt_lse_labels_c');
    wgt_lse_labels_c.OnTop = true;
    wgt_lse_labels_c.MaxScale = 0.003;

  wCoalbed_Methane_Coal_Mining = new WMSLAYER2('Coalbed Methane/Coal Mining',HostName_PARCELS,MapService_PARCELS,"Coalbed_Methane_Coal_Mining");
    wCoalbed_Methane_Coal_Mining.Visible = true;
    wCoalbed_Methane_Coal_Mining.OnTop = true;
    wCoalbed_Methane_Coal_Mining.MaxScale = 0.005;
    wCoalbed_Methane_Coal_Mining.legend = "Coalbed_Methane_Coal_Mining.jpg";

  wlmu_labels_closed = new WMSLAYER2('Logical Mining Units - Closed Labels',HostName_PARCELS,MapService_PARCELS,'logical_mining_units_labels_closed');
    wlmu_labels_closed.OnTop = true;
    wlmu_labels_closed.MaxScale = 0.003;

  wTraditional_Cultural_Properties = new WMSLAYER2('Traditional Cultural Properties',HostName_PARCELS,MapService_PARCELS,"Traditional_Cultural_Properties");
    wTraditional_Cultural_Properties.Visible = true;
    wTraditional_Cultural_Properties.OnTop = true;
    wTraditional_Cultural_Properties.MaxScale = 0.005;
    wTraditional_Cultural_Properties.legend = "Traditional_Cultural_Properties.jpg";

  wcoal_lse_auth = new WMSLAYER2('Coal Lease',HostName_PARCELS,MapService_PARCELS,'coal_leases_auth');
    wcoal_lse_auth.Visible = true;
    wcoal_lse_auth.OnTop = true;
    wcoal_lse_auth.legend = "sm_coal_auth.jpg";
    wcoal_lse_auth.label_columns="serial_nr_full";

  wcoal_lse_perml = new WMSLAYER2('Coal Permits/Licenses',HostName_PARCELS,MapService_PARCELS,'coal_lease_perml');
    wcoal_lse_perml.Visible = true;
    wcoal_lse_perml.OnTop = true;
    wcoal_lse_perml.legend = "coal_lease_perml.jpg";
    wcoal_lse_perml.label_columns="serial_nr_full";

  wcoal_lse_other = new WMSLAYER2('Coal Other',HostName_PARCELS,MapService_PARCELS,'coal_lease_other');
   wcoal_lse_other.Visible = true;
   wcoal_lse_other.OnTop = true;
   wcoal_lse_other.legend = "coal_lease_other.jpg";
   wcoal_lse_other.label_columns="serial_nr_full";

  wog_agm_partarea = new WMSLAYER2('Participating Area Agreements',HostName_PARCELS,MapService_PARCELS,'og_agm_partarea');
    wog_agm_partarea.OnTop = true;
    wog_agm_partarea.legend = "og_agm_parta.jpg";
 
  wcoal_lse_labels_closed = new WMSLAYER2('Coal - Closed Labels',HostName_PARCELS,MapService_PARCELS,'coal_lease_labels_closed');
    wcoal_lse_labels_closed.OnTop = true;
    wcoal_lse_labels_closed.MaxScale = 0.003;

  wother_sm_closed = new WMSLAYER2('Solid Minerals - Closed',HostName_PARCELS,MapService_PARCELS,'solidmineral_leases_closed');
    wother_sm_closed.OnTop = true;
    wother_sm_closed.legend = "sm_closed.jpg";
    wother_sm_closed.label_columns = "serial_nr_full";

  wmc_labels_name = new WMSLAYER2('Active Mining Claims Labels',HostName_PARCELS,MapService_PARCELS,'mc_labels_name_a');
    wmc_labels_name.OnTop = true;
    wmc_labels_name.MaxScale = 0.003;
    wmc_labels_name.legend = "Mining_claims_labels_active.jpg";

  wControlled_Surface_Use_Timing_Limitation = new WMSLAYER2('Controlled Surface Use/Timing Limitation',HostName_PARCELS,MapService_PARCELS,"Controlled_Surface_Use_Timing_Limitation");
    wControlled_Surface_Use_Timing_Limitation.Visible = true;
    wControlled_Surface_Use_Timing_Limitation.OnTop = true;
    wControlled_Surface_Use_Timing_Limitation.MaxScale = 0.005;
    wControlled_Surface_Use_Timing_Limitation.legend = "Controlled_Surface_Use_Timing_Limitation.jpg";

  wlmu_closed = new WMSLAYER2('Logical Mining Units - Closed',HostName_PARCELS,MapService_PARCELS,'logical_mining_units_closed');
    wlmu_closed.OnTop = true;
    wlmu_closed.legend = "sm_lmu_closed.jpg";
    wlmu_closed.label_columns="serial_nr_full";

  wgt_agm_c = new WMSLAYER2('GT Agreements - Closed',HostName_PARCELS,MapService_PARCELS,'gt_agreement_c');
    wgt_agm_c.OnTop = true;
    //wgt_agm_c.MaxScale = 0.003;
    wgt_agm_c.legend = "og_agreements_closed.jpg";
    wgt_agm_c.label_columns = "serial_nr_full";


  wNone_Various_Reasons = new WMSLAYER2('None Various Reasons',HostName_PARCELS,MapService_PARCELS,"None_Various_Reasons");
    wNone_Various_Reasons.Visible = true;
    wNone_Various_Reasons.OnTop = true;
    wNone_Various_Reasons.MaxScale = 0.005;
    wNone_Various_Reasons.legend = "None_Various_Reasons.jpg";
   
  wgt_kla = new WMSLAYER2('GT Known Leasing Areas',HostName_PARCELS,MapService_PARCELS,"gt_known_leasing_areas");
    wgt_kla.Visible = true;
    wgt_kla.OnTop = true;
    wgt_kla.legend = "gt_kla.jpg";
    wgt_kla.label_columns = "serial_nr_full";
    wgt_kla.featuretype = "polygon";
    wgt_kla.tablename = dbprefix + "kla";
    wgt_kla.statelayer = true;

   wgt_kla_clsd = new WMSLAYER2('GT Known Leasing Areas Closed',HostName_PARCELS,MapService_PARCELS,"gt_known_leasing_areas_clsd");
     wgt_kla_clsd.OnTop = true;
     wgt_kla_clsd.legend = "gt_kla_clsd.jpg";
     wgt_kla_clsd.label_columns = "serial_nr_full";
     wgt_kla_clsd.featuretype = "polygon";
     wgt_kla_clsd.tablename = dbprefix + "kla";
     wgt_kla_clsd.statelayer = true;

  wog_agm_unita_labels = new WMSLAYER2('Unit Agreements Labels',HostName_PARCELS,MapService_PARCELS,'og_agm_unita_labels');
    wog_agm_unita_labels.OnTop = true;
    wog_agm_unita_labels.MaxScale = 0.003;

  wPlan_of_Development = new WMSLAYER2('Plan of Development',HostName_PARCELS,MapService_PARCELS,"Plan_of_Development");
    wPlan_of_Development.Visible = true;
    wPlan_of_Development.OnTop = true;
    wPlan_of_Development.MaxScale = 0.005;
    wPlan_of_Development.legend = "Plan_of_Development.jpg";

  wog_agm_labels_c = new WMSLAYER2('Agreements - Closed Labels',HostName_PARCELS,MapService_PARCELS,'og_agm_labels_c');
    wog_agm_labels_c.OnTop = true;
    wog_agm_labels_c.MaxScale = 0.003;

  wsm_kla_auth = new WMSLAYER2('Known Leasing Areas',HostName_PARCELS,MapService_PARCELS,'sm_known_leasing_areas_auth');
    wsm_kla_auth.Visible = true;
    wsm_kla_auth.OnTop = true;
    wsm_kla_auth.legend = "sm_kla_auth.jpg";
    wsm_kla_auth.label_columns="serial_nr_full";


  wog_agm_communa_labels = new WMSLAYER2('Communitization Agreements Labels',HostName_PARCELS,MapService_PARCELS,'og_agm_communa_labels');
    wog_agm_communa_labels.OnTop = true;
    wog_agm_communa_labels.MaxScale = 0.003;

  wgt_lse_labels = new WMSLAYER2('GT Leases Authorized Labels',HostName_PARCELS,MapService_PARCELS,'gt_lse_labels_a');
    wgt_lse_labels.OnTop = true;
    wgt_lse_labels.MaxScale = 0.0004;

  wother_sm_labels_auth = new WMSLAYER2('Solid Minerals Labels',HostName_PARCELS,MapService_PARCELS,'solidmineral_lease_labels_auth');
    wother_sm_labels_auth.OnTop = true;
    wother_sm_labels_auth.MaxScale = 0.003;

  woil_shale_auth_labels = new WMSLAYER2('Oil Shale Labels',HostName_PARCELS,MapService_PARCELS,'oil_shale_auth_labels');
    woil_shale_auth_labels.OnTop = true;
    woil_shale_auth_labels.MaxScale = 0.003;

  wog_lse_c = new WMSLAYER2('Leases - Closed',HostName_PARCELS,MapService_PARCELS,'og_lease_c');
    wog_lse_c.OnTop = true;
    wog_lse_c.MaxScale = 0.003;
    wog_lse_c.legend = "og_leases_closed.jpg";
    wog_lse_c.label_columns = "serial_nr_full";

  wgt_lse_pro = new WMSLAYER2('GT Leases Producing',HostName_PARCELS,MapService_PARCELS,'gt_lse_pro');
    wgt_lse_pro.Visible = true;
    wgt_lse_pro.OnTop = true;
    wgt_lse_pro.legend = "gt_lse_pro.jpg";

  wog_agm_unita = new WMSLAYER2('Unit Agreements',HostName_PARCELS,MapService_PARCELS,'og_agm_unita');
    wog_agm_unita.OnTop = true;
    wog_agm_unita.legend = "og_agm_unita.jpg";

  wog_agm_c = new WMSLAYER2('Agreements - Closed',HostName_PARCELS,MapService_PARCELS,'og_agreement_c');
    wog_agm_c.OnTop = true;
    wog_agm_c.legend = "og_agreements_closed.jpg";
    wog_agm_c.label_columns="serial_nr_full";

  wControlled_Surface_Use = new WMSLAYER2('Controlled Surface Use',HostName_PARCELS,MapService_PARCELS,"Controlled_Surface_Use");
    wControlled_Surface_Use.Visible = true;
    wControlled_Surface_Use.OnTop = true;
    wControlled_Surface_Use.MaxScale = 0.005;
    wControlled_Surface_Use.legend = "Controlled_Surface_Use.jpg";

   wtwps = new WMSLAYER2('Townships',HostName_PLSS,MapService_PLSS,'detail_alt_twp,detail_twp,detail_alt_twp_highzoom,detail_twp_highzoom');
    wtwps.Visible = true;
    wtwps.OnTop = true;
    wtwps.MaxScale = 0.0095;
    wtwps.legend = "township_boundaries.jpg";
    wtwps.Summary = "BLM Township boundaries.  This layer is available for download.   The GIS shapefile downloaded is called 'twnshp'.  ";
    wtwps.Metadata = "<a href='../GeoComm/metadata/lsis/gcdb/lsis_twnshp.htm' target=_blank>BLM Metadata</a>";
    wtwps.DisplayExternal=true;
    wtwps.DisplayInternal=true;

   wtwps_RCA = new WMSLAYER2('Townships RCA',HostName_PLSS,MapService_PLSS,'detail_alt_twp,detail_twp');
    wtwps_RCA.Visible = true;
    wtwps_RCA.OnTop = true;
    wtwps_RCA.MaxScale = 0.001;
    wtwps_RCA.legend = "township_boundaries.jpg";
    wtwps_RCA.Summary = "BLM Township boundaries.  This layer is available for download.   The GIS shapefile downloaded is called 'twnshp'.  ";
    wtwps_RCA.Metadata = "<a href = '../GeoComm/metadata/lsis/gcdb/lsis_twnshp.htm' target=_blank>BLM Metadata</a>";
    wtwps_RCA.DisplayExternal=true;
    wtwps_RCA.DisplayInternal=true;

  wtwpsB = new WMSLAYER2('Townships',HostName_PLSS,MapService_PLSS,'detail_twp');
    wtwpsB.Visible = true;
    wtwpsB.OnTop = true;
    wtwpsB.MaxScale = 0.006;
    wtwpsB.legend = "township_boundaries.jpg";
    wtwpsB.Summary = "BLM Township boundaries.  This layer is available for download.   The GIS shapefile downloaded is called 'twnshp'.  ";
    wtwpsB.Metadata = "../GeoComm/metadata/lsis/gcdb/lsis_twnshp.htm' target=_blank>BLM Metadata</a>";
    wtwpsB.DisplayExternal=true;
    wtwpsB.DisplayInternal=true;

    wtwp_labels = new WMSLAYER2('Township Labels',HostName_PLSS,MapService_PLSS,"twp_labels,township_labels,range_labels");
    wtwp_labels.Visible = true;
    wtwp_labels.OnTop = true;
    wtwp_labels.MaxScale = 0.013;
    wtwp_labels.legend = "Township_Labels.gif";
    wtwp_labels.Summary = "Labels for all townships across the US.";
    wtwp_labels.DisplayExternal=true;
    wtwp_labels.DisplayInternal=true;

   wtwp_labelsD = new WMSLAYER2('Township Labels',HostName_PLSS,MapService_PLSS,"twp_labels");
    wtwp_labelsD.Visible = true;
    wtwp_labelsD.OnTop = true;
    wtwp_labelsD.legend = "Township_Labels.gif";
    wtwp_labelsD.Summary = "Labels for all townships across the US.";
    wtwp_labelsD.DisplayExternal=true;
    wtwp_labelsD.DisplayInternal=true;
    
  wsec = new WMSLAYER2('Sections',HostName_PLSS,MapService_PLSS,"detail_alt_first,detail_first");
    wsec.Visible = true;
    wsec.OnTop = true;
    wsec.MaxScale = 0.001;
    wsec.legend = "Section_Boundaries.gif";
    wsec.Summary = "BLM Section boundaries (formally referred to as PLSS First Division).   This layer is available for download.   The GIS shapefile downloaded is called 'first'.";
    wsec.Metadata = "<a href = '../GeoComm/metadata/lsis/gcdb/lsis_first.htm' target=_blank>BLM Metadata</a>";
    wsec.label_columns = "label";
    wsec.featuretype = "polygon";
    wsec.tablename = dbprefix + "lsis_first";
    wsec.DisplayExternal=true;
    wsec.DisplayInternal=true;    

    wsec_labels = new WMSLAYER2('Section Labels',HostName_PLSS,MapService_PLSS,'detail_alt_first_labels,detail_first_labels');
    wsec_labels.Visible = true;
    wsec_labels.OnTop = true;
    wsec_labels.MaxScale = 0.00024;
    //wsec_labels.legend = "Section_Labels.gif";
    wsec_labels.DisplayExternal=true;
    wsec_labels.DisplayInternal=true;      

     wqq = new WMSLAYER2('Quarter-Quarters',HostName_PLSS,MapService_PLSS,'detail_ladesc,detail_alt_ladesc');
      wqq.Visible = true;
      wqq.OnTop = true;
      wqq.MaxScale = 0.0005;
      wqq.legend = "Quarter-Quarter_Boundaries.gif";
      wqq.Summary = "BLM and Alt Source Quarter-Quarter boundaries (referred to as PLSS Third Division or Aliquots). In BLM Source data, this layer includes the following survey types: <br>&nbspA - Aliquot parts<br>&nbspL - Lot<br>&nbspO - Fractional part of a section (Unnumbered Lot)";
      wqq.Metadata = "<a href = '../GeoComm/metadata/lsis/gcdb/lsis_ladesc.htm' target=_blank>BLM Metadata</a>";
      wqq.DisplayExternal=true;
      wqq.DisplayInternal=true;

      wqq_labels = new WMSLAYER2('Quarter-Quarter Labels',HostName_PLSS,MapService_PLSS,'detail_ladesc_labels,detail_alt_ladesc_labels');
       wqq_labels.Visible = true;
       wqq_labels.OnTop = true;
       wqq_labels.MaxScale = 0.00015;
       wqq_labels.legend = "Quarter-Quarter_Labels.gif";
       wqq_labels.Summary = "This identifies the quarter quarter section label.";
       wqq_labels.DisplayExternal=true;
       wqq_labels.DisplayInternal=true;
    
      wqq_labels_acerage = new WMSLAYER2('Quarter-Quarter Labels - Acerage',HostName_PLSS,MapService_PLSS,'detail_ladesc_labels_acreage,detail_alt_ladesc_labels_acreage');
       wqq_labels_acerage.Visible = true;
       wqq_labels_acerage.OnTop = true;
       wqq_labels_acerage.MaxScale = 0.00015;
       wqq_labels_acerage.legend = "Quarter-Quarter_Acreage_Labels.gif";
       wqq_labels_acerage.DisplayExternal=true;
       wqq_labels_acerage.DisplayInternal=true;
    
      wqq_labels_survey_type = new WMSLAYER2('Quarter-Quarter Labels - Survey Type',HostName_PLSS,MapService_PLSS,'detail_ladesc_labels_survey_type,detail_alt_ladesc_labels_survey_type');
       wqq_labels_survey_type.Visible = true;
       wqq_labels_survey_type.OnTop = true;
       wqq_labels_survey_type.MaxScale = 0.00015;
       wqq_labels_survey_type.legend = "Quarter_Quarter_special_Labels.gif";
       wqq_labels_survey_type.DisplayExternal=true;
       wqq_labels_survey_type.DisplayInternal=true;

      wspecialsurvey = new WMSLAYER2('Special Surveys',HostName_PLSS,MapService_PLSS,'detail_ladesc_special');
       wspecialsurvey.OnTop = true;
       wspecialsurvey.MaxScale = 0.0005;
       wspecialsurvey.legend = "Quarter-Quarter_Boundaries.gif";
       wspecialsurvey.Summary = "Special Surveys include the following survey types: <br><br>&nbsp;B - Aliquot parts less than 40 acres<br>&nbsp;E - Metes and bounds<br>&nbsp;G - Land Grant (reserved)<br>&nbsp;H - Homestead Entry Survey<br>&nbsp;J - Small tract/holding claim (reserved)<br>&nbsp;K - Block and lot within a townsite<br>&nbsp;M - Mineral Survey<br>&nbsp;N - Townsite<br>&nbsp;&nbsp;P - Parcel<br>&nbsp;Q - Donation Land Claim<br>&nbsp;R - Private land (reserved)<br>&nbsp;T - Tract (cadastral surveyed)<br>&nbsp;U - Unsurveyed/protracted<br>&nbsp;W - Water<br>&nbsp;X - Exchange survey<br>&nbsp;Y - Townsite outlet (reserved)<br>&nbsp;Z - Unsurveyed - unprotracted<br>";
       wspecialsurvey.Metadata = "<a href = '../GeoComm/metadata/lsis/gcdb/lsis_ladesc.htm' target=_blank>BLM Metadata</a>";
       wspecialsurvey.DisplayExternal=true;
       wspecialsurvey.DisplayInternal=true;
      
      wspecialsurvey_labels = new WMSLAYER2('Special Surveys Labels',HostName_PLSS,MapService_PLSS,'detail_ladesc_special_labels');
       wspecialsurvey_labels.OnTop = true;
       wspecialsurvey_labels.MaxScale = 0.00015;
       wspecialsurvey_labels.legend = "Quarter-Quarter_Labels.gif";
       wspecialsurvey_labels.Summary = "This identifies the survey types for the Smallest Division layer.  <br>";
       wspecialsurvey_labels.DisplayExternal=true;
       wspecialsurvey_labels.DisplayInternal=true;    
      
      wspecialsurvey_labels_acreage = new WMSLAYER2('Special Surveys Labels - Acerage',HostName_PLSS,MapService_PLSS,'detail_ladesc_special_labels_acreage');
       wspecialsurvey_labels_acreage.OnTop = true;
       wspecialsurvey_labels_acreage.MaxScale = .00015;
       wspecialsurvey_labels_acreage.legend = "Quarter-Quarter_Acreage_Labels.gif";
       wspecialsurvey_labels_acreage.DisplayExternal=true;
       wspecialsurvey_labels_acreage.DisplayInternal=true;
    
      wspecialsurvey_labels_survey_type = new WMSLAYER2('Special Surveys Labels - Survey Type',HostName_PLSS,MapService_PLSS,'detail_ladesc_special_labels_survey_type');
       wspecialsurvey_labels_survey_type.OnTop = true;
       wspecialsurvey_labels_survey_type.MaxScale = .00015;
       wspecialsurvey_labels_survey_type.legend = "Quarter_Quarter_special_Labels.gif";
       wspecialsurvey_labels_survey_type.DisplayExternal=true;
       wspecialsurvey_labels_survey_type.DisplayInternal=true;

     wladesc_minor_sub = new WMSLAYER2('Minor Subdivision',HostName_PLSS,MapService_PLSS,'detail_ladesc_minor_sub');
      wladesc_minor_sub.OnTop = true;
      wladesc_minor_sub.MaxScale = 0.0005;
      wladesc_minor_sub.legend = "lsis_minorsub_boundaries.gif";
      wladesc_minor_sub.Metadata = "<a href = '../GeoComm/metadata/lsis/gcdb/lsis_ladesc.htm' target = _blank>BLM Metadata</a>";
      wladesc_minor_sub.DisplayExternal=true;
      wladesc_minor_sub.DisplayInternal=true;    

     wladesc_minor_sub_labels = new WMSLAYER2('Minor Sub. Labels',HostName_PLSS,MapService_PLSS,'detail_ladesc_minor_sub_labels');
      wladesc_minor_sub_labels.OnTop = true;
      wladesc_minor_sub_labels.MaxScale = 0.0005;
      wladesc_minor_sub_labels.legend = "plss_minor_subdivision_labels.JPG";
      wladesc_minor_sub_labels.Summary = "This shows the minor subdivision labels";
      wladesc_minor_sub_labels.DisplayExternal=true;
      wladesc_minor_sub_labels.DisplayInternal=true;    
    
    wladesc_minor_sub_labels_acerage = new WMSLAYER2('Minor Sub. Labels - Acerage',HostName_PLSS,MapService_PLSS,'detail_ladesc_minor_sub_labels_acreage');
      wladesc_minor_sub_labels_acerage.OnTop = true;
      wladesc_minor_sub_labels_acerage.MaxScale = 0.00015;
      wladesc_minor_sub_labels_acerage.legend = "Quarter-Quarter_Acreage_Labels.gif";
      wladesc_minor_sub_labels_acerage.DisplayExternal=true;
      wladesc_minor_sub_labels_acerage.DisplayInternal=true;
    
    wladesc_minor_sub_labels_survey_type = new WMSLAYER2('Minor Sub. Labels - Survey Type',HostName_PLSS,MapService_PLSS,'detail_ladesc_minor_sub_labels_survey_type');
      wladesc_minor_sub_labels_survey_type.OnTop = true;
      wladesc_minor_sub_labels_survey_type.MaxScale = 0.00015;
      wladesc_minor_sub_labels_survey_type.legend = "Quarter-Quarter_Acreage_Labels.gif";
      wladesc_minor_sub_labels_survey_type.DisplayExternal=true;
      wladesc_minor_sub_labels_survey_type.DisplayInternal=true;


  wga_allot_labels = new WMSLAYER2('Allotment Labels',HostName_Rangeland,MapService_Rangeland,'grazing_allot_labels');
    wga_allot_labels.OnTop = true;
    wga_allot_labels.MaxScale = .003;
    wga_allot_labels.DisplayExternal=true;
    wga_allot_labels.DisplayInternal=true;    
    
  wga_allot_labels_num = new WMSLAYER2('Allotment Labels - Number',HostName_Rangeland,MapService_Rangeland,'grazing_allot_labels_num');
    wga_allot_labels_num.OnTop = true;
    wga_allot_labels_num.MaxScale = .003;
    wga_allot_labels_num.DisplayExternal=true;
    wga_allot_labels_num.DisplayInternal=true;
    
  wga_allot_labels_name = new WMSLAYER2('Allotment Labels - Name',HostName_Rangeland,MapService_Rangeland,'grazing_allot_labels_name');
    wga_allot_labels_name.OnTop = true;
    wga_allot_labels_name.MaxScale = .003;
    wga_allot_labels_name.DisplayExternal=true;
    wga_allot_labels_name.DisplayInternal=true;

  wga_allot = new WMSLAYER2('Allotments',HostName_Rangeland,MapService_Rangeland,'grazing_allot,grazing_allot_dissolved');
    wga_allot.Visible = true;
    wga_allot.OnTop = true;
    wga_allot.legend = "legend-allotments.jpg";
    wga_allot.Metadata = "<a href='../GeoComm/metadata/rangeland/Grazing_Allotment_Metadata.htm' target=_blank>BLM Metadata</a>";
    wga_allot.DisplayExternal=true;
    wga_allot.DisplayInternal=true;    

  wherd_areas_labels = new WMSLAYER2('Herd Areas Labels',HostName_Rangeland,MapService_Rangeland,'herd_areas_labels');
     wherd_areas_labels.OnTop = true;
     wherd_areas_labels.MaxScale = .006;
    wherd_areas_labels.DisplayExternal=true;
    wherd_areas_labels.DisplayInternal=true;     

  wherd_areas = new WMSLAYER2('Herd Areas',HostName_Rangeland,MapService_Rangeland,'herd_areas');
    wherd_areas.Visible = false;
    wherd_areas.OnTop = true;
    wherd_areas.legend = "herd_areas.jpg";
    wherd_areas.Summary = "Herd Areas";
    wherd_areas.Metadata = "<a href='../GeoComm/metadata/rangeland/HA_Metadata.htm' target=_blank>BLM Metadata</a>";
    wherd_areas.DisplayExternal=true;
    wherd_areas.DisplayInternal=true;    

  wherd_mgtareas_labels = new WMSLAYER2('Herd Management Areas Labels',HostName_Rangeland,MapService_Rangeland,'herd_mgtareas_labels');
    wherd_mgtareas_labels.OnTop = true;
    wherd_mgtareas_labels.MaxScale = .006;
    wherd_mgtareas_labels.DisplayExternal=true;
    wherd_mgtareas_labels.DisplayInternal=true;    

  wherd_mgtareas = new WMSLAYER2('Herd Management Areas',HostName_Rangeland,MapService_Rangeland,'herd_mgtareas');
   wherd_mgtareas.Visible = false;
   wherd_mgtareas.OnTop = true;
   wherd_mgtareas.Summary = "Herd Management Areas";
   wherd_mgtareas.Metadata = "<a href='../GeoComm/metadata/rangeland/HMA_Metadata.htm' target=_blank>BLM Metadata</a>";
   wherd_mgtareas.legend = "herd_mgtareas.jpg";
    wherd_mgtareas.DisplayExternal=true;
    wherd_mgtareas.DisplayInternal=true;   

  wra_usfs_labels = new WMSLAYER2('USFS Range Allotments Labels',HostName_Rangeland,MapService_Rangeland,'ra_usfs_labels');
   wra_usfs_labels.OnTop = true;
   wra_usfs_labels.MaxScale = .003;

  wra_usfs = new WMSLAYER2('USFS Range Allotments',HostName_Rangeland,MapService_Rangeland,'ra_usfs');
   wra_usfs.Visible = false;
   wra_usfs.OnTop = true;
   wra_usfs.legend = "ra_usfs.jpg";
   wra_usfs.Metadata = "<a href = 'http://basenet.fs.fed.us/products/gis/MetadataHTM/rmu/rmu_unit.xml' target = _blank>Metadata</a>";


  wga_past = new WMSLAYER2('Pastures',HostName_Rangeland,MapService_Rangeland,'grazing_pasture');
    wga_past.OnTop = true;
    wga_past.MaxScale = .003;
    wga_past.legend = "legend-pastures.jpg";
    wga_past.DisplayExternal=true;
    wga_past.DisplayInternal=true;    


  wga_past_labels = new WMSLAYER2('Pasture Labels',HostName_Rangeland,MapService_Rangeland,'grazing_pasture_labels');
    wga_past_labels.OnTop = true;
    wga_past_labels.MaxScale = .003;
    wga_past_labels.DisplayExternal=true;
    wga_past_labels.DisplayInternal=true;    

  waii_project_labels = new WMSLAYER2('Project Boundary Labels',HostName_REF,MapService_REF,"aii_project_labels");
    waii_project_labels.OnTop = true;
    waii_project_labels.MaxScale = 0.03;
    waii_project_labels.Visible = true;
    waii_project_labels.legend = "aii_projectbound_labels.jpg";
    waii_project_labels.DisplayExternal=true;
    waii_project_labels.DisplayInternal=true; 

  waii_project = new WMSLAYER2('All Project Boundaries',HostName_REF,MapService_REF,"aii_project_all");
    waii_project.Visible = true;
    waii_project.OnTop = true;
    waii_project.legend = "aiiproj_bnd.jpg";
    waii_project.DisplayExternal=true;
    waii_project.DisplayInternal=true; 

  waii_project_unknown = new WMSLAYER2('Unknown',HostName_REF,MapService_REF,"aii_project_unknown");
    waii_project_unknown.OnTop = true;
    waii_project_unknown.Visible = true;
    waii_project_unknown.legend = "aiiproj_bnd_unknown.jpg";
    waii_project_unknown.DisplayExternal=true;
    waii_project_unknown.DisplayInternal=true; 

  waii_project_1960 = new WMSLAYER2('1960s',HostName_REF,MapService_REF,"aii_project_1960");
    waii_project_1960.OnTop = true;
    waii_project_1960.Visible = true;
    waii_project_1960.legend = "aiiproj_bnd_1960.jpg";
    waii_project_1960.DisplayExternal=true;
    waii_project_1960.DisplayInternal=true; 

  waii_project_1970 = new WMSLAYER2('1970s',HostName_REF,MapService_REF,"aii_project_1970");
    waii_project_1970.OnTop = true;
    waii_project_1970.Visible = true;
    waii_project_1970.legend = "aiiproj_bnd_1970.jpg";
    waii_project_1970.DisplayExternal=true;
    waii_project_1970.DisplayInternal=true; 

  waii_project_1980 = new WMSLAYER2('1980s',HostName_REF,MapService_REF,"aii_project_1980");
    waii_project_1980.OnTop = true;
    waii_project_1980.Visible = true;
    waii_project_1980.legend = "aiiproj_bnd_1980.jpg";
    waii_project_1980.DisplayExternal=true;
    waii_project_1980.DisplayInternal=true; 

   waii_project_1990 = new WMSLAYER2('1990s',HostName_REF,MapService_REF,"aii_project_1990");
    waii_project_1990.OnTop = true;
    waii_project_1990.Visible = true;
    waii_project_1990.legend = "aiiproj_bnd_1990.jpg";
    waii_project_1990.DisplayExternal=true;
    waii_project_1990.DisplayInternal=true; 

   waii_project_2000 = new WMSLAYER2('2000s',HostName_REF,MapService_REF,"aii_project_2000");
    waii_project_2000.OnTop = true;
    waii_project_2000.Visible = true;
    waii_project_2000.legend = "aiiproj_bnd_2000.jpg";
    waii_project_2000.DisplayExternal=true;
    waii_project_2000.DisplayInternal=true; 

 waii_flight_labels = new WMSLAYER2('Flight Line Labels',HostName_REF,MapService_REF,"aii_flight_labels");
    waii_flight_labels.OnTop = true;
    waii_flight_labels.MaxScale = 0.003;
    waii_flight_labels.Visible = true;
    waii_flight_labels.legend = "aii_flightlines_labels.jpg";
    waii_flight_labels.DisplayExternal=true;
    waii_flight_labels.DisplayInternal=true;  

 waii_flight = new WMSLAYER2('Flight Lines',HostName_REF,MapService_REF,"aii_flight");
    waii_flight.OnTop = true;
    waii_flight.Visible = true;
    waii_flight.MaxScale = 0.006;
    waii_flight.legend = "aii_flightlines.jpg";
    waii_flight.DisplayExternal=true;
    waii_flight.DisplayInternal=true;    


 waii_photoc_labels = new WMSLAYER2('Photo Center Labels',HostName_REF,MapService_REF,"aii_photoc_labels");
    waii_photoc_labels.OnTop = true;
    waii_photoc_labels.MaxScale = 0.00024;
    waii_photoc_labels.Visible = true;
    waii_photoc_labels.legend = "aii_photoc_labels.jpg";
    waii_photoc_labels.DisplayExternal=true;
    waii_photoc_labels.DisplayInternal=true;


 waii_photoc = new WMSLAYER2('Photo Centers',HostName_REF,MapService_REF,"aii_photoc");
    waii_photoc.OnTop = true;
    waii_photoc.Visible = true;
    waii_photoc.MaxScale = 0.0007;
    waii_photoc.legend = "aii_photoc.jpg";
    waii_photoc.DisplayExternal=true;
    waii_photoc.DisplayInternal=true;

  wUrban_Area_labels = new WMSLAYER2('Urban Areas Labels',HostName_REF,MapService_REF,"urban_areas_labels");
    wUrban_Area_labels.OnTop = true;
    wUrban_Area_labels.MaxScale = 0.02;
    wUrban_Area_labels.legend = "reference_themes_urban_areas.jpg";
    wUrban_Area_labels.DisplayExternal=true;
    wUrban_Area_labels.DisplayInternal=true;    

 wUrban_Area_labels_SNPLMA = new WMSLAYER2('Urban Areas Labels',HostName_REF,MapService_REF,"urban_areas_labels");
    wUrban_Area_labels_SNPLMA.Visible = true;
    wUrban_Area_labels_SNPLMA.OnTop = true;
    wUrban_Area_labels_SNPLMA.MaxScale = 0.02;
    wUrban_Area_labels_SNPLMA.legend = "reference_themes_urban_areas.jpg";
    wUrban_Area_labels_SNPLMA.Metadata = "<a href='http://nationalatlas.gov/metadata/citiesx020.html' target=_blank>Metadata</a>";
    wUrban_Area_labels_SNPLMA.DisplayExternal=true;
    wUrban_Area_labels_SNPLMA.DisplayInternal=true;

  wCounties = new WMSLAYER2('County Boundaries',HostName_REF,MapService_REF,"County");
    wCounties.OnTop = true;
    wCounties.Visible = false;
    wCounties.Metadata = "<a href='../GeoComm/metadata/basemaps/BLM_MAP_BASEMAPS.htm' target=_blank>BLM Metadata</a>";
    wCounties.MaxScale = 0.0300;
    wCounties.Summary = "County Boundaries.";
    wCounties.label_columns = "CNTYNM";
    wCounties.featuretype = "polygon";
    wCounties.tablename = dbprefix + "county";
    wCounties.DisplayExternal=true;
    wCounties.DisplayInternal=true;    


  wCounties_SNMPLA = new WMSLAYER2('County Boundaries',HostName_REF,MapService_REF,"County");
    wCounties_SNMPLA.Visible = true;
    wCounties_SNMPLA.Metadata = "<a href='../GeoComm/metadata/basemaps/BLM_MAP_BASEMAPS.htm' target=_blank>BLM Metadata</a>";
    wCounties_SNMPLA.OnTop = true;
    wCounties_SNMPLA.MaxScale = 0.0300;
    wCounties_SNMPLA.Summary = "County Boundaries.";
    wCounties_SNMPLA.label_columns = "CNTYNM";
    wCounties_SNMPLA.featuretype = "polygon";
    wCounties_SNMPLA.tablename = dbprefix + "county";
    wCounties_SNMPLA.DisplayExternal=true;
    wCounties_SNMPLA.DisplayInternal=true;    

  wCounty_labels = new WMSLAYER2('County Labels',HostName_REF,MapService_REF,"County_labels");
    wCounty_labels.OnTop = true;
    wCounty_labels.Visible = false;
    wCounty_labels.MaxScale = 0.02;
    wCounty_labels.DisplayExternal=true;
    wCounty_labels.DisplayInternal=true;    

  wCounty_labels_SNPLMA = new WMSLAYER2('County Labels',HostName_REF,MapService_REF,"County_labels");
    wCounty_labels_SNPLMA.Visible = true;
    wCounty_labels_SNPLMA.OnTop = true;
    wCounty_labels_SNPLMA.MaxScale = 0.02;
    wCounty_labels_SNPLMA.DisplayExternal=true;
    wCounty_labels_SNPLMA.DisplayInternal=true;    

  wUrban_Area = new WMSLAYER2('Urban Areas',HostName_REF,MapService_REF,"urban_areas");
    wUrban_Area.OnTop = true;
    wUrban_Area.MaxScale = 0.02;
    wUrban_Area.Metadata = "<a href='http://nationalatlas.gov/metadata/citiesx020.html' target=_blank>National Atlas</a>";
    wUrban_Area.DisplayExternal=true;
    wUrban_Area.DisplayInternal=true;    

  wUrban_Area_SNPLMA = new WMSLAYER2('Urban Areas',HostName_REF,MapService_REF,"urban_areas");
    wUrban_Area_SNPLMA.Visible = true;
    wUrban_Area_SNPLMA.OnTop = true;
    wUrban_Area_SNPLMA.MaxScale = 0.02;
    wUrban_Area_SNPLMA.Metadata = "<a href='http://nationalatlas.gov/metadata/citiesx020.html' target=_blank>National Atlas</a>";
    wUrban_Area_SNPLMA.DisplayExternal=true;
    wUrban_Area_SNPLMA.DisplayInternal=true;

  wUTM_Area = new WMSLAYER2('UTM',HostName_REF,MapService_REF,"utm_areas");
    wUTM_Area.OnTop = true;
    wUTM_Area.Metadata = "<a href='http://nationalatlas.gov/metadata/citiesx020.html' target=_blank>National Atlas</a>";
    wUTM_Area.DisplayExternal=true;
    wUTM_Area.DisplayInternal=true;
   

  wstates_labels = new WMSLAYER2('State Labels',HostName_REF,MapService_REF,"state_labels");
    wstates_labels.Visible = true;
    wstates_labels.OnTop = true;
    wstates_labels.DisplayExternal=true;
    wstates_labels.DisplayInternal=true;    
    

  wstates_labels_93 = new WMSLAYER2('State Labels',HostName_REF,MapService_REF,"state_labels2,state_labels");
   wstates_labels_93.Visible = false;
   wstates_labels_93.OnTop = true;
    wstates_labels_93.DisplayExternal=true;
    wstates_labels_93.DisplayInternal=true;   
  

  wstates2_label_93 = new WMSLAYER2('State Labels',HostName_SMA,MapService_REF,"state_labels2,state_labels");
    wstates2_label_93.OnTop = true;
    wstates2_label_93.Visible = false;
    wstates2_label_93.DisplayExternal=true;
    wstates2_label_93.DisplayInternal=true;    
 

  wstates = new WMSLAYER2('State Boundaries',HostName_REF,MapService_REF,"states");
    wstates.Visible = true;
    wstates.OnTop = true;
    wstates.label_columns = "state_name";
    wstates.featuretype = "polygon";
    wstates.tablename = dbprefix + "state_bnd";
    wstates.Metadata = "<a href='../GeoComm/metadata/basemaps/blm_map_basemaps.htm' target = _blank>BLM Metadata</a>";
    wstates.DisplayExternal=true;
    wstates.DisplayInternal=true;

  wusfs_region_labels2 = new WMSLAYER2('NFS Region Labels',HostName_SMA,MapService_LANDSVIEWER,"AdministrativeRegion_labels");
    wusfs_region_labels2.OnTop = true;

  wProclaimedForest = new WMSLAYER2('Proclaimed Forests',HostName_SMA,MapService_LANDSVIEWER,"ProclaimedForest");
    wProclaimedForest.OnTop = true;
    wProclaimedForest.legend = "national_forest.jpg";
    wProclaimedForest.label_columns = "name";
    wProclaimedForest.featuretype = "polygon";
    wProclaimedForest.tablename = dbprefix + "ProclaimedForest";

  wstates2 = new WMSLAYER2('State Boundaries',HostName_REF,MapService_REF_lv,"states");
    wstates2.OnTop = true;
    wstates2.Visible = true;
    //wstates2.legend = "states.jpg";
    wstates2.label_columns = "state_name";
    wstates2.featuretype = "polygon";
    wstates2.tablename = dbprefix + "state_bnd";

  wnffidarea_labels = new WMSLAYER2('NFF ID Area Labels',HostName_SMA,MapService_LANDSVIEWER,"NFFIDArea_labels");
    wnffidarea_labels.OnTop = true;
    wnffidarea_labels.MaxScale = 0.005;
    wnffidarea_labels.Visible = false;

  wcivil_division_labels = new WMSLAYER2('Civil Division Labels',HostName_USFS,MapService_REF_lv,"CivilDivision_labels");
    wcivil_division_labels.OnTop = true;

  wranger_district = new WMSLAYER2('Ranger Districts',HostName_SMA,MapService_LANDSVIEWER,"RangerDistrict");
    wranger_district.OnTop = true;
    wranger_district.legend = "ranger_district.jpg";
    wranger_district.label_columns = "name";
    wranger_district.featuretype = "polygon";
    wranger_district.tablename = dbprefix + "districtname";

  wnffidarea = new WMSLAYER2('NFF ID Area',HostName_SMA,MapService_LANDSVIEWER,"NFFIDArea");
    wnffidarea.OnTop = true;
    wnffidarea.legend = "nff_id.jpg";
    wnffidarea.label_columns = "name";
    wnffidarea.featuretype = "polygon";
    wnffidarea.tablename = dbprefix + "NFFIDArea";

  wCounties2 = new WMSLAYER2('County Boundaries',HostName_REF,MapService_REF_lv,"County");
    wCounties2.OnTop = true;
    wCounties2.Metadata = "<a href='../GeoComm/metadata/basemaps/BLM_MAP_BASEMAPS.htm' target=_blank>BLM Metadata</a>";
    wCounties2.MaxScale = 0.03;
    wCounties2.legend = "counties.jpg";
    wCounties2.Summary = "County Boundaries.";
    wCounties2.label_columns = "CNTYNM";
    wCounties2.featuretype = "polygon";
    wCounties2.tablename = dbprefix + "county";

  wcongressional_district_labels = new WMSLAYER2('Congressional Districts Labels',HostName_SMA,MapService_MISC,"congressional_districts_labels");
    wcongressional_district_labels.OnTop = true;
    wcongressional_district_labels.MaxScale = 0.03;
    wcongressional_district_labels.DisplayExternal=true;
    wcongressional_district_labels.DisplayInternal=true;    

  wstates2_label = new WMSLAYER2('State Labels',HostName_SMA,MapService_REF,"state_labels");
    wstates2_label.OnTop = true;
    wstates2_label.Visible = false;
    wstates2_label.DisplayExternal=true;
    wstates2_label.DisplayInternal=true;    

  wranger_district_labels = new WMSLAYER2('Ranger District Labels',HostName_SMA,MapService_LANDSVIEWER,"RangerDistrict_labels");
    wranger_district_labels.OnTop = true;
    wranger_district_labels.MaxScale = 0.005;

  wcivil_division = new WMSLAYER2('Civil Division',HostName_USFS,MapService_REF_lv,"CivilDivision");
    wcivil_division.OnTop = true;

  wcongressional_district = new WMSLAYER2('Congressional Districts',HostName_SMA,MapService_MISC,"congressional_districts");
    wcongressional_district.OnTop = true;
    wcongressional_district.DisplayExternal=true;
    wcongressional_district.DisplayInternal=true;    

  wusfs_regions2 = new WMSLAYER2('NFS Regions',HostName_SMA,MapService_LANDSVIEWER,"AdministrativeRegion");
    wusfs_regions2.OnTop = true;
    //wusfs_regions2.legend = "national_forest.jpg";
    wusfs_regions2.label_columns = "ADM FS_NAME";
    wusfs_regions2.featuretype = "polygon";
    wusfs_regions2.tablename = dbprefix + "BLM_FS_REGIONS";

  wProclaimed_Forest_Label = new WMSLAYER2('Proclaimed Forests Labels',HostName_SMA,MapService_LANDSVIEWER,"ProclaimedForest_labels");
    wProclaimed_Forest_Label.OnTop = true;
    wProclaimed_Forest_Label.MaxScale = 0.02;

  wUrban_Area2 = new WMSLAYER2('Urban Areas',HostName_REF,MapService_REF_lv,"urban_areas");
    wUrban_Area2.OnTop = true;
    wUrban_Area2.MaxScale = 0.02;
    wUrban_Area2.legend = "reference_themes_urban_areas.jpg";
    wUrban_Area2.Metadata = "<a href='http://nationalatlas.gov/urbanareasm.html' target=_blank>Metadata</a>";
    wUrban_Area2.DisplayExternal=true;
    wUrban_Area2.DisplayInternal=true;    

  wCounties2_label = new WMSLAYER2('County Labels',HostName_REF,MapService_REF_lv,"County_labels");
    wCounties2_label.OnTop = true;
    wCounties2_label.MaxScale = 0.02;
    wCounties2_label.DisplayExternal=true;
    wCounties2_label.DisplayInternal=true;     

  wblm_segments_by_surfacetype = new WMSLAYER2('BLM Segments <b>by</b> Surface Type',HostName_ROADS,MapService_ROADS,"blm_segments_by_surf_type,blm_segments_by_surf_type_highzoom");
    wblm_segments_by_surfacetype.OnTop = true;
    wblm_segments_by_surfacetype.MaxScale = .003;
    wblm_segments_by_surfacetype.legend = "blm_segmentsby_surface_type_legend.jpg";

  wblm_segments_by_closurestatus = new WMSLAYER2('BLM Segments <b>by</b> Closure Status',HostName_ROADS,MapService_ROADS,"blm_segments_CLOSURE_STATUS,blm_segments_CLOSURE_STATUS_highzoom");
    wblm_segments_by_closurestatus.OnTop = true;
    wblm_segments_by_closurestatus.MaxScale = .003;
    wblm_segments_by_closurestatus.legend = "blm_segmentsby_closure_status.jpg";

  wblm_roads_by_class = new WMSLAYER2('BLM Roads by Classification',HostName_ROADS,MapService_ROADS,"BLM_ROADS_CLASSIFICATION");
    wblm_roads_by_class.OnTop = true;
    wblm_roads_by_class.MaxScale = .003;
    wblm_roads_by_class.legend = "blm_segmentsby_classification.jpg";

  wall_blm_roads = new WMSLAYER2('BLM Roads',HostName_ROADS,MapService_ROADS,"ALL_BLM_ROADS,ALL_BLM_ROADS_highzoom");
    wall_blm_roads.OnTop = true;
    wall_blm_roads.MaxScale = .003;
    wall_blm_roads.legend = "blm_roads.jpg";
    wall_blm_roads.Summary = "This layer includes all BLM roads";
    wall_blm_roads.workspace = "sde-roads";
    wall_blm_roads.label_columns = "route_name";
    wall_blm_roads.featuretype = "line";
    wall_blm_roads.tablename = fams_dbprefix + "Routes";
    wall_blm_roads.DisplayExternal=false;
    wall_blm_roads.DisplayInternal=true;

  wblmCA_roads = new WMSLAYER2('BLM Roads',HostName_ROADS,MapService_ROADS,"ALL_BLM_ROADS,ALL_BLM_ROADS_highzoom,staging_routes,staging_routes_highzoom");
    wblmCA_roads.Visible = true;
    wblmCA_roads.OnTop = true;
    wblmCA_roads.MaxScale = 1.0;
    wblmCA_roads.legend = "blm_roads.jpg";
    wblmCA_roads.workspace = "sde-roads";
    wblmCA_roads.label_columns = "route_name";
    wblmCA_roads.featuretype = "line";
    wblmCA_roads.tablename = fams_dbprefix + "Routes";
    wblmCA_roads.DisplayExternal=false;
    wblmCA_roads.DisplayInternal=true;

  wblm_segments_by_maintenance_resp = new WMSLAYER2('BLM Segments <b>by</b> Maintenance Responsibility',HostName_ROADS,MapService_ROADS,"blm_segments_main_resp,blm_segments_main_resp_highzoom");
    wblm_segments_by_maintenance_resp.OnTop = true;
    wblm_segments_by_maintenance_resp.MaxScale = .003;
    wblm_segments_by_maintenance_resp.legend = "blm_segmentsby_maintenance_responsibility.jpg";

  wblm_roads_labeled_by_num = new WMSLAYER2('BLM Roads <b>Labeled</b> by Number',HostName_ROADS,MapService_ROADS,"blm_road_labels_number");
    wblm_roads_labeled_by_num.OnTop = true;
    wblm_roads_labeled_by_num.MaxScale = .003;

  wAll_Major_Roads_Labels = new WMSLAYER2('Major Road Labels',HostName_ROADS,MapService_ROADS,"MAJOR_ROADS_LABELS,US_HIGHWAYS_LABELS,Interstate_Labels");
    wAll_Major_Roads_Labels.OnTop = true;
    wAll_Major_Roads_Labels.Visible = true;
    wAll_Major_Roads_Labels.MaxScale = 0.04;
    wAll_Major_Roads_Labels.legend = "roads_labels.jpg";
    wAll_Major_Roads_Labels.Summary = "US Department of Transportation major roads and highways.";
    wAll_Major_Roads_Labels.DisplayExternal=true;
    wAll_Major_Roads_Labels.DisplayInternal=true;

  wRCA_Major_Roads_Labels = new WMSLAYER2('Highways Labels',HostName_ROADS,MapService_ROADS,"MAJOR_ROADS_LABELS,US_HIGHWAYS_LABELS");
    wRCA_Major_Roads_Labels.OnTop = true;
    wRCA_Major_Roads_Labels.MaxScale = 0.04;
    //wRCA_Major_Roads_Labels.legend = "roads_labels.jpg";
    wRCA_Major_Roads_Labels.Summary = "US Department of Transportation major roads and highways.";

  wAll_Major_Roads = new WMSLAYER2('Major Roads',HostName_ROADS,MapService_ROADS,"Interstates,US_HIGHWAYS,MAJOR_ROADS");
    wAll_Major_Roads.Visible = true;
    wAll_Major_Roads.OnTop = true;
    wAll_Major_Roads.legend = "all_main_roads.jpg";
    wAll_Major_Roads.Summary = "US Department of Transportation major roads and highways.";
    wAll_Major_Roads.Metadata = "<a href='http://www.borderplanning.fhwa.dot.gov/data_gis.asp' target=_blank>Federal Highway Administration</a>";
    wAll_Major_Roads.DisplayExternal=true;
    wAll_Major_Roads.DisplayInternal=true;    

  wRCA_Major_Roads = new WMSLAYER2('Highways',HostName_ROADS,MapService_ROADS,"US_HIGHWAYS,MAJOR_ROADS");
    wRCA_Major_Roads.OnTop = true;
    wRCA_Major_Roads.MaxScale = 0.04;
    wRCA_Major_Roads.legend = "all_main_roads.jpg";
    wRCA_Major_Roads.Summary = "US Department of Transportation major roads and highways.";
    wRCA_Major_Roads.Metadata = "<a href='http://www.borderplanning.fhwa.dot.gov/data_gis.asp' target=_blank>Federal Highway Administration</a>";


  wInterstates = new WMSLAYER2('Interstates',HostName_ROADS,MapService_ROADS,"Interstates");
    wInterstates.Visible = true;
    wInterstates.OnTop = true;
    wInterstates.legend = "interstates_1207.jpg";
    wInterstates.Summary = "US Department of Transportation major roads and highways.";
    wInterstates.Metadata = "<a href='http://www.borderplanning.fhwa.dot.gov/data_gis.asp' target=_blank>Federal Highway Administration</a>";

  wUS_Highways = new WMSLAYER2('US Highways',HostName_ROADS,MapService_ROADS,"US_HIGHWAYS");
    wUS_Highways.Visible = true;
    wUS_Highways.OnTop = true;
    wUS_Highways.MaxScale = 0.04;
    wUS_Highways.legend = "US_highways_1207.jpg";
    wUS_Highways.Summary = "US Department of Transportation major roads and highways.";
    wUS_Highways.Metadata = "<a href='http://www.borderplanning.fhwa.dot.gov/data_gis.asp' target=_blank>Federal Highway Administration</a>";

  wOtherMajor_Roads = new WMSLAYER2('Major Roads',HostName_ROADS,MapService_ROADS,"MAJOR_ROADS");
    wOtherMajor_Roads.Visible = true;
    wOtherMajor_Roads.OnTop = true;
    wOtherMajor_Roads.MaxScale = 0.04;
    wOtherMajor_Roads.legend = "majorroads_1207.jpg";
    wOtherMajor_Roads.Summary = "US Department of Transportation major roads and highways.";
    wOtherMajor_Roads.Metadata = "<a href='http://www.borderplanning.fhwa.dot.gov/data_gis.asp' target=_blank>Federal Highway Administration</a>";

  wblm_roads_labeled_by_name2 = new WMSLAYER2('BLM Roads <b>Labeled</b> by Name2',HostName_ROADS,MapService_ROADS,"blm_road_labels_name2");
    wblm_roads_labeled_by_name2.OnTop = true;
    wblm_roads_labeled_by_name2.MaxScale = .003;

  wasset_points_all_labels = new WMSLAYER2('Asset Point Labels',HostName_ROADS,MapService_ROADS,"asset_point_labels");
    wasset_points_all_labels.Visible = true;
    wasset_points_all_labels.OnTop = true;
    wasset_points_all_labels.MaxScale = .003;

  wnonblm_roads_labels = new WMSLAYER2('Other Road Labels',HostName_ROADS,MapService_ROADS,"NONBLM_ROADS_Labels");
    wnonblm_roads_labels.OnTop = true;
    wnonblm_roads_labels.MaxScale = .003;
    wnonblm_roads_labels.DisplayExternal=true;
    wnonblm_roads_labels.DisplayInternal=true;    

//named route_segments for id - (better as blm_segments)
  wblm_segments = new WMSLAYER2('BLM Segments',HostName_ROADS,MapService_ROADS,"route_segments,route_segments_highzoom");
    wblm_segments.OnTop = true;
    wblm_segments.MaxScale = .003;
    wblm_segments.Summary = "The BLM Segment layers are automatically derived thru batch process which plots the FAMS RCA segment assets onto the Routes feature class using milepost values.";
    wblm_segments.legend = "";
    wblm_segments.featuretype = "line";
    wblm_segments.tablename = fams_dbprefix + "ROUTE_SEGMENTS";
    wblm_segments.workspace = "sde-roads";

  wblm_segments_by_surfacecondition = new WMSLAYER2('BLM Segments <b>by</b> Surface Condition',HostName_ROADS,MapService_ROADS,"blm_segments_SURFACE_CONDITION,blm_segments_SURFACE_CONDITION_highzoom");
    wblm_segments_by_surfacecondition.OnTop = true;
    wblm_segments_by_surfacecondition.MaxScale = .003;
    wblm_segments_by_surfacecondition.legend = "blm_segmentsby_surface_condition.jpg";

  wblm_segments_by_maintenancelevel = new WMSLAYER2('BLM Segments <b>by</b> Maintenance Level',HostName_ROADS,MapService_ROADS,"blm_segments_MAINTENANCE_LEVEL,blm_segments_MAINTENANCE_LEVEL_highzoom");
    wblm_segments_by_maintenancelevel.OnTop = true;
    wblm_segments_by_maintenancelevel.MaxScale = .003;
    wblm_segments_by_maintenancelevel.Summary = "The BLM Segment layers are automatically derived thru batch process which plots the FAMS RCA segment assets onto the Routes feature class using milepost values.";
    wblm_segments_by_maintenancelevel.legend = "blm_segmentsby_maintenance_level.jpg";

  wasset_points_all = new WMSLAYER2('Asset Points',HostName_ROADS,MapService_ROADS,"asset_points,asset_points_highzoom");
    wasset_points_all.Visible = true;
    wasset_points_all.OnTop = true;
    //wasset_points_all.MaxScale = .003;
    wasset_points_all.legend = "asset_type2.jpg";
    wasset_points_all.workspace = "sde-roads";
    wasset_points_all.label_columns = "asset_type_code";
    wasset_points_all.featuretype = "point";
    wasset_points_all.tablename = fams_dbprefix + "asset_points";

  wblm_roads_labeled_by_name = new WMSLAYER2('BLM Roads <b>Labeled</b> by Name',HostName_ROADS,MapService_ROADS,"blm_road_labels_name");
    wblm_roads_labeled_by_name.OnTop = true;
    wblm_roads_labeled_by_name.MaxScale = .003;
    wblm_roads_labeled_by_name.legend = "blm_roads_labeledby_name.jpg";

  wblmCA_roads_labeled_by_name = new WMSLAYER2('BLM Roads <b>Labeled</b> by Name',HostName_ROADS,MapService_ROADS,"blm_road_labels_name,staging_route_labels");
    wblmCA_roads_labeled_by_name.Visible = true;
    wblmCA_roads_labeled_by_name.OnTop = true;
    wblmCA_roads_labeled_by_name.MaxScale = .003;
    //wblmCA_roads_labeled_by_name.DisplayExternal=false;
    wblmCA_roads_labeled_by_name.DisplayInternal=true;


  wblm_roads_labeled_by_location_num = new WMSLAYER2('BLM Roads <b>Labeled</b> by Location Num',HostName_ROADS,MapService_ROADS,"blm_road_labels_location_num");
    wblm_roads_labeled_by_location_num.OnTop = true;
    wblm_roads_labeled_by_location_num.MaxScale = .003;
    wblm_roads_labeled_by_location_num.legend = "blm_road_labelby_eqnum.jpg"; //need new .jpg

  wnonRoads = new WMSLAYER2('Other Roads',HostName_ROADS,MapService_ROADS,"NONBLM_ROADS");
    wnonRoads.OnTop = true;
    wnonRoads.MaxScale = .003;
    wnonRoads.Summary = "Data available in select areas";
    wnonRoads.legend = "other_roads.jpg";
    wnonRoads.DisplayExternal=true;
    wnonRoads.DisplayInternal=true;    

  wmax_fams_linear_asset = new WMSLAYER2('Linear Asset',HostName_SITES,MapService_SITES,"max_fams_linear_asset,max_fams_linear_asset_highzoom");
    wmax_fams_linear_asset.Visible = false;
    wmax_fams_linear_asset.OnTop = true;
    wmax_fams_linear_asset.MaxScale = 1.0;
    wmax_fams_linear_asset.DisplayExternal=false;
    wmax_fams_linear_asset.DisplayInternal=false;

  wmax_fams_linear_asset_labels = new WMSLAYER2('Linear Asset Labels',HostName_SITES,MapService_SITES,'max_fams_linear_asset_labels');
    wmax_fams_linear_asset_labels.Visible = false;
    wmax_fams_linear_asset_labels.OnTop = true;
    wmax_fams_linear_asset_labels.MaxScale = .003;
    wmax_fams_linear_asset_labels.DisplayExternal=false;
    wmax_fams_linear_asset_labels.DisplayInternal=false;

  wmax_fams_major_culvert = new WMSLAYER2('Major Culvert',HostName_SITES,MapService_SITES,"max_fams_major_culvert,max_fams_major_culvert_highzoom");
    wmax_fams_major_culvert.Visible = true;
    wmax_fams_major_culvert.OnTop = true;
    wmax_fams_major_culvert.Metadata = "<a href='../GeoComm/metadata/fams/fams_maximo_metadata.htm' target=_blank>BLM Metadata</a>";
    wmax_fams_major_culvert.MaxScale = 1.0;
    wmax_fams_major_culvert.legend = "culverts.jpg";
    wmax_fams_major_culvert.DisplayExternal=false;
    wmax_fams_major_culvert.DisplayInternal=true;

  wmax_fams_major_culvert_labels = new WMSLAYER2('Major Culvert Labels',HostName_SITES,MapService_SITES,'max_fams_major_culvert_labels');
    wmax_fams_major_culvert_labels.Visible = false;
    wmax_fams_major_culvert_labels.OnTop = true;
    wmax_fams_major_culvert_labels.MaxScale = .003;
    wmax_fams_major_culvert_labels.DisplayExternal=false;
    wmax_fams_major_culvert_labels.DisplayInternal=true;

  wmax_fams_bridge = new WMSLAYER2('Bridges (Maximo)',HostName_SITES,MapService_SITES,"max_fams_bridge,max_fams_bridge_highzoom");
    wmax_fams_bridge.Visible = true;
    wmax_fams_bridge.OnTop = true;
    wmax_fams_bridge.Metadata = "<a href='../GeoComm/metadata/fams/fams_maximo_metadata.htm' target=_blank>BLM Metadata</a>";
    wmax_fams_bridge.MaxScale = 1.0;
    wmax_fams_bridge.legend = "bridges.jpg";
    wmax_fams_bridge.DisplayExternal=false;
    wmax_fams_bridge.DisplayInternal=true;

  wmax_fams_bridge_labels = new WMSLAYER2('Bridges Labels (Maximo)',HostName_SITES,MapService_SITES,'max_fams_bridge_labels');
    wmax_fams_bridge_labels.Visible = false;
    wmax_fams_bridge_labels.OnTop = true;
    wmax_fams_bridge_labels.MaxScale = .003;
    wmax_fams_bridge_labels.DisplayExternal=false;
    wmax_fams_bridge_labels.DisplayInternal=true;

  wmax_fams_dam = new WMSLAYER2('Dams (Maximo)',HostName_SITES,MapService_SITES,"max_fams_dam,max_fams_dam_highzoom");
    wmax_fams_dam.Visible = true;
    wmax_fams_dam.OnTop = true;
    wmax_fams_dam.Metadata = "<a href='../GeoComm/metadata/fams/fams_maximo_metadata.htm' target=_blank>BLM Metadata</a>";
    wmax_fams_dam.MaxScale = 1.0;
    wmax_fams_dam.legend = "dams.jpg";
    wmax_fams_dam.DisplayExternal=false;
    wmax_fams_dam.DisplayInternal=true;

  wmax_fams_dam_labels = new WMSLAYER2('Dams Labels (Maximo)',HostName_SITES,MapService_SITES,'max_fams_dam_labels');
    wmax_fams_dam_labels.Visible = false;
    wmax_fams_dam_labels.OnTop = true;
    wmax_fams_dam_labels.MaxScale = .003;
    wmax_fams_dam_labels.DisplayExternal=false;
    wmax_fams_dam_labels.DisplayInternal=true;

  wmax_fams_admin_site = new WMSLAYER2('Admin Sites (Maximo)',HostName_SITES,MapService_SITES,"max_fams_admin_site,max_fams_admin_site_highzoom");
    wmax_fams_admin_site.Visible = true;
    wmax_fams_admin_site.OnTop = true;
    wmax_fams_admin_site.Metadata = "<a href='../GeoComm/metadata/fams/fams_maximo_metadata.htm' target=_blank>BLM Metadata</a>";
    wmax_fams_admin_site.MaxScale = 1.0;
    wmax_fams_admin_site.legend = "admin_sites.jpg";
    wmax_fams_admin_site.DisplayExternal=false;
    wmax_fams_admin_site.DisplayInternal=true;

  wmax_fams_admin_site_labels = new WMSLAYER2('Admin Sites Labels (Maximo)',HostName_SITES,MapService_SITES,'max_fams_admin_site_labels');
    wmax_fams_admin_site_labels.Visible = false;
    wmax_fams_admin_site_labels.OnTop = true;
    wmax_fams_admin_site_labels.MaxScale = .003;
    wmax_fams_admin_site_labels.DisplayExternal=false;
    wmax_fams_admin_site_labels.DisplayInternal=true;

  wmax_fams_rec_site = new WMSLAYER2('Rec Sites (Maximo)',HostName_SITES,MapService_SITES,"max_fams_rec_site,max_fams_rec_site_highzoom");
    wmax_fams_rec_site.Visible = true;
    wmax_fams_rec_site.OnTop = true;
    wmax_fams_rec_site.Metadata = "<a href='../GeoComm/metadata/fams/fams_maximo_metadata.htm' target=_blank>BLM Metadata</a>";
    wmax_fams_rec_site.MaxScale = 1.0;
    wmax_fams_rec_site.legend = "Recreation_sites.jpg";
    wmax_fams_rec_site.DisplayExternal=false;
    wmax_fams_rec_site.DisplayInternal=true;

  wmax_fams_rec_site_labels = new WMSLAYER2('Rec Sites Labels (Maximo)',HostName_SITES,MapService_SITES,'max_fams_rec_site_labels');
    wmax_fams_rec_site_labels.Visible = false;
    wmax_fams_rec_site_labels.OnTop = true;
    wmax_fams_rec_site_labels.MaxScale = .003;
    wmax_fams_rec_site_labels.DisplayExternal=false;
    wmax_fams_rec_site_labels.DisplayInternal=true;

  wmax_fams_building = new WMSLAYER2('Buildings (Maximo)',HostName_SITES,MapService_SITES,"max_fams_building,max_fams_building_highzoom");
    wmax_fams_building.Visible = true;
    wmax_fams_building.OnTop = true;
    wmax_fams_building.Metadata = "<a href='../GeoComm/metadata/fams/fams_maximo_metadata.htm' target=_blank>BLM Metadata</a>";
    wmax_fams_building.MaxScale = 1.0;
    wmax_fams_building.legend = "buildings.jpg";
    wmax_fams_building.DisplayExternal=false;
    wmax_fams_building.DisplayInternal=true;

  wmax_fams_building_labels = new WMSLAYER2('Buildings Labels (Maximo)',HostName_SITES,MapService_SITES,'max_fams_building_labels');
    wmax_fams_building_labels.Visible = false;
    wmax_fams_building_labels.OnTop = true;
    wmax_fams_building_labels.MaxScale = .003;
    wmax_fams_building_labels.DisplayExternal=false;
    wmax_fams_building_labels.DisplayInternal=true;


////////obsolete ////////////

  wfams_sites_dams = new WMSLAYER2('Dams',HostName_SITES,MapService_SITES,"Dams,Dams_highzoom");
    wfams_sites_dams.Visible = true;
    wfams_sites_dams.OnTop = true;
    wfams_sites_dams.legend = "dams.jpg";
    wfams_sites_dams.Summary = "FAMS Dam sites.  Last updated in April 2008.";
    wfams_sites_dams.label_columns = "name";
    wfams_sites_dams.featuretype = "point";
    wfams_sites_dams.tablename = dbprefix + "FAMS";
    wfams_sites_dams.DisplayExternal=false;
    wfams_sites_dams.DisplayInternal=false;

  wfams_sites_dams_labels = new WMSLAYER2('Dams Labels',HostName_SITES,MapService_SITES,'dams_labels');
    wfams_sites_dams_labels.OnTop = true;
    wfams_sites_dams_labels.MaxScale = .003;
    wfams_sites_dams_labels.Summary = "FAMS Dams sites.  Last updated in April 2008.";
    wfams_sites_dams_labels.DisplayExternal=false;
    wfams_sites_dams_labels.DisplayInternal=false;    

  wfams_sites_bridges = new WMSLAYER2('Bridges',HostName_SITES,MapService_SITES,"Bridges,Bridges_highzoom");
    wfams_sites_bridges.Visible = true;
    wfams_sites_bridges.OnTop = true;
    wfams_sites_bridges.legend = "bridges.jpg";
    wfams_sites_bridges.Summary = "FAMS Bridge sites.  Last updated in April 2008.";
    wfams_sites_bridges.label_columns = "name";
    wfams_sites_bridges.featuretype = "point";
    wfams_sites_bridges.tablename = dbprefix + "FAMS";
    wfams_sites_bridges.DisplayExternal=false;
    wfams_sites_bridges.DisplayInternal=false;

  wfams_sites_bridges_labels = new WMSLAYER2('Bridges Labels',HostName_SITES,MapService_SITES,'bridges_labels');
    wfams_sites_bridges_labels.OnTop = true;
    wfams_sites_bridges_labels.MaxScale = .003;
    wfams_sites_bridges_labels.Summary = "FAMS Bridges sites.  Last updated in April 2008.";
    wfams_sites_bridges_labels.DisplayExternal=false;
    wfams_sites_bridges_labels.DisplayInternal=false;

  wfams_sites_camp = new WMSLAYER2('Campgrounds',HostName_SITES,MapService_SITES,"Campgrounds,Campgrounds_highzoom");
    wfams_sites_camp.Visible = true;
    wfams_sites_camp.OnTop = true;
    wfams_sites_camp.legend = "campgrounds.jpg";
    wfams_sites_camp.Summary = "FAMS Campground sites.  Last updated in April 2008.";
    wfams_sites_camp.label_columns = "name";
    wfams_sites_camp.featuretype = "point";
    wfams_sites_camp.tablename = dbprefix + "FAMS";
    wfams_sites_camp.DisplayExternal=false;
    wfams_sites_camp.DisplayInternal=false;

  wfams_sites_camp_labels = new WMSLAYER2('Campgrounds Labels',HostName_SITES,MapService_SITES,'campgrounds_labels');
    wfams_sites_camp_labels.OnTop = true;
    wfams_sites_camp_labels.MaxScale = .003;
    //wfams_sites_camp_labels.legend = "campgrounds_labels.jpg";
    wfams_sites_camp_labels.Summary = "FAMS Campground sites.  Last updated in April 2008.";
    wfams_sites_camp_labels.DisplayExternal=false;
    wfams_sites_camp_labels.DisplayInternal=false;

  wfams_sites_building = new WMSLAYER2('Buildings',HostName_SITES,MapService_SITES,"Buildings,Buildings_highzoom");
    wfams_sites_building.Visible = true;
    wfams_sites_building.OnTop = true;
    wfams_sites_building.legend = "buildings.jpg";
    wfams_sites_building.Summary = "FAMS Building sites.  Last updated in April 2008.";
    wfams_sites_building.label_columns = "name";
    wfams_sites_building.featuretype = "point";
    wfams_sites_building.tablename = dbprefix + "FAMS";
    wfams_sites_building.DisplayExternal=false;
    wfams_sites_building.DisplayInternal=false;

  wfams_sites_building_labels = new WMSLAYER2('Buildings Labels',HostName_SITES,MapService_SITES,'buildings_labels');
    wfams_sites_building_labels.OnTop = true;
    wfams_sites_building_labels.MaxScale = .003;
    //wfams_sites_building_labels.legend = "building_labels.jpg";
    wfams_sites_building_labels.Summary = "FAMS Building sites.  Last updated in April 2008.";
    wfams_sites_building_labels.DisplayExternal=false;
    wfams_sites_building_labels.DisplayInternal=false;

  wfams_sites_rec = new WMSLAYER2('Recreation Sites',HostName_SITES,MapService_SITES,"Recreation Sites,Recreation Sites_highzoom");
    wfams_sites_rec.Visible = true;
    wfams_sites_rec.OnTop = true;
    wfams_sites_rec.legend = "Recreation_sites.jpg";
    wfams_sites_rec.Summary = "FAMS Recreation sites.  Last updated in April 2008.";
    wfams_sites_rec.label_columns = "name";
    wfams_sites_rec.featuretype = "point";
    wfams_sites_rec.tablename = dbprefix + "FAMS";
    wfams_sites_rec.DisplayExternal=false;
    wfams_sites_rec.DisplayInternal=false;
    
  wfams_sites_rec_labels = new WMSLAYER2('Recreation Sites Labels',HostName_SITES,MapService_SITES,'rec_sites_labels');
    wfams_sites_rec_labels.OnTop = true;
    wfams_sites_rec_labels.MaxScale = .003;
    //wfams_sites_rec_labels.legend = "recreation_site_labels.jpg";
    wfams_sites_rec_labels.Summary = "FAMS Recreation sites.  Last updated in April 2008.";
    wfams_sites_rec_labels.DisplayExternal=false;
    wfams_sites_rec_labels.DisplayInternal=false;    
   
  wfams_sites_adm = new WMSLAYER2('Admin Sites',HostName_SITES,MapService_SITES,"Admin Sites,Admin Sites_highzoom");
    wfams_sites_adm.Visible = true;
    wfams_sites_adm.OnTop = true;
    wfams_sites_adm.legend = "admin_sites.jpg";
    wfams_sites_adm.Summary = "FAMS Admin sites.  Last updated in April 2008.";
    wfams_sites_adm.label_columns = "name";
    wfams_sites_adm.featuretype = "point";
    wfams_sites_adm.tablename = dbprefix + "FAMS";
    wfams_sites_adm.DisplayExternal=false;
    wfams_sites_adm.DisplayInternal=false;

  wfams_sites_adm_labels = new WMSLAYER2('Admin Sites Labels',HostName_SITES,MapService_SITES,'admin_sites_labels');
    wfams_sites_adm_labels.OnTop = true;
    wfams_sites_adm_labels.MaxScale = .003;
    wfams_sites_adm_labels.Summary = "FAMS Admin sites.  Last updated in April 2008.";
    wfams_sites_adm_labels.DisplayExternal=false;
    wfams_sites_adm_labels.DisplayInternal=false;    


/////obsolete /////

  wblm_amm_type_labels = new WMSLAYER2('Site Type - Labels',HostName_SITES,MapService_SITES,'none');
    wblm_amm_type_labels.OnTop = true;
    wblm_amm_type_labels.MaxScale = .0005;
    wblm_amm_type_labels.legend = "amm_type_labels.JPG";
    wblm_amm_type_labels.Summary = "Mine Site Type Labels - Displays the type of the Mine Site";

  wblm_amm_mils_coal = new WMSLAYER2('USGS - MILS/MRDS Coal',HostName_SITES,MapService_SITES,"amm_mils_coal");
    wblm_amm_mils_coal.OnTop = true;
    wblm_amm_mils_coal.legend = "amm_mrds_coal.JPG";
    wblm_amm_mils_coal.MaxScale = .006;
    wblm_amm_mils_coal.Summary = "U.S. Geological Survey - Mineral Resources Data System ";
    wblm_amm_mils_coal.Metadata = "<br><a href = 'http://mrdata.usgs.gov/' target = _blank>http://mrdata.usgs.gov/</a><br>";

  wblm_amm_mils_coal_labels = new WMSLAYER2('USGS - MILS/MRDS Coal Labels',HostName_SITES,MapService_SITES,"amm_mils_coal_labels");
   wblm_amm_mils_coal_labels.OnTop = true;
   wblm_amm_mils_coal_labels.MaxScale = .003;
   wblm_amm_mils_coal_labels.Summary = "U.S. Geological Survey - Mineral Resources Data System ";
   wblm_amm_mils_coal_labels.Metadata = "<br><a href = 'http://mrdata.usgs.gov/' target = _blank>http://mrdata.usgs.gov/</a><br>";
  
  wblm_amm_coal = new WMSLAYER2('BLM - Coal',HostName_SITES,MapService_SITES,"amm_coal_status,amm_coal");
    wblm_amm_coal.OnTop = true;
    wblm_amm_coal.Visible = true;
    wblm_amm_coal.legend = "amm_blm_coal.JPG";
    wblm_amm_coal.Summary = "Bureau of Land Management Abandoned Mines<br><a href = 'http://www.blm.gov/wo/st/en/prog/more/Abandoned_Mine_Lands.html' target=_blank> http://www.blm.gov/wo/st/en/prog/more/Abandoned_Mine_Lands.html</a><br>"+"<br>This layer is displayed based on the 'status' of the mine.  Visit the <a href=\"http://www.blm.gov/wo/st/en/prog/more/Abandoned_Mine_Lands.html\" target=_blank>Public AML Site</a> for more information.";
    wblm_amm_coal.Metadata = "<a href = '../GeoComm/metadata/amsc/Abandoned_Mines_Metadata.htm' target=_blank>BLM Metadata</a><br>";
    wblm_amm_coal.DisplayExternal=true;
    wblm_amm_coal.DisplayInternal=true;

  wblm_amm_coal_labels = new WMSLAYER2('BLM - Coal Labels',HostName_SITES,MapService_SITES,"amm_coal_labels");
    wblm_amm_coal_labels.OnTop = true;
    wblm_amm_coal_labels.MaxScale = .003;
    wblm_amm_coal_labels.Summary = "";
    wblm_amm_coal_labels.DisplayExternal=true;
    wblm_amm_coal_labels.DisplayInternal=true;


  wblm_amsc_all_id = new WMSLAYER2('Abandoned Mine Sites',HostName_SITES,MapService_SITES,"amsc_all");
    wblm_amsc_all_id.OnTop = true;
    wblm_amsc_all_id.MaxScale = 0;
    wblm_amsc_all_id.label_columns = "Name Type";
    wblm_amsc_all_id.featuretype = "point";
    wblm_amsc_all_id.tablename = dbprefix + "amsc";
    wblm_amsc_all_id.hideOnTOC = true;

  wblm_scm = new WMSLAYER2('HazMat Sites',HostName_SITES,MapService_SITES,'site_cleanup_sites_status,site_cleanup_sites');
    wblm_scm.OnTop = true;
    wblm_scm.Visible = true;
    wblm_scm.legend = "hazmat_sites.jpg";
    wblm_scm.Metadata = "<a href = '../GeoComm/metadata/amsc/Abandoned_Mines_HazMat_Internal_Metadata.htm' target=_blank>BLM Metadata</a>";
    wblm_scm.Summary = "HazMat sites from the Site Cleanup Module of PRIS.";
    wblm_scm.DisplayExternal=false;
    wblm_scm.DisplayInternal=true;     

  wblm_amm_osm_coal = new WMSLAYER2('OSM/AMLIS - Coal',HostName_SITES,MapService_SITES,"amm_osm_coal");
    wblm_amm_osm_coal.OnTop = true;
    wblm_amm_osm_coal.MaxScale = .006;
    wblm_amm_osm_coal.legend = "amm_osm_coal.JPG";
    wblm_amm_osm_coal.Summary = "Office of Surface Mining - Abandoned Mine Land Inventory System";
    wblm_amm_osm_coal.Metadata = "<br><a href = 'http://www.osmre.gov/osmaml.htm' target = _blank>http://www.osmre.gov/osmaml.htm</a><br>";

  wblm_amm_osm_coal_labels = new WMSLAYER2('OSM/AMLIS - Coal Labels',HostName_SITES,MapService_SITES,"amm_osm_coal_labels");
   wblm_amm_osm_coal_labels.OnTop = true;
   wblm_amm_osm_coal_labels.MaxScale = .003;
   wblm_amm_osm_coal_labels.Summary = "Office of Surface Mining - Abandoned Mine Land Inventory System";
   wblm_amm_osm_coal_labels.Metadata = "<br><a href = 'http://www.osmre.gov/osmaml.htm' target = _blank>http://www.osmre.gov/osmaml.htm</a><br>";

  wblm_amm_mils_noncoal = new WMSLAYER2('USGS - MILS/MRDS Non Coal',HostName_SITES,MapService_SITES,"amm_mils_noncoal");
    wblm_amm_mils_noncoal.OnTop = true;
    wblm_amm_mils_noncoal.legend = "amm_mrds_noncoal.JPG";
    wblm_amm_mils_noncoal.MaxScale = .006;
    wblm_amm_mils_noncoal.Summary = "U.S. Geological Survey - Mineral Resources Data System ";
    wblm_amm_mils_noncoal.Metadata = "<br><a href = 'http://mrdata.usgs.gov/' target = _blank>http://mrdata.usgs.gov/</a><br>";

  wblm_amm_mils_noncoal_labels = new WMSLAYER2('USGS - MILS/MRDS Non Coal Labels',HostName_SITES,MapService_SITES,"amm_mils_noncoal_labels");
   wblm_amm_mils_noncoal_labels.OnTop = true;
   wblm_amm_mils_noncoal_labels.MaxScale = .003;
   wblm_amm_mils_noncoal_labels.Summary = "U.S. Geological Survey - Mineral Resources Data System ";
   wblm_amm_mils_noncoal_labels.Metadata = "<br><a href = 'http://mrdata.usgs.gov/' target = _blank>http://mrdata.usgs.gov/</a><br>";

  wblm_amm_epa = new WMSLAYER2('EPA - CERCLIS',HostName_SITES,MapService_SITES,"amm_epa");
    wblm_amm_epa.OnTop = true;
    wblm_amm_epa.MaxScale = .006;
    wblm_amm_epa.legend = "amm_epa.JPG";
    wblm_amm_epa.Summary = "U.S. Environmental Protection Agency - Comprehensive Environmental Response, Compensation and Liability Information System ";
    wblm_amm_epa.Metadata = "<br><a href = 'http://www.epa.gov/superfund/programs/aml/' target=_blank>http://www.epa.gov/superfund/programs/aml/</a><br>";

  wblm_amm_epa_labels = new WMSLAYER2('EPA - CERCLIS Labels',HostName_SITES,MapService_SITES,"amm_epa_labels");
   wblm_amm_epa_labels.OnTop = true;
   wblm_amm_epa_labels.MaxScale = .003;
   wblm_amm_epa.Summary = "U.S. Environmental Protection Agency - Comprehensive Environmental Response, Compensation and Liability Information System ";
   wblm_amm_epa.Metadata = "<br><a href = 'http://www.epa.gov/superfund/programs/aml/' target=_blank>http://www.epa.gov/superfund/programs/aml/</a><br>";

  wblm_amm = new WMSLAYER2('Abandoned Mine Sites',HostName_SITES,MapService_SITES,"amm_all");
    wblm_amm.OnTop = true;
    wblm_amm.MaxScale = 0;
    wblm_amm.label_columns = "site_name";
    wblm_amm.featuretype = "point";
    wblm_amm.tablename = dbprefix + "amm";
    wblm_amm.hideOnTOC = true;

  wblm_amm_epa_uranium = new WMSLAYER2('EPA - Uranium',HostName_SITES,MapService_SITES,"amm_epa_uranium");
    wblm_amm_epa_uranium.OnTop = true;
    wblm_amm_epa_uranium.MaxScale = .006;
    wblm_amm_epa_uranium.legend = "amm_epa_uranium.JPG";
    wblm_amm_epa_uranium.Summary = "U.S. Environmental Protection Agency - Comprehensive Environmental Response, Compensation and Liability Information System ";
    wblm_amm_epa_uranium.Metadata = "<br><a href = 'http://www.epa.gov/superfund/programs/aml/' target=_blank>http://www.epa.gov/superfund/programs/aml/</a><br>";

  wblm_amm_epa_uranium_labels = new WMSLAYER2('EPA - Uranium Labels',HostName_SITES,MapService_SITES,"amm_epa_uranium_labels");
    wblm_amm_epa_uranium_labels.OnTop = true;
    wblm_amm_epa_uranium_labels.MaxScale = .003;
    wblm_amm_epa_uranium.Summary = "U.S. Environmental Protection Agency - Comprehensive Environmental Response, Compensation and Liability Information System ";
    wblm_amm_epa_uranium_labels.Metadata = "<br><a href = 'http://www.epa.gov/superfund/programs/aml/' target=_blank>http://www.epa.gov/superfund/programs/aml/</a><br>";

  wblm_amm_msha_coal = new WMSLAYER2('MSHA - Coal',HostName_SITES,MapService_SITES,"amm_msha_coal");
    wblm_amm_msha_coal.OnTop = true;
    wblm_amm_msha_coal.MaxScale = .006;
    wblm_amm_msha_coal.legend = "amm_msha_coal.JPG";
    wblm_amm_msha_coal.Summary = "Mine Safety and Health Administration";
    wblm_amm_msha_coal.Metadata = "<br><a href = 'http://www.msha.gov/STATS/PART50/p50y2k/y2kmif.HTM' target = _blank>http://www.msha.gov/STATS/PART50/p50y2k/y2kmif.HTM</a><br>";

  wblm_amm_msha_coal_labels = new WMSLAYER2('MSHA - Coal Labels',HostName_SITES,MapService_SITES,"amm_msha_coal_labels");
   wblm_amm_msha_coal_labels.OnTop = true;
   wblm_amm_msha_coal_labels.MaxScale = .003;
   wblm_amm_msha_coal_labels.Summary = "Mine Safety and Health Administration";
   wblm_amm_msha_coal_labels.Metadata = "<br><a href = 'http://www.msha.gov/STATS/PART50/p50y2k/y2kmif.HTM' target = _blank>http://www.msha.gov/STATS/PART50/p50y2k/y2kmif.HTM</a><br>";

  wblm_amm_name_labels = new WMSLAYER2('Site Name - Labels',HostName_SITES,MapService_SITES,'none');
    wblm_amm_name_labels.OnTop = true;
    wblm_amm_name_labels.MaxScale = .0005;
    wblm_amm_name_labels.legend = "amm_name_labels.JPG";
    wblm_amm_name_labels.Summary = "Mine Site Name Labels - Displays the name of the Mine Site";

  wblm_amm_osm_noncoal = new WMSLAYER2('OSM/AMLIS - Non Coal',HostName_SITES,MapService_SITES,"amm_osm_noncoal");
    wblm_amm_osm_noncoal.OnTop = true;
    wblm_amm_osm_noncoal.MaxScale = .006;
    wblm_amm_osm_noncoal.legend = "amm_osm_noncoal.JPG";
    wblm_amm_osm_noncoal.Summary = "Office of Surface Mining - Abandoned Mine Land Inventory System";
    wblm_amm_osm_noncoal.Metadata = "<br><a href = 'http://www.osmre.gov/osmaml.htm' target = _blank>http://www.osmre.gov/osmaml.htm</a><br>";

  wblm_amm_osm_noncoal_labels = new WMSLAYER2('OSM/AMLIS - Non Coal Labels',HostName_SITES,MapService_SITES,"amm_osm_noncoal_labels");
    wblm_amm_osm_noncoal_labels.OnTop = true;
    wblm_amm_osm_noncoal_labels.MaxScale = .003;
    wblm_amm_osm_noncoal_labels.Summary = "Office of Surface Mining - Abandoned Mine Land Inventory System";
    wblm_amm_osm_noncoal_labels.Metadata = "<br><a href = 'http://www.osmre.gov/osmaml.htm' target = _blank>http://www.osmre.gov/osmaml.htm</a><br>";

  wSNPLMA_sites = new WMSLAYER2('SNPLMA',HostName_SITES,MapService_SITES,"SNPLMA");
    wSNPLMA_sites.Visible = true;
    wSNPLMA_sites.OnTop = true;
    wSNPLMA_sites.label_columns = "name";
    wSNPLMA_sites.featuretype = "point";
    wSNPLMA_sites.tablename = dbprefix + "SNPLMA";

  wblm_amm_msha_noncoal = new WMSLAYER2('MSHA - Non Coal',HostName_SITES,MapService_SITES,"amm_msha_noncoal");
    wblm_amm_msha_noncoal.OnTop = true;
    wblm_amm_msha_noncoal.MaxScale = 0.006;
    wblm_amm_msha_noncoal.legend = "amm_msha_noncoal.JPG";
    wblm_amm_msha_noncoal.Summary = "Mine Safety and Health Administration";
    wblm_amm_msha_noncoal.Metadata = "<br><a href = 'http://www.msha.gov/STATS/PART50/p50y2k/y2kmif.HTM' target = _blank>http://www.msha.gov/STATS/PART50/p50y2k/y2kmif.HTM</a><br>";

  wblm_amm_msha_noncoal_labels = new WMSLAYER2('MSHA - Non Coal Labels',HostName_SITES,MapService_SITES,"amm_msha_noncoal_labels");
   wblm_amm_msha_noncoal_labels.OnTop = true;
   wblm_amm_msha_noncoal_labels.MaxScale = 0.003;
   wblm_amm_msha_noncoal_labels.Summary = "Mine Safety and Health Administration";
   wblm_amm_msha_noncoal_labels.Metadata = "<br><a href = 'http://www.msha.gov/STATS/PART50/p50y2k/y2kmif.HTM' target = _blank>http://www.msha.gov/STATS/PART50/p50y2k/y2kmif.HTM</a><br>";

  wblm_amm_toms = new WMSLAYER2('CA - TOMS',HostName_SITES,MapService_SITES,"amm_toms");
    wblm_amm_toms.OnTop = true;
    wblm_amm_toms.MaxScale = 0.006;
    wblm_amm_toms.legend = "amm_ca_toms.JPG";
    wblm_amm_toms.Summary = "California - Topographically Occurring Mine Symbols";
    wblm_amm_toms.Metadata = "<br><a href = 'http://www.consrv.ca.gov/OMR/abandoned_mine_lands/toms/index.htm' target = _blank>http://www.consrv.ca.gov/OMR/abandoned_mine_lands/toms/index.htm</a><br>";

  wblm_amm_toms_labels = new WMSLAYER2('CA - TOMS Labels',HostName_SITES,MapService_SITES,"amm_toms_labels");
   wblm_amm_toms_labels.OnTop = true;
   wblm_amm_toms_labels.MaxScale = 0.003;
   wblm_amm_toms_labels.Summary = "California - Topographically Occurring Mine Symbols";
   wblm_amm_toms_labels.Metadata = "<br><a href = 'http://www.consrv.ca.gov/OMR/abandoned_mine_lands/toms/index.htm' target = _blank>http://www.consrv.ca.gov/OMR/abandoned_mine_lands/toms/index.htm</a><br>";

  wblm_amm_gnis = new WMSLAYER2('USGS/GNIS',HostName_SITES,MapService_SITES,"amm_gnis");
    wblm_amm_gnis.OnTop = true;
    wblm_amm_gnis.legend = "amm_usgs_gnis.JPG";
    wblm_amm_gnis.MaxScale = 0.006;
    wblm_amm_gnis.Summary = "U.S. Geological Survey - Geographic Names Information System";
    wblm_amm_gnis.Metadata = "<br><a href = 'http://geonames.usgs.gov/domestic/index.html ' target = _blank>http://geonames.usgs.gov/domestic/index.html </a><br>";

  wblm_amm_gnis_labels = new WMSLAYER2('USGS/GNIS Labels',HostName_SITES,MapService_SITES,"amm_gnis_labels");
   wblm_amm_gnis_labels.OnTop = true;
   wblm_amm_gnis_labels.MaxScale = 0.003;
   wblm_amm_gnis_labels.Summary = "U.S. Geological Survey - Geographic Names Information System";
   wblm_amm_gnis_labels.Metadata = "<br><a href = 'http://geonames.usgs.gov/domestic/index.html ' target = _blank>http://geonames.usgs.gov/domestic/index.html </a><br>";

  wblm_wat303d_l = new WMSLAYER2('Section 303 Listed Waters',HostName_SITES,MapService_SITES,"wat303d_l");
    wblm_wat303d_l.OnTop = true;
    wblm_wat303d_l.MaxScale = 0.006;
    wblm_wat303d_l.legend = "section303_listed_waters.JPG";
    wblm_wat303d_l.label_columns = "rch_code";
    wblm_wat303d_l.featuretype = "line";
    wblm_wat303d_l.tablename = dbprefix + "wat303d_l";

  wblm_amm_noncoal = new WMSLAYER2('BLM - Non Coal',HostName_SITES,MapService_SITES,"amm_noncoal_status,amm_noncoal");
    wblm_amm_noncoal.OnTop = true;
    wblm_amm_noncoal.Visible = true;
    wblm_amm_noncoal.legend = "amm_blm_noncoal.JPG";
    wblm_amm_noncoal.Summary = "Bureau of Land Management Abandoned Mines<br><a href = 'http://www.blm.gov/wo/st/en/prog/more/Abandoned_Mine_Lands.html' target=_blank> http://www.blm.gov/wo/st/en/prog/more/Abandoned_Mine_Lands.html</a><br>"+"<br>This layer is displayed based on the 'status' of the mine.  Visit the <a href=\"http://www.blm.gov/wo/st/en/prog/more/Abandoned_Mine_Lands.html\" target=_blank>Public AML Site</a> for more information.";
    wblm_amm_noncoal.Metadata = "<a href = '../GeoComm/metadata/amsc/Abandoned_Mines_Metadata.htm' target=_blank>BLM Metadata</a><br>";
    wblm_amm_noncoal.DisplayExternal=true;
    wblm_amm_noncoal.DisplayInternal=true;

  wblm_amm_noncoal_labels = new WMSLAYER2('BLM - Non Coal Labels',HostName_SITES,MapService_SITES,"amm_noncoal_labels");
    wblm_amm_noncoal_labels.OnTop = true;
    wblm_amm_noncoal_labels.MaxScale = 0.003;
    wblm_amm_noncoal_labels.Summary = "Bureau of Land Management Abandoned Mines";
    wblm_amm_noncoal_labels.DisplayExternal=true;
    wblm_amm_noncoal_labels.DisplayInternal=true;

  wSNPLMA_sites_labels = new WMSLAYER2('SNPLMA Labels',HostName_SITES,MapService_SITES,'SNPLMA_labels');
    wSNPLMA_sites_labels.Visible = true;
    wSNPLMA_sites_labels.OnTop = true;
    wSNPLMA_sites_labels.MaxScale = 0.003;

  wblm_amm_usfs = new WMSLAYER2('USFS - AML',HostName_SITES,MapService_SITES,"amm_usfs");
    wblm_amm_usfs.OnTop = true;
    wblm_amm_usfs.MaxScale = 0.006;
    wblm_amm_usfs.legend = "amm_usfs_aml.JPG";
    wblm_amm_usfs.Summary = "USDA Forest Service - Abandoned Mine Land Program";
    wblm_amm_usfs.Metadata = "<br><a href = 'http://www.fs.fed.us/geology/mgm_reclamation.html' target = _blank>http://www.fs.fed.us/geology/mgm_reclamation.html</a><br>";

  wblm_amm_usfs_labels = new WMSLAYER2('USFS - AML Labels',HostName_SITES,MapService_SITES,"amm_usfs_labels");
   wblm_amm_usfs_labels.OnTop = true;
   wblm_amm_usfs_labels.MaxScale = 0.003;
   wblm_amm_usfs_labels.Summary = "USDA Forest Service - Abandoned Mine Land Program";
   wblm_amm_usfs_labels.Metadata = "<br><a href = 'http://www.fs.fed.us/geology/mgm_reclamation.html' target = _blank>http://www.fs.fed.us/geology/mgm_reclamation.html</a><br>";

  wblm_imparied_ws = new WMSLAYER2('Impaired Watersheds',HostName_SITES,MapService_SITES,"impaired_ws");
    wblm_imparied_ws.OnTop = true;
    wblm_imparied_ws.legend = "impaired_watersheds.JPG";
    wblm_imparied_ws.label_columns = "reg_name";
    wblm_imparied_ws.featuretype = "polygon";
    wblm_imparied_ws.tablename = dbprefix + "impaired_ws";

  wblm_scm_labels = new WMSLAYER2('HazMat Sites Labels',HostName_SITES,MapService_SITES,'site_cleanup_site_labels');
    wblm_scm_labels.OnTop = true;
    wblm_scm_labels.MaxScale = .003;
    //wblm_scm_labels.legend = "hazmat_sites_labels.jpg";
    wblm_scm_labels.Summary = "HazMat sites from the Site Cleanup Module of PRIS.  Last updated in January 2005.";
    wblm_scm_labels.DisplayExternal=false;
    wblm_scm_labels.DisplayInternal=true;

  wfws = new WMSLAYER2('U.S. Fish & Wildlife',HostName_SMA,MapService_SMA,"FWS");
    wfws.Visible = true;
    wfws.OnTop = true;
    wfws.legend = "sma_fws.jpg";
    wfws.Metadata = "<a href = '../GeoComm/metadata/sma/fedland_metadata.htm' target=_blank>BLM Metadata</a>";

  wbor_labels = new WMSLAYER2('Bureau of Reclamation Labels',HostName_SMA,MapService_SMA,"BOR_labels");
    wbor_labels.OnTop = true;
    wbor_labels.Visible = true;
    wbor_labels.MaxScale = .03;

  wblm_mon = new WMSLAYER2('BLM National Monuments',HostName_SMA,MapService_SMA,"BLM_national_monuments");
    wblm_mon.OnTop = true;
    wblm_mon.Visible = false;
    wblm_mon.legend = "sma_blm_nm.jpg";
    wblm_mon.Metadata = "<a href = '../GeoComm/metadata/sma/fedland_metadata.htm' target=_blank>BLM Metadata</a>";
    wblm_mon.DisplayExternal=true;
    wblm_mon.DisplayInternal=true;

  wusfs = new WMSLAYER2('U.S. Forest Service',HostName_SMA,MapService_SMA,"national_forests,national_forests_dissolved");
    wusfs.Visible = true;
    wusfs.OnTop = true;
    wusfs.Metadata = "<a href = '../GeoComm/metadata/sma/fedland_metadata.htm' target=_blank>BLM Metadata</a>";
    wusfs.legend = "sma_usfs.jpg";

  wstate = new WMSLAYER2('State',HostName_SMA,MapService_SMA,'STATE');
    wstate.Visible = true;
    wstate.OnTop = true;
    wstate.legend = "sma_state.jpg";
    wstate.Metadata = "<a href = '../GeoComm/metadata/sma/fedland_metadata.htm' target=_blank>BLM Metadata</a>";

wnps = new WMSLAYER2('National Park Service',HostName_SMA,MapService_SMA,"national_parks");
    wnps.Visible = true;
    wnps.OnTop = true;
    wnps.legend = "sma_nps.jpg";
    wnps.Metadata = "<a href = '../GeoComm/metadata/sma/fedland_metadata.htm' target=_blank>BLM Metadata</a>";

  wbor = new WMSLAYER2('Bureau of Reclamation',HostName_SMA,MapService_SMA,"BOR");
    wbor.Visible = true;
    wbor.OnTop = true;
    wbor.MaxScale = .03;
    wbor.legend = "sma_bor.jpg";
    wbor.Metadata = "<a href = '../GeoComm/metadata/sma/fedland_metadata.htm' target=_blank>BLM Metadata</a>";

  wdod = new WMSLAYER2('DOD - Military',HostName_SMA,MapService_SMA,"DOD");
    wdod.Visible = true;
    wdod.OnTop = true;
    wdod.legend = "sma_dod.jpg";
    wdod.Metadata = "<a href = '../GeoComm/metadata/sma/fedland_metadata.htm' target=_blank>BLM Metadata</a>";

  wlocal_labels = new WMSLAYER2('State/County/City Labels',HostName_SMA,MapService_SMA,"LOCAL_labels");
    wlocal_labels.OnTop = true;
    wlocal_labels.Visible = true;
    wlocal_labels.MaxScale = .03;

  wblm_mon_labels = new WMSLAYER2('BLM National Monuments Labels',HostName_SMA,MapService_SMA,"BLM_national_monument_labels");
    wblm_mon_labels.OnTop = true;
    wblm_mon_labels.Visible = true;
    wblm_mon_labels.MaxScale = .03;
    wblm_mon_labels.DisplayExternal=true;
    wblm_mon_labels.DisplayInternal=true;    

  wfws_labels = new WMSLAYER2('U.S. Fish & Wildlife Labels',HostName_SMA,MapService_SMA,"FWS_labels");
    wfws_labels.OnTop = true;
    wfws_labels.Visible = true;
    wfws_labels.MaxScale = .03;

  wdod_labels = new WMSLAYER2('DOD - Military Labels',HostName_SMA,MapService_SMA,"DOD_labels");
    wdod_labels.OnTop = true;
    wdod_labels.Visible = true;
    wdod_labels.MaxScale = .03;

  wbnkhd_j_labels = new WMSLAYER2('Bankhead Jones Labels',HostName_SMA,MapService_SMA,"BLM_bankhead_jones_labels");
    wbnkhd_j_labels.OnTop = true;
    wbnkhd_j_labels.Visible = true;
    wbnkhd_j_labels.MaxScale = .03;
    wbnkhd_j_labels.DisplayExternal=true;
    wbnkhd_j_labels.DisplayInternal=true;    

  wblm_wa_labels = new WMSLAYER2('BLM Wilderness Areas Labels',HostName_SMA,MapService_SMA,"BLM_wilderness_areas_labels");
    wblm_wa_labels.OnTop = true;
    wblm_wa_labels.Visible = true;
    wblm_wa_labels.MaxScale = .03;
    wblm_wa_labels.DisplayExternal=true;
    wblm_wa_labels.DisplayInternal=true;    

  wother_labels = new WMSLAYER2('Other Federal Labels',HostName_SMA,MapService_SMA,"OTHER_labels");
    wother_labels.OnTop = true;
    wother_labels.Visible = true;
    wother_labels.MaxScale = .03;

  wbia = new WMSLAYER2('Bureau of Indian Affairs',HostName_SMA,MapService_SMA,"BIA");
    wbia.Visible = true;
    wbia.OnTop = true;
    wbia.legend = "sma_bia.jpg";
    wbia.Metadata = "<a href = '../GeoComm/metadata/sma/fedland_metadata.htm' target=_blank>BLM Metadata</a>";

  wblm_wa = new WMSLAYER2('BLM Wilderness Areas',HostName_SMA,MapService_SMA,"BLM_wilderness_areas");
    wblm_wa.Visible = true;
    wblm_wa.OnTop = true;
    wblm_wa.MaxScale = .03;
    wblm_wa.legend = "sma_blm_wa.jpg";
    wblm_wa.Metadata = "<a href = '../GeoComm/metadata/sma/fedland_metadata.htm' target=_blank>BLM Metadata</a>";
    wblm_wa.DisplayExternal=true;
    wblm_wa.DisplayInternal=true;

  wlocal = new WMSLAYER2('State/County/City',HostName_SMA,MapService_SMA,"LOCAL");
    wlocal.OnTop = true;
    wlocal.Visible = true;
    wlocal.legend = "sma_local.jpg";
    wlocal.Summary = "Wildlife, Parks, Outdoor Recreation Areas.  ";
    wlocal.Metadata = "<a href = '../GeoComm/metadata/sma/fedland_metadata.htm' target=_blank>BLM Metadata</a>";

  wblm = new WMSLAYER2('BLM',HostName_SMA,MapService_SMA,"BLM_lands_dissolved,BLM_lands");
    wblm.Visible = true;
    wblm.OnTop = true;
    wblm.legend = "sma_blm.jpg";
    wblm.Metadata = "<a href = '../GeoComm/metadata/sma/fedland_metadata.htm' target=_blank>BLM Metadata</a>";
    wblm.DisplayExternal=true;
    wblm.DisplayInternal=true;

  wusfs_labels = new WMSLAYER2('U.S. Forest Service - Labels',HostName_SMA,MapService_SMA,"national_forest_labels");
    wusfs_labels.Visible = true;
    wusfs_labels.OnTop = true;
    wusfs_labels.MaxScale = .03;

  wblm_nca = new WMSLAYER2('BLM National Conservation Areas',HostName_SMA,MapService_SMA,"BLM_national_conservation_areas");
    wblm_nca.OnTop = true;
    wblm_nca.legend = "sma_blm_nca.jpg";
    wblm_nca.Metadata = "<a href = '../GeoComm/metadata/sma/fedland_metadata.htm' target=_blank>BLM Metadata</a>";
    wblm_nca.DisplayExternal=true;
    wblm_nca.DisplayInternal=true;

  wother = new WMSLAYER2('Other Federal',HostName_SMA,MapService_SMA,"OTHER");
    wother.Visible = true;
    wother.OnTop = true;
    wother.MaxScale = .03;
    wother.Metadata = "<a href = '../GeoComm/metadata/sma/fedland_metadata.htm' target=_blank>BLM Metadata</a>";
    wother.legend = "sma_other.jpg";

  wblm_nca_labels = new WMSLAYER2('BLM National Conservation Areas Labels',HostName_SMA,MapService_SMA,"BLM_national_conservation_areas_labels");
    wblm_nca_labels.OnTop = true;
    wblm_nca_labels.Visible = true;
    wblm_nca_labels.MaxScale = .03;
    wblm_nca_labels.DisplayExternal=true;
    wblm_nca_labels.DisplayInternal=true;

  wbnkhd_j = new WMSLAYER2('Bankhead Jones',HostName_SMA,MapService_SMA,"BLM_bankhead_jones");
    wbnkhd_j.OnTop = true;
    wbnkhd_j.MaxScale = .03;
    wbnkhd_j.legend = "sma_bank_jones.jpg";
    wbnkhd_j.Summary = "Bankhead-Jones Land Use Lands";
    wbnkhd_j.Metadata = "<a href = '../GeoComm/metadata/sma/fedland_metadata.htm' target=_blank>BLM Metadata</a>";
    wbnkhd_j.DisplayExternal=true;
    wbnkhd_j.DisplayInternal=true;

  wnps_labels = new WMSLAYER2('National Park Service Labels',HostName_SMA,MapService_SMA,"national_parks_labels");
    wnps_labels.Visible = true;
    wnps_labels.OnTop = true;
    wnps_labels.MaxScale = .03;

  wbia_labels = new WMSLAYER2('Bureau of Indian Affairs Labels',HostName_SMA,MapService_SMA,"BIA_labels");
    wbia_labels.OnTop = true;
    wbia_labels.Visible = true;
    wbia_labels.MaxScale = .03;

  wstaging_roads_labeled_by_location_num = new WMSLAYER2('<i>(Condition Assessment)</i> Roads <b>Labeled</b> by Location Num',HostName_ROADS,MapService_STAGING_ROADS,"staging_route_location_num_labels");
    wstaging_roads_labeled_by_location_num.OnTop = true;
    wstaging_roads_labeled_by_location_num.Visible = true;
    wstaging_roads_labeled_by_location_num.MaxScale = .003;
    //wstaging_roads_labeled_by_location_num.legend = "staging_roads_labelby_eqnum.jpg";

  wstaging_chealth_all = new WMSLAYER2('Critical Health Points',HostName_ROADS,MapService_STAGING_ROADS,"staging_critical_health");
    wstaging_chealth_all.Visible = true;
    wstaging_chealth_all.OnTop = true;
    wstaging_chealth_all.legend = "critical_health_legend.jpg";
    wstaging_chealth_all.workspace = "sde-roads";
    wstaging_chealth_all.label_columns = "comments";
    wstaging_chealth_all.featuretype = "point";
    wstaging_chealth_all.Metadata = "<a href = '../GeoComm/metadata/rca/staging_critical_health.htm' target=_blank>BLM Metadata</a>"
    wstaging_chealth_all.tablename = fams_dbprefix + "staging_critical_health";

  wstaging_roads_by_cost = new WMSLAYER2('<i>(CA)</i> Segments <b>by</b> Cost',HostName_ROADS,MapService_STAGING_ROADS,"Staging_Cost");
    wstaging_roads_by_cost.OnTop = true;
    wstaging_roads_by_cost.legend = "segmentbycost_legend.jpg";

  wstaging_chealth_all_labels = new WMSLAYER2('Critical Health Labels',HostName_ROADS,MapService_STAGING_ROADS,"staging_critical_health_labels");
    wstaging_chealth_all_labels.Visible = true;
    wstaging_chealth_all_labels.OnTop = true;
    wstaging_chealth_all_labels.MaxScale = .003;
    wstaging_chealth_all_labels.legend = "critical_health_label.jpg";

  wstaging_asset_points_all_labels = new WMSLAYER2('<i>(Condition Assessment)</i> Asset Point Labels',HostName_ROADS,MapService_STAGING_ROADS,"staging_asset_point_labels");
    wstaging_asset_points_all_labels.Visible = true;
    wstaging_asset_points_all_labels.OnTop = true;
    wstaging_asset_points_all_labels.MaxScale = .003;

  wstaging_segments = new WMSLAYER2('<i>(CA)</i> Segments',HostName_ROADS,MapService_STAGING_ROADS,"staging_segments,staging_segments_highzoom");
   wstaging_segments.OnTop = true;
   wstaging_segments.MaxScale = .003;
   wstaging_segments.legend = "";
   wstaging_segments.Metadata = "<a href='../GeoComm/metadata/rca/staging_segments.htm' target=_blank>BLM Metadata</a>";

  wstaging_segments_labeled_by_mile = new WMSLAYER2('<i>(CA)</i> Segments <b>Labeled</b> by Begin/End Mile',HostName_ROADS,MapService_STAGING_ROADS,"staging_segment_mile_labels");
   wstaging_segments_labeled_by_mile.OnTop = true;
   wstaging_segments_labeled_by_mile.MaxScale = .003;
   wstaging_segments_labeled_by_mile.legend = "BLM_road_segments_labeledby_beginend_mile.jpg";

  wall_staging_roads = new WMSLAYER2('<i>(Condition Assessment)</i> Roads',HostName_ROADS,MapService_STAGING_ROADS,"staging_routes,staging_routes_highzoom");
    wall_staging_roads.Visible = true;
    wall_staging_roads.OnTop = true;
    wall_staging_roads.Metadata = "<a href='../GeoComm/metdata/rca/staging_routes.htm' target=_blank>BLM Metadata</a>";
    wall_staging_roads.legend = "ca_roads.jpg";
    wall_staging_roads.Summary = "This layer is used to store the GPS’d Route/Road centerline from HNTB. For each road, a single shape represents the entire road.";
    wall_staging_roads.workspace = "sde-roads";
    wall_staging_roads.label_columns = "route_name";
    wall_staging_roads.featuretype = "line";
    wall_staging_roads.tablename = fams_dbprefix + "staging_routes";
    wall_staging_roads.Metadata = "<a href = '../GeoComm/metadata/rca/staging_routes.htm' target = _blank>BLM Metadata</a>";

  wstaging_segments_by_maint_level = new WMSLAYER2('<i>(CA)</i> Segments <b>by</b> Maint. Level',HostName_ROADS,MapService_STAGING_ROADS,"staging_segments_maint_level,staging_segments_maint_level_highzoom");
    wstaging_segments_by_maint_level.OnTop = true;
    wstaging_segments_by_maint_level.Metadata = "<a href='../GeoComm/metadata/rca/staging_segments.htm' target=_blank>BLM Metadata</a>";
    wstaging_segments_by_maint_level.MaxScale = .003;
    wstaging_segments_by_maint_level.Summary = "The Condition Assessment Segment layers are used to store the GPS’d Route/Road centerline that is segmented by HNTB for attribute changes.";
    wstaging_segments_by_maint_level.legend = "segmentbymaintenancelevel_legend.jpg";

  wstaging_segments_by_surface_type = new WMSLAYER2('<i>(CA)</i> Segments <b>by</b> Surface Type',HostName_ROADS,MapService_STAGING_ROADS,"Staging_Surface_Type,Staging_Surface_Type_highzoom");
    wstaging_segments_by_surface_type.OnTop = true;
    wstaging_segments_by_surface_type.Metadata = "<a href='../GeoComm/metadata/rca/staging_segments.htm' target=_blank>BLM Metadata</a>";
    wstaging_segments_by_surface_type.MaxScale = .003;
    wstaging_segments_by_surface_type.legend = "segmentbysurfacetype_legend.jpg";

  wstaging_segments_labeled_by_location_num = new WMSLAYER2('<i>(CA)</i> Segments <b>Labeled</b> by Location Num',HostName_ROADS,MapService_STAGING_ROADS,"staging_segment_location_num_labels");
    wstaging_segments_labeled_by_location_num.OnTop = true;
    wstaging_segments_labeled_by_location_num.MaxScale = .003;
    wstaging_segments_labeled_by_location_num.Visible = true;
    wstaging_segments_labeled_by_location_num.legend = "BLM_road_segments_labeledby_EQNUM.jpg";

  wstaging_asset_points_all = new WMSLAYER2('<i>(Condition Assessment)</i> Asset Points',HostName_ROADS,MapService_STAGING_ROADS,"staging_asset_points,staging_asset_points_highzoom");
    wstaging_asset_points_all.Visible = true;
    wstaging_asset_points_all.OnTop = true;
    wstaging_asset_points_all.Metadata = "<a href='../GeoComm/metadata/rca/staging_asset_points.htm' target=_blank>BLM Metadata</a>";
    //wstaging_asset_points_all.MaxScale = .008;

  wstaging_segments_by_surface_width = new WMSLAYER2('<i>(CA)</i> Segments <b>by</b> Surface Width',HostName_ROADS,MapService_STAGING_ROADS,"Staging_Surface_Width,Staging_Surface_Width_highzoom");
    wstaging_segments_by_surface_width.OnTop = true;
    wstaging_segments_by_surface_width.Visible = false;
    wstaging_segments_by_surface_width.Metadata = "<a href='../GeoComm/metadata/rca/staging_segments.htm' target=_blank>BLM Metadata</a>";
    wstaging_segments_by_surface_width.MaxScale = .003;
    wstaging_segments_by_surface_width.legend = "segmentsby_surfacewidth_legend.jpg";

  wstaging_roads_labeled_by_Route_Name = new WMSLAYER2('<i>(Condition Assessment)</i> Roads <b>Labeled</b> by Route Name',HostName_ROADS,MapService_STAGING_ROADS,"staging_route_labels");
    wstaging_roads_labeled_by_Route_Name.OnTop = true;
    wstaging_roads_labeled_by_Route_Name.Visible = true;
    wstaging_roads_labeled_by_Route_Name.MaxScale = .003;

  wsub_sma_other = new WMSLAYER2('Other Minerals',HostName_SMA,MapService_SUBSURFACE,'sub_sma_other');
    wsub_sma_other.Visible = true;
    wsub_sma_other.OnTop = true;
    wsub_sma_other.MaxScale = .01;
    wsub_sma_other.legend = "sub_sma_other.jpg";

  wsub_sma_all = new WMSLAYER2('All US Minerals',HostName_SMA,MapService_SUBSURFACE,'sub_sma_all');
    wsub_sma_all.Visible = true;
    wsub_sma_all.OnTop = true;
    wsub_sma_all.MaxScale = .01;
    wsub_sma_all.legend = "sub_sma_us.jpg";

  wsub_sma_coal = new WMSLAYER2('Coal Only',HostName_SMA,MapService_SUBSURFACE,'sub_sma_coal');
    wsub_sma_coal.Visible = true;
    wsub_sma_coal.OnTop = true;
    wsub_sma_coal.MaxScale = .01;
    wsub_sma_coal.legend = "sub_sma_coal.jpg";

  wsub_sma_ogc = new WMSLAYER2('Oil, Gas, & Coal Only',HostName_SMA,MapService_SUBSURFACE,'sub_sma_oil_gas_coal');
    wsub_sma_ogc.Visible = true;
    wsub_sma_ogc.OnTop = true;
    wsub_sma_ogc.MaxScale = .01;
    wsub_sma_ogc.legend = "sub_sma_og_coal.jpg";

  wsub_sma_og = new WMSLAYER2('Oil & Gas Only',HostName_SMA,MapService_SUBSURFACE,'sub_sma_oil_gas');
    wsub_sma_og.Visible = true;
    wsub_sma_og.OnTop = true;
    wsub_sma_og.MaxScale = .01;
    wsub_sma_og.legend = "sub_sma_og.jpg";


  wsub_sma_none = new WMSLAYER2('No US Minerals',HostName_SMA,MapService_SUBSURFACE,'sub_sma_none');
    wsub_sma_none.Visible = true;
    wsub_sma_none.OnTop = true;

  wtwp_index = new WMSLAYER2('Township Boundaries',HostName_TWP_Index,MapService_TWP_Index,'twp_index_boundaries'); //,detail_twp');
    wtwp_index.OnTop = true;
    wtwp_index.MaxScale = 0.02;
    wtwp_index.legend = "Township_Boundaries_All.gif";
    wtwp_index.Summary = "High level view of all Township boundaries across the United States.   This layer provides a general view and labeling index for finding Township data.";
    wtwp_index.Metadata = "<a href = 'GeoComm/metadata/gcdb/lsis_twnshp.htm' target=_blank>BLM Metadata Page</a>";
    wtwp_index.featuretype = "polygon";
    wtwp_index.tablename = dbprefix + "twp_index";
    wtwp_index.label_columns = "twp_label";
    wtwp_index.hideOnTOC = true;


//test lsis 6 layers as separate folder

 wtwp_availability_blm = new WMSLAYER2('BLM',HostName_TWP_Index,MapService_TWP_Index,'twp_availability_blm');
    wtwp_availability_blm.Visible = true;
    wtwp_availability_blm.MinScale = 0;
    wtwp_availability_blm.MaxScale = 1;
    wtwp_availability_blm.legend = "twp_availability_blm.jpg";
    wtwp_availability_blm.Summary = "This is an index showing data download availability of Township data.   BLM Township data, USFS data, and avaialbility of other sources are symbolized by this index.";
    wtwp_availability_blm.Metadata = "<a href='http://www.lsi.blm.gov/metadata/default.htm' target=_blank>BLM, USFS, and Alternate Sources Metadata Page</a>";
    wtwp_availability_blm.DisplayExternal=true;
    wtwp_availability_blm.DisplayInternal=true;
 
 wtwp_availability_altsrc = new WMSLAYER2('Alternate Source',HostName_TWP_Index,MapService_TWP_Index,'twp_availability_altsrc');
    wtwp_availability_altsrc.Visible = true;
    wtwp_availability_altsrc.MinScale = 0;
    wtwp_availability_altsrc.MaxScale = 1;
    wtwp_availability_altsrc.legend = "twp_availability_altsrc.jpg";
    wtwp_availability_altsrc.Summary = "This is an index showing data download availability of Township data.   BLM Township data, USFS data, and avaialbility of other sources are symbolized by this index.";
    wtwp_availability_altsrc.Metadata = "<a href='http://www.lsi.blm.gov/metadata/default.htm' target=_blank>BLM, USFS, and Alternate Sources Metadata Page</a>";
    wtwp_availability_altsrc.DisplayExternal=true;
    wtwp_availability_altsrc.DisplayInternal=true;    

    wtwp_availability_flatfile = new WMSLAYER2('BLM Flatfiles',HostName_TWP_Index,MapService_TWP_Index,'twp_availability_flatfile');
      wtwp_availability_flatfile.Visible = false;
      wtwp_availability_flatfile.MinScale = 0;
      wtwp_availability_flatfile.MaxScale = 1;
      wtwp_availability_flatfile.legend = "twp_availability_flatfile.jpg";
      wtwp_availability_flatfile.Summary = "This is an index showing data download availability of Township data.   BLM Township data, USFS data, and avaialbility of other sources are symbolized by this index.";
      wtwp_availability_flatfile.Metadata = "<a href='http://www.lsi.blm.gov/metadata/default.htm' target=_blank>BLM, USFS, and Alternate Sources Metadata Page</a>";
    wtwp_availability_flatfile.DisplayExternal=true;
    wtwp_availability_flatfile.DisplayInternal=true;

    wROW_energycorridor = new WMSLAYER2('Energy Corridor Zones',HostName_PARCELS,MapService_PARCELS,'ROW_corridor_zones');
     wROW_energycorridor.Visible = true;
     wROW_energycorridor.OnTop = true;
     wROW_energycorridor.legend = "energy_corridor_zones.jpg";
     wROW_energycorridor.Metadata = "<a href = '../GeoComm/metadata/row/sec368zone_atts.htm' target = _blank>BLM Metadata</a>";
     wROW_energycorridor.label_columns="serial_nr_full";
    wROW_energycorridor.DisplayExternal=true;
    wROW_energycorridor.DisplayInternal=true;     

     wROW_energycorridor_labels = new WMSLAYER2('Energy Corridor Zones  - Labels',HostName_PARCELS,MapService_PARCELS,'ROW_corridor_zones_labels');
      wROW_energycorridor_labels.Visible = false;
      wROW_energycorridor_labels.OnTop = true;
      wROW_energycorridor_labels.MaxScale = 0.003;
    wROW_energycorridor_labels.DisplayExternal=true;
    wROW_energycorridor_labels.DisplayInternal=true;      

    wROW_energycenterline = new WMSLAYER2('Energy Corridor Centerlines',HostName_PARCELS,MapService_PARCELS,'ROW_corridor_centerline,ROW_corridor_centerline_highzoom');
      wROW_energycenterline.Visible = true;
      wROW_energycenterline.OnTop = true;
      wROW_energycenterline.legend = "energy_corridor_centerlines.jpg";
      wROW_energycenterline.Metadata = "<a href = '../GeoComm/metadata/row/sec368centerline_atts.htm' target = _blank>BLM Metadata</a>";
      wROW_energycenterline.label_columns="serial_nr_full";
      wROW_energycenterline.DisplayExternal=true;
      wROW_energycenterline.DisplayInternal=true;      

    wROW_energycenterline_labels = new WMSLAYER2('Energy Corridor Centerlines - Labels',HostName_PARCELS,MapService_PARCELS,'ROW_corridor_centerline_labels');
      wROW_energycenterline_labels.Visible = false;
      wROW_energycenterline_labels.OnTop = true;
      wROW_energycenterline_labels.MaxScale = 0.003;
      wROW_energycenterline_labels.DisplayExternal=true;
      wROW_energycenterline_labels.DisplayInternal=true;      


    wsolar_fast_track_parcels = new WMSLAYER2('Solar Projects',HostName_PARCELS,MapService_OTHER_LEASES,'fast_track_solar');
      wsolar_fast_track_parcels.Visible = true;
      wsolar_fast_track_parcels.OnTop = true;
      wsolar_fast_track_parcels.legend = "fast_track_solar.jpg";
 
    wsolar_fast_track_parcels_labels = new WMSLAYER2('Solar Projects - Labels',HostName_PARCELS,MapService_OTHER_LEASES,'fast_track_solar_labels');
       wsolar_fast_track_parcels_labels.Visible = false;
       wsolar_fast_track_parcels_labels.OnTop = true;
       wsolar_fast_track_parcels_labels.MaxScale = 0.013;

    wwind_fast_track_parcels = new WMSLAYER2('Wind Projects',HostName_PARCELS,MapService_OTHER_LEASES,'fast_track_wind');
      wwind_fast_track_parcels.Visible = true;
      wwind_fast_track_parcels.OnTop = true;
      wwind_fast_track_parcels.legend = "fast_track_wind.jpg";

     wwind_fast_track_parcels_labels = new WMSLAYER2('Wind Projects - Labels',HostName_PARCELS,MapService_OTHER_LEASES,'fast_track_wind_labels');
       wwind_fast_track_parcels_labels.Visible = false;
       wwind_fast_track_parcels_labels.OnTop = true;
       wwind_fast_track_parcels_labels.MaxScale = 0.013;

     wgeothermal_fast_track_parcels = new WMSLAYER2('Geothermal Projects',HostName_PARCELS,MapService_OTHER_LEASES,'fast_track_geothermal');
      wgeothermal_fast_track_parcels.Visible = true;
      wgeothermal_fast_track_parcels.OnTop = true;
      wgeothermal_fast_track_parcels.legend = "fast_track_geothermal.jpg";

     wgeothermal_fast_track_parcels_labels = new WMSLAYER2('Geothermal Projects - Labels',HostName_PARCELS,MapService_OTHER_LEASES,'fast_track_geothermal_labels');
       wgeothermal_fast_track_parcels_labels.Visible = false;
       wgeothermal_fast_track_parcels_labels.OnTop = true;
       wgeothermal_fast_track_parcels_labels.MaxScale = 0.013;

    wtransmission_fast_track_parcels = new WMSLAYER2('Transmission Projects',HostName_PARCELS,MapService_OTHER_LEASES,'fast_track_transmission');
      wtransmission_fast_track_parcels.Visible = true;
      wtransmission_fast_track_parcels.OnTop = true;

     wtransmission_fast_track_parcels_labels = new WMSLAYER2('Transmission Projects - Labels',HostName_PARCELS,MapService_OTHER_LEASES,'fast_track_transmission_labels');
       wtransmission_fast_track_parcels_labels.Visible = false;
       wtransmission_fast_track_parcels_labels.OnTop = true;
       wtransmission_fast_track_parcels_labels.MaxScale = 0.013;



//testing streaming USGS NHD


  wIMS_LakesRivers_mxd = new WMSLAYER2('Lakes and Rivers IMS',HostName_TWP_Index,MapService_TWP_Index,'nhdgeowms_IMS');
     wIMS_LakesRivers_mxd.Visible = false;
     wIMS_LakesRivers_mxd.OnTop = false;
     wIMS_LakesRivers_mxd.MaxScale = .000238;
     wIMS_LakesRivers_mxd.legend = "lakes.jpg";

  wWMS_Lakes_mxd = new WMSLAYER2('Lakes WMS',HostName_TWP_Index,MapService_TWP_Index,'nhdgeowms_WMS_lakes');
     wWMS_Lakes_mxd.Visible = false;
     wWMS_Lakes_mxd.OnTop = false;
     wWMS_Lakes_mxd.MaxScale = .000238;
     wWMS_Lakes_mxd.legend = "lakes.jpg";

  wWMS_Rivers_mxd = new WMSLAYER2('Rivers WMS',HostName_TWP_Index,MapService_TWP_Index,'nhdgeowms_WMS_rivers');
      wWMS_Rivers_mxd.Visible = false;
      wWMS_Rivers_mxd.OnTop = false;
      wWMS_Rivers_mxd.MaxScale = .000238;
      wWMS_Rivers_mxd.legend = "rivers.jpg";

  wBTSRoads_IMS_mxd = new WMSLAYER2('BTS Roads IMS',HostName_TWP_Index,MapService_TWP_Index,'USGS_BTS_IMS');
      wBTSRoads_IMS_mxd.Visible = false;
      wBTSRoads_IMS_mxd.OnTop = false;
      wBTSRoads_IMS_mxd.MinScale = 0;
      wBTSRoads_IMS_mxd.MaxScale = .0003438;

  wBTSRoads_WMS_mxd = new WMSLAYER2('BTS Roads WMS',HostName_TWP_Index,MapService_TWP_Index,'USGS_BTS_WMS');
      wBTSRoads_WMS_mxd.Visible = false;
      wBTSRoads_WMS_mxd.OnTop = false;
      wBTSRoads_WMS_mxd.MinScale = 0;
      wBTSRoads_WMS_mxd.MaxScale = .0003438;

  wBTSRoads_WMS_labels_mxd = new WMSLAYER2('BTS Roads WMS labels',HostName_TWP_Index,MapService_TWP_Index,'USGS_BTS_WMS_labels');
      wBTSRoads_WMS_labels_mxd.Visible = false;
      wBTSRoads_WMS_labels_mxd.OnTop = false;
      wBTSRoads_WMS_labels_mxd.MinScale = 0;
      wBTSRoads_WMS_labels_mxd.MaxScale = .000143;

  wblm_road_segment_id = new WMSLAYER2('route_segments',HostName_ROADS,MapService_ROADS,"route_segments");
    wblm_road_segment_id.OnTop = true;
    wblm_road_segment_id.MaxScale = .003;
    wblm_road_segment_id.legend = "BLM_road_segments_labeledby_EQNUM.jpg";
    wblm_road_segment_id.workspace = "sde-roads";
    wblm_road_segment_id.label_columns = "segment_eqnum";
    wblm_road_segment_id.featuretype = "line";
    wblm_road_segment_id.tablename = fams_dbprefix + "route_segments";


  wblm_segment_labels_location_num = new WMSLAYER2('BLM Segments <b>Labeled</b> by Location Num',HostName_ROADS,MapService_ROADS,"blm_road_segment_labels_location_num");
    wblm_segment_labels_location_num.OnTop = true;
    wblm_segment_labels_location_num.Visible = true;
    wblm_segment_labels_location_num.MaxScale = .003;
    wblm_segment_labels_location_num.legend = "BLM_road_segments_labeledby_EQNUM.jpg";


  wblm_segment_labels_mile = new WMSLAYER2('BLM Segments <b>Labeled</b> by Begin/End mile',HostName_ROADS,MapService_ROADS,"blm_road_segment_labels_mile");
    wblm_segment_labels_mile.OnTop = true;
    wblm_segment_labels_mile.Visible = true;
    wblm_segment_labels_mile.MaxScale = .003;
    wblm_segment_labels_mile.legend = "BLM_road_segments_labeledby_beginend_mile.jpg";


  wblm_segments_own_control = new WMSLAYER2('BLM Segments <b>by</b> Ownership Control',HostName_ROADS,MapService_ROADS,"blm_segments_own_control,blm_segments_own_control_highzoom");
    wblm_segments_own_control.OnTop = true;
    wblm_segments_own_control.MaxScale = .003;
    wblm_segments_own_control.legend = "blm_segmentsby_ownership_control.jpg";




  wss1 = new WMSLAYER('staging_segments')
  wss1.mapservice_layer_id = "staging_segments";
  wss1.tablename = fams_dbprefix + "staging_segments";
  wss1.featuretype = "line";             //polygon,line,point
  wss1.label_columns = "TOTAL_MILE";        //separated by spaces
  wss1.workspace = "sde-roads";           //
  wss1.hideOnTOC = true;
      wss1.use_special_symbology = true;

  wss1.font_size          = "10";
  wss1.font_color           = "0,0,0";
  wss1.font             = "Arial";
  wss1.font_outline_color       = "250,250,250";
  wss1.font_printmode         = "titlecaps";
  wss1.font_style           = "regular";

  wss1.line_label_position    = "placeabove";
  wss1.line_isdouble        = true;
  wss1.line_interior_color    = "255,255,0";
  wss1.line_outer_color       = "";
  wss1.line_outer_color_r       = 000;
  wss1.line_outer_color_g       = 000;
  wss1.line_outer_color_b       = 255;
  wss1.increment_color_r      = 0;
  wss1.increment_color_g      = 100;
  wss1.increment_color_b      = 0;
  wss1.line_outer_width       = "6";
  wss1.line_inner_width     = "1";
  wss1.line_type          = "solid";
  wss1.line_captype         = "round";
  wss1.line_jointype        = "";



  wss2 = new WMSLAYER('staging_asset_points')
  wss2.mapservice_layer_id = "staging_asset_points";
  wss2.tablename = fams_dbprefix + "staging_asset_points";
  wss2.featuretype = "point";             //polygon,line,point
  wss2.label_columns = "type";        //separated by spaces
  wss2.workspace = "sde-roads";           //
  wss2.hideOnTOC = true;


//alert("extras");

    wEasement = new WMSLAYER('Easements');
        slayerid = "Easement";
        wEasement.mapservice_layer_id = slayerid;
        wEasement.Visible = true;  //true
        wEasement.OGCBaseMap = false;
        wEasement.OnTop = true;
        wEasement.MinScale = 0;
        wEasement.MaxScale = 1;  //0.006;
        wEasement.legend = "easement.jpg";
        wEasement.mapservice_name = MapService_LANDSVIEWER;
        wEasement.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
        wEasement.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
        wEasement.URL += '&LAYERS=' + slayerid;  

     wEasement_labels = new WMSLAYER('Easement Labels');
        slayerid = "Easement_labels";
        wEasement_labels.mapservice_layer_id = slayerid;
        wEasement_labels.Visible = false;  //true
        wEasement_labels.OGCBaseMap = false;
        wEasement_labels.OnTop = true;
        wEasement_labels.MinScale = 0;
        wEasement_labels.MaxScale = .01;  //0.006;
        wEasement_labels.mapservice_name = MapService_LANDSVIEWER;
        wEasement_labels.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
        wEasement_labels.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
        wEasement_labels.URL += '&LAYERS=' + slayerid;


      wSurfaceRight = new WMSLAYER('Surface Right');
        slayerid = "SurfaceRight";
        wSurfaceRight.mapservice_layer_id = slayerid;
        wSurfaceRight.Visible = false;  //true
        wSurfaceRight.OGCBaseMap = false;
        wSurfaceRight.OnTop = true;
        wSurfaceRight.MinScale = 0;
        wSurfaceRight.MaxScale = 1;  //0.006;
        wSurfaceRight.mapservice_name = MapService_LANDSVIEWER;
        wSurfaceRight.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
        wSurfaceRight.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
        wSurfaceRight.URL += '&LAYERS=' + slayerid;

      wSurfaceRight_labels = new WMSLAYER('Surface Right Labels');
        slayerid = "SurfaceRight_labels";
        wSurfaceRight_labels.mapservice_layer_id = slayerid;
        wSurfaceRight_labels.Visible = false;  //true
        wSurfaceRight_labels.OGCBaseMap = false;
        wSurfaceRight_labels.OnTop = true;
        wSurfaceRight_labels.MinScale = 0;
        wSurfaceRight_labels.MaxScale = 0.0006;  //0.006;
        wSurfaceRight_labels.mapservice_name = MapService_LANDSVIEWER;
        wSurfaceRight_labels.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
        wSurfaceRight_labels.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
        wSurfaceRight_labels.URL += '&LAYERS=' + slayerid;

    wSubSurfaceRight = new WMSLAYER('Subsurface Right');
        slayerid = "SubsurfaceRight";
        wSubSurfaceRight.mapservice_layer_id = slayerid;
        wSubSurfaceRight.Visible = true;  //true
        wSubSurfaceRight.OGCBaseMap = false;
        wSubSurfaceRight.OnTop = true;
        wSubSurfaceRight.MinScale = 0;
        wSubSurfaceRight.MaxScale = 1;  //0.006;
        wSubSurfaceRight.mapservice_name = MapService_LANDSVIEWER;
        wSubSurfaceRight.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
        wSubSurfaceRight.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
        wSubSurfaceRight.URL += '&LAYERS=' + slayerid;

      wSubSurfaceRight_labels = new WMSLAYER('Subsurface Right Labels');
        slayerid = "SubsurfaceRight_labels";
        wSubSurfaceRight_labels.mapservice_layer_id = slayerid;
        wSubSurfaceRight_labels.Visible = false;  //true
        wSubSurfaceRight_labels.OGCBaseMap = false;
        wSubSurfaceRight_labels.OnTop = true;
        wSubSurfaceRight_labels.MinScale = 0;
        wSubSurfaceRight_labels.MaxScale = 1;  //0.006;
        wSubSurfaceRight_labels.mapservice_name = MapService_LANDSVIEWER;
        wSubSurfaceRight_labels.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
        wSubSurfaceRight_labels.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
        wSubSurfaceRight_labels.URL += '&LAYERS=' + slayerid;

    wSurfaceOwnership = new WMSLAYER('Surface Ownership');
        slayerid = "SurfaceOwnership";
        wSurfaceOwnership.mapservice_layer_id = slayerid;
        wSurfaceOwnership.Visible = true;  //true
        wSurfaceOwnership.OGCBaseMap = false;
        wSurfaceOwnership.OnTop = true;
        wSurfaceOwnership.MinScale = 0;
        wSurfaceOwnership.MaxScale = 1;  //0.006;
        wSurfaceOwnership.mapservice_name = MapService_LANDSVIEWER;
        wSurfaceOwnership.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
        wSurfaceOwnership.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
        wSurfaceOwnership.URL += '&LAYERS=' + slayerid;

      wSurfaceOwnership_labels = new WMSLAYER('Surface Ownership Labels');
        slayerid = "SurfaceOwnership_labels";
        wSurfaceOwnership_labels.mapservice_layer_id = slayerid;
        wSurfaceOwnership_labels.Visible = false;  //true
        wSurfaceOwnership_labels.OGCBaseMap = false;
        wSurfaceOwnership_labels.OnTop = true;
        wSurfaceOwnership_labels.MinScale = 0;
        wSurfaceOwnership_labels.MaxScale = 1;  //0.006;
        wSurfaceOwnership_labels.mapservice_name = MapService_LANDSVIEWER;
        wSurfaceOwnership_labels.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
        wSurfaceOwnership_labels.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
        wSurfaceOwnership_labels.URL += '&LAYERS=' + slayerid;


  wWilderness = new WMSLAYER('Wilderness');
    slayerid = "Wilderness";
    wWilderness.mapservice_layer_id = slayerid;
    wWilderness.Visible = false;  //true
    wWilderness.OGCBaseMap = false;
    wWilderness.OnTop = true;
    wWilderness.MinScale = 0;
    wWilderness.MaxScale = 1;  //0.006;
    wWilderness.legend = "wilderness.jpg";
    wWilderness.mapservice_name = MapService_LANDSVIEWER;
    wWilderness.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
    wWilderness.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
    wWilderness.URL += '&LAYERS=' + slayerid;

  wWilderness_labels = new WMSLAYER('Wilderness Labels');
    slayerid = "Wilderness_labels";
    wWilderness_labels.mapservice_layer_id = slayerid;
    wWilderness_labels.Visible = false;  //true
    wWilderness_labels.OGCBaseMap = false;
    wWilderness_labels.OnTop = true;
    wWilderness_labels.MinScale = 0;
    wWilderness_labels.MaxScale = .01;  //0.006;
    wWilderness_labels.mapservice_name = MapService_LANDSVIEWER;
    wWilderness_labels.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
    wWilderness_labels.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
    wWilderness_labels.URL += '&LAYERS=' + slayerid;


  wWildScenicRiver = new WMSLAYER('Wild And Scenic Rivers');
    slayerid = "WildScenicRiver";
    wWildScenicRiver.mapservice_layer_id = slayerid;
    wWildScenicRiver.Visible = false;  //true
    wWildScenicRiver.OGCBaseMap = false;
    wWildScenicRiver.OnTop = true;
    wWildScenicRiver.MinScale = 0;
    wWildScenicRiver.MaxScale = 1;  //0.006;
    wWildScenicRiver.legend = "wildscenicriver.jpg";
    wWildScenicRiver.mapservice_name = MapService_LANDSVIEWER;
    wWildScenicRiver.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
    wWildScenicRiver.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
    wWildScenicRiver.URL += '&LAYERS=' + slayerid;

  wWildScenicRiver_labels = new WMSLAYER('Wild And Scenic River Labels');
    slayerid = "WildScenicRiver_labels";
    wWildScenicRiver_labels.mapservice_layer_id = slayerid;
    wWildScenicRiver_labels.Visible = false;  //true
    wWildScenicRiver_labels.OGCBaseMap = false;
    wWildScenicRiver_labels.OnTop = true;
    wWildScenicRiver_labels.MinScale = 0;
    wWildScenicRiver_labels.MaxScale = .01;  //0.006;
    wWildScenicRiver_labels.mapservice_name = MapService_LANDSVIEWER;
    wWildScenicRiver_labels.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
    wWildScenicRiver_labels.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
    wWildScenicRiver_labels.URL += '&LAYERS=' + slayerid;


  wSpecIntMgmtArea = new WMSLAYER('Special Interest Management Areas');
    slayerid = "SpecialInterestManagementArea";
    wSpecIntMgmtArea.mapservice_layer_id = slayerid;
    wSpecIntMgmtArea.Visible = false;  //true
    wSpecIntMgmtArea.OGCBaseMap = false;
    wSpecIntMgmtArea.OnTop = true;
    wSpecIntMgmtArea.MinScale = 0;
    wSpecIntMgmtArea.MaxScale = 1;  //0.006;
    wSpecIntMgmtArea.legend = "sima.jpg";
    wSpecIntMgmtArea.mapservice_name = MapService_LANDSVIEWER;
    wSpecIntMgmtArea.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
    wSpecIntMgmtArea.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
    wSpecIntMgmtArea.URL += '&LAYERS=' + slayerid;

  wSpecIntMgmtArea_labels = new WMSLAYER('Special Interest Management Area Labels');
    slayerid = "SpecialInterestManagementArea_labels";
    wSpecIntMgmtArea_labels.mapservice_layer_id = slayerid;
    wSpecIntMgmtArea_labels.Visible = false;  //true
    wSpecIntMgmtArea_labels.OGCBaseMap = false;
    wSpecIntMgmtArea_labels.OnTop = true;
    wSpecIntMgmtArea_labels.MinScale = 0;
    wSpecIntMgmtArea_labels.MaxScale = .01;  //0.006;
    wSpecIntMgmtArea_labels.mapservice_name = MapService_LANDSVIEWER;
    wSpecIntMgmtArea_labels.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
    wSpecIntMgmtArea_labels.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
    wSpecIntMgmtArea_labels.URL += '&LAYERS=' + slayerid;

  wOtherNatDegArea = new WMSLAYER('Other Nationally Designated Areas');
    slayerid = "OtherNationalDesignatedArea";
    wOtherNatDegArea.mapservice_layer_id = slayerid;
    wOtherNatDegArea.Visible = false;  //true
    wOtherNatDegArea.OGCBaseMap = false;
    wOtherNatDegArea.OnTop = true;
    //wOtherNatDegArea.MinScale = 0;
    //wOtherNatDegArea.MaxScale = 1;  //0.006;
    wOtherNatDegArea.legend = "onda.jpg";
    wOtherNatDegArea.mapservice_name = MapService_LANDSVIEWER;
    wOtherNatDegArea.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
    wOtherNatDegArea.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
    wOtherNatDegArea.URL += '&LAYERS=' + slayerid;

  wOtherNatDegArea_labels = new WMSLAYER('Other Nationally Designated Area Labels');
    slayerid = "OtherNationalDesignatedArea_labels";
    wOtherNatDegArea_labels.mapservice_layer_id = slayerid;
    wOtherNatDegArea_labels.Visible = false;  //true
    wOtherNatDegArea_labels.OGCBaseMap = false;
    wOtherNatDegArea_labels.OnTop = true;
    wOtherNatDegArea_labels.MinScale = 0;
    wOtherNatDegArea_labels.MaxScale = .01;  //0.006;
    wOtherNatDegArea_labels.mapservice_name = MapService_LANDSVIEWER;
    wOtherNatDegArea_labels.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
    wOtherNatDegArea_labels.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
    wOtherNatDegArea_labels.URL += '&LAYERS=' + slayerid;


  wDevelopedSite = new WMSLAYER('Developed Site');
    slayerid = "DevelopedSite";
    wDevelopedSite.mapservice_layer_id = slayerid;
    wDevelopedSite.Visible = false;  //true
    wDevelopedSite.OGCBaseMap = false;
    wDevelopedSite.OnTop = true;
    wDevelopedSite.MinScale = 0;
    wDevelopedSite.MaxScale = 1;  //0.006;
    wDevelopedSite.legend = "devsite.jpg";
    wDevelopedSite.mapservice_name = MapService_LANDSVIEWER;
    wDevelopedSite.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
    wDevelopedSite.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
    wDevelopedSite.URL += '&LAYERS=' + slayerid;

  wDevelopedSite_labels = new WMSLAYER('Developed Site Labels');
    slayerid = "DevelopedSite_labels";
    wDevelopedSite_labels.mapservice_layer_id = slayerid;
    wDevelopedSite_labels.Visible = false;  //true
    wDevelopedSite_labels.OGCBaseMap = false;
    wDevelopedSite_labels.OnTop = true;
    wDevelopedSite_labels.MinScale = 0;
    wDevelopedSite_labels.MaxScale = .01;  //0.006;
    wDevelopedSite_labels.mapservice_name = MapService_LANDSVIEWER;
    wDevelopedSite_labels.OGCURL = 'http://' + HostName_USFS + wmsConnectorURL + MapService_LANDSVIEWER + '?version=1.1.1&service=WMS';
    wDevelopedSite_labels.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE';
    wDevelopedSite_labels.URL += '&LAYERS=' + slayerid;

 wLakes = new WMSLAYER('Lakes');
  wLakes.Visible = false;
  wLakes.OGCBaseMap = false;
  wLakes.OnTop = true;
  wLakes.MinScale = 0;
  wLakes.MaxScale = 0.0027;
  wLakes.legend = "lakes.jpg";
  wLakes.OGCURL = 'http://nmviewogc.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap?ServiceName=nhdgeowms';
  wLakes.URL =  '&version=1.1.1&service=WMS&REQUEST=getmap&SRS=EPSG:4269&FORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&STYLES=&LAYERS=nhdwaterbody_high';
  wLakes.Summary = "National Hydrography Dataset from USGS";
  wLakes.Metadata = "<a href='http://nhdgeo.usgs.gov/metadata/nhd_local.htm' target=_blank>Metadata</a>";


wRivers = new WMSLAYER('Rivers');
  wRivers.Visible = false;
  wRivers.OGCBaseMap = false;
  wRivers.OnTop = true;
  wRivers.MinScale = 0;
  wRivers.MaxScale = 0.00185;
  wRivers.legend = "rivers.jpg";
  wRivers.OGCURL = 'http://nmviewogc.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap?ServiceName=nhdgeowms';
  wRivers.URL =  '&version=1.1.1&service=WMS&REQUEST=getmap&SRS=EPSG:4269&FORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&STYLES=&LAYERS=nhdflowline_high';
  wRivers.Summary = "National Hydrography Dataset from USGS";
  wRivers.Metadata = "<a href='http://nhdgeo.usgs.gov/metadata/nhd_local.htm' target=_blank>Metadata</a>";



wRoadsBTS = new WMSLAYER('Roads');
  wRoadsBTS.Visible = false;  //true
  wRoadsBTS.OGCBaseMap = false;
  wRoadsBTS.OnTop = true;
  wRoadsBTS.MinScale = 0;
  wRoadsBTS.MaxScale = 0.00095;
  //wRoadsBTS.legend = "Roads2.gif";
  wRoadsBTS.OGCURL = 'http://nmviewogc.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap?ServiceName=transportwms_labels';
  wRoadsBTS.URL =  '&version=1.1.1&service=WMS&REQUEST=getmap&SRS=EPSG:4269&FORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&LAYERS=roads';
  wRoadsBTS.Summary = "Bureau of Transportation Statistics Roads, hosted by USGS.";
  wRoadsBTS.Metadata = "<a href='http://nationalmap.gov/' target=_blank>Metadata</a>";



   wsketch = new WMSLAYER('Selected Features');
    slayerid = "acetate";
    wsketch.mapservice_name = "BLM_PARCELS_wms";
    wsketch.mapservice_layer_id = slayerid;
    wsketch.Visible = true;
    wsketch.OGCBaseMap = false;
    wsketch.OnTop = true;
    wsketch.MinScale = 0;
    wsketch.MaxScale = 1;
    wsketch.legend = "";
    wsketch.OGCURL = '';
    wsketch.URL = '';
    //wsketch.URL += '&LAYERS=' + slayerid ;
    //wsketch.Summary = "";
    //wsketch.Metadata = "";
    ////wsketch.tablename = dbprefix + "";                  //fully qualified table name
    //wsketch.featuretype = "polygon";             //polygon,line,point
    //wsketch.label_columns = "forstnm";        //separated by spaces
    //wsketch.workspace = "sde-1";           //


wNone = new WMSLAYER('No Base Map');                        //layer name must be unique
  wNone.mapservice_layer_id = "none";
  wNone.OGCURL =  'http://' + HostName_REF + wmsConnectorURL + MapService_REF + '?version=1.1.1&service=WMS';
  wNone.Summary = "";
  wNone.Visible = true;
  wNone.MinScale = 0;
  wNone.MaxScale = 1;
  wNone.legend = "basemap_none.jpg";
  wNone.Metadata = "";
  wNone.URL =  '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&TRANSPARENT=TRUE';
  wNone.URL += '&LAYERS='+ wNone.mapservice_layer_id;
  wNone.OnTop = false;
  wNone.OGCBaseMap = true;
    wNone.DisplayExternal=true;
    wNone.DisplayInternal=true;  



 wColorRelief = new WMSLAYER('Shaded Relief');
  wColorRelief.Visible = false;
  wColorRelief.OGCBaseMap = false;
  wColorRelief.OnTop = false;
  wColorRelief.MinScale = .004;
  wColorRelief.MaxScale = 1;
  wColorRelief.legend = "basemap_shadedrelief_color.jpg";
  wColorRelief.OGCURL = 'http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?WMTVER=1.1.0&ServiceName=USGS_WMS_GTOPO';
  wColorRelief.URL =  '&SRS=EPSG:4326&REQUEST=map&FORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&LAYERS=GTOPO60%20Color%20Shaded%20Relief';
  wColorRelief.Summary = "USGS Color Shaded Relief.";
  wColorRelief.Metadata = "";
  wColorRelief.mapservice_layer_id = "Shaded_Relief";



 wNED = new WMSLAYER('Shaded Relief');
  wNED.Visible = false;
  wNED.OGCBaseMap = true;
  wNED.OnTop = false;
  wNED.MinScale = 0;
  wNED.MaxScale = 0.03;
  wNED.legend = "basemap_shadedrelief.jpg";
  wNED.OGCURL = 'http://gisdata.usgs.net/wmsconnector/com.esri.wms.Erimap?WMTVER=1.1.0&ServiceName=USGS_WMS_NED';
  wNED.URL =  '&STYLES=&REQUEST=map&FORMAT=PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&LAYERS=US_NED_Shaded_Relief,Alaska_NED_Shaded_Relief';
  wNED.Summary = "National Elevation Dataset(NED) from USGS.";
  wNED.Metadata = "<a href='http://gisdata.usgs.net./ned/fgdcmetadata.asp' target=_blank>Metadata</a>";
    wNED.DisplayExternal=true;
    wNED.DisplayInternal=true;



wTopos = new WMSLAYER('Topo Map Terraserver');
wTopos.mapservice_name="Topo_Map";
wTopos.mapservice_layer_id = "DRG";
wTopos.Visible = false;
wTopos.OGCBaseMap = true;
wTopos.OnTop = false;
wTopos.MinScale = 0.000018;
wTopos.MaxScale = 0.005;
wTopos.legend = "basemap_topos.jpg";
wTopos.OGCURL = 'http://terraservice.net/ogcmap.ashx?version=1.1.1&service=WMS';
wTopos.URL =  '&SRS=EPSG:4326&format=image/jpeg&layers=DRG&styles=&STYLES=&REQUEST=getmap';   //&Exceptions=se_inimage
wTopos.Summary = "Seamless USGS Topographic map layer.  Also referred to as Digital Raster Graphics(DRG).  Hosted by";
wTopos.Metadata = "<a href='http://terraserver-usa.com/webservices.aspx' target=_blank>TerraServer</a>";
    wTopos.DisplayExternal=true;
    wTopos.DisplayInternal=true;


 wOrtho = new WMSLAYER('Digital Ortho Imagery');
  wOrtho.Visible = false;
  wOrtho.OGCBaseMap = true;
  wOrtho.OnTop = false;
  wOrtho.MinScale = 0.0000115;
  wOrtho.MaxScale = 0.0015;
  wOrtho.legend = "basemap_aerial.jpg";
  wOrtho.OGCURL = 'http://terraservice.net/ogcmap.ashx?version=1.1.1&service=WMS';
  wOrtho.URL = '&SRS=EPSG:4326&format=image/jpeg&layers=DOQ&styles=&STYLES=&REQUEST=getmap';   //&Exceptions=se_blank
  wOrtho.Summary = "Seamless USGS Satelite Imagery map layer.  Also referred to as Digital Ortho Quads(DOQQ).  Hosted by ";
  wOrtho.Metadata = "<a href='http://terraserver-usa.com/webservices.aspx' target=_blank>TerraServer</a>";
    wOrtho.DisplayExternal=true;
    wOrtho.DisplayInternal=true;

 wSMA = new WMSLAYER('Surface Management Agency');                        //layer name must be unique
  wSMA.mapservice_layer_id = "national_forests_dissolved,BLM_lands_dissolved,BLM_lands,BLM_wilderness_areas,BLM_national_monuments,BLM_national_conservation_areas,national_forests,national_parks,BIA,BOR,DOD,FWS,BLM_bankhead_jones,OTHER,STATE,LOCAL";
  wSMA.mapservice_name = MapService_SMA;
  wSMA.OGCURL =  'http://' + HostName_SMA + wmsConnectorURL + MapService_SMA + '?version=1.1.1&service=WMS';
  wSMA.Summary = "";
  wSMA.Visible = false;
  wSMA.MinScale = 0;
  wSMA.MaxScale = 1;
  wSMA.legend = "basemap_sma_geo.gif";
  wSMA.Metadata = "";
  wSMA.URL =  '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&TRANSPARENT=TRUE';
  wSMA.URL += '&LAYERS='+ wSMA.mapservice_layer_id;
  wSMA.OnTop = false;
  wSMA.OGCBaseMap = true;


 wBLM_Admin_Areas = new WMSLAYER('State Jurisdiction Boundary');                        //layer name must be unique
  wBLM_Admin_Areas.mapservice_layer_id = "blm_admin_areas";       //1 or more comma separated layer id's as specified in AXL mapservice file
  wBLM_Admin_Areas.OGCURL =  'http://' + HostName_REF + wmsConnectorURL + MapService_REF + '?version=1.1.1&service=WMS';
  wBLM_Admin_Areas.mapservice_name = MapService_REF;
  wBLM_Admin_Areas.Summary = "";
  wBLM_Admin_Areas.Visible = true;
  wBLM_Admin_Areas.legend = "blm_admin_areas.jpg";
  //wBLM_Admin_Areas.legend = "basemap_blmadminareas.jpg";
  wBLM_Admin_Areas.Metadata = "";
  wBLM_Admin_Areas.URL =  '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&TRANSPARENT=TRUE';
  wBLM_Admin_Areas.URL += '&LAYERS='+ wBLM_Admin_Areas.mapservice_layer_id;
  wBLM_Admin_Areas.OnTop = false;
  wBLM_Admin_Areas.Metadata = "<a href = '../GeoComm/Metadata/basemaps/BLM_MAP_BASEMAPS.htm' target = _blank>BLM Metadata</a>";
  //wBLM_Admin_Areas.OGCBaseMap = true;
  wBLM_Admin_Areas.tablename = dbprefix + "blmadmin_state";
  //wBLM_Admin_Areas.statelayer = false;
  wBLM_Admin_Areas.featuretype = "polygon";
  //wBLM_Admin_Areas.label_columns = "do_code";
  //wBLM_Admin_Areas.workspace = "sde-1";
    wBLM_Admin_Areas.DisplayExternal=true;
    wBLM_Admin_Areas.DisplayInternal=true;


  wBLM_Admin_Areas_labels = new WMSLAYER('State Jurisdiction Boundary Labels');                        //layer name must be unique
    wBLM_Admin_Areas_labels.mapservice_layer_id = "blm_admin_areas_labels";       //1 or more comma separated layer id's as specified in AXL mapservice file
    wBLM_Admin_Areas_labels.mapservice_name = MapService_REF;
    wBLM_Admin_Areas_labels.OGCURL =  'http://' + HostName_REF + wmsConnectorURL + MapService_REF + '?version=1.1.1&service=WMS';
    wBLM_Admin_Areas_labels.Summary = "";
    wBLM_Admin_Areas_labels.Visible = true;
    wBLM_Admin_Areas_labels.Metadata = "";
    wBLM_Admin_Areas_labels.URL =  '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&TRANSPARENT=TRUE';
    wBLM_Admin_Areas_labels.URL += '&LAYERS='+ wBLM_Admin_Areas_labels.mapservice_layer_id;
    wBLM_Admin_Areas_labels.OnTop = false;
    wBLM_Admin_Areas_labels.DisplayExternal=true;
    wBLM_Admin_Areas_labels.DisplayInternal=true;


  wBLM_Admin_Dist = new WMSLAYER('District Boundary');                        //layer name must be unique
    wBLM_Admin_Dist.mapservice_layer_id = "blm_admin_dist";       //1 or more comma separated layer id's as specified in AXL mapservice file
    wBLM_Admin_Dist.OGCURL =  'http://' + HostName_REF + wmsConnectorURL + MapService_REF + '?version=1.1.1&service=WMS';
    wBLM_Admin_Dist.mapservice_name = MapService_REF;
    wBLM_Admin_Dist.Summary = "";
    wBLM_Admin_Dist.Visible = true;
    wBLM_Admin_Dist.MaxScale = 1;
    wBLM_Admin_Dist.legend = "blm_admin_distareas.jpg";
    wBLM_Admin_Dist.Metadata = "";
    wBLM_Admin_Dist.URL =  '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&TRANSPARENT=TRUE';
    wBLM_Admin_Dist.URL += '&LAYERS='+ wBLM_Admin_Dist.mapservice_layer_id;
    wBLM_Admin_Dist.OnTop = false;
    wBLM_Admin_Dist.Metadata = "<a href = '../GeoComm/Metadata/basemaps/BLM_MAP_BASEMAPS.htm' target = _blank>BLM Metadata</a>";
    wBLM_Admin_Dist.DisplayExternal=true;
    wBLM_Admin_Dist.DisplayInternal=true;


  wBLM_Admin_Dist_labels = new WMSLAYER('District Boundary Labels');                        //layer name must be unique
    wBLM_Admin_Dist_labels.mapservice_layer_id = "blm_admin_dist_labels";       //1 or more comma separated layer id's as specified in AXL mapservice file
    wBLM_Admin_Dist_labels.OGCURL =  'http://' + HostName_REF + wmsConnectorURL + MapService_REF + '?version=1.1.1&service=WMS';
    wBLM_Admin_Dist_labels.mapservice_name = MapService_REF;
    wBLM_Admin_Dist_labels.Summary = "";
    wBLM_Admin_Dist_labels.Visible = true;
    wBLM_Admin_Dist_labels.MinScale = 0;
    wBLM_Admin_Dist_labels.MaxScale = .014;
    wBLM_Admin_Dist_labels.Metadata = "";
    wBLM_Admin_Dist_labels.URL =  '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&TRANSPARENT=TRUE';
    wBLM_Admin_Dist_labels.URL += '&LAYERS='+ wBLM_Admin_Dist_labels.mapservice_layer_id;
    wBLM_Admin_Dist_labels.OnTop = false;
    wBLM_Admin_Dist_labels.DisplayExternal=true;
    wBLM_Admin_Dist_labels.DisplayInternal=true;

  wBLM_FORA = new WMSLAYER('Field Offices and Resource Areas');                        //layer name must be unique
    wBLM_FORA.mapservice_layer_id = "blm_FORA";       //1 or more comma separated layer id's as specified in AXL mapservice file
    wBLM_FORA.OGCURL =  'http://' + HostName_REF + wmsConnectorURL + MapService_REF + '?version=1.1.1&service=WMS';
    wBLM_FORA.mapservice_name = MapService_REF;
    wBLM_FORA.Summary = "";
    wBLM_FORA.Visible = true;
    wBLM_FORA.MaxScale = .014;
    wBLM_FORA.legend = "blm_admin_foareas.jpg";
    wBLM_FORA.Metadata = "";
    wBLM_FORA.URL =  '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&TRANSPARENT=TRUE';
    wBLM_FORA.URL += '&LAYERS='+ wBLM_FORA.mapservice_layer_id;
    wBLM_FORA.OnTop = false;
    wBLM_FORA.Metadata = "<a href = '../GeoComm/Metadata/basemaps/BLM_MAP_BASEMAPS.htm' target = _blank>BLM Metadata</a>";
    wBLM_FORA.DisplayExternal=true;
    wBLM_FORA.DisplayInternal=true;


    wBLM_FORA_labels = new WMSLAYER('Field Offices and Resource Areas Labels');                        //layer name must be unique
      wBLM_FORA_labels.mapservice_layer_id = "blm_FORA_labels_FO,blm_FORA_labels_name";       //1 or more comma separated layer id's as specified in AXL mapservice file
      wBLM_FORA_labels.OGCURL =  'http://' + HostName_REF + wmsConnectorURL + MapService_REF + '?version=1.1.1&service=WMS';
      wBLM_FORA_labels.mapservice_name = MapService_REF;
      wBLM_FORA_labels.Summary = "";
      wBLM_FORA_labels.Visible = true;
      wBLM_FORA_labels.MaxScale = .014;
      wBLM_FORA_labels.URL =  '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&TRANSPARENT=TRUE';
      wBLM_FORA_labels.URL += '&LAYERS='+ wBLM_FORA_labels.mapservice_layer_id;
      wBLM_FORA_labels.OnTop = false;
    wBLM_FORA_labels.DisplayExternal=true;
    wBLM_FORA_labels.DisplayInternal=true;


  wPLSS_PM = new WMSLAYER('PLSS Principal Meridians');
  wPLSS_PM.mapservice_layer_id = "meridians,meridian_lines,base_lines,base_line_labels,meridian_line_labels,meridian_labels";
  wPLSS_PM.mapservice_name = MapService_PLSS;
  wPLSS_PM.OGCURL =  'http://' + HostName_PLSS + wmsConnectorURL + MapService_PLSS + '?version=1.1.1&service=WMS';
  wPLSS_PM.Summary = "";
  wPLSS_PM.Visible = false;
  wPLSS_PM.MinScale = 0;
  wPLSS_PM.MaxScale = 1;
  wPLSS_PM.legend = "basemap_meridians.jpg";
  wPLSS_PM.Metadata = "";
  wPLSS_PM.URL =  '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&TRANSPARENT=TRUE';
  wPLSS_PM.URL += '&LAYERS='+ wPLSS_PM.mapservice_layer_id;
  wPLSS_PM.OnTop = false;
  //wPLSS_PM.OGCBaseMap = true;
    wPLSS_PM.DisplayExternal=true;
    wPLSS_PM.DisplayInternal=true;  


 wtwp_Index2 = new WMSLAYER('Data Download Availability');
  wtwp_Index2.Visible = true;
  wtwp_Index2.OGCBaseMap = true;
  wtwp_Index2.OnTop = false;
  wtwp_Index2.MinScale = 0;
  wtwp_Index2.MaxScale = 1;
  wtwp_Index2.legend = "blm_availability.jpg";
  wtwp_Index2.OGCURL = 'http://' + HostName_TWP_Index + wmsConnectorURL + MapService_TWP_Index + '?version=1.1.1&service=WMS';
  wtwp_Index2.URL = '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&LAYERS=twp_availability_flatfile,twp_availability_altsrc,twp_availability_blm';
  wtwp_Index2.Summary = "This is an index showing data download availability of Township data.   BLM Township data, USFS data, and avaialbility of other sources are symbolized by this index.";
  wtwp_Index2.Metadata = "<a href='http://www.lsi.blm.gov/metadata/default.htm' target=_blank>BLM, USFS, and Alternate Sources Metadata Page</a>";
      wtwp_Index2.DisplayExternal=true;
    wtwp_Index2.DisplayInternal=true;
  


  wNGS_Topo_US_2D = new WMSLAYER('Topo Map NGS');                        //layer name must be unique
    wNGS_Topo_US_2D.mapservice_layer_id = '4';
    wNGS_Topo_US_2D.OGCURL =  'http://' + HostName_USFS + MXDwmsConnectorURL + MapService_BASEMAPS_WMS +'?version=1.1.1&service=WMS';
    wNGS_Topo_US_2D.Summary = "";
    wNGS_Topo_US_2D.Visible = false;
    wNGS_Topo_US_2D.MinScale = 0;
    wNGS_Topo_US_2D.MaxScale = 1;
    wNGS_Topo_US_2D.Metadata = "<a href='http://resources.esri.com/arcgisonlineservices/index.cfm?fa=content_detail&contentID=C3D720F5-1422-2413-191604FA0A81D873' target=_blank>NGS Topo Map Metadata</a>";
    wNGS_Topo_US_2D.URL =  '&SRS=4326&STYLES=&REQUEST=getmap&FORMAT=image/png&TRANSPARENT=FALSE';
    wNGS_Topo_US_2D.URL += '&LAYERS='+ wNGS_Topo_US_2D.mapservice_layer_id;
    wNGS_Topo_US_2D.OnTop = false;
    wNGS_Topo_US_2D.OGCBaseMap = true;
    wNGS_Topo_US_2D.DisplayExternal=true;
    wNGS_Topo_US_2D.DisplayInternal=true;    

  wNGS_Political_World_2D = new WMSLAYER('NGS_Political_World_2D');                        //layer name must be unique
    wNGS_Political_World_2D.mapservice_layer_id = '5';
    wNGS_Political_World_2D.OGCURL =  'http://' + HostName_USFS + MXDwmsConnectorURL + MapService_BASEMAPS_WMS +'?version=1.1.1&service=WMS';
    wNGS_Political_World_2D.Summary = "";
    wNGS_Political_World_2D.Visible = false;
    wNGS_Political_World_2D.MinScale = 0;
    wNGS_Political_World_2D.MaxScale = 1;
    wNGS_Political_World_2D.Metadata = "NGS_Political_World_2D";
    wNGS_Political_World_2D.URL =  '&SRS=4326&STYLES=&REQUEST=getmap&FORMAT=image/png&TRANSPARENT=TRUE';
    wNGS_Political_World_2D.URL += '&LAYERS='+ wNGS_Political_World_2D.mapservice_layer_id;
    wNGS_Political_World_2D.OnTop = false;
    wNGS_Political_World_2D.OGCBaseMap = true;
    wNGS_Political_World_2D.DisplayExternal=true;
    wNGS_Political_World_2D.DisplayInternal=true;    

  wMDA_Satellite_World_2D = new WMSLAYER('World Satellite Imagery MDA');                        //layer name must be unique
    wMDA_Satellite_World_2D.mapservice_layer_id = '4';
    wMDA_Satellite_World_2D.OGCURL =  'http://' + HostName_USFS + MXDwmsConnectorURL + MapService_BASEMAPS_WMS +'?version=1.1.1&service=WMS';
    wMDA_Satellite_World_2D.Summary = "";
    wMDA_Satellite_World_2D.Visible = false;
    wMDA_Satellite_World_2D.MinScale = 0;
    wMDA_Satellite_World_2D.MaxScale = 1;
    wMDA_Satellite_World_2D.Metadata = "<a href='http://arcgisonline.esri.com/index.cfm?fa=catalog.baseMapServices2D&service=MDA_Satellite_World_2D' target=_blank>MDA World Satellite Imagery Metadata</a>";
    wMDA_Satellite_World_2D.URL =  '&SRS=4326&STYLES=&REQUEST=getmap&FORMAT=image/png&TRANSPARENT=TRUE';
    wMDA_Satellite_World_2D.URL += '&LAYERS='+ wMDA_Satellite_World_2D.mapservice_layer_id;
    wMDA_Satellite_World_2D.OnTop = false;
    wMDA_Satellite_World_2D.OGCBaseMap = true;
    wMDA_Satellite_World_2D.DisplayExternal=true;
    wMDA_Satellite_World_2D.DisplayInternal=true;    

  wESRI_ShadedRelief_World_2D = new WMSLAYER('ESRI_ShadedRelief_World_2D');                        //layer name must be unique
    wESRI_ShadedRelief_World_2D.mapservice_layer_id = '3';
    wESRI_ShadedRelief_World_2D.OGCURL =  'http://' + HostName_USFS + MXDwmsConnectorURL + MapService_BASEMAPS_WMS +'?version=1.1.1&service=WMS';
    wESRI_ShadedRelief_World_2D.Summary = "";
    wESRI_ShadedRelief_World_2D.Visible = false;
    wESRI_ShadedRelief_World_2D.MinScale = 0;
    wESRI_ShadedRelief_World_2D.MaxScale = 1;
    wESRI_ShadedRelief_World_2D.Metadata = "ESRI_ShadedRelief_World_2D";
    wESRI_ShadedRelief_World_2D.URL =  '&SRS=4326&STYLES=&REQUEST=getmap&FORMAT=image/png&TRANSPARENT=TRUE';
    wESRI_ShadedRelief_World_2D.URL += '&LAYERS='+ wESRI_ShadedRelief_World_2D.mapservice_layer_id;
    wESRI_ShadedRelief_World_2D.OnTop = false;
    wESRI_ShadedRelief_World_2D.OGCBaseMap = true;
    wESRI_ShadedRelief_World_2D.DisplayExternal=true;
    wESRI_ShadedRelief_World_2D.DisplayInternal=true;    

  wESRI_StreetMap_World_2D = new WMSLAYER('World Street Map ESRI');                        //layer name must be unique
    //wESRI_StreetMap_World_2D.mapservice_layer_id = '2';
    wESRI_StreetMap_World_2D.mapservice_layer_id = '1';
    wESRI_StreetMap_World_2D.OGCURL =  'http://' + HostName_USFS + MXDwmsConnectorURL + MapService_BASEMAPS_WMS +'?version=1.1.1&service=WMS';
    wESRI_StreetMap_World_2D.Summary = "";
    wESRI_StreetMap_World_2D.Visible = false;
    wESRI_StreetMap_World_2D.MinScale = 0;
    wESRI_StreetMap_World_2D.MaxScale = 1;
    wESRI_StreetMap_World_2D.Metadata = "<a href='http://resources.esri.com/arcgisonlineservices/index.cfm?fa=content_detail&contentID=C3D3A7D6-1422-2413-190ED12295F6FA3F' target=_blank>World Street Map ESRI Metadata</a>";
    wESRI_StreetMap_World_2D.URL =  '&SRS=4326&STYLES=&REQUEST=getmap&FORMAT=image/png&TRANSPARENT=FALSE';
    wESRI_StreetMap_World_2D.URL += '&LAYERS='+ wESRI_StreetMap_World_2D.mapservice_layer_id;
    wESRI_StreetMap_World_2D.OnTop = false;
    wESRI_StreetMap_World_2D.OGCBaseMap = true;
    wESRI_StreetMap_World_2D.DisplayExternal=true;
    wESRI_StreetMap_World_2D.DisplayInternal=true;    

  wI3_Imagery_Prime_World_2D = new WMSLAYER('Digital Ortho Imagery Color ');                        //layer name must be unique
    wI3_Imagery_Prime_World_2D.mapservice_layer_id = '0';
    wI3_Imagery_Prime_World_2D.OGCURL =  'http://' + HostName_USFS + MXDwmsConnectorURL + MapService_BASEMAPS_WMS +'?version=1.1.1&service=WMS';
    wI3_Imagery_Prime_World_2D.Summary = "";
    wI3_Imagery_Prime_World_2D.Visible = false;
    wI3_Imagery_Prime_World_2D.MinScale = 0;
    wI3_Imagery_Prime_World_2D.MaxScale = 1;
    wI3_Imagery_Prime_World_2D.Metadata = "<a href='http://resources.esri.com/arcgisonlineservices/index.cfm?fa=content_detail&contentID=F7EE515D-1422-2413-199DAEFAA2B134F9' target=_blank>I-cubed Nationwide Prime Ortho Imagery Metadata</a>";
    wI3_Imagery_Prime_World_2D.URL =  '&SRS=4326&STYLES=&REQUEST=getmap&FORMAT=image/png&TRANSPARENT=FALSE';
    wI3_Imagery_Prime_World_2D.URL += '&LAYERS='+ wI3_Imagery_Prime_World_2D.mapservice_layer_id;
    wI3_Imagery_Prime_World_2D.OnTop = false;
    wI3_Imagery_Prime_World_2D.OGCBaseMap = true;
    wI3_Imagery_Prime_World_2D.DisplayExternal=true;
    wI3_Imagery_Prime_World_2D.DisplayInternal=true;    


  wSMA_Test = new WMSLAYER('Surface Management Agency 9.3');                        //layer name must be unique
    wSMA_Test.mapservice_layer_id = "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
    wSMA_Test.OGCURL =  'http://206.16.47.171/ArcGIS/services/BASEMAPS/MapServer/WMSServer?version=1.1.1&service=WMS';
    wSMA_Test.Summary = "";
    wSMA_Test.Visible = false;
    wSMA_Test.MinScale = 0;
    wSMA_Test.MaxScale = 1;
    wSMA_Test.legend = "basemap_sma_geo.gif";
    wSMA_Test.Metadata = "";
    wSMA_Test.URL =  '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=image/png&TRANSPARENT=TRUE';
    wSMA_Test.URL += '&LAYERS='+ wSMA_Test.mapservice_layer_id;
    wSMA_Test.OnTop = false;
    wSMA_Test.OGCBaseMap = true;


  wreport_case_errors = new WMSLAYER('Parcel Errors');                        //layer name must be unique
   wreport_case_errors.mapservice_layer_id = "parcel_errors";
   wreport_case_errors.mapservice_name = MapService_PLSS;
   wreport_case_errors.OGCURL =  'http://' + HostName_PLSS + wmsConnectorURL + MapService_PLSS + '?version=1.1.1&service=WMS';
   wreport_case_errors.Summary = "Shows townships that had processing errors for Extract/Create/Maintain.";
   wreport_case_errors.Visible = false;
   wreport_case_errors.MinScale = 0;
   wreport_case_errors.MaxScale = .02;
   wreport_case_errors.legend = "parcel_errors.jpg";
   wreport_case_errors.Metadata = "";
   wreport_case_errors.URL =  '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&TRANSPARENT=TRUE';
   wreport_case_errors.URL += '&LAYERS='+ wreport_case_errors.mapservice_layer_id;
   wreport_case_errors.OnTop = false;
   wreport_case_errors.OGCBaseMap = false;

  wreport_case_totals = new WMSLAYER('LR2000 Total Cases');                        //layer name must be unique
   wreport_case_totals.mapservice_layer_id = "parcel_cases";
   wreport_case_totals.mapservice_name = MapService_PLSS;
   wreport_case_totals.OGCURL =  'http://' + HostName_PLSS + wmsConnectorURL + MapService_PLSS + '?version=1.1.1&service=WMS';
   wreport_case_totals.Summary = "Shows township density map of LR2000 total cases ";
   wreport_case_totals.Visible = false;
   wreport_case_totals.MinScale = 0;
   wreport_case_totals.MaxScale = .02;
   wreport_case_totals.legend = "parcel_cases.jpg";
   wreport_case_totals.Metadata = "";
   wreport_case_totals.URL =  '&SRS=EPSG:4269&STYLES=&REQUEST=getmap&FORMAT=IMAGE/PNG&TRANSPARENT=TRUE';
   wreport_case_totals.URL += '&LAYERS='+ wreport_case_totals.mapservice_layer_id;
   wreport_case_totals.OnTop = false;
   wreport_case_totals.OGCBaseMap = false;



 
}


