//============================
// JavaScript custom settings.
//============================
// Title and home page
var WebsiteTitle = "Greenville County, South Carolina";
var HomePage = "http://www.gcgis.org";
var MetadataDir = "http://www.gcgis.org/docs/metadata";

// Parcel layer id from AXL file
var ParcelLayerId = "25";

// Toggle icons, map refresh
var ToggleTools = false;
var AutoRefresh = false;

// Max allowed number select
var MaxSelectedFeatures = 2000
var MaxBufferFeatures = 500

// Pan-Zoom scale factor
var ZoomFactor = 3;
var PanFactor = 0.5;

// Number of decimals to show in xy coordinate readout in status bar
var NumXYDecimals = 2;

// Search tolerance in pixels (radius)
var SearchTolerance = 8;

// Default circle radius
var CircleRadius = 1000;

// From ArcMap->Properties->Source 
var CentralMeridianEasting = 2000000;   //False easting of central meridian, map units
var FalseNorthing = 0.0;         //False northing, map units
var CentralMeridian = -81.0;     //central meridian
var Lat1stParallel = 32.5;  	   //latitude of first standard parallel (Small#)
var Lat2ndParallel = 34.833333333333343;  //latitude of second standard parallel
var LatOrigin = 31.833333333333329;  	   //latitude of origin

// Misc.
var MapUnits = "Feet";
var ScreenDPI = 96;
var CoordFeet = false; // Toggle for feet or lat/lon readout
var LockTimeout = 10;  // Unlock website time

// Pop-up disclaimer.
var Disclaimer = "";
Disclaimer += "Disclaimer:  The Greenville County Sheriff’s Office provides public access to crime information for GCSO's jurisdiction only.  The mapping database contains data from 2005 to present. ";
Disclaimer += "This crime data is preliminary information reported to the Greenville County Sheriff’s Office by the public. ";
Disclaimer += "There is always the possibility of mechanical or human error.  Future investigation and analysis may change crime classification and other information. ";
Disclaimer += "Accurate statistical crime information ";
Disclaimer += "for comparison over periods of time can be obtained by request only to the Sheriff’s Office GIS/Crime Analysis Unit.\n\n ";
Disclaimer += "The Greenville County Sheriff’s Office makes no guarantee, expressed or implied, about the accuracy, completeness, timeliness, ";
Disclaimer += "or correct sequencing of the information.  The Greenville County Sheriff’s Office is not responsible for any error or omission, ";
Disclaimer += "the use of, or the results obtained from the use of this information.  All crimes represented on these maps are approximate. ";
Disclaimer += "The mapping of crime data is provided to the public strictly as a courtesy and not as an obligation to its readers. ";
//Disclaimer += "This site allows you to view crime data by choosing basic crime types in proximity to an address, intersection, or other geographic ";
//Disclaimer += "point of interest.\n\n";
//Disclaimer += "The points on the map are visualizations utilizing ArcMap and ArcIms.
Disclaimer += "The data provided represents approximate locations and no exact address information will be given, due to respect and concerns for ";
Disclaimer += "victims.  Any attempt to modify any information on this site is strictly prohibited. The data ";
Disclaimer += "included within this site does not reflect all crimes reported for NIBRS, SCIBRS or UCR purposes.\n\n"; 
Disclaimer += "Any use of the information for commercial purposes is strictly prohibited. I understand that the information on this site is for ";
Disclaimer += "informational purposes only. I understand that multiple incidents at a location and incidents that may not geocode will affect ";
Disclaimer += "the number of incidents portrayed on the map. Spatial representation or Crime Concentration Maps will give a better indication ";
Disclaimer += "of the density of crimes within a specific square mile area.\n\n";
//Disclaimer += "By clicking on the "OK" box, I attest that I have read, understand and will abide by the provisions stated above.\n\n";
Disclaimer += "Sheriff Steve Loftis believes that the more citizens are informed about crime in their neighborhoods, the more effective we can be ";
Disclaimer += "in protecting our communities.";
     
// Colors.
var MenuBackgroundColor = "#c6c6c6";
var MenuBorderColor = "Gray";

var PullDownBackgroundColor = "rgb(252,252,249)";
var PullDownBorderColor = "Gray";

var HoverBackgroundColor = "rgb(203,220,248)";
var HoverBorderColor = "#0066FF";

var HighlightBackgroundColor = "rgb(255,255,220)";
var HighlightBorderColor = "Red";

var DataFrameBackgroundColor = "fafafa";
var MouseOutWhite = "#fafafa";
var MouseOutGray = "#99ccff";
var MouseOutGreen = "#c6c6c6";
var DisableGray = "silver";

// Programming constants
var MainMenuHeight = 57;      //Total height of pulldown and toolbar menus
