navHover = function() {
	if(document.getElementById("navmenu-h") != null) {
		var lis = document.getElementById("navmenu-h").getElementsByTagName("LI");
		for (var i=0; i<lis.length; i++) {
			lis[i].onmouseover=function() {
				this.className+=" iehover";
			}
			lis[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" iehover\\b"), "");
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);

idiomaHover = function() {
	if(document.getElementById("idiomamenu-h") != null) {
		var lis = document.getElementById("idiomamenu-h").getElementsByTagName("LI");
		for (var i=0; i<lis.length; i++) {
			lis[i].onmouseover=function() {
				this.className+=" iehover";
			}
			lis[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" iehover\\b"), "");
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", idiomaHover);

monedaHover = function() {
	if(document.getElementById("monedamenu-h") != null) {
		var lis = document.getElementById("monedamenu-h").getElementsByTagName("LI");
		for (var i=0; i<lis.length; i++) {
			lis[i].onmouseover=function() {
				this.className+=" iehover";
			}
			lis[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" iehover\\b"), "");
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", monedaHover);



function mostrar_mas(i,subc) 
	{
		var j;
		if(document.getElementById('categoria_' + i ).className == "categoria_nomostrar"){
			document.getElementById('categoria_' + i ).className = "categoria_mostrar";
			for (j=0;j<=subc;j++) {
				/*alert('subcategoria_' + i + '_' + j);*/
				if(document.getElementById('subcategoria_' + i + '_' + j) != null)
					document.getElementById('subcategoria_' + i + '_' + j).className = "subcategoria_mostrar";
			}
		}
		else{
			document.getElementById('categoria_' + i ).className = "categoria_nomostrar";
			for (j=0;j<=subc;j++) {
				if(document.getElementById('subcategoria_' + i + '_' + j) != null)
					document.getElementById('subcategoria_' + i + '_' + j).className = "subcategoria_nomostrar";
			}
		}
	}	