function boxShow(e,j,k,m,n,o){this.begin=true;this.container=$id(e);this.location=j;this.isBackground=typeof k=='undefined'?true:k;this.isDisplay=typeof m=='undefined'?true:m;this.zindex=n?n:101;this.backgroundAction=typeof o=='undefined'?true:o;this.opacity="0.6";this.filter="alpha(opacity=50)";this.showScroll=true;this.diffie6=true;this.inter;var p=this;this.ie6=_ppdai.browser.ie&&_ppdai.browser.version=="6.0";this.overlay=$id('BOX_overlay');this.box_remove=function(){window.clearInterval(p.inter);p.begin=false;window.clearTimeout(p.scrollTimeId);window.clearTimeout(p.scrollTimeIdBak);var a=p.overlay;var b=p.container;if(a!=null)a.style.display="none";b.style.display="none";$d.body.style.height="";$d.documentElement.style.overflow="";if($d.body)$d.body.style.overflow=""};this.box_msie_ie6=function(){var b=p.location;var a=p.container;var c=($d.documentElement.scrollLeft?$d.documentElement.scrollLeft:$d.body.scrollLeft);var d=($d.documentElement.scrollTop?$d.documentElement.scrollTop:$d.body.scrollTop);var e=$d.documentElement.clientWidth;var f=$d.documentElement.clientHeight;var l=0,t=0;if(b.constructor==String){switch(b){case("rightbottom"):l=c+((e-a.offsetWidth))+'px';t=d+((f-a.offsetHeight))+'px';break;case("leftbottom"):l=c+'px';t=d+((f-a.offsetHeight))+'px';break;case("lefttop"):l=c+'px';t=d+'px';break;case("righttop"):l=c+((e-a.offsetWidth))+'px';t=d+'px';break;case("middle"):default:l=c+((e-a.offsetWidth)/2)+'px';t=d+((f-a.offsetHeight)/2)-20+'px';break}}else{l=b.left?c+b.left.replace("px","")+"px":"0px";t=b.top?d+b.top.replace("px","")+"px":"0px"}a.style.left=l;a.style.top=t};this.box_msie=function(){var b=p.location;var a=p.container;if(b.constructor==String){switch(p.location){case("rightbottom"):a.style["right"]="0px";a.style["bottom"]="0px";break;case("leftbottom"):a.style["left"]="0px";a.style["bottom"]="0px";break;case("lefttop"):a.style["left"]="0px";a.style["top"]="0px";break;case("righttop"):a.style["right"]="0px";a.style["top"]="0px";break;case("middle"):default:var l=0;var t=0;var c,d;if(self.innerHeight){c=self.innerWidth;d=self.innerHeight}else if($d.documentElement&&$d.documentElement.clientHeight){c=$d.documentElement.clientWidth;d=$d.documentElement.clientHeight}else if($d.body){c=$d.body.clientWidth;d=$d.body.clientHeight}l=c/2-a.offsetWidth/2;t=d/2-a.offsetHeight/2;a.style["left"]=l+"px";a.style["top"]=t+"px";break}}else{a.style["left"]=b.left?b.left:"0px";a.style["top"]=b.top?b.top:"0px"}};this.init=function(){if(p.container==null)return;if(p.ie6){this.container.innerHTML+="<iframe style=\"display: block; z-index: -1; filter: Alpha(Opacity='0'); ; left: expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px'); ; width: expression(this.parentNode.offsetWidth+'px'); POSITION: absolute; ; TOP: expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px'); ; height: expression(this.parentNode.offsetHeight+'px')\" tabIndex=-1 src=\"javascript:false;\" frameBorder=0></iframe>"}p.container.style["position"]="absolute";p.container.style["display"]="none";p.begin=true;p.scrollTimeId=null;p.scrollTimeIdBak=null;p.ready=document.readyState;p.inter=window.setInterval(function(){if(_ppdai.browser.ie&&p.ready!="complete"){p.ready=document.readyState;return}p.box_layout();window.clearInterval(p.inter)},10)};this.box_overlay=function(){var b=p.isBackground;var c=p.overlay;var a=p.container;var d=p.backgroundAction;var e=p.ie6||!p.diffie6;if(!b)return;if(c==null){c=$d.createElement("div");c.setAttribute('id','BOX_overlay');if(a.parentNode!=null)a.parentNode.appendChild(c);p.overlay=c}c.style["background"]="#000";if(e){c.style["position"]="absolute"}else{c.style["position"]="fixed"}c.style.zIndex=100;c.style["filter"]=p.filter;c.style["-moz-opacity"]=p.opacity;c.style["opacity"]=p.opacity;c.style["border"]="1px solid #999";if(d)c.onclick=function(){p.box_remove()};var f=($d.documentElement.scrollLeft?$d.documentElement.scrollLeft:$d.body.scrollLeft);var g=($d.documentElement.scrollTop?$d.documentElement.scrollTop:$d.body.scrollTop);var h=$d.documentElement.clientWidth-2;var i=$d.documentElement.clientHeight;c.style.left=0+'px';c.style.top=0+'px';c.style.width=h+'px';c.style.height=i+'px';c.style.display="";if(e){c.style.left=f+'px';c.style.top=g+'px'}};this.box_layout=function(){var a=p.container;var b=p.isDisplay;var c=p.ie6||!p.diffie6;if(b)a.style.display="";else a.style.display="none";if(c){p.box_msie_ie6()}else{p.box_msie()}p.box_overlay();if(c){a.style["position"]="absolute";p.scrollTimeId=window.setTimeout(function(){if(p.begin)p.box_layout()},100)}else{$d.body.style.height="100%";$d.body.style.overflow="auto";$d.body.style.margin="0px";a.style["position"]="fixed"}if(!p.showScroll){$d.documentElement.style.overflow="hidden";if($d.body)$d.body.style.overflow="hidden";$d.documentElement.scrollTop="0";$d.documentElement.scrollLeft="0"}a.style.zIndex=p.zindex}};BringForthBox=function(){this.id="";this.className="";this.innerHTML="";this.boxshow=new boxShow();this.boxshow.location="middle";this.boxshow.isBackground=true;this.boxshow.opacity="0.2";this.boxshow.filter="alpha(opacity=20)";this.boxshow.isDisplay=true;this.boxshow.backgroundAction=true;this.boxshow.showScroll=false;this.boxshow.diffie6=false;_this=this};BringForthBox.prototype.init=function(){if(this.id.length==0)return;var b=$id(this.id);var c=true;if(b==null){b=$d.createElement("div");b.setAttribute('id',this.id);c=false}b.innerHTML=this.innerHTML;b.className=this.className;if(c){this.run()}else{_this.interval=window.setInterval(function(){var a=!$d.readyState||$d.readyState=="complete";if(a){if($d.body!=null)$d.body.appendChild(b);_this.run();window.clearInterval(_this.interval)}},10)}};BringForthBox.prototype.run=function(){this.boxshow.container=$id(this.id);this.boxshow.init()};