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/btn_servicios.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Servicios&nbsp;de&nbsp;Ahorro&nbsp;e&nbsp;Inversi&oacute;n" />',"/servicios_ahorro_inversion","","","","_self","0", , , , , ],
['|Ahorro&nbsp;en&nbsp;Colones',"/servicios_ahorro_inversion/ahorro_colones.html","","","","_self","1","0" , , , , ],
['|Ahorro&nbsp;en&nbsp;D&oacute;lares',"/servicios_ahorro_inversion/ahorro_dolares.html","","","","_self","1","0" , , , , ],
['|Cuenta&nbsp;Valor',"/servicios_ahorro_inversion/cuenta_valor.html","","","","_self","1","0" , , , , ],
['|Cuenta&nbsp;Empresarial',"/servicios_ahorro_inversion/cuenta_empresarial.html","","","","_self","1","0" , , , , ],
['|Planes&nbsp;de&nbsp;Ahorro&nbsp;Contractual&nbsp;OROPAC',"/servicios_ahorro_inversion/planes_ahorro_contractual_oropac.html","","","","_self","1","0" , , , , ],
['|Dep&oacute;sitos&nbsp;a&nbsp;Plazo',"/servicios_ahorro_inversion/depositos_plazo.html","","","","_self","1","0" , , , , ],
['|Metahorro&nbsp;Viajes',"/servicios_ahorro_inversion/Metahorro_Viajes.html","","","","_self","1","0" , , , , ],
['|Reglamentos',"/servicios_ahorro_inversion/reglamentos.html","","","","_self","1","0" , , , , ],
['<img src=/images/btn_credito-vivienda.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Cr&eacute;dito&nbsp;para&nbsp;Vivienda&nbsp;" />',"/credito_vivienda","","","","_self","0", , , , , ],
['|Cr&eacute;dito&nbsp;para&nbsp;Vivienda&nbsp;Colones&nbsp;y&nbsp;D&oacute;lares',"/credito_vivienda/sistema_cuota_nivelada_colones.html","","","","_self","1","0" , , , , ],
['|Cancelaci&oacute;n&nbsp;de&nbsp;Hipotecas&nbsp;Cero&nbsp;Gastos',"/credito_vivienda/cancelacion_hipotecas_cero_gastos.html","","","","_self","1","0" , , , , ],
['|Construcci&oacute;n&nbsp;en&nbsp;Lote&nbsp;propio&nbsp;Cero&nbsp;Gastos',"/credito_vivienda/construccion_lote_propio_cero_gastos.html","","","","_self","1","0" , , , , ],
['|Programa&nbsp;para&nbsp;personas&nbsp;con&nbsp;discapacidad',"/credito_vivienda/Programa_personas_con_discapacidad.html","","","","_self","1","0" , , , , ],
['|Programa&nbsp;Cambie&nbsp;de&nbsp;Casa&nbsp;Ya',"/credito_vivienda/programa_cambie_casa_YA.html","","","","_self","1","0" , , , , ],
['<img src=/images/btn_programas.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Programas&nbsp;para&nbsp;Vivienda&nbsp;de&nbsp;Inter&eacute;s&nbsp;Social&nbsp;" />',"/programas_vivienda_interes_social","","","","_self","0", , , , , ],
['|Bono&nbsp;Familiar&nbsp;de&nbsp;Vivienda',"/programas_vivienda_interes_social/bono_familiar_vivienda.html","","","","_self","1","0" , , , , ],
['|Programa&nbsp;ABC',"/programas_vivienda_interes_social/programa_abc.html","","","","_self","1","0" , , , , ],
['|Programa&nbsp;CBA',"/programas_vivienda_interes_social/Programa CBA.html","","","","_self","1","0" , , , , ],
['<img src=/images/btn_credito-desarrolladores.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Cr&eacute;dito&nbsp;para&nbsp;Desarrolladores&nbsp;a&nbsp;Gran&nbsp;Escala" />',"/creditos_desarrolladores_proyectos_vivienda/Credito Desarrolladores.html","","","","_self","0", , , , , ],
['<img src=/images/btn_credito-personal.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Cr&eacute;dito&nbsp;Personal" />',"/credito_personal","","","","_self","0", , , , , ],
['|Bienestar&nbsp;Familiar',"/credito_personal/bienestar_familiar.html","","","","_self","1","0" , , , , ],
['|CREDIRESUELVE&nbsp;MUCAP',"/credito_personal/crediresuelve_mucap.html","","","","_self","1","0" , , , , ],
['<img src=/images/btn_otros.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Otros&nbsp;Servicios" />',"/otros_servicios","","","","_self","0", , , , , ],
['|SINPE',"/otros_servicios/sinpe.html","","","","_self","1","0" , , , , ],
['|Compra&nbsp;y&nbsp;Venta&nbsp;de&nbsp;Divisas',"/otros_servicios/compra_venta_divisas.html","","","","_self","1","0" , , , , ],
['|Tarjeta&nbsp;de&nbsp;D&eacute;bito',"/otros_servicios/tarjeta_debito.html","","","","_self","1","0" , , , , ],
['|Seguros',"/otros_servicios/seguros.html","","","","_self","1","0" , , , , ],
['|Pago&nbsp;de&nbsp;Servicios',"/otros_servicios/pago_servicios.html","","","","_self","1","0" , , , , ],
['|Pago&nbsp;de&nbsp;Matr&iacute;culas&nbsp;y&nbsp;Colegiaturas',"/otros_servicios/pago_matriculas_colegiaturas.html","","","","_self","1","0" , , , , ],
['|Mucap&nbsp;Asistencia',"/otros_servicios/Mucap Asistencia.html","","","","_self","1","0" , , , , ],
['<img src=/images/btn_alianzas.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Alianzas&nbsp;" />',"/alianzas","","","","_self","0", , , , , ],
['|Servim&aacute;s',"/alianzas/servimas.html","","","","_self","1","0" , , , , ],
['|ICE&nbsp;Pago&nbsp;Planillas',"/alianzas/ice_pago_planillas.html","","","","_self","1","0" , , , , ],
['|Ministerio&nbsp;de&nbsp;Hacienda',"/alianzas/ministerio_hacienda.html","","","","_self","1","0" , , , , ],
['|Caja&nbsp;Costarricense&nbsp;Seguro&nbsp;Social',"/alianzas/caja_costarricense_seguro_social.html","","","","_self","1","0" , , , , ],


];

