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 =
[

['<img src=/images/nuevos_botones/quienes.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Qui&eacute;nes&nbsp;Somos" />',"/quienes_somos","","","","_self","0", , , , , ],
['|Funciones',"/quienes_somos/Funciones.html","","","","_self","1","0" , , , , ],
['|Memorias',"/quienes_somos/Memorias.html","","","","_self","1","0" , , , , ],
['|Organigrama',"/quienes_somos/organigrama.html","","","","_self","1","0" , , , , ],
['|Rese&ntilde;a&nbsp;hist&oacute;rica',"/quienes_somos/resena_historica.html","","","","_self","1","0" , , , , ],
['<img src=/images/nuevos_botones/legal.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Marco&nbsp;Legal" />',"/marco_legal","","","","_self","0", , , , , ],
['|Reglamentos',"/marco_legal/reglamentos","","","","_self","1","0" , , , , ],
['||En&nbsp;consulta',"/marco_legal/reglamentos/en_consulta.html","","","","_self","1","0" , , , , ],
['||Observaciones',"/marco_legal/reglamentos/observaciones.html","","","","_self","1","0" , , , , ],
['||Otros',"/marco_legal/reglamentos/Otros.html","","","","_self","1","0" , , , , ],
['||Vigentes',"/marco_legal/reglamentos/vigentes.html","","","","_self","1","0" , , , , ],
['|Acuerdos&nbsp;del&nbsp;Superintendente',"/marco_legal/acuerdos_del_superintendente","","","","_self","1","0" , , , , ],
['||Derogados',"/marco_legal/acuerdos_del_superintendente/derogados.html","","","","_self","1","0" , , , , ],
['||En&nbsp;consulta',"/marco_legal/acuerdos_del_superintendente/en_consulta.html","","","","_self","1","0" , , , , ],
['||Observaciones',"/marco_legal/acuerdos_del_superintendente/Observaciones.html","","","","_self","1","0" , , , , ],
['||Vigentes',"/marco_legal/acuerdos_del_superintendente/vigentes.html","","","","_self","1","0" , , , , ],
['|Manuales&nbsp;y&nbsp;cat&aacute;logos&nbsp;contables',"/marco_legal/manuales_y_catalogos_contables","","","","_self","1","0" , , , , ],
['||En&nbsp;consulta',"/marco_legal/manuales_y_catalogos_contables/en_consulta.html","","","","_self","1","0" , , , , ],
['||Observaciones',"/marco_legal/manuales_y_catalogos_contables/observaciones.html","","","","_self","1","0" , , , , ],
['||Vigentes',"/marco_legal/manuales_y_catalogos_contables/vigentes.html","","","","_self","1","0" , , , , ],
['|Dict&aacute;menes&nbsp;de&nbsp;la&nbsp;Divisi&oacute;n&nbsp;Jur&iacute;dica',"/marco_legal/dictamenes_de_la_division_juridica","","","","_self","1","0" , , , , ],
['<img src=/images/nuevos_botones/supervisados.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Fondos&nbsp;Supervisados" />',"/supervision","","","","_self","0", , , , , ],
['|Fondos&nbsp;de&nbsp;pensi&oacute;n&nbsp;b&aacute;sicos',"/Fondos de pension basicos","","","","_self","1","0" , , , , ],
['||Estados&nbsp;financieros',"/Fondos de pension basicos/Estados Financieros.html","","","","_self","1","0" , , , , ],
['||Estudios&nbsp;Actuariales',"/Fondos de pension basicos/Estudio Actuariales.html","","","","_self","1","0" , , , , ],
['||R&eacute;gimen&nbsp;IVM',"/Fondos de pension basicos/IVM.html","","","","_self","1","0" , , , , ],
['|Fondos&nbsp;de&nbsp;pensi&oacute;n&nbsp;obligatorios&nbsp;complementarios',"/fondos de pension obligatorios complementarios","","","","_self","1","0" , , , , ],
['||Bonificaciones&nbsp;en&nbsp;Planes&nbsp;Voluntarios',"/fondos de pension obligatorios complementarios/Bonificaciones Popular Pensiones.html","","","","_self","1","0" , , , , ],
['||Calificaciones&nbsp;Riesgo&nbsp;Operativo',"/supervision/Calificaciones_riesgo_operativo.html","","","","_self","1","0" , , , , ],
['||Estados&nbsp;Financieros&nbsp;Auditados',"/fondos de pension obligatorios complementarios/estados_financieros/Estados Financieros Auditados.html","","","","_self","1","0" , , , , ],
['|Sanciones&nbsp;impuestas',"/supervision/SancionesSUPEN.html","","","","_self","1","0" , , , , ],
['<img src=/images/nuevos_botones/comunicacion.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Comunicacion" />',"/comunicacion","","","","_self","0", , , , , ],
['|Boletines',"/comunicacion/boletines_supen.html","","","","_self","1","0" , , , , ],
['|Campa&ntilde;as&nbsp;informativas',"/comunicacion/Campanas informativas.html","","","","_self","1","0" , , , , ],
['|Glosario',"/comunicacion/Glosario.html","","","","_self","1","0" , , , , ],
['|Informe&nbsp;trimestral',"/comunicacion/Informe_trimestral.html","","","","_self","1","0" , , , , ],
['|Investigaciones',"/comunicacion/Investigaciones.html","","","","_self","1","0" , , , , ],
['|Lo&nbsp;que&nbsp;dicen&nbsp;los&nbsp;medios',"/comunicacion/Lo_que_dicen_los_medios.html","","","","_self","1","0" , , , , ],
['|Redes&nbsp;sociales',"/comunicacion/Redes_Sociales/Redes sociales.html","","","","_self","1","0" , , , , ],
['|Revistas',"/comunicacion/Revistas.html","","","","_self","1","0" , , , , ],
['<img src=/images/nuevos_botones/estadistica.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Estadisticas" />',"/estadisticas","","","","_self","0", , , , , ],
['<img src=/images/nuevos_botones/preguntas.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Preguntas&nbsp;frecuentes" />',"/preguntas_frecuentes","","","","_self","0", , , , , ],


];

