//*****************************************************************
//layer-specific information for query/identify/selection
//*****************************************************************
// ************* DO NOT EDIT HERE!!!*******************************
// field name and alias storage arrays for layers in MASTER mapservice
var mapserviceID = new Array();
var SDEPrefix = new Array();
var fieldNameList = new Array();
var fieldAliasList = new Array();
var selectidFieldNameList = new Array();
var fieldTypeList = new Array(); // don't fill, CX fills automatically
var HyperLinkFields = new Array();
var HyperLinkAliases = new Array();
var HyperLinkPrefixes = new Array();
var HyperLinkSuffixes = new Array();
var customQueryFieldNameList = new Array();
var dataAllCaps = new Array();
var mailingOwnerFieldNameList = new Array();
var mailingResidentFieldNameList = new Array();
var reportHeaderFieldNameList = new Array();
var legalInfoList = new Array();
var legalCountList = new Array();  // filled by CX
var combinedFieldInfoList = new Array();
var fieldsWithDescriptions = new Array();
var fieldsWithDescr_links = new Array();
// PDF mailing labels
var mailingOwnerFieldName = new Array();		// field with owner name (for filtering duplicates)
var mailingOwnerFilterStatus = new Array();		// true or false, whether to filter for duplicate owner names
var mailingOwnerLabelLine1 = new Array();
var mailingOwnerLabelLine2 = new Array();
var mailingOwnerLabelLine3 = new Array();
var mailingOwnerLabelLine4 = new Array();
var mailingOwnerLabelLine5 = new Array();
var mailingResidentLabelLine1 = new Array();
var mailingResidentLabelLine2 = new Array();
var mailingResidentLabelLine3 = new Array();
var mailingResidentLabelLine4 = new Array();
var mailingResidentLabelLine5 = new Array();

/* list of all possible
mapserviceID[x] = ""; // the unique ID of the layer in the mapservice (use ArcMap Name if MXD)
SDEPrefix[x] = "";  // data path prefix for SDE field names (specify only for SDE layers)
fieldNameList[x] = new Array();  // actual field names, in order to be displayed (setting field names & aliases makes layer selectable and IDable)
fieldAliasList[x]  = new Array();  // corresponding field aliases, in same order as field names
selectidFieldNameList[x] = new Array(); // fields to show on select/id (use to show abbreviated list, but have longer field list for reports)
HyperLinkFields[x] = new Array();  // field to be used for hyperlink
HyperLinkAliases[x] = new Array();  // aliases for hyperlink fields (value of "use field value" will make the field display be the field value, not an alias)
HyperLinkPrefixes[x] = new Array();  // prefix (if any) to place before field value to make hyperlink url
HyperLinkSuffixes[x] = new Array();  // suffix (if any) to place after field value to make hyperlink url
customQueryFieldNameList[x] = new Array();  // field names available in custom query dialog (setting field names makes layer Queryable in custom dialog on specified fields; field names listed must also be included in field name and alias lists for ID; only works for string, numeric or date fields, not boolean or shape!)
dataAllCaps[x] = true/false;  // if true will push all user entered search strings to upper case automatically for that layer (default is false)
mailingInfoFieldNameList[x] = new Array();  // field names to be shown for mailing info display, in order to be displayed
reportHeaderFieldNameList[x] = new Array();  // field names to be used as headers on printable reports
combinedFieldInfoList[x] = new Array();  // fields to be combined as one display item; contains in order, {"Display Alias","field1","field2","field3"....}
legalInfoList[x] = new Array();  // 2 part array, contains in order, {"FIELD NAME PREFIX","Alias"}
fieldsWithDescriptions[x] = new Array();  // array of field names to have web links; These fields must exist in the Name/Alias lists!
fieldsWithDescr_links[x] = new Array();  //corresponding list of the web links to use for the field names
*/
// ************* EDIT ONLY BELOW HERE!!!*******************************
// parcel query
groupIndexCount = 0;
mapserviceID[groupIndexCount] = "grouped-parcels";
fieldNameList[groupIndexCount] = new Array("GLYEAR","PIN","MAILPIN","AAACRE","HOUSENUM","FULLSTREET","GPUNIT","GPCITY","GPZIP5","GPZIP4","GMTWTWPD","PGNNAME","PGNHOUS","PGNSTRE","PGNSTYP","PGNADD2","PGNADD3","PGNCITY","PGNSTAT","PGNZIP5","PGNZIP4","PGNCTRY","AASCHL","PLSECTN","PLTWNSHP","PLRANGE");
fieldAliasList[groupIndexCount]  = new Array("Year","PIN","PIN","Deeded Acres","Property Address","Street","Unit","City","Zipcode","Zip+4","Township/City Descr.","Primary Taxpayer Name","Primary Taxpayer House Number","Primary Taxpayer Street Name","Primary Taxpayer Street Type","Primary Taxpayer Address line 2","Primary Taxpayer Address line 3","Primary Taxpayer City Name","Primary Taxpayer State Name","Primary Taxpayer Zipcode","Primary Taxpayer Zip+4","Primary Taxpayer Country Name","School District Number","Section Number","Township Number","Range Number");
selectidFieldNameList[groupIndexCount] = new Array("PIN","AAACRE","HOUSENUM","FULLSTREET","GPCITY","PGNNAME");
customQueryFieldNameList[groupIndexCount] = new Array("GLYEAR","PIN","HOUSENUM","FULLSTREET","GPUNIT","GPCITY","GPZIP5","GPZIP4","AAACRE","GMTWTWPD","PGNNAME","PGNHOUS","PGNSTRE","PGNSTYP","PGNADD2","PGNADD3","PGNCITY","PGNSTAT","PGNZIP5","PGNZIP4","PGNCTRY","AASCHL","PLSECTN","PLTWNSHP","PLRANGE");
reportHeaderFieldNameList[groupIndexCount] = new Array("PIN","HOUSENUM","FULLSTREET","GPCITY");
combinedFieldInfoList[groupIndexCount] = new Array("Abbreviated Legal Description",true,"GLDESC01","GLDESC02","GLDESC03","GLDESC04","GLDESC05","GLDESC06","GLDESC07","GLDESC08","GLDESC09","GLDESC10","GLDESC11","GLDESC12","GLDESC13","GLDESC14","GLDESC15","GLDESC16","GLDESC7","GLDESC18","GLDESC19","GLDESC20","GLDESC21","GLDESC22","GLDESC23","GLDESC24","GLDESC25","GLDESC26","GLDESC27","GLDESC28","GLDESC29","GLDESC30");
dataAllCaps[groupIndexCount] = true;
mailingOwnerFieldNameList[groupIndexCount] = new Array("PIN","PGNNAME","PGNHOUS","PGNSTRE","PGNADD2","PGNADD3","PGNCITY","PGNSTAT","PGNZIP5");
//mailingResidentFieldNameList[groupIndexCount] = new Array("PIN","HOUSENUM","FULLSTREET","GPUNIT","GPCITY","GPZIP5");
if (siteName.indexOf("RESTRICTED") != -1) {
	mailingOwnerFieldName[groupIndexCount] = "PGNNAME";
	mailingOwnerFilterStatus[groupIndexCount] = false;
	mailingOwnerLabelLine1[groupIndexCount] = new Array("MAILPIN");
	mailingOwnerLabelLine2[groupIndexCount] = new Array("PGNNAME");
	mailingOwnerLabelLine3[groupIndexCount] = new Array("PGNHOUS","PGNSTRE","PGNSTYP","PGNADD2");
	mailingOwnerLabelLine4[groupIndexCount] = new Array("PGNCITY",", ","PGNSTAT","  ","PGNZIP5");
	mailingOwnerLabelLine5[groupIndexCount] = new Array("PGNCTRY");
}
HyperLinkFields[groupIndexCount] = new Array("PIN");
HyperLinkAliases[groupIndexCount] = new Array("use field value");
HyperLinkPrefixes[groupIndexCount] = new Array("http://www.co.goodhue.mn.us/goodhuecountyrecap/TaxBill.aspx?RollType=R&TaxYear=2010&ParcelNumber=");
HyperLinkSuffixes[groupIndexCount] = new Array("");

// streets
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-roads";
fieldNameList[groupIndexCount] = new Array("L_F_ADD","R_F_ADD","L_T_ADD","R_T_ADD","STREETALL","F_CLASS","SPEED_LIM","ONEWAY");
fieldAliasList[groupIndexCount]  = new Array("From Address, Left","From Address, Right","To Address, Left","To Address, Right","Street Name","Street Class","Speed Limit","One Way");
// water
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-lakes";
fieldNameList[groupIndexCount] = new Array("NAME","AREA","PERIMETER","ACRES");
fieldAliasList[groupIndexCount]  = new Array("Name","Area (sq ft)","Perimeter (feet)","Estimated Acreage");
customQueryFieldNameList[groupIndexCount] = new Array("NAME","ACRES");
// railroad
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-railroad";
fieldNameList[groupIndexCount] = new Array("RRNAME","LENGTH");
fieldAliasList[groupIndexCount]  = new Array("Railroad Name","Length (feet)");
// airports
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-airport";
fieldNameList[groupIndexCount] = new Array("NAME","TYPE");
fieldAliasList[groupIndexCount]  = new Array("Airport Name","Runway Type");
// city/twp halls
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-citytwphalls";
fieldNameList[groupIndexCount] = new Array("NAME","ADDRESS");
fieldAliasList[groupIndexCount]  = new Array("Name","Address");
//customQueryFieldNameList[groupIndexCount] = new Array("NAME","ADDRESS");
// watersheds
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-watershed";
fieldNameList[groupIndexCount] = new Array("MAJNAME","MINNAME","PROVNAME","PEDIGREE","PEDYEAR","AREA");
fieldAliasList[groupIndexCount]  = new Array("Major Wtrshd Name","Minor Wtrshd Name","Province Name","Pedigree","Pedigree Year","Area (sq ft)");
// school dist
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "overlay-schdist";
fieldNameList[groupIndexCount] = new Array("AG_NAME","AG_ADDR","AG_CITY","AG_STATE","AG_ZIP","AG_PHONE","AGMSAREA","AG_TYPEN","AG_LOCAL");
fieldAliasList[groupIndexCount]  = new Array("School District Name","District Office Address","District Office City","District Office State","District Office Zip","District Office Phone","MSA Area","Type","Locality");
// wild and scenic
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-wildscenic";
fieldNameList[groupIndexCount] = new Array("DISTRICT","RIVER");
fieldAliasList[groupIndexCount]  = new Array("District Name","River Name");
// trails
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "optional-trails";
fieldNameList[groupIndexCount] = new Array("TRLNAME","CONDITION");
fieldAliasList[groupIndexCount]  = new Array("Trail Name","Condition");
// sirens
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "optional-sirens";
fieldNameList[groupIndexCount] = new Array("SIRENDESIG","MOUNTINGHE","SIRENTYPE","LATITUDE","LONGITUDE","COUNTYY","COUNTYX");
fieldAliasList[groupIndexCount]  = new Array("Siren Name","Mounting Height","Siren Type","Latitude","Longitude","Northing","Easting");
// tif districts
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "optional-tif";
fieldNameList[groupIndexCount] = new Array("PIN","AATIFD","CITY","SYMBOLOGY");
fieldAliasList[groupIndexCount]  = new Array("Parcel ID Number","TIF District","City","Symbology Class");
// plats      
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-plats";
fieldNameList[groupIndexCount] = new Array("PLATNAME","MUNI","DATEREC","SURVEYOR","PLAT_URL");
fieldAliasList[groupIndexCount]  = new Array("Plat Name","City/Twp Name","Date Recorded","Surveyor","Scanned Plat");
// internal only
// sinkholes
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-shpt";
fieldNameList[groupIndexCount] = new Array("RELATEID","FEAT_LABEL","GEOC_SRC","GEOC_DATE","MGSQUAD_C");
fieldAliasList[groupIndexCount]  = new Array("ID","Label","Source","Source Date","MGS Quad");
// seeps
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-sppt";
fieldNameList[groupIndexCount] = new Array("RELATEID","FEAT_LABEL","GEOC_SRC","GEOC_DATE","MGSQUAD_C");
fieldAliasList[groupIndexCount]  = new Array("ID","Label","Source","Source Date","MGS Quad");
// celltowers
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-celltower";
fieldNameList[groupIndexCount] = new Array("COMPANY","ADDRESS_","HEIGHT_FT","_ELEV_FT","LATITUDE","LONGITUDE");
fieldAliasList[groupIndexCount]  = new Array("Company Name","Address","Celltower Height (feet)","Celltower Elevation (feet)","Latitude","Longitude");
// esn
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-esn";
fieldNameList[groupIndexCount] = new Array("ESN","LOCALITY","LAW","FIRE","AMBULANCE");
fieldAliasList[groupIndexCount]  = new Array("ESN Zone","Locality","Law","Fire","Ambulance");
// structures
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "optional-structures";
fieldNameList[groupIndexCount] = new Array("PIN","TYPE","DAMAGE","STATUS","MUNICIPAL","SHAPE_AREA");
fieldAliasList[groupIndexCount]  = new Array("Parcel ID Number (PIN)","Type","Damage","Status","Municipality","Calculated Area (sq.ft.)");
// plats
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-plats";
fieldNameList[groupIndexCount] = new Array("PLATNAME","MUNI","DATEREC","SURVEYOR","PLAT_URL");
fieldAliasList[groupIndexCount]  = new Array("Plat Name","City/Township","Date Recorded","Surveyor","Scanned Plat");
HyperLinkFields[groupIndexCount] = new Array("PLAT_URL");
HyperLinkAliases[groupIndexCount] = new Array("Click Here");
HyperLinkPrefixes[groupIndexCount] = new Array("");
HyperLinkSuffixes[groupIndexCount] = new Array("");

// fema
// fema floodzone
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-fema-floodzones";
fieldNameList[groupIndexCount] = new Array("FLD_ZONE");
fieldAliasList[groupIndexCount]  = new Array("Flood Zone");
// fema cross sections
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-fema-xs";
fieldNameList[groupIndexCount] = new Array("XS_LTR","V_DATUM","BED_ELEV","STREAM_STN","WTR_NM","WSEL_REG");
fieldAliasList[groupIndexCount]  = new Array("Cross Section Letter","Datum","Stream Bed Elevation","Distance","Water Body Name","Base Flood Elevation");
// fema base flood elevations
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-fema-bfe";
fieldNameList[groupIndexCount] = new Array("ELEV");
fieldAliasList[groupIndexCount]  = new Array("Base Flood Elevation");


// redwing
// redwing polling
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-rwpub-pollingplace";
fieldNameList[groupIndexCount] = new Array("POLL_PLACE","GPSTRE","PRECINCT","WARD");
fieldAliasList[groupIndexCount]  = new Array("Polling Place Name","Street Address","Precinct","Ward");
//customQueryFieldNameList[20] = new Array("POLL_PLACE","GPSTRE","PRECINCT","WARD");
dataAllCaps[groupIndexCount] = true;
// redwing wireless
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-rw-wireless";
fieldNameList[groupIndexCount] = new Array("NAME");
fieldAliasList[groupIndexCount]  = new Array("Wireless Hotspot Location");
// redwing bikepaths
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-rwpub-bikepath";
fieldNameList[groupIndexCount] = new Array("NAME");
fieldAliasList[groupIndexCount]  = new Array("Bike Path Name");
// redwing historic districts
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-rwpub-historicdistrict";
fieldNameList[groupIndexCount] = new Array("NAME");
fieldAliasList[groupIndexCount]  = new Array("Historic District Name");
// redwing parks
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-rwpub-parks";
fieldNameList[groupIndexCount] = new Array("NAME");
fieldAliasList[groupIndexCount]  = new Array("Park Name");
// redwing facilities
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-rwpub-facilities";
fieldNameList[groupIndexCount] = new Array("NAME");
fieldAliasList[groupIndexCount]  = new Array("Facility Name");
// redwing zoning
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-rw-zoning";
fieldNameList[groupIndexCount] = new Array("PIN","CATEGORY","ZONE_DOC");
fieldAliasList[groupIndexCount]  = new Array("PIN","Zoning","Ordinance");
HyperLinkFields[groupIndexCount] = new Array("ZONE_DOC");
HyperLinkAliases[groupIndexCount] = new Array("use field value");
HyperLinkPrefixes[groupIndexCount] = new Array("http://maps.co.goodhue.mn.us/PDFs/CivXplorer/RedWing/");
HyperLinkSuffixes[groupIndexCount] = new Array(".pdf");

// cannon falls
// cannon falls trails
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-cfpub-trails";
fieldNameList[groupIndexCount] = new Array("CATAGORIES");
fieldAliasList[groupIndexCount]  = new Array("Type of Trail");
// cannon falls water lines
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-cfpub-waterlines";
fieldNameList[groupIndexCount] = new Array("FEAT_ID","DESCRIPT","FULL_DESC","MATERIAL","SIZE","OWNER","CALC_LNGTH");
fieldAliasList[groupIndexCount]  = new Array("Feature ID","Pipe Type","Full Description","Pipe Size and Material","Size","Owner Type","Calculated Length");
// cannon falls water points
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-cfpub-waterpts";
fieldNameList[groupIndexCount] = new Array("NODE_ID","DESCRIPT","DESC_ABRV","THN","OWNER","COMMENTS");
fieldAliasList[groupIndexCount]  = new Array("Feature ID","Structure Type","Abbreviated Type","Top of Hydrant Nut Elevation","Owner Type","Comments");
// cannon falls sanitary lines
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-cfpub-sanitarylines";
fieldNameList[groupIndexCount] = new Array("FEAT_ID","DESCRIPT","FULL_DESC","MATERIAL","SIZE","OWNER","CALC_LNGTH","LENGTH_AB","YEAR_AB","FROMNODE","TONODE");
fieldAliasList[groupIndexCount]  = new Array("Feature ID","Pipe Usage Type","Pipe Size and Material","Pipe Material","Pipe Size","Owner Type","Calculated Length","Length from ASBUILT","Year Constructed","Upstream Node","Downstream Node");
// cannon falls sanitary points
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-cfpub-sanitarypts";
fieldNameList[groupIndexCount] = new Array("NODE_ID","DESCRIPT","MH_ID","RIM","INV","OWNER");
fieldAliasList[groupIndexCount]  = new Array("Feature ID","Structure Type","Manhole ID","Rim Elevation","Invert Elevation","Owner Type");
// cannon falls storm lines
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-cfpub-stormlines";
fieldNameList[groupIndexCount] = new Array("FEAT_ID","DESCRIPT","MATERIAL","TYPE","STRM_ID","SIZE","CALC_LNGTH");
fieldAliasList[groupIndexCount]  = new Array("Feature ID","Pipe Usage Type","Pipe Material","Line Type","ASBUILT Manhole ID","Pipe Size","Calculated Length");
// cannon falls storm points
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-cfpub-stormpts";
fieldNameList[groupIndexCount] = new Array("NODE_ID","DESCRIPT","DESC_ABRV","STRM_ID","RIM","INV","OWNER");
fieldAliasList[groupIndexCount]  = new Array("Feature ID","Structure Type","Abbreviated Type","ASBUILT Structure ID","Rim Elevation","Invert Elevation","Owner Type");

// city of goodhue
// goodhue pipes
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-gdh-pipelines";
fieldNameList[groupIndexCount] = new Array("MATERIAL","OWNER","CALC_LENGTH","YR_INSTALL","COMMENTS","TYPE","OP_PRESS","PIPE_SIZE","MAX_OP_PRE","STATUS","LEAK_SURV","LOCATION_D","FULL_LABEL");
fieldAliasList[groupIndexCount]  = new Array("Material","Owner Name","Calculated Length","Year Installed","Comments","Pipe Type","Operating Pressure","Pipe Size","Maximum Operating Pressure","Status","Leak Survey","Location Description","Full Label");
// goodhue pipe facilities
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-gdh-pipefacilities";
fieldNameList[groupIndexCount] = new Array("OWNER","COMMENTS","YR_INSTALL","TYPE","MATERIAL","SIZE_","FAC_TYPE","LOCATION_D","PIN","GPHOUS");
fieldAliasList[groupIndexCount]  = new Array("Owner","Comments","Year Installed","Type","Material","Size","Facility Type","Location Description","Parcel ID Number","Property Address");

// kenyon
// kenyon storm ponds
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-kn-strmpd";
fieldNameList[groupIndexCount] = new Array("Type");
fieldAliasList[groupIndexCount]  = new Array("Type");
// kenyon water lines
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-kn-waterlines";
fieldNameList[groupIndexCount] = new Array("PIPETYPE","PIPESIZE");
fieldAliasList[groupIndexCount]  = new Array("Pipe Type","Pipe Size");
// kenyon water points
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-kn-waterpts";
fieldNameList[groupIndexCount] = new Array("TYPE");
fieldAliasList[groupIndexCount]  = new Array("Type");
// kenyon sanitary lines
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-kn-sanitarylines";
fieldNameList[groupIndexCount] = new Array("PIPESIZE","TYPE","OWNERSHIP","MATERIAL");
fieldAliasList[groupIndexCount]  = new Array("Pipe Size","Type","Owner","Material");
// kenyon sanitary points
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-kn-sanitarypts";
fieldNameList[groupIndexCount] = new Array("TYPE","STR_NUM");
fieldAliasList[groupIndexCount]  = new Array("Type","Structure Number");
// kenyon storm lines
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-kn-stormlines";
fieldNameList[groupIndexCount] = new Array("PIPESIZE","OWNERSHIP","MATERIAL");
fieldAliasList[groupIndexCount]  = new Array("Pipe Size","Owner","Material");
// kenyon storm points
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-kn-stormpts";
fieldNameList[groupIndexCount] = new Array("TYPE");
fieldAliasList[groupIndexCount]  = new Array("Type");

// Lake City Data
// Wabasha County plats
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-lc-plats";
fieldNameList[groupIndexCount] = new Array("PLATNAME","PLATNUM","TYPE","SHEET1__UR");
fieldAliasList[groupIndexCount]  = new Array("Plat Name","Plat Number","Type","Scanned Plat");
HyperLinkFields[groupIndexCount] = new Array("SHEET1__UR");
HyperLinkAliases[groupIndexCount] = new Array("Click Here");
HyperLinkPrefixes[groupIndexCount] = new Array("");
HyperLinkSuffixes[groupIndexCount] = new Array("");

// Wanamingo Fire Hydrants
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "restricted-wan-hydrants";
fieldNameList[groupIndexCount] = new Array("INSTALL_YE","HYDRANT_ID","COMMENTS");
fieldAliasList[groupIndexCount]  = new Array("Year Installed","Hydrant Number","Comments");

// gccea
// parcel query
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-parcels";
fieldNameList[groupIndexCount] = new Array("PIN","GPHOUS","GPHSUF","GPSTRE","GPSTYP","GPSDIR","GPUNIT","GPCITY","GPZIP5","AVACR","PGNNAME","PGNHOUS","PGNSTRE","PGNADD2","PGNCITY","PGNSTAT","PGNZIP5","AASCHL","GPSECT","GPLTWP","GPRANG");
fieldAliasList[groupIndexCount]  = new Array("Parcel ID Number (PIN)","Property House Number","Property House Number Suffix","Property Street Name","Property Street Type","Property Street Directional","Property Unit Number","Property City Name","Property Zipcode","Property Deeded Acres","Primary Taxpayer Name","Primary Taxpayer House Number","Primary Taxpayer Street Name","Primary Taxpayer Address line 2","Primary Taxpayer City Name","Primary Taxpayer State Name","Primary Taxpayer Zipcode","School District Number","Section Number","Township Number","Range Number");
//customQueryFieldNameList[groupIndexCount] = new Array("PIN","GPHOUS","FULLSTREET","GPUNIT","GPCITY","GPZIP5","GPZIP4","AAACRE","PGNNAME","PGNHOUS","PGNSTRE","PGNADD2","PGNCITY","PGNSTAT","PGNZIP5","AASCHL","GPSECT","GPLTWP","GPRANG");
dataAllCaps[groupIndexCount] = true;
//mailingOwnerFieldNameList[groupIndexCount] = new Array("PIN","PGNNAME","PGNHOUS","PGNSTRE","PGNADD2","PGNCITY","PGNSTAT","PGNZIP5");
//mailingResidentFieldNameList[groupIndexCount] = new Array("PIN","HOUSENUM","FULLSTREET","GPUNIT","GPCITY","GPZIP5");
//reportHeaderFieldNameList[groupIndexCount] = new Array("PIN","GPHOUS","GPSTRE","GPSTYP","GPSDIR","GPCITY");
//combinedFieldInfoList[groupIndexCount] = new Array("Legal Description",true,"GLDESC01","GLDESC02","GLDESC03","GLDESC04","GLDESC05","GLDESC06");
// sub boundary
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-servicebound";
fieldNameList[groupIndexCount] = new Array("SUBNAME");
fieldAliasList[groupIndexCount]  = new Array("Sub Name");
// node
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-node";
fieldNameList[groupIndexCount] = new Array("NODES","SUB","FEEDER","SOURCE","LINESECTIO","CONDUCTOR","PHASE","LENGTHMILE","EQPHASE1","EQPHASE2","EQPHASE3","MATCH_","VOLTDROP1","VOLTDROP2","VOLTDROP3","VOLTDROPMI","VOLTDROPBO","VOLTDROPPH","VOLTDROP_1","VOLTDROP_2","VOLTDROPSE","SECTIDENTI","LA_KWORAMP","LA_LESSTHA","DISPLAY");
fieldAliasList[groupIndexCount]  = new Array("NODES","SUB","FEEDER","SOURCE","LINESECTIO","CONDUCTOR","PHASE","LENGTHMILE","EQPHASE1","EQPHASE2","EQPHASE3","MATCH_","VOLTDROP1","VOLTDROP2","VOLTDROP3","VOLTDROPMI","VOLTDROPBO","VOLTDROPPH","VOLTDROP_1","VOLTDROP_2","VOLTDROPSE","SECTIDENTI","LA_KWORAMP","LA_LESSTHA","DISPLAY");
// cabinet
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-cabinet";
fieldNameList[groupIndexCount] = new Array("NO_");
fieldAliasList[groupIndexCount]  = new Array("Number");
// secondary pedestal
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-secondary-ped";
fieldNameList[groupIndexCount] = new Array("NO_");
fieldAliasList[groupIndexCount]  = new Array("Number");
// capacitor
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-capacitor";
fieldNameList[groupIndexCount] = new Array("NODES","SUB","FEEDER","SOURCE","LINESECTIO","CONDUCTOR","PHASE","LENGTHMILE","EQPHASE1","EQPHASE2","EQPHASE3","SIZE","QUANTITY","EXORPR","DISPLAY");
fieldAliasList[groupIndexCount]  = new Array("NODES","SUB","FEEDER","SOURCE","LINESECTIO","CONDUCTOR","PHASE","LENGTHMILE","EQPHASE1","EQPHASE2","EQPHASE3","SIZE","QUANTITY","EXORPR","DISPLAY");
// consumer
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-consumer";
fieldNameList[groupIndexCount] = new Array("CUSTOMERLO","MAP","FULLLOCATI","LOCATIONNU","CONSUMERNU","OHUG","DISPLAY","MEMBERNUMB","NAME","ADD_1","ADD_2","CITY","ST","ZIP","PHONE","GOODHUE_CO","CALL","SUB","FEEDER","PHASE","ZONE_","METER_1","STATUS","TRANS_1","KVA_1","BRAND_1","TYPE_1","TRANS_2","KVA_2","BRAND_2","TYPE_2","TRANS_3","KVA_3","BRAND_3","TYPE_3","P_S_U_CODE","LOC_DSC_1","LOC_DSC_2","RUS_CLASS","RATE","SITE_CODE","MESSAGE_1","MESSAGE_2","MESSAGE_3","MESSAGE_4","MESSAGE_5","MESSAGE_6","COUNTY","TWPNAME","TWPNO","RANGE","MAPNO","TYPE","SECTIONNUM");
fieldAliasList[groupIndexCount]  = new Array("CUSTOMERLO","MAP","FULLLOCATI","LOCATIONNU","CONSUMERNU","OHUG","DISPLAY","MEMBERNUMB","NAME","ADD_1","ADD_2","CITY","ST","ZIP","PHONE","GOODHUE_CO","CALL","SUB","FEEDER","PHASE","ZONE_","METER_1","STATUS","TRANS_1","KVA_1","BRAND_1","TYPE_1","TRANS_2","KVA_2","BRAND_2","TYPE_2","TRANS_3","KVA_3","BRAND_3","TYPE_3","P_S_U_CODE","LOC_DSC_1","LOC_DSC_2","RUS_CLASS","RATE","SITE_CODE","MESSAGE_1","MESSAGE_2","MESSAGE_3","MESSAGE_4","MESSAGE_5","MESSAGE_6","COUNTY","TWPNAME","TWPNO","RANGE","MAPNO","TYPE","SECTIONNUM");
// fuse
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-fuse";
fieldNameList[groupIndexCount] = new Array("NODES","SUB","FEEDER","SOURCE","LINESECTIO","CONDUCTOR","PHASE","LNEGTHMILE","EQPHASE1","EQPHASE2","EQPHASE3","SIZE","TYPE","QUANTITY","EXORPR","DISPLAY","FULL_DESC");
fieldAliasList[groupIndexCount]  = new Array("NODES","SUB","FEEDER","SOURCE","LINESECTIO","CONDUCTOR","PHASE","LNEGTHMILE","EQPHASE1","EQPHASE2","EQPHASE3","SIZE","TYPE","QUANTITY","EXORPR","DISPLAY","FULL_DESC");
// minmax
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-minmax";
fieldNameList[groupIndexCount] = new Array("METER","EXORPR","FULL_DESC");
fieldAliasList[groupIndexCount]  = new Array("Meter","ExorPR","FullDesc");
// mm
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-mm";
fieldNameList[groupIndexCount] = new Array("L1","L2","R1","R2");
fieldAliasList[groupIndexCount]  = new Array("L1","L2","R1","R2");
// ocr
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-ocr";
fieldNameList[groupIndexCount] = new Array("NODES","SUB","FEEDER","SOURCE","LINESECTIO","CONDUCTOR","PHASE","LENGTHMILE","EQPHASE1","EQPHASE2","EQPHASE3","MATCH","TYPE","SIZE","QUANTITY","EXORPR","DISPLAY","FULL_DESC");
fieldAliasList[groupIndexCount]  = new Array("NODES","SUB","FEEDER","SOURCE","LINESECTIO","CONDUCTOR","PHASE","LENGTHMILE","EQPHASE1","EQPHASE2","EQPHASE3","MATCH","TYPE","SIZE","QUANTITY","EXORPR","DISPLAY","FULL_DESC");
// openpoints
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-openpoints";
fieldNameList[groupIndexCount] = new Array("EXORPR","PROPOSEDST","DISPLAY","POSITION_");
fieldAliasList[groupIndexCount]  = new Array("ExorPR","ProposedST","Display","Position");
// regulatro
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-regulator";
fieldNameList[groupIndexCount] = new Array("NODES","SUB","FEEDER","SOURCE","LINESECTIO","CONDUCTOR","PHASE","LENGTHMILE","EQPHASE1","EQPHASE2","EQPHASE3","EXORPR","DISPLAY","REGSIZE");
fieldAliasList[groupIndexCount]  = new Array("NODES","SUB","FEEDER","SOURCE","LINESECTIO","CONDUCTOR","PHASE","LENGTHMILE","EQPHASE1","EQPHASE2","EQPHASE3","EXORPR","DISPLAY","REGSIZE");
// substation
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-substation";
fieldNameList[groupIndexCount] = new Array("NAME","SUBNUMBER","EXORPR");
fieldAliasList[groupIndexCount]  = new Array("Name","Subnumber","ExorPR");
// switch
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-switch";
fieldNameList[groupIndexCount] = new Array("LINE_SECTI","PHASE","FEEDER_NUM","SUBSTATION","COMMENTS");
fieldAliasList[groupIndexCount]  = new Array("Line Section","Phase","Feeder Number","Substation","Comments");
// transformer
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-transformer";
fieldNameList[groupIndexCount] = new Array("TRANSFORME","OHUG","DISPLAY","PHASE");
fieldAliasList[groupIndexCount]  = new Array("Transformer","OHUG","Display","Phase");
// conductor oh primary
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-conductorohprimary";
fieldNameList[groupIndexCount] = new Array("DISPLAYPHA","PHASE","PROPOSEDPH","DISPLAY","SHAPE_LENG");
fieldAliasList[groupIndexCount]  = new Array("Display Phase","Phase","Proposed Phase","Display","Length");
// conductor secondary
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-conductorsecondary";
fieldNameList[groupIndexCount] = new Array("OHUG","DISPLAY","SHAPE_LENG");
fieldAliasList[groupIndexCount]  = new Array("OHUG","Display","Length");
// conductor ug primary
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-conductorugprimary";
fieldNameList[groupIndexCount] = new Array("DISPLAYPHA","PHASE","PROPOSEDPH","DISPLAY","SHAPE_LENG");
fieldAliasList[groupIndexCount]  = new Array("Display Phase","Phase","Proposed Phase","Display","Length");
// foreign transmission
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-foreigntrans";
fieldNameList[groupIndexCount] = new Array("OWNER","NAME","OPERATINGV","SUBTYPECD","DESCRIPTIO","STATE","CREATIONUS","DATECREATE","EDITORNAME","LASTUPDATE","MODIFICATI","ENABLED","SHAPE_LENG");
fieldAliasList[groupIndexCount]  = new Array("OWNER","NAME","OPERATINGV","SUBTYPECD","DESCRIPTIO","STATE","CREATIONUS","DATECREATE","EDITORNAME","LASTUPDATE","MODIFICATI","ENABLED","SHAPE_LENG");
// gre transmission
groupIndexCount += 1;
mapserviceID[groupIndexCount] = "grouped-gccea-gretrans";
fieldNameList[groupIndexCount] = new Array("LINENAME","ALTNAME","LINESEGMEN","SEGMENTNUM","COOPERATIV","LABELTEXT","DESCRIPTIO","SUBTYPECD","LINETYPE","LINEID","YEARINSTAL","LINEFROM","BUSFROM","LINETO","BUSTO","OPERATINGV","VOLTAGEDES","VOLTAGECOD","CIRCUITS","STRUCTURET","CONDUCTORS","CONDUCTORT","CONDUCTO_1","SHIELDS","SHIELDWIRE","GPSCORRECT","STATE","CREATIONUS","DATECREATE","EDITORNAME","LASTUPDATE","MODIFICATI","ENABLED","STARTMEASU","ENDMEASURE","CALIBRATED","SHAPE_LENG");
fieldAliasList[groupIndexCount]  = new Array("LINENAME","ALTNAME","LINESEGMEN","SEGMENTNUM","COOPERATIV","LABELTEXT","DESCRIPTIO","SUBTYPECD","LINETYPE","LINEID","YEARINSTAL","LINEFROM","BUSFROM","LINETO","BUSTO","OPERATINGV","VOLTAGEDES","VOLTAGECOD","CIRCUITS","STRUCTURET","CONDUCTORS","CONDUCTORT","CONDUCTO_1","SHIELDS","SHIELDWIRE","GPSCORRECT","STATE","CREATIONUS","DATECREATE","EDITORNAME","LASTUPDATE","MODIFICATI","ENABLED","STARTMEASU","ENDMEASURE","CALIBRATED","SHAPE_LENG");

