function getEltVisibility (elt) { if (is.nav4up) { var value = elt.visibility; if (value == "show") return "visible"; else if (value == "hide") return "hidden"; else return value; } else if (is.ie4up) return elt.style.visibility; }