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-inicio.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Inicio" />',"/index.html","","","","_self","0", , , , , ],
['<img src=/images/btn-quienes.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Quienes&nbsp;Somos" />',"#","","","","_self","0", , , , , ],
['|Organigrama',"/Quienes Somos/organigrama.html","","","","_self","1","0" , , , , ],
['|Misi&oacute;n&nbsp;y&nbsp;Visi&oacute;n',"/Quienes Somos/mision_viision.html","","","","_self","1","0" , , , , ],
['|Historia&nbsp;de&nbsp;la&nbsp;Asociaci&oacute;n',"/Quienes Somos/historia_asociacion.html","","","","_self","1","0" , , , , ],
['|Junta&nbsp;Directiva',"/Quienes Somos/junta_directiva.html","","","","_self","1","0" , , , , ],
['|Preguntas&nbsp;frecuentes',"/Quienes Somos/Preguntas frecuentes.html","","","","_self","1","0" , , , , ],
['|Colaboradores',"/Quienes Somos/Colaboradores.html","","","","_self","1","0" , , , , ],
['|Galer&iacute;a&nbsp;de&nbsp;Fotos&nbsp;Hist&oacute;ricas',"/Quienes Somos/Galeria de Fotos Historicas.html","","","","_self","1","0" , , , , ],
['|Informes&nbsp;de&nbsp;Gesti&oacute;n',"/quienes somos/informes de gestion/Informes de Gestion.html","","","","_self","1","0" , , , , ],
['<img src=/images/btn-servicios.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Servicios" />',"#","","","","_self","0", , , , , ],
['|Tips',"/Servicios/Tips.html","","","","_self","1","0" , , , , ],
['|Charlas&nbsp;desarrollo&nbsp;integral',"/Servicios/Charlas desarrollo integral.html","","","","_self","1","0" , , , , ],
['|Avisos&nbsp;Econ&oacute;micos',"/Servicios/Avisos Economicos.html","","","","_self","1","0" , , , , ],
['|Proyectos&nbsp;Especiales',"/Servicios/Proyectos Especiales.html","","","","_self","1","0" , , , , ],
['|Seguros',"/Servicios/Seguros.html","","","","_self","1","0" , , , , ],
['|Ayudas&nbsp;Sociales',"/Servicios/Ayudas Sociales.html","","","","_self","1","0" , , , , ],
['|Pago&nbsp;de&nbsp;Servicios&nbsp;P&uacute;blicos',"/Servicios/Pago de Servicios Publicos.html","","","","_self","1","0" , , , , ],
['|Convenios&nbsp;y&nbsp;Alianzas',"/Servicios/Convenios y Alianzas.html","","","","_self","1","0" , , , , ],
['||Recreaci&oacute;n',"/Servicios/Recreacion.html","","","","_self","1","0" , , , , ],
['||Estudios',"/Servicios/Estudios.html","","","","_self","1","0" , , , , ],
['||Servicios&nbsp;de&nbsp;Salud',"/Servicios/Servicios de Salud.html","","","","_self","1","0" , , , , ],
['|Servicios&nbsp;Sociales',"/Servicios/Servicios Sociales.html","","","","_self","1","0" , , , , ],
['||Colegios&nbsp;&nbsp;privados',"/Servicios/Colegios  privados.html","","","","_self","1","0" , , , , ],
['||Por&nbsp;su&nbsp;salud',"/Servicios/Por su salud.html","","","","_self","1","0" , , , , ],
['||Consejos&nbsp;para&nbsp;administrar&nbsp;las&nbsp;deudas',"/Servicios/Consejos para administrar las deudas.html","","","","_self","1","0" , , , , ],
['|Noticias',"/Servicios/Noticias.html","","","","_self","1","0" , , , , ],
['<img src=/images/btn-credito.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Cr&eacute;dito&nbsp;y&nbsp;Ahorro" />',"#","","","","_self","0", , , , , ],
['|Ahorros',"/cred_ahorr/ahorros.html","","","","_self","1","0" , , , , ],
['||extraordinario',"/cred_ahorr/extraordinario.html","","","","_self","1","0" , , , , ],
['||navide&ntilde;o',"/cred_ahorr/navideno.html","","","","_self","1","0" , , , , ],
['||recreativo',"/cred_ahorr/recreativo.html","","","","_self","1","0" , , , , ],
['||voluntario',"/cred_ahorr/voluntario.html","","","","_self","1","0" , , , , ],
['|Cr&eacute;ditos',"/cred_ahorr/creditos.html","","","","_self","1","0" , , , , ],
['||Credimovil',"/cred_ahorr/credito/Credimovil.html","","","","_self","1","0" , , , , ],
['||Educativo',"/cred_ahorr/credito/Credito Educativo.html","","","","_self","1","0" , , , , ],
['||Emprendedores',"/cred_ahorr/credito/Emprendedores.html","","","","_self","1","0" , , , , ],
['||Personal',"/cred_ahorr/credito/Personal Aportes.html","","","","_self","1","0" , , , , ],
['||Servicios&nbsp;M&eacute;dicos',"/cred_ahorr/credito/Servicios Medicos.html","","","","_self","1","0" , , , , ],
['||Social',"/cred_ahorr/credito/Soluciones.html","","","","_self","1","0" , , , , ],
['||Solidario',"/cred_ahorr/credito/Solidario.html","","","","_self","1","0" , , , , ],
['||Vivienda',"/cred_ahorr/credito/Credito Vivienda.html","","","","_self","1","0" , , , , ],
['<img src=/images/btn-info.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Estados&nbsp;Financieros" />',"/Quienes Somos/estados_financieros.html","","","","_self","0", , , , , ],
['<img src=/images/btn-servicios-linea.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="ASEFYL&nbsp;en&nbsp;L&iacute;nea" />',"http://www.asefyl.or.cr/Autogestion_Asefyl/home.asp","","","","_self","0", , , , , ],
['<img src=/images/btn-actividades.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Actividades&nbsp;Sociales" />',"/Actividades Sociales","","","","_self","0", , , , , ],
['<img src=/images/btn-reglamentacion.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Reglamentacion" />',"/reglamentacion","","","","_self","0", , , , , ],
['|Formularios',"/reglamentacion/Formularios.html","","","","_self","1","0" , , , , ],


];

