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 =
[

['Pron&oacute;sticos',"/pronosticos/index.html","","","","_self","0", , , , , ],
['Solicitudes&nbsp;de&nbsp;Servicio',"/solicitudes/index.html","","","","_self","0", , , , , ],
['Im&aacute;genes',"/imagenes","","","","_self","0", , , , , ],
['Estaciones&nbsp;Autom&aacute;ticas',"/estaciones_auto/index.html","","","","_self","0", , , , , ],
['Datos&nbsp;Clim&aacute;ticos',"/IMN/MainAdmin.aspx?__EVENTTARGET=LinksInfoClimatica","","","","_self","0", , , , , ],
['Atlas&nbsp;Climatol&oacute;gico',"/mapa_clima","","","","_self","0", , , , , ],
['|Atlas&nbsp;1985',"/mapa_clima/altas_clima/atlas clima.html","","","","_self","1","0" , , , , ],
['|Atlas&nbsp;Interactivo&nbsp;2008',"/mapa_clima/interactivo/index.html","","","","_self","1","0" , , , , ],
['Informaci&oacute;n&nbsp;Aeron&aacute;utica',"/informacion_aero/index.html","","","","_self","0", , , , , ],
['Tabla&nbsp;de&nbsp;Mareas',"/IMN/MainAdmin.aspx?__EVENTTARGET=LinksPrediccionesMareales","","","","_self","0", , , , , ],
['Educaci&oacute;n',"/educacion","","","","_self","0", , , , , ],
['|El&nbsp;fen&oacute;meno&nbsp;del&nbsp;Enos',"/educacion/enos.html","","","","_self","1","0" , , , , ],
['|Clima&nbsp;en&nbsp;Costa&nbsp;Rica',"/educacion/CLIMA DE COSTA RICA.html","","","","_self","1","0" , , , , ],
['|Glosario',"/educacion/Glosario.html","","","","_self","1","0" , , , , ],
['|Huracanes',"/educacion/HURACANES.html","","","","_self","1","0" , , , , ],
['|Atlas&nbsp;de&nbsp;Nubes',"/educacion/atlas_nubes.html","","","","_self","1","0" , , , , ],


];
