var MWToolTipper=function(){var k=250,r="data-MWTooltip",s="mwToolTip",c="data-MWIsTipTarget",v="mwToolTipArrow",o=2,g=0,j,l,d,t,e,q;function y(){if(t){clearTimeout(t);t=null}if(e){clearTimeout(e);e=null}if(l){l.removeAttribute(c);d.style.display="none";q.style.display="none"}}function m(z){var A=z.toElement||z.relatedTarget;if(!A){y()}}function x(z){while(z&&z.style){if(z.style.position==="fixed"||(window.getComputedStyle&&window.getComputedStyle(z).position==="fixed")){return true}z=z.parentNode}return false}function f(){if(d&&d.style.display!=="none"){d.style.display="none";var z=getObj(v);if(z&&z.style.display!=="none"){z.style.display="none"}}y()}function b(){if(!d){d=document.createElement("div");d.id=s;d.style.display="none";d.className="toolTip";document.body.appendChild(d);q=document.createElement("div");q.id=v;q.style.display="none";q.className="toolTipArrow";document.body.appendChild(q)}}function a(){if(e){clearTimeout(e)}e=setTimeout(f,o*1000)}function h(A){var B=false,z=A&&A.nodeName!=="BODY"&&A.nodeName!=="HTML";if(z){if(!document.body.contains(A)){B=true}else{if(A.style.display==="none"){B=true}else{B=h(A.parentNode)}}}return B}function p(K){if(!K||h(K)){return}var D=K.getAttribute(r);K.setAttribute(c,"1");l=K;b();d.innerHTML=htmlMultilineEncode(D);d.style.display="block";d.style.left=0;d.style.top=0;q.style.top=0;q.style.left=0;q.style.display="block";var J=posTop(K,true),z=posLeft(K,true),S=K.offsetWidth,P=K.offsetHeight,C=d.offsetWidth,B=d.offsetHeight,Q=pageWidth(),O=pageHeight(),N=mjtPageOffset(),T=N[0],I=T+Q,X=N[1],H=N[1]+O,A,L,R=8,G=15,U,W=q.offsetWidth,M=Math.max(z,(z+(S/2))-(W/2));var V=K;if(!isDialogShowing()){while(V&&V.nodeName!="BODY"){var F=window.getComputedStyle(V,null);if("fixed"==F.position){J+=X;z+=T;break}V=V.parentNode}}var E=z+(S/2);A=J+P+G;U=A-q.offsetHeight;L=E-(C/2);if(L+C>I-12){L=I-12-C}else{if(LH){A=J-B-R;q.classList.add("flipped");U=A+d.offsetHeight}else{q.classList.remove("flipped")}if(x(K)){M+=rsPageXOffset()}d.style.top=A+"px";d.style.left=L+"px";q.style.top=U+"px";q.style.left=M+"px";l.addEventListener("mouseout",m);a()}function n(A){if(g){return}var B=getEventElement(A),C=checkAttribute(B,r),z=C?C.getAttribute(c):0;if(!z){y();if(C){t=setTimeout(function(){p(C)},k)}}else{if(C){a()}}}function u(){if(j){clearTimeout(j)}j=setTimeout(function(){g=0},500);g=1}function i(){if(document.addEventListener){document.addEventListener("mousemove",n);document.addEventListener("touchstart",u,true)}}function w(){if(window.addEventListener){window.addEventListener("load",i)}}w();return{hideTooltip:f}}();function mwHideTooltip(){MWToolTipper.hideTooltip()};