/*
 * configuration variables for viewer. generally do not change between viewer instances
 * 
 * values do not change during the execution of the program. It is safe to
 * reload this file w/ every page
 */

var config = new Array();
//filesystem path separator - / for unix; \ for Windows
config.ps = '/'
config.viewerTitle = "Thermal Springs of the United States";

//logger - possible levels:  TRACE, DEBUG, INFO, WARN, ERROR, FATAL
config.logLevel = 'ERROR';

/*
 * tool configuration - primarily used in toolbar.htm
 */
config.useStatusTool = true;
config.statusPage = "basicStatus.htm";

//controls the debugging console 
config.useConsole=false;

//controls the "Show Legend" button on the table of contents
config.useGraphicLegend=true;

config.useExternalWindowTool=false;

// allowing user to set options
config.allowOptions=false;

//href for help tool in bottom.htm
config.getHelpUrl = "http://map.ngdc.noaa.gov/website/shared/arcimshelp.html";

config.MapUnits = "Degrees";
config.ScaleBarUnits = "Miles";

//map background color and transparency are mutually exclusive w/ map transparent
config.mapBackColor = "204,255,255";
config.mapTransparent=false;  //requires mapservice be of gif or png8 types
if (config.mapTransparent) { config.mapBackColor = ""; }


//configuration for overview map
config.ovMapBackColor = "204,255,255";
//config.ovBoxColor = "#ff0000";
config.ovBoxColor = "#ccccdd";
config.ovBoxSize = 3;
config.ovBorderWidth = 2;
config.ovExtentBoxSize = 2;
config.ovHspc = 0;
config.ovVspc = 0;
config.toggleOVVisible = false;

//size of the window opened by the hyperlink tool
config.hyperlinkWindowWidth = 500;
config.hyperlinkWindowHeight = 400;

//size of the window opened by the metadata link (TOC caption click)
config.metaWindowWidth = 800;
config.metaWindowHeight =400; 

// color for Main Map zoombox in html hex RGB format
config.zoomBoxColor = "#ff0000";

// variables for map pixel offset from upper left corner of frame
config.hspc = 0;
config.vspc = 0;

//panning factor for arrow buttons
config.panFactor = 85/100;
//zoom factors for v.3
config.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
config.selectMargin = 25/100;
// margin margin factor for zooming in on selected points - based on full extent. . . margin will be selectPointMargin * fullWidth or fullHeight
config.selectPointMargin = 25/1000;

// show the scale factor
config.showScalePercent=true;
// display coords in bottom.htm
config.showXYs=true;

// Have ArcXML responses URL encoded? Will not work with multi-byte characters
config.doURLencode = false;

// automatically adjust for ArcMapServer, if necessary
	// North Arrow size is smaller from ArcMapServer
config.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
config.isPersonalDatabase = false;

//variables for MapDrawing
	// North Arrow
config.drawNorthArrow = true;
config.NorthArrowType = "4";
config.NorthArrowSize = "15";
config.NorthArrowCoords = "20 35";
config.NorthArrowAngle = "0";
	// Scale Bar
config.drawScaleBar = true;
	// MapUnits=DEGREES,FEET,METERS
	// can MapUnits be changed by user?
config.setMapUnits=false;
	// ScaleBarUnits=KILOMETERS,METERS,MILES,FEET
config.ScaleBarBackground = "false";
config.ScaleBarBackColor = "0,0,0";
config.ScaleBarFontColor = "0,0,0";
config.ScaleBarColor = "128,128,128";
config.ScaleBarFont = "";
config.ScaleBarStyle = "Regular";
config.ScaleBarRound = "1";
config.ScaleBarSize = "9";
config.ScaleBarWidth = "5";
config.ScaleBarPrecision = 2;
config.numDecimals = config.ScaleBarPrecision;
	// Scale Bar 2
config.drawScaleBar2 = false;
config.ScaleBar2Units = "KILOMETERS";
config.ScaleBar2Background = "false";
config.ScaleBar2BackColor = "0,0,0";
config.ScaleBar2FontColor = "0,0,0";
config.ScaleBar2Color = "128,128,128";
config.ScaleBar2Font = "";
config.ScaleBar2Style = "Regular";
config.ScaleBar2Round = "1";
config.ScaleBar2Size = "9";
config.ScaleBar2Width = "5";
config.ScaleBar2Precision = 2;

	// Copyright blurb
config.drawCopyright = true;
config.CopyrightFont = "";
config.CopyrightStyle = "Regular";
config.CopyrightSize = "8";
config.CopyrightCoords = "3 3";
config.CopyrightColor = "0,0,0";
config.CopyrightBackground = "True";
config.CopyrightBGColor = "255,255,255";
config.CopyrightGlow = "False";
config.CopyrightGlowColor = "255,255,255";
config.CopyrightShadow = "False";
config.CopyrightShadowColor = "32,32,32";
config.CopyrightText = "Map Generated by the National Geophysical Data Center";

	// place bar behind Copyright text and scalebars
config.drawBottomBar = false;
config.bottomBarColor = "255,255,255";
config.bottomBarOutline = "0,0,0";
config.bottomBarHeight = "18";



// colors for tables 
config.textFrameBackColor="Silver";
config.tableBackColor="White";
config.textFrameTextColor="Black";
config.textFrameLinkColor="Blue";
config.textFrameFormColor="Gray";

// LayerList visible at service load
config.showTOC=true;

// will the LayerList show all layers, not just those available at current scale
config.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
config.hideLayersFromList=false;

// @deprecated display the layerinfo button on LayerList
config.displayLayerInfoButton = false;

config.modeLayerOn = false;
config.modeLayerColor = "Black";
config.modeLayerShadowColor = "White";
config.modeLayerFont = "Arial";
config.modeLayerSize = "4";

	// does the overview map a layer on top of map?... 
config.ovMapIsLayer=false;

// Click points - Measure/Shape Select/Shape Buffer
config.clickMarkerColor="255,0,0";
config.clickMarkerType="Circle";
config.clickMarkerSize="6";

// search tolerance in pixels around click
config.pixelTolerance=2;
// color of selected features in decimal RGB format
config.selectColor="255,255,0";
// color of highlighted feature in decimal RGB format
config.highlightColor="255,0,0";
// level of transparency of selected and highlighted color
config.transparentLevel = "0.5";
	// zoom to selected feature if only one is returned?
config.zoomToSingleSelect = false;
	// use only unique values in sample field value lists
config.onlyUniqueSamples = true;
	// are string queries case insensitive?
		// false by default to match Java Viewer and ArcExplorer
config.queryCaseInsensitive=false;

// swap out the list of returned fields? 
//If true, a list must be defined in selFieldList[n] for each layer to update selectFields
config.swapSelectFields=false;

// 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
config.useFieldAlias=false;

// Hide the ID field display? The ID Field must be included in field list, but we don't have to show it.
config.hideIDFieldData = false;

// Hide the shape field display? The Shape Field must be included in field list, but we don't have to show it.
config.hideShapeFieldData = false;

// will the returned data be displayed in text frame?
config.showSelectedData=true;

// will the returned features be drawn?
config.showSelectedFeatures=true;

// can features be selected if invisible or not within layer scale threshholds?
config.canSelectInvisible = false;

// maximum number of features returned from query
config.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
config.listAllLayersInIDAll = false;

// number of data samples retrieved for query form
config.numberDataSamples = 50;

// legend map size
config.legWidth=170;
config.legHeight=300;
config.legFont="Arial";
config.legTitle="Legend";
config.legBackgroundColor="192,202,224";


//temporary variables
var hasTOC = true;
var ovBoxColor = "#ff0000";
var hspc = 0;
var vspc = 0;
var hasOVMap = true;
var ovBoxSize = 3;
var ovMapIsLayer = false;
var useTextFrame=true;
