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('Limites Administrativos (CAOP)', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_concelhos',type: 'png',globalid: '362;1',id_layer: '435'},{opacity: 1,isBaseLayer: true,displayInLayerSwitcher: true,visibility: true,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: app.optionsLayer.scales,resolutions: app.optionsLayer.resolutions,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _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: 'oeiras_ortos_2009',type: 'png',globalid: '363;2',id_layer: '436'},{opacity: 1,isBaseLayer: true,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: app.optionsLayer.scales,resolutions: app.optionsLayer.resolutions,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _1TMS.events.register('visibilitychanged', _1TMS, onChangeVisibilityLayer );var _2TMS = new OpenLayers.Layer.TMS('Cartografia', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_cartografia',type: 'png',id_layer: '437'},{maxScale: 1000,minScale: 10000,opacity: 1,isBaseLayer: true,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 landscape oeiras',scales: app.optionsLayer.scales,resolutions: app.optionsLayer.resolutions,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _2TMS.events.register('visibilitychanged', _2TMS, onChangeVisibilityLayer ); return[_0TMS,_1TMS,_2TMS]}function getOverLayers(){var _3TMS = new OpenLayers.Layer.TMS('Edificado', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_equipamentos_edificado',type: 'png',id_layer: '455'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _3TMS.events.register('visibilitychanged', _3TMS, onChangeVisibilityLayer );var _4TMS = new OpenLayers.Layer.TMS('Rede Viária', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_pdm_rede_viaria',type: 'png',globalid: '440;35',id_layer: '440'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _4TMS.events.register('visibilitychanged', _4TMS, onChangeVisibilityLayer );var _5TMS = new OpenLayers.Layer.TMS('Rede Ferroviária', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_pdm_rede_ferroviaria',type: 'png',id_layer: '441'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _5TMS.events.register('visibilitychanged', _5TMS, onChangeVisibilityLayer );var _6TMS = new OpenLayers.Layer.TMS('Lugares', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_lugares',type: 'png',globalid: '439;34',tipoid: '34',id_layer: '439'},{maxScale: 1,minScale: 25000,opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: true,buffer: 0,singleTile: false,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _6TMS.events.register('visibilitychanged', _6TMS, onChangeVisibilityLayer );var _7TMS = new OpenLayers.Layer.TMS('Áreas e Edifícios Empresariais', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_equipamentos_areas_edificios_empresariais',type: 'png',globalid: '448;44',tipoid: '44',id_layer: '448'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _7TMS.events.register('visibilitychanged', _7TMS, onChangeVisibilityLayer );var _8TMS = new OpenLayers.Layer.TMS('Equipamentos Culturais', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_equipamentos_equip_culturais',type: 'png',globalid: '449;40',tipoid: '40',id_layer: '449'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _8TMS.events.register('visibilitychanged', _8TMS, onChangeVisibilityLayer );var _9TMS = new OpenLayers.Layer.TMS('Equipamentos Sociais', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_equipamentos_equip_sociais',type: 'png',globalid: '450;39',tipoid: '39',id_layer: '450'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _9TMS.events.register('visibilitychanged', _9TMS, onChangeVisibilityLayer );var _10TMS = new OpenLayers.Layer.TMS('Equipamentos de Saúde', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_equipamentos_equip_saude',type: 'png',globalid: '451;43',tipoid: '43',id_layer: '451'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _10TMS.events.register('visibilitychanged', _10TMS, onChangeVisibilityLayer );var _11TMS = new OpenLayers.Layer.TMS('Equipamentos Desportivos', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_equipamentos_equip_desportivos',type: 'png',globalid: '452;42',tipoid: '42',id_layer: '452'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _11TMS.events.register('visibilitychanged', _11TMS, onChangeVisibilityLayer );var _12TMS = new OpenLayers.Layer.TMS('Equipamentos Educativos', ['http://cache1.municipia.pt/cache/','http://cache2.municipia.pt/cache/','http://cache3.municipia.pt/cache/','http://cache4.municipia.pt/cache/'],{layername: 'oeiras_equipamentos_equip_educativos',type: 'png',globalid: '453;41',tipoid: '41',id_layer: '453'},{opacity: 1,isBaseLayer: false,displayInLayerSwitcher: true,visibility: false,buffer: 0,queryable: false,crossable: false,printpdm: false,layout_printpdm: 'A4 portrait',scales: null,resolutions: null,maxResolution: app.optionsLayer.maxResolution,index_highlight: -1});  _12TMS.events.register('visibilitychanged', _12TMS, onChangeVisibilityLayer ); return[_3TMS,_4TMS,_5TMS,_6TMS,_7TMS,_8TMS,_9TMS,_10TMS,_11TMS,_12TMS]}function getControls(){var controls = {};controls.navigation=true;controls.get_information=false;controls.measure=true;controls.draw_polygon=true;controls.print_visible=true;controls.print_pdm=false;controls.print_pip=false;controls.comboshortcut=false;controls.scalebar=true;controls.overview=true;controls.theme=false;controls.tab_layers=true;controls.tab_search=true;controls.tab_emissao_plantas_localizacao=false;controls.tab_pedidos_plantas_localizacao=false;controls.tab_estatisticos=false;controls.tab_print=false;controls.tab_help=true;controls.regulamentos=false;controls.side = 'east';return controls;}