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 =
[

['Preescolar',"/Preescolar","","","","_self","0", , , , , ],
['|Informaci&oacute;n&nbsp;General',"/Preescolar/index.html","","","","_self","1","0" , , , , ],
['||Empleo',"#","","","","_self","1","0" , , , , ],
['|Circulares&nbsp;y&nbsp;Comunicaciones',"/Preescolar/circulares.html","","","","_self","1","0" , , , , ],
['|Noticias&nbsp;de&nbsp;Preescolar',"/Preescolar/noticias_preesc.html","","","","_self","1","0" , , , , ],
['|Calendario&nbsp;Preescolar',"/Preescolar/calendario.html","","","","_self","1","0" , , , , ],
['|Niveles',"/Preescolar/niveles.html","","","","_self","1","0" , , , , ],
['|Personal',"/Preescolar/personalpreescolar.html","","","","_self","1","0" , , , , ],
['|Materias&nbsp;Impartidas',"/Preescolar/materias_impartidas.html","","","","_self","1","0" , , , , ],
['|Actividades&nbsp;Extracurriculares',"/Preescolar/actividades_extracurriculares.html","","","","_self","1","0" , , , , ],
['Primaria',"/primaria","","","","_self","0", , , , , ],
['|Informaci&oacute;n&nbsp;General',"/primaria/index.html","","","","_self","1","0" , , , , ],
['|Circulares&nbsp;y&nbsp;Cronogramas&nbsp;',"/primaria/Circulares y Cronogramas 2.html","","","","_self","1","0" , , , , ],
['|Calendario&nbsp;Primaria',"/primaria/calendario_primaria.html","","","","_self","1","0" , , , , ],
['|Actividades&nbsp;Realizadas',"/primaria/actividades.html","","","","_self","1","0" , , , , ],
['|Oferta&nbsp;Educativa',"/primaria/oferta_educativa_prim.html","","","","_self","1","0" , , , , ],
['|Actividades&nbsp;Extracurriculares',"/primaria/actividades_extracurriculares.html","","","","_self","1","0" , , , , ],
['Secundaria',"/Secundaria","","","","_self","0", , , , , ],
['|Informaci&oacute;n&nbsp;General',"/Secundaria/index.html","","","","_self","1","0" , , , , ],
['|Noticias&nbsp;de&nbsp;Secundaria',"/Secundaria/noticias.html","","","","_self","1","0" , , , , ],
['|Calendario&nbsp;',"/Institucional/Calendario copia3.html","","","","_self","1","0" , , , , ],
['|Personal',"/Secundaria/personal.html","","","","_self","1","0" , , , , ],
['|Oferta&nbsp;Acad&eacute;mica',"/Secundaria/oferta_acad.html","","","","_self","1","0" , , , , ],
['|Tareas',"/Secundaria/Tareas.html","","","","_self","1","0" , , , , ],
['Apoyo&nbsp;Integral',"/Apoyo Integral","","","","_self","0", , , , , ],
['|Prop&oacute;sito',"/Apoyo Integral/index.html","","","","_self","1","0" , , , , ],
['Foto&nbsp;Tour',"/Foto Tour","","","","_self","0", , , , , ],
['|Tour&nbsp;fotogr&aacute;fico',"/Foto Tour/index.html","","","","_self","1","0" , , , , ],
['Kidz&nbsp;Gym',"/Kidz Gym","","","","_self","0", , , , , ],
['|Informaci&oacute;n&nbsp;General',"/Kidz Gym/index.html","","","","_self","1","0" , , , , ],
['Tour&nbsp;V.&nbsp;360',"#","","","","_self","0", , , , , ],
['|Tour360',"/tour v 360/Tour360.html","","","","_self","1","0" , , , , ],
['Bandera&nbsp;Azul',"#","","","","_self","0", , , , , ],
['|Bandera&nbsp;Azul',"/Secundaria/Bandera_azul.html","","","","_self","1","0" , , , , ],
['Empleo',"#","","","","_self","0", , , , , ],
['|Recursos&nbsp;Humanos',"/Administracion/Recursos Humanos.html","","","","_self","1","0" , , , , ],
['Proceso&nbsp;I.B.',"#","","","","_self","0", , , , , ],


];

