var currentTip=null,xOffset=2,yOffset=2,tipShowing=false,oTip=null,sX=window.screenLeft,sY=window.screenTop,left,top,right,bottom;function clearTimer(){if(currentTip!=null){window.clearTimeout(currentTip);currentTip=null}}function hideTip(){clearTimer();tipOpen=false;tipShowing=false;oTip.style.visibility="hidden";oTip.style.left="-5000px";oTip.style.bgColor="";oTip.style.border="";oTip.style.width="";return false}function loadTipHtml(d,c,a,b){if(oTip==null)return;if(typeof c!="undefined"&&c!=null)oTip.style.width=c="px";if(typeof a!="undefined"&&a!=null)oTip.className=a;if(typeof b!="undefined"&&b!=null)oTip.style.border=b;oTip.innerHTML=d;tipShowing=true;setTipPosition();return false}function setTipPosition(){if(oTip){var b=Dea.Mouse.x,c=Dea.Mouse.y,a=10;if(tipShowing){oTip.style.visibility="hidden";if(b+a+oTip.offsetWidth>Dea.Mouse.windowWidth)oTip.style.left=b-(oTip.offsetWidth+a)+"px";else oTip.style.left=b+a+"px";if(c+a+oTip.offsetHeight>Dea.Mouse.windowHeight)oTip.style.top=Dea.Mouse.windowHeight-oTip.offsetHeight+"px";else oTip.style.top=c+"px";oTip.style.visibility="visible"}else{if(b+a+oTip.offsetWidth+125>Dea.Mouse.windowWidth)oTip.style.left=b-(oTip.offsetWidth+a)+"px";else oTip.style.left=b+a+"px";if(c+a+Dea.ToolTip.tip.offsetHeight+125>Dea.Mouse.windowHeight)oTip.style.top=Dea.Mouse.windowHeight-Dea.ToolTip.tip.offsetHeight+"px";else Dea.ToolTip.tip.style.top=c+"px"}}}function setTip(){oTip=Dea.Get("mcTip")}function displayTip(a,b){loadTipHtml(mc_PauseToLoadMsg,null,"","2px solid black");currentTip=window.setTimeout("getTip("+a+", '"+b+"')",1e3);return}function getTip(a,b){Dea.setEmsData(true);Dea.emsData.tipItemId=a;Dea.makeCallback(b,Dea.emsData);return}function showDetails(d,e,g,f){var c=PathToRoot+d+"?"+e,b=g||500,a=f||550;showPopWin(c,b,a,null,true);return false}function OverDivPosition(b,c){var a=oTip,f=a.offsetLeft,e=a.offsetLeft+a.offsetWidth,g=a.offsetTop,d=a.offsetTop+a.offsetHeight;if(b>f&&b<=e+20&&(c>g&&c<d+20))tipOpen=true;else tipOpen=false}document.write("<div id='mcTip'></div>");Dea.browser.addEvent(window,"load",setTip)
