var enableDragging=true;var originalDivHTML="";var DivID="";var over_fd_title_bar=false;var hideDelaySeconds=-1;var onmfun;var objDiv=null;var mouseDownOffsetX=0;var mouseDownOffsetY=0;function displayFloatingDivImp(o,n,d,p,f,l,e,i){if(document.getElementById(o).style.visibility!="visible"){onmfun=document.getElementById(o).onmouseout;DivID=o;var m=-1,k=-1;if(typeof(window.pageYOffset)=="number"){k=window.pageYOffset;m=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){k=document.body.scrollTop;m=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){k=document.documentElement.scrollTop;m=document.documentElement.scrollLeft}}}var c=-1,b=-1;if(typeof(window.innerWidth)=="number"){c=window.innerWidth;b=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){c=document.documentElement.clientWidth;b=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){c=document.body.clientWidth;b=document.body.clientHeight}}}if(d!=null&&d>0){document.getElementById(o).style.width=d+"px"}if(p!=null&&p>0){document.getElementById(o).style.height=p+"px"}if(f!=null&&f>0){document.getElementById(o).style.left=f+"px"}if(l!=null&&l>0){document.getElementById(o).style.top=l+"px"}document.getElementById(o).style.zIndex=100;var g="";if(g==""){g=document.getElementById(o).innerHTML}originalDivHTML=g;var h="";if(n!=null){var a='<table style="border-spacing:0px;border-collapse: collapse;border-width:0px;padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;"><tr style="border-spacing:0px;border-width:0px;padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;"><td style="border-spacing:0px;border-width:0px;padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;">';var j='<table style="width:100%;background:'+e+';"><tr><td ondblclick="void(0);" onmouseover="over_fd_title_bar=true;" onmouseout="over_fd_title_bar=false;" align="left" style="cursor:move;height:18px; font: bold 12px arial;vertical-align:bottom;horizontal-align:left">'+n+'</td><td style="width:38px;font-size:10px;vertical-align:bottom" align="right"><a href="javascript:hideFloatingDiv(\''+o+"');void(0);\">Close</a></td></tr></table>";addHeader=a+j+" </td></tr><tr><td>"}document.getElementById(o).innerHTML=addHeader+unescape(originalDivHTML)+"</td></tr></table>";document.getElementById(o).style.display="block";document.getElementById(o).style.visibility="visible";d=document.getElementById(o).offsetWidth;p=document.getElementById(o).offsetHeight;if(f!=null&&f>0&&c>=0&&m>=0&&(f+d>c+m)){document.getElementById(o).style.left=(c+m-d)+"px"}if(l!=null&&l>0&&b>=0&&k>=0&&(l+p>b+k)){document.getElementById(o).style.top=(b+k-p)+"px"}if(i!==null&&i>0){timerDivId=o;hideDelaySeconds=i;startFDT()}}}function displayFloatingDiv(h,g,b,i,d,f,c,e,a){if(a!=null&&a!=""){ajaxCallForFD(h,g,b,i,d,f,c,e,a)}else{displayFloatingDivImp(h,g,b,i,d,f,c,e)}}function displayFloatingDivAjaxResponse(d,h,g,a,i,c,f,b,e){if((d.readyState==4)&&(d.status==200)){hideFloatingDiv(h);document.getElementById(h).innerHTML=d.responseText;displayFloatingDivImp(h,g,a,i,c,f,b,e)}}function ajaxCallForFD(l,k,b,m,d,i,c,g,a){var f=getRequestObject();f.onreadystatechange=function(){displayFloatingDivAjaxResponse(f,l,k,b,m,d,i,c,g)};if(a.length<=1024){f.open("GET",a,true);f.send(null)}else{var j=a.indexOf("?");var e=a.substr(j+1);var h=a.substr(0,j);f.open("POST",h,true);f.setRequestHeader("Content-type","application/x-www-form-urlencoded");f.setRequestHeader("Content-length",e.length);f.setRequestHeader("Connection","close");f.send(e)}}function hideFloatingDiv(a){if(a==""){return}document.getElementById(a).innerHTML=originalDivHTML;document.getElementById(a).style.visibility="hidden";document.getElementById(a).style.display="none";DivID=""}function hideFDOnMouseOut(c,b,a){if(isMouseLeaveOrEnter(c,b)){hideFloatingDiv(a)}}function MouseDown(a){if(over_fd_title_bar){objDiv=document.getElementById(DivID);objDiv.onmouseout=null;mouseDownOffsetX=getMouseX(a)-parseInt(objDiv.style.left);mouseDownOffsetY=getMouseY(a)-parseInt(objDiv.style.top)}}function MouseMove(a){getMouseXY(a);if(objDiv){objDiv.style.left=(getMouseX(a)-mouseDownOffsetX)+"px";objDiv.style.top=(getMouseY(a)-mouseDownOffsetY)+"px";return false}}function MouseUp(){if(over_fd_title_bar){document.getElementById(DivID).onmouseout=onmfun}objDiv=null}function initFloatingDivMovementOption(){if(!IE){document.captureEvents(Event.MOUSEDOWN|Event.MOUSEMOVE|Event.MOUSEUP)}document.onmousedown=MouseDown;document.onmousemove=MouseMove;document.onmouseup=MouseUp}if(enableDragging){initFloatingDivMovementOption()}var timerTimeSecondsFDT=0;var timerIDFDT=0;var tStartFDT=null;var timerDivId=null;function updateTimerFDT(){if(timerIDFDT){clearTimeout(timerIDFDT);clockID=0}if(!tStartFDT){tStartFDT=new Date()}var a=new Date();var b=a.getTime()-tStartFDT.getTime();a.setTime(b);timerTimeSecondsFDT=a.getSeconds();if(hideDelaySeconds==timerTimeSecondsFDT){stopFDT();hideFloatingDiv(timerDivId)}timerIDFDT=setTimeout("updateTimerFDT()",1000)}function startFDT(){tStartFDT=new Date();timerTimeSecondsFDT=0;timerIDFDT=setTimeout("updateTimerFDT()",1000)}function stopFDT(){if(timerIDFDT){clearTimeout(timerIDFDT);timerIDFDT=0}tStartFDT=null}function resetFDT(){tStartFDT=null;timerTimeSecondsFDT=0};