var refresh=false,refreshURL="";var isDrag=false;var oldX=0,oldY=0,lessY=0,lastScrollY=0,moveID=0;function StartDrag(e){if(e==null)e=window.event;isDrag=true;if(isIE){oldX=e.x;oldY=e.y}else{oldX=e.clientX;oldY=e.clientY}lessFrame()}function StopDrag(){isDrag=false;lessFrame()}function Drag(e){var a=$("alertFram");if(isDrag){if(e==null)e=window.event;var x,y;if(isIE){x=e.x;y=e.y}else{x=e.clientX;y=e.clientY}a.style.left=parseInt(parseInt(a.style.left.replace("px",""))+(x-oldX))+"px";a.style.top=parseInt(parseInt(a.style.top.replace("px",""))+(y-oldY))+"px";lessFrame();oldX=x;oldY=y}}function lessFrame(){var a;if(document.documentElement&&document.documentElement.scrollTop){a=document.documentElement.scrollTop}else{a=document.body.scrollTop}var b=parseInt($("alertFram").style.top.replace("px",""));lastScrollY=b;lessY=b-a}function moveStart(){clearInterval(moveID);moveID=window.setInterval("moveFrame()",1)}function moveFrame(){var a;if(document.documentElement&&document.documentElement.scrollTop)a=document.documentElement.scrollTop;else if(document.body)a=document.body.scrollTop;var b=.1*(a-lastScrollY+lessY);if(b>0){b=Math.ceil(b)}else{b=Math.floor(b)}if(b!=0){if($("alertFram")){$("alertFram").style.top=parseInt(b+parseInt($("alertFram").style.top.replace("px","")))+"px"}else{clearInterval(moveID)}lastScrollY=lastScrollY+b}else{clearInterval(moveID)}}function closeFunction(){clearTimeout(closeFuncID);StopDrag();document.body.removeChild($("alertFram"));document.body.removeChild($("shield"));document.body.onselectstart=function(){return true};document.body.oncontextmenu=function(){return true};window.onscroll=function(){};clearInterval(moveID);try{if(refresh){window.location=refreshURL}}catch(e){}}function sAlert(w,h,l,t,d){if(!d)d="";var f=document.createElement("DIV");f.id="shield"+d;f.style.cssText="position:absolute;left:0px;top:0px;width:100%;height:"+document.body.scrollHeight+"px;background:#333;text-align:center;z-index:10000";f.style.filter="alpha(opacity=0)";f.style.opacity=0;f.innerHTML='<iframe id="shieldFrame" src="javascript:false" style="position:absolute; visibility:inherit; top:0px; left:0px; width:98%; height:'+(document.body.scrollHeight-5)+'px; z-index:-1; filter=\'progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)\';"></iframe>';var g=document.createElement("DIV");g.id="alertFram"+d;g.style.cssText="position:absolute;left:"+l+"px;top:"+t+"px;width:"+w+"px;height:"+h+"px;background:#FFFFFF;text-align:center;z-index:10001";document.body.appendChild(g);document.body.appendChild(f);lessFrame();this.setOpacity=function(a,b){if(b>=1)b=b/100;try{a.style.opacity=b}catch(e){}try{if(a.filters.length>0&&a.filters("alpha")){a.filters("alpha").opacity=b*100}else{a.style.filter="alpha(opacity=\""+(b*100)+"\")"}}catch(e){}};var c=0;this.doAlpha=function(){if(isIE)c+=10;if(++c>30){clearInterval(ad);return 0}setOpacity(f,c)};setOpacity(f,30);document.body.onselectstart=function(){return false};document.body.oncontextmenu=function(){return false}};
