function at_show_aux(b,h){var f=document.getElementById(b);var g=document.getElementById(h);var e=(g.at_position=="y")?f.offsetHeight+2:0;var d=(g.at_position=="x")?f.offsetWidth+2:0;for(;f;f=f.offsetParent){var a="";if(f.style&&f.style.position){a=f.style.position}else{if(f.currentStyle&&f.currentStyle.position){a=f.currentStyle.position}else{if(document.defaultView&&document.defaultView.getComputedStyle){a=document.defaultView.getComputedStyle(f,"").getPropertyValue("position")}}}a=a.toLowerCase();if((a=="absolute")||(a=="relative")){break}e+=f.offsetTop;d+=f.offsetLeft}g.style.position="absolute";g.style.top=e+"px";g.style.left=d+"px";g.style.display="block"}function at_show(){var a=document.getElementById(this["at_parent"]);var b=document.getElementById(this["at_child"]);at_show_aux(a.id,b.id);clearTimeout(b.at_timeout)}function at_hide(){var a=document.getElementById(this["at_parent"]);var b=document.getElementById(this["at_child"]);b.at_timeout=setTimeout("document.getElementById('"+b.id+"').style.display = 'none'",333)}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_attach(d,h,b,a,f){var e=document.getElementById(d);var g=document.getElementById(h);e.at_parent=e.id;g.at_parent=e.id;e.at_child=g.id;g.at_child=g.id;e.at_position=a;g.at_position=a;g.style.position="absolute";g.style.display="none";if(f!=undefined){e.style.cursor=f}switch(b){case"click":e.onclick=at_click;e.onmouseout=at_hide;g.onmouseover=at_show;g.onmouseout=at_hide;break;case"hover":e.onmouseover=at_show;e.onmouseout=at_hide;g.onmouseover=at_show;g.onmouseout=at_hide;break}};
