function iecompat(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body} ID_isIE=document.all; IDDivPop = document.getElementById("IDPopupLayer") IDDivPop.onmousedown=IDPopMove; IDDivPop.onmouseup=Function("MoveEnabled=false;IDDivPop.style.cursor=''"); divpop_cookies = "" s_left = 0 s_top = 0 function IDPopupLayerSet(){ if (document.cookie.indexOf(divpop_cookies + "=no")== -1){ s_left = (iecompat().clientWidth-860)/2; s_top = (iecompat().clientHeight-523)/2; IDDivPop.style.left = s_left + "px" ; IDDivPop.style.top = s_top + "px" ; if(arguments[0]!=undefined&&arguments[1]!=undefined){ IDDivPop.style.left = (s_left + arguments[0]) + "%" IDDivPop.style.top = arguments[1] + "%" } } else { IDDivPop.style.display="none" } } function IDPopMove(e){ if(!ID_isIE){e.preventDefault()} nowX=parseInt(IDDivPop.style.left); nowY=parseInt(IDDivPop.style.top); offsetx=ID_isIE ? event.clientX : e.clientX; offsety=ID_isIE ? event.clientY : e.clientY; oldx = ID_isIE ? event.clientX-nowX : e.clientX-nowX oldy = ID_isIE ? event.clientY-nowY : e.clientY-nowY MoveEnabled=true; document.onmousemove=IDPopMove2; } function IDPopMove2(e){ if (!MoveEnabled) return; IDDivPop.style.left=ID_isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx + "%"; IDDivPop.style.top=ID_isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety + "%"; return false; } function IDPopupLayerClose(){ IDDivPop.style.display="none" } function IDPopupLayerCookie(c_name){ divpop_cookies = c_name var today = new Date() ; today.setDate(today.getDate() + 1) ; today.setHours(0); today.setMinutes(0); today.setSeconds(0); document.cookie = c_name + "=no;expires=" + today.toGMTString() ; IDDivPop.style.display="none" }