Updated this mirror with changes from internal SVN

Merged revision(s) 46578-48158 from GIS/GeoPortal/trunk:
Replaced MPO service with MPA service.
........
Replaced MPO label with MPA.
........
Updated fish passage help URL.
........
Updated image viewer URL from test URL to production.
........
Updated fish-barrier-images to no longer use proxy.ashx, now that CORS
is supported.
........
Updated fish-passage-barriers.json layer definitions.
........
Updated publish profile to always delete destination files before
publishing.
........
Decreased opacity of city limits layer.
........
Updated map service URL.
........
Decreased opacity of city limits layer.
Updated map service URL.

........
Merged revision(s) 47052-47071 from GIS/GeoPortal/branches/2014-08-12
IE10 Issue Debugging:
Added CORS enabled servers specification. This fixes an issue in IE 10.

........
Updated config. Now NOT loading WSDOT basemap and then immediately
switching to Topographic.
........
Updated config/README.md.
........
Updated project file to remove unused file.
........
Changed map scale definition.
........
Modified "lods" definition in fish-passage-barriers.json.
........
Scale (1:xxxxx) is now displayed on the map.
Modified index.css to follow best practices.
........
Removed unused styles from index.css.
........
Fixed icons.
........
modified configurations
Upgraded to AGS JS API 3.10.
........
Updated map services to production.
........
Both statewide fish passage barrier layers are now turned on by default.
Reordered to control which is drawn on top of the other.
........
Merged revision(s) 46526-47253 from
GIS/GeoPortal/branches/2014-05-20-FishPassage:
Updated fish passage help URL.
........
Updated image viewer URL from test URL to production.
........
Updated fish-barrier-images to no longer use proxy.ashx, now that CORS
is supported.
........
Updated fish-passage-barriers.json layer definitions.
........
Updated publish profile to always delete destination files before
publishing.
........
Decreased opacity of city limits layer.
Updated map service URL.

........
Merged revision(s) 47052-47071 from GIS/GeoPortal/branches/2014-08-12
IE10 Issue Debugging:
Added CORS enabled servers specification. This fixes an issue in IE 10.

........
Updated config. Now NOT loading WSDOT basemap and then immediately
switching to Topographic.
........
Updated config/README.md.
........
Updated project file to remove unused file.
........
Changed map scale definition.
........

........
Airspace calculator now uses SOE REST endpoint.
........
Airspace calculator URL updated. That setting is now being used, too.
Removed unused code.
........
surface penetration results window now pops up automatically.
........
Merged revision(s) 47334-47347 from
GIS/GeoPortal/branches/2014-08-21-metadata-config:
Added ability to override metadata list via config file.
Added properties for additional metadata.
Removed unused properties/variables from layerList.js.

........
Removed a "metadataOptions" property from a layer that wasn't supposed
to have it.
........
Updated documentation.
Removed Modernizr stuff from airspaceCalculator.js. All modern browsers
now support this stuff so it was no longer necessary.
........
Added triggering of error events when problems are encountered calling
web services.
........
Updated print URL.
........

........
Removed references to dojo/_base/array. Modern browsers now have these
functions built-in.
........
detectHtmlPopups now returns a dojo/Deferred.
........
Replaced for loop with array.prototype.forEach call.
Added jsdoc for a function.
........
map.detectHtmlPopups now returns dojo/Deferred.
........
Added jsdoc comments.
........
Identify results no longer push out graphics layer results from info
window.
........
Merged revision(s) 47254-47890 from
GIS/GeoPortal/branches/2014-05-20-FishPassage:
Merged revision(s) 47334-47347 from
GIS/GeoPortal/branches/2014-08-21-metadata-config:
Added ability to override metadata list via config file.
Added properties for additional metadata.
Removed unused properties/variables from layerList.js.

........
Removed a "metadataOptions" property from a layer that wasn't supposed
to have it.
........
Updated print URL.
........

........
Removed references to dojo/_base/array. Modern browsers now have these
functions built-in.
........
detectHtmlPopups now returns a dojo/Deferred.
........
Replaced for loop with array.prototype.forEach call.
Added jsdoc for a function.
........
map.detectHtmlPopups now returns dojo/Deferred.
........
Added jsdoc comments.
........
Identify results no longer push out graphics layer results from info
window.
........

........
Merged revision(s) 44374-47930 from
GIS/GeoPortal/branches/2014-05-20-FishPassage:
Created branch "2014-05-20-FishPassage".
........
Renamed config .js files to have .json extension.
Added fish-passage-barriers.json.
........
Added layers and title to fish-passage-barriers.json.
........
Set initial basemap to "topo".
........
Removed layers from fish-passage-barriers configuration.
........
Replaced image with &Rrightarrow; entity.

........
Added disclaimer for fish-passage-barriers.
fish-passage-barriers: print URL is now pointing to production server.
........
Updated outdated information in a comment.
........
Code cleanup.
Moved require statements for ArcGIS API modules.
........
More code cleanup.
........
Initial layers turned on via query string now show up even if there is a
disclaimer popup.
........
Added ability to specify initial basemap by name.
........
Updated config files to use "initialBasemap" instead of
"mapInitialLayer".
........
Applied SVN property "text/json" to JSON files.
........
Added fish-barrier-images demo image thumbnail page.
........
Query string is updated when a WDFWID is selected.
........
Initial selection of images can now be specified via query string.
........
Added documentation.
........
Created fish-passage-bug-workaround.json.
Renamed "...Hydrography" layer to "Rivers and Lakes".
........
Merged revision(s) 45203-45253 from
GIS/GeoPortal/branches/2014-06-17-FishPassage-BugFix:
Clicking on a thumbnail now opens image in the same window.
Layers can now be turned on by default via the config. json files.
lrsTools.js: modified "draw-end" event handler setup to be
AMD-compliant.
* Added fish-passage-bug.json.
* Geocoder setup now waits until map is "loaded" to add graphics layer.
* Modified zoom-end event handling.
* Modified lrsTools.js to load AMD modules.
Added "http://" prefix to hydrography layer URL. Lack of it was causing
problems with the print tool.
Added workaround for bug in fish-passage-barriers.json. (Add WSDOT
basemap before loading basemap widget.)

........
htmlPopupExtensions.js: More AMD compliant.
........
htmlPopupExtensions.js: AMD-Compliant. No JSHint errors.
........
Modified htmlPopupExtensions.js.
* Replaced some DOM creation code to use standard JavaScript functions
instead of Dojo module functions.
* Links with the text that is just the URL are shortened to the text
"link".
........
htmlPopupExtensions.js: Removed references to Dojo DOM construction
modules.
........
htmlPopupExtensions.js: Added support for WDFW images in popups.
fish-barrier-images/scripts/index.js: IE compatibility fix.
........
index.html: Added <meta http-equiv="X-UA-Compatible" content="IE=Edge"
/>
........
Updated Fish Passage config files.
........
When request for HTML popup returns empty content, a default table is
created.
Regrouped fish-passage-barriers.json layers.
........
Minor space vs. tab changes.
........
Added ability to turn of popups for certain layers via config parameter.
........
documentation update.
........
Updated fish-passage-bug.json.
........
Merged revision(s)  from
GIS/GeoPortal/branches/2014-06-24-FishPassage-LabelLayer:
Label layer is now added automatically for WRIA layer (or any other
FeatureLayer that has labeling info defined).
........
Merged revision(s)  from
GIS/GeoPortal/branches/2014-02-23-FishPassageSelect:
Info window is now shown after zooming via extent select boxes.
extentSelect.js:
* name attribute no longer HAS to be "NAME". If no such attribute is
present, the first string will be used.

........
Added outFields so that label property is retrieved and labels now work
properly.
........
Label layer list item is now moved to same section as the layer that it
is labeling.
........
Label layer list item is now inserted directly under the layer it is
labeling in the TOC.
........
Updated documentation.
........
Updated info in comment.
........
Converted documentation comments from XML to jsdoc.
........
Disclaimer cookie is now unique to each configuration.
Removed date.toISOString polyfill. Modern browsers all now support this
function.
........
Changed WDFW "images" link to "photos".
........
Changed page title for fish-passage-barriers.json.
........
Minor labeling changes.
Reduced the number of layers that are turned on by default.
Popup link to image viewer now disables the select box.
........
fish-barrier-images/scripts/index.js
Thumbnail size class is now based on the number of images.
........
Updated WRIA layer.
........
Updated fish-passage-barriers/Public.html disclaimer.
........
Updated configuration.
........
Merged revision(s) 45771-45850 from
GIS/GeoPortal/branches/2014-07-07-FishPassage-blueimp-gallery:
Now using blueimp Gallery to display fish passage barrier images.
........
Added comment.
........
Modified TOC for functional class configuration.
........
Fixed image viewer path bug (non-chrome browsers).

http://hqtob1apptfs01p:8080/tfs/GRDO/Fish%20Passage%20Map%20Project/_workitems/edit/3367
........
Modified appearance of fish passage photos link in popups.
........
Added info to functional class legend.
........
Added microformats and icons to contact information.
........

........
Added internal-airport-test.js.
........
Added workaround for tiled layers not showing up in printout legends.
Reordered tools panes for fish-passage-barriers configuration.
........
Replaced dojo.connect reference in layerSorter.js.

........
Tab names can now be customized.
........
Documentation update related to new alternateTabTitles configuration
setting.

........
Replaced fish passage barriers help files with a Markdown file.
........
Minor changes to fish-passage-barriers.json.
........
Removed "zoom to current location" button.
........
Image viewer: when a WDFW ID with no associated images is selected, a
"no images available" message is now displayed.
........
Geocoder now centers the map when an address is located.
........
Removed unused AMD modules from geocoder-setup.js.
........
Made address search more prominent.
........
Updated fish-passage-barriers.json
........
Printouts list now has white background.
........
Added rounded border bottom to printouts list.
........
Set "City Limits" layer opacity to 50%.
........
Printer dialog now defaults selection to first "ANSI" template.
........
Merged revision(s) 44374-46525 from
GIS/GeoPortal/branches/2014-05-20-FishPassage:
Created branch "2014-05-20-FishPassage".
........
Renamed config .js files to have .json extension.
Added fish-passage-barriers.json.
........
Added layers and title to fish-passage-barriers.json.
........
Set initial basemap to "topo".
........
Removed layers from fish-passage-barriers configuration.
........
Replaced image with &Rrightarrow; entity.

........
Added disclaimer for fish-passage-barriers.
fish-passage-barriers: print URL is now pointing to production server.
........
Updated outdated information in a comment.
........
Code cleanup.
Moved require statements for ArcGIS API modules.
........
More code cleanup.
........
Initial layers turned on via query string now show up even if there is a
disclaimer popup.
........
Added ability to specify initial basemap by name.
........
Updated config files to use "initialBasemap" instead of
"mapInitialLayer".
........
Applied SVN property "text/json" to JSON files.
........
Added fish-barrier-images demo image thumbnail page.
........
Query string is updated when a WDFWID is selected.
........
Initial selection of images can now be specified via query string.
........
Added documentation.
........
Created fish-passage-bug-workaround.json.
Renamed "...Hydrography" layer to "Rivers and Lakes".
........
Merged revision(s) 45203-45253 from
GIS/GeoPortal/branches/2014-06-17-FishPassage-BugFix:
Clicking on a thumbnail now opens image in the same window.
Layers can now be turned on by default via the config. json files.
lrsTools.js: modified "draw-end" event handler setup to be
AMD-compliant.
* Added fish-passage-bug.json.
* Geocoder setup now waits until map is "loaded" to add graphics layer.
* Modified zoom-end event handling.
* Modified lrsTools.js to load AMD modules.
Added "http://" prefix to hydrography layer URL. Lack of it was causing
problems with the print tool.
Added workaround for bug in fish-passage-barriers.json. (Add WSDOT
basemap before loading basemap widget.)

........
htmlPopupExtensions.js: More AMD compliant.
........
htmlPopupExtensions.js: AMD-Compliant. No JSHint errors.
........
Modified htmlPopupExtensions.js.
* Replaced some DOM creation code to use standard JavaScript functions
instead of Dojo module functions.
* Links with the text that is just the URL are shortened to the text
"link".
........
htmlPopupExtensions.js: Removed references to Dojo DOM construction
modules.
........
htmlPopupExtensions.js: Added support for WDFW images in popups.
fish-barrier-images/scripts/index.js: IE compatibility fix.
........
index.html: Added <meta http-equiv="X-UA-Compatible" content="IE=Edge"
/>
........
Updated Fish Passage config files.
........
When request for HTML popup returns empty content, a default table is
created.
Regrouped fish-passage-barriers.json layers.
........
Minor space vs. tab changes.
........
Added ability to turn of popups for certain layers via config parameter.
........
documentation update.
........
Updated fish-passage-bug.json.
........
Merged revision(s)  from
GIS/GeoPortal/branches/2014-06-24-FishPassage-LabelLayer:
Label layer is now added automatically for WRIA layer (or any other
FeatureLayer that has labeling info defined).
........
Merged revision(s)  from
GIS/GeoPortal/branches/2014-02-23-FishPassageSelect:
Info window is now shown after zooming via extent select boxes.
extentSelect.js:
* name attribute no longer HAS to be "NAME". If no such attribute is
present, the first string will be used.

........
Added outFields so that label property is retrieved and labels now work
properly.
........
Label layer list item is now moved to same section as the layer that it
is labeling.
........
Label layer list item is now inserted directly under the layer it is
labeling in the TOC.
........
Updated documentation.
........
Updated info in comment.
........
Converted documentation comments from XML to jsdoc.
........
Disclaimer cookie is now unique to each configuration.
Removed date.toISOString polyfill. Modern browsers all now support this
function.
........
Changed WDFW "images" link to "photos".
........
Changed page title for fish-passage-barriers.json.
........
Minor labeling changes.
Reduced the number of layers that are turned on by default.
Popup link to image viewer now disables the select box.
........
fish-barrier-images/scripts/index.js
Thumbnail size class is now based on the number of images.
........
Updated WRIA layer.
........
Updated fish-passage-barriers/Public.html disclaimer.
........
Updated configuration.
........
Merged revision(s) 45771-45850 from
GIS/GeoPortal/branches/2014-07-07-FishPassage-blueimp-gallery:
Now using blueimp Gallery to display fish passage barrier images.
........
Added comment.
........
Fixed image viewer path bug (non-chrome browsers).

http://hqtob1apptfs01p:8080/tfs/GRDO/Fish%20Passage%20Map%20Project/_workitems/edit/3367
........
Modified appearance of fish passage photos link in popups.
........
Added microformats and icons to contact information.
........
Added workaround for tiled layers not showing up in printout legends.
Reordered tools panes for fish-passage-barriers configuration.
........
Replaced dojo.connect reference in layerSorter.js.

........
Tab names can now be customized.
........
Documentation update related to new alternateTabTitles configuration
setting.

........
Replaced fish passage barriers help files with a Markdown file.
........
Minor changes to fish-passage-barriers.json.
........
Removed "zoom to current location" button.
........
Image viewer: when a WDFW ID with no associated images is selected, a
"no images available" message is now displayed.
........
Geocoder now centers the map when an address is located.
........
Removed unused AMD modules from geocoder-setup.js.
........
Made address search more prominent.
........
Updated fish-passage-barriers.json
........
Printouts list now has white background.
........
Added rounded border bottom to printouts list.
........

........
airspaceCalculator.js - Now loading modules AMD style. (Still need to
replace dojo/connects.)
........
Replaced dojo.connect with dojo/Evented.on
........
Modified airspaceCalculator.js:
* Now is an AMD module.
* Now calls USGS elevation service prior to calling GP service.
........
Updated fish passage help URL.
........
Updated image viewer URL from test URL to production.
........
Updated fish-barrier-images to no longer use proxy.ashx, now that CORS
is supported.
........
Updated fish-passage-barriers.json layer definitions.
........
Updated publish profile to always delete destination files before
publishing.
........
Decreased opacity of city limits layer.
........
Updated map service URL.
........
Decreased opacity of city limits layer.
Updated map service URL.

........
Merged revision(s) 47052-47071 from GIS/GeoPortal/branches/2014-08-12
IE10 Issue Debugging:
Added CORS enabled servers specification. This fixes an issue in IE 10.

........
Updated config. Now NOT loading WSDOT basemap and then immediately
switching to Topographic.
........
Updated config/README.md.
........
Updated project file to remove unused file.
........
Changed map scale definition.
........
Modified "lods" definition in fish-passage-barriers.json.
........
Scale (1:xxxxx) is now displayed on the map.
Modified index.css to follow best practices.
........
Removed unused styles from index.css.
........
Fixed icons.
........
modified configurations
Upgraded to AGS JS API 3.10.
........
Updated map services to production.
........
Both statewide fish passage barrier layers are now turned on by default.
Reordered to control which is drawn on top of the other.
........
Merged revision(s) 46526-47253 from
GIS/GeoPortal/branches/2014-05-20-FishPassage:
Updated fish passage help URL.
........
Updated image viewer URL from test URL to production.
........
Updated fish-barrier-images to no longer use proxy.ashx, now that CORS
is supported.
........
Updated fish-passage-barriers.json layer definitions.
........
Updated publish profile to always delete destination files before
publishing.
........
Decreased opacity of city limits layer.
Updated map service URL.

........
Merged revision(s) 47052-47071 from GIS/GeoPortal/branches/2014-08-12
IE10 Issue Debugging:
Added CORS enabled servers specification. This fixes an issue in IE 10.

........
Updated config. Now NOT loading WSDOT basemap and then immediately
switching to Topographic.
........
Updated config/README.md.
........
Updated project file to remove unused file.
........
Changed map scale definition.
........

........
Airspace calculator now uses SOE REST endpoint.
........
Airspace calculator URL updated. That setting is now being used, too.
Removed unused code.
........
surface penetration results window now pops up automatically.
........
Merged revision(s) 47334-47347 from
GIS/GeoPortal/branches/2014-08-21-metadata-config:
Added ability to override metadata list via config file.
Added properties for additional metadata.
Removed unused properties/variables from layerList.js.

........
Removed a "metadataOptions" property from a layer that wasn't supposed
to have it.
........
Updated documentation.
Removed Modernizr stuff from airspaceCalculator.js. All modern browsers
now support this stuff so it was no longer necessary.
........
Added triggering of error events when problems are encountered calling
web services.
........
Updated print URL.
........

........
Removed references to dojo/_base/array. Modern browsers now have these
functions built-in.
........
detectHtmlPopups now returns a dojo/Deferred.
........
Replaced for loop with array.prototype.forEach call.
Added jsdoc for a function.
........
map.detectHtmlPopups now returns dojo/Deferred.
........
Added jsdoc comments.
........
Identify results no longer push out graphics layer results from info
window.
........
Merged revision(s) 47254-47890 from
GIS/GeoPortal/branches/2014-05-20-FishPassage:
Merged revision(s) 47334-47347 from
GIS/GeoPortal/branches/2014-08-21-metadata-config:
Added ability to override metadata list via config file.
Added properties for additional metadata.
Removed unused properties/variables from layerList.js.

........
Removed a "metadataOptions" property from a layer that wasn't supposed
to have it.
........
Updated print URL.
........

........
Removed references to dojo/_base/array. Modern browsers now have these
functions built-in.
........
detectHtmlPopups now returns a dojo/Deferred.
........
Replaced for loop with array.prototype.forEach call.
Added jsdoc for a function.
........
map.detectHtmlPopups now returns dojo/Deferred.
........
Added jsdoc comments.
........
Identify results no longer push out graphics layer results from info
window.
........

........

........
Added fish-species-abbreviations.json.
........
Restored zoom to current location button. Now shows the accuracy radius.
........
Renamed functions to describe what they do instead of what is calling
them.
........
Added comments.
........
Moved geolocate button to more prominent position.
........
Fixed bug in zoom controls DOM element creation.
........
Moved geolocate button to its own module.
........
Renamed zoom-button module to geolocate-button to better reflect its
function.
........
Removed import of dojo/dom and dojo/dom-attr modules. Native functions
are now used instead.
........
index.js no longer uses dojo/number
........
index.js: No longer using "dojo/_base/array" or "dojo/dom-construct"
modules.
........
Replaced Visual Studio XML comments with jsdoc comments.
........
Reverted an earlier change relating to info window popups. The intent
was to make it so that graphics layers' could be clicked while
overlapping layers could also be identified. This caused unintended
consequences, however.
........
Merged revision(s) 48084-48146 from
GIS/GeoPortal/branches/2014-09-10_map-identify-fix:
* Map.identify now also handles graphics layers' graphics.
* lrsTools.js now uses a FeatureLayer instead of GraphicsLayer.

........