var listApiComerciais = [];listApiComerciais[0]='';listApiComerciais[1]='';listApiComerciais[2]='';function loadApiComerciais(list){for(var i = 0; i<list.length; i++){if(list[i]!=''){var e=document.getElementsByTagName('head')[0];if(!e){e=document.body.parentNode.appendChild(document.createElement('head'))}document.write('<script src="'+list[i]+'" type="text/javascript"><\/script>')}}}loadApiComerciais(listApiComerciais);function getBaseLayers(){var _0TMS = new OpenLayers.Layer.TMS('Municípios', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'cartografiaBaseMad',type: 'png',id_layer: '685'},{opacity: 1,isBaseLayer: true,displayInLayerSwitcher: true,visibility: true,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: app.optionsLayer.scales,resolutions: app.optionsLayer.resolutions,maxResolution: app.optionsLayer.maxResolution});  _0TMS.events.register('visibilitychanged', _0TMS, onChangeVisibilityLayer );var _1TMS = new OpenLayers.Layer.TMS('Ortofotomapa', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'ortosSres',type: 'png',id_layer: '686'},{opacity: 1,isBaseLayer: true,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,scales: app.optionsLayer.scales,resolutions: app.optionsLayer.resolutions,maxResolution: app.optionsLayer.maxResolution});  _1TMS.events.register('visibilitychanged', _1TMS, onChangeVisibilityLayer ); return[_0TMS,_1TMS]}function getOverLayers(){var _2TMS = new OpenLayers.Layer.TMS('Concelhos Labels', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'concelhosLabelsMad',type: 'png',id_layer: '1031'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: false,visibility: true,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _2TMS.events.register('visibilitychanged', _2TMS, onChangeVisibilityLayer );var _3WMS = new OpenLayers.Layer.WMS('Concelhos 1991', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwms=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2Vvc2VydmVyR2VvY2lkL3dtcw==?',{service: 'WMS',version: '1.1.1',request: 'GetMap',layers: 'geocid:V2_MAD_CONCELHOS_1991',exceptions: 'application/vnd.ogc.se_inimage',format: 'image/png',transparent: true,srs: 'EPSG:2942',tiled: false,id_layer: '688'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: false,visibility: false,reproject: false,buffer: 1,singleTile: true,ratio: 1.25,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,id_estatisticos: '3_1991'});  _3WMS.events.register('visibilitychanged', _3WMS, onChangeVisibilityLayer );var _4WMS = new OpenLayers.Layer.WMS('Concelhos 2001', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwms=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2Vvc2VydmVyR2VvY2lkL3dtcw==?',{service: 'WMS',version: '1.1.1',request: 'GetMap',layers: 'geocid:V2_MAD_CONCELHOS_2001',exceptions: 'application/vnd.ogc.se_inimage',format: 'image/png',transparent: true,srs: 'EPSG:2942',tiled: false,id_layer: '689'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: false,visibility: false,reproject: false,buffer: 1,singleTile: true,ratio: 1.25,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,id_estatisticos: '3_2001'});  _4WMS.events.register('visibilitychanged', _4WMS, onChangeVisibilityLayer );var _5WMS = new OpenLayers.Layer.WMS('Freguesias 1991', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwms=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2Vvc2VydmVyR2VvY2lkL3dtcw==?',{service: 'WMS',version: '1.1.1',request: 'GetMap',layers: 'geocid:V2_MAD_FREGUESIAS_1991',exceptions: 'application/vnd.ogc.se_inimage',format: 'image/png',transparent: true,srs: 'EPSG:2942',tiled: false,id_layer: '690'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: false,visibility: false,reproject: false,buffer: 1,singleTile: true,ratio: 1.25,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,id_estatisticos: '4_1991'});  _5WMS.events.register('visibilitychanged', _5WMS, onChangeVisibilityLayer );var _6WMS = new OpenLayers.Layer.WMS('Freguesias 2001', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwms=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2Vvc2VydmVyR2VvY2lkL3dtcw==?',{service: 'WMS',version: '1.1.1',request: 'GetMap',layers: 'geocid:V2_MAD_FREGUESIAS_2001',exceptions: 'application/vnd.ogc.se_inimage',format: 'image/png',transparent: true,srs: 'EPSG:2942',tiled: false,id_layer: '691'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: false,visibility: false,reproject: false,buffer: 1,singleTile: true,ratio: 1.25,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,id_estatisticos: '4_2001'});  _6WMS.events.register('visibilitychanged', _6WMS, onChangeVisibilityLayer );var _7WMS = new OpenLayers.Layer.WMS('Freguesias 1981', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwms=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2Vvc2VydmVyR2VvY2lkL3dtcw==?',{service: 'WMS',version: '1.1.1',request: 'GetMap',layers: 'geocid:V2_MAD_FREGUESIAS_1981',exceptions: 'application/vnd.ogc.se_inimage',format: 'image/png',transparent: true,srs: 'EPSG:2942',tiled: false,id_layer: '1164'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: false,visibility: false,reproject: false,buffer: 1,singleTile: true,ratio: 1.25,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,id_estatisticos: '4_1981'});  _7WMS.events.register('visibilitychanged', _7WMS, onChangeVisibilityLayer );var _8WMS = new OpenLayers.Layer.WMS('Concelhos 1981', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwms=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2Vvc2VydmVyR2VvY2lkL3dtcw==?',{service: 'WMS',version: '1.1.1',request: 'GetMap',layers: 'geocid:V2_MAD_CONCELHOS_1981',exceptions: 'application/vnd.ogc.se_inimage',format: 'image/png',transparent: true,srs: 'EPSG:2942',tiled: false,id_layer: '1165'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: false,visibility: false,reproject: false,buffer: 1,singleTile: true,ratio: 1.25,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,id_estatisticos: '3_1981'});  _4WMS.events.register('visibilitychanged', _8WMS, onChangeVisibilityLayer );var _9WMS = new OpenLayers.Layer.WMS('Freguesias 1970', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwms=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2Vvc2VydmVyR2VvY2lkL3dtcw==?',{service: 'WMS',version: '1.1.1',request: 'GetMap',layers: 'geocid:V2_MAD_FREGUESIAS_1970',exceptions: 'application/vnd.ogc.se_inimage',format: 'image/png',transparent: true,srs: 'EPSG:2942',tiled: false,id_layer: '1166'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: false,visibility: false,reproject: false,buffer: 1,singleTile: true,ratio: 1.25,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,id_estatisticos: '4_1970'});  _9WMS.events.register('visibilitychanged', _9WMS, onChangeVisibilityLayer );var _10WMS = new OpenLayers.Layer.WMS('Concelhos 1970', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwms=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2Vvc2VydmVyR2VvY2lkL3dtcw==?',{service: 'WMS',version: '1.1.1',request: 'GetMap',layers: 'geocid:V2_MAD_CONCELHOS_1970',exceptions: 'application/vnd.ogc.se_inimage',format: 'image/png',transparent: true,srs: 'EPSG:2942',tiled: false,id_layer: '1167'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: false,visibility: false,reproject: false,buffer: 1,singleTile: true,ratio: 1.25,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,id_estatisticos: '3_1970'});  _10WMS.events.register('visibilitychanged', _10WMS, onChangeVisibilityLayer );var _11WMS = new OpenLayers.Layer.WMS('Freguesias 1960', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwms=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2Vvc2VydmVyR2VvY2lkL3dtcw==?',{service: 'WMS',version: '1.1.1',request: 'GetMap',layers: 'geocid:V2_MAD_FREGUESIAS_1960',exceptions: 'application/vnd.ogc.se_inimage',format: 'image/png',transparent: true,srs: 'EPSG:2942',tiled: false,id_layer: '1168'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: false,visibility: false,reproject: false,buffer: 1,singleTile: true,ratio: 1.25,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,id_estatisticos: '4_1960'});  _11WMS.events.register('visibilitychanged', _11WMS, onChangeVisibilityLayer );var _12WMS = new OpenLayers.Layer.WMS('Concelhos 1960', OpenLayers.ProxyHost + 'handler/munwebgis.sync?urlwms=aHR0cDovL3dlYnNlcnZlci0yOjg5ODkvZ2Vvc2VydmVyR2VvY2lkL3dtcw==?',{service: 'WMS',version: '1.1.1',request: 'GetMap',layers: 'geocid:V2_MAD_CONCELHOS_1960',exceptions: 'application/vnd.ogc.se_inimage',format: 'image/png',transparent: true,srs: 'EPSG:2942',tiled: false,id_layer: '1169'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: false,visibility: false,reproject: false,buffer: 1,singleTile: true,ratio: 1.25,queryable: false,crossable: false,printpdm: false,scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,id_estatisticos: '3_1960'});  _12WMS.events.register('visibilitychanged', _12WMS, onChangeVisibilityLayer );return[_2TMS,_3WMS,_4WMS,_5WMS,_6WMS,_7WMS,_8WMS,_9WMS,_10WMS,_11WMS,_12WMS]}function getControls(){var controls = {};controls.navigation=true;controls.get_information=false;controls.measure=false;controls.draw_polygon=false;controls.print_visible=true;controls.print_pdm=false;controls.print_pip=false;controls.comboshortcut=true;controls.scalebar=true;controls.overview=true;controls.theme=false;controls.tab_layers=true;controls.tab_search=false;controls.tab_emissao_plantas_localizacao=false;controls.tab_pedidos_plantas_localizacao=false;controls.tab_estatisticos=true;controls.tab_print=false;controls.tab_help=true;controls.regulamentos=false;controls.side = 'east';return controls;}
