var LEGEND = '/geoserver/www/manualLayers/legends/';
var KMLS = '/geoserver/www/manualLayers/kmls/';
// Example legend
// http://demo.reefatlas.org.au/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=30&HEIGHT=30&LAYER=ea:GBRMPA_zoning-marine_park_2003&LEGEND_OPTIONS=fontAntiAliasing:true;fontSize:18;fontColor:fba607

var manualLayers = [
{ layerName:'ea:Natural_Earth_2', 
	title:'Natural Earth Data:Natural Earth 2', 
	datasetTitle: 'Natural Earth Data',
	variableTitle: 'Natural Earth',
	ownerTitle: 'Natural Earth Data',
	baseLayer:true,
	jpeg: true,
	priority: 3,
	core:true},	
{ layerName:'ea:GBRMPA_reefs-gbr_features-coast', 
	title:'GBRMPA:Plain Queensland Coast Map', 
	datasetTitle: 'Coral Reefs',
	variableTitle: 'Queensland Coast',
	ownerTitle: 'GBRMPA',
	baseLayer:true,
	priority: 3,
	core:true},		
{ layerName:'nasa:nasa-world-blue_marble_next_generation-2005-dec_nb-d1v1m1', 
	title:'NASA: Blue Marble Next Generation', 
	datasetTitle: 'Blue Marble Next Generation',
	variableTitle: 'Dec no bath',
	ownerTitle: 'NASA',
	wmsUrl:ATLAS.conf.TILESERVER_URL,
	baseLayer:true,
	priority: 3,
	jpeg: true,
	core:true}, 
{ layerName:'GBR_JCU_Bathymetry-3DGBR_Land-and-sea', 
	title:'JCU: 3DGBR Bathymetry', 
	datasetTitle:'GBR_JCU_Bathymetry-3DGBR',
	variableTitle:'Bathymetry and Topography',
	ownerTitle: 'JCU',
	wmsUrl:'/maps/gwc/service/wms',
	legendUrl:'/maps/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=8&LAYER=ea:GBR_JCU_Bathymetry-3DGBR', 
	query:false,
	queryLayers: 'ea:GBR_JCU_Bathymetry-3DGBR',
	priority: 3,
	baseLayer:true,
	core:true },	
{ layerName:'GBR_JCU_Bathymetry-3DGBR_Sea-only',
        title:'JCU: 3DGBR Bathymetry (Sea only)',
        datasetTitle:'GBR_JCU_Bathymetry-3DGBR',
        variableTitle:'Bathymetry (m)',
        ownerTitle: 'JCU',
        wmsUrl:'/maps/gwc/service/wms',
        legendUrl:'/maps/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=8&LAYER=ea:GBR_JCU_Bathymetry-3DGBR',
        query:false,
        queryLayers: 'ea:GBR_JCU_Bathymetry-3DGBR',
        priority: 2,
        baseLayer:false,
        core:true },
{ layerName:'ea:GBR_JCU_Bathymetry-3DGBR_TVU',
        title:'JCU: 3DGBR Total Vertical Uncertainty (95%)',
        datasetTitle:'GBR_JCU_Bathymetry-3DGBR',
        variableTitle:'Total Vertical Uncertainty (m)',
        ownerTitle: 'JCU',
        wmsUrl:'/maps/gwc/service/wms',
        legendUrl:'/maps/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=8&LAYER=ea:GBR_JCU_Bathymetry-3DGBR_TVU',
        query:false,
        queryLayers: 'ea:GBR_JCU_Bathymetry-3DGBR_TVU',
        priority: 2,
        baseLayer:false,
        core:false },

{ layerName:'ea:JCU_Vertebrate-Dingo-realized', 
	title:'JCU: Dingo distribution (realized)', 
	datasetTitle:'JCU_Vertebrate',
	variableTitle:'Dingo',
	ownerTitle: 'JCU',
	visible: false,
	legendUrl:'/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=10&LAYER=ea:JCU_Vertebrate-Dingo-realized',
	priority: 0,
	baseLayer:false,
	query:true,
	core:false },	
{ layerName:'ea:JCU_Vertebrate-Herbert_River_Ringtail_Possum-realized', 
	title:'JCU: Herbert River Ringtail Possum (realized)', 
	datasetTitle:'JCU_Vertebrate',
	variableTitle:'Herbert River Ringtail Possum',
	ownerTitle: 'JCU',
	visible: false,
	legendUrl:'/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=10&LAYER=ea:JCU_Vertebrate-Herbert_River_Ringtail_Possum-realized',
	priority: 0,
	baseLayer:false,
	query:true,
	core:false },	
{ layerName:'ea:JCU_Vertebrate-Lace_Monitor-realized', 
	title:'JCU: Lace Monitor distribution (realized)', 
	datasetTitle:'JCU_Vertebrate',
	variableTitle:'Lace Monitor',
	ownerTitle: 'JCU',
	visible: false,
	legendUrl:'/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=10&LAYER=ea:JCU_Vertebrate-Lace_Monitor-realized',
	priority: 0,
	baseLayer:false,
	query:true,
	core:false },
{ layerName:'ea:JCU_Vertebrate-Platypus-realized', 
	title:'JCU: Platypus distribution (realized)', 
	datasetTitle:'JCU_Vertebrate',
	variableTitle:'Platypus',
	ownerTitle: 'JCU',
	visible: false,
	legendUrl:'/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=10&LAYER=ea:JCU_Vertebrate-Platypus-realized',
	priority: 0,
	baseLayer:false,
	query:true,
	core:false },
{ layerName:'ea:JCU_Vertebrate-Satin_Bowerbird-realized', 
	title:'JCU: Satin Bowerbird distribution (realized)', 
	datasetTitle:'JCU_Vertebrate',
	variableTitle:'Satin Bowerbird',
	ownerTitle: 'JCU',
	visible: false,
	legendUrl:'/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=10&LAYER=ea:JCU_Vertebrate-Satin_Bowerbird-realized',
	priority: 0,
	baseLayer:false,
	query:true,
	core:false },	
{ layerName:'ea:CoralID-14_Acropora_carduus', 
	title:'AIMS: Coral ID: Acropora.carduus', 
	datasetTitle:'<a href="/content/aims-coral-id-online">AIMS_CoralID</a>',
	variableTitle:'Acropora.carduus',
	legendTitleOverwrite:'<a href="http://data.aims.gov.au/coralpages/HTML/001-100/Species%20pages/14.htm">Species page</a>',
	ownerTitle: 'AIMS',
	visible: false,
	legendUrl:'/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=ea:CoralID-14_Acropora_carduus&LEGEND_OPTIONS=forceLabels:On',
	priority: 0,
	baseLayer:false,
	query:false,
	core:false },	
{ layerName:'ea:CoralID-15_Acropora_caroliniana', 
	title:'AIMS: Coral ID: Acropora.caroliniana', 
	datasetTitle:'<a href="/content/aims-coral-id-online">AIMS_CoralID</a>',
	variableTitle:'Acropora.caroliniana',
	legendTitleOverwrite:'<a href="http://data.aims.gov.au/coralpages/HTML/001-100/Species%20pages/15.htm">Species page</a>',
	ownerTitle: 'AIMS',
	visible: false,
	legendUrl:'/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=ea:CoralID-15_Acropora_caroliniana&LEGEND_OPTIONS=forceLabels:On',
	priority: 0,
	baseLayer:false,
	query:false,
	core:false },	
{ layerName:'ea:CoralID-ecoregions', 
	title:'AIMS: Coral ID Ecoregions', 
	datasetTitle:'<a href="/content/aims-coral-id-online">AIMS_CoralID</a>',
	variableTitle:'Ecoregions',
	legendTitleOverwrite:'',
	ownerTitle: 'AIMS',
	visible: false,
	legendUrl:'/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=ea:CoralID-ecoregions&LEGEND_OPTIONS=forceLabels:On',
	priority: 0,
	baseLayer:false,
	query:true,
	core:false },		
{ layerName:'ea:WTMA_WTWHA_09-region', 
	title:'WTMA: Wet Tropics WHA 09', 
	datasetTitle:'WTMA_WTWHA_09',
	variableTitle:'region',
	ownerTitle: 'WTMA',
	visible: false,
	legendUrl:LEGEND+'WTMA_WTWHA_09-region.png',
	priority: 2,
	baseLayer:false,
	core:true },
{ layerName:'ea:WTMA_WTWHA_zoning_09', 
	title:'WTMA: Wet Tropics WHA zoning 09', 
	datasetTitle:'WTMA_WTWHA_zoning_09',
	variableTitle:'',
	ownerTitle: 'WTMA',
	visible: false,
	//legendUrl:LEGEND+'WTMA_WTWHA_zoning_09.png',
	legendUrl:'/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=ea:WTMA_WTWHA_zoning_09',
	priority: 2,
	query:true,
	baseLayer:false,
	core:true },	
{ layerName:'ea:WTMA_Relief-SpotHeight', 
	title:'WTMA: Spot Height', 
	datasetTitle:'WTMA_Relief',
	variableTitle:'Spot Height (m)',
	ownerTitle: 'WTMA',
	visible: false,
	legendUrl:LEGEND+'WTMA_Relief-SpotHeight.png',
	priority: 2,
	baseLayer:false,
	query:true,
	queryLayers: 'ea:SpotHeight-full',
	core:true },
{ layerName:'ea:WTMA_Relief-Contour', 
	title:'WTMA: Contour', 
	datasetTitle:'WTMA_Relief',
	variableTitle:'Contour (m)',
	ownerTitle: 'WTMA',
	visible: false,
	legendUrl:LEGEND+'WTMA_Relief-Contour.png',
	priority: 2,
	baseLayer:false,
	query:true,
	queryLayers: 'ea:Contour-full',
	core:true },	
{ layerName:'ea:WTMA_Mountain-points', 
	title:'WTMA: Mountains', 
	datasetTitle:'WTMA_Mountain',
	variableTitle:'points',
	ownerTitle: 'WTMA',
	visible: false,
	legendUrl:LEGEND+'WTMA_Mountain-points.png',
	priority: 2,
	baseLayer:false,
	query:true,
	core:true },
{ layerName:'ea:EPA_cassowary-habitat', 
	title:'EPA: Cassowary habitat', 
	datasetTitle:'Cassowary habitat',
	variableTitle:'wet tropics',
	ownerTitle: 'EPA',
	visible: false,	
	legendUrl:LEGEND+'epa-cassowary-legend.png', 
	baseLayer:false,
	priority: 0,
	core:false},
{ layerName:'ea:GBRMPA_TUMRA', 
	title:'GBRMPA: Traditional Use of Marine Res. Agreement', 
	datasetTitle:'GBRMPA_TURMA',
	variableTitle:'',
	legendTitleOverwrite:'',
	ownerTitle: 'GBRMPA',
	visible: false,
	legendUrl:LEGEND+'GBRMPA_TUMRA.png',
	priority: 2,
	query:true,
	baseLayer:false,
	core:true },	
{ layerName:'ea:GBRMPA_zoning-marine_park_2003', 
	title:'GBRMPA: Marine Park Zoning', 
	datasetTitle:'Marine Park Zoning',
	variableTitle:'2003',
	ownerTitle: 'GBRMPA',
	visible: false,
	legendUrl:LEGEND+'marine_park_zoning_2003.png',  
	//legendUrl:'/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=ea:GBRMPA_zoning-marine_park_2003&LEGEND_OPTIONS=fontAntiAliasing:true;fontSize:12;fontColor:000000',
	query:true,
	priority: 2,
	baseLayer:false,
	core:true },
{ layerName:'ea:merge-GBRMPA_reefs', 
	title:'GBRMPA: Coral Reefs', 
	datasetTitle:'Coral Reefs',
	variableTitle:'Reef boundaries',
	legendTitleOverwrite:'',
	ownerTitle: 'GBRMPA',
	visible: true,
	legendUrl:LEGEND+'merge-GBRMPA_reefs.png', 
	query:true,
	queryLayers: 'ea:GBRMPA_reefs-gbr_features',
	priority: 3,
	baseLayer:false,
	core:true },	
{ layerName:'ea:QLD_DEEDI_Coastal-wetlands', 
	title:'DEEDI: Queensland coastal wetlands', 
	datasetTitle:'Queensland coastal wetlands',
	variableTitle:'Mangroves, Saline flats',
	legendTitleOverwrite:'',
	wmsUrl:'/maps/gwc/service/wms',
	visible: false,
	legendUrl:'/maps/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=ea:QLD_DEEDI_Coastal-wetlands',
	priority: 2,
	baseLayer:false,
	core:true },
{ layerName:'ea:Topo250k_2', 
	title:'GA: Topo250k_2-Foreshore, Mangrove, Saline flats', 
	datasetTitle:'Topo250k_2',
	variableTitle:'Foreshore, Mangrove, Saline flats',
	legendTitleOverwrite:'',
	visible: false,
	legendUrl:[LEGEND+'Topo250k_2-foreshore_flats-Legend.png', LEGEND+'Topo250k_2-mangrove_flats-Legend.png', LEGEND+'Topo250k_2-saline_coastal_flats-Legend.png'],
	priority: 2,
	baseLayer:false,
	core:true },
{ layerName:'ea:Coast100k-Australian_coast-Light', 
	title:'GA:Coast100k-Australian Coast-Light', 
	datasetTitle:'Coast100k',
	variableTitle:'Austrlian Coast',
	legendTitleOverwrite:'',
	ownerTitle: 'GA',
	visible: false,
	//legendUrl:,
	priority: 3,
	baseLayer:false,
	core:true },	
{ layerName:'ea:Coast100k-Australian_coast-Dark', 
	title:'GA: Coast100k-Australian Coast-Dark', 
	datasetTitle:'Coast100k',
	variableTitle:'Austrlian Coast',
	legendTitleOverwrite:'',
	ownerTitle: 'GA',
	visible: true,
	//legendUrl:,
	priority: 3,
	baseLayer:false,
	core:true },
{ layerName:'ea:Natural_Earth_Data-10m-cities', 
	title:'Natural Earth Data:Cities', 
	datasetTitle:'Natural Earth Data',
	variableTitle:'Cities',
	legendTitleOverwrite:'',
	ownerTitle: 'Natural Earth Data',
	visible: true,
	query:true,
	queryLayers: 'ea:Natural_Earth_Data-10m-cities',
	priority: 3,
	baseLayer:false,
	core:true },	

{ layerName:'AIMS-LTMP_reports',
	layerType: 'KML',
	kmlUrl: KMLS+'cruisereportkml.kml',
	title:'AIMS: Long Term Monitoring Program Site Reports',
	datasetTitle:'AIMS LTMP',
	variableTitle:'Reef reports',
	visible: false,
	priority: 2,
	baseLayer:false,
	core:true },	
{ layerName:'ReefCheck_Australia',
	layerType: 'KML',
	kmlUrl: KMLS+'staticDiveSiteList.kml',
	title:'Reef Check Australia: Reports',
	datasetTitle:'Reef Check Australia',
	variableTitle:'Reef reports',
	legendTitleOverview:'',
	visible: false,
	priority: 2,
	baseLayer:false,
	core:true },	
{ layerName:'EnTox_Pesticide-Toxic_Equiv',
	layerType: 'KML',
	kmlUrl: KMLS+'avg_wet_season_herbicide_toxic_equiv-2005_2008.kml',
	title:'Entox: Avg. Wet Season Herbicide Toxic Equivalency',
	ownerTitle: 'EnTox (UQ)',
	datasetTitle:'<a href="http://e-atlas.org.au/content/pesticide-monitoring-inshore-great-barrier-reef-reef-water-quality-marine-monitoring-program">Pesticide monitoring - <br>Reef Water Quality <br>Marine Monitoring Program</a>',
	variableTitle:'Average wet season herbicide<br>toxic equivalency 2005-2008 (ng/l)',
	legendUrl:LEGEND+'EnTox_Pesticide-legend-ng_per_l.png', 
	visible: false,
	priority: 2,
	baseLayer:false,
	core: true },
{ layerName:'EnTox_Pesticide-Conc',
	layerType: 'KML',
	kmlUrl: KMLS+'avg_wet_season_herbicide_conc-2005_2008.kml',
	title:'Entox: Avg. Wet Season Herbicide Concentration',
	ownerTitle: 'EnTox (UQ)',
	datasetTitle:'<a href="http://e-atlas.org.au/content/pesticide-monitoring-inshore-great-barrier-reef-reef-water-quality-marine-monitoring-program">Pesticide monitoring - <br>Reef Water Quality <br>Marine Monitoring Program</a>',
	variableTitle:'Average wet season herbicide<br>concentration 2005-2008 (ng/l)',
	legendUrl:LEGEND+'EnTox_Pesticide-legend-ng_per_l.png',
	visible: false,
	priority: 2,
	baseLayer:false,
	core: true },	
{ layerName:'ea:Topo250k_2-foreshore_flats', 
	title:'GA:Topo250k_2-Foreshore flats', 
	datasetTitle:'Topo250k_2',
	variableTitle:'Foreshore flats',
	legendTitleOverwrite:'',
	ownerTitle: 'GBRMPA',
	visible: false,
	legendUrl:LEGEND+'Topo250k_2-foreshore_flats-Legend.png', 
	priority: 1,
	baseLayer:false,
	core:false },
{ layerName:'ea:Topo250k_2-mangrove_flats', 
	title:'GA:Topo250k_2-Mangrove flats',
	datasetTitle:'Topo250k_2',
	variableTitle:'Mangrove flats',
	legendTitleOverwrite:'',
	ownerTitle: 'GBRMPA',	
	visible: false,
	legendUrl:LEGEND+'Topo250k_2-mangrove_flats-Legend.png', 
	priority: 1,
	baseLayer:false,
	core:false },
{ layerName:'ea:Topo250k_2-saline_coastal_flats', 
	title:'GA:Topo250k_2-Saline coastal flats', 
	datasetTitle:'Topo250k_2',
	variableTitle:'Saline coastal flats',
	legendTitleOverwrite:'',
	ownerTitle: 'GBRMPA',
	visible: false,
	legendUrl:LEGEND+'Topo250k_2-saline_coastal_flats-Legend.png', 
	priority: 1,
	baseLayer:false,
	core:false }

];

