var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer;function getMsg(){divHeight=parseInt(document.getElementById("eMeng").offsetHeight,10);divWidth=parseInt(document.getElementById("eMeng").offsetWidth,10);docWidth=document.documentElement.clientWidth;docHeight=document.documentElement.clientHeight;document.getElementById("eMeng").style.top=docHeight+parseInt(document.documentElement.scrollTop,10)+document.body.scrollTop+5+"px";document.getElementById("eMeng").style.left=docWidth+parseInt(document.documentElement.scrollLeft,10)-divWidth+"px";document.getElementById("eMeng").style.visibility="visible";objTimer=window.setInterval("moveDiv()",10)}function resizeDiv(){divHeight=parseInt(document.getElementById("eMeng").offsetHeight,10);divWidth=parseInt(document.getElementById("eMeng").offsetWidth,10);docWidth=document.documentElement.clientWidth;docHeight=document.documentElement.clientHeight;document.getElementById("eMeng").style.top=docHeight+parseInt(document.documentElement.scrollTop,10)+document.body.scrollTop-divHeight+"px";document.getElementById("eMeng").style.left=docWidth+parseInt(document.documentElement.scrollLeft,10)-divWidth+"px"}function moveDiv(){if(parseInt(document.getElementById("eMeng").style.top,10)<(docHeight-divHeight+parseInt(document.documentElement.scrollTop,10)+document.body.scrollTop)){window.clearInterval(objTimer);return}divTop=parseInt(document.getElementById("eMeng").style.top,10);document.getElementById("eMeng").style.top=divTop-5+"px"}function closeDiv(){document.getElementById("eMeng").style.visibility="hidden";document.getElementById("list_dd").style.display="block";if(objTimer){window.clearInterval(objTimer)}}function showDiv(){document.getElementById("eMeng").style.visibility="visible";document.getElementById("list_dd").style.display="block";if(objTimer){window.clearInterval(objTimer)}resizeDiv()}function minDiv(){document.getElementById("list_dd").style.display="none";document.getElementById("min").style.display="none";document.getElementById("max").style.display="block";if(objTimer){window.clearInterval(objTimer)}resizeDiv()}function maxDiv(){document.getElementById("list_dd").style.display="block";document.getElementById("min").style.display="block";document.getElementById("max").style.display="none";if(objTimer){window.clearInterval(objTimer)}resizeDiv()}function upDiv(){document.getElementById("eMeng").style.visibility="visible";document.getElementById("list_dd").style.display="block";document.getElementById("min").style.display="block";document.getElementById("max").style.display="none";if(objTimer){window.clearInterval(objTimer)}resizeDiv();divTop=parseInt(document.getElementById("eMeng").style.top,10);document.getElementById("eMeng").style.top=divTop-30+"px";window.setTimeout(resizeDiv,500)}function downDiv(){document.getElementById("eMeng").style.visibility="visible";document.getElementById("list_dd").style.display="block";document.getElementById("min").style.display="block";document.getElementById("max").style.display="none";if(objTimer){window.clearInterval(objTimer)}resizeDiv();divTop=parseInt(document.getElementById("eMeng").style.top,10);document.getElementById("eMeng").style.top=divTop+30+"px"}window.onload=getMsg;window.onresize=resizeDiv;window.onscroll=resizeDiv;
