// ArcIMSparam.js
// javascript file with parameters specific to calling page

//***************************************************************************
//*			parameters File for HTML Template		    *
//***************************************************************************
// get machine name
var hostName = document.location.host;
// make URL for getting mapservice catalog
var catURL = "http://" + hostName + "/servlet/com.esri.esrimap.Esrimap?ServiceName=catalog";
// make prefix for URL
var serverURL  = "http://" + hostName + "/servlet/com.esri.esrimap.Esrimap?ServiceName=";


//*********************************************************************
//*			parameters set by Designer			                     *
//*********************************************************************
var imsURL = 'http://' + hostName + '/servlet/com.esri.esrimap.Esrimap?ServiceName=Map_Warehouse';
var imsOVURL =  'http://' + hostName + '/servlet/com.esri.esrimap.Esrimap?ServiceName=Map_Warehouse';
var imsQueryURL = '';
var imsGeocodeURL = '';


//ADDED 4/20/2006
//*** Identify permit tool *************
  var useIdentify_Permit = true;

  //ADDED 3/28/2007
//*** Redlining *************
  var useRedlining = true;

//ADDED 2/23/2005
//*** Calculate Polygon Area tool *************
  var usePolyArea = true;
  var clickPolyAreaLineColor = "0,0,255";
  var clickPolyAreaPointColor = "0,0,255";
  var polyAreaFillColor = "0,0,255";
  var polyAreaBoundaryColor = "0,0,255";
  var polyAreaFontStyle = "Normal";
  var polyAreaFontSize = "12";
  var polyAreaFont = "Verdana";
  var polyAreaFontColor = "0,0,255";
//END ADDED

// variables for setting component colors
var mapBackColor = "255,255,255"
var ovBoxColor = '#ff0000';
var ovBoxSize = 3;
var zoomBoxColor = '#000000';

// variables for using individual components

var hasOVMap = false;
var hasTOC = true;
var useModeFrame = true;

//initial map extent
var startLeft = 2197956.42;
var startRight = 2396778.72;
var startTop = 14939245.51;
var startBottom = 14813571.77;
//maximum map extent
var limitLeft = 737508;
var limitRight = 5899942;
var limitTop = 1.5941148E7;
var limitBottom = 1.1760783E7;

//full extent tool values. - M. Lawton 11/20/2007
var fullExLeft = 2000000.0;
var fullExRight = 2800000.0;
var fullExTop = 1.58E7;
var fullExBottom = 1.47E7;

var usePan=true;
var usePanNorth=false;
var usePanWest=false;
var usePanEast=false;
var usePanSouth=false;
var useZoomIn=true;
var useZoomOut=true;
var useFullExtent=true;
var useZoomActive=false;
var useZoomLast=false;
var useIdentify=true;
var useMeasure=true;
var useSetUnits=false;
var useSelect=true;
var useQuery=true;
var useFind=false;
var useGeocode=false;
var useStoredQuery=true;
var useClearSelect=true;
var usePrint=true;
var useGeoNetwork=false;
var useBuffer=true;
var useExtract=false;
var useHelp=true;

var MapUnits = "Feet";
var ScaleBarUnits = "Feet";
// End of Designer set parameters
var useHyperLink=false;
var useHyperLinkAny=false;
var useIdentifyAll=false;
var useBufferShape=false; 
var hasToolBarOnLayer=false;
	// useHyperLink takes priority - both cannot be true
if (useHyperLink) useHyperLinkAny=false;
	// useIdentify takes priority - both cannot be true
if (useIdentify) useIdentifyAll=false;
	// allow debugging
var setDebug=true;

/**************************************
* Basic Map parameters
**************************************/
// variables for map pixel offset from upper left corner of frame
	// horizontal offset
var hspc = 0;
	// vertical offset
var vspc = 0;

//panning factor for arrow buttons
var panFactor = 85/100;
//zoom factors for v.3
var zoomFactor = 2

// 25/100 margin factor for zooming in on selected lines and polygons - based on feature width and height. . . margin will be selectMargin * width or height
var selectMargin = 25/100;
// margin margin factor for zooming in on selected points - based on full extent. . . margin will be selectPointMargin * fullWidth or fullHeight
var selectPointMargin = 5/10000

// show the scale factor
var showScalePercent=false;
// display coords in status line
var showXYs=false;

// Have ArcXML responses URL encoded? Will not work with multi-byte characters
var doURLencode = false;

//variables for MapDrawing
	// North Arrow
var drawNorthArrow = true;
var NorthArrowType = "4";
var NorthArrowSize = "20";
var NorthArrowCoords = "35 40";
var NorthArrowAngle = "0";
	// Scale Bar
var drawScaleBar = true;
	// MapUnits=DEGREES,FEET,METERS
	// can MapUnits be changed by user?
var setMapUnits=false;
	// ScaleBarUnits=KILOMETERS,METERS,MILES,FEET
var ScaleBarUnits = "FEET";
var ScaleBarBackground = "TRUE";
var ScaleBarBackColor = "0,0,0";
var ScaleBarFontColor = "255,255,255";
var ScaleBarColor = "255,255,255";
var ScaleBarFont = "Arial";
var ScaleBarStyle = "Regular";
var ScaleBarRound = "1";
var ScaleBarSize = "14";
var ScaleBarWidth = "4";
var ScaleBarPrecision = 4;
var numDecimals = ScaleBarPrecision;
	// Scale Bar 2
var drawScaleBar2 = false;
var ScaleBar2Units = "KILOMETERS";
var ScaleBar2Background = "false";
var ScaleBar2BackColor = "0,0,0";
var ScaleBar2FontColor = "0,0,0";
var ScaleBar2Color = "128,128,128";
var ScaleBar2Font = "";
var ScaleBar2Style = "Regular";
var ScaleBar2Round = "1";
var ScaleBar2Size = "9";
var ScaleBar2Width = "5";
var ScaleBar2Precision = 2;
	// Copyright blurb
var drawCopyright = true;
var CopyrightFont = "Arial";
var CopyrightStyle = "Regular";
var CopyrightSize = "10";
var CopyrightCoords = "6 6";
var CopyrightColor = "0,0,0";
var CopyrightBackground = "False";
var CopyrightBGColor = "255,255,255";
var CopyrightGlow = "True";
var CopyrightGlowColor = "255,255,255";
var CurrentYear = new Date().getFullYear();
var CopyrightText = "Copyright " + CurrentYear + " Washoe County GIS";

	// place bar behind Copyright text and scalebars
var drawBottomBar = false;
var bottomBarColor = "255,255,255";
var bottomBarOutline = "0,0,0";
var bottomBarHeight = "18";

	// Mode on Map
var drawModeOnMap = false;
var modeRefreshMap = false;
var modeMapColor = "255,255,255";
var modeMapGlow = "128,0,255";

var ovImageVar;
var ovBorderWidth = 2;
var ovExtentBoxSize = 2;

// map image background transparent? - requires gif or png8 types
var mapTransparent=false;

// setup test for Nav 4.0
var isIE = false;
var isNav = (navigator.appName.indexOf("Netscape")>=0);
var isNav4 = false;
var isIE4 = false;
var is5up = false;
//alert(navigator.appVersion);
if (isNav) {
	
	if (parseFloat(navigator.appVersion)<5) {
		isNav4=true;
		//alert("Netscape 4.x or older");
	} else {
		is5up = true;
	}
} else {
	isIE4=true;
	isIE=true;
	if (navigator.appVersion.indexOf("MSIE 5")>0) {
		isIE4 = false;
		is5up = true;
		//alert("IE5");
	}
}	
		
/**************************************
* Extended Map parameters
**************************************/

// variables for ovmap offset
var ovHspc = 0;
var ovVspc = 0;

// color for Main Map zoombox in html hex RGB format
//var zoomBoxColor = "#E7CD43";

// index of initial active layer. . . if more than or equal to layer count top layer used
var ActiveLayerIndex=20;

// variables for using individual components
var useTextFrame=true;
// use external window for dialogs
var useExternalWindow=false;

// colors for tables 
var textFrameBackColor="#EDEDD8";
var tableBackColor="White";
var textFrameTextColor="Black";
var textFrameLinkColor="Blue";
var textFrameFormColor="Gray";

// LayerList visible at service load
var showTOC=true;
// set layer visibility according to LayerList or by custom programming
var toggleVisible = true;
// set layer visibility of OVMap according to LayerList or by custom programming
	// imsURL must equal imsOVMap - depends on one LayerList
var toggleOVVisible = false;
// will the LayerList show all layers, not just those available at current scale
var listAllLayers = false;

// toggle the check of non-listing of layers in LayerList and Legend
// if true, noListLayer array must have an element defined for each layer
var hideLayersFromList=true;
// layers that will be listed in the LayerList or Legend
	// Note: This does not affect map display
var noListLayer = new Array();
 noListLayer[0] = false; //Vacant
 noListLayer[1] = false; //Vacant
 noListLayer[2] = false; //Vacant
 noListLayer[3] = false; //Vacant
 noListLayer[4] = false; //Vacant
 noListLayer[5] = false; //Vacant
 noListLayer[6] = false; //Vacant
 noListLayer[7] = false; //Vacant
 noListLayer[8] = false; //Vacant
 noListLayer[9] = false; //Vacant
 noListLayer[10] = false; //Vacant
 noListLayer[11] = false; //Vacant
 noListLayer[12] = false; //Vacant
 noListLayer[13] = false; //Vacant
 noListLayer[13] = false; //Vacant
 noListLayer[14] = false; //Vacant
 noListLayer[15] = false; //Fire Stations
 noListLayer[16] = false; //Vacant
 noListLayer[17] = false; //Government Buildings
 noListLayer[18] = false; //Vacant
 noListLayer[19] = false; //Libraries
 noListLayer[20] = false; //Vacant
 noListLayer[21] = false; //Vacant
 noListLayer[22] = false; //Vacant
 noListLayer[23] = false; //Law Enforcement
 noListLayer[24] = false; //Vacant
 noListLayer[25] = false; //Polling Places
 noListLayer[26] = false; //Vacant
 noListLayer[27] = false; //Schools
 noListLayer[28] = false; //Vacant
 noListLayer[29] = false; //Casinos
 noListLayer[30] = false; //Vacant
 noListLayer[31] = false; //Webcams
 noListLayer[32] = false; //Vacant
 noListLayer[33] = false; //Photo Points
 noListLayer[34] = false; //Vacant
 noListLayer[35] = false; //Care Facility
 noListLayer[36] = false; //Vacant
 noListLayer[37] = false; //Vacant
 noListLayer[38] = false; //Vacant
 noListLayer[39] = false; //Bus Stations
 noListLayer[40] = false; //Vacant
 noListLayer[41] = false; //Vacant
 noListLayer[42] = false; //Vacant
 noListLayer[43] = false; //Vacant
 noListLayer[44] = false; //Intersections
 noListLayer[45] = false; //Vacant
 noListLayer[46] = false; //Vacant
 noListLayer[47] = false; //Vacant
 noListLayer[48] = false; //Vacant
 noListLayer[49] = false; //Vacant
 noListLayer[50] = false; //Survey Points
 noListLayer[51] = false; //Vacant
 noListLayer[52] = false; //Township/Range
 noListLayer[53] = false; //Township/Range
 noListLayer[54] = false; //Parcels
 noListLayer[55] = false; //Multilevel
 noListLayer[56] = false; //FEMA LOMR Labels
 noListLayer[57] = false; //Vacant
 noListLayer[58] = false; //Trailheads
 noListLayer[59] = false; //Vacant
 noListLayer[60] = false; //Summits
 noListLayer[61] = false; //Vacant
 noListLayer[62] = false; //Truckee River Rafting
 noListLayer[63] = false; //Vacant
 noListLayer[64] = false; //Vacant
 noListLayer[65] = false; //Vacant
 noListLayer[66] = false; //Vacant
 noListLayer[67] = false; //Vacant
 noListLayer[68] = false; //Vacant
 noListLayer[69] = false; //Vacant
 noListLayer[70] = false; //Vacant
 noListLayer[71] = false; //Vacant
 noListLayer[72] = false; //Vacant
 noListLayer[73] = false; //Vacant
 noListLayer[74] = false; //Vacant
 noListLayer[75] = false; //Vacant
 noListLayer[76] = false; //Vacant
 noListLayer[77] = false; //Vacant
 noListLayer[78] = false; //Vacant
 noListLayer[79] = false; //Vacant
 noListLayer[80] = false; //Vacant
 noListLayer[81] = false; //Vacant
 noListLayer[82] = false; //Vacant
 noListLayer[83] = false; //Vacant
 noListLayer[84] = false; //Vacant
 noListLayer[85] = false; //Vacant
 noListLayer[86] = false; //Vacant
 noListLayer[87] = false; //Vacant
 noListLayer[88] = false; //Vacant
 noListLayer[89] = false; //Vacant
 noListLayer[90] = false; //Vacant
 noListLayer[91] = false; //Vacant
 noListLayer[92] = false; //Vacant
 noListLayer[93] = false; //Vacant
 noListLayer[94] = false; //Vacant
 noListLayer[95] = false; //Vacant
 noListLayer[96] = false; //Vacant
 noListLayer[97] = false; //Vacant
 noListLayer[98] = false; //Vacant
 noListLayer[99] = false; //Vacant
 noListLayer[100] = false; //Vacant
 noListLayer[101] = false; //Vacant
 noListLayer[102] = false; //Vacant
 noListLayer[103] = false; //Vacant
 noListLayer[104] = false; //Vacant
 noListLayer[105] = false; //Vacant
 noListLayer[106] = false; //Vacant
 noListLayer[107] = false; //Vacant
 noListLayer[108] = false; //Vacant
 noListLayer[109] = false; //Bike Paths
 noListLayer[110] = false; //Vacant
 noListLayer[111] = false; //Bus Routes
 noListLayer[112] = false; //Vacant
 noListLayer[113] = false; //Major Roads
 noListLayer[114] = false; //Vacant
 noListLayer[115] = false; //Roads
 noListLayer[116] = false; //2 Foot Contours
 noListLayer[117] = false; //Vacant
 noListLayer[118] = false; //USGS 10m Contours
 noListLayer[119] = false; //McCarran Loop
 noListLayer[120] = false; //Vacant
 noListLayer[121] = false; //Vacant
 noListLayer[122] = false; //Trails
 noListLayer[123] = false; //Vacant
 noListLayer[124] = false; //Vacant
 noListLayer[125] = false; //Vacant
 noListLayer[126] = false; //Vacant
 noListLayer[127] = false; //Vacant
 noListLayer[128] = false; //Vacant
 noListLayer[129] = false; //Vacant
 noListLayer[130] = false; //Vacant
 noListLayer[131] = false; //Vacant
 noListLayer[132] = false; //Vacant
 noListLayer[133] = false; //Vacant
 noListLayer[134] = false; //Vacant
 noListLayer[135] = false; //Vacant
 noListLayer[136] = false; //Vacant
 noListLayer[137] = false; //Vacant
 noListLayer[138] = false; //Vacant
 noListLayer[139] = false; //Vacant
 noListLayer[140] = false; //Vacant
 noListLayer[141] = false; //Vacant
 noListLayer[142] = false; //Vacant
 noListLayer[143] = false; //Vacant
 noListLayer[144] = false; //Vacant
 noListLayer[145] = false; //Vacant
 noListLayer[146] = false; //Vacant
 noListLayer[147] = false; //Vacant
 noListLayer[148] = false; //Vacant
 noListLayer[149] = false; //Vacant
 noListLayer[150] = false; //Vacant
 noListLayer[151] = false; //Vacant
 noListLayer[152] = false; //Vacant
 noListLayer[153] = false; //Vacant
 noListLayer[154] = false; //Vacant
 noListLayer[155] = false; //Vacant
 noListLayer[156] = false; //Vacant
 noListLayer[157] = false; //Vacant
 noListLayer[158] = false; //Vacant
 noListLayer[159] = false; //Vacant
 noListLayer[160] = false; //Vacant
 noListLayer[161] = false; //Vacant
 noListLayer[162] = false; //Vacant
 noListLayer[163] = false; //Vacant
 noListLayer[164] = false; //Vacant
 noListLayer[165] = false; //Vacant
 noListLayer[166] = false; //Vacant
 noListLayer[167] = false; //Vacant
 noListLayer[168] = false; //Vacant
 noListLayer[169] = false; //Vacant
 noListLayer[170] = false; //Vacant
 noListLayer[171] = false; //Vacant
 noListLayer[172] = false; //Vacant
 noListLayer[173] = false; //Vacant
 noListLayer[174] = false; //Vacant
 noListLayer[175] = false; //Vacant
 noListLayer[176] = false; //Vacant
 noListLayer[177] = false; //Vacant
 noListLayer[178] = false; //Vacant
 noListLayer[179] = false; //Vacant
 noListLayer[180] = false; //Vacant
 noListLayer[181] = false; //Vacant
 noListLayer[182] = false; //Vacant
 noListLayer[183] = false; //Vacant
 noListLayer[184] = false; //Vacant
 noListLayer[185] = false; //Vacant
 noListLayer[186] = false; //Vacant
 noListLayer[187] = false; //Vacant
 noListLayer[188] = false; //Vacant
 noListLayer[189] = false; //Vacant
 noListLayer[190] = false; //Vacant
 noListLayer[191] = false; //Vacant
 noListLayer[192] = false; //Vacant
 noListLayer[193] = false; //Vacant
 noListLayer[194] = false; //Vacant
 noListLayer[195] = false; //Vacant
 noListLayer[196] = false; //Vacant
 noListLayer[197] = false; //Vacant
 noListLayer[198] = false; //Vacant
 noListLayer[199] = false; //Vacant
 noListLayer[200] = false; //Vacant
 noListLayer[201] = false; //Vacant
 noListLayer[202] = false; //Vacant
 noListLayer[203] = false; //Vacant
 noListLayer[204] = false; //Vacant
 noListLayer[205] = false; //Vacant
 noListLayer[206] = false; //Vacant
 noListLayer[207] = false; //Vacant
 noListLayer[208] = false; //Vacant
 noListLayer[209] = false; //Hydrobasins
 noListLayer[210] = false; //Vacant
 noListLayer[211] = false; //Permits
 noListLayer[212] = false; //Vacant
 noListLayer[213] = false; //Airports
 noListLayer[214] = false; //Vacant
 noListLayer[215] = false; //Parks
 noListLayer[216] = false; //Vacant
 noListLayer[217] = false; //Malls
 noListLayer[218] = false; //Vacant
 noListLayer[219] = false; //Universities
 noListLayer[220] = false; //Vacant
 noListLayer[221] = false; //FEMA FIRM Boundaries
 noListLayer[222] = false; //Vacant
 noListLayer[223] = false; //Zip Code
 noListLayer[224] = false; //Vacant
 noListLayer[225] = false; //Planned Land Use
 noListLayer[226] = false; //Vacant
 noListLayer[227] = false; //Washoe County
 noListLayer[228] = false; //County Boundaries
 noListLayer[229] = false; //Nevada
 noListLayer[230] = false; //Vacant
 noListLayer[231] = false; //Reno SOI
 noListLayer[232] = false; //Vacant
 noListLayer[233] = false; //Sparks SOI
 noListLayer[234] = false; //Vacant
 noListLayer[235] = false; //Reno Exerted Jurisdiction
 noListLayer[236] = false; //Sparks Exerted Jurisdiction
 noListLayer[237] = false; //Vacant
 noListLayer[238] = false; //Reno City Limits
 noListLayer[239] = false; //Vacant
 noListLayer[240] = false; //Sparks City Limits
 noListLayer[241] = false; //Vacant
 noListLayer[242] = false; //Reno\Stead Corridor Joint Plan
 noListLayer[243] = false; //Vacant
 noListLayer[244] = false; //Southeast Specific Plan
 noListLayer[245] = false; //Vacant
 noListLayer[246] = false; //South Virginia Corridor
 noListLayer[247] = false; //Vacant
 noListLayer[248] = false; //Subdivision Boundaries
 noListLayer[249] = false; //Vacant
 noListLayer[250] = false; //Steamboat Specific Plan
 noListLayer[251] = false; //Vacant
 noListLayer[252] = false; //Warm Springs Specific Plan
 noListLayer[253] = false; //Vacant
 noListLayer[254] = false; //Commissioner Districts
 noListLayer[255] = false; //Vacant
 noListLayer[256] = false; //Precincts
 noListLayer[257] = false; //Vacant
 noListLayer[258] = false; //General Improvement Districts
 noListLayer[259] = false; //Vacant
 noListLayer[260] = false; //Planning Areas
 noListLayer[261] = false; //Business License
 noListLayer[262] = false; //Elementary School Zoning
 noListLayer[263] = false; //Vacant
 noListLayer[264] = false; //Middle School Zoning
 noListLayer[265] = false; //Vacant
 noListLayer[266] = false; //High School Zoning
 noListLayer[267] = false; //Vacant
 noListLayer[268] = false; //Senate Districts
 noListLayer[269] = false; //Vacant
 noListLayer[270] = false; //Assembly Districts
 noListLayer[271] = false; //Vacant
 noListLayer[272] = false; //Reno Wards
 noListLayer[273] = false; //Vacant
 noListLayer[274] = false; //Sparks Wards
 noListLayer[275] = false; //Vacant
 noListLayer[276] = false; //School Board Trustees
 noListLayer[277] = false; //Vacant
 noListLayer[278] = false; //Census 2000 Blocks
 noListLayer[279] = false; //Vacant
 noListLayer[280] = false; //Census 2000 Tracts
 noListLayer[281] = false; //Vacant
 noListLayer[282] = false; //FEMA LOMR Boundaries
 noListLayer[283] = false; //Vacant
 noListLayer[284] = false; //Federal Lands
 noListLayer[285] = false; //Vacant
 noListLayer[286] = false; //Congested Areas - Firearms
 noListLayer[287] = false; //Vacant
 noListLayer[288] = false; //Congested Areas - Animals
 noListLayer[289] = false; //Vacant
 noListLayer[290] = false; //Vacant
 noListLayer[291] = false; //CAB Boundaries
 noListLayer[292] = false; //Vacant
 noListLayer[293] = false; //Vacant
 noListLayer[294] = false; //Vacant
 noListLayer[295] = false; //Vacant
 noListLayer[296] = false; //Vacant
 noListLayer[297] = false; //Vacant
 noListLayer[298] = false; //Vacant
 noListLayer[299] = false; //Vacant
 noListLayer[300] = false; //Vacant
 noListLayer[301] = false; //North Lake Tahoe FPD
 noListLayer[302] = false; //Vacant
 noListLayer[303] = false; //Sierra Forest FPD
 noListLayer[304] = false; //Vacant
 noListLayer[305] = false; //Truckee Meadows FPD
 noListLayer[306] = false; //Vacant
 noListLayer[307] = false; //Vacant
 noListLayer[308] = false; //Vacant
 noListLayer[309] = false; //Vacant
 noListLayer[310] = false; //Vacant
 noListLayer[311] = false; //FEMA FIRM Data
 noListLayer[312] = false; //Vacant
 noListLayer[313] = false; //Vacant
 noListLayer[314] = false; //Vacant
 noListLayer[315] = false; //Vacant
 noListLayer[316] = false; //Vacant
 noListLayer[317] = false; //Vacant
 noListLayer[318] = false; //Vacant
 noListLayer[319] = false; //Vacant
 noListLayer[320] = false; //Vacant
 noListLayer[321] = false; //Vacant
 noListLayer[322] = false; //Vacant
 noListLayer[323] = false; //Vacant
 noListLayer[324] = false; //Vacant
 noListLayer[325] = false; //Vacant
 noListLayer[326] = false; //Vacant
 noListLayer[327] = false; //Vacant
 noListLayer[328] = false; //Vacant
 noListLayer[329] = false; //Vacant
 noListLayer[330] = false; //Vacant
 noListLayer[331] = false; //Vacant
 noListLayer[332] = false; //Vacant
 noListLayer[333] = false; //LOMR 00_09_265P
 noListLayer[334] = false; //Vacant
 noListLayer[335] = false; //LOMR 00_09_598P
 noListLayer[336] = false; //Vacant
 noListLayer[337] = false; //LOMR 00_09_987P
 noListLayer[338] = false; //Vacant
 noListLayer[339] = false; //LOMR 01_09_1137P
 noListLayer[340] = false; //Vacant
 noListLayer[341] = false; //LOMR 01_09_119P
 noListLayer[342] = false; //Vacant
 noListLayer[343] = false; //LOMR 01_09_307P
 noListLayer[344] = false; //Vacant
 noListLayer[345] = false; //LOMR 01_09_338P
 noListLayer[346] = false; //Vacant
 noListLayer[347] = false; //LOMR 01_09_466P
 noListLayer[348] = false; //Vacant
 noListLayer[349] = false; //LOMR 01_09_588P
 noListLayer[350] = false; //Vacant
 noListLayer[351] = false; //LOMR 01_09_689P
 noListLayer[352] = false; //Vacant
 noListLayer[353] = false; //LOMR 96_09_046P
 noListLayer[354] = false; //Vacant
 noListLayer[355] = false; //LOMR 96_09_077P
 noListLayer[356] = false; //Vacant
 noListLayer[357] = false; //LOMR 96_09_1083P
 noListLayer[358] = false; //Vacant
 noListLayer[359] = false; //LOMR 96_09_652P
 noListLayer[360] = false; //Vacant
 noListLayer[361] = false; //LOMR 96_09_683P
 noListLayer[362] = false; //Vacant
 noListLayer[363] = false; //LOMR 97_09_052P
 noListLayer[364] = false; //Vacant
 noListLayer[365] = false; //LOMR 97_09_1129P
 noListLayer[366] = false; //Vacant
 noListLayer[367] = false; //LOMR 97_09_691P
 noListLayer[368] = false; //Vacant
 noListLayer[369] = false; //LOMR 97_09_890P
 noListLayer[370] = false; //Vacant
 noListLayer[371] = false; //LOMR 98_09_1138P
 noListLayer[372] = false; //Vacant
 noListLayer[373] = false; //LOMR 99_09_109P
 noListLayer[374] = false; //Vacant
 noListLayer[375] = false; //LOMR 99_09_581P
 noListLayer[376] = false; //Vacant
 noListLayer[377] = false; //LOMR 00_09_004P
 noListLayer[378] = false; //Vacant
 noListLayer[379] = false; //Vacant
 noListLayer[380] = false; //Vacant
 noListLayer[381] = false; //LOMR 04_09_1534P
 noListLayer[382] = false; //Vacant
 noListLayer[383] = false; //LOMR 05_09_0105P
 noListLayer[384] = false; //Vacant
 noListLayer[385] = false; //LOMR 05_09_0188P
 noListLayer[386] = false; //Vacant
 noListLayer[387] = false; //LOMR 05_09_388P
 noListLayer[388] = false; //Vacant
 noListLayer[389] = false; //LOMR 06_09_B061P
 noListLayer[390] = false; //Vacant
 noListLayer[391] = false; //Vacant
 noListLayer[392] = false; //Vacant
 noListLayer[393] = false; //Vacant
 noListLayer[394] = false; //Vacant
 noListLayer[395] = false; //Vacant
 noListLayer[396] = false; //Vacant
 noListLayer[397] = false; //Vacant
 noListLayer[398] = false; //Vacant
 noListLayer[399] = false; //Vacant
 noListLayer[400] = false; //Vacant
 noListLayer[401] = false; //Vacant
 noListLayer[402] = false; //Vacant
 noListLayer[403] = false; //Vacant
 noListLayer[404] = false; //2006 1/2FT Aerial Photographs
 noListLayer[405] = false; //Vacant
 noListLayer[406] = false; //2006 1FT Aerial Photographs
 noListLayer[407] = false; //Vacant
 noListLayer[408] = false; //Vacant
 noListLayer[409] = false; //Vacant
 noListLayer[410] = false; //Vacant
 noListLayer[411] = false; //Vacant
 noListLayer[412] = false; //Vacant
 noListLayer[413] = false; //Vacant
 noListLayer[414] = false; //Vacant
 noListLayer[415] = false; //2004 1 FT RIVER AREA PHOTOGRAPHS
 noListLayer[416] = false; //2006 USGS NAIP 1-meter Imagery
 noListLayer[417] = false; //Vacant
 noListLayer[418] = false; //Vacant
 noListLayer[419] = false; //1994/95 USGS Aerial Photographs
 noListLayer[420] = false; //Vacant
 noListLayer[421] = false; //Vacant
 noListLayer[422] = false; //Vacant
 noListLayer[423] = false; //Hill Shade
 noListLayer[424] = false; //Vacant
 noListLayer[425] = false; //2005 SPOT Satellite
 noListLayer[426] = false; //Vacant
 noListLayer[427] = false; //2005 SPOT Satellite Color Infrared
 noListLayer[428] = false; //Vacant
 noListLayer[429] = false; //Landsat 7
 noListLayer[430] = false; //Vacant
 noListLayer[431] = false; //Terra Satellite
 noListLayer[432] = false; //Vacant
 noListLayer[433] = false; //Nevada Landsat

var hideLayersFromLegend=true;

// layers that will be listed in the LayerList or Legend
	// Note: This does not affect map display
var noLegendLayer = new Array();
 noLegendLayer[0] = false; //Vacant
 noLegendLayer[1] = false; //Vacant
 noLegendLayer[2] = false; //Vacant
 noLegendLayer[3] = false; //Vacant
 noLegendLayer[4] = false; //Vacant
 noLegendLayer[5] = false; //Vacant
 noLegendLayer[6] = false; //Vacant
 noLegendLayer[7] = false; //Vacant
 noLegendLayer[8] = false; //Vacant
 noLegendLayer[9] = false; //Vacant
 noLegendLayer[10] = false; //Vacant
 noLegendLayer[11] = false; //Vacant
 noLegendLayer[12] = false; //Vacant
 noLegendLayer[13] = false; //Vacant
 noLegendLayer[13] = false; //Vacant
 noLegendLayer[14] = false; //Vacant
 noLegendLayer[15] = false; //Fire Stations
 noLegendLayer[16] = false; //Vacant
 noLegendLayer[17] = false; //Government Buildings
 noLegendLayer[18] = false; //Vacant
 noLegendLayer[19] = false; //Libraries
 noLegendLayer[20] = false; //Vacant
 noLegendLayer[21] = false; //Vacant
 noLegendLayer[22] = false; //Vacant
 noLegendLayer[23] = false; //Law Enforcement
 noLegendLayer[24] = false; //Vacant
 noLegendLayer[25] = false; //Polling Places
 noLegendLayer[26] = false; //Vacant
 noLegendLayer[27] = false; //Schools
 noLegendLayer[28] = false; //Vacant
 noLegendLayer[29] = false; //Casinos
 noLegendLayer[30] = false; //Vacant
 noLegendLayer[31] = false; //Webcams
 noLegendLayer[32] = false; //Vacant
 noLegendLayer[33] = false; //Photo Points
 noLegendLayer[34] = false; //Vacant
 noLegendLayer[35] = false; //Care Facility
 noLegendLayer[36] = false; //Vacant
 noLegendLayer[37] = false; //Vacant
 noLegendLayer[38] = false; //Vacant
 noLegendLayer[39] = false; //Bus Stations
 noLegendLayer[40] = false; //Vacant
 noLegendLayer[41] = false; //Vacant
 noLegendLayer[42] = false; //Vacant
 noLegendLayer[43] = false; //Vacant
 noLegendLayer[44] = false; //Intersections
 noLegendLayer[45] = false; //Vacant
 noLegendLayer[46] = false; //Vacant
 noLegendLayer[47] = false; //Vacant
 noLegendLayer[48] = false; //Vacant
 noLegendLayer[49] = false; //Vacant
 noLegendLayer[50] = false; //Survey Points
 noLegendLayer[51] = false; //Vacant
 noLegendLayer[52] = false; //Township/Range
 noLegendLayer[53] = false; //Township/Range
 noLegendLayer[54] = false; //Parcels
 noLegendLayer[55] = false; //Multilevel
 noLegendLayer[56] = false; //FEMA LOMR Labels
 noLegendLayer[57] = false; //Vacant
 noLegendLayer[58] = false; //Trailheads
 noLegendLayer[59] = false; //Vacant
 noLegendLayer[60] = false; //Summits
 noLegendLayer[61] = false; //Vacant
 noLegendLayer[62] = false; //Truckee River Rafting
 noLegendLayer[63] = false; //Vacant
 noLegendLayer[64] = false; //Vacant
 noLegendLayer[65] = false; //Vacant
 noLegendLayer[66] = false; //Vacant
 noLegendLayer[67] = false; //Vacant
 noLegendLayer[68] = false; //Vacant
 noLegendLayer[69] = false; //Vacant
 noLegendLayer[70] = false; //Vacant
 noLegendLayer[71] = false; //Vacant
 noLegendLayer[72] = false; //Vacant
 noLegendLayer[73] = false; //Vacant
 noLegendLayer[74] = false; //Vacant
 noLegendLayer[75] = false; //Vacant
 noLegendLayer[76] = false; //Vacant
 noLegendLayer[77] = false; //Vacant
 noLegendLayer[78] = false; //Vacant
 noLegendLayer[79] = false; //Vacant
 noLegendLayer[80] = false; //Vacant
 noLegendLayer[81] = false; //Vacant
 noLegendLayer[82] = false; //Vacant
 noLegendLayer[83] = false; //Vacant
 noLegendLayer[84] = false; //Vacant
 noLegendLayer[85] = false; //Vacant
 noLegendLayer[86] = false; //Vacant
 noLegendLayer[87] = false; //Vacant
 noLegendLayer[88] = false; //Vacant
 noLegendLayer[89] = false; //Vacant
 noLegendLayer[90] = false; //Vacant
 noLegendLayer[91] = false; //Vacant
 noLegendLayer[92] = false; //Vacant
 noLegendLayer[93] = false; //Vacant
 noLegendLayer[94] = false; //Vacant
 noLegendLayer[95] = false; //Vacant
 noLegendLayer[96] = false; //Vacant
 noLegendLayer[97] = false; //Vacant
 noLegendLayer[98] = false; //Vacant
 noLegendLayer[99] = false; //Vacant
 noLegendLayer[100] = false; //Vacant
 noLegendLayer[101] = false; //Vacant
 noLegendLayer[102] = false; //Vacant
 noLegendLayer[103] = false; //Vacant
 noLegendLayer[104] = false; //Vacant
 noLegendLayer[105] = false; //Vacant
 noLegendLayer[106] = false; //Vacant
 noLegendLayer[107] = false; //Vacant
 noLegendLayer[108] = false; //Vacant
 noLegendLayer[109] = false; //Bike Paths
 noLegendLayer[110] = false; //Vacant
 noLegendLayer[111] = false; //Bus Routes
 noLegendLayer[112] = false; //Vacant
 noLegendLayer[113] = false; //Major Roads
 noLegendLayer[114] = false; //Vacant
 noLegendLayer[115] = false; //Roads
 noLegendLayer[116] = false; //2 Foot Contours
 noLegendLayer[117] = false; //Vacant
 noLegendLayer[118] = false; //USGS 10m Contours
 noLegendLayer[119] = false; //McCarran Loop
 noLegendLayer[120] = false; //Vacant
 noLegendLayer[121] = false; //Vacant
 noLegendLayer[122] = false; //Trails
 noLegendLayer[123] = false; //Vacant
 noLegendLayer[124] = false; //Vacant
 noLegendLayer[125] = false; //Vacant
 noLegendLayer[126] = false; //Vacant
 noLegendLayer[127] = false; //Vacant
 noLegendLayer[128] = false; //Vacant
 noLegendLayer[129] = false; //Vacant
 noLegendLayer[130] = false; //Vacant
 noLegendLayer[131] = false; //Vacant
 noLegendLayer[132] = false; //Vacant
 noLegendLayer[133] = false; //Vacant
 noLegendLayer[134] = false; //Vacant
 noLegendLayer[135] = false; //Vacant
 noLegendLayer[136] = false; //Vacant
 noLegendLayer[137] = false; //Vacant
 noLegendLayer[138] = false; //Vacant
 noLegendLayer[139] = false; //Vacant
 noLegendLayer[140] = false; //Vacant
 noLegendLayer[141] = false; //Vacant
 noLegendLayer[142] = false; //Vacant
 noLegendLayer[143] = false; //Vacant
 noLegendLayer[144] = false; //Vacant
 noLegendLayer[145] = false; //Vacant
 noLegendLayer[146] = false; //Vacant
 noLegendLayer[147] = false; //Vacant
 noLegendLayer[148] = false; //Vacant
 noLegendLayer[149] = false; //Vacant
 noLegendLayer[150] = false; //Vacant
 noLegendLayer[151] = false; //Vacant
 noLegendLayer[152] = false; //Vacant
 noLegendLayer[153] = false; //Vacant
 noLegendLayer[154] = false; //Vacant
 noLegendLayer[155] = false; //Vacant
 noLegendLayer[156] = false; //Vacant
 noLegendLayer[157] = false; //Vacant
 noLegendLayer[158] = false; //Vacant
 noLegendLayer[159] = false; //Vacant
 noLegendLayer[160] = false; //Vacant
 noLegendLayer[161] = false; //Vacant
 noLegendLayer[162] = false; //Vacant
 noLegendLayer[163] = false; //Vacant
 noLegendLayer[164] = false; //Vacant
 noLegendLayer[165] = false; //Vacant
 noLegendLayer[166] = false; //Vacant
 noLegendLayer[167] = false; //Vacant
 noLegendLayer[168] = false; //Vacant
 noLegendLayer[169] = false; //Vacant
 noLegendLayer[170] = false; //Vacant
 noLegendLayer[171] = false; //Vacant
 noLegendLayer[172] = false; //Vacant
 noLegendLayer[173] = false; //Vacant
 noLegendLayer[174] = false; //Vacant
 noLegendLayer[175] = false; //Vacant
 noLegendLayer[176] = false; //Vacant
 noLegendLayer[177] = false; //Vacant
 noLegendLayer[178] = false; //Vacant
 noLegendLayer[179] = false; //Vacant
 noLegendLayer[180] = false; //Vacant
 noLegendLayer[181] = false; //Vacant
 noLegendLayer[182] = false; //Vacant
 noLegendLayer[183] = false; //Vacant
 noLegendLayer[184] = false; //Vacant
 noLegendLayer[185] = false; //Vacant
 noLegendLayer[186] = false; //Vacant
 noLegendLayer[187] = false; //Vacant
 noLegendLayer[188] = false; //Vacant
 noLegendLayer[189] = false; //Vacant
 noLegendLayer[190] = false; //Vacant
 noLegendLayer[191] = false; //Vacant
 noLegendLayer[192] = false; //Vacant
 noLegendLayer[193] = false; //Vacant
 noLegendLayer[194] = false; //Vacant
 noLegendLayer[195] = false; //Vacant
 noLegendLayer[196] = false; //Vacant
 noLegendLayer[197] = false; //Vacant
 noLegendLayer[198] = false; //Vacant
 noLegendLayer[199] = false; //Vacant
 noLegendLayer[200] = false; //Vacant
 noLegendLayer[201] = false; //Vacant
 noLegendLayer[202] = false; //Vacant
 noLegendLayer[203] = false; //Vacant
 noLegendLayer[204] = false; //Vacant
 noLegendLayer[205] = false; //Vacant
 noLegendLayer[206] = false; //Vacant
 noLegendLayer[207] = false; //Vacant
 noLegendLayer[208] = false; //Vacant
 noLegendLayer[209] = false; //Hydrobasins
 noLegendLayer[210] = false; //Vacant
 noLegendLayer[211] = false; //Permits
 noLegendLayer[212] = false; //Vacant
 noLegendLayer[213] = false; //Airports
 noLegendLayer[214] = false; //Vacant
 noLegendLayer[215] = false; //Parks
 noLegendLayer[216] = false; //Vacant
 noLegendLayer[217] = false; //Malls
 noLegendLayer[218] = false; //Vacant
 noLegendLayer[219] = false; //Universities
 noLegendLayer[220] = false; //FEMA DFIRM Panels
 noLegendLayer[221] = false; //FEMA FIRM Boundaries
 noLegendLayer[222] = false; //Vacant
 noLegendLayer[223] = false; //Zip Code
 noLegendLayer[224] = false; //Vacant
 noLegendLayer[225] = false; //Planned Land Use
 noLegendLayer[226] = false; //Vacant
 noLegendLayer[227] = false; //Washoe County
 noLegendLayer[228] = false; //County Boundaries
 noLegendLayer[229] = false; //Nevada
 noLegendLayer[230] = false; //Vacant
 noLegendLayer[231] = false; //Reno SOI
 noLegendLayer[232] = false; //Vacant
 noLegendLayer[233] = false; //Sparks SOI
 noLegendLayer[234] = false; //Vacant
 noLegendLayer[235] = false; //Reno Exerted Jurisdiction
 noLegendLayer[236] = false; //Sparks Exerted Jurisdiction
 noLegendLayer[237] = false; //Vacant
 noLegendLayer[238] = false; //Reno City Limits
 noLegendLayer[239] = false; //Vacant
 noLegendLayer[240] = false; //Sparks City Limits
 noLegendLayer[241] = false; //Vacant
 noLegendLayer[242] = false; //Reno\Stead Corridor Joint Plan
 noLegendLayer[243] = false; //Vacant
 noLegendLayer[244] = false; //Southeast Specific Plan
 noLegendLayer[245] = false; //Vacant
 noLegendLayer[246] = false; //South Virginia Corridor
 noLegendLayer[247] = false; //Vacant
 noLegendLayer[248] = false; //Subdivision Boundaries
 noLegendLayer[249] = false; //Vacant
 noLegendLayer[250] = false; //Steamboat Specific Plan
 noLegendLayer[251] = false; //Vacant
 noLegendLayer[252] = false; //Warm Springs Specific Plan
 noLegendLayer[253] = false; //Vacant
 noLegendLayer[254] = false; //Commissioner Districts
 noLegendLayer[255] = false; //Vacant
 noLegendLayer[256] = false; //Precincts
 noLegendLayer[257] = false; //Vacant
 noLegendLayer[258] = false; //General Improvement Districts
 noLegendLayer[259] = false; //Vacant
 noLegendLayer[260] = false; //Planning Areas
 noLegendLayer[261] = false; //Business License
 noLegendLayer[262] = false; //Elementary School Zoning
 noLegendLayer[263] = false; //Vacant
 noLegendLayer[264] = false; //Middle School Zoning
 noLegendLayer[265] = false; //Vacant
 noLegendLayer[266] = false; //High School Zoning
 noLegendLayer[267] = false; //Vacant
 noLegendLayer[268] = false; //Senate Districts
 noLegendLayer[269] = false; //Vacant
 noLegendLayer[270] = false; //Assembly Districts
 noLegendLayer[271] = false; //Vacant
 noLegendLayer[272] = false; //Reno Wards
 noLegendLayer[273] = false; //Vacant
 noLegendLayer[274] = false; //Sparks Wards
 noLegendLayer[275] = false; //Vacant
 noLegendLayer[276] = false; //School Board Trustees
 noLegendLayer[277] = false; //Vacant
 noLegendLayer[278] = false; //Census 2000 Blocks
 noLegendLayer[279] = false; //Vacant
 noLegendLayer[280] = false; //Census 2000 Tracts
 noLegendLayer[281] = false; //Vacant
 noLegendLayer[282] = false; //FEMA LOMR Boundaries
 noLegendLayer[283] = false; //Vacant
 noLegendLayer[284] = false; //Federal Lands
 noLegendLayer[285] = false; //Vacant
 noLegendLayer[286] = false; //Congested Areas - Firearms
 noLegendLayer[287] = false; //Vacant
 noLegendLayer[288] = false; //Congested Areas - Animals
 noLegendLayer[289] = false; //Vacant
 noLegendLayer[290] = false; //Vacant
 noLegendLayer[291] = false; //CAB Boundaries
 noLegendLayer[292] = false; //Vacant
 noLegendLayer[293] = false; //Vacant
 noLegendLayer[294] = false; //Vacant
 noLegendLayer[295] = false; //Vacant
 noLegendLayer[296] = false; //Vacant
 noLegendLayer[297] = false; //Vacant
 noLegendLayer[298] = false; //Vacant
 noLegendLayer[299] = false; //Vacant
 noLegendLayer[300] = false; //Vacant
 noLegendLayer[301] = false; //North Lake Tahoe FPD
 noLegendLayer[302] = false; //Vacant
 noLegendLayer[303] = false; //Sierra Fores FPD
 noLegendLayer[304] = false; //Vacant
 noLegendLayer[305] = false; //Truckee Meadows FPD
 noLegendLayer[306] = false; //Vacant
 noLegendLayer[307] = false; //Vacant
 noLegendLayer[308] = false; //Vacant
 noLegendLayer[309] = false; //Vacant
 noLegendLayer[310] = false; //Vacant
 noLegendLayer[311] = false; //FEMA FIRM Data
 noLegendLayer[312] = false; //Vacant
 noLegendLayer[313] = false; //Vacant
 noLegendLayer[314] = false; //Vacant
 noLegendLayer[315] = false; //Vacant
 noLegendLayer[316] = false; //Vacant
 noLegendLayer[317] = false; //Vacant
 noLegendLayer[318] = false; //Vacant
 noLegendLayer[319] = false; //Vacant
 noLegendLayer[320] = false; //Vacant
 noLegendLayer[321] = false; //Vacant
 noLegendLayer[322] = false; //Vacant
 noLegendLayer[323] = false; //Vacant
 noLegendLayer[324] = false; //Vacant
 noLegendLayer[325] = false; //Vacant
 noLegendLayer[326] = false; //Vacant
 noLegendLayer[327] = false; //Vacant
 noLegendLayer[328] = false; //Vacant
 noLegendLayer[329] = false; //Vacant
 noLegendLayer[330] = false; //Vacant
 noLegendLayer[331] = false; //Vacant
 noLegendLayer[332] = false; //Vacant
 noLegendLayer[333] = false; //LOMR 00_09_265P
 noLegendLayer[334] = false; //Vacant
 noLegendLayer[335] = false; //LOMR 00_09_598P
 noLegendLayer[336] = false; //Vacant
 noLegendLayer[337] = false; //LOMR 00_09_987P
 noLegendLayer[338] = false; //Vacant
 noLegendLayer[339] = false; //LOMR 01_09_1137P
 noLegendLayer[340] = false; //Vacant
 noLegendLayer[341] = false; //LOMR 01_09_119P
 noLegendLayer[342] = false; //Vacant
 noLegendLayer[343] = false; //LOMR 01_09_307P
 noLegendLayer[344] = false; //Vacant
 noLegendLayer[345] = false; //LOMR 01_09_338P
 noLegendLayer[346] = false; //Vacant
 noLegendLayer[347] = false; //LOMR 01_09_466P
 noLegendLayer[348] = false; //Vacant
 noLegendLayer[349] = false; //LOMR 01_09_588P
 noLegendLayer[350] = false; //Vacant
 noLegendLayer[351] = false; //LOMR 01_09_689P
 noLegendLayer[352] = false; //Vacant
 noLegendLayer[353] = false; //LOMR 96_09_046P
 noLegendLayer[354] = false; //Vacant
 noLegendLayer[355] = false; //LOMR 96_09_077P
 noLegendLayer[356] = false; //Vacant
 noLegendLayer[357] = false; //LOMR 96_09_1083P
 noLegendLayer[358] = false; //Vacant
 noLegendLayer[359] = false; //LOMR 96_09_652P
 noLegendLayer[360] = false; //Vacant
 noLegendLayer[361] = false; //LOMR 96_09_683P
 noLegendLayer[362] = false; //Vacant
 noLegendLayer[363] = false; //LOMR 97_09_052P
 noLegendLayer[364] = false; //Vacant
 noLegendLayer[365] = false; //LOMR 97_09_1129P
 noLegendLayer[366] = false; //Vacant
 noLegendLayer[367] = false; //LOMR 97_09_691P
 noLegendLayer[368] = false; //Vacant
 noLegendLayer[369] = false; //LOMR 97_09_890P
 noLegendLayer[370] = false; //Vacant
 noLegendLayer[371] = false; //LOMR 98_09_1138P
 noLegendLayer[372] = false; //Vacant
 noLegendLayer[373] = false; //LOMR 99_09_109P
 noLegendLayer[374] = false; //Vacant
 noLegendLayer[375] = false; //LOMR 99_09_581P
 noLegendLayer[376] = false; //Vacant
 noLegendLayer[377] = false; //LOMR 00_09_004P
 noLegendLayer[378] = false; //Vacant
 noLegendLayer[379] = false; //Vacant
 noLegendLayer[380] = false; //Vacant
 noLegendLayer[381] = false; //LOMR 04_09_1534P
 noLegendLayer[382] = false; //Vacant
 noLegendLayer[383] = false; //LOMR 05_09_0105P
 noLegendLayer[384] = false; //Vacant
 noLegendLayer[385] = false; //LOMR 05_09_0188P
 noLegendLayer[386] = false; //Vacant
 noLegendLayer[387] = false; //LOMR 05_09_388P
 noLegendLayer[388] = false; //Vacant
 noLegendLayer[389] = false; //LOMR 06_09_B061P
 noLegendLayer[390] = false; //Vacant
 noLegendLayer[391] = false; //Vacant
 noLegendLayer[392] = false; //Vacant
 noLegendLayer[393] = false; //Vacant
 noLegendLayer[394] = false; //Vacant
 noLegendLayer[395] = false; //Vacant
 noLegendLayer[396] = false; //Vacant
 noLegendLayer[397] = false; //Vacant
 noLegendLayer[398] = false; //Vacant
 noLegendLayer[399] = false; //Vacant
 noLegendLayer[400] = false; //Vacant
 noLegendLayer[401] = false; //Vacant
 noLegendLayer[402] = false; //Vacant
 noLegendLayer[403] = false; //Vacant
 noLegendLayer[404] = false; //2006 1/2FT Aerial Photographs
 noLegendLayer[405] = false; //Vacant
 noLegendLayer[406] = false; //2006 1FT Aerial Photographs
 noLegendLayer[407] = false; //Vacant
 noLegendLayer[408] = false; //Vacant
 noLegendLayer[409] = false; //Vacant
 noLegendLayer[410] = false; //Vacant
 noLegendLayer[411] = false; //Vacant
 noLegendLayer[412] = false; //Vacant
 noLegendLayer[413] = false; //Vacant
 noLegendLayer[414] = false; //Vacant
 noLegendLayer[415] = true; //2004 1 FT RIVER AREA PHOTOGRAPHS
 noLegendLayer[416] = false; //2006 USGS NAIP 1-meter Imagery
 noLegendLayer[417] = false; //Vacant
 noLegendLayer[418] = false; //Vacant
 noLegendLayer[419] = false; //1994/95 USGS Aerial Photographs
 noLegendLayer[420] = false; //Vacant
 noLegendLayer[421] = false; //Vacant
 noLegendLayer[422] = false; //Vacant
 noLegendLayer[423] = false; //Hill Shade
 noLegendLayer[424] = false; //Vacant
 noLegendLayer[425] = false; //2005 SPOT Satellite
 noLegendLayer[426] = false; //Vacant
 noLegendLayer[427] = false; //2005 SPOT Satellite Color Infrared
 noLegendLayer[428] = false; //Vacant
 noLegendLayer[429] = true; //Landsat 7
 noLegendLayer[430] = false; //Vacant
 noLegendLayer[431] = false; //Terra Satellite
 noLegendLayer[432] = false; //Vacant
 noLegendLayer[433] = false; //Nevada Landsat

	// Mode on floating layer
var drawFloatingMode = false;
var modeLayerOn = false;
var modeLayerColor = "Black";
var modeLayerShadowColor = "White";
var modeLayerFont = "Arial";
var modeLayerSize = "4";

	// does the overview map a layer on top of map?... 
var ovMapIsLayer=true;

var webParams = "";
if (parent.MapFrame!=null) {
	webParams = parent.document.location.search;
} else {
	webParams = document.location.search;
}

/**************************************
* Interactive Map parameters
**************************************/

// Click points - Measure/Shape Select/Shape Buffer
var clickMarkerColor="255,0,0";
var clickMarkerType="Circle";
var clickMarkerSize="6";


/**************************************
* Identify/Select/Query/Buffer parameters
**************************************/


// search tolerance in pixels around click
var pixelTolerance=10;
// color of selected features in decimal RGB format
var selectColor="255,255,0";
// color of highlighted feature in decimal RGB format
var highlightColor="0,255,255";
// level of transparency of selected and highlighted color
var transparentLevel = "1";
	// zoom to selected feature if only one is returned?
var zoomToSingleSelect = true;

// fields to be returned in identify/selection/query request. . . #ALL#=all fields
var selectFields= "#ALL#";
//var selectFields= "#ID# #SHAPE#";
// swap out the list of returned fields? 
//If true, a list must be defined in selFieldList[n] for each layer to update selectFields
var swapSelectFields=true;
// array for each layer's returned fields if swapSelectFields=true
var selFieldList = new Array();
// sample set for world - if not #ALL#, id and shape fields required. Separate with a space
selFieldList[15]="pub.WASHOE.Fac_FireStation.NAME pub.WASHOE.Fac_FireStation.LINK pub.WASHOE.Fac_FireStation.ADDRESS pub.WASHOE.Fac_FireStation.CITY #ID# #SHAPE#";
selFieldList[17]="pub.WASHOE.Fac_GovBuilding.NAME pub.WASHOE.Fac_GovBuilding.LINK pub.WASHOE.Fac_GovBuilding.ADDRESS pub.WASHOE.Fac_GovBuilding.CITY pub.WASHOE.Fac_GovBuilding.PHONE #ID# #SHAPE#";
selFieldList[19]="pub.WASHOE.Fac_Library.NAME pub.WASHOE.Fac_Library.ADDRESS pub.WASHOE.Fac_Library.CITY pub.WASHOE.Fac_Library.ZIP pub.WASHOE.Fac_Library.PHONE pub.WASHOE.Fac_Library.LINK #ID# #SHAPE#";
selFieldList[23]="pub.WASHOE.Fac_LawEnforcement.NAME pub.WASHOE.Fac_LawEnforcement.LINK pub.WASHOE.Fac_LawEnforcement.ADDRESS pub.WASHOE.Fac_LawEnforcement.CITY #ID# #SHAPE#";
selFieldList[25]="pub.WASHOE.ROV_PollingPlaces.POLLPLACE pub.WASHOE.ROV_PollingPlaces.ADDRESS pub.WASHOE.ROV_PollingPlaces.LINK #ID# #SHAPE#";
selFieldList[27]="pub.WASHOE.Fac_School.NAME pub.WASHOE.Fac_School.ADDRESS pub.WASHOE.Fac_School.CITY pub.WASHOE.Fac_School.ZIP pub.WASHOE.Fac_School.PHONE pub.WASHOE.Fac_School.LINK #ID# #SHAPE#";
selFieldList[29]="pub.WASHOE.Fac_CasinoHotel.NAME pub.WASHOE.Fac_CasinoHotel.ADDRESS pub.WASHOE.Fac_CasinoHotel.LOCATION #ID# #SHAPE#";
selFieldList[31]="pub.WASHOE.Fac_WebCam.CAM_LOC pub.WASHOE.Fac_WebCam.URL_LINK #ID# #SHAPE#";
selFieldList[33]="pub.WASHOE.Rec_PhotoPoints.LINK #ID# #SHAPE#";
selFieldList[35]="pub.WASHOE.Fac_CareFacility.NAME pub.WASHOE.Fac_CareFacility.ADDRESS pub.WASHOE.Fac_CareFacility.CITY pub.WASHOE.Fac_CareFacility.CARE #ID# #SHAPE#";
selFieldList[39]="pub.WASHOE.Trans_BusStation.NAME pub.WASHOE.Trans_BusStation.LOCATION pub.WASHOE.Trans_BusStation.CITY #ID# #SHAPE#";
selFieldList[44]="pub.WASHOE.Trans_Intersections.NAME1 pub.WASHOE.Trans_Intersections.NAME2 pub.WASHOE.Trans_Intersections.NAME3 #ID# #SHAPE#";
selFieldList[50]="pub.WASHOE.SurveyMonuments.EASTING pub.WASHOE.SurveyMonuments.NORTHING pub.WASHOE.SurveyMonuments.PTNAME pub.WASHOE.SurveyMonuments.TYPE pub.WASHOE.SurveyMonuments.COMMENT pub.WASHOE.SurveyMonuments.COMMENT1 pub.WASHOE.SurveyMonuments.COMMENT2 pub.WASHOE.SurveyMonuments.COMMENT3 pub.WASHOE.SurveyMonuments.COMMENT4 pub.WASHOE.SurveyMonuments.COMMENT5 pub.WASHOE.SurveyMonuments.VNAME pub.WASHOE.SurveyMonuments.CLASS pub.WASHOE.SurveyMonuments.TRS pub.WASHOE.SurveyMonuments.LINK pub.WASHOE.SurveyMonuments.DATUM pub.WASHOE.SurveyMonuments.AGENCY pub.WASHOE.SurveyMonuments.DATE_ pub.WASHOE.SurveyMonuments.UPDATED #ID# #SHAPE#";
selFieldList[53]="pub.WASHOE.Regional_TRS.TR #ID# #SHAPE#";
selFieldList[54]="pub.WASHOE.LANDREC_PARCELWRECS.APN pub.WASHOE.LANDREC_PARCELWRECS.LINK pub.WASHOE.LANDREC_PARCELWRECS.FIRSTNAME pub.WASHOE.LANDREC_PARCELWRECS.LASTNAME pub.WASHOE.LANDREC_PARCELWRECS.STREETNUM pub.WASHOE.LANDREC_PARCELWRECS.STREETDIR pub.WASHOE.LANDREC_PARCELWRECS.STREET pub.WASHOE.LANDREC_PARCELWRECS.CITY pub.WASHOE.LANDREC_PARCELWRECS.ACREAGE pub.WASHOE.LANDREC_PARCELWRECS.BEDROOMS pub.WASHOE.LANDREC_PARCELWRECS.BATHS pub.WASHOE.LANDREC_PARCELWRECS.YEARBLT pub.WASHOE.LANDREC_PARCELWRECS.TAXDIST #ID# #SHAPE#";
selFieldList[55]="pub.WASHOE.LandRec_Multi_Level.APN pub.WASHOE.LandRec_Multi_Level.SITENUMBER pub.WASHOE.LandRec_Multi_Level.SITESTREET pub.WASHOE.LandRec_Multi_Level.LOTNUMBER pub.WASHOE.LandRec_Multi_Level.SITECITY pub.WASHOE.LandRec_Multi_Level.ACREPLAT #ID# #SHAPE#";
selFieldList[56]="#ID# #SHAPE#";
selFieldList[57]="pub.WASHOE.PW_dfirm_s_perm_bmk.BM_ID pub.WASHOE.PW_dfirm_s_perm_bmk.PID pub.WASHOE.PW_dfirm_s_perm_bmk.SOURCE_CIT #ID# #SHAPE#";
selFieldList[58]="pub.WASHOE.REC_TRAILHEADS_MAPWAREHOUSE.TRAILHEAD_NAME pub.WASHOE.REC_TRAILHEADS_MAPWAREHOUSE.PARKING pub.WASHOE.REC_TRAILHEADS_MAPWAREHOUSE.RESTROOMS pub.WASHOE.REC_TRAILHEADS_MAPWAREHOUSE.PICNIC_TABLES pub.WASHOE.REC_TRAILHEADS_MAPWAREHOUSE.TRAIL_INFORMATION #ID# #SHAPE#";
selFieldList[60]="pub.WASHOE.NatFeat_Summits.NAME pub.WASHOE.NatFeat_Summits.ST pub.WASHOE.NatFeat_Summits.COUNTY pub.WASHOE.NatFeat_Summits.USGS_75_M #ID# #SHAPE#";
selFieldList[62]="pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.FEATURE pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.NAME pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.DESCRIPT pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.ACCESS pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.RAPIDS pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.DAM pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.PORTAGE pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.LOCATION pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.PARK pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.FISHING pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.MILEPOST #ID# #SHAPE#";
selFieldList[109]="pub.WASHOE.Rec_Bike_Routes.ROUTE_NAME pub.WASHOE.Rec_Bike_Routes.LINK pub.WASHOE.Rec_Bike_Routes.ROUND_TRIP pub.WASHOE.Rec_Bike_Routes.MAXGRADE pub.WASHOE.Rec_Bike_Routes.START #ID# #SHAPE#";
selFieldList[111]="pub.WASHOE.Trans_BusRoute.ROUTE pub.WASHOE.Trans_BusRoute.ROUTE_MAP #ID# #SHAPE#";
selFieldList[113]="pub.WASHOE.TRANS_MAJORROAD.FULLNAME #ID# #SHAPE#";
selFieldList[115]="pub.WASHOE.TRANS_WCROADS.FULLNAME pub.WASHOE.TRANS_WCROADS.CLASS #ID# #SHAPE#";
selFieldList[116]="pub.WASHOE.NatFeat_Contour_Mosaic.ELEVATION #ID# #SHAPE#";
selFieldList[118]="pub.WASHOE.NatFeat_Contours10M.ELEV_FEET #ID# #SHAPE#";
selFieldList[119]="#ID# #SHAPE#";
selFieldList[122]="pub.WASHOE.REC_TRAILS_MAPWAREHOUSE.TRAIL pub.WASHOE.REC_TRAILS_MAPWAREHOUSE.DIFFICULTY pub.WASHOE.REC_TRAILS_MAPWAREHOUSE.TRAIL_VIEW pub.WASHOE.REC_TRAILS_MAPWAREHOUSE.TRAIL_USE pub.WASHOE.REC_TRAILS_MAPWAREHOUSE.MILES pub.WASHOE.REC_TRAILS_MAPWAREHOUSE.COMMENT #ID# #SHAPE#";
selFieldList[128]="pub.WASHOE.PW_dfirm_s_bfe.ELEV pub.WASHOE.PW_dfirm_s_bfe.LEN_UNIT pub.WASHOE.PW_dfirm_s_bfe.V_DATUM pub.WASHOE.PW_dfirm_s_bfe.SOURCE_CIT #ID# #SHAPE#";
selFieldList[129]="pub.WASHOE.PW_dfirm_s_gen_struct.STRUCT_ID pub.WASHOE.PW_dfirm_s_gen_struct.STRUCT_TYP pub.WASHOE.PW_dfirm_s_gen_struct.STRUCT_NM pub.WASHOE.PW_dfirm_s_gen_struct.WTR_NM pub.WASHOE.PW_dfirm_s_gen_struct.SOURCE_CIT #ID# #SHAPE#";
selFieldList[130]="pub.WASHOE.PW_dfirm_s_xs.XS_LN_ID pub.WASHOE.PW_dfirm_s_xs.XS_LTR pub.WASHOE.PW_dfirm_s_xs.START_ID pub.WASHOE.PW_dfirm_s_xs.STREAM_STN pub.WASHOE.PW_dfirm_s_xs.XS_LN_TYP pub.WASHOE.PW_dfirm_s_xs.WTR_NM pub.WASHOE.PW_dfirm_s_xs.WSEL_REG pub.WASHOE.PW_dfirm_s_xs.LEN_UNIT pub.WASHOE.PW_dfirm_s_xs.V_DATUM pub.WASHOE.PW_dfirm_s_xs.SOURCE_CIT #ID# #SHAPE#";
selFieldList[209]="pub.WASHOE.NATFEAT_HYDROBASINS.HB_NAME pub.WASHOE.NATFEAT_HYDROBASINS.HYDR_BNDY_ #ID# #SHAPE#";
selFieldList[211]="pub.WASHOE.PERMITS_PARCELS.APN pub.WASHOE.PERMITS_PARCELS.SITEADDRES pub.WASHOE.PERMITS_PARCELS.PERMIT pub.WASHOE.PERMITS_PARCELS.TYPE pub.WASHOE.PERMITS_PARCELS.SUBTYPE pub.WASHOE.PERMITS_PARCELS.STATUS pub.WASHOE.PERMITS_PARCELS.DATE_ #ID# #SHAPE#";
selFieldList[213]="pub.WASHOE.Fac_Airport.NAME pub.WASHOE.Fac_Airport.LINK #ID# #SHAPE#";
selFieldList[215]="pub.WASHOE.Fac_Parks.NAME pub.WASHOE.Fac_Parks.LINK #ID# #SHAPE#";
selFieldList[217]="pub.WASHOE.Fac_ShoppingMall.NAME #ID# #SHAPE#";
selFieldList[219]="pub.WASHOE.Fac_University.NAME pub.WASHOE.Fac_University.ADDRESS pub.WASHOE.Fac_University.JURIS pub.WASHOE.Fac_University.ZIP pub.WASHOE.Fac_University.PHONE pub.WASHOE.Fac_University.LINK #ID# #SHAPE#";
selFieldList[220]="pub.WASHOE.PW_dfirm_s_firm_pan.FIRM_PAN #ID# #SHAPE#";
selFieldList[221]="pub.WASHOE.AdminArea_Fema_FIRMBOUNDARY.FIRM_PANEL #ID# #SHAPE#";
selFieldList[223]="pub.WASHOE.AdminArea_ZipCode.ZIPCODE #ID# #SHAPE#";
selFieldList[225]="pub.WASHOE.PLU_WASHOECOUNTYVIEW.apn pub.WASHOE.PLU_WASHOECOUNTYVIEW.PLUDESCRIPTION pub.WASHOE.PLU_WASHOECOUNTYVIEW.PADESCRIPTION pub.WASHOE.PLU_WASHOECOUNTYVIEW.cpa pub.WASHOE.PLU_WASHOECOUNTYVIEW.IN_TMSA pub.WASHOE.PLU_WASHOECOUNTYVIEW.JURISCITY pub.WASHOE.PLU_WASHOECOUNTYVIEW.FIRSTNAME pub.WASHOE.PLU_WASHOECOUNTYVIEW.LASTNAME pub.WASHOE.PLU_WASHOECOUNTYVIEW.STREETNUM pub.WASHOE.PLU_WASHOECOUNTYVIEW.STREETDIR pub.WASHOE.PLU_WASHOECOUNTYVIEW.STREET pub.WASHOE.PLU_WASHOECOUNTYVIEW.CITY pub.WASHOE.PLU_WASHOECOUNTYVIEW.acregis #ID# #SHAPE#";
selFieldList[228]="pub.WASHOE.AdminArea_CountyBND.COUNTY_NAME #ID# #SHAPE#";
selFieldList[229]="pub.WASHOE.AdminArea_NevadaBND.NAME #ID# #SHAPE#";
selFieldList[231]="#ID# #SHAPE#";
selFieldList[233]="#ID# #SHAPE#";
selFieldList[235]="#ID# #SHAPE#";
selFieldList[236]="#ID# #SHAPE#";
selFieldList[238]="pub.WASHOE.AdminArea_RenoBND.NAME #ID# #SHAPE#";
selFieldList[240]="pub.WASHOE.AdminArea_SparksBND.NAME #ID# #SHAPE#";
selFieldList[242]="pub.WASHOE.PLU_RSCJPVIEW.APN pub.WASHOE.PLU_RSCJPVIEW.PLUDESCRIPTION pub.WASHOE.PLU_RSCJPVIEW.PADESCRIPTION pub.WASHOE.PLU_RSCJPVIEW.SPA pub.WASHOE.PLU_RSCJPVIEW.IN_TMSA pub.WASHOE.PLU_RSCJPVIEW.JURISCITY pub.WASHOE.PLU_RSCJPVIEW.FIRSTNAME pub.WASHOE.PLU_RSCJPVIEW.LASTNAME pub.WASHOE.PLU_RSCJPVIEW.STREETNUM pub.WASHOE.PLU_RSCJPVIEW.STREETDIR pub.WASHOE.PLU_RSCJPVIEW.STREET pub.WASHOE.PLU_RSCJPVIEW.CITY #ID# #SHAPE#";
selFieldList[244]="pub.WASHOE.PLU_SOUTHEASTSPAVIEW.APN pub.WASHOE.PLU_SOUTHEASTSPAVIEW.PLUDESCRIPTION pub.WASHOE.PLU_SOUTHEASTSPAVIEW.PADESCRIPTION pub.WASHOE.PLU_SOUTHEASTSPAVIEW.SPA pub.WASHOE.PLU_SOUTHEASTSPAVIEW.IN_TMSA pub.WASHOE.PLU_SOUTHEASTSPAVIEW.JURISCITY pub.WASHOE.PLU_SOUTHEASTSPAVIEW.SOICITY pub.WASHOE.PLU_SOUTHEASTSPAVIEW.FIRSTNAME pub.WASHOE.PLU_SOUTHEASTSPAVIEW.LASTNAME pub.WASHOE.PLU_SOUTHEASTSPAVIEW.STREETNUM pub.WASHOE.PLU_SOUTHEASTSPAVIEW.STREETDIR pub.WASHOE.PLU_SOUTHEASTSPAVIEW.STREET pub.WASHOE.PLU_SOUTHEASTSPAVIEW.CITY #ID# #SHAPE#";
selFieldList[246]="pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.APN pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.PLUDESCRIPTION pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.PADESCRIPTION pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.SPA pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.IN_TMSA pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.JURISCITY pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.SOICITY pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.FIRSTNAME pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.LASTNAME pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.STREETNUM pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.STREETDIR pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.STREET pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.CITY #ID# #SHAPE#";
selFieldList[248]="pub.WASHOE.AdminArea_SubdivisionBND.NAME pub.WASHOE.AdminArea_SubdivisionBND.NUMBER_ pub.WASHOE.AdminArea_SubdivisionBND.LOCATION pub.WASHOE.AdminArea_SubdivisionBND.MAP_LINK #ID# #SHAPE#";
selFieldList[250]="pub.WASHOE.PLU_STEAMBOATSPAVIEW.APN pub.WASHOE.PLU_STEAMBOATSPAVIEW.PLUDESCRIPTION pub.WASHOE.PLU_STEAMBOATSPAVIEW.PADESCRIPTION pub.WASHOE.PLU_STEAMBOATSPAVIEW.SPA pub.WASHOE.PLU_STEAMBOATSPAVIEW.IN_TMSA pub.WASHOE.PLU_STEAMBOATSPAVIEW.JURISCITY pub.WASHOE.PLU_STEAMBOATSPAVIEW.SOICITY pub.WASHOE.PLU_STEAMBOATSPAVIEW.FIRSTNAME pub.WASHOE.PLU_STEAMBOATSPAVIEW.LASTNAME pub.WASHOE.PLU_STEAMBOATSPAVIEW.STREETNUM pub.WASHOE.PLU_STEAMBOATSPAVIEW.STREETDIR pub.WASHOE.PLU_STEAMBOATSPAVIEW.STREET pub.WASHOE.PLU_STEAMBOATSPAVIEW.CITY #ID# #SHAPE#";
selFieldList[252]="pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.APN pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.PLUDESCRIPTION pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.PADESCRIPTION pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.SPA pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.IN_TMSA pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.JURISCITY pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.SOICITY pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.FIRSTNAME pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.LASTNAME pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.STREETNUM pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.STREETDIR pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.STREET pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.CITY #ID# #SHAPE#";
selFieldList[254]="pub.WASHOE.ROV_COMMISSIONERVIEW.DISTRICT pub.WASHOE.ROV_COMMISSIONERVIEW.COMMISSIONER pub.WASHOE.ROV_COMMISSIONERVIEW.LINK #ID# #SHAPE#";
selFieldList[256]="pub.WASHOE.ROV_Precincts.PRECINCT pub.WASHOE.ROV_Precincts.SENATE pub.WASHOE.ROV_Precincts.ASSEMBLY pub.WASHOE.ROV_Precincts.BOARDOFEDU pub.WASHOE.ROV_Precincts.REGENTS pub.WASHOE.ROV_Precincts.COMMISSION pub.WASHOE.ROV_Precincts.RWARDS pub.WASHOE.ROV_Precincts.SWARDS pub.WASHOE.ROV_Precincts.STDTRUST pub.WASHOE.ROV_Precincts.GENTRUST pub.WASHOE.ROV_Precincts.GID pub.WASHOE.ROV_Precincts.TOWNSHIP  pub.WASHOE.ROV_Precincts.FPD #ID# #SHAPE#";
selFieldList[258]="pub.WASHOE.ROV_GenImproveDistrictView.GID #ID# #SHAPE#";
selFieldList[260]="pub.WASHOE.AdminArea_PlanningAreas.PLANAREA_N #ID# #SHAPE#";
selFieldList[261]="pub.WASHOE.AdminArea_BusinessLicense.LICAREA_NA #ID# #SHAPE#";
selFieldList[262]="pub.WASHOE.AdminArea_ElemSchoolZone.NAME pub.WASHOE.AdminArea_ElemSchoolZone.LINK #ID# #SHAPE#";
selFieldList[264]="pub.WASHOE.AdminArea_MidSchoolZone.NAME pub.WASHOE.AdminArea_MidSchoolZone.LINK #ID# #SHAPE#";
selFieldList[266]="pub.WASHOE.AdminArea_HighSchoolZone.NAME pub.WASHOE.AdminArea_HighSchoolZone.LINK #ID# #SHAPE#";
selFieldList[268]="pub.WASHOE.ROV_SENATEVIEW.SENATOR pub.WASHOE.ROV_SENATEVIEW.SENATE pub.WASHOE.ROV_SENATEVIEW.LINK #ID# #SHAPE#";
selFieldList[270]="pub.WASHOE.ROV_ASSEMBLYVIEW.ASSEMBLYPERSON pub.WASHOE.ROV_ASSEMBLYVIEW.ASSEMBLY pub.WASHOE.ROV_ASSEMBLYVIEW.LINK #ID# #SHAPE#";
selFieldList[272]="pub.WASHOE.ROV_RENOWARDSVIEW.RENO_WARDS pub.WASHOE.ROV_RENOWARDSVIEW.COUNCIL_MEMBER pub.WASHOE.ROV_RENOWARDSVIEW.LINK #ID# #SHAPE#";
selFieldList[274]="pub.WASHOE.ROV_SPARKSWARDSVIEW.S_WARD pub.WASHOE.ROV_SPARKSWARDSVIEW.COUNCIL_MEMBER pub.WASHOE.ROV_SPARKSWARDSVIEW.LINK #ID# #SHAPE#";
selFieldList[276]="pub.WASHOE.ROV_STDSCHOOLTRUSTEEVIEW.STD pub.WASHOE.ROV_STDSCHOOLTRUSTEEVIEW.LINK #ID# #SHAPE#";
selFieldList[278]="pub.WASHOE.Census_Blocks_2005.TRACT pub.WASHOE.Census_Blocks_2005.BLKGRP pub.WASHOE.Census_Blocks_2005.BLOCK pub.WASHOE.Census_Blocks_2005.TNTOTAL pub.WASHOE.Census_Blocks_2005.TNWHITE pub.WASHOE.Census_Blocks_2005.TNHISPANIC pub.WASHOE.Census_Blocks_2005.TNBLACK pub.WASHOE.Census_Blocks_2005.TNAMINAKN pub.WASHOE.Census_Blocks_2005.TNASIAN pub.WASHOE.Census_Blocks_2005.TNHAWOP pub.WASHOE.Census_Blocks_2005.TNOTHER pub.WASHOE.Census_Blocks_2005.TN2MRACE pub.WASHOE.Census_Blocks_2005.POP2005 #ID# #SHAPE#";
selFieldList[280]="pub.WASHOE.Census_Tracts.TRACT pub.WASHOE.Census_Tracts.TNTOTAL pub.WASHOE.Census_Tracts.TNWHITE pub.WASHOE.Census_Tracts.TNHISPANIC pub.WASHOE.Census_Tracts.TNBLACK pub.WASHOE.Census_Tracts.TNAMINAKN pub.WASHOE.Census_Tracts.TNASIAN pub.WASHOE.Census_Tracts.TNHAWOP pub.WASHOE.Census_Tracts.TNOTHER pub.WASHOE.Census_Tracts.TN2MRACE #ID# #SHAPE#";
selFieldList[282]="pub.WASHOE.AdminArea_Fema_LOMRBOUNDARY.LOMR pub.WASHOE.AdminArea_Fema_LOMRBOUNDARY.LABEL #ID# #SHAPE#";
selFieldList[284]="#ID# #SHAPE#";
selFieldList[286]="#ID# #SHAPE#";
selFieldList[288]="#ID# #SHAPE#";
selFieldList[291]="pub.WASHOE.AdminArea_Cabbnd.CAB_NAME #ID# #SHAPE#";
selFieldList[301]="#ID# #SHAPE#";
selFieldList[303]="#ID# #SHAPE#";
selFieldList[305]="#ID# #SHAPE#";
selFieldList[315]="pub.WASHOE.ROV_BOARDOFEDUVIEW.BOARD_OF_EDUCATION pub.WASHOE.ROV_BOARDOFEDUVIEW.BOARD_MEMBER pub.WASHOE.ROV_BOARDOFEDUVIEW.LINK #ID# #SHAPE#";
selFieldList[317]="pub.WASHOE.ROV_UNIVREGENTSVIEW.UNIV_OF_REGENTS pub.WASHOE.ROV_UNIVREGENTSVIEW.REGENT pub.WASHOE.ROV_UNIVREGENTSVIEW.LINK #ID# #SHAPE#";
selFieldList[319]="pub.WASHOE.ROV_Townships.TOWNSHIP #ID# #SHAPE#";
selFieldList[329]="pub.WASHOE.PW_dfirm_s_fld_haz_ar.FLD_ZONE pub.WASHOE.PW_dfirm_s_fld_haz_ar.FLOODWAY #ID# #SHAPE#";
selFieldList[330]="pub.WASHOE.PW_dfirm_s_fld_haz_ar.FLD_ZONE pub.WASHOE.PW_dfirm_s_fld_haz_ar.FLOODWAY #ID# #SHAPE#";

// use the field alias in the data display? 
//If true, a list must be defined in fieldAliasList[n] for each layer defining aliases for those fields needing them
var useFieldAlias=true;
// array for aliases for each layer's returned fields if useFieldAlias=true
var fieldAliasList  = new Array();
// sample set for world - fieldname:alias pairs separated by a bar (|)... if no aliases, use empty string ("")
fieldAliasList[15]="pub.WASHOE.Fac_FireStation.NAME:Name|pub.WASHOE.Fac_FireStation.LINK:Link|pub.WASHOE.Fac_FireStation.ADDRESS:Address|pub.WASHOE.Fac_FireStation.CITY:City";
fieldAliasList[17]="pub.WASHOE.Fac_GovBuilding.NAME:Name|pub.WASHOE.Fac_GovBuilding.LINK:Link|pub.WASHOE.Fac_GovBuilding.ADDRESS:Address|pub.WASHOE.Fac_GovBuilding.CITY:City|pub.WASHOE.Fac_GovBuilding.PHONE:Phone";
fieldAliasList[19]="pub.WASHOE.Fac_Library.NAME:Name|pub.WASHOE.Fac_Library.ADDRESS:Address|pub.WASHOE.Fac_Library.CITY:City|pub.WASHOE.Fac_Library.ZIP:ZIP|pub.WASHOE.Fac_Library.PHONE:Phone|pub.WASHOE.Fac_Library.LINK:Link|";
fieldAliasList[23]="pub.WASHOE.Fac_LawEnforcement.NAME:Name|pub.WASHOE.Fac_LawEnforcement.LINK:Link|pub.WASHOE.Fac_LawEnforcement.ADDRESS:Address|pub.WASHOE.Fac_LawEnforcement.CITY:Juridiction";
fieldAliasList[25]="pub.WASHOE.ROV_PollingPlaces.POLLPLACE:Name|pub.WASHOE.ROV_PollingPlaces.ADDRESS:Address|pub.WASHOE.ROV_PollingPlaces.LINK:Link";
fieldAliasList[27]="pub.WASHOE.Fac_School.NAME:Name|pub.WASHOE.Fac_School.ADDRESS:Address|pub.WASHOE.Fac_School.CITY:City|pub.WASHOE.Fac_School.ZIP:ZIP|pub.WASHOE.Fac_School.PHONE:Phone|pub.WASHOE.Fac_School.LINK:Link";
fieldAliasList[29]="pub.WASHOE.Fac_CasinoHotel.NAME:Name|pub.WASHOE.Fac_CasinoHotel.ADDRESS:Address|pub.WASHOE.Fac_CasinoHotel.LOCATION:City";
fieldAliasList[31]="pub.WASHOE.Fac_WebCam.CAM_LOC:Location|pub.WASHOE.Fac_WebCam.URL_LINK:Web Link";
fieldAliasList[33]="pub.WASHOE.Rec_PhotoPoints.LINK:Photo Link";
fieldAliasList[35]="pub.WASHOE.Fac_CareFacility.NAME:Name|pub.WASHOE.Fac_CareFacility.ADDRESS:Address|pub.WASHOE.Fac_CareFacility.CITY:City|pub.WASHOE.Fac_CareFacility.CARE:Type";
fieldAliasList[39]="pub.WASHOE.Trans_BusStation.NAME:Name|pub.WASHOE.Trans_BusStation.LOCATION:Location|pub.WASHOE.Trans_BusStation.CITY:City";
fieldAliasList[44]="pub.WASHOE.Trans_Intersections.NAME1:Road 1|pub.WASHOE.Trans_Intersections.NAME2:Road 2|pub.WASHOE.Trans_Intersections.NAME3:Road 3";
fieldAliasList[50]="pub.WASHOE.SurveyMonuments.EASTING:Easting|pub.WASHOE.SurveyMonuments.NORTHING:Northing|pub.WASHOE.SurveyMonuments.TYPE:Type|pub.WASHOE.SurveyMonuments.COMMENT:Comment|pub.WASHOE.SurveyMonuments.COMMENT1:Comment1|pub.WASHOE.SurveyMonuments.COMMENT2:Comment2|pub.WASHOE.SurveyMonuments.COMMENT3:Comment3|pub.WASHOE.SurveyMonuments.COMMENT4:Comment4|pub.WASHOE.SurveyMonuments.COMMENT5:Comment5|pub.WASHOE.SurveyMonuments.VNAME:V Name|pub.WASHOE.SurveyMonuments.AGENCY:Agency|pub.WASHOE.SurveyMonuments.DATUM:Datum|pub.WASHOE.SurveyMonuments.DATE_:Date|pub.WASHOE.SurveyMonuments.LINK:Link|pub.WASHOE.SurveyMonuments.CLASS:Classification|pub.WASHOE.SurveyMonuments.TRS:Township Range Section|pub.WASHOE.SurveyMonuments.PTNAME:Point Name|pub.WASHOE.SurveyMonuments.UPDATED:Updated";
fieldAliasList[53]="pub.WASHOE.Regional_TRS.TR:Township Range Section";
fieldAliasList[54]="pub.WASHOE.LANDREC_PARCELWRECS.APN:APN|pub.WASHOE.LANDREC_PARCELWRECS.LINK:Assessor Map Image Link|pub.WASHOE.LANDREC_PARCELWRECS.FIRSTNAME:First Name|pub.WASHOE.LANDREC_PARCELWRECS.LASTNAME:Last Name|pub.WASHOE.LANDREC_PARCELWRECS.STREETNUM:Number|pub.WASHOE.LANDREC_PARCELWRECS.STREETDIR:Dir|pub.WASHOE.LANDREC_PARCELWRECS.STREET:Street|pub.WASHOE.LANDREC_PARCELWRECS.CITY:City|pub.WASHOE.LANDREC_PARCELWRECS.ACREAGE:Acres|pub.WASHOE.LANDREC_PARCELWRECS.BEDROOMS:Bedrooms|pub.WASHOE.LANDREC_PARCELWRECS.BATHS:Baths|pub.WASHOE.LANDREC_PARCELWRECS.YEARBLT:Year Built|pub.WASHOE.LANDREC_PARCELWRECS.TAXDIST:Tax District";
fieldAliasList[55]="pub.WASHOE.LandRec_Multi_Level.APN:APN|pub.WASHOE.LandRec_Multi_Level.SITENUMBER:Number|pub.WASHOE.LandRec_Multi_Level.SITESTREET:Street|pub.WASHOE.LandRec_Multi_Level.LOTNUMBER:Unit|pub.WASHOE.LandRec_Multi_Level.SITECITY:City|pub.WASHOE.LandRec_Multi_Level.ACREPLAT:Acres";
fieldAliasList[56]="";
fieldAliasList[57]="pub.WASHOE.PW_dfirm_s_perm_bmk.BM_ID:ID|pub.WASHOE.PW_dfirm_s_perm_bmk.PID:PID|pub.WASHOE.PW_dfirm_s_perm_bmk.SOURCE_CIT:Source";
fieldAliasList[58]="pub.WASHOE.REC_TRAILHEADS_MAPWAREHOUSE.TRAILHEAD_NAME:Name|pub.WASHOE.REC_TRAILHEADS_MAPWAREHOUSE.PARKING:Parking|pub.WASHOE.REC_TRAILHEADS_MAPWAREHOUSE.RESTROOMS:Restrooms|pub.WASHOE.REC_TRAILHEADS_MAPWAREHOUSE.PICNIC_TABLES:Picnic Tables|pub.WASHOE.REC_TRAILHEADS_MAPWAREHOUSE.TRAIL_INFORMATION:Trail Information";
fieldAliasList[60]="pub.WASHOE.NatFeat_Summits.NAME:Name|pub.WASHOE.NatFeat_Summits.ST:State|pub.WASHOE.NatFeat_Summits.COUNTY:County|pub.WASHOE.NatFeat_Summits.USGS_75_M:USGS Map";
fieldAliasList[62]="pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.FEATURE:Feature|pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.NAME:Name|pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.MILEPOST:Mile Post|pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.LOCATION:Location|pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.PORTAGE:Portage|pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.DESCRIPT:Description|pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.RAPIDS:Rapids|pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.ACCESS:Access|pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.DAM:Dam|pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.FISHING:Fishing|pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.PARK:Park|pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.PHONE:Phone|pub.WASHOE.REC_TRUCKEE_RIVER_RAFTING.WATER:Water";
fieldAliasList[109]="pub.WASHOE.Rec_Bike_Routes.ROUTE_NAME:Name|pub.WASHOE.Rec_Bike_Routes.LINK:Link|pub.WASHOE.Rec_Bike_Routes.ROUND_TRIP:Round Trip|pub.WASHOE.Rec_Bike_Routes.MAXGRADE:Max Grade|pub.WASHOE.Rec_Bike_Routes.START:Start";
fieldAliasList[111]="pub.WASHOE.Trans_BusRoute.ROUTE:Route|pub.WASHOE.Trans_BusRoute.ROUTE_MAP:Citifare Map";
fieldAliasList[113]="pub.WASHOE.TRANS_MAJORROAD.FULLNAME:Name";
fieldAliasList[115]="pub.WASHOE.TRANS_WCROADS.FULLNAME:Road|pub.WASHOE.TRANS_WCROADS.CLASS:Class";
fieldAliasList[116]="pub.WASHOE.NatFeat_Contour_Mosaic.ELEVATION:Elevation (FEET)";
fieldAliasList[118]="pub.WASHOE.NatFeat_Contours10M.ELEV_FEET:Elevation (FEET)";
fieldAliasList[119]="";
fieldAliasList[122]="pub.WASHOE.REC_TRAILS_MAPWAREHOUSE.TRAIL:Trail Name|pub.WASHOE.REC_TRAILS_MAPWAREHOUSE.DIFFICULTY:Difficulty|pub.WASHOE.REC_TRAILS_MAPWAREHOUSE.TRAIL_VIEW:View|pub.WASHOE.REC_TRAILS_MAPWAREHOUSE.TRAIL_USE:Use|pub.WASHOE.REC_TRAILS_MAPWAREHOUSE.MILES:Miles|pub.WASHOE.REC_TRAILS_MAPWAREHOUSE.COMMENT:Comment";
fieldAliasList[128]="pub.WASHOE.PW_dfirm_s_bfe.ELEV:Elevation|pub.WASHOE.PW_dfirm_s_bfe.LEN_UNIT:Units|pub.WASHOE.PW_dfirm_s_bfe.V_DATUM:Datum|pub.WASHOE.PW_dfirm_s_bfe.SOURCE_CIT:Source";
fieldAliasList[129]="pub.WASHOE.PW_dfirm_s_gen_struct.STRUCT_ID:STRUCT_ID|pub.WASHOE.PW_dfirm_s_gen_struct.STRUCT_TYP:STRUCT_TYP|pub.WASHOE.PW_dfirm_s_gen_struct.STRUCT_NM:STRUCT_TYP|pub.WASHOE.PW_dfirm_s_gen_struct.WTR_NM:WTR_NM|pub.WASHOE.PW_dfirm_s_gen_struct.SOURCE_CIT:SOURCE_CIT";
fieldAliasList[130]="pub.WASHOE.PW_dfirm_s_xs.XS_LN_ID:XS_LN_ID|pub.WASHOE.PW_dfirm_s_xs.XS_LTR:XS_LTR|pub.WASHOE.PW_dfirm_s_xs.START_ID:START_ID|pub.WASHOE.PW_dfirm_s_xs.STREAM_STN:STREAM_STN|pub.WASHOE.PW_dfirm_s_xs.XS_LN_TYP:XS_LN_TYP|pub.WASHOE.PW_dfirm_s_xs.WTR_NM:WTR_NM|pub.WASHOE.PW_dfirm_s_xs.WSEL_REG:WSEL_REG|pub.WASHOE.PW_dfirm_s_xs.LEN_UNIT:LEN_UNIT|pub.WASHOE.PW_dfirm_s_xs.V_DATUM:V_DATUM|pub.WASHOE.PW_dfirm_s_xs.SOURCE_CIT:SOURCE_CIT";
fieldAliasList[209]="pub.WASHOE.NATFEAT_HYDROBASINS.HB_NAME:Name|pub.WASHOE.NATFEAT_HYDROBASINS.HYDR_BNDY_:Boundary Number";
fieldAliasList[211]="pub.WASHOE.PERMITS_PARCELS.APN:APN|pub.WASHOE.PERMITS_PARCELS.SITEADDRES:ADDRESS|pub.WASHOE.PERMITS_PARCELS.PERMIT:PERMIT|pub.WASHOE.PERMITS_PARCELS.TYPE:TYPE|pub.WASHOE.PERMITS_PARCELS.SUBTYPE:SUBTYPE|pub.WASHOE.PERMITS_PARCELS.STATUS:STATUS|pub.WASHOE.PERMITS_PARCELS.DATE_:DATE";
fieldAliasList[213]="pub.WASHOE.Fac_Airport.NAME:Name|pub.WASHOE.Fac_Airport.LINK:Link";
fieldAliasList[215]="pub.WASHOE.Fac_Parks.NAME:Name|pub.WASHOE.Fac_Parks.LINK:Link";
fieldAliasList[217]="pub.WASHOE.Fac_ShoppingMall.NAME:Name";
fieldAliasList[219]="pub.WASHOE.Fac_University.NAME:Name|pub.WASHOE.Fac_University.ADDRESS:Address|pub.WASHOE.Fac_University.JURIS:City|pub.WASHOE.Fac_University.ZIP:ZIP|pub.WASHOE.Fac_University.PHONE:Phone|pub.WASHOE.Fac_University.LINK:Link";
fieldAliasList[220]="pub.WASHOE.PW_dfirm_s_firm_pan.FIRM_PAN:Flood Insurance Rate Map";
fieldAliasList[221]="pub.WASHOE.AdminArea_Fema_FIRMBOUNDARY.FIRM_PANEL:Flood Insurance Rate Map";
fieldAliasList[223]="pub.WASHOE.AdminArea_ZipCode.ZIPCODE:Zip Code";
fieldAliasList[225]="pub.WASHOE.PLU_WASHOECOUNTYVIEW.apn:APN|pub.WASHOE.PLU_WASHOECOUNTYVIEW.PLUDESCRIPTION:Planned Land Use|pub.WASHOE.PLU_WASHOECOUNTYVIEW.PADESCRIPTION:Plan Area|pub.WASHOE.PLU_WASHOECOUNTYVIEW.cpa:CPA|pub.WASHOE.PLU_WASHOECOUNTYVIEW.IN_TMSA:Truckee Meadows Service Area|pub.WASHOE.PLU_WASHOECOUNTYVIEW.JURISCITY:Jurisdiction|pub.WASHOE.PLU_WASHOECOUNTYVIEW.FIRSTNAME:First Name|pub.WASHOE.PLU_WASHOECOUNTYVIEW.LASTNAME:Last Name|pub.WASHOE.PLU_WASHOECOUNTYVIEW.STREETNUM:Address Number|pub.WASHOE.PLU_WASHOECOUNTYVIEW.STREETDIR:Direction|pub.WASHOE.PLU_WASHOECOUNTYVIEW.STREET:Street|pub.WASHOE.PLU_WASHOECOUNTYVIEW.CITY:City|pub.WASHOE.PLU_WASHOECOUNTYVIEW.acregis:Acre GIS";
fieldAliasList[228]="pub.WASHOE.AdminArea_CountyBND.COUNTY_NAME:County";
fieldAliasList[229]="pub.WASHOE.AdminArea_NevadaBND.NAME:County Name";
fieldAliasList[231]="";
fieldAliasList[233]="";
fieldAliasList[235]="";
fieldAliasList[236]="";
fieldAliasList[238]="pub.WASHOE.AdminArea_RenoBND.NAME:Boundary";
fieldAliasList[240]="pub.WASHOE.AdminArea_SparksBND.NAME:Boundary";
fieldAliasList[242]="pub.WASHOE.PLU_RSCJPVIEW.APN:APN|pub.WASHOE.PLU_RSCJPVIEW.PLUDESCRIPTION:Planned Land Use|pub.WASHOE.PLU_RSCJPVIEW.PADESCRIPTION:Plan Area|pub.WASHOE.PLU_RSCJPVIEW.SPA:Specific Plan Area|pub.WASHOE.PLU_RSCJPVIEW.IN_TMSA:Truckee Meadows Service Area|pub.WASHOE.PLU_RSCJPVIEW.JURISCITY:Jurisdiction|pub.WASHOE.PLU_RSCJPVIEW.FIRSTNAME:First Name|pub.WASHOE.PLU_RSCJPVIEW.LASTNAME:Last Name|pub.WASHOE.PLU_RSCJPVIEW.STREETNUM:Address Number|pub.WASHOE.PLU_RSCJPVIEW.STREETDIR:Direction|pub.WASHOE.PLU_RSCJPVIEW.STREET:Street|pub.WASHOE.PLU_RSCJPVIEW.CITY:City";
fieldAliasList[244]="pub.WASHOE.PLU_SOUTHEASTSPAVIEW.APN:APN|pub.WASHOE.PLU_SOUTHEASTSPAVIEW.PLUDESCRIPTION:Planned Land Use|pub.WASHOE.PLU_SOUTHEASTSPAVIEW.PADESCRIPTION:Plan Area|pub.WASHOE.PLU_SOUTHEASTSPAVIEW.SPA:Specific Plan Area|pub.WASHOE.PLU_SOUTHEASTSPAVIEW.IN_TMSA:Truckee Meadows Service Area|pub.WASHOE.PLU_SOUTHEASTSPAVIEW.JURISCITY:Jurisdiction|pub.WASHOE.PLU_SOUTHEASTSPAVIEW.SOICITY:Sphere Of Influence|pub.WASHOE.PLU_SOUTHEASTSPAVIEW.FIRSTNAME:First Name|pub.WASHOE.PLU_SOUTHEASTSPAVIEW.LASTNAME:Last Name|pub.WASHOE.PLU_SOUTHEASTSPAVIEW.STREETNUM:Address Number|pub.WASHOE.PLU_SOUTHEASTSPAVIEW.STREETDIR:Direction|pub.WASHOE.PLU_SOUTHEASTSPAVIEW.STREET:Street|pub.WASHOE.PLU_SOUTHEASTSPAVIEW.CITY:City";
fieldAliasList[246]="pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.APN:APN|pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.PLUDESCRIPTION:Planned Land Use|pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.PADESCRIPTION:Plan Area|pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.SPA:Specific Plan Area|pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.IN_TMSA:Truckee Meadows Service Area|pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.JURISCITY:Jurisdiction|pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.SOICITY:Sphere Of Influence|pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.FIRSTNAME:First Name|pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.LASTNAME:Last Name|pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.STREETNUM:Address Number|pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.STREETDIR:Direction|pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.STREET:Street|pub.WASHOE.PLU_SOUTHVIRGINIACORRIDORVIEW.CITY:City";
fieldAliasList[248]="pub.WASHOE.AdminArea_SubdivisionBND.NAME:Name|pub.WASHOE.AdminArea_SubdivisionBND.NUMBER_:Tract Number|pub.WASHOE.AdminArea_SubdivisionBND.LOCATION:Location|pub.WASHOE.AdminArea_SubdivisionBND.MAP_LINK:Link";
fieldAliasList[250]="pub.WASHOE.PLU_STEAMBOATSPAVIEW.APN:APN|pub.WASHOE.PLU_STEAMBOATSPAVIEW.PLUDESCRIPTION:Planned Land Use|pub.WASHOE.PLU_STEAMBOATSPAVIEW.PADESCRIPTION:Plan Area|pub.WASHOE.PLU_STEAMBOATSPAVIEW.SPA:Specific Plan Area|pub.WASHOE.PLU_STEAMBOATSPAVIEW.IN_TMSA:Truckee Meadows Service Area|pub.WASHOE.PLU_STEAMBOATSPAVIEW.JURISCITY:Jurisdiction|pub.WASHOE.PLU_STEAMBOATSPAVIEW.SOICITY:Sphere Of Influence|pub.WASHOE.PLU_STEAMBOATSPAVIEW.FIRSTNAME:First Name|pub.WASHOE.PLU_STEAMBOATSPAVIEW.LASTNAME:Last Name|pub.WASHOE.PLU_STEAMBOATSPAVIEW.STREETNUM:Address Number|pub.WASHOE.PLU_STEAMBOATSPAVIEW.STREETDIR:Direction|pub.WASHOE.PLU_STEAMBOATSPAVIEW.STREET:Street|pub.WASHOE.PLU_STEAMBOATSPAVIEW.CITY:City";
fieldAliasList[252]="pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.APN:APN|pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.PLUDESCRIPTION:Planned Land Use|pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.PADESCRIPTION:Plan Area|pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.SPA:Specific Plan Area|pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.IN_TMSA:Truckee Meadows Service Area|pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.JURISCITY:Jurisdiction|pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.SOICITY:Sphere Of Influence|pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.FIRSTNAME:First Name|pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.LASTNAME:Last Name|pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.STREETNUM:Address Number|pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.STREETDIR:Direction|pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.STREET:Street|pub.WASHOE.PLU_WARMSPRINGSSPAVIEW.CITY:City";
fieldAliasList[254]="pub.WASHOE.ROV_COMMISSIONERVIEW.DISTRICT:Washoe County Commission|pub.WASHOE.ROV_COMMISSIONERVIEW.COMMISSIONER:Commissioner|pub.WASHOE.ROV_COMMISSIONERVIEW.LINK:Link";
fieldAliasList[256]="pub.WASHOE.ROV_Precincts.PRECINCT:Precinct|pub.WASHOE.ROV_Precincts.SENATE:Senate District|pub.WASHOE.ROV_Precincts.ASSEMBLY:Assembly District|pub.WASHOE.ROV_Precincts.BOARDOFEDU:Board Of Education|pub.WASHOE.ROV_Precincts.REGENTS:University Regent|pub.WASHOE.ROV_Precincts.COMMISSION:Commission District|pub.WASHOE.ROV_Precincts.RWARDS:Reno Ward|pub.WASHOE.ROV_Precincts.SWARDS:Sparks Ward|pub.WASHOE.ROV_Precincts.STDTRUST:Standard Trustee|pub.WASHOE.ROV_Precincts.GENTRUST:General Trustee|pub.WASHOE.ROV_Precincts.GID:General Improvement District|pub.WASHOE.ROV_Precincts.TOWNSHIP:Township|pub.WASHOE.ROV_Precincts.FPD:Fire District";
fieldAliasList[258]="pub.WASHOE.ROV_GenImproveDistrictView.GID:Improvement District";
fieldAliasList[260]="pub.WASHOE.AdminArea_PlanningAreas.PLANAREA_N:Planning Area";
fieldAliasList[261]="";
fieldAliasList[262]="pub.WASHOE.AdminArea_ElemSchoolZone.NAME:Elementary School|pub.WASHOE.AdminArea_ElemSchoolZone.LINK:Link";
fieldAliasList[264]="pub.WASHOE.AdminArea_MidSchoolZone.NAME:Middle School|pub.WASHOE.AdminArea_MidSchoolZone.LINK:Link";
fieldAliasList[266]="pub.WASHOE.AdminArea_HighSchoolZone.NAME:High School|pub.WASHOE.AdminArea_HighSchoolZone.LINK:Link";
fieldAliasList[268]="pub.WASHOE.ROV_SENATEVIEW.SENATOR:Senator|pub.WASHOE.ROV_SENATEVIEW.SENATE:District|pub.WASHOE.ROV_SENATEVIEW.LINK:Link";
fieldAliasList[270]="pub.WASHOE.ROV_ASSEMBLYVIEW.ASSEMBLYPERSON:Assemblyperson|pub.WASHOE.ROV_ASSEMBLYVIEW.ASSEMBLY:District|pub.WASHOE.ROV_ASSEMBLYVIEW.LINK:Link";
fieldAliasList[272]="pub.WASHOE.ROV_RENOWARDSVIEW.RENO_WARDS:Reno Wards|pub.WASHOE.ROV_RENOWARDSVIEW.COUNCIL_MEMBER:Council Member|pub.WASHOE.ROV_RENOWARDSVIEW.LINK:Link";
fieldAliasList[274]="pub.WASHOE.ROV_SPARKSWARDSVIEW.S_WARD:Sparks Wards|pub.WASHOE.ROV_SPARKSWARDSVIEW.COUNCIL_MEMBER:Council Member|pub.WASHOE.ROV_SPARKSWARDSVIEW.LINK:Link";
fieldAliasList[276]="pub.WASHOE.ROV_STDSCHOOLTRUSTEEVIEW.STD:School Board Trustee District|pub.WASHOE.ROV_STDSCHOOLTRUSTEEVIEW.LINK:Link";
fieldAliasList[278]="pub.WASHOE.Census_Blocks_2005.TRACT:Tract|pub.WASHOE.Census_Blocks_2005.BLKGRP:BlockGroup|pub.WASHOE.Census_Blocks_2005.BLOCK:Block|pub.WASHOE.Census_Blocks_2005.TNTOTAL:Total Population (2000)|pub.WASHOE.Census_Blocks_2005.TNWHITE:White|pub.WASHOE.Census_Blocks_2005.TNHISPANIC:Hispanic|pub.WASHOE.Census_Blocks_2005.TNBLACK:African American|pub.WASHOE.Census_Blocks_2005.TNAMINAKN:American Indian/Alaskan Native|pub.WASHOE.Census_Blocks_2005.TNASIAN:Asian|pub.WASHOE.Census_Blocks_2005.TNHAWOP:Hawaiian/Pacific Islander|pub.WASHOE.Census_Blocks_2005.TNOTHER:Other|pub.WASHOE.Census_Blocks_2005.TN2MRACE:Two Or More Races|pub.WASHOE.Census_Blocks_2005.POP2005:Estimated Population (2005)";
fieldAliasList[280]="pub.WASHOE.Census_Tracts.TRACT:Tract|pub.WASHOE.Census_Tracts.TNTOTAL:Total Population|pub.WASHOE.Census_Tracts.TNWHITE:White|pub.WASHOE.Census_Tracts.TNHISPANIC:Hispanic|pub.WASHOE.Census_Tracts.TNBLACK:African American|pub.WASHOE.Census_Tracts.TNAMINAKN:American Indian/Alaskan Native|pub.WASHOE.Census_Tracts.TNASIAN:Asian|pub.WASHOE.Census_Tracts.TNHAWOP:Hawaiian/Pacific Islander|pub.WASHOE.Census_Tracts.TNOTHER:Other|pub.WASHOE.Census_Tracts.TN2MRACE:Two Or More Races";
fieldAliasList[282]="pub.WASHOE.AdminArea_Fema_LOMRBOUNDARY.LOMR:Letter of Map Revision (LOMR)|pub.WASHOE.AdminArea_Fema_LOMRBOUNDARY.LABEL:Label";
fieldAliasList[284]="";
fieldAliasList[286]="";
fieldAliasList[288]="";
fieldAliasList[291]="pub.WASHOE.AdminArea_Cabbnd.CAB_NAME:Name";
fieldAliasList[301]="";
fieldAliasList[303]="";
fieldAliasList[305]="";
fieldAliasList[315]="pub.WASHOE.ROV_BOARDOFEDUVIEW.BOARD_OF_EDUCATION:District|pub.WASHOE.ROV_BOARDOFEDUVIEW.BOARD_MEMBER:Board Member|pub.WASHOE.ROV_BOARDOFEDUVIEW.LINK:Website";
fieldAliasList[317]="pub.WASHOE.ROV_UNIVREGENTSVIEW.UNIV_OF_REGENTS:District|pub.WASHOE.ROV_UNIVREGENTSVIEW.REGENT:Regent|pub.WASHOE.ROV_UNIVREGENTSVIEW.LINK:Website";
fieldAliasList[319]="pub.WASHOE.ROV_Townships.TOWNSHIP:Township District";
fieldAliasList[329]="pub.WASHOE.PW_dfirm_s_fld_haz_ar.FLD_ZONE:Flood Zone|pub.WASHOE.PW_dfirm_s_fld_haz_ar.FLOODWAY:Floodway";
fieldAliasList[330]="pub.WASHOE.PW_dfirm_s_fld_haz_ar.FLD_ZONE:Flood Zone|pub.WASHOE.PW_dfirm_s_fld_haz_ar.FLOODWAY:Floodway";

// Hide the ID field display? The ID Field must be included in field list, but we don't have to show it.
var hideIDFieldData = true;
// Hide the shape field display? The Shape Field must be included in field list, but we don't have to show it.
var hideShapeFieldData = true;

// parameters for setting up hyperlinks in data display
var hyperLinkLayers = new Array(); // layers to have hyperlink
var hyperLinkFields = new Array();	// field in those layers to be used for hyperlink
var hyperLinkPrefix = new Array();  // prefix (if any) to place before field value to make hyperlink url
var hyperLinkSuffix = new Array();  // suffix (if any) to place after field value to make hyperlink url

hyperLinkLayers[0] = "Airports";
hyperLinkFields[0] = "pub.WASHOE.Fac_Airport.LINK";
hyperLinkPrefix[0] = "";
hyperLinkSuffix[0] = "";
hyperLinkLayers[1] = "Fire Stations";
hyperLinkFields[1] = "pub.WASHOE.Fac_FireStation.LINK";
hyperLinkPrefix[1] = "";
hyperLinkSuffix[1] = "";
hyperLinkLayers[2] = "Government Buildings";
hyperLinkFields[2] = "pub.WASHOE.Fac_GovBuilding.LINK";
hyperLinkPrefix[2] = "";
hyperLinkSuffix[2] = "";
hyperLinkLayers[3] = "Libraries";
hyperLinkFields[3] = "pub.WASHOE.Fac_Library.LINK";
hyperLinkPrefix[3] = "";
hyperLinkSuffix[3] = "";
hyperLinkLayers[4] = "Parks";
hyperLinkFields[4] = "pub.WASHOE.Fac_Parks.LINK";
hyperLinkPrefix[4] = "";
hyperLinkSuffix[4] = "";
hyperLinkLayers[5] = "Law Enforcement";
hyperLinkFields[5] = "pub.WASHOE.Fac_LawEnforcement.LINK";
hyperLinkPrefix[5] = "";
hyperLinkSuffix[5] = "";
hyperLinkLayers[6] = "Polling Places";
hyperLinkFields[6] = "pub.WASHOE.ROV_PollingPlaces.LINK";
hyperLinkPrefix[6] = "";
hyperLinkSuffix[6] = "";
hyperLinkLayers[7] = "Schools";
hyperLinkFields[7] = "pub.WASHOE.Fac_School.LINK";
hyperLinkPrefix[7] = "";
hyperLinkSuffix[7] = "";
hyperLinkLayers[8] = "Universities"
hyperLinkFields[8] = "pub.WASHOE.Fac_University.LINK";
hyperLinkPrefix[8] = "";
hyperLinkSuffix[8] = "";
hyperLinkLayers[9] = "Parcels";
hyperLinkFields[9] = "pub.WASHOE.LANDREC_PARCELWRECS.LINK";
hyperLinkPrefix[9] = "";
hyperLinkSuffix[9] = "";
hyperLinkLayers[10] = "Commissioner Districts";
hyperLinkFields[10] = "pub.WASHOE.ROV_COMMISSIONERVIEW.LINK";
hyperLinkPrefix[10] = "";
hyperLinkSuffix[10] = "";
hyperLinkLayers[11] = "Elementary School Zoning";
hyperLinkFields[11] = "pub.WASHOE.AdminArea_ElemSchoolZone.LINK";
hyperLinkPrefix[11] = "";
hyperLinkSuffix[11] = "";
hyperLinkLayers[12] = "Middle School Zoning";
hyperLinkFields[12] = "pub.WASHOE.AdminArea_MidSchoolZone.LINK";
hyperLinkPrefix[12] = "";
hyperLinkSuffix[12] = "";
hyperLinkLayers[13] = "High School Zoning";
hyperLinkFields[13] = "pub.WASHOE.AdminArea_HighSchoolZone.LINK";
hyperLinkPrefix[13] = "";
hyperLinkSuffix[13] = "";
hyperLinkLayers[14] = "Senate Districts";
hyperLinkFields[14] = "pub.WASHOE.ROV_SENATEVIEW.LINK";
hyperLinkPrefix[14] = "";
hyperLinkSuffix[14] = "";
hyperLinkLayers[15] = "Assembly Districts";
hyperLinkFields[15] = "pub.WASHOE.ROV_ASSEMBLYVIEW.LINK";
hyperLinkPrefix[15] = "";
hyperLinkSuffix[15] = "";
hyperLinkLayers[16] = "Reno Wards";
hyperLinkFields[16] = "pub.WASHOE.ROV_RENOWARDSVIEW.LINK";
hyperLinkPrefix[16] = "";
hyperLinkSuffix[16] = "";
hyperLinkLayers[17] = "Sparks Wards";
hyperLinkFields[17] = "pub.WASHOE.ROV_SPARKSWARDSVIEW.LINK";
hyperLinkPrefix[17] = "";
hyperLinkSuffix[17] = "";
hyperLinkLayers[18] = "School Board Trustees";
hyperLinkFields[18] = "pub.WASHOE.ROV_STDSCHOOLTRUSTEEVIEW.LINK";
hyperLinkPrefix[18] = "";
hyperLinkSuffix[18]= "";
hyperLinkLayers[19] = "Survey Points";
hyperLinkFields[19] = "pub.WASHOE.SurveyMonuments.LINK";
hyperLinkPrefix[19] = "";
hyperLinkSuffix[19] = "";
hyperLinkLayers[20] = "FEMA LOMR Boundaries";
hyperLinkFields[20] = "pub.WASHOE.AdminArea_Fema_LOMRBOUNDARY.LOMR";
hyperLinkPrefix[20] = "ftp://wcftp.washoecounty.us/outtoworld/LOMARS/";
hyperLinkSuffix[20] = ".pdf";
hyperLinkLayers[21] = "FEMA FIRM Boundaries";
hyperLinkFields[21] = "pub.WASHOE.AdminArea_Fema_FIRMBOUNDARY.FIRM_PANEL";
hyperLinkPrefix[21] = "ftp://wcftp.washoecounty.us/outtoworld/FIRM_PANELS/";
hyperLinkSuffix[21] = ".tif";
hyperLinkLayers[22] = "Bus Routes";
hyperLinkFields[22] = "pub.WASHOE.Trans_BusRoute.ROUTE_MAP";
hyperLinkPrefix[22] = "";
hyperLinkSuffix[22] = "";
hyperLinkLayers[23] = "Webcams";
hyperLinkFields[23] = "pub.WASHOE.Fac_WebCam.URL_LINK";
hyperLinkPrefix[23] = "";
hyperLinkSuffix[23] = "";
hyperLinkLayers[24] = "Bike Routes";
hyperLinkFields[24] = "pub.WASHOE.Rec_Bike_Routes.LINK";
hyperLinkPrefix[24] = "";
hyperLinkSuffix[24] = "";
hyperLinkLayers[25] = "Photo Locations";
hyperLinkFields[25] = "pub.WASHOE.Rec_PhotoPoints.LINK";
hyperLinkPrefix[25] = "";
hyperLinkSuffix[25] = "";
hyperLinkLayers[26] = "Multilevel Property";
hyperLinkFields[26] = "pub.WASHOE.LandRec_Multi_Level.LINK";
hyperLinkPrefix[26] = "";
hyperLinkSuffix[26] = "";
hyperLinkLayers[27] = "Subdivision Boundaries";
hyperLinkFields[27] = "pub.WASHOE.AdminArea_SubdivisionBND.MAP_LINK";
hyperLinkPrefix[27] = "";
hyperLinkSuffix[27] = "";
hyperLinkLayers[28] = "Board of Education";
hyperLinkFields[28] = "pub.WASHOE.ROV_BOARDOFEDUVIEW.LINK";
hyperLinkPrefix[28] = "";
hyperLinkSuffix[28] = "";
hyperLinkLayers[29] = "University Regents";
hyperLinkFields[29] = "pub.WASHOE.ROV_UNIVREGENTSVIEW.LINK";
hyperLinkPrefix[29] = "";
hyperLinkSuffix[29] = "";
hyperLinkLayers[30] = "Parcels with Permits";
hyperLinkFields[30] = "pub.WASHOE.PERMITS_PARCELS.PERMIT";
hyperLinkPrefix[30] = "http://bldgpermits.washoecounty.us/index.php?detail=";
hyperLinkSuffix[30] = "";
hyperLinkLayers[31] = "FEMA DFIRM Panels";
hyperLinkFields[31] = "pub.WASHOE.PW_dfirm_s_firm_pan.FIRM_PAN";
hyperLinkPrefix[31] = "ftp://wcftp.washoecounty.us/outtoworld/FIRM_PANELS/DFIRM/";
hyperLinkSuffix[31] = ".tif";

// will the returned data be displayed in text frame?
var showSelectedData=true;
var showBufferedData=true;
// will the returned features be drawn?
var showSelectedFeatures=true;
// maximum number of features returned from query
var maxFeaturesReturned=25;
// for ID All - List all visible layers in response - default is false
	// if false only visible layers with idenitified features written to table
	// if true the names of all visible layers will be diplayed even if no features returned
var listAllLayersInIDAll = false;


// number of data samples retrieved for query form
var numberDataSamples = 50;



/**************************************
* Legend parameters - aimsLegend.js
**************************************/

// legend map size 170,100
var legWidth=158;
var legHeight=110;
var legFont="Arial";
var legTitle="";

/**************************************
* Options parameters - aimsOptions.js
**************************************/

// allowing user to set options
var allowOptions=false;

/**************************************
* ClassRender parameters - aimsClassRender.js
**************************************/

// parameters for custom class rendering... overrides default renderer
var ClassRenderLayer = new Array();  // layers to have custom renderers
var ClassRenderString = new Array(); // initial custom renderer XML string for the layers
ClassRenderLayer[0] = "Cities";
ClassRenderString[0] = "";
/*
ClassRenderString[0] ='<VALUEMAPRENDERER lookupfield="population">\n<RANGE LOWER="0" UPPER="1000000">\n<SIMPLEMARKERSYMBOL color="255,0,255" type="circle" size="4" />\n</RANGE>';
ClassRenderString[0] = ClassRenderString[0] + '<RANGE LOWER="1000000" UPPER="2500000">\n<SIMPLEMARKERSYMBOL color="255,0,255" type="circle" size="6" />\n</RANGE>';
ClassRenderString[0] = ClassRenderString[0] + '<RANGE LOWER="2500000" UPPER="5000000">\n<SIMPLEMARKERSYMBOL color="255,0,255" type="circle" size="9" />\n</RANGE>';
ClassRenderString[0] = ClassRenderString[0] + '<RANGE LOWER="5000000" UPPER="10000000">\n<SIMPLEMARKERSYMBOL color="255,0,255" type="circle" size="12" />\n</RANGE>';
ClassRenderString[0] = ClassRenderString[0] + '<RANGE LOWER="10000000" UPPER="30000000">\n<SIMPLEMARKERSYMBOL color="255,0,255" type="circle" size="16" />\n</RANGE>\n</VALUEMAPRENDERER>';
*/

/**************************************
* Geocode parameters - aimsGeocode.js
**************************************/

// maximum geocode candidates returned - default = 20
var maxGeocodeCandidates=20;
// minimal acceptable geocode score for candidate
var minGeocodeScore=50;
var geocodePointColor = "255,0,0";
var geocodePointSize = "15";
var geocodeLabelSize = "12";
// custom functions needed for Reverse Geocoding
var useReverseGeocode = false;

// the starting point. . . it all starts here on loading
function checkParams() {
	appDir = getPath(document.location.pathname);
	// global for overview map. . . change if not on same frame as Map
	ovImageVar = document.ovImage;
	debugOn = 0;
	if (parent.TextFrame==null) {
		useTextFrame = false;
		useExternalWindow=true;
	}
	if (!hasLayer("measureBox")) useMeasure=false;
	if ((!useMeasure) && (!drawScaleBar)) useSetUnits=false;
	if (ovImageVar==null) hasOVMap = false;
	if (parent.TOCFrame==null) hasTOC = false;
	if (parent.ModeFrame==null) useModeFrame = false;
	
	
	if (isIE)	{
		if (hasLayer("theTop")) document.all.theTop.style.cursor = "crosshair";
		if (hasOVMap) ovImageVar.style.cursor = "hand";
	}
		
	if (hasOVMap) {
		// size of ov map image
		i2Width = parseInt(ovImageVar.width);
		i2Height = parseInt(ovImageVar.height);
		forceNewOVMap = false;
		// position of ov map
		//ovMapLeft = iWidth - (i2Width + 6);
		//ovMapTop = 2;
	}
	if (webParams!="") {
		//alert(webParams);
		getCommandLineParams(webParams);
	}
	// if starting extents zero'd then flag to get start from mapservice
	if ((startLeft!=0) && (startRight!=0)) getStartingExtent=false;
	// if limit extents zero'd then flag to get max from mapservice
	if ((limitLeft!=0) && (limitRight!=0)) {
		getLimitExtent=false;
		enforceFullExtent=true;
	}
	if (ovBoxColor=="") ovBoxColor = "255,0,0";
	//ovBoxColor = convertHexToDec(ovBoxColor);
	checkCoords();
	if (aimsNavigationPresent) {
		// Set up event capture for mouse movement
		if (isNav4) {
			document.captureEvents(Event.MOUSEMOVE);
			document.captureEvents(Event.MOUSEDOWN);
			document.captureEvents(Event.MOUSEUP);
			//document.captureEvents(Event.MOUSEOUT);
		}
		document.onmousemove = getMouse;
		//document.onmousedown = chkMouseDown;
		document.onmousedown = mapTool;
		document.onmouseup = chkMouseUp;
		//document.onmouseout = chkMouseOut;
	} else {
		usePan=false;
		usePanNorth=false;
		usePanWest=false;
		usePanEast=false;
		usePanSouth=false;
		useMeasure=false;
		useZoomIn=false;
		useZoomOut=false
		//useFullExtent=false;
		useZoomActive=false;
		//useZoomLast=false;	
	}
	
	if (!aimsBufferPresent) {
		useBuffer=false;
	}
	if (!aimsQueryPresent) {
		aimsBufferPresent=false;
		useQuery=false;
		useFind=false;
		useBuffer=false;
		useStoredQuery=true;
	}
	if (!aimsSelectPresent) {
		aimsQueryPresent=false;
		aimsBufferPresent=false;
 		useSelect=false;
		useQuery=false;
		useFind=false;
		useBuffer=false;
		useStoredQuery=true;
		useClearSelect=false;
	}
	if (!aimsIdentifyPresent) {
		aimsSelectPresent=false;
		aimsQueryPresent=false;
		aimsBufferPresent=false;
		canQuery=false;
		useIdentify=false;
 		useSelect=false;
		useQuery=false;
		useFind=false;
		useBuffer=false;
		useStoredQuery=true;
		useHyperLink=false;
		useHyperLinkAny=false;
		useIdentifyAll=false;
	}
	if (!aimsGeocodePresent) {
		useGeocode=false;
		useReverseGeocode=false;
	}
	if (!aimsPrintPresent) {
		usePrint=false;
	}
	if (!aimsOptionsPresent) {
		allowOptions=false;
	}
	if ((aimsXMLPresent) && (aimsMapPresent)) {
		if (aimsClickPresent) clickFunction("zoomin");
		if (parent.ToolFrame!=null) parent.ToolFrame.document.location="toolbar.htm";
		startMap();
	} else {
		alert(msgList[0]);
	}
//writeQueryForm() ; 
}