function at_show_aux(a, c) { var e = document.getElementById(a); var f = document.getElementById(c); var g = (f["at_position"] == "y") ? e.offsetHeight + 2 : 0; var b = (f["at_position"] == "x") ? e.offsetWidth + 2 : 0; for (; e; e = e.offsetParent) { g += e.offsetTop; b += e.offsetLeft } b -= 300; f.style.position = "absolute"; f.style.top = g + 'px'; f.style.left = b + 'px'; $('#' + f.id).show("normal") } function at_show() { var a = document.getElementById(this["at_parent"]); var c = document.getElementById(this["at_child"]); at_show_aux(a.id, c.id); clearTimeout(c["at_timeout"]); master_menu_over1(a) } function at_hide() { var a = document.getElementById(this["at_parent"]); var c = document.getElementById(this["at_child"]); c["at_timeout"] = setTimeout("$('#" + c.id + "').hide('normal');", 333); master_menu_over2(a) } function at_click() { var a = document.getElementById(this["at_parent"]); var c = document.getElementById(this["at_child"]); if (c.style.visibility != "visible") at_show_aux(a.id, c.id); else c.style.visibility = "hidden"; return false } function at_attach(a, c, e, f, g) { var b = document.getElementById(a); var d = document.getElementById(c); b["at_parent"] = b.id; d["at_parent"] = b.id; b["at_child"] = d.id; d["at_child"] = d.id; b["at_position"] = f; d["at_position"] = f; d.style.position = "absolute"; $('#' + d.id).hide(); if (g != undefined) b.style.cursor = g; switch (e) { case "click": b.onclick = at_click; b.onmouseout = at_hide; d.onmouseover = at_show; d.onmouseout = at_hide; break; case "hover": b.onmouseover = at_show; b.onmouseout = at_hide; d.onmouseover = at_show; d.onmouseout = at_hide; break } } function master_menu_over1(a) { if (a.className == 'mnu_norm') { a.className = 'mnu_over' } else { a.className = 'mnu_over2' } } function master_menu_over2(a) { if (a.className == 'mnu_over') { a.className = 'mnu_norm' } else { a.className = 'mnu_sel' } }
