rem: var plusX=0, plusY=0, docX=0; docY=0; var divHeight = myTooltipContainer.clientHeight; var divWidth  = myTooltipContainer.clientWidth; if (navigator.appName.indexOf("Explorer")!=-1) { if (document.documentElement && document.documentElement.scrollTop) { plusX = document.documentElement.scrollLeft; plusY = document.documentElement.scrollTop; docX = document.documentElement.offsetWidth + plusX; docY = document.documentElement.offsetHeight + plusY; } else { plusX = document.body.scrollLeft; plusY = document.body.scrollTop; docX = document.body.offsetWidth + plusX; docY = document.body.offsetHeight + plusY; } } else { docX = document.body.clientWidth; docY = document.body.clientHeight; } if ((ttXpos + divWidth) > docX) ttXpos = ttXpos - (divWidth + (ttXadd * 2)); if ((ttYpos + divHeight) > docY) ttYpos = ttYpos - (divHeight + (ttYadd * 2));  
context: function showTooltip(stat) {    var plusX=0, plusY=0, docX=0; docY=0;    var divHeight = myTooltipContainer.clientHeight;    var divWidth  = myTooltipContainer.clientWidth;    if (navigator.appName.indexOf("Explorer")!=-1) {        if (document.documentElement && document.documentElement.scrollTop) {            plusX = document.documentElement.scrollLeft;            plusY = document.documentElement.scrollTop;            docX = document.documentElement.offsetWidth + plusX;            docY = document.documentElement.offsetHeight + plusY;        } else {            plusX = document.body.scrollLeft;            plusY = document.body.scrollTop;            docX = document.body.offsetWidth + plusX;            docY = document.body.offsetHeight + plusY;        }    } else {        docX = document.body.clientWidth;        docY = document.body.clientHeight;    }    if ((ttXpos + divWidth) > docX)        ttXpos = ttXpos - (divWidth + (ttXadd * 2));    if ((ttYpos + divHeight) > docY)        ttYpos = ttYpos - (divHeight + (ttYadd * 2));        if (stat==false) {        if (ttNS4)            myTooltipContainer.visibility = "hide";        else            myTooltipContainer.style.visibility = "hidden";        ttDisplay = 0;    } else {        if (ttNS4)            myTooltipContainer.visibility = "show";        else            myTooltipContainer.style.visibility = "visible";        ttDisplay = 1;    }}
meta: 5450	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5450/4e99e2d1f296112915ec4a2f1300a955a7c7470f/tooltip.js/buggy/libraries/tooltip.js