// ArcIMSparam.js
// javascript file with parameters specific to calling page

//***************************************************************************
//*			parameters File for HTML Template		    *
//***************************************************************************
// get machine name
var hostName = document.location.host.toLowerCase();
// 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			                     *
//*********************************************************************
if ((hostName == 'gis.leepa.org') || 
	(hostName == 'gis.property-appraiser.lee.fl.us') ||
	(hostName == 'ims-test.leepa.org') ||
	(hostName == 'dev-ims.leepa.org') ||
	(hostName == 'gis2.leepa.org'))
{
    var imsURL = 'http://' + hostName + '/servlet/com.esri.esrimap.Esrimap?ServiceName=msLeePAInternet';
    var imsOVURL =  'http://' + hostName + '/servlet/com.esri.esrimap.Esrimap?ServiceName=msLeePAInternet';
    var WebURL =  'www.leepa.org';
    var ecwServer = "aerial.leepa.org";
}
else
{
    var imsURL = 'http://' + hostName + '/servlet/com.esri.esrimap.Esrimap?ServiceName=msLeePAIntranet';
    var imsOVURL =  'http://' + hostName + '/servlet/com.esri.esrimap.Esrimap?ServiceName=msLeePAIntranet';
    var WebURL =  'www.pa.lee.fl.us';
	var ecwServer = "aerial.pa.lee.fl.us";
} 

var imsQueryURL = '';
var imsGeocodeURL = '';

//***************************************************************************
//*			parameters adding ECW layer		    11-7-07						*
//***************************************************************************
// parameters for adding ECW layer
var bEcwOff = false;
var arEcwImage = new Array(10);
 arEcwImage[9] = "/IwsImages/2009P/aerialphoto.ecw";
 arEcwImage[8] = "/IwsImages/2008P/aerialphoto.ecw";
 arEcwImage[7] = "/IwsImages/2007F/Aerial2007fall.ecw";
 arEcwImage[6] = "/IwsImages/2007/Aerial2007.ecw";
 arEcwImage[5] = "/IwsImages/2006/fullcounty2.ecw";
 arEcwImage[4] = "/IwsImages/2005/EarthData2005Aerial.ecw";
 arEcwImage[3] = "/IwsImages/2002/EarthData2002Aerial.ecw";
 arEcwImage[2] = "/IwsImages/2001/WholeCounty.ecw";
 arEcwImage[1] = "/IwsImages/1998/EDataCompress092403.ecw";
 arEcwImage[0] = "";

var arEcwLayer = new Array(10);
 arEcwLayer[9] = "j2009 1st Qrtr";
 arEcwLayer[8] = "j2008 1st Qrtr";
 arEcwLayer[7] = "j2007 4th Qrtr";
 arEcwLayer[6] = "j2007 1st Qrtr";
 arEcwLayer[5] = "j2006";
 arEcwLayer[4] = "j2005";
 arEcwLayer[3] = "j2002";
 arEcwLayer[2] = "j2001";
 arEcwLayer[1] = "j1998";
 arEcwLayer[0] = "jAerial Off";

var iEcwLayerCurrent = 0;

// xu ============ customize var ---parcel sales application----9-17-01
var folioList;
var arJsLandTypeFolio = new Array(10);
var arJsYearFolio = new Array(3);
var arSaleYear = new Array(3);
var arLandColor = new Array(10);
var arYearFillStyle = new Array(3);
var sLandTransparency;
var x1,y1,x2,y2, iSaleYearCount;
	sLandTransparency = 0.3;
	arLandColor[0] = "191,255,200";
	arLandColor[1] = "189,183,107";
	arLandColor[2] = "216,244,254";
	arLandColor[3] = "255,204,255";
	arLandColor[4] = "0,192,255";
	arLandColor[5] = "145,228,228";
	arLandColor[6] = "0,255,0";
	arLandColor[7] = "211,211,211";
	arLandColor[8] = "255,255,120";
	arLandColor[9] = "255,153,102";

	arYearFillStyle[1] = "fDiagonal";
	arYearFillStyle[2] = "Horizontal";
	arYearFillStyle[3] = "Vertical";
	
var arLandTypeName = new Array(10);
	arLandTypeName[0] = "Dry";
	arLandTypeName[1] = "Canal";
	arLandTypeName[2] = "Bay";
	arLandTypeName[3] = "Lake";
	arLandTypeName[4] = "Gulf";
	arLandTypeName[5] = "River";
	arLandTypeName[6] = "Golf";
	arLandTypeName[7] = "Creek";
	arLandTypeName[8] = "Unique";
	arLandTypeName[9] = "Unpaved";
	
//*********************************************************************
//*			Group layers				Xu 3/20/2002				*
//*********************************************************************
//group layers (for one set only ----Xu 3/20/2002 --- more than one set)
//list the layers to group together, each being
//a list in the array. groupName is the name to give
//the group the TOC.
//-----Add Channel Depth group layer-------Xu 11/14/2003
//-----Add Planned Developments group layer-------Xu 3/24/2004
//-----Add Water Franchise group layer-------Xu 1/25/2005
//-----Add Wastewater Franchise group layer-------Xu 2/4/2005
//-----Add CondoBuilding to parcels group layer-------Xu 6/1/2006

var groupLayerTotal = 10;
var groupVisible = new Array(groupLayerTotal);

	groupVisible[0] = true;
	groupVisible[1] = true;
	groupVisible[2] = false;
	groupVisible[3] = false;
	groupVisible[4] = false;
	groupVisible[5] = false;
	groupVisible[6] = false;
	groupVisible[7] = false;
	groupVisible[8] = false;
	groupVisible[9] = false;

var groupLayerNumber = new Array(groupLayerTotal);

	groupLayerNumber[0] = -10;
	groupLayerNumber[1] = -11;
	groupLayerNumber[2] = -12;
	groupLayerNumber[3] = -13;
	groupLayerNumber[4] = -14;
	groupLayerNumber[5] = -15;
	groupLayerNumber[6] = -16;
	groupLayerNumber[7] = -17;
	groupLayerNumber[8] = -18;
	groupLayerNumber[9] = -19;
	
var groupName = new Array(groupLayerTotal)

	groupName[0] = "Parcel Labels";
	groupName[1] = "Parcel Lines";
	groupName[2] = "Dimensions";
	groupName[3] = "Lot Lines";
	groupName[4] = "Development Orders";
	groupName[5] = "Channel Depth";
	groupName[6] = "Planned Developments";
	groupName[7] = "Easements";
	groupName[8] = "Water Franchise";
	groupName[9] = "Wastewater Franchise";

var groupNumLayers = new Array(groupLayerTotal);
	
	groupNumLayers[0] = 2;
	groupNumLayers[1] = 2;
	groupNumLayers[2] = 2;
	groupNumLayers[3] = 2;
	groupNumLayers[4] = 3;
	groupNumLayers[5] = 2;
	groupNumLayers[6] = 2;
	groupNumLayers[7] = 2;
	groupNumLayers[8] = 2;
	groupNumLayers[9] = 2;
	
var groupLayers = new Array(groupLayerTotal);
	
	for (i=0; i <groupLayerTotal; i++)
		groupLayers[i] = new Array(2);

	groupLayers[0] = new Array(groupNumLayers[0]);
	groupLayers[0][0] = "Lot";
	groupLayers[0][1] = "Block";
	groupLayers[0][2] = "Condo Lot";
	groupLayers[0][3] = "Condo Block";

	groupLayers[1] = new Array(groupNumLayers[1]);
	groupLayers[1][0] = "Parcels";
	groupLayers[1][1] = "Parcel Hooks";
	groupLayers[1][2] = "Condo Building";

	groupLayers[2] = new Array(groupNumLayers[2]);
	groupLayers[2][0] = "Acreages";
	groupLayers[2][1] = "Dimensions";

	groupLayers[3] = new Array(groupNumLayers[3]);
	groupLayers[3][0] = "Lot Lines";
	groupLayers[3][1] = "Lot Labels";

	groupLayers[4] = new Array(groupNumLayers[4]);
	groupLayers[4][0] = "Development Orders Year";
	groupLayers[4][1] = "Development Orders Project";
	groupLayers[4][2] = "Development Orders Type";
	
	groupLayers[5] = new Array(groupNumLayers[5]);
	groupLayers[5][0] = "Channel Depth";
	groupLayers[5][1] = "Channel Depth ACOE";
	
	groupLayers[6] = new Array(groupNumLayers[6]);
	groupLayers[6][0] = "Planned Developments Status";
	groupLayers[6][1] = "Planned Developments";
	
	groupLayers[7] = new Array(groupNumLayers[7]);
	groupLayers[7][0] = "EasementsPoly";
	groupLayers[7][1] = "Easements";

	groupLayers[8] = new Array(groupNumLayers[8]);
	groupLayers[8][0] = "Water Franchise";
	groupLayers[8][1] = "Water Franchise Phone";

	groupLayers[9] = new Array(groupNumLayers[9]);
	groupLayers[9][0] = "Wastewater Franchise";
	groupLayers[9][1] = "Wastewater Franchise Phone";
	
//*********************************************************************
//*			Group (Category) Features			Xu 9/16/2002		  *
//*********************************************************************
var groupFeatureTotal = 10;
var groupFeatures = new Array(groupFeatureTotal);
var abGroupOpen = new Array(groupFeatureTotal);

	for (i=0; i < groupFeatureTotal; i++)
	{
		groupFeatures[i] = new Array(2);
		abGroupOpen[i] = false;
	}
		
	groupFeatures[0][0] = "a"
	groupFeatures[1][0] = "b"
	groupFeatures[2][0] = "c"
	groupFeatures[3][0] = "d"
	groupFeatures[4][0] = "e"
	groupFeatures[5][0] = "f"
	groupFeatures[6][0] = "g"
	groupFeatures[7][0] = "h"
	groupFeatures[8][0] = "i"
	groupFeatures[9][0] = "j"
	
	groupFeatures[0][1] = "Parcels / Land Records"
	groupFeatures[1][1] = "Infrastructure / Base Mapping"
	groupFeatures[2][1] = "Zoning / Development Orders"
	groupFeatures[3][1] = "District Boundaries"
	groupFeatures[4][1] = "Planning Districts"
	groupFeatures[5][1] = "Jurisdictional Boundaries / Political"
	groupFeatures[6][1] = "Public Safety"
	groupFeatures[7][1] = "Natural Resources / Environmental"
	groupFeatures[8][1] = "Utilities"
	groupFeatures[9][1] = "Imagery"

//*********************************************************************
//*			Layer Title				Xu 3/21/2002					  *
//*********************************************************************
var layerTitleTotal = 5;
var layerTitleCommOn,LayerTitleOn,LayerTitleCurrent;
var layerTitleComm = "Comm. Districts";
var layerTitleCommName = "Lee County Commissioner Districts";
var layerTitle  = new Array(layerTitleTotal);
	layerTitle[0] = "Nexrad Grid";
	layerTitle[1] = "FIRM";
	layerTitle[2] = "Fire Districts";
	layerTitle[3] = "Land Use 2010";
	layerTitle[4] = "Wind Speed Zones";
var layerTitleName  = new Array(layerTitleTotal);
	layerTitleName[0] = "Lee County Nexrad Grid";
	layerTitleName[1] = "Lee County FIRM";
	layerTitleName[2] = "Lee County Fire Districts";
	layerTitleName[3] = "Lee County Land Use 2010";
	layerTitleName[4] = "Lee County Wind Speed Zones";

//
// To save TOC's group number when opening and closing groups
//

var iLastGroupNumber = -1;

//*********************************************************************
//*			Current year for copyright				Xu 6/21/2002	  *
//*********************************************************************	
	var currentTime = new Date();
	var currentYear = currentTime.getFullYear();
	
//*********************************************************************
//*			Constant variables for layer names		Xu 8/14/2002	  *
//*********************************************************************	
	var PARCELLAYERNAME = "WEB.PA.PARCELS";
	var ZONINGLAYERNAME = "WEB.LC.ZONING";
	var PLANNEDDEVLAYERNAME = "WEB.LC.PLANNEDDEVELOPMENTS";
	var HISTORICDISTRICTSLOCAL = "WEB.LC.HISTORICDISTRICTS.YEARLISTED_LOCAL";
	var HISTORICDISTRICTSNATIONAL = "WEB.LC.HISTORICDISTRICTS.YEARLISTED_NATIONAL";
	var CONDOBUILDINGLAYERNAME = "WEB.PA.CONDOBUILDING";
	var FIRMPANELSEFFDATE = "WEB.LC.FIRMPANELS.EFF_DATE";

//*********************************************************************
//*			Condo Layers		Xu 5/19/2006						  *
//*********************************************************************	
	var CONDOBUILDING = "Condo Building";
	
//*********************************************************************
//*********************************************************************	


var mapBackColor = '0,0,0';
var ovBoxColor = '#ff0000';
var ovBoxSize = 3;
var zoomBoxColor = '#ff0000';

// variables for using individual components

var hasOVMap = true;
var hasTOC = true;
var useModeFrame = true;

//initial map extent
var startLeft = 0;
var startRight = 0;
var startTop = 0;
var startBottom = 0;
//maximum map extent
var limitLeft = 0;
var limitRight = 0;
var limitTop = 0;
var limitBottom = 0;

var usePan=true;
var usePanNorth=true;
var usePanWest=true;
var usePanEast=true;
var usePanSouth=true;
var useZoomIn=true;
var useZoomOut=true;
var useFullExtent=true;
var useZoomActive=false;
var useZoomLast=true;
var useIdentify=true;
var useMeasure=true;
var useMeasureArea=true;
var useSetUnits=false;
var useSelect=false;
var useQuery=false;
var useFind=false;
var useGeocode=false;
var useStoredQuery=false;
var useClearSelect=true;
var usePrint=true;
var useGeoNetwork=false;
var useBuffer=false;
var useExtract=false;

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

// 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;
var selectMargin = 200/100;	//xu---------7/13/01----
// 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;

//variables for MapDrawing
	// North Arrow
var drawNorthArrow = true;
var NorthArrowType = "4";
var NorthArrowSize = "15";
var NorthArrowCoords = "20 30";
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 = "0,0,0";
var ScaleBarFontColor = "255,255,255";
var ScaleBarColor = "192,192,192";
var ScaleBarFont = "Arial";
var ScaleBarStyle = "Bold";
var ScaleBarRound = "1";
var ScaleBarSize = "14";
var ScaleBarWidth = "7";
var ScaleBarPrecision = 2;
var numDecimals = ScaleBarPrecision;
	// Copyright blurb
var drawCopyright = false;
var CopyrightFont = "Arial";
var CopyrightStyle = "Bold";
var CopyrightSize = "8";
var CopyrightCoords = "4 4";
var CopyrightColor = "0,0,0";
var CopyrightBackground = "False";
var CopyrightBGColor = "255,255,255";
var CopyrightGlow = "True";
var CopyrightGlowColor = "255,255,255";
var CopyrightText = "© " + currentYear + " Lee County Property Appraiser";
	// 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
// Change to true for ecw layer
var mapTransparent = true;

// 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 = "#ff0000";

// index of initial active layer. . . if more than or equal to layer count top layer used
var ActiveLayerIndex=99;

// variables for using individual components
var useTextFrame=true;
// use external window for dialogs
var useExternalWindow=false;

// colors for tables 
var textFrameBackColor="White";
var tableBackColor="White";
var textFrameTextColor="Black";
var textFrameLinkColor="Blue";
var textFrameFormColor="Gray";

// LayerList visible at service load
var showTOC=true;
//var showTOC=false;	// --- Force to hide layer list and show legend -- Xu 9/13/02

// 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=2;
// color of selected features in decimal RGB format
//var selectColor="255,255,0";
var selectColor="255,200,50";
// color of highlighted feature in decimal RGB format
var highlightColor="255,0,0";
// level of transparency of selected and highlighted color
var transparentLevel = "1";
	// zoom to selected feature if only one is returned?
var zoomToSingleSelect = true;
var zoomToMultipleStrap = false;
var highlightStraps = 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]="#ALL#";
selFieldList[1]="#ALL#";
selFieldList[2]="#ALL#";
selFieldList[3]="#ALL#";
selFieldList[4]="#ALL#";
selFieldList[5]="#ALL#";
selFieldList[6]="#ALL#";
selFieldList[7]="#ALL#";
selFieldList[8]="#ALL#";
selFieldList[9]="#ALL#";
selFieldList[10]="#ALL#";
selFieldList[11]="#ALL#";
selFieldList[12]="#ALL#";
selFieldList[13]="#ALL#";
selFieldList[14]="#ALL#";
selFieldList[15]="#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=false;
// 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]="";
fieldAliasList[3]="";
fieldAliasList[4]="SDE.WEB.ZONING.AREA:Area|SDE.WEB.LC.ZONING:Zoning";
fieldAliasList[5]="SDE.WEB.PARCELS.STRAP:STRAP";
fieldAliasList[6]="";
fieldAliasList[7]="";
fieldAliasList[8]="";
fieldAliasList[9]="";
fieldAliasList[10]="";
fieldAliasList[11]="";
fieldAliasList[12]="";
fieldAliasList[13]="";
fieldAliasList[14]="";
fieldAliasList[15]="";
//Hide the ID and shape fields on query?
hideIDFieldData=true;
hideShapeFieldData=true;



// Hide the ID field display? The ID Field must be included in field list, but we don't have to show it.
var hideIDFieldData = false;
// Hide the shape field display? The Shape Field must be included in field list, but we don't have to show it.
var hideShapeFieldData = false;


// 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;

// maximum number of features returned from parcel query --------- Xu 6/24/04
var maxParcelFeaturesReturned = 5000;

// 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=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;
	//debugOn = 3;  	// debug on
	if (parent.TextFrame==null) {
		useTextFrame = false;
		useExternalWindow=true;
	}
	if (!hasLayer("measureBox")) useMeasure=false;
	//if (!hasLayer("measureAreaBox")) useMeasureArea=false;
	if ((!useMeasure) && (!drawScaleBar)) useSetUnits=false;
	if ((!useMeasureArea) && (!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 = ovImageVar.width;
		i2Height = 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;
		useMeasureArea=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)) {
		if (aimsClickPresent) clickFunction("zoomin");
		//if (parent.ToolFrame!=null) 
		//{
		//	parent.ToolFrame.document.location= "toolbar.htm";
		//}
		startMap();
	} else {
		alert("Unable to load one of the following Javascript Libraries:\naimsCommon.js\naimsXML.js\naimsMap.js");
	}
}


