var hide_delay=70;function at_display(x){var win=window.open();for(var i in x) win.document.write(i+'='+x[i]+'<br>');}function at_show_aux(parent,child){var p=document.getElementById(parent);var c=document.getElementById(child);var top=(c["at_position"]=="y")?p.offsetHeight:0;var left=(c["at_position"]=="x")?p.offsetWidth:0;if(c["at_position"]=="y" && c["at_align"]=="right"){correction=parseInt(c.style.width)-p.offsetWidth;}else if(c["at_position"]=="y" && c["at_align"]=="center"){correction=(parseInt(c.style.width) - p.offsetWidth)/2;}for(;p;p=p.offsetParent){top+=p.offsetTop;left+=p.offsetLeft;}if(c["at_position"]=="y" &&(c["at_align"]=="right"||c["at_align"]=="center")){left -=correction;}left=left+c["extra_xoffset"];top=top+c["extra_yoffset"];c.style.position="absolute";c.style.top=top+'px';c.style.left=left+'px';c.style.display="";}function at_show(){var p=document.getElementById(this["at_parent"]);var c=document.getElementById(this["at_child" ]);at_show_aux(p.id,c.id);blocking_parent_id=c['blocking_parent_id'];if(blocking_parent_id !=null){blocking_parent_id_o=document.getElementById(blocking_parent_id);clearTimeout(blocking_parent_id_o["at_timeout"]);}clearTimeout(c["at_timeout"]);}function at_hide(){var c=document.getElementById(this["at_child"]);c["at_timeout"]=setTimeout("document.getElementById('"+c.id+"').style.display='none'",hide_delay);}function at_hide_1(){var c=document.getElementById(this["at_child"]);c["at_timeout"]=setTimeout("document.getElementById('"+c.id+"').style.display='none'",hide_delay);if(c["blocking_parent_id"]){var parent1=document.getElementById(c["blocking_parent_id"]);parent1["at_timeout"]=setTimeout("document.getElementById('"+parent1.id+"').style.display='none'",hide_delay);}}function at_click(){var p=document.getElementById(this["at_parent"]);var c=document.getElementById(this["at_child" ]);if(c.style.display !="")at_show_aux(p.id,c.id);else{c.style.display="none";blocking_parent_id=c['blocking_parent_id'];if(blocking_parent_id !=null){blocking_parent_id_o=document.getElementById(blocking_parent_id);blocking_parent_id_o.style.display="none";}}return false;}function at_attach(parent,child,showtype,position,cursor,align,extra_xoffset,extra_yoffset,blocking_parent_id){var p=document.getElementById(parent);var c=document.getElementById(child);p["at_parent"]=p.id;c["at_parent"]=p.id;p["at_child"]=c.id;c["at_child"]=c.id;p["at_position"]=position;c["at_position"]=position;p["at_align"]=align;c["at_align"]=align;c["extra_xoffset"]=extra_xoffset;c["extra_yoffset"]=extra_yoffset;if(blocking_parent_id !=null && blocking_parent_id !=""){c["blocking_parent_id"]=blocking_parent_id;}c.style.position="absolute";if(cursor !=undefined) p.style.cursor=cursor;switch(showtype){case "click":p.onclick=at_click;p.onmouseout=at_hide;c.onmouseover=at_show;c.onmouseout=at_hide;break;case "hover":p.onmouseover=at_show;p.onmouseout=at_hide;c.onmouseover=at_show;c.onmouseout=at_hide_1;break;}}function clearTimeoutJS(childId){var c=document.getElementById(childId );if(c){clearTimeout(c["at_timeout"]);}}
