function menucentral()
{
    document.getElementById("div1").style.visibility="visible";
    document.getElementById("menu_lateral1").style.visibility="visible";
	document.getElementById("div10").style.visibility = "visible";
	document.getElementById("div11").style.visibility = "hidden";
	document.getElementById("div12").style.visibility = "hidden";
	document.getElementById("div13").style.visibility = "hidden";
	document.getElementById("div14").style.visibility = "hidden";

    document.getElementById("div2").style.visibility="hidden";
    document.getElementById("menu_lateral2").style.visibility="hidden";
	document.getElementById("div20").style.visibility = "hidden";
	document.getElementById("div21").style.visibility = "hidden";
	document.getElementById("div22").style.visibility = "hidden";
	document.getElementById("div23").style.visibility = "hidden";
	document.getElementById("div24").style.visibility = "hidden";

    document.getElementById("div3").style.visibility="hidden";
    document.getElementById("menu_lateral3").style.visibility="hidden";
	document.getElementById("div30").style.visibility = "hidden";
	document.getElementById("div31").style.visibility = "hidden";
	document.getElementById("div32").style.visibility = "hidden";
	document.getElementById("div33").style.visibility = "hidden";
	document.getElementById("div34").style.visibility = "hidden";

    document.getElementById("div4").style.visibility="hidden";
    document.getElementById("menu_lateral4").style.visibility="hidden";
	document.getElementById("div40").style.visibility = "hidden";
	document.getElementById("div41").style.visibility = "hidden";
	document.getElementById("div42").style.visibility = "hidden";
	document.getElementById("div43").style.visibility = "hidden";
	document.getElementById("div44").style.visibility = "hidden";

    document.getElementById("div1").style.display="block";
    document.getElementById("menu_lateral1").style.display="block";
	document.getElementById("div10").style.display = "block";
	document.getElementById("div11").style.display = "none";
	document.getElementById("div12").style.display = "none";
	document.getElementById("div13").style.display = "none";
	document.getElementById("div14").style.display = "none";

    document.getElementById("div2").style.display="none";
    document.getElementById("menu_lateral2").style.display="none";
	document.getElementById("div20").style.display = "none";
	document.getElementById("div21").style.display = "none";
	document.getElementById("div22").style.display = "none";
	document.getElementById("div23").style.display = "none";
	document.getElementById("div24").style.display = "none";

    document.getElementById("div3").style.display="none";
    document.getElementById("menu_lateral3").style.display="none";
	document.getElementById("div30").style.display = "none";
	document.getElementById("div31").style.display = "none";
	document.getElementById("div32").style.display = "none";
	document.getElementById("div33").style.display = "none";
	document.getElementById("div34").style.display = "none";

    document.getElementById("div4").style.display="none";
    document.getElementById("menu_lateral4").style.display="none";
	document.getElementById("div40").style.display = "none";
	document.getElementById("div41").style.display = "none";
	document.getElementById("div42").style.display = "none";
	document.getElementById("div43").style.display = "none";
	document.getElementById("div44").style.display = "none";
}

function cambia(pulsado)
{
//alert("cambia: " + pulsado);
    document.getElementById("div1").style.display="none";
    document.getElementById("menu_lateral1").style.display="none";
	document.getElementById("div10").style.display = "none";
	document.getElementById("div11").style.display = "none";
	document.getElementById("div12").style.display = "none";
	document.getElementById("div13").style.display = "none";
	document.getElementById("div14").style.display = "none";
	
    document.getElementById("div2").style.display="none";
    document.getElementById("menu_lateral2").style.display="none";
	document.getElementById("div20").style.display = "none";
	document.getElementById("div21").style.display = "none";
	document.getElementById("div22").style.display = "none";
	document.getElementById("div23").style.display = "none";
	document.getElementById("div24").style.display = "none";

    document.getElementById("div3").style.display="none";
    document.getElementById("menu_lateral3").style.display="none";
	document.getElementById("div30").style.display = "none";
	document.getElementById("div31").style.display = "none";
	document.getElementById("div32").style.display = "none";
	document.getElementById("div33").style.display = "none";
	document.getElementById("div34").style.display = "none";

    document.getElementById("div4").style.display="none";
    document.getElementById("menu_lateral4").style.display="none";
	document.getElementById("div40").style.display = "none";
	document.getElementById("div41").style.display = "none";
	document.getElementById("div42").style.display = "none";
	document.getElementById("div43").style.display = "none";
	document.getElementById("div44").style.display = "none";


    document.getElementById("div1").style.visibility="hidden";
    document.getElementById("menu_lateral1").style.visibility="hidden";
	document.getElementById("div10").style.visibility = "hidden";
	document.getElementById("div11").style.visibility = "hidden";
	document.getElementById("div12").style.visibility = "hidden";
	document.getElementById("div13").style.visibility = "hidden";
	document.getElementById("div14").style.visibility = "hidden";
	
	document.getElementById("div2").style.visibility = "hidden";
    document.getElementById("menu_lateral2").style.visibility="hidden";
	document.getElementById("div20").style.visibility = "hidden";
	document.getElementById("div21").style.visibility = "hidden";
	document.getElementById("div22").style.visibility = "hidden";
	document.getElementById("div23").style.visibility = "hidden";
	document.getElementById("div24").style.visibility = "hidden";

	document.getElementById("div3").style.visibility = "hidden";
    document.getElementById("menu_lateral3").style.visibility="hidden";
	document.getElementById("div30").style.visibility = "hidden";
	document.getElementById("div31").style.visibility = "hidden";
	document.getElementById("div32").style.visibility = "hidden";
	document.getElementById("div33").style.visibility = "hidden";
	document.getElementById("div34").style.visibility = "hidden";

	document.getElementById("div4").style.visibility = "hidden";
    document.getElementById("menu_lateral4").style.visibility="hidden";
	document.getElementById("div40").style.visibility = "hidden";
	document.getElementById("div41").style.visibility = "hidden";
	document.getElementById("div42").style.visibility = "hidden";
	document.getElementById("div43").style.visibility = "hidden";
	document.getElementById("div44").style.visibility = "hidden";


	if(pulsado == 'm10')
	{
        document.getElementById("div1").style.visibility="visible";
        document.getElementById("div1").style.display="block";
        document.getElementById("menu_lateral1").style.visibility="visible";
        document.getElementById("menu_lateral1").style.display="block";
		document.getElementById("div10").style.display = "block";
		document.getElementById("div10").style.visibility = "visible";
		document.getElementById("div10").style.backgroundImage = "url(img/fondocentral0.jpg)";
		document.getElementById("div10").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador.gif)";
	    document.getElementById("img11").src = "img/botones_sirve.png";
	    document.getElementById("img12").src = "img/botones_ahorrar.png";
	    document.getElementById("img13").src = "img/botones_funciona.png";
	    document.getElementById("img14").src = "img/botones_incluye.png";
	    document.getElementById("horizSelected").value=1;
	    document.getElementById("vertSelected").value=0;
	}
	else if(pulsado == 'm11')
	{
        document.getElementById("div1").style.visibility="visible";
        document.getElementById("div1").style.display="block";
        document.getElementById("menu_lateral1").style.visibility="visible";
        document.getElementById("menu_lateral1").style.display="block";
		document.getElementById("div11").style.display = "block";
		document.getElementById("div11").style.visibility = "visible";
		document.getElementById("div11").style.backgroundImage = "url(img/fondocentral1.jpg)";
		document.getElementById("div11").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador.gif)";
	    document.getElementById("img11").src = "img/botones_sirve_orange.png";
	    document.getElementById("img12").src = "img/botones_ahorrar.png";
	    document.getElementById("img13").src = "img/botones_funciona.png";
	    document.getElementById("img14").src = "img/botones_incluye.png";
	    document.getElementById("horizSelected").value=1;
	    document.getElementById("vertSelected").value=1;
	}
	else if(pulsado == 'm12')
	{
        document.getElementById("div1").style.visibility="visible";
        document.getElementById("div1").style.display="block";
        document.getElementById("menu_lateral1").style.visibility="visible";
        document.getElementById("menu_lateral1").style.display="block";
		document.getElementById("div12").style.display = "block";
		document.getElementById("div12").style.visibility = "visible";
		document.getElementById("div12").style.backgroundImage = "url(img/fondocentral2.jpg)";
		document.getElementById("div12").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador.gif)";
	    document.getElementById("img11").src = "img/botones_sirve.png";
	    document.getElementById("img12").src = "img/botones_ahorrar_orange.png";
	    document.getElementById("img13").src = "img/botones_funciona.png";
	    document.getElementById("img14").src = "img/botones_incluye.png";
	    document.getElementById("horizSelected").value=1;
	    document.getElementById("vertSelected").value=2;
	}
	else if(pulsado == 'm13')
	{
        document.getElementById("div1").style.visibility="visible";
        document.getElementById("div1").style.display="block";
        document.getElementById("menu_lateral1").style.visibility="visible";
        document.getElementById("menu_lateral1").style.display="block";
		document.getElementById("div13").style.display = "block";
		document.getElementById("div13").style.visibility = "visible";
		document.getElementById("div13").style.backgroundImage = "url(img/fondocentral3.jpg)";
		document.getElementById("div13").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador.gif)";
	    document.getElementById("img11").src = "img/botones_sirve.png";
	    document.getElementById("img12").src = "img/botones_ahorrar.png";
	    document.getElementById("img13").src = "img/botones_funciona_orange.png";
	    document.getElementById("img14").src = "img/botones_incluye.png";
	    document.getElementById("horizSelected").value=1;
	    document.getElementById("vertSelected").value=3;
	}
	else if(pulsado == 'm14')
	{
        document.getElementById("div1").style.visibility="visible";
        document.getElementById("div1").style.display="block";
        document.getElementById("menu_lateral1").style.visibility="visible";
        document.getElementById("menu_lateral1").style.display="block";
		document.getElementById("div14").style.display = "block";
		document.getElementById("div14").style.visibility = "visible";
		document.getElementById("div14").style.backgroundImage = "url(img/fondocentral4.jpg)";
		document.getElementById("div14").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador.gif)";
	    document.getElementById("img11").src = "img/botones_sirve.png";
	    document.getElementById("img12").src = "img/botones_ahorrar.png";
	    document.getElementById("img13").src = "img/botones_funciona.png";
	    document.getElementById("img14").src = "img/botones_incluye_orange.png";
	    document.getElementById("horizSelected").value=1;
	    document.getElementById("vertSelected").value=4;
	}


	else if(pulsado == 'm20')
	{
        document.getElementById("div2").style.visibility="visible";
        document.getElementById("div2").style.display="block";
        document.getElementById("menu_lateral2").style.visibility="visible";
        document.getElementById("menu_lateral2").style.display="block";
		document.getElementById("div20").style.display = "block";
		document.getElementById("div20").style.visibility = "visible";
		document.getElementById("div20").style.backgroundImage = "url(img/fondocentral5.jpg)";
		document.getElementById("div20").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador.gif)";
	    document.getElementById("img21").src = "img/botones_trazabilidad.png";
	    document.getElementById("img22").src = "img/botones_sensorizacion.png";
	    document.getElementById("img23").src = "img/botones_aplicaciones.png";
	    document.getElementById("img24").src = "img/botones_combustibles.png";
	    document.getElementById("horizSelected").value=2;
	    document.getElementById("vertSelected").value=0;
	}
	else if(pulsado == 'm21')
	{
        document.getElementById("div2").style.visibility="visible";
        document.getElementById("div2").style.display="block";
        document.getElementById("menu_lateral2").style.visibility="visible";
        document.getElementById("menu_lateral2").style.display="block";
		document.getElementById("div21").style.display = "block";
		document.getElementById("div21").style.visibility = "visible";
		document.getElementById("div21").style.backgroundImage = "url(img/fondocentral6.jpg)";
		document.getElementById("div21").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador.gif)";
	    document.getElementById("img21").src = "img/botones_trazabilidad_orange.png";
	    document.getElementById("img22").src = "img/botones_sensorizacion.png";
	    document.getElementById("img23").src = "img/botones_aplicaciones.png";
	    document.getElementById("img24").src = "img/botones_combustibles.png";
	    document.getElementById("horizSelected").value=2;
	    document.getElementById("vertSelected").value=1;
	}
	else if(pulsado == 'm22')
	{
        document.getElementById("div2").style.visibility="visible";
        document.getElementById("div2").style.display="block";
        document.getElementById("menu_lateral2").style.visibility="visible";
        document.getElementById("menu_lateral2").style.display="block";
		document.getElementById("div22").style.display = "block";
		document.getElementById("div22").style.visibility = "visible";
		document.getElementById("div22").style.backgroundImage = "url(img/fondocentral7.jpg)";
		document.getElementById("div22").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador.gif)";
	    document.getElementById("img21").src = "img/botones_trazabilidad.png";
	    document.getElementById("img22").src = "img/botones_sensorizacion_orange.png";
	    document.getElementById("img23").src = "img/botones_aplicaciones.png";
	    document.getElementById("img24").src = "img/botones_combustibles.png";
	    document.getElementById("horizSelected").value=2;
	    document.getElementById("vertSelected").value=2;
	}
	else if(pulsado == 'm23')
	{
        document.getElementById("div2").style.visibility="visible";
        document.getElementById("div2").style.display="block";
        document.getElementById("menu_lateral2").style.visibility="visible";
        document.getElementById("menu_lateral2").style.display="block";
		document.getElementById("div23").style.display = "block";
		document.getElementById("div23").style.visibility = "visible";
		document.getElementById("div23").style.backgroundImage = "url(img/fondocentral8.jpg)";
		document.getElementById("div23").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador.gif)";
	    document.getElementById("img21").src = "img/botones_trazabilidad.png";
	    document.getElementById("img22").src = "img/botones_sensorizacion.png";
	    document.getElementById("img23").src = "img/botones_aplicaciones_orange.png";
	    document.getElementById("img24").src = "img/botones_combustibles.png";
	    document.getElementById("horizSelected").value=2;
	    document.getElementById("vertSelected").value=3;
	}
	else if(pulsado == 'm24')
	{
        document.getElementById("div2").style.visibility="visible";
        document.getElementById("div2").style.display="block";
        document.getElementById("menu_lateral2").style.visibility="visible";
        document.getElementById("menu_lateral2").style.display="block";
		document.getElementById("div24").style.display = "block";
		document.getElementById("div24").style.visibility = "visible";
		document.getElementById("div24").style.backgroundImage = "url(img/fondocentral9.jpg)";
		document.getElementById("div24").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador.gif)";
	    document.getElementById("img21").src = "img/botones_trazabilidad.png";
	    document.getElementById("img22").src = "img/botones_sensorizacion.png";
	    document.getElementById("img23").src = "img/botones_aplicaciones.png";
	    document.getElementById("img24").src = "img/botones_combustibles_orange.png";
	    document.getElementById("horizSelected").value=2;
	    document.getElementById("vertSelected").value=4;
	}
	
	
	else if(pulsado == 'm30')
	{
        document.getElementById("div3").style.visibility="visible";
        document.getElementById("div3").style.display="block";
        document.getElementById("menu_lateral3").style.visibility="visible";
        document.getElementById("menu_lateral3").style.display="block";
		document.getElementById("div30").style.display = "block";
		document.getElementById("div30").style.visibility = "visible";
		document.getElementById("div30").style.backgroundImage = "url(img/fondocentral10.jpg)";
		document.getElementById("div30").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador.gif)";
	    document.getElementById("img31").src = "img/botones_rutas.png";
	    document.getElementById("img32").src = "img/botones_trafico.png";
	    document.getElementById("img33").src = "img/botones_tacografo.png";
	    document.getElementById("img34").src = "img/botones_avanzadas.png";
	    document.getElementById("horizSelected").value=3;
	    document.getElementById("vertSelected").value=0;
	}
	else if(pulsado == 'm31')
	{
        document.getElementById("div3").style.visibility="visible";
        document.getElementById("div3").style.display="block";
        document.getElementById("menu_lateral3").style.visibility="visible";
        document.getElementById("menu_lateral3").style.display="block";
		document.getElementById("div31").style.display = "block";
		document.getElementById("div31").style.visibility = "visible";
		document.getElementById("div31").style.backgroundImage = "url(img/fondocentral11.jpg)";
		document.getElementById("div31").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador.gif)";
	    document.getElementById("img31").src = "img/botones_rutas_orange.png";
	    document.getElementById("img32").src = "img/botones_trafico.png";
	    document.getElementById("img33").src = "img/botones_tacografo.png";
	    document.getElementById("img34").src = "img/botones_avanzadas.png";
	    document.getElementById("horizSelected").value=3;
	    document.getElementById("vertSelected").value=1;
	}
	else if(pulsado == 'm32')
	{
        document.getElementById("div3").style.visibility="visible";
        document.getElementById("div3").style.display="block";
        document.getElementById("menu_lateral3").style.visibility="visible";
        document.getElementById("menu_lateral3").style.display="block";
		document.getElementById("div32").style.display = "block";
		document.getElementById("div32").style.visibility = "visible";
		document.getElementById("div32").style.backgroundImage = "url(img/fondocentral12.jpg)";
		document.getElementById("div32").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador.gif)";
	    document.getElementById("img31").src = "img/botones_rutas.png";
	    document.getElementById("img32").src = "img/botones_trafico_orange.png";
	    document.getElementById("img33").src = "img/botones_tacografo.png";
	    document.getElementById("img34").src = "img/botones_avanzadas.png";
	    document.getElementById("horizSelected").value=3;
	    document.getElementById("vertSelected").value=2;
	}
	else if(pulsado == 'm33')
	{
        document.getElementById("div3").style.visibility="visible";
        document.getElementById("div3").style.display="block";
        document.getElementById("menu_lateral3").style.visibility="visible";
        document.getElementById("menu_lateral3").style.display="block";
		document.getElementById("div33").style.display = "block";
		document.getElementById("div33").style.visibility = "visible";
		document.getElementById("div33").style.backgroundImage = "url(img/fondocentral13.jpg)";
		document.getElementById("div33").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador.gif)";
	    document.getElementById("img31").src = "img/botones_rutas.png";
	    document.getElementById("img32").src = "img/botones_trafico.png";
	    document.getElementById("img33").src = "img/botones_tacografo_orange.png";
	    document.getElementById("img34").src = "img/botones_avanzadas.png";
	    document.getElementById("horizSelected").value=3;
	    document.getElementById("vertSelected").value=3;
	}
	else if(pulsado == 'm34')
	{
        document.getElementById("div3").style.visibility="visible";
        document.getElementById("div3").style.display="block";
        document.getElementById("menu_lateral3").style.visibility="visible";
        document.getElementById("menu_lateral3").style.display="block";
		document.getElementById("div34").style.display = "block";
		document.getElementById("div34").style.visibility = "visible";
		document.getElementById("div34").style.backgroundImage = "url(img/fondocentral14.jpg)";
		document.getElementById("div34").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador.gif)";
	    document.getElementById("img31").src = "img/botones_rutas.png";
	    document.getElementById("img32").src = "img/botones_trafico.png";
	    document.getElementById("img33").src = "img/botones_tacografo.png";
	    document.getElementById("img34").src = "img/botones_avanzadas_orange.png";
	    document.getElementById("horizSelected").value=3;
	    document.getElementById("vertSelected").value=4;
	}
	
	
	else if(pulsado == 'm40')
	{
        document.getElementById("div4").style.visibility="visible";
        document.getElementById("div4").style.display="block";
        document.getElementById("menu_lateral4").style.visibility="visible";
        document.getElementById("menu_lateral4").style.display="block";
		document.getElementById("div40").style.display = "block";
		document.getElementById("div40").style.visibility = "visible";
		document.getElementById("div40").style.backgroundImage = "url(img/fondocentral15.jpg)";
		document.getElementById("div40").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
	    document.getElementById("img41").src = "img/botones_objetos.png";
	    document.getElementById("img42").src = "img/botones_personas.png";
	    document.getElementById("img43").src = "img/botones_navegadores.png";
	    document.getElementById("img44").src = "img/botones_reporting.png";
	    document.getElementById("horizSelected").value=4;
	    document.getElementById("vertSelected").value=0;
	}
	else if(pulsado == 'm41')
	{
        document.getElementById("div4").style.visibility="visible";
        document.getElementById("div4").style.display="block";
        document.getElementById("menu_lateral4").style.visibility="visible";
        document.getElementById("menu_lateral4").style.display="block";
		document.getElementById("div41").style.display = "block";
		document.getElementById("div41").style.visibility = "visible";
		document.getElementById("div41").style.backgroundImage = "url(img/fondocentral16.jpg)";
		document.getElementById("div41").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
	    document.getElementById("img41").src = "img/botones_objetos_orange.png";
	    document.getElementById("img42").src = "img/botones_personas.png";
	    document.getElementById("img43").src = "img/botones_navegadores.png";
	    document.getElementById("img44").src = "img/botones_reporting.png";
	    document.getElementById("horizSelected").value=4;
	    document.getElementById("vertSelected").value=1;
	}
	else if(pulsado == 'm42')
	{
        document.getElementById("div4").style.visibility="visible";
        document.getElementById("div4").style.display="block";
        document.getElementById("menu_lateral4").style.visibility="visible";
        document.getElementById("menu_lateral4").style.display="block";
		document.getElementById("div42").style.display = "block";
		document.getElementById("div42").style.visibility = "visible";
		document.getElementById("div42").style.backgroundImage = "url(img/fondocentral17.jpg)";
		document.getElementById("div42").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
	    document.getElementById("img41").src = "img/botones_objetos.png";
	    document.getElementById("img42").src = "img/botones_personas_orange.png";
	    document.getElementById("img43").src = "img/botones_navegadores.png";
	    document.getElementById("img44").src = "img/botones_reporting.png";
	    document.getElementById("horizSelected").value=4;
	    document.getElementById("vertSelected").value=2;
	}
	else if(pulsado == 'm43')
	{
        document.getElementById("div4").style.visibility="visible";
        document.getElementById("div4").style.display="block";
        document.getElementById("menu_lateral4").style.visibility="visible";
        document.getElementById("menu_lateral4").style.display="block";
		document.getElementById("div43").style.display = "block";
		document.getElementById("div43").style.visibility = "visible";
		document.getElementById("div43").style.backgroundImage = "url(img/fondocentral18.jpg)";
		document.getElementById("div43").style.backgroundRepeat = "no-repeat";
		document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
	    document.getElementById("img41").src = "img/botones_objetos.png";
	    document.getElementById("img42").src = "img/botones_personas.png";
	    document.getElementById("img43").src = "img/botones_navegadores_orange.png";
	    document.getElementById("img44").src = "img/botones_reporting.png";
	    document.getElementById("horizSelected").value=4;
	    document.getElementById("vertSelected").value=3;
	}
	else if(pulsado == 'm44')
	{
        document.getElementById("div4").style.visibility="visible";
        document.getElementById("div4").style.display="block";
        document.getElementById("menu_lateral4").style.visibility="visible";
        document.getElementById("menu_lateral4").style.display="block";
		document.getElementById("div44").style.display = "block";
		document.getElementById("div44").style.visibility = "visible";
		document.getElementById("div44").style.backgroundImage = "url(img/fondocentral19.jpg)";
		document.getElementById("div44").style.backgroundRepeat = "no-repeat";
        document.getElementById("img1").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img2").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img3").style.backgroundImage = "url(img/boton_clasificador.gif)";
        document.getElementById("img4").style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
	    document.getElementById("img41").src = "img/botones_objetos.png";
	    document.getElementById("img42").src = "img/botones_personas.png";
	    document.getElementById("img43").src = "img/botones_navegadores.png";
	    document.getElementById("img44").src = "img/botones_reporting_orange.png";
	    document.getElementById("horizSelected").value=4;
	    document.getElementById("vertSelected").value=4;
	}
	else
	{
	    alert("pulsado no encontrado");
	}
}

function muestraImagen(pulsado)
{
//alert("muestraImagen: pulsado: " + pulsado);

	/************ Menú horizontal *******************/
	
    if(pulsado == 'img1')
	{
        document.getElementById(pulsado).style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
	}
    else if(pulsado == 'img2')
	{
        document.getElementById(pulsado).style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
	}
    else if(pulsado == 'img3')
	{
        document.getElementById(pulsado).style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
	}
    else if(pulsado == 'img4')
	{
        document.getElementById(pulsado).style.backgroundImage = "url(img/boton_clasificador_activo.gif)";
	}
    
	/************ 1 *******************/
    else if(pulsado == 'img11')
    {
	    document.getElementById(pulsado).src = "img/botones_sirve_orange.png";
    }
    else if(pulsado == 'img12')
    {
	    document.getElementById(pulsado).src = "img/botones_ahorrar_orange.png";
    }
    else if(pulsado == 'img13')
    {
	    document.getElementById(pulsado).src = "img/botones_funciona_orange.png";
    }
    else if(pulsado == 'img14')
    {
	    document.getElementById(pulsado).src = "img/botones_incluye_orange.png";
    }
    
	/************ 2 *******************/
    else if(pulsado == 'img21')
    {
	    document.getElementById(pulsado).src = "img/botones_trazabilidad_orange.png";
    }
    else if(pulsado == 'img22')
    {
	    document.getElementById(pulsado).src = "img/botones_sensorizacion_orange.png";
    }
    else if(pulsado == 'img23')
    {
	    document.getElementById(pulsado).src = "img/botones_aplicaciones_orange.png";
    }
    else if(pulsado == 'img24')
    {
	    document.getElementById(pulsado).src = "img/botones_combustibles_orange.png";
    }

	/************ 3 *******************/
	else if(pulsado == 'img31') 
	{
	    document.getElementById(pulsado).src = "img/botones_rutas_orange.png";
    }
    else if(pulsado == 'img32') 
    {
	    document.getElementById(pulsado).src = "img/botones_trafico_orange.png";
    }
    else if(pulsado == 'img33') 
    {
	    document.getElementById(pulsado).src = "img/botones_tacografo_orange.png";
    }
    else if(pulsado == 'img34') 
    {
	    document.getElementById(pulsado).src = "img/botones_avanzadas_orange.png";
    }

	/************ 4 *******************/
    else if(pulsado == 'img41')
    {
	    document.getElementById(pulsado).src = "img/botones_objetos_orange.png";
    }
    else if(pulsado == 'img42')
    {
	    document.getElementById(pulsado).src = "img/botones_personas_orange.png";
    }
    else if(pulsado == 'img43')
    {
        document.getElementById(pulsado).src = "img/botones_navegadores_orange.png";
    }
    else if(pulsado == 'img44') 
    {
	    document.getElementById(pulsado).src = "img/botones_reporting_orange.png";
    }
}

function ocultaImagen(pulsado)
{
//alert("ocultaImagen: pulsado: " + pulsado + ", horizSelected: "+ horizSelected.value);

	/************ Menú horizontal *******************/
    if( (pulsado == 'img1') && (document.getElementById("horizSelected").value != 1) )
	{
        document.getElementById(pulsado).style.backgroundImage = "url(img/boton_clasificador.gif)";
	}
    else if( (pulsado == 'img2') && (document.getElementById("horizSelected").value != 2) )
	{
        document.getElementById(pulsado).style.backgroundImage = "url(img/boton_clasificador.gif)";
	}
    else if( (pulsado == 'img3') && (document.getElementById("horizSelected").value != 3) )
	{
        document.getElementById(pulsado).style.backgroundImage = "url(img/boton_clasificador.gif)";
	}
    else if( (pulsado == 'img4') && (document.getElementById("horizSelected").value != 4) )
	{
        document.getElementById(pulsado).style.backgroundImage = "url(img/boton_clasificador.gif)";
	}
	
	/************ 1 *******************/
    else if((pulsado == 'img11') && (document.getElementById("vertSelected").value != 1) )
    {
	    document.getElementById(pulsado).src = "img/botones_sirve.png";
    }
    else if((pulsado == 'img12')&& (document.getElementById("vertSelected").value != 2) )
    {
	    document.getElementById(pulsado).src = "img/botones_ahorrar.png";
    }
    else if((pulsado == 'img13')&& (document.getElementById("vertSelected").value != 3) )
    {
	    document.getElementById(pulsado).src = "img/botones_funciona.png";
    }
    else if((pulsado == 'img14')&& (document.getElementById("vertSelected").value != 4) )
    {
	    document.getElementById(pulsado).src = "img/botones_incluye.png";
    }
    
	/************ 2 *******************/
    else if((pulsado == 'img21') && (document.getElementById("vertSelected").value != 1) )
    {
	    document.getElementById(pulsado).src = "img/botones_trazabilidad.png";
    }
    else if((pulsado == 'img22') && (document.getElementById("vertSelected").value != 2) )
    {
	    document.getElementById(pulsado).src = "img/botones_sensorizacion.png";
    }
    else if((pulsado == 'img23') && (document.getElementById("vertSelected").value != 3) )
    {
	    document.getElementById(pulsado).src = "img/botones_aplicaciones.png";
    }
    else if((pulsado == 'img24') && (document.getElementById("vertSelected").value != 4) )
    {
	    document.getElementById(pulsado).src = "img/botones_combustibles.png";
    }

	/************ 3 *******************/
	else if((pulsado == 'img31') && (document.getElementById("vertSelected").value != 1) )
	{
	    document.getElementById(pulsado).src = "img/botones_rutas.png";
    }
    else if((pulsado == 'img32') && (document.getElementById("vertSelected").value != 2) )
    {
	    document.getElementById(pulsado).src = "img/botones_trafico.png";
    }
    else if((pulsado == 'img33') && (document.getElementById("vertSelected").value != 3) )
    {
	    document.getElementById(pulsado).src = "img/botones_tacografo.png";
    }
    else if((pulsado == 'img34') && (document.getElementById("vertSelected").value != 4) )
    {
	    document.getElementById(pulsado).src = "img/botones_avanzadas.png";
    }

	/************ 4 *******************/
    else if((pulsado == 'img41') && (document.getElementById("vertSelected").value != 1) )
    {
	    document.getElementById(pulsado).src = "img/botones_objetos.png";
    }
    else if((pulsado == 'img42') && (document.getElementById("vertSelected").value != 2) )
    {
	    document.getElementById(pulsado).src = "img/botones_personas.png";
    }
    else if((pulsado == 'img43') && (document.getElementById("vertSelected").value != 3) )
    {
        document.getElementById(pulsado).src = "img/botones_navegadores.png";
    }
    else if((pulsado == 'img44') && (document.getElementById("vertSelected").value != 4) )
    {
	    document.getElementById(pulsado).src = "img/botones_reporting.png";
    }
}