function gestionMenu(evento,myid,enlace) { //v9.0
switch (evento) {
	case "over":
		document.getElementById(myid).style.color = "#ff9900";
		break
			
	case "out":
		if ((myid=="item1" && activo1!=1) ||
		    (myid=="item2" && activo2!=1) ||
		    (myid=="item3" && activo3!=1) ||
		    (myid=="item4" && activo4!=1) ||
		    (myid=="item5" && activo5!=1))
			 {document.getElementById(myid).style.color="#ffffff";};
		
		break
			
	case "click":
		switch (myid) {
			case "item1":
				activo1 = 1;
				activo2 = 0;
				activo3 = 0;
				activo4 = 0;
				activo5 = 0;
				document.getElementById(myid).style.color="#ff9900";
				document.getElementById("item2").style.color="#ffffff";
				document.getElementById("item3").style.color="#ffffff";
				document.getElementById("item4").style.color="#ffffff";
				document.getElementById("item5").style.color="#ffffff";
				document.getElementById("sub_productos").style.visibility="hidden";
				document.getElementById("sub_servicios").style.visibility="hidden";
				break
			case "item2":
				activo1 = 0;
				activo2 = 1;
				activo3 = 0;
				activo4 = 0;
				activo5 = 0;
				document.getElementById("item1").style.color="#ffffff";
				document.getElementById(myid).style.color="#ff9900";
				document.getElementById("item3").style.color="#ffffff";
				document.getElementById("item4").style.color="#ffffff";
				document.getElementById("item5").style.color="#ffffff";
				
				document.getElementById("sub_prod1").style.color="#ffffff";
				document.getElementById("sub_prod1").style.backgroundColor = "#999999";
				document.getElementById("sub_prod2").style.color="#ffffff";
				document.getElementById("sub_prod2").style.backgroundColor = "#999999";
				document.getElementById("sub_prod3").style.color="#ffffff";
				document.getElementById("sub_prod3").style.backgroundColor = "#999999";
				document.getElementById("sub_prod4").style.color="#ffffff";
				document.getElementById("sub_prod4").style.backgroundColor = "#999999";
				document.getElementById("sub_prod5").style.color="#ffffff";
				document.getElementById("sub_prod5").style.backgroundColor = "#999999";
				
				document.getElementById("sub_productos").style.visibility="visible";
				document.getElementById("sub_servicios").style.visibility="hidden";
				break
			case "item3":
				activo1 = 0;
				activo2 = 0;
				activo3 = 1;
				activo4 = 0;
				activo5 = 0;
				document.getElementById("item1").style.color="#ffffff";
				document.getElementById("item2").style.color="#ffffff";
				document.getElementById(myid).style.color="#ff9900";
				document.getElementById("item4").style.color="#ffffff";
				document.getElementById("item5").style.color="#ffffff";
				
				document.getElementById("sub_serv1").style.color="#ffffff";
				document.getElementById("sub_serv1").style.backgroundColor = "#999999";
				document.getElementById("sub_serv2").style.color="#ffffff";
				document.getElementById("sub_serv2").style.backgroundColor = "#999999";
				document.getElementById("sub_serv3").style.color="#ffffff";
				document.getElementById("sub_serv3").style.backgroundColor = "#999999";
				document.getElementById("sub_serv4").style.color="#ffffff";
				document.getElementById("sub_serv4").style.backgroundColor = "#999999";
				document.getElementById("sub_serv5").style.color="#ffffff";
				document.getElementById("sub_serv5").style.backgroundColor = "#999999";
				
				document.getElementById("sub_productos").style.visibility="hidden";
				document.getElementById("sub_servicios").style.visibility="visible";
				break
			case "item4":
				activo1 = 0;
				activo2 = 0;
				activo3 = 0;
				activo4 = 1;
				activo5 = 0;
				document.getElementById("item1").style.color="#ffffff";
				document.getElementById("item2").style.color="#ffffff";
				document.getElementById("item3").style.color="#ffffff";
				document.getElementById(myid).style.color="#ff9900";
				document.getElementById("item5").style.color="#ffffff";
				document.getElementById("sub_productos").style.visibility="hidden";
				document.getElementById("sub_servicios").style.visibility="hidden";
				break
			case "item5":
				activo1 = 0;
				activo2 = 0;
				activo3 = 0;
				activo4 = 0;
				activo5 = 1;
				document.getElementById("item1").style.color="#ffffff";
				document.getElementById("item2").style.color="#ffffff";
				document.getElementById("item3").style.color="#ffffff";
				document.getElementById("item4").style.color="#ffffff";
				document.getElementById(myid).style.color="#ff9900";
				document.getElementById("sub_productos").style.visibility="hidden";
				document.getElementById("sub_servicios").style.visibility="hidden";
				break
			default:
				activo1 = 0;
				activo2 = 0;
				activo3 = 0;
				activo4 = 0;
				activo5 = 0;
				document.getElementById("item1").style.color="#ffffff";
				document.getElementById("item2").style.color="#ffffff";
				document.getElementById("item3").style.color="#ffffff";
				document.getElementById("item4").style.color="#ffffff";
				document.getElementById("item5").style.color="#ffffff";
				document.getElementById("sub_productos").style.visibility="hidden";
				document.getElementById("sub_servicios").style.visibility="hidden";
				break
		}
		limpiaActivo();
		cargarContenido(enlace,"contenidoAjax");

		break
	
}

}

