// ArcIMSparam.js
// javascript file with parameters specific to calling page

//***************************************************************************
//*			parameters File for HTML Template		    *
//***************************************************************************

// get machine name
var hostName = document.location.host;
// common portion of url
var esriBlurb = "/servlet/com.esri.esrimap.Esrimap?ServiceName="
// make URL for getting mapservice catalog
var catURL = "http://" + hostName + esriBlurb + "catalog";
// make prefix for URL
var serverURL  = "http://" + hostName + esriBlurb;

//*********************************************************************
//*			parameters set by Designer			                     *
//*********************************************************************
var imsURL = 'http://'+ hostName +'/servlet/com.esri.esrimap.Esrimap?ServiceName=GreenMap_HTML';
var imsOVURL =  'http://'+ hostName +'/servlet/com.esri.esrimap.Esrimap?ServiceName=GreenMap_OV';
var imsQueryURL = '';
var imsGeocodeURL = '';

//initial map extent
//var startLeft = 1681470;
//var startRight = 1998509;
//var startTop = 835531;
//var startBottom = 593951;
var startLeft = 1744958;
var startRight = 1902995;
var startTop = 815467;
var startBottom = 632684;


//maximum map extent
var limitLeft = startLeft;
var limitRight = startRight;
var limitTop = startTop;
var limitBottom = startBottom;

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=false;
var useSetUnits=false;
var useSelect=true;
var useQuery=true;
//**************************************************
//  pulled out by sw on 10/18/2006  also pulled out code on toolbar.htm.
//**************************************************
var useAdvQuery=false;
//**************************************************
var useFind=false;
var useGeocode=true;
var useStoredQuery=false;
var useClearSelect=true;
var usePrint=true;
var useGeoNetwork=false;
//*************************************************************
// pulled out by sw on 10/18/2006 turned off variable in arcimsparam.js
//*************************************************************
var useBuffer=false;
//*************************************************************				
var useExtract=false;

var MapUnits = "Feet";

//////////////////////////////////////////////////
// buffer_cont.htm depends on this being Feet -- thh - 11/10/05
//////////////////////////////////////////////////
var ScaleBarUnits = "Feet";
//////////////////////////////////////////////////

//////////////////////////////////////////////////
// parameters setup by SW
//////////////////////////////////////////////////
//for making icon dictionary link in toolbar.htm
var useIconDictionary=true;

//for textframe load on startup only
var textFrameReload = true;
//////////////////////////////////////////////////

//////////////////////////////////////////////////
//  Added by sw 11/25/2005 for making maptips not go over the edge of frame
//////////////////////////////////////////////////
var theX = 0;
var theY = 0;
// Tweak these numbers to improve the position of the 
// map tip box relative to the cursor.
// xPo and yPo position the map tip box under most conditions.  
// xFactor and yFactor come into play when the cursor is 
// near the south or east boundaries of the map.
var xPo = 2;
var yPo = xPo;
var xFactor = 7.5;           // A larger number will push the map tip box further left of the cursor.
var yFactor = 16;            // A larger number will push the map tip box further above the cursor.
//////////////////////////////////////////////////

// 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;


//////////////////////////////////////////////
//////////////////////////////////////////////
//////////////////////////////////////////////
// Added for MORPC -- thh - 09/23/05
//////////////////////////////////////////////
var initApp = true;
var displayLayerInfoButton = false;
var useDebug = false;

// preFix is for switching between ArcSDE and a Shapefile.
var preFix = "";
//preFix = "URECA.MR_URECA.TRUMBULL_PARCELPOLYGONS."

var geocodeBuffer = false;

var MainLayer = "Major Roads";
var MainField = "ST_NAME";
//////////////////////////////////////////////

//////////////////////////////////////////////
// Map tips -- Chen Li
//////////////////////////////////////////////
var mapTipLayers = new Array(); // layers to have mapTip
var mapTipFields = new Array(); // field in those layers to be used for mapTip
var mapTipLayerIndex = 52;
mapTipLayers[0] = MainLayer;
mapTipFields[0] = MainField + " ROUTE_TYPE";
mapTipLayers[1] = "Managed Areas";
mapTipFields[1] = "FIRST_NAME TYPE";
mapTipLayers[2] = "Green Map Streams Poly";
mapTipFields[2] = "NAME";
mapTipLayers[3] = "Green Map Counties";
mapTipFields[3] = "COUNTY_NAM";
mapTipLayers[4] = "Greater Columbus Watersheds";
mapTipFields[4] = "NAME";
mapTipLayers[5] = "Greater Columbus";
mapTipFields[5] = "NAME";
mapTipLayers[6] = "Greater Columbus Parks";
mapTipFields[6] = "PARK_NAME TYPE";
mapTipLayers[7] = "Franklin County Easements";
mapTipFields[7] = "NAME";
mapTipLayers[8] = "Franklin County Roads";
mapTipFields[8] = "NAME TYPE";
mapTipLayers[9] = "Major Roads";
mapTipFields[9] = "ST_NAME ROUTE_TYPE";
mapTipLayers[10] = "Green Map Streams";
mapTipFields[10] = "STREAMNAME";
mapTipLayers[11] = "Bikeways";
mapTipFields[11] = "COUNTY STATUS START STOP MILES";
mapTipLayers[12] = "ZOO";
mapTipFields[12] = "NAME CITY PHONE ADDRESS ZIP";
mapTipLayers[13] = "Wind Energy Sites";
mapTipFields[13] = "SITE";
mapTipLayers[14] = "Wildlife Rehabilitation Centers";
mapTipFields[14] = "NAME";
mapTipLayers[15] = "Wetlands";
mapTipFields[15] = "SITE";
mapTipLayers[16] = "Water Features";
mapTipFields[16] = "CLASS TYPE";
mapTipLayers[17] = "Waste Water Treatment Plants";
mapTipFields[17] = "CORE_NAM_1 CITY";
mapTipLayers[18] = "Vegetarian Restaurants";
mapTipFields[18] = "NAME PHONE";
mapTipLayers[19] = "Vanpools";
mapTipFields[19] = "NAME LOCATION CONTACT";
mapTipLayers[20] = "Solid Waste Transfer Stations";
mapTipFields[20] = "NAME CITY";
mapTipLayers[21] = "Solar Energy Sites";
mapTipFields[21] = "SITE ADDRESS CITY ZIP";
mapTipLayers[22] = "Significant Organizations";
mapTipFields[22] = "NAME PHONE";
mapTipLayers[23] = "Significant Habitats";
mapTipFields[23] = "SITE_NAME";
mapTipLayers[24] = "Significant Buildings";
mapTipFields[24] = "RESNAME OTHRNAME1 ADDRESS CITY SIGYEARS";
mapTipLayers[25] = "Separate Bike Path";
mapTipFields[25] = "PATH_NAME TYPE TOTALDIST";
mapTipLayers[26] = "Senior Centers";
mapTipFields[26] = "NAME ADDRESS CITY PHONE";
mapTipLayers[27] = "Secure Bike Parking";
mapTipFields[27] = "GENERALLOC";
mapTipLayers[28] = "Scientific Research Sites";
mapTipFields[28] = "SITE ADDRESS CITY ZIP PHONE";
mapTipLayers[29] = "Re use Stores";
mapTipFields[29] = "NAME TYPE ADDRESS CITY ZIP PHONE";
mapTipLayers[30] = "Recycling Dropoff Sites";
mapTipFields[30] = "NAME ADDRESS CITY ZIP";
mapTipLayers[31] = "Recycling Dropoff Sites";
mapTipFields[31] = "NAME ADDRESS CITY ZIP PHONE";
mapTipLayers[32] = "Parkland Recreation Sites";
mapTipFields[32] = "NAME ADDRESS CITY ACRES";
mapTipLayers[33] = "Park and Ride Facilities";
mapTipFields[33] = "NAME LOCATION";
mapTipLayers[34] = "On Road Bike Paths";
mapTipFields[34] = "PATH_NAME TOTALDIST";
mapTipLayers[35] = "Natural Food Stores";
mapTipFields[35] = "NAME TYPE ADDRESS CITY ZIP PHONE";
mapTipLayers[36] = "Museums";
mapTipFields[36] = "NAME ADDRESS CITY ZIP PHONE NAME_OF_O";
mapTipLayers[37] = "Libraries";
mapTipFields[37] = "BRANCH STSYTEM ADDRESS CITY ZIP PHONE";
mapTipLayers[38] = "Landform Geological Features";
mapTipFields[38] = "TYPE";
mapTipLayers[39] = "Landfills";
mapTipFields[39] = "NAME STREET CITY ZIP PHONE MATERIALS";
mapTipLayers[40] = "Historical Features";
mapTipFields[40] = "RESNAME OTHRNAME1 TYPE ADDRESS CITY";
mapTipLayers[41] = "Green Maps Available";
mapTipFields[41] = "NAME ADDRESS CITY ZIP PHONE";
mapTipLayers[42] = "Green Businesses Services";
mapTipFields[42] = "NAME PRODUCTS ADDRESS CITY ZIP PHONE";
mapTipLayers[43] = "Green Buildings";
mapTipFields[43] = "NAME ADDRESS CITY ZIP PHONE";
mapTipLayers[44] = "Greenways";
mapTipFields[44] = "NAME ACREAGE";
mapTipLayers[45] = "Great Views";
mapTipFields[45] = "NAME ADDRESS CITY ZIP";
mapTipLayers[46] = "Gardens";
mapTipFields[46] = "NAME";
mapTipLayers[47] = "Fishing Sites";
mapTipFields[47] = "NAME LOCATION WEBSITE";
mapTipLayers[48] = "Farm Animals";
mapTipFields[48] = "NAME ADDRESS CITY ZIP";
mapTipLayers[49] = "Farmers Markets";
mapTipFields[49] = "NAME ADDRESS CITY ZIP PHONE HOURS_OPEN WEBSITE";
mapTipLayers[50] = "Fair Trade";
mapTipFields[50] = "NAME PRODUCTS ADDRESS CITY ZIP PHONE";
mapTipLayers[51] = "Environmental Schools";
mapTipFields[51] = "NAME ADDRESS CITY ZIP PHONE";
mapTipLayers[52] = "Energy Grid Generation Sites";
mapTipFields[52] = "NAME1 TYPE ADDRESS CITY ZIP PHONE";
mapTipLayers[53] = "Ecological Design";
mapTipFields[53] = "SITE ADDRESS CITY ZIP PHONE";
mapTipLayers[54] = "Dams";
mapTipFields[54] = "WATERWAY FEATURE COUNTY";
mapTipLayers[55] = "Cultural Sites";
mapTipFields[55] = "RESNAME OTHRNAME1 ADDRESS CITY SIGYEARS";
mapTipLayers[56] = "Composting Sites";
mapTipFields[56] = "NAME ADDRESS CITY ZIP PHONE HOURS MATERIALS";
mapTipLayers[57] = "Community Gardens";
mapTipFields[57] = "NAME PARENT_ORG TYPE STREET_ADD CITY ZIP PHONE ";
mapTipLayers[58] = "Community and Recreation Centers";
mapTipFields[58] = "NAME ADDRESS CITY ZIP PHONE";
mapTipLayers[59] = "Boat Launch Site";
mapTipFields[59] = "NAME TYPE LOCATION WEBSITE";
mapTipLayers[60] = "Bird and Wildlife Watching Sites";
mapTipFields[60] = "SITE VANTAGE_PT ADDRESS CITY ZIP";
mapTipLayers[61] = "Bicycle Sites";
mapTipFields[61] = "SITE ESRVICES ADDRESS CITY ZIP";
mapTipLayers[62] = "Alternative Fuel Sites";
mapTipFields[62] = "SITE TYPE CATEGORY ADDRESS CITY ZIP PHONE";
mapTipLayers[63] = "Air Quality Monitors";
mapTipFields[63] = "NAME TYPE ADDRESS CITY ZIP";
//alert(mapTipFields.toString());
var showMaptip = true;
var canShowMaptip = showMaptip;
var MaptipChecked = false;
var mapTipTimeout;
var oldmouseX = 0;
var oldmouseY = 0;
//////////////////////////////////////////////
//////////////////////////////////////////////
//////////////////////////////////////////////


/**************************************
* Basic Map parameters
**************************************/

// variables for setting component colors
var mapBackColor = "";
var ovBoxColor = "#ff0000";
var ovBoxSize = 3;
var zoomBoxColor = "#ff0000";

// variables for using individual components
var hasOVMap = true;
var hasTOC = true;
var hasLegend = true;
var useModeFrame = true;

// 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;
var panFactor = 55/100;
//zoom factors for v.3
var zoomFactor = 2

// 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 = 25/1000

// show the scale factor
var showScalePercent=true;
// display coords in status line
var showXYs=true;

// Have ArcXML responses URL encoded? Will not work with multi-byte characters
var doURLencode = false;

// automatically adjust for ArcMapServer, if necessary
	// North Arrow size is smaller from ArcMapServer
var autoAdjustForArcMapServer = true;
// if it is an ArcMap Service, is it using a Personal Database?
	// critical for correct sql expression on queries on date fields
	// Syntax for date fields is different for layers from a Personal Database than for other ArcMap Service data sources
var isPersonalDatabase = false;

//variables for MapDrawing
	// North Arrow
var drawNorthArrow = true;
var NorthArrowType = "4";
var NorthArrowSize = "15";
var NorthArrowCoords = "35 50";
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 ScaleBarBackground = "True";
var ScaleBarBackColor = "255,255,0";
var ScaleBarFontColor = "255,255,0";
//var ScaleBarColor = "128,128,128";
var ScaleBarColor = "255,255,0";
var ScaleBarFont = "";
var ScaleBarFontStyle = "Bold";
var ScaleBarRound = "1";
var ScaleBarFontSize = "10";
var ScaleBarWidth = "5";
var ScaleBarPrecision = 2;
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 = "";
var CopyrightStyle = "Regular";
var CopyrightSize = "8";
var CopyrightCoords = "25 20";
var CopyrightColor = "0,0,0";
var CopyrightBackground = "True";
var CopyrightBGColor = "255,255,255";
var CopyrightGlow = "False";
var CopyrightGlowColor = "255,255,255";
var CopyrightShadow = "False";
var CopyrightShadowColor = "32,32,32";
var CurrentYear = new Date().getFullYear();
var CopyrightText = "Map created with ArcIMS - Copyright (C) 1992-" +  CurrentYear + " ESRI Inc.";

	// 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) || (navigator.appVersion.indexOf("MSIE 6")>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 = "#ff0000";

// index of initial active layer. . . if more than or equal to layer count top layer used
var ActiveLayerIndex=51;

// variables for using individual components
var useTextFrame=false;
// use external window for dialogs
var useExternalWindow=true;

// colors for tables 
var textFrameBackColor="1da86f";
var tableBackColor="White";
var textFrameTextColor="Black";
var textFrameLinkColor="Blue";
var textFrameFormColor="Silver";

// 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 = true;

// 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=false;
// layers that will be listed in the LayerList or Legend
	// Note: This does not affect map display
var noListLayer = new Array();
// noListLayer[0] = false;
// noListLayer[1] = false;
// noListLayer[2] = false;
// noListLayer[3] = true;	// this one will not be listed
// noListLayer[4] = false;

	// 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=12;
// color of selected features in decimal RGB format
var selectColor="255,255,0";
// color of highlighted feature in decimal RGB format
var highlightColor="255,0,0";
// level of transparency of selected and highlighted color
var transparentLevel = "0.5";
	// zoom to selected feature if only one is returned?
var zoomToSingleSelect = true;
	// use only unique values in sample field value lists
var onlyUniqueSamples = true;
	// are string queries case insensitive?
		// false by default to match Java Viewer and ArcExplorer
var queryCaseInsensitive=false;

// 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=false
// 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[0]="NAME COUNTRY POPULATION #ID# #SHAPE#";
selFieldList[1]="URL #ID# #SHAPE#";
selFieldList[2]="#ALL#";
selFieldList[3]="#ALL#";
selFieldList[4]="#ALL#";
selFieldList[5]="NAME CONTINENT #ID# #SHAPE#";
selFieldList[6]="#ALL#";

// 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[0]="";
fieldAliasList[1]="";
fieldAliasList[2]="VANTAGE_PT:VIEW";
fieldAliasList[3]="LABEL_ID:ID";
fieldAliasList[4]="";
fieldAliasList[5]="STREET_ADD:ADDRESS|PARENT_ORG:ORGANIZATION";
fieldAliasList[6]="";
fieldAliasList[7]="RESNAME:NAME|OTHRNAME1:OTHER NAME|SIGYEARS:YEARS|LABEL:ID";
fieldAliasList[8]="LABEL_ID:ID|FEATURE:COMMENTS";
fieldAliasList[9]="NAME1:NAME";
fieldAliasList[10]="";
fieldAliasList[11]="";
fieldAliasList[12]="GROWNLOCAL:LOCALLY GROWN|HOURS_OPEN:HOURS";
fieldAliasList[13]="_NAME:NAME|ADDL_INFO_:COMMENTS";
fieldAliasList[14]="LABEL_ID:ID|LOCATION:LOCATION|WEBSITE:WEBSITE";
fieldAliasList[15]="NAME:NAME";
fieldAliasList[16]="";
fieldAliasList[17]="";
fieldAliasList[18]="ADDITIONAL:COMMENTS";
fieldAliasList[19]="";
fieldAliasList[20]="";
fieldAliasList[21]="RESNAME:NAME|OTHRNAME1:OTHER NAME|LABEL:ID";
fieldAliasList[22]="STREET:ADDRESS";
fieldAliasList[23]="LABEL_ID:ID";
fieldAliasList[24]="SYSYTEM:SYSTEM";
fieldAliasList[25]="HOURS_OF_O:HOURS";
fieldAliasList[26]="";
fieldAliasList[27]="";
fieldAliasList[28]="LOCATION:ADDRESS";
fieldAliasList[29]="NAME:NAME|ADDRESS:ADDRESS|CITY:CITY|STATE:STATE|ACRES:ACRES|SHELTERHOU:SHELTER HOUSE|PLAYGROUND:PLAYGROUND|BASKETBALL:BASKETBALL COURT|BASEBALL_F:BASEBALL FIELD|OPEN_SHELT:OPEN SHELTER|POND_LAKE:POND OR LAKE|WALKWAY:WALKWAY|WOODS_WILD:WOODS|RIVER_CREE:RIVER OR CREEK|COMMENTS:COMMENTS|ID:ID|AMPHITHEAT:AMPHITHEATRE|ARCHERY:ARCHERY|BENCHES:BENCHES|BIKE_PATH:MULTIPURPOSE TRAIL|CANOEING:CANOEING|CONCESSION:CONCESSION|DRINKING_W:WATER FOUNTAIN|FISHING:FISHING|FITNESS_PA:FITNESS PATH|FOOTBALL:FOOTBALL|GAZEBO:GAZEBO|GRILLS:GRILLS|GOLF:GOLF|HISTORICAL:HISTORICAL|HORSESHOES:HORSESHOES|ICE_SKATIN:ICE SKATING|INLINE_HOC:INLINE HOCKEY|OPEN_MEADO:MEADOW|PARKING:PARKING|PADDLEBOAT:PADDLE BOAT|PICNIC_ARE:PICNIC AREA|WATER_FEAT:WATER FEATURE|RESTROOMS:RESTROOMS|SHUFFLEBOA:SHUFFLE BOARD|SKATEPARK:SKATE PARK|SLEDDING:SLEDDING|SOCCER:SOCCER FIELD|SOFTBALL:SOFTBALL FIELD|SWIMMING:SWIMMING|TENNIS:TENNIS COURT|UNDEVELOPE:UNDEVELOPED|WADING_BEA:BEACH|CONTACT:PHONE";
fieldAliasList[30]="";
fieldAliasList[31]="";
fieldAliasList[32]="";
fieldAliasList[33]="SITE:NAME";
fieldAliasList[34]="SPECLOC:LOCATION|GENERALLOC:LOCATION CONTINUED|ADDITIONAL:COMMENTS";
fieldAliasList[35]="";
fieldAliasList[36]="";
fieldAliasList[37]="RESNAME:NAME|OTHRNAME1:OTHER NAME|LABEL:ID|SIGYEARS:YEARS";
fieldAliasList[38]="SITE_NAME:SITE";
fieldAliasList[39]="";
fieldAliasList[40]="";
fieldAliasList[41]="";
fieldAliasList[42]="LOCATION:ADDRESS|NAME:NAME|CONTACT:PHONE";
fieldAliasList[43]="";
fieldAliasList[44]="CORE_NAM_1:NAME|LABEL:ID";
fieldAliasList[45]="LABEL_ID:ID";
fieldAliasList[46]="";
fieldAliasList[47]="WEBSITE:EMAIL";
fieldAliasList[48]="";
fieldAliasList[49]="";
fieldAliasList[50]="C:COMMENTS|BIKEWAY_NAME:NAME";
fieldAliasList[51]="";
fieldAliasList[52]="";
fieldAliasList[53]="";
fieldAliasList[54]="";
fieldAliasList[55]="";
fieldAliasList[56]="";
fieldAliasList[57]="";
fieldAliasList[58]="";
fieldAliasList[59]="";
fieldAliasList[60]="";

// 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] = "Image";
hyperLinkFields[0] = "HOT";
hyperLinkPrefix[0] = "/gisdata/world/images/";
hyperLinkSuffix[0] = ".jpg";
*/

// will the returned data be displayed in text frame?
var showSelectedData=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
var legWidth=170;
var legHeight=300;
var legFont="Arial";
var legTitle="Legend";

/**************************************
* 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=2;
// minimal acceptable geocode score for candidate
var minGeocodeScore=25;
var geocodePointColor = "255,0,0";
var geocodePointSize = "15";
var geocodeLabelSize = "12";
var geocodePointType = "star";
var currentGeocodePointIndex = 0;

// custom functions needed for Reverse Geocoding - RouteServer extension required
var useReverseGeocode = false;
var useRoute=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=false;
	}
	if (!aimsSelectPresent) {
		aimsQueryPresent=false;
		aimsBufferPresent=false;
 		useSelect=false;
		useQuery=false;
		useFind=false;
		useBuffer=false;
		useStoredQuery=false;
		useClearSelect=false;
	}
	if (!aimsIdentifyPresent) {
		aimsSelectPresent=false;
		aimsQueryPresent=false;
		aimsBufferPresent=false;
		canQuery=false;
		useIdentify=false;
 		useSelect=false;
		useQuery=false;
		useFind=false;
		useBuffer=false;
		useStoredQuery=false;
		useHyperLink=false;
		useHyperLinkAny=false;
		useIdentifyAll=false;
	}
	if (!aimsGeocodePresent) {
		useGeocode=false;
		useReverseGeocode=false;
	}
	if (!aimsPrintPresent) {
		usePrint=false;
	}
	if (!aimsOptionsPresent) {
		allowOptions=false;
	}
	if ((aimsXMLPresent) && (aimsMapPresent)) {
		//****************************************************************
		// Alrtered by sw on 7/19/2006 for changing default tool on startup
		//****************************************************************
		//if (aimsClickPresent) clickFunction("zoomin");
		if (aimsClickPresent) clickFunction("identify");
		//****************************************************************
		
		if (parent.ToolFrame!=null) parent.ToolFrame.document.location="toolbar.htm";
		startMap();
	} else {
		alert(msgList[0]);
	}
}


