/* hack del puto IE para evitar el parpadeo en los rollovers */
if(document.uniqueID && !window.XMLHttpRequest ){
document.execCommand("BackgroundImageCache",false,true)
}

/* 
	esta función es un hack para I5+/IE6
	"añade" la capacidad de hover a los elementos LI, claseándolos
*/
startList = function()
{
	if (document.all && document.getElementById){
		// para el menú principal
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++){
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI"){
				node.onmouseover = function(){ this.className+=" over"; };				
				node.onmouseout  = function(){ this.className=this.className.substring(0,this.className.indexOf(" ")); };
			}
  		}

		// lo mismo para el desplegable azul
		navRoot = document.getElementById("nav2");
		for (i=0; i<navRoot.childNodes.length; i++){
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI"){
				node.onmouseover=function(){ this.className+=" over"; };				
				node.onmouseout=function(){ this.className=this.className.replace(" over", ""); };
			}
  		}
		
		/* hack para IE6, evitando que quite una imagen del menu si tienes el ratón sobre el menú, al cargar la página */
	 	document.getElementById("nav").style.display = "block";

		// lo mismo para el tour (si existe)
		navRoot = document.getElementById("navTour");
		if(navRoot){
			for (i=0; i<navRoot.childNodes.length; i++){
				node = navRoot.childNodes[i];
				if (node.nodeName=="li"){
					node.onmouseover = function(){ this.className+=" over"; };					
					node.onmouseout  = function(){ this.className=this.className.replace(" over", ""); };
				}
	  		}
		 	navRoot.style.display = "block";
  		}
 	}
};

window.onload=startList;

function vuelve(){
	history.back();
}
