function removeString(s, t) {

  i = s.indexOf(t);
  r = "";
  if (i == -1) return s;
  r += s.substring(0,i) + removeString(s.substring(i + t.length), t);
  return r;
  }

function AlternarImagen(img) {
	var searchString = '_ON';
	var imgSrc = img.src.toUpperCase();
	var index = imgSrc.indexOf(searchString);

	if ( index > 0 ) {
      img.src = removeString(imgSrc, searchString);

      //img.src = imgSrc.substring(0,imgSrc.indexOf(searchString)) + remove(imgSrc.substring(i + searchString.length), searchString);
	} else {

	  var ext = imgSrc.substring(imgSrc.length-4, imgSrc.length );

      var leading = imgSrc.substring(0, imgSrc.length-4);

      var trailing = imgSrc.substring(imgSrc.length-4, imgSrc.length);

	  img.src = leading + searchString + trailing;
	}
}


var menuItems =
[

['CETAC',"/cetac","","","","_self","0", , , , , ],
['|Auditoría Interna',"/cetac/auditoria_interna.html","","","","_self","1","0" , , , , ],
['|Órgano Fiscalizador',"/cetac/organo_fiscalizador.html","","","","_self","1","0" , , , , ],
['|Contactos CETAC',"/cetac/Contactos CETAC.html","","","","_self","1","0" , , , , ],
['|Contraloría de Servicios',"/cetac/contraloria","","","","_self","1","0" , , , , ],
['||Antecedentes Contraloría de servicios',"/cetac/contraloria/antecedentes.html","","","","_self","1","0" , , , , ],
['||Formularios contraloria servicios',"/index","","","","_self","1","0" , , , , ],
['|Actas CETAC',"http://cetac-sj-3/actas/search.aspx","","","","_blank","1","0" , , , , ],
['Información General',"/info_general","","","","_self","0", , , , , ],
['|Quiénes Somos',"/info_general/quienes_somos.html","","","","_self","1","0" , , , , ],
['|Organigrama y Contactos',"/info_general/organizacion/index.html","","","","_self","1","0" , , , , ],
['|Contacto',"/info_general/contacto","","","","_self","1","0" , , , , ],
['||Correo',"/info_general/contacto/correo.html","","","","_self","1","0" , , , , ],
['Servicios y Trámites',"/serv_tramit","","","","_self","0", , , , , ],
['|Requisitos construcciones',"/serv_tramit/requ_construcci.html","","","","_self","1","0" , , , , ],
['|Meteorología',"/serv_tramit/meteorologia.html","","","","_self","1","0" , , , , ],
['|Sitios de Interés',"/serv_tramit/sitios.html","","","","_self","1","0" , , , , ],
['|Biblioteca Técnica',"/serv_tramit/biblioteca","","","","_self","1","0" , , , , ],
['||Generalidades',"/serv_tramit/biblioteca/Generalidades.html","","","","_self","1","0" , , , , ],
['||Buscador Bibliografico',"http://www.dgac.go.cr:81/buscador","","","","_blank","1","0" , , , , ],
['|Tarifas',"/serv_tramit/tarifas","","","","_self","1","0" , , , , ],
['||Trámites',"/serv_tramit/tarifas/tramites.html","","","","_self","1","0" , , , , ],
['||Apéndice Tarifario',"/serv_tramit/tarifas/apendice.html","","","","_self","1","0" , , , , ],
['|Licencias',"/serv_tramit/licencias","","","","_self","1","0" , , , , ],
['||Contactos Licencias',"/serv_tramit/licencias/index.html","","","","_self","1","0" , , , , ],
['||Entrenamiento',"#","","","","_self","1","0" , , , , ],
['|||Escuelas',"/serv_tramit/licencias/entrenamiento/escuelas","","","","_self","1","0" , , , , ],
['|||Silabario',"/serv_tramit/licencias/entrenamiento/programas.html","","","","_self","1","0" , , , , ],
['||Exámenes',"/serv_tramit/licencias/servexamenes","","","","_self","1","0" , , , , ],
['|||Formularios',"/serv_tramit/licencias/servexamenes/formularios.html","","","","_self","1","0" , , , , ],
['|||Médicos Designados y Validez',"/serv_tramit/licencias/servexamenes/medicos.html","","","","_self","1","0" , , , , ],
['|||Exámenes Prácticos',"/serv_tramit/licencias/servexamenes/index.html","","","","_self","1","0" , , , , ],
['||Requisitos Para Licencias',"/serv_tramit/licencias/requisitos.html","","","","_self","1","0" , , , , ],
['|Proveeduría',"/serv_tramit/proveeduria","","","","_self","1","0" , , , , ],
['||Registro de proveedores',"/serv_tramit/proveeduria/registro_proveedores.html","","","","_self","1","0" , , , , ],
['||Contrataciones',"/serv_tramit/proveeduria/contrataciones.html","","","","_self","1","0" , , , , ],
['||Programa de adquisiciones',"/serv_tramit/proveeduria/adquisiciones.html","","","","_self","1","0" , , , , ],
['|Trámites Varios',"/serv_tramit/tram_varios","","","","_self","1","0" , , , , ],
['||Procedimientos DGAC',"#","","","","_self","1","0" , , , , ],
['|||Certificados de Explotación',"/serv_tramit/tram_varios/cert_explotacion/Certificados de Explotacion.html","","","","_self","1","0" , , , , ],
['|Registro Aeronáutico',"#","","","","_self","1","0" , , , , ],
['||Requisitos y Derechos para Inscripciones',"/serv_tramit/reg_aeronautico/req_derechos.html","","","","_self","1","0" , , , , ],
['||Contactos Registro Aeronaútico',"/seg_aerea/Contactos RegAeronautico.html","","","","_self","1","0" , , , , ],
['|Facturación y Cobros',"http://www.dgac.go.cr:8081/fyc/servlet/weblogin","","","","_blank","1","0" , , , , ],
['Aeropuertos',"/aeropuertos","","","","_self","0", , , , , ],
['|Aeródromos Internacionales',"/aeropuertos/internacionales","","","","_self","1","0" , , , , ],
['|Mapa de Aeródromos',"/aeropuertos/mapaaerodromos","","","","_self","1","0" , , , , ],
['|Informacion general',"#","","","","_self","1","0" , , , , ],
['||Certificación de Aeródromos RAC139',"/aeropuertos/info_general/normas","","","","_self","1","0" , , , , ],
['||Requisitos y Trámites de Inscripción',"/aeropuertos/info_general/requisitos","","","","_self","1","0" , , , , ],
['|Contactos Aeropuertos',"/aeropuertos/Contactos Aeropuertos.html","","","","_self","1","0" , , , , ],
['Seguridad Aérea',"/seg_aerea","","","","_self","0", , , , , ],
['|Accidentes e Incidentes',"/seg_aerea/accidentes.html","","","","_self","1","0" , , , , ],
['|AVSEC',"#","","","","_self","1","0" , , , , ],
['||Contactos AVSEC',"/seg_aerea/Contactos Avsec.html","","","","_self","1","0" , , , , ],
['||Circulares AVSEC',"/seg_aerea/diravesec/circularesavsec.html","","","","_self","1","0" , , , , ],
['||Instructores Certificados',"/seg_aerea/diravesec/instructores/instructores.html","","","","_self","1","0" , , , , ],
['||Empresas aprobadas',"/seg_aerea/diravesec/acreditaciones/index.html","","","","_self","1","0" , , , , ],
['||Directivas de seguridad',"/seg_aerea/diravesec/pdfdir","","","","_self","1","0" , , , , ],
['|Seguridad Operacional',"/seg_aerea/seg_opera","","","","_self","1","0" , , , , ],
['|CASS',"http://www.dgac.go.cr:8081/cass/servlet/hweblogin","","","","_blank","1","0" , , , , ],
['|FYC',"http://www.dgac.go.cr:8081/fyc/servlet/weblogin","","","","_blank","1","0" , , , , ],
['Reglamentación',"/reglamentacion","","","","_self","0", , , , , ],
['|Reglamento de Aeronáutica',"/reglamentacion/racs.html","","","","_self","1","0" , , , , ],
['|Ley General de Aviación Civil',"/reglamentacion/ley_aviacion_civil.html","","","","_self","1","0" , , , , ],
['|Circulares de Asesoramiento',"/reglamentacion/circulares_asesoramiento.html","","","","_self","1","0" , , , , ],
['|Proceso de Certificación (COA)',"/reglamentacion/proceso_certificacion.html","","","","_self","1","0" , , , , ],
['|Paquete de Certificación (COA)',"/reglamentacion/paquete_certificacion.html","","","","_self","1","0" , , , , ],
['|Auditorías',"/reglamentacion/auditorias.html","","","","_self","1","0" , , , , ],
['|Contrato Gestor',"/reglamentacion/gestorcontrato.html","","","","_self","1","0" , , , , ],
['AIS / MAP',"/ais","","","","_self","0", , , , , ],
['|AIP',"/ais/aip","","","","_self","1","0" , , , , ],
['|Enmiendas al AIP',"/ais/enmienda_aip.html","","","","_self","1","0" , , , , ],
['|METAR',"/ais/METAR.html","","","","_self","1","0" , , , , ],
['|NOTAM',"/ais/notam.html","","","","_self","1","0" , , , , ],
['|Formularios',"/ais/formularios.html","","","","_self","1","0" , , , , ],
['|Circulares AIC',"/ais/circulares.html","","","","_self","1","0" , , , , ],
['|Suplementos AIP',"/ais/suplementos.html","","","","_self","1","0" , , , , ],
['|Contactos AIS',"/ais/Contactos AIS.html","","","","_self","1","0" , , , , ],
['Transporte Aéreo',"/transporte_aereo","","","","_self","0", , , , , ],
['|Derechos de Tráfico Aéreo',"#","","","","_self","1","0" , , , , ],
['||Convenios Internacionales',"#","","","","_self","1","0" , , , , ],
['|||Bilaterales',"/transporte_aereo/convenios.html","","","","_self","1","0" , , , , ],
['|||Multibilaterales',"/transporte_aereo/conveniosm.html","","","","_self","1","0" , , , , ],
['||Derechos Costa Rica con Otros Países',"/transporte_aereo/derechos.html","","","","_self","1","0" , , , , ],
['|Estadísticas',"/transporte_aereo/estadisticas.html","","","","_self","1","0" , , , , ],
['|Operadores',"/transporte_aereo/operadores","","","","_self","1","0" , , , , ],
['||Escuelas de Aviación',"/transporte_aereo/operadores/escuelas_aviacion.html","","","","_self","1","0" , , , , ],
['||Talleres',"/transporte_aereo/operadores/talleres.html","","","","_self","1","0" , , , , ],
['||Compañías Aéreas',"/transporte_aereo/operadores/companias_aereas.html","","","","_self","1","0" , , , , ],
['|Itinerarios de vuelo',"/transporte_aereo/index.html","","","","_self","1","0" , , , , ],
['|Contactos Transporte Aéreo',"/transporte_aereo/indice.html","","","","_self","1","0" , , , , ],
['Aviación Costa Rica',"/aviacion_cr","","","","_self","0", , , , , ],
['|Historia',"/aviacion_cr/historia.html","","","","_self","1","0" , , , , ],
['|Pioneros',"/aviacion_cr/pioneros.html","","","","_self","1","0" , , , , ],
['|Fotografías',"/aviacion_cr/fotografias.html","","","","_self","1","0" , , , , ],
['|Créditos',"/aviacion_cr/creditos.html","","","","_self","1","0" , , , , ],
['ASEMAC',"http://www.asemac.co.cr/","","","","_blank","0", , , , , ],
['Ofertas de empleo',"/recursoshumanos/ofertas.html","","","","_self","0", , , , , ],


];
