function at_attach(a, b, c, d, e) { var f = document.getElementById(a); var g = document.getElementById(b); f["at_parent"] = f.id; g["at_parent"] = f.id; f["at_child"] = g.id; g["at_child"] = g.id; f["at_position"] = d; g["at_position"] = d; g.style.position = "absolute"; g.style.display = "none"; if (e != undefined) f.style.cursor = e; switch (c) { case "click": f.onclick = at_click; f.onmouseout = at_hide; g.onmouseover = at_show; g.onmouseout = at_hide; break; case "hover": f.onmouseover = at_show; f.onmouseout = at_hide; g.onmouseover = at_show; g.onmouseout = at_hide; break } } function at_click() { var a = document.getElementById(this["at_parent"]); var b = document.getElementById(this["at_child"]); if (b.style.display != "block") at_show_aux(a.id, b.id); else b.style.display = "none"; return false } function at_state(a) { var b = document.getElementById(this["at_parent"]); b.className = "navactive" } function at_hide() { var a = document.getElementById(this["at_parent"]); var b = document.getElementById(this["at_child"]); a.className = ""; b["at_timeout"] = setTimeout("document.getElementById('" + b.id + "').style.display = 'none'", 10) } function at_show() { var a = document.getElementById(this["at_parent"]); var b = document.getElementById(this["at_child"]); at_show_aux(a.id, b.id); a.className = "navactive"; clearTimeout(b["at_timeout"]) } function at_show_aux(a, b) { var c = document.getElementById(a); var d = document.getElementById(b); var e = d["at_position"] == "y" ? c.offsetHeight + 0 : 0; var f = d["at_position"] == "x" ? c.offsetWidth + 2 : 0; for (; c; c = c.offsetParent) { e += c.offsetTop; f += c.offsetLeft } d.style.position = "absolute"; d.style.top = e + "px"; d.style.left = f + "px"; d.style.display = "block" }
