var Yibeicha={version:"0.9"};Yibeicha.util={};(function(){Yibeicha.Portal=function(){return{isReady:false,isToRegister:false,isToLogon:false,isToAboutUs:false,isToContactUs:false,isToDemo:false,showLoading:function(){document.getElementById("loading").style.display="block"},hideLoading:function(){document.getElementById("loading").style.display="none"},toRegister:function(){this.showLoading();this.isToRegister=true},toLogon:function(){this.showLoading();this.isToLogon=true},toDemo:function(){this.showLoading();this.isToDemo=true},toAboutUs:function(){this.showLoading();this.isToAboutUs=true},toContactUs:function(){this.showLoading();this.isToContactUs=true}}}()})();Yibeicha.util.addBookmark=function(B,A){if(window.sidebar){window.sidebar.addPanel(B,A,"")}else{if(document.all){window.external.AddFavorite(A,B)}else{if(window.opera&&window.print){return true}}}};Yibeicha.util.setHomepage=function(B){if(document.all){document.body.style.behavior="url(#default#homepage)";document.body.setHomePage(B)}else{if(window.sidebar){if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(C){alert("该操作被浏览器拒绝，如果想启用该功能，请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true")}}var A=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);A.setCharPref("browser.startup.homepage",B)}}};