
sfHover = function() {
	var sfEls = document.getElementById("menusup").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover = function() {
			this.className += " sfhover";
		}

		sfEls[i].onmouseout = function() {
			this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);

function Verla() {

	var capaFondo = document.getElementById("fondoopaco");
	//capaFondo.style.display = "none";
	capaFondo.style.visibility = "visible";

	selectHide();	// bug de IE

	return true;
}

function NoVerla() {

	var capaFondo = document.getElementById("fondoopaco");
	//capaFondo.style.display = "none";
	capaFondo.style.visibility = "hidden";

	selectShow();	// bug de IE

	return true;
}

// para corregir el bug de IE con los select

function selectHide(){
	selects = document.getElementsByTagName("select");
	for (i = 0; i != selects.length; i++) {
		selects[i].style.visibility = "hidden";
	}
}
function selectShow(){
	selects = document.getElementsByTagName("select");
	for (i = 0; i != selects.length; i++) {
		selects[i].style.visibility = "visible";
	}
}
﻿