function addFavorite(n,t){try{window.external.addFavorite(n,t)}catch(i){try{window.sidebar.addPanel(t,n,"")}catch(i){alert("加入收藏失败,请使用Ctrl+D进行添加")}}}function setHome(n,t){t="http://10.11.2.166";try{n.style.behavior="url(#default#homepage)";n.setHomePage(t)}catch(r){if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(r){alert("此操作被浏览器拒绝!\n请在浏览器地址栏输入“about:config”并回车\n然后将 [signed.applets.codebase_principal_support]的值设置为'true',双击即可。")}var i=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);i.setCharPref("browser.startup.homepage",t)}}}function initTheme(){var n=$.cookie("theme");n==null&&(n="brown");$("i[data-theme='"+n+"']").addClass("on");$("i[data-theme]").click(function(){var n=$(this).data("theme");changeTheme(n);$.cookie("theme",n,{expires:30,path:"/"})})}function changeTheme(n){var t="#themecss";$("i[data-theme]").removeClass("on");n=="green"?($("i[data-theme='green']").addClass("on"),$(t).attr("href",themeGreen)):n=="blue"?($("i[data-theme='blue']").addClass("on"),$(t).attr("href",themeBlue)):($("i[data-theme='brown']").addClass("on"),$(t).removeAttr("href"))}function flashChecker(){var r=0,u=0,n,i,t;if(document.all)n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),n&&(r=1,VSwf=n.GetVariable("$version"),u=parseInt(VSwf.split(" ")[1].split(",")[0]));else if(navigator.plugins&&navigator.plugins.length>0&&(n=navigator.plugins["Shockwave Flash"],n))for(r=1,i=n.description.split(" "),t=0;t0&&t-1 in n}function ui(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(ef.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return ft.call(t,n)>=0!==r})}function ur(n,t){while((n=n[t])&&1!==n.nodeType);return n}function of(n){var t=fi[n]={};return i.each(n.match(c)||[],function(n,i){t[i]=!0}),t}function ht(){u.removeEventListener("DOMContentLoaded",ht,!1);n.removeEventListener("load",ht,!1);i.ready()}function v(){Object.defineProperty(this.cache={},0,{get:function(){return{}}});this.expando=i.expando+v.uid++}function fr(n,t,r){var u;if(void 0===r&&1===n.nodeType)if(u="data-"+t.replace(hf,"-$1").toLowerCase(),r=n.getAttribute(u),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:sf.test(r)?i.parseJSON(r):r}catch(f){}e.set(n,t,r)}else r=void 0;return r}function lt(){return!0}function k(){return!1}function hr(){try{return u.activeElement}catch(n){}}function vr(n,t){return i.nodeName(n,"table")&&i.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function bf(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function kf(n){var t=pf.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function ei(n,t){for(var i=0,u=n.length;u>i;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function yr(n,t){var u,c,f,s,h,l,a,o;if(1===t.nodeType){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),o=s.events)){delete h.handle;h.events={};for(f in o)for(u=0,c=o[f].length;c>u;u++)i.event.add(t,f,o[f][u])}e.hasData(n)&&(l=e.access(n),a=i.extend({},l),e.set(t,a))}}function o(n,t){var r=n.getElementsByTagName?n.getElementsByTagName(t||"*"):n.querySelectorAll?n.querySelectorAll(t||"*"):[];return void 0===t||t&&i.nodeName(n,t)?i.merge([n],r):r}function df(n,t){var i=t.nodeName.toLowerCase();"input"===i&&er.test(n.type)?t.checked=n.checked:("input"===i||"textarea"===i)&&(t.defaultValue=n.defaultValue)}function pr(t,r){var f,u=i(r.createElement(t)).appendTo(r.body),e=n.getDefaultComputedStyle&&(f=n.getDefaultComputedStyle(u[0]))?f.display:i.css(u[0],"display");return u.detach(),e}function si(n){var r=u,t=oi[n];return t||(t=pr(n,r),"none"!==t&&t||(at=(at||i("