//function debug(aMsg) { setTimeout(function() { throw new Error("[debug] " + aMsg); }, 0); }
function debug(aMsg) {}

var activeLayerIndex    = 16;                    // the default active layer index
var ActiveLayerId 	= "Parcels";         	// the default active layer id
var hostName 		= "localhost"; 
var serviceName 	= "MonroeCoGIWS";
var protocol 		= "tcp"; 		// http or tcp; http is default
var port 		= 5300; 		// used by tcp only
var hasOVMap 		= true;			// Display/hide the overview map.
var ovHostName 		= "localhost";		// If main service is loaded interactively, overview service will use the same parameters
var ovServiceName 	= "MonroeCoGIWSOV";
var ovProtocol 		= "tcp"; 		// http or tcp; http is default
var ovPort 		= 5300; 		// used by tcp only

var hasAnnoService 	= false;

var fadeTransition      = false;

var addScaleBar 	= true;			// Display/Hide scalebar acetate layer
var addNorthArrow 	= true;			// Display/Hide northarrow acetate layer
var addCopyRight 	= false;		// Display/Hide copyright acetate layer
var ADCOnlineHelpURL    = "http://www.mapping-online.com/webguide-usersguide/";  //lvf, used on help page

var toolMode 		= 0; 			// 0=none (default); 1=zoomin; 2=zoomout; 3=pan; 4=identify; 5=select;

var scalebarUnits 	= "feet";		// Unit for the scale bar
var pixelTolerance 	= 5;			// Area around click used in identify. Helps in locating points and lines
var selectParcel        = false;                // if true selectlayer will be parcel2, else will be active layer

/**************************************************
*	ADC variables
***************************************************/
var packageName			= "";
var reloadTOC                   = true;
var searchTabs                  = "11000";
var txtSearchTabs               = "11000";

var ADCIMSTitle1		= "Monroe County, WI";
var ADCIMSTitle2		= "Geographic Information Web Server";
var clientWebPage	 	= "http://www.co.monroe.wi.us/pub/home.php";
var useGroupLegend	 	= true;  // lvf, for dbgt toc
var useSearch 			= true;  // lvf, puts the Search button on the TOCTab
var webMasterEmailAddress	= "webguide@adc4gis.com"; // lvf, webmaster email address on help page
var clientEmail 		= "info@co.monroe.wi.us"; // lvf, webmaster email address on disclaimer page
var ADCOnlineHelpURL		= "http://www.mapping-online.com/webguide-usersguide/";  //lvf, used on help page
var mailHost                    = "172.25.16.96";  // SMTP server name
var mailMapPath                 = "C:/ArcIMS/Output/"; // path to ArcIMS output folder

var bookmark;

var minX = 509720.540292173;  // starting extent coords
var minY = 288255.540292173;
var maxX = 830970.540292173;
var maxY = 470450.540292173;

//var fullMinX =352884.256365835;  // full extent coords
//var fullMinY =190472.540292173;
//var fullMaxX =634557.086656451;
//var fullMaxY =398738.038700535;

var fullMinX = 509720.540292173;  // full extent coords
var fullMinY = 288255.540292173;
var fullMaxX = 830970.540292173;
var fullMaxY = 470450.540292173;

var previousminX = 0;  // starting extent coords
var previousminY = 0;
var previousmaxX = 0;
var previousmaxY = 0;



