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/bot_acerca.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Acerca de RECOPE" />',"/acerca","","","","_self"],
['|Visión Corporativa',"/acerca/vision_corporativa/index.htm","","","","_self"],
['|Estructura Organizativa',"/acerca/estructura_organizativa/index.htm","","","","_self"],
['|Historia',"/acerca/historia/index.htm","","","","_self"],
['<img src=/images/bot_transparencia.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Transparencia" />',"/transparencia","","","","_self"],
['|Informes',"/transparencia/Informes.htm","","","","_self"],
['|Trámites Internos',"/transparencia/tramites_internos/index.htm","","","","_self"],
['|Red de Transparencia',"/transparencia/red_tranparencia/index.htm","","","","_self"],
['|Comisión de Valores',"/transparencia/comision_valores/index.htm","","","","_self"],
['|Contraloría de Servicios',"/transparencia/contraloria_servicios/index.htm","","","","_self"],
['|Fiscalización y Control',"/transparencia/fiscalizacion_control/auditoria.htm","","","","_self"],
['<img src=/images/bot_nuestra_actividad.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Nuestra Actividad" />',"/nuestra_actividad","","","","_self"],
['|Sistema Nacional de Petróleo',"/nuestra_actividad/sistema_petroleo/index.htm","","","","_self"],
['|Proyectos',"/nuestra_actividad/proyectos","","","","_self"],
['|Productos',"/nuestra_actividad/productos/index.htm","","","","_self"],
['|Calidad Empresarial',"/nuestra_actividad/calidad_empresarial/index.htm","","","","_self"],
['<img src=/images/bot_info_clientes.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Información Clientes" />',"/info_clientes","","","","_self"],
['|Cliente Directo',"/info_clientes/cliente_directo","","","","_self"],
['|Precios de Productos',"/info_clientes/precios_productos","","","","_self"],
['|RECOPE en Cifras',"/info_clientes/recope_cifras","","","","_self"],
['<img src=/images/bot_info_proveedores.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Información Proveedores" />',"/info_proveedores","","","","_self"],
['|Servicios de Tesorería',"/info_proveedores/servicios_tesoreria","","","","_self"],
['|Contratación de Bienes y Servicios',"/info_proveedores/contratacion_bienes_servicios","","","","_self"],
['|Comercio Internacional',"/info_proveedores/comercio_internacional","","","","_self"],
['<img src=/images/bot_centro_informativo.jpg border="0" onmouseover="AlternarImagen(this)" onmouseout="AlternarImagen(this)" alt="Centro Informativo" />',"/centro_informativo","","","","_self"],
['|Sala de Prensa',"/centro_informativo/sala_prensa","","","","_self"],
['|Biblioteca Técnica',"/centro_informativo/biblioteca_tecnica","","","","_self"],
['|Sitios de Interés',"/centro_informativo/sitios_interes","","","","_self"],
['|Contactenos',"/contactenos.htm","","","","_self"],


];
