function ActionHtmlWindow(a){this.bg=document.createElement("div"),this.box=document.createElement("div");var b=document.createElement("div");this.content=document.createElement("div");var c=document.createElement("div"),d=document.createElement("div");this.iContent=d;var e=document.createElement("iframe"),f=this,g=this.formatData(a),h=this.bg.style,i=this.box.style,j=b.style,k=this.content.style,l=e.style,m=c.style,n=d.style,o=0;this.box.appendChild(this.content),this.box.appendChild(b),""!=g.title&&" "!=g.title&&(this.content.appendChild(c),o=30),this.content.appendChild(d),d.appendChild(e),m.height=o,c.innerHTML=g.title,m.lineHeight=o-1+"px",m.fontSize="16px",m.borderBottom="1px solid #c1c1c1",m.paddingLeft="8px",this.d=g,this.oh=o,h.position="fixed",h.top="0",h.right="0",h.bottom="0",h.left="0",h.zIndex="1040",h.opacity=.5,h.backgroundColor="#000",f.setAlphaOpacity(this.bg,50),i.position="fixed",i.top="0",i.right="0",i.bottom="0",i.left="0",i.zIndex="1040",i.padding="0 10px",i.border="none",i.margin="0",i.overflow="auto",k.position="relative",k.display="block",k.backgroundColor="#fff",k.lineHeight="0px",k.margin="0 auto",k.width="100%",k.maxWidth=g.width+"px",k.height=parseInt(g.height)+o+"px",k.overflow="hidden",n.position="relative",n.display="block",n.backgroundColor="#fff",n.lineHeight="0px",n.margin="0",n.width="100%",n.maxWidth=g.width+"px",n.height=g.height+"px",l.position="relative",l.border="none",l.margin="0",l.padding="0",l.left="0px",l.top="0px",e.width="100%",e.height="100%",e.src=g.src,j.position="fixed",j.width="60px",j.height="60px",j.top="0px",j.right="0px",j.overflow="hidden",j.cursor="pointer",b.title="Close",b.innerHTML="<img src='files/extfiles/close_btn.png' style='width:100%;height:100%;'>";var p=new Image;p.onload=function(){b.innerHTML="<img src='files/extfiles/close_btn.png' style='width:100%;height:100%;'>"},p.onerror=function(){b.innerHTML="<img src='../files/extfiles/close_btn.png' style='width:100%;height:100%;'>"},p.src="files/extfiles/close_btn.png",this.box.onclick=function(){f.destroy()},this.content.onclick=function(a){return a.preventDefault(),!1},b.onclick=function(a){return a.stopPropagation(),a.preventDefault(),f.destroy(),!1},this.launch(),this.setPositon(),this.isInResize=!0,window.onresize=function(){f.setPositon()}}ActionHtmlWindow.prototype={constructor:ActionHtmlWindow,formatData:function(a){var b=a.split(";"),c=b[0]||"";return{src:c,width:b[1]||.8*(window.innerWidth||$(window).width()),height:b[2]||.8*(window.innerHeight||$(window).height()),title:b[3]||""}},destroy:function(){var a=document.getElementsByTagName("body")[0];a.removeChild(this.bg),a.removeChild(this.box),this.isInResize=!1},launch:function(){var a=document.getElementsByTagName("body")[0];a.appendChild(this.bg),a.appendChild(this.box)},setAlphaOpacity:function(a,b){document.all?a.style.filter="alpha(opacity="+b+")":a.style.opacity=b/100},setPositon:function(){var a=window.innerHeight||$(window).height(),b=parseInt(this.d.height)+this.oh;if(b>=a-20){var c=a-20,d=c-this.oh;this.content.style.height=c+"px",this.iContent.style.height=d+"px"}else this.content.style.height=b+"px",this.iContent.style.height=this.d.height+"px";this.content.style.marginTop=Math.max(10,(this.box.clientHeight-(parseInt(this.d.height)+this.oh))/2)+"px",this.content.style.marginBottom=Math.max(10,(this.box.clientHeight-(parseInt(this.d.height)+this.oh))/2)+"px"}};