var hashMap={Set:function(a,b){this[a]=b},Get:function(a){return this[a]},Contains:function(a){return this.Get(a)==null?!1:!0},Remove:function(a){delete this[a]}};function addTooltipvalue(a,b){hashMap.Set(a,b)}function getTooltipvalue(a){return hashMap.Get(a)}function getElePos(a){for(var b=a.offsetTop,c=a.offsetLeft;a=a.offsetParent;)b+=a.offsetTop,c+=a.offsetLeft;return[c,b]}
function getElePos2(a){for(var b=a.offsetTop,c=a.offsetLeft;a=a.offsetParent;)b+=a.offsetTop,c+=a.offsetLeft;return[c,b]}function ShowTip(a,b){var c;c=b.target?b.target:event.srcElement;c.tooltip&&c.tooltip!=""&&(c=getElePos(c),ShowTipWithAddress(a,c[0]+event.offsetX+20,c[1]+event.offsetY+25,b))}function JustShowTip(a,b,c,d){var e=getElePos2(d.target?d.target:event.srcElement);ShowTipWithAddress(a,e[0]+b,e[1]+c,d)}
function JustShowTipById(a,b,c,d,e){var f=getElePos2(e.target?e.target:event.srcElement);ShowTipWithAddressById(a,b,f[0]+c,f[1]+d,e)}function DoShowTip(a,b){var c;c=b.target?b.target:event.srcElement;a.style.visibility="visible";a.style.zIndex=c.style.zIndex+1}function ShowTipWithAddressById(a,b,c,d,e){myStrTooltip=getTooltipvalue(b);a.innerHTML=myStrTooltip;a.style.left=c+"px";a.style.top=d+"px";DoShowTip(a,e)}
function ShowTipWithAddress(a,b,c,d){a.innerHTML=(d.target?d.target:event.srcElement).tooltip;a.style.left=b+"px";a.style.top=c+"px";DoShowTip(a)}function HideTip(a){a.style.visibility="hidden"};

