//---------------------------------------------------------------
// dbgtData.js v.1.5a
// Copyright (C) 2002 David Bollinger (davebollinger@hotmail.com)
//
// Support code for the 'dbGroupToc' modification - A grouped
// table of contents for ArcIMS 3.1+ HTML viewer sites.
//
// Notice:   This code may be freely distributed, used and
//           modified provided that this comment remains intact.
//---------------------------------------------------------------

var toc = new TOCNR('','',false,'');

var grpLey= toc.addGroup( new ITEM('<b>Leyenda</b>', null, 'metadatos/Leyenda.html') );
var grpWMS = toc.addGroup( new GROUPNV('<b>Servicios WMS (Web Map Service)</b>',false, null, 'metadatos/wms.html') );
var grpWMSN = grpWMS.addGroup( new GROUPNV('<b>Nacionales</b>',false, null, 'metadatos/wms_Nacionales.html') );
var grpWMSR = grpWMS.addGroup( new GROUPNV('<b>Regionales</b>',false, null, 'metadatos/wms_Regionales.html') );
var grpWMSCH = grpWMS.addGroup( new GROUPNV('<b>Confederaciones Hidrográficas</b>',false, null, 'metadatos/wms_CH.html') );
var grpWMSL = grpWMS.addGroup( new GROUPNV('<b>Locales</b>',false, null, 'metadatos/wms_Locales.html') );

grpWMSCH.addLayer( new LAYERWMS('CHE1', 'CH-Ebro: Referencia', '',null,null,'metadatos/wms_CHE-Referencia.html', 14) );
grpWMSCH.addLayer( new LAYERWMS('CHE0', 'CH-Ebro: IPA', '',null,null,'metadatos/wms_CHE-IPA.html', 13) );
grpWMSCH.addLayer( new LAYERWMS('CHE2', 'CH-Ebro: Expedientes', '',null,null,'metadatos/wms_CHE-EXP.html', 27) );
grpWMSCH.addLayer( new LAYERWMS('CHE3', 'CH-Ebro: Hidrología', '',null,null,'metadatos/wms_CHE-HIDRO.html', 28) );
grpWMSCH.addLayer( new LAYERWMS('CHE4', 'CH-Ebro: DMA', '',null,null,'metadatos/wms_CHE-DMA.html', 29) );

grpWMSL.addLayer( new LAYERWMS('IDE-ZarRef', 'IDE - Zaragoza Referencia', '',null,null,'metadatos/wms_IDEZar-Ref.html', 16) );
grpWMSL.addLayer( new LAYERWMS('IDE-ZarUrb', 'IDE - Zaragoza Urbana', '',null,null,'metadatos/wms_IDEZar-Urb.html', 12) );
grpWMSL.addLayer( new LAYERWMS('SIGUrz', 'SIG Urbanismo Zaragoza', '',null,null,'metadatos/wms_SigGurz.html', 18) );
grpWMSR.addLayer( new LAYERWMS('IDE-R', 'IDE - Rioja', '',null,null,'metadatos/wms_IDE-R.html', 11) );
grpWMSR.addLayer( new LAYERWMS('IDE-CyL', 'IDE - Castilla y León', '',null,null,'metadatos/wms_SIT-Cyl.html', 10) );
grpWMSR.addLayer( new LAYERWMS('IDE-CV', 'IDE - Comunidad Valenciana', '',null,null,'metadatos/wms_IDE-CV.html', 9) );
grpWMSR.addLayer( new LAYERWMS('IDE-NA', 'IDE - Comunidad Foral de Navarra', '',null,null,'metadatos/wms_IDE-CFN.html', 8) );
grpWMSN.addLayer( new LAYERWMS('Cartociudad1', 'CartoCiudad', '',null,null,'metadatos/wms_Cartociudad.html', 6) );
grpWMSN.addLayer( new LAYERWMS('Cartociudad2', 'Mº Justicia: Partidos Judiciales', '',null,null,'metadatos/wms_PartidoJudicial.html', 7) );
grpWMSN.addLayer( new LAYERWMS('Vivienda', 'Mº Vivienda - SIU España', '',null,null,'metadatos/wms_SIUa.html', 5) );
grpWMSN.addLayer( new LAYERWMS('IGN3', 'IGME: Mapa Litología 1.000.000', '',null,null,'metadatos/wms_Litologico.html', 17) );
grpWMSN.addLayer( new LAYERWMS('IGN2', 'IGME: Mapa Geología 1.000.000', '',null,null,'metadatos/wms_Geologico.html', 15) );
grpWMSN.addLayer( new LAYERWMS('IGN1', 'IGN: Redes geodésicas', '',null,null,'metadatos/wms_RedGeodesicaIGN.html', 4) );
grpWMSN.addLayer( new LAYERWMS('IGN0', 'IGN: Unidades estadísticas', '',null,null,'metadatos/wms_INE_UdEstadisticas.html', 3) );
grpWMSN.addLayer( new LAYERWMS('OVC', 'Sede Electrónica de Catastro', '',null,null,'metadatos/wms_Catastro.html', 2) );
grpWMSN.addLayer( new LAYERWMS('SIGPAC', 'SIGPAC', '',null,null,'metadatos/wms_SIGPAC.html', 1) );

var grpCartografiaReferencia = toc.addGroup( new GROUP('<b>Cartografía Referencia</b>',false, null, 'metadatos/referencia.html') );

var grpCuadriculaUTM = new GROUPVL('Hojas 50-5',true, null, 'metadatos/hojas_50_5.html');
grpCuadriculaUTM.addLayer( new LAYER('Cuadricula 1:50000',null,'') );
grpCuadriculaUTM.addLayer( new LAYER('Cuadricula 1:5000',null,'') );

grpCartografiaReferencia.addGroup(grpCuadriculaUTM);

grpCartografiaReferencia.addLayer( new LAYER('Cuadricula UTM 10 Km','Cuadrícula UTM 10 Km','',null,null,'metadatos/cuadricula10000.html') );

var grpCAra = toc.addGroup (new GROUP01VLNV('<b>Cartografía Base<b>',false,null,'metadatos/base.html') );

var grpC300000 = new GROUPNV('<b>Mapa General<b>',false,null,'metadatos/c300000.html');

var grpToponimia= new GROUPVL('Toponimia',true, null, 'metadatos/base.html');
grpToponimia.addLayer( new LAYER('Toponimia de Aragon',null,'') );
grpToponimia.addLayer( new LAYER('Toponimos de Provincia',null,'') );
grpToponimia.addLayer( new LAYER('Toponimos de Comarcas',null,'') );
grpToponimia.addLayer( new LAYER('Toponimos de Municipios',null,'') );

var grpConstrucciones= new GROUPVL('Edificaciones',true, null, 'metadatos/edificaciones.html');
grpConstrucciones.addLayer( new LAYER('Manzanas de Catastro Urbana',null,'') );
grpConstrucciones.addLayer( new LAYER('Depuradoras',null,'') );
grpConstrucciones.addLayer( new LAYER('Poligonos Industriales 2008',null,'') );
grpConstrucciones.addLayer( new LAYER('Edificaciones Religiosas',null,'') );
grpConstrucciones.addLayer( new LAYER('Zonas Verdes Urbanas',null,'') );

var grpRedTransporte = new GROUPVL('Redes de Transporte',true, null, 'metadatos/transporte.html');
grpRedTransporte.addLayer( new LAYER('Ferrocarril',null,'') );
grpRedTransporte.addLayer( new LAYER('Red de carreteras sin Capitales de Provincia',null,'') );
grpRedTransporte.addLayer( new LAYER('Red de carreteras 1:300000',null,'') );
grpRedTransporte.addLayer( new LAYER('Red basica de carreteras',null,'') );

var grpPuentes = new GROUPVL('Puentes',false, null, 'metadatos/puentes.html');
grpPuentes.addLayer( new LAYER('Puentes',null,'') );

var grpHidrografia= new GROUPVL('Hidrografía',true, null, 'metadatos/hidrografia.html');
grpHidrografia.addLayer( new LAYER('Embalses, Lagos y Lagunas 1:300000',null,'') );
grpHidrografia.addLayer( new LAYER('Rios 1:300000',null,'') );
grpHidrografia.addLayer( new LAYER('Toponimos de Rios',null,'') );

var grpHipsografia = new GROUPVL('Curvas de Nivel',true, null, 'metadatos/curvas.html');
grpHipsografia.addLayer( new LAYER('Altimetria 1:100000',null,'') );
grpHipsografia.addLayer( new LAYER('Altimetria 1:5000',null,'') );

var grpNucleos = new GROUPVL('Núcleos de población',true, null, 'metadatos/nucleos.html');
grpNucleos.addLayer( new LAYER('Nucleos de poblacion INE',null,'') );
grpNucleos.addLayer( new LAYER('Nucleos de poblacion Aragon',null,'') );
grpNucleos.addLayer( new LAYER('Capitales de Provincia',null,'') );
grpNucleos.addLayer( new LAYER('Capitales de Comarca',null,'') );
grpNucleos.addLayer( new LAYER('Toponimos Capital Provicia',null,'') );

var grpC5000= new GROUPNV('<b>Cartografía Aragón 1:5.000<b>',false,null,'metadatos/c5000.html');

var grpCartografia5000= new GROUPVL01('Cartografía 1:5.000 Disponible',false,null,'metadatos/c5000.html');

grpCartografia5000.addLayer( new LAYER('Cartografia 1:5000 Disponible',null,'') );

var grpPlanimetria= new GROUPVL01('Planimetría 1:5.000',false,null,'metadatos/planimetria.html');

grpPlanimetria.addLayer( new LAYER('Planimetria 5000',null,'') );
grpPlanimetria.addLayer( new LAYER('Usos del Suelo 5000 Anotacion',null,'') );
grpPlanimetria.addLayer( new LAYER('Planimetria 1:5000 No Disponible',null,'') );

var grpAltimetria= new GROUPVL01('Altimetría 1:5.000',false,null,'metadatos/altimetria.html');

grpAltimetria.addLayer( new LAYER('Curvas Directoras 5000',null,'') );
grpAltimetria.addLayer( new LAYER('Curvas de Nivel 5000',null,'') );
grpAltimetria.addLayer( new LAYER('Formas de Relieve 5000 Linea',null,'') );
grpAltimetria.addLayer( new LAYER('Altimetria 5000 Punto',null,'') );
grpAltimetria.addLayer( new LAYER('Altimetria 1:5000 No Disponible',null,'') );

var grpC1000=new GROUP('<b>Cartografía Urbana 1:1.000<b>',false,null,'metadatos/c1000.html');
grpC1000.addGroup( new ITEM('Lista de Núcleos Disponibles', null, 'CoberturaCartografia1000_Nucleos.html') );

var grpCartografia1000= new GROUPVL01('Cartografía 1:1.000 Disponible',false,null,'metadatos/c1000.html');
grpCartografia1000.addLayer( new LAYER('Cartografia 1:1000 Disponible por Municipio',null,'') );
grpCartografia1000.addLayer( new LAYER('Cartografia 1:1000 Disponible por Nucleo',null,'') );

var grpPlani1000= new GROUPVL01('Planimetría 1:1.000',false,null,'metadatos/p1000.html');
grpPlani1000.addLayer( new LAYER('Planimetria 1000 Huesca',null,'') );
grpPlani1000.addLayer( new LAYER('Planimetria 1000 Zaragoza',null,'') );
grpPlani1000.addLayer( new LAYER('Planimetria 1000 Teruel',null,'') );

var grpAlti1000= new GROUPVL01('Altimetría 1:1.000',false,null,'metadatos/a1000.html');
grpAlti1000.addLayer( new LAYER('Altimetria 1000 Huesca',null,'') );
grpAlti1000.addLayer( new LAYER('Altimetria 1000 Zaragoza',null,'') );
grpAlti1000.addLayer( new LAYER('Altimetria 1000 Teruel',null,'') );

grpC300000.addGroup(grpToponimia);
grpC300000.addGroup(grpConstrucciones);
grpC300000.addGroup(grpRedTransporte);
grpC300000.addGroup(grpPuentes);
grpC300000.addGroup(grpHidrografia);
grpC300000.addGroup(grpHipsografia);
grpC300000.addGroup(grpNucleos);

grpC5000.addGroup(grpCartografia5000);
grpC5000.addGroup(grpPlanimetria);
grpC5000.addGroup(grpAltimetria);

grpC1000.addGroup(grpCartografia1000);
grpC1000.addGroup(grpPlani1000);
grpC1000.addGroup(grpAlti1000);

grpCAra.addGroup (grpC300000);
grpCAra.addGroup (grpC5000);
grpCAra.addGroup (grpC1000);

var grpCallejero = toc.addGroup( new GROUP('<b>Callejero</b>',false, null, 'metadatos/callejero.html') );
var grpCallesNumeros = new GROUPVL('Calles y Números de Portal',false, null, 'metadatos/calles.html');
grpCallesNumeros.addLayer( new LAYER('Calles de Catastro Urbana',null,'') );
grpCallesNumeros.addLayer( new LAYER('Plazas de Catastro Urbana',null,'') );
grpCallesNumeros.addLayer( new LAYER('Numeros de Portal de Catastro de Urbana',null,'') );
grpCallesNumeros.addLayer( new LAYER('Paseos y Avenidas',null,'') );
grpCallesNumeros.addLayer( new LAYER('Calles Mayores',null,'') );
var PortalSIGUrz = new LAYERWMS('SIGUrz', 'Números de Portal Ayto. Zaragoza', '',null,null,'metadatos/wms_SigGurz.html', 19) ;

//grpWMSL.addLayer( new LAYERWMS('SIGUrz', 'SIG Urbanismo Zaragoza', '',null,null,'metadatos/wms_SigGurz.html', 18) );

PortalSIGUrz.setVisible(true);
grpCallejero.addLayer(PortalSIGUrz);

grpCallejero.addGroup(grpCallesNumeros);

var fVueloQuery = new Array();
var textoFondoArray = new Array();

var grpOrtofotosH = toc.addGroup( new GROUP01NV('<b>Series de ortofotos</b>',false, null, 'metadatos/ortofotos.html') );

grpOrtofotosH.addLayer( new LAYERWMS('Ortofoto Año 1997-98 b/n', 'SIG Oleícola Año 1997-98 b/n', '',null,null,'metadatos/ortofoto1998.html', 20, 'changeFondoFoto') );
fVueloQuery[20] = "DENOMINA LIKE('SIG Oleicola A%o 1998')";
textoFondoArray[20] = "SIG Oleicola Año 1998";
grpOrtofotosH.addLayer( new LAYERWMS('Plan Cartografico Año 1997-2002 color', 'Plan Cartografico Año 1997-2002 color', '',null,null,'metadatos/ortofoto2000.html', 21, 'changeFondoFoto') );
fVueloQuery[21] = "DENOMINA LIKE('Plan Cartografico de Aragon A%o 2000')";
textoFondoArray[21] = "Plan Cartografico de Aragon Año 2000";
grpOrtofotosH.addLayer( new LAYERWMS('FEGA Año 2003 color', 'FEGA Año 2003 color', '',null,null,'metadatos/ortofoto2003.html', 22, 'changeFondoFoto') );
fVueloQuery[22] = "DENOMINA LIKE('FEGA A%o 2003')";
textoFondoArray[22] = "FEGA Año 2003";
grpOrtofotosH.addLayer( new LAYERWMS('Ortofoto PNOA Año 2006 color', 'PNOA Aragón Año 2006 color', '',null,null,'metadatos/ortofoto2006.html', 23, 'changeFondoFoto') );
fVueloQuery[23] = "DENOMINA LIKE('PNOA A%o 2006')";
textoFondoArray[23] = "Ortofoto PNOA Año 2006 color";
grpOrtofotosH.addLayer( new LAYERWMS('Ortofoto Zaragoza Año 2007 color', 'Zaragoza Año 2007 color', '',null,null,'metadatos/ortozgz2007.html', 24, 'changeFondoFoto') );
fVueloQuery[24] = "DENOMINA LIKE('IMPOSIBLE DE ENCONTRAR')";
textoFondoArray[24] = "Ortofoto Zaragoza Año 2007 color";
grpOrtofotosH.addLayer( new LAYERWMS('Ortofoto Zaragoza Año 2008 color', 'Zaragoza Año 2008 color', '',null,null,'metadatos/ortocap2008.html', 25, 'changeFondoFoto') );
fVueloQuery[25] = "DENOMINA LIKE('IMPOSIBLE DE ENCONTRAR')";
textoFondoArray[25] = "Ortofoto Zaragoza Año 2008 color";
grpOrtofotosH.addLayer( new LAYERWMS('Ortofoto Huesca Año 2008 color', 'Huesca Año 2008 color', '',null,null,'metadatos/ortocap2008.html', 26, 'changeFondoFoto') );
fVueloQuery[26] = "DENOMINA LIKE('IMPOSIBLE DE ENCONTRAR')";
textoFondoArray[26] = "Ortofoto Huesca Año 2008 color";
grpOrtofotosH.addLayer( new LAYERWMS('Ortofoto Teruel Año 2008 color', 'Teruel Año 2008 color', '',null,null,'metadatos/ortocap2008.html', 31, 'changeFondoFoto') );
fVueloQuery[31] = "DENOMINA LIKE('IMPOSIBLE DE ENCONTRAR')";
textoFondoArray[31] = "Ortofoto Teruel Año 2008 color";
grpOrtofotosH.addLayer( new LAYERWMS('Ortofoto Matarraña Año 2008 color', 'Matarraña Año 2008 color', '',null,null,'metadatos/ortomat2008.html', 32, 'changeFondoFoto') );
fVueloQuery[32] = "DENOMINA LIKE('IMPOSIBLE DE ENCONTRAR')";
textoFondoArray[32] = "Ortofoto Matarraña Año 2008 color";
grpOrtofotosH.addLayer( new LAYERWMS('Ortofoto PNOA Año 2009 color', 'PNOA Aragón Año 2009 color', '',null,null,'metadatos/ortofoto2009.html', 33, 'changeFondoFoto') );
fVueloQuery[33] = "DENOMINA LIKE('PNOA A%o 2009')";
textoFondoArray[33] = "Ortofoto PNOA Año 2009 color";

var grpCartografiaCatastro = toc.addGroup( new GROUPNV('<b>Catastro / SIGPAC</b>',false, null, 'metadatos/catastro.html') );

var grpCatastroUrbana = new GROUPVL('Parcelario de Urbana',true, null, 'metadatos/cat_u.html');
grpCatastroUrbana.addLayer( new LAYER('Parcelas de Catastro Urbana',null,'') );
grpCatastroUrbana.addLayer( new LAYER('Busqueda Parcelas Catastro Urbana',null,'') );

var grpCatastroRustica = new GROUPVL('Parcelario de Rústica',true, null, 'metadatos/cat_r.html');
grpCatastroRustica.addLayer( new LAYER('Subparcelas de Catastro Rustica',null,'') );
grpCatastroRustica.addLayer( new LAYER('Parcelas Catastro Rustica',null,'') );

var grpSIGPAC = new GROUPVL('Parcelario SIGPAC',true, null, 'metadatos/sigpac.html');
grpSIGPAC.addLayer( new LAYER('Recintos Catastro Rustica SIGPAC',null,'') );
grpSIGPAC.addLayer( new LAYER('Parcelas Catastro Rustica SIGPAC',null,'') );

var grpREGVIT = new GROUPVL('Registro Vitícola Año 1994',true, null, 'metadatos/regvic.html');
grpREGVIT.addLayer( new LAYER('Registro Viticola 1994','Registro Vitícola año 1994',null,'') );

grpCartografiaCatastro.addGroup(grpCatastroUrbana);
grpCartografiaCatastro.addGroup(grpCatastroRustica);
grpCartografiaCatastro.addGroup(grpSIGPAC);
grpCartografiaCatastro.addGroup(grpREGVIT);

var grpMedioambiente= toc.addGroup( new GROUPNV('<b>Medio Ambiente</b>',false, null, 'metadatos/mambiente.html') );

var grpDPF= new GROUP('Montes',false, null, 'metadatos/dpf.html');
grpDPF.addLayer( new LAYERWMS('MONTES','Montes gestionados Gobierno Aragón','',null,null,'metadatos/dpf.html', 49) );
grpDPF.addLayer( new LAYERWMS('CONSREP','Consorcios y Convenios repoblación','',null,null,'metadatos/dpf.html', 50) );
grpDPF.addLayer( new LAYERWMS('PIQUETES','Piquetes de deslinde','',null,null,'metadatos/dpf.html', 51) );
grpDPF.addLayer( new LAYERWMS('MOJONES','Mojones de montes','',null,null,'metadatos/dpf.html', 52) );
grpDPF.addLayer( new LAYERWMS('LIMMON','Líneas límite de montes','',null,null,'metadatos/dpf.html', 53) );

var grpMedioNatural = new GROUP('Espacios Naturales',false, null, 'metadatos/rna.html');
grpMedioNatural.addLayer( new LAYERWMS('ENP','ENP - Ley 6/1998','',null,null,'metadatos/enp.html', 55) );
grpMedioNatural.addLayer( new LAYERWMS('ZENP','Zonificación ENP','',null,null,'metadatos/zenp.html', 56) );
grpMedioNatural.addLayer( new LAYERWMS('PORN','PORN','',null,null,'metadatos/porn.html', 57) );
grpMedioNatural.addLayer( new LAYERWMS('ZPORNs','Zonificación PORN','',null,null,'metadatos/zporns.html', 58) );
grpMedioNatural.addLayer( new LAYERWMS('LICS','LIC','',null,null,'metadatos/lic.html', 59) );
grpMedioNatural.addLayer( new LAYERWMS('ZEPAS','ZEPAS','',null,null,'metadatos/zepas.html', 60) );
grpMedioNatural.addLayer( new LAYERWMS('ZECS','ZEC','',null,null,'metadatos/zecs.html', 61) );
grpMedioNatural.addLayer( new LAYERWMS('HMD','Humedales','',null,null,'metadatos/humedales.html', 62) );
grpMedioNatural.addLayer( new LAYERWMS('PIGS','Puntos de Interés Geológico','',null,null,'metadatos/pigs.html', 63) );
grpMedioNatural.addLayer( new LAYERWMS('ARBSING','Árboles Singulares','',null,null,'metadatos/arbsing.html', 64) );
grpMedioNatural.addLayer( new LAYERWMS('RESBIOSF','Reservas de la Biosfera','',null,null,'metadatos/resbiosf.html', 65) );
grpMedioNatural.addLayer( new LAYERWMS('PATRHUM','Patrimonio de la Humanidad (UNESCO)','',null,null,'metadatos/patrhum.html', 66) );

var grpEspeciesAmenazadas = new GROUP01NV('Especies Amenazadas',false, null, 'metadatos/fpa_appe.html');
grpEspeciesAmenazadas.addLayer( new LAYERWMS('APPE','Ámbitos de Planes de Protección','',null,null,'metadatos/appe.html', 67) );
grpEspeciesAmenazadas.addLayer( new LAYERWMS('ACRIT','Áreas críticas','',null,null,'metadatos/acrit.html', 68) );
grpEspeciesAmenazadas.addLayer( new LAYERWMS('VFLORA1','Atlas de Flora 1 Km','',null,null,'metadatos/flora.html', 69) );
grpEspeciesAmenazadas.addLayer( new LAYERWMS('VFLORA10','Atlas de Flora 10 Km','',null,null,'metadatos/flora.html', 70) );
grpEspeciesAmenazadas.addLayer( new LAYERWMS('VFAUNA10','Atlas de Fauna 10 Km','',null,null,'metadatos/fauna.html', 71) );

var grpInfraestructuras = new GROUP('Infraestructuras',true, null, 'metadatos/ma_infra.html');
grpInfraestructuras.addLayer( new LAYERWMS('MULADAR','Comederos de Aves Necrófagas','',null,null,'metadatos/ma_infra.html', 72) );

/*
var grpFlora = new GROUPNV('Flora',false,null,'metadatos/flora.html');
grpFlora.addLayer( new LAYER('BorCho','Borderea chouardii','',null,null,'metadatos/borcho.html') );
grpFlora.addLayer( new LAYER('CypCal','Cypripedium calceolus','',null,null,'metadatos/cypcal.html') );
grpFlora.addLayer( new LAYER('VelPse','Vella pseudocytisus','',null,null,'metadatos/velpse.html') );
grpFlora.addLayer( new LAYER('KraCer','Krascheninnikovia ceratoides','',null,null,'metadatos/kracer.html') );

var grpFauna = new GROUPNV('Fauna',false,null,'metadatos/fauna.html');
grpFauna.addLayer( new LAYER('FalNau','Falco naumanni','',null,null,'metadatos/falnau.html') );
grpFauna.addLayer( new LAYER('GypBar','Gypaetus barbatus','',null,null,'metadatos/gypbar.html') );
grpFauna.addLayer( new LAYER('AusPal','Austropotambius pallipes','',null,null,'metadatos/auspal.html') );
grpFauna.addLayer( new LAYER('MarAur','Margaritifera auricularia','',null,null,'metadatos/maraur.html') );
*/

var grpRTC= new GROUP('Terrenos Cinegéticos',false, null, 'metadatos/rtc.html');
grpRTC.addLayer( new LAYERWMS('VRTCC1_GEN','Terrenos Cinegéticos','',null,null,'metadatos/rtc.html', 73) );
//grpRTC.addLayer( new LAYERWMS('ENCCOT','Enclavados de Terrenos Cinegéticos','',null,null,'metadatos/cotos.html', 76) );
//grpRTC.addLayer( new LAYERWMS('VRTCC2','Terrenos No Cinegéticos','',null,null,'metadatos/cotos.html', 77) );
grpRTC.addLayer( new LAYERWMS('RCCS','Reservas de Caza y Cotos Sociales','',null,null,'metadatos/rtc.html', 74) );
grpRTC.addLayer( new LAYERWMS('ZAPS','Zonas de Adiestramiento de Perros','',null,null,'metadatos/rtc.html', 75) );

var grpPesca = new GROUP('Regulación de Pesca Continental',false, null, 'metadatos/pesca.html');
grpPesca.addLayer( new LAYERWMS('COTOSPESCA_S','Cotos Sociales de Pesca','',null,null,'metadatos/pesca.html', 76) );
grpPesca.addLayer( new LAYERWMS('COTOSPESCA_D','Cotos Deportivos de Pesca','',null,null,'metadatos/pesca.html', 77) );
grpPesca.addLayer( new LAYERWMS('VEDADOSPESCA','Vedados de Pesca','',null,null,'metadatos/pesca.html', 78) );
grpPesca.addLayer( new LAYERWMS('TRAMOS_D','Tramos de eventos deportivos de pesca','',null,null,'metadatos/pesca.html', 79) );
grpPesca.addLayer( new LAYERWMS('TRAMOS_CS','Tramos de captura y suelta','',null,null,'metadatos/pesca.html', 80) );
grpPesca.addLayer( new LAYERWMS('AGUAS_TR','Aguas declaradas habitadas por la trucha','',null,null,'metadatos/pesca.html', 81) );
grpPesca.addLayer( new LAYERWMS('AGUAS_AM','Aguas de alta montaña','',null,null,'metadatos/pesca.html', 82) );
grpPesca.addLayer( new LAYERWMS('PROHCANGREJO','Ámbito Prohibición captura cangrejo rojo','',null,null,'metadatos/pesca.html', 83) );

//var grpACP = new GROUPNV('Ámbitos condicionados de protección',false, null, 'metadatos/acp.html');
//grpACP.addLayer( new LAYERWMS('SCN','Suelos contaminados por nitratos (D. 77/1997)','',null,null,'metadatos/acp.html', 84) );
//grpACP.addLayer( new LAYERWMS('TENELE','Tendidos eléctricos (RD. 1432/2008)','',null,null,'metadatos/acp.html', 85) );
//grpACP.addLayer( new LAYERWMS('ZPENP','Zonas Influencia Socioeconómica ENP','',null,null,'metadatos/zpenp.html', 86) );

var grpVUS= new GROUPNV('Vegetación y Usos del Suelo',false, null, 'metadatos/vus.html');
grpVUS.addLayer( new LAYERWMS('MapFor50k_1997','Mapa Forestal de Aragón 1997','',null,null,'metadatos/vus.html', 84) );
grpVUS.addLayer( new LAYERWMS('MapFor50k_2004','Mapa Forestal de Aragón 2004','',null,null,'metadatos/vus.html', 85) );
grpVUS.addLayer( new LAYERWMS('MapFor50k_2009','Mapa Forestal de Aragón 2009','',null,null,'metadatos/vus.html', 86) );
grpVUS.addLayer( new LAYERWMS('HIC','Hábitats de interés comunitario','',null,null,'metadatos/vus.html', 87) );
grpVUS.addLayer( new LAYER('CLC Cambios 2000-2006','CLC Cambios 2000-2006','',null,null,'metadatos/clc_00_06.html') );
grpVUS.addLayer( new LAYER('CLC 2006 N3','CLC Año 2006 Nivel 3','',null,null,'metadatos/clc06.html') );	
grpVUS.addLayer( new LAYER('CLC2000_N3','CLC Año 2000 Nivel 3','',null,null,'metadatos/clc00.html') );
grpVUS.addLayer( new LAYER('Imagen Satelite CLC 2000','Imagen Satélite CLC 2000','',null,null,'metadatos/clc00.html') );
grpVUS.addLayer( new LAYER('CLC1990_N3','CLC Año 1990 Nivel 3','',null,null,'metadatos/clc90.html') );
grpVUS.addLayer( new LAYER('Imagen Satelite CLC 1990','Imagen Satélite CLC 1990','',null,null,'metadatos/clc90.html') );
grpVUS.addLayer( new LAYER('SIOSE_2006','SIOSE Año 2006','',null,null,'metadatos/vus.html') );

var grpGesRes= new GROUP01VLNV('Gestores de residuos',false, null, 'metadatos/gesres.html');

var grpGesRes0= new GROUPVL('Cobertura general',false,null,'metadatos/gesres.html');
grpGesRes0.addLayer( new LAYER('Gestores de Residuos','Gestores de Residuos','') );
grpGesRes0.addLayer( new LAYER('Gestores de Residuos Etiqueta','Etiqueta de Gestores de Residuos','') );

grpGesRes.addGroup(grpGesRes0);

var grpGesRes1= new GROUPVL('Transportista de Residuos Peligrosos',false,null,'metadatos/gesres.html');
grpGesRes1.addLayer( new LAYER('TRA','TRA - TRAnsportista de Residuos Peligrosos','') );
grpGesRes1.addLayer( new LAYER('TRA Etiqueta','Etiqueta de TRA','') );

grpGesRes.addGroup(grpGesRes1);

var grpGesRes2= new GROUPVL('Tratamiento de vehículos',false,null,'metadatos/gesres.html');
grpGesRes2.addLayer( new LAYER('CAT','CAT - Centro Autorizado de Tratamiento de vehículos','') );
grpGesRes2.addLayer( new LAYER('CAT Etiqueta','Etiqueta de CAT','') );

grpGesRes.addGroup(grpGesRes2);

var grpGesRes3= new GROUPVL('Residuos Peligrosos',false,null,'metadatos/gesres.html');
grpGesRes3.addLayer( new LAYER('GRP','GRP - Gestor de Residuos Peligrosos','') );
grpGesRes3.addLayer( new LAYER('GRP Etiqueta','Etiqueta de GRP','') );

grpGesRes.addGroup(grpGesRes3);

var grpGesRes4= new GROUPVL('No Peligrosos que valoriza o elimina',false,null,'metadatos/gesres.html');
grpGesRes4.addLayer( new LAYER('GNPV','GNPV - Gestor de No Peligrosos que Valoriza o elimina','') );
grpGesRes4.addLayer( new LAYER('GNPV Etiqueta','Etiqueta de GNPV','') );

grpGesRes.addGroup(grpGesRes4);

var grpGesRes5= new GROUPVL('No Peligrosos que no valoriza o elimina',false,null,'metadatos/gesres.html');
grpGesRes5.addLayer( new LAYER('GNP','GNP - Gestor de No Peligrosos que no valoriza o elimina','') );
grpGesRes5.addLayer( new LAYER('GNP Etiqueta','Etiqueta de GNP','') );

grpGesRes.addGroup(grpGesRes5);

var grpClima= new GROUP01VLNV('Clima',false, null, 'metadatos/aca.html');

var grpSumCab = new GROUP('Sumideros de Carbono',false, null, 'metadatos/sum_cab.html');
grpSumCab.addLayer( new LAYER('Sumidero Cultivos Lenosos','Cultivos Leñosos','',null,null,'metadatos/sum_cul.html') );
grpSumCab.addLayer( new LAYER('Sumidero Matorral','Matorral','',null,null,'metadatos/sum_mat.html') );
grpSumCab.addLayer( new LAYER('Sumidero Pies Arbolados','Pies Arbolados','',null,null,'metadatos/sum_pie.html') );

grpClima.addGroup(grpSumCab);


//grpMedioambiente.addGroup(grpVVPP);
grpMedioambiente.addGroup(grpClima);
grpMedioambiente.addGroup(grpMedioNatural);
grpMedioambiente.addGroup(grpEspeciesAmenazadas);
//grpEspeciesAmenazadas.addGroup(grpFlora);
//grpEspeciesAmenazadas.addGroup(grpFauna);
grpMedioambiente.addGroup(grpGesRes);
grpMedioambiente.addGroup(grpInfraestructuras);
grpMedioambiente.addGroup(grpDPF);
grpMedioambiente.addGroup(grpPesca);
grpMedioambiente.addGroup(grpRTC);
grpMedioambiente.addGroup(grpVUS);

//grpMedioambiente.addGroup(grpACP);
grpMedioambiente.addLayer( new LAYERWMS('VVVPP_R_GEN','Vías Pecuarias','',null,null,'metadatos/vvpp.html', 54) );
//var grpVVPP= new GROUPNV('Vías pecuarias',false, null, 'metadatos/vvpp.html');
//grpVVPP.addLayer( new LAYERWMS('VVVPP_R_GEN','Vías Pecuarias','',null,null,'metadatos/vvpp.html', 54) );

var grpAtlas = grpClima.addGroup( new GROUPNV('Atlas climático de Aragón',false, null, 'metadatos/aca.html') );

grpAtlas.addLayer( new LAYERWMS('MC_PRECIPITACIONANUALABS', 'P. anual absoluta', '',null,null,'metadatos/paa.html', 34, 'changeFondoFoto') );
textoFondoArray[34] = "Precipitación Anual Absoluta (mm)";
grpAtlas.addLayer( new LAYERWMS('MC_ABS_PRECIPITACIONMAXIMA24H', 'P. max 24h', '',null,null,'metadatos/pm24.html', 35, 'changeFondoFoto') );
textoFondoArray[35] = "Precipitación Máxima en 24 h. (mm)";
grpAtlas.addLayer( new LAYERWMS('MC_ABS_T&ordf;MINIMA', 'T&ordf; min abs', '',null,null,'metadatos/tmia.html', 36, 'changeFondoFoto') );
textoFondoArray[36] = "Temperatura Minima Absoluta (ºC)";
grpAtlas.addLayer( new LAYERWMS('MC_ABS_T&ordf;MEDIA', 'T&ordf; med abs', '',null,null,'metadatos/tmea.html', 37, 'changeFondoFoto') );
textoFondoArray[37] = "Temperatura Media Absoluta (ºC)";
grpAtlas.addLayer( new LAYERWMS('MC_ABS_T&ordf;MAXIMA', 'T&ordf; max abs', '',null,null,'metadatos/tmaa.html', 38, 'changeFondoFoto') );
textoFondoArray[38] = "Temperatura Maxima Absoluta (ºC)";
grpAtlas.addLayer( new LAYERWMS('MC_ABS_RADIACION100', 'Rad Abs', '',null,null,'metadatos/ra.html', 39, 'changeFondoFoto') );
textoFondoArray[39] = "Radiación Absoluta (W/m2)";
grpAtlas.addLayer( new LAYERWMS('MC_ABS_DIASHELADA', 'Número Dias Helada', '',null,null,'metadatos/dh.html', 40, 'changeFondoFoto') );
textoFondoArray[40] = "Numero de Dias de Helada'";

var grpECC = grpClima.addGroup( new GROUPNV('Escenarios de cambio climático',false, null, 'metadatos/aca.html') );

grpECC.addLayer( new LAYERWMS('MC_ECC_PCONTROL', 'P. anual med 1960-1990', '',null,null,'metadatos/ecc_pam6090.html', 41, 'changeFondoFoto') );
textoFondoArray[41] = "Precipitación Anual Media 1960-1990";
grpECC.addLayer( new LAYERWMS('MC_ECC_P204070', 'P. anual med 2040-2070', '',null,null,'metadatos/ecc_pam4070.html', 42, 'changeFondoFoto') );
textoFondoArray[42] = "Precipitación Anual Media 2040-2070";
grpECC.addLayer( new LAYERWMS('MC_ECC_TMINCONTROL', 'T&ordf; min med invierno 1960-1990', '',null,null,'metadatos/ecc_tmin6090.html', 43, 'changeFondoFoto') );
textoFondoArray[43] = "Temperatura minima media invierno (ºC) - 1960-1990";
grpECC.addLayer( new LAYERWMS('MC_ECC_TMIN204070', 'T&ordf; min med invierno 2040-2070', '',null,null,'metadatos/ecc_tmin4070.html', 44, 'changeFondoFoto') );
textoFondoArray[44] = "Temperatura minima media invierno (ºC) 2040-2070";
grpECC.addLayer( new LAYERWMS('MC_ECC_TMAXCONTROL', 'T&ordf; med max verano 1960-1990', '',null,null,'metadatos/ecc_tmax6090.html', 45, 'changeFondoFoto') );
textoFondoArray[45] = "Temperatura media máxima verano (ºC) - 1960-1990";
grpECC.addLayer( new LAYERWMS('MC_ECC_TMAX204070', 'T&ordf; med max verano 2040-2070', '',null,null,'metadatos/ecc_tmax4070.html', 46, 'changeFondoFoto') );
textoFondoArray[46] = "Temperatura media máxima verano (ºC) 2040-2070";
grpECC.addLayer( new LAYERWMS('MC_ECC_TMEDCONTROL', 'T&ordf; med 1960-1990', '',null,null,'metadatos/ecc_tmed6090.html', 47, 'changeFondoFoto') );
textoFondoArray[47] = "Temperatura media (ºC) - 1960-1990" ;
grpECC.addLayer( new LAYERWMS('MC_ECC_TMED204070', 'T&ordf; med 2040-2070', '',null,null,'metadatos/ecc_tmed4070.html', 48, 'changeFondoFoto') );
textoFondoArray[48] = "Temperatura media (ºC) 2040-2070";

var grpAgricultura= toc.addGroup( new GROUPNV('<b>Agricultura y Ganaderia</b>',false, null, 'metadatos/agricultura.html') );

var grpAgriGanaderas = new GROUPVL('Explotaciones ganaderas',true, null, 'metadatos/agricultura.html');
grpAgriGanaderas.addLayer( new LAYER('ExplotacionesGanaderas',null,'') );

grpAgricultura.addGroup(grpAgriGanaderas);

var grpMinas= toc.addGroup( new GROUP('<b>Catastro Minero</b>',false, null, 'metadatos/minas.html') );

var grpCuadMin= new GROUPVL('Cuadricula Minera de Aragón',false, null, 'metadatos/CuadMin.html');
grpCuadMin.addLayer( new LAYER('Cuadricula Minera',null,'') );

var grpSeccionA = new GROUPVL('Sección A',false, null, 'metadatos/SeccionA.html');
grpSeccionA.addLayer( new LAYER('Catastro Minero Seccion A',null,'') );
var grpSeccionB = new GROUPVL('Sección B',false, null, 'metadatos/SeccionB.html');
grpSeccionB.addLayer( new LAYER('Catastro Minero Seccion B',null,'') );
var grpSeccionC = new GROUPVL('Sección C',false, null, 'metadatos/SeccionC.html');
grpSeccionC.addLayer( new LAYER('Catastro Minero Seccion C',null,'') );
var grpSeccionD = new GROUPVL('Sección D',false, null, 'metadatos/SeccionD.html');
grpSeccionD.addLayer( new LAYER('Catastro Minero Seccion D',null,'') );

grpMinas.addGroup(grpCuadMin);
grpMinas.addGroup(grpSeccionA);
grpMinas.addGroup(grpSeccionB);
grpMinas.addGroup(grpSeccionC);
grpMinas.addGroup(grpSeccionD);

var grpEducacion= toc.addGroup( new GROUP('<b>Educación</b>',false, null, 'metadatos/educacion.html') );

var grpEduCen = new GROUPVL('Centros Educativos',true, null, 'metadatos/cen_educativo.html');
grpEduCen.addLayer( new LAYER('Cen_Educa','Centros Educativos','') );
var grpEduZon = new GROUPVL('Zonas Educativas',true, null, 'metadatos/zon_educativa.html');
grpEduZon.addLayer( new LAYER('Zon_Educa','Zonas Educativas','') );
var grpTroide = new GROUPVL('Centroides',true, null, 'metadatos/troides.html');
grpTroide.addLayer( new LAYER('Centroides',null,'') );
grpTroide.addLayer( new LAYERWMS('OVC', 'Sede electronica de Catastro', '',null,null,'metadatos/wms_Catastro.html', 2) );

grpEducacion.addGroup(grpEduCen);
grpEducacion.addGroup(grpEduZon);
grpEducacion.addGroup(grpTroide);

var grpAMP= toc.addGroup( new GROUPNV('<b>Limitaciones de uso del territorio</b>',false,null,'metadatos/lut.html') );

var grpAMPA = new GROUP('Agricultura y Ganaderia',false,null,'metadatos/agrigan.html');
grpAMPA.addLayer( new LAYERWMS('SCN','Zonas vulnerables por nitratos','',null,null,'metadatos/ZonVulNit.html', 88) );
grpAMPA.addLayer( new LAYERWMS('Dist_Nucleos','Distancia a nucleos','',null,null,'metadatos/gan_distNuc.html', 89) );
grpAMPA.addLayer( new LAYERWMS('Dist_ExplotacionesGanaderas2','Distancia a explotaciones porcinas','',null,null,'metadatos/gan_distPor.html', 91) );
grpAMPA.addLayer( new LAYERWMS('Dist_ExplotacionesGanaderas','Distancia a otras explotaciones','',null,null,'metadatos/gan_distGan.html', 90) );

var grpAMPC = new GROUP('Carreteras',false, null, 'metadatos/carre.html');
grpAMPC.addLayer( new LAYERWMS('RedCarCodA','Dominio público','',null,null,'metadatos/carre_dp.html', 92) );
grpAMPC.addLayer( new LAYERWMS('RedCarCodB','Zona de servidumbre','',null,null,'metadatos/carre_zs.html', 93) );
grpAMPC.addLayer( new LAYERWMS('RedCarCodC','Zona de afección','',null,null,'metadatos/carre_za.html', 94) );

var grpAMPF = new GROUP('Ferrocarriles',false, null, 'metadatos/ferro.html');
grpAMPF.addLayer( new LAYERWMS('Ferro_DP','Dominio público','',null,null,'metadatos/ferro_dp.html', 95) );
grpAMPF.addLayer( new LAYERWMS('Ferro_ZP','Zona de protección','',null,null,'metadatos/ferro_zp.html', 96) );

var grpAMPE = new GROUP('Energía',false, null, 'metadatos/energia.html');
grpAMPE.addLayer( new LAYERWMS('GasoOleoductos','Gasoductos y Oleoductos','',null,null,'metadatos/gasOleo.html', 97) );

var grpAMPM = new GROUP('Medio Ambiente',false, null, 'metadatos/medioambiente.html');
grpAMPM.addLayer( new LAYERWMS('TENELE','Tendidos eléctricos (RD. 1432/2008)','',null,null,'metadatos/medioambiente.html', 98) );
grpAMPM.addLayer( new LAYERWMS('ZPENP','Zonas Influencia Socioeconómica ENP','',null,null,'metadatos/medioambiente.html', 99) );

var grpAMPO = new GROUP('Ordenación del Territorio',false, null, 'metadatos/ot.html');
grpAMPO.addLayer( new LAYERWMS('OTM','Directrices parciales Matarraña','',null,null,'metadatos/otm.html', 100) );
grpAMPO.addLayer( new LAYERWMS('OTP','Directrices parciales Pirineos','',null,null,'metadatos/otp.html', 101) );

grpAMP.addGroup(grpAMPA);
grpAMP.addGroup(grpAMPC);
grpAMP.addGroup(grpAMPF);
grpAMP.addGroup(grpAMPE);
grpAMP.addGroup(grpAMPM);
grpAMP.addGroup(grpAMPO);

var grpUrbanismo= toc.addGroup( new GROUPNV('<b>Urbanismo</b>',false, null, 'metadatos/urbanismo.html') );

var grpFPA = new GROUPVL('Figura de Planeamiento',true, null, 'metadatos/fpua.html');
grpFPA.addLayer( new LAYER('UrbanAragon',null,'') );

grpUrbanismo.addGroup(grpFPA);

var grpEIP= toc.addGroup( new GROUPNV('<b>Expedientes en Información Pública</b>',false, null, 'metadatos/eip.html') );

grpEIP.addLayer( new LAYERWMS('EIP','Instituto Aragonés de Gestión Ambiental','',null,null,'metadatos/inaga.html', 102) );
