var dom = document.getElementById ? true : false, ns5 = !document.all && dom || window.opera ? true : false, ie5 = navigator.userAgent.indexOf("MSIE") > -1 && dom ? true : false, ie4 = document.all && !dom ? true : false, nodyn = !ns5 && !ie4 && !ie5 && !dom ? true : false, origWidth, origHeight; if (nodyn) event = "nope"; var tipFollowMouse = true, tipWidth = 160, offX = 20, offY = 12, tipFontFamily = "Verdana, arial, helvetica, sans-serif", tipFontSize = "8pt", tipFontColor = "#000000", tipBgColor = "#DDECFF", tipBorderColor = "#000080", tipBorderWidth = 3, tipBorderStyle = "ridge", tipPadding = 4, startStr = '<table><tr><td align="center" width="100%"><img src="', midStr = '" border="0"></td></tr>', endStr = "</table>", tooltip, tipcss; function initTip() { if (nodyn) return; tooltip = ie4 ? document.all.tipDiv : ie5 || ns5 ? document.getElementById("tipDiv") : null; tipcss = tooltip.style; if (ie4 || ie5 || ns5) { tipcss.fontFamily = tipFontFamily; tipcss.fontSize = tipFontSize; tipcss.color = tipFontColor; tipcss.backgroundColor = tipBgColor; tipcss.borderColor = tipBorderColor; tipcss.borderWidth = tipBorderWidth + "px"; tipcss.padding = tipPadding + "px"; tipcss.borderStyle = tipBorderStyle } if (tooltip && tipFollowMouse) document.onmousemove = trackMouse } window.onload = initTip; var t1, t2, tipOn = false; function doTooltip(b, a) { if (!tooltip) return; t1 && clearTimeout(t1); t2 && clearTimeout(t2); tipOn = true; if (ie4 || ie5 || ns5) { var c = startStr + a + midStr + '<span style="font-family:' + tipFontFamily + "; font-size:" + tipFontSize + '; color:white;"></span>' + endStr; tipcss.backgroundColor = "#DDECFF"; tooltip.innerHTML = c } if (!tipFollowMouse) positionTip(b); else t1 = setTimeout("tipcss.visibility='visible'", 100) } var mouseX, mouseY; function trackMouse(a) { standardbody = document.compatMode == "CSS1Compat" ? document.documentElement : document.body; mouseX = ns5 ? a.pageX : window.event.clientX + standardbody.scrollLeft; mouseY = ns5 ? a.pageY : window.event.clientY + standardbody.scrollTop; tipOn && positionTip(a) } function positionTip(d) { if (!tipFollowMouse) { standardbody = document.compatMode == "CSS1Compat" ? document.documentElement : document.body; mouseX = ns5 ? d.pageX : window.event.clientX + standardbody.scrollLeft; mouseY = ns5 ? d.pageY : window.event.clientY + standardbody.scrollTop } var c = ie4 || ie5 ? tooltip.clientWidth : tooltip.offsetWidth, b = ie4 || ie5 ? tooltip.clientHeight : tooltip.offsetHeight, e = ns5 ? window.innerWidth - 20 + window.pageXOffset : standardbody.clientWidth + standardbody.scrollLeft, a = ns5 ? window.innerHeight - 20 + window.pageYOffset : standardbody.clientHeight + standardbody.scrollTop; if (mouseX + offX + c > e) tipcss.left = mouseX - (c + offX) + "px"; else tipcss.left = mouseX + offX + "px"; if (mouseY + offY + b > a) tipcss.top = a - (b + offY) + "px"; else tipcss.top = mouseY + offY + "px"; if (!tipFollowMouse) t1 = setTimeout("tipcss.visibility='visible'", 100) } function hideTip() { if (!tooltip) return; t2 = setTimeout("tipcss.visibility='hidden'", 100); tipOn = false } document.write('<div id="tipDiv" style="position:absolute; visibility:hidden; z-index:100"></div>')