window.ss||(window.ss={}),String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")},String.prototype.ltrim=function(){return this.replace(/(^\s*)/g,"")},String.prototype.rtrim=function(){return this.replace(/(\s*$)/g,"")},"addEventListener"in Element.prototype||(Element.prototype.addEventListener=function(e,t,n){this.attachEvent("on"+e,t)}),"addEventListener"in document.constructor||(document.constructor.addEventListener=function(e,t,n){this.attachEvent("on"+e,t)}),"addEventListener"in document||(document.addEventListener=function(e,t,n){this.attachEvent("on"+e,t)}),"addEventListener"in window.constructor||(window.constructor.addEventListener=function(e,t,n){this.attachEvent("on"+e,t)}),"addEventListener"in window||(window.addEventListener=function(e,t,n){this.attachEvent("on"+e,t)}),"removeEventListener"in Element.prototype||(Element.prototype.removeEventListener=function(e,t,n){this.detachEvent("on"+e,t)}),"removeEventListener"in document.constructor||(document.constructor.removeEventListener=function(e,t,n){this.detachEvent("on"+e,t)}),"removeEventListener"in document||(document.removeEventListener=function(e,t,n){this.detachEvent("on"+e,t)}),"removeEventListener"in window.constructor||(window.constructor.removeEventListener=function(e,t,n){this.detachEvent("on"+e,t)}),"removeEventListener"in window||(window.removeEventListener=function(e,t,n){this.detachEvent("on"+e,t)}),function(){for(var e=window;e!=top;)try{e.parent[(new Date).getMilliseconds()]=1,e=e.parent}catch(e){break}ss.topWindow=e}(),ss.base||(ss.base={}),ss.base.win2FitHeight=function(e,t){ss.base.refreshApplyIframeHeight(null,t);var n=ss.base.applyIframeElement,s=parseInt(n.getAttribute("height"));n.src=ss.base.setRowCountPerPage(t,s,parseInt(n.offsetWidth))},ss.base.applyIframe=function(e,t,n,s,r){var o=n,i=ss.topWindow.ss.base.refreshApplyIframeHeight();if(i&&i>0&&(o=i),s||r){var a=e.getAttribute("id").replace(/[^0-9]/,"m"),p=document.querySelector("#"+a);p&&(p.style.height=o+"px");var c=document.querySelector("table");c&&c.setAttribute("width",p.style.width),e.setAttribute("width","100%"),e.setAttribute("height","100%")}e.src=ss.base.setRowCountPerPage(t,o)},ss.base.applyIframeElement||(ss.base.applyIframeElement=null),ss.base.refreshApplyIframeHeight=function(e,t){if(e&&(ss.base.applyIframeElement=e),!ss.base.applyIframeElement){var n=ss.topWindow.document.getElementsByName("win2")[0];ss.base.applyIframeElement=n}var s=ss.topWindow.innerHeight||ss.topWindow.document.documentElement.clientHeight||ss.topWindow.document.body.clientHeight,r=ss.base.applyIframeElement;t||(t=r.getAttribute("src"));try{/pageWidth=([0-9]+)/.exec(t)||(s-=28);var o=r.parentNode.getBoundingClientRect(),i=(o.left,Math.max($(ss.topWindow).outerWidth(!0),1025));if(!t||ss.display.isPersonalHomePageUrl(t))r.width=String(i)+"px";else{var a=i;r.width=String(a)+"px",.5*(i-a)-o.left+"px"}ss.base.setHomeWidth(i)}catch(e){console.error(e)}var p=s-function e(t){var n=t.offsetTop;return t.offsetParent&&(n+=e(t.offsetParent)),n}(ss.base.applyIframeElement);return ss.base.applyIframeElement.height=String(p),ss.topWindow.resizeFrameFunc||(ss.topWindow.resizeFrameFunc=ss.base.refreshApplyIframeHeight,ss.topWindow.addEventListener("resize",(function(){ss.topWindow.resizeFrameFunc(ss.base.applyIframeElement)}))),p},ss.base.initApplyIframe=function(e){var t=ss.topWindow.document.getElementsByName(e)[0];ss.topWindow.ss.base.applyIframeElement=t;var n=t.getAttribute("oriSrc"),s=ss.base.refreshApplyIframeHeight(t);t.src=n+"&high="+s},ss.base.setRowCountPerPage=function(e,t,n,s){for(var r=n||755,o=e+"",i={},a=e.replace(/.+\?/,"").split("&"),p=0;pf?f-1:f,d=Math.floor(h*d),o=o.replace(/&(rowHigh|rowCountPerPage|removeHigh)=[0-9]+/g,""),o+="&rowCountPerPage="+d}return s?d:o},ss.base.setHomeWidth=function(e){var t=e||Math.max($(ss.topWindow).outerWidth(!0),1025);ss.topWindow.win2width=t,ss.topWindow.$("#iconGroup >div").css({width:t}),ss.topWindow.$("#menuGroup").css({width:t}),"function"==typeof ss.topWindow.initMenuTotally&&ss.topWindow.initMenuTotally()};