function _hover(pfx) { this.postfix=pfx; this.mX = 0; this.mY = 0; this.IT = null; this.HC = null; this.all_hovers=new Array(); this.over_label=false; this.over_tooltip=false; this.over_tooltip_content=false; this.ovrtimer=function(F,T) { if (isNaN(T)) T=0; this.ovr_label=1; this.ovrTimeout=setTimeout(F,T); } this.outtimer=function(T) { clearTimeout(this.ovrTimeout); if (isNaN(T)) T=1000; var me=this; setTimeout(function() { if (!me.over_label && !me.over_tooltip && !me.over_tooltip_content) me.out(); },T); } } _hover.prototype.move = function(e,O) { this.IT=O; var HC=GE(O.id+this.postfix); // if (HC==undefined) return; /* if (HC.parentNode.tagName.toLowerCase()!='body') { var l=document.body.getElementsByTagName(HC.tagName); for (var i in l) if (l[i].id==HC.id && l[i].parentNode.tagName.toLowerCase()=='body') l[i].parentNode.removeChild(l[i]); document.body.appendChild(HC); } */ this.HC=HC; var dw=screen.width, dh=screen.height; if (document.width) dw=document.width-10; else if (document.body.clientWidth) dw=document.body.clientWidth; if (O.className) { if (O.className.indexOf('hover_move')!=-1) { if (e.pageX || e.pageY) { this.mX=e.pageX; this.mY=e.pageY; } else if (e.clientX || e.clientY) { this.mX=e.clientX+document.documentElement.scrollLeft; this.mY=e.clientY+document.documentElement.scrollTop; } } else { var mx=(O.className.indexOf('hover_left')==-1?(O.className.indexOf('hover_right')==-1?1/2:1):0); var my=(O.className.indexOf('hover_top')==-1?(O.className.indexOf('hover_bottom')==-1?1/2:1):0); var P=getPos(O), w=O.offsetWidth, h=O.offsetHeight; this.mX=P[0]+mx*w; this.mY=P[1]+my*h; } } var ax=2, ay=2; if (dw/2H) this.HC.style.top=(H-this.HC.offsetHeight)+'px'; } } _hover.prototype.set_fix_pos = function(e,O) { var hh=this; // if (hh.HC==undefined) return; hh.over_label=true; if (hh.IT && hh.IT!=this) hh.out(); if (hh.IT!=this) { hh.move(e,O); } // if (hh.HC) { addEvent(hh.HC,'mouseover',function() { hh.over_tooltip=true; }); addEvent(hh.HC,'mouseout',function() { hh.over_tooltip=false; hh.outtimer(); }); // } var children=document.getElementById(O.id+this.postfix).childNodes; for (var cn in children) if (children[cn].nodeName=='A') { children[cn].onmouseover=function() { hh.over_tooltip_content=true; } children[cn].onmouseout=function() { hh.over_tooltip_content=false; hh.outtimer(); } } } _hover.prototype.init = function(target) { if (target!=undefined) this.target=target; else target=this.target; // GEcn() handles undefined values var hh=this; var A=GEcn('hover_move',undefined,target).concat(GEcn('hover_click',undefined,target)).concat(GEcn('hover_fix',undefined,target)); for (var i=0; i'; document.body.appendChild(H); var dw=screen.width, dh=screen.height; if (document.width) dw=document.width-10; else if (document.body.clientWidth) dw=document.body.clientWidth; var mx=0,my=0; var P=getPos(O), w=O.offsetWidth, h=O.offsetHeight, mX=P[0]+mx*w, mY=P[1]+my*h, ax=2, ay=2; if (dw/2HT) H.style.top=(HT-H.offsetHeight)+'px'; } }