function waitThenInitNiceScorll(){try{document.onreadystatechange=function(){"complete"===document.readyState?setTimeout((function(){window.initNiceScorll&&window.initNiceScorll()}),200):setTimeout(waitThenInitNiceScorll,10)}}catch(n){}}void 0===window.ss&&(window.ss={}),window.ss.display||(window.ss.display={}),window.ss.display.Yi=49,window.ss.display.Xi=23,function(){if(!window.ss.topWindow){for(var n=window;n!==window.top;)try{var t=(new Date).getMilliseconds().toString();n.parent[t]=1,n=n.parent}catch(n){break}window.ss.topWindow=n}}(),window.ss.topWindow.ss||(window.ss.topWindow.ss={}),window.ss.topWindow.ss.display||(window.ss.topWindow.ss.display={}),$(document).ready((function(){waitThenInitNiceScorll();try{window.ss.display.closeLoad()}catch(n){}})),window.ss.display.showLoad=function(){$(window.ss.topWindow.document).find("#fMD").show()},window.ss.display.closeLoad=function(){$(window.ss.topWindow.document).find("#fMD").hide()},window.ss.display.getssDialogId=function(n){n||(n=window);for(var t=window.ss.topWindow.document.getElementsByTagName("IFRAME"),e=null,s=0;swindow.ss.topWindow.innerHeight?t=e+this.Yi:a+l0))return null;for(var t=n.parent.document.querySelectorAll("iframe"),e=0;ewindow.ss.topWindow.innerHeight?(a=n.minHeight+this.Yi,e="ssFullScreen",t=!1):n.maxHeight+this.Yi'+r+''),e){if("object"!=typeof e){var u=[];u.push(e),e=u}for(var p=0;pw-20&&(d=w-20),a>u-20&&(a=u-20),(d>w||a>u)&&(h=!0),window.ss.topWindow.dhxWins||(window.ss.topWindow.dhxWins=new window.ss.topWindow.dhtmlXWindows);var y=window.ss.topWindow.dhxWins.createWindow(l,0,0,d,a);y.keepInViewport(!0),h||y.center(),y.setText(r);for(var g=!1,f=["{","}","[","]","|"],m=0;m-1){g=!0;break}g||o&&o.length>1e3?(y.attachEvent("onContentLoaded",(function(){try{if(this.getFrame().getAttribute("formload"))return;var n=this.getFrame().contentDocument,t=o.indexOf("?");t=t<0?o.length-1:t;var e=o.substring(0,t),s=o.substring(t+1).split("&"),i=n.createElement("form");i.setAttribute("action",e),i.setAttribute("method","post"),n.body.appendChild(i);for(var d=0;dn.clientHeight}var o=n.style.cssText,d=$(n),a=s.call(n);n.srcText=a;var l=window.getComputedStyle(n),r=parseInt(l.fontSize)||parseInt($("body").css("font-size"))||16,w=d.width()||0,c=function(){var n=s.call(this);e.call(this,"中");var t=Math.max(this.scrollHeight,this.clientHeight);return e.call(this,n),t}.call(n);if(t=t||parseFloat(l.height)||parseFloat(d.css("min-height")),t=Math.max(c,t),n.style.setProperty("height",t+"px","important"),e.call(n,n.srcText),0==a.length||0==t)return n.style.cssText=o,a;var u=Math.floor(w/r),p=a.substring(0,u);e.call(n,p);for(var h;u0&&i(n);)u--,p=p.substring(0,u)+"...",h=p,e.call(n,h);return e.call(n,p),n.style.cssText=o,p};