var toolTipObj = false; var toolTipIFrame = false; var toolTipContent = false; var contentCell = false; var isMSIE = false; if (navigator.userAgent.indexOf("MSIE") >= 0) isMSIE = true; var showStandardTooltip = true; var simplePreload = new Array('http://www.ChorePacks.com/images/toolTip-Swingout.gif', 'http://www.ChorePacks.com/images/toolTip-SwingoutUpper.gif', 'http://www.ChorePacks.com/images/toolTip-hLeft.gif', 'http://www.ChorePacks.com/images/toolTip-hMiddle.gif', 'http://www.ChorePacks.com/images/toolTip-hRight.gif', 'http://www.ChorePacks.com/images/toolTip-bLeft.gif', 'http://www.ChorePacks.com/images/toolTip-bRight.gif', 'http://www.ChorePacks.com/images/toolTip-lLeft.gif', 'http://www.ChorePacks.com/images/toolTip-lMiddle.gif', 'http://www.ChorePacks.com/images/toolTip-lRight.gif' ) ; preloadImages(); function preloadImages () { var args = simplePreload; document.imageArray = new Array(args.length); for(var i=0; i"); toolTipIFrame.style.position = "absolute"; toolTipIFrame.border = "0"; toolTipIFrame.frameborder = "0"; toolTipIFrame.style.backgroundColor = "#FFFFFF"; if (showStandardTooltip == false) toolTipIFrame.className = "toolTipContentUpper"; else toolTipIFrame.className = "toolTipContent"; toolTipIFrame.src = "about:blank"; //toolTipContent.appendChild(toolTipIFrame); toolTipIFrame.style.left = "0px"; toolTipIFrame.style.top = "0px"; } toolTipContent.appendChild(toolTipTable); } else { contentCell.innerHTML = "Loading Content..."; } toolTipObj.style.display = "block"; positionToolTip (ctrl); var id = ctrl.id; Include_toolTipsAccess.showKBTooltip(document.URL, id, showKBTooltip_CallBack); } function showKBTooltip_CallBack (res) { if (res.value != "Tooltip doesn't exist!") contentCell.innerHTML = "" + res.value[1] + "
" + res.value[2]; else contentCell.innerHTML = res.value; } function hideKBTooltip () { contentCell.innerHTML = ""; toolTipObj.style.display = "none"; } function positionToolTip(ctrl) { var left = (getLeft(ctrl) + ctrl.offsetWidth); if (showStandardTooltip == false) var top = getTop(ctrl) - 175; else var top = getTop(ctrl) - 115; toolTipObj.style.left = left + 'px'; toolTipObj.style.top = top + 'px'; } function getTop (ctrl) { var returnValue = ctrl.offsetTop; while ((ctrl = ctrl.offsetParent) != null) { if (ctrl.tagName != 'HTML') returnValue += ctrl.offsetTop; } return returnValue; } function getLeft (ctrl) { var returnValue = ctrl.offsetLeft; while ((ctrl = ctrl.offsetParent) != null) { if (ctrl.tagName != 'HTML') returnValue += ctrl.offsetLeft; } return returnValue; }