(function(n,t){var f=document.getElementById("main"),i="",r="",u=0;setInterval(function(){var o=external.parentWindowRun(function(n){if(n&&(i=n.getPopData("status")||!1,i&&i!=t)){var u=n.getPopData("css");return r!=u&&($("body").removeAttr("class").addClass(u),r=u),i}$e.windowclose()}),s,e;if(o!=t){if(i=="!")return;f.innerHTML=o,s=150,e=$("#main").height()+2,u!=e&&(u=e,n.resizeBy(s,e))}else $e.windowclose()},500),n.windowMenu=function(){$e.menu("init"),$e.menu("关闭窗口",function(){$e.windowclose()},-1,!0),$e.menu("show")}})(window)