(function(d,e,$,f,g){$.extend(e,{SysfixMgr:null,myInit:function(){this.show(500,347,0,1);var a=$.getUrlPara("id"),idb,ids;if(a==g||a.length==0){idb=$.getUrlPara("idb");ids=$.getUrlPara("ids");this.SysfixMgr=this.winApp.getComponent("RSFixSys");this.setSysfixInfo(idb,ids)}else{this.SysfixMgr=this.winApp.getComponent("RsPluginMgr");this.setPlugin(a)}this.activeDrag(".dialogHead","mousedown")},resize:function(w,h){var a=h-$("#wrap").outerHeight(),main=$("#itemDetail textarea");if(a===0)return;main.height(a+main.height())},setSysfixInfo:function(a,b){var c=this.SysfixMgr.getItemInfo(a,b),blk=" ",dn="\n\n",info=c.info,type=c.excepType,exce=c.exception,norm=c.normal,path=c.path,text=[];text[text.length]='－描述\n';path!=''&&(text[text.length]='　路徑：'+path+'\n');text[text.length]='　'+info+'\n\n';switch(type){case 0:text[text.length]='－目前異常狀況\n　註冊表鍵值為'+(exce.length==0?"空":blk+exce)+dn;text[text.length]='－正常時\n　註冊表鍵值'+(norm.length==0?"應該為空":"為"+blk+norm);break;case 1:text[text.length]='－目前異常狀況\n　'+(exce.length==0?"缺少文件":"有多餘檔"+blk+exce)+dn;text[text.length]='－正常時\n　'+(norm.length==0?"不應該有此檔":"應該有檔"+blk+norm);break;case 2:exce!=''&&(text[text.length]='－目前異常狀況\n　檔 '+this.getFileName(path)+' 內容被更改');break}$('#itemDetail textarea').enableSelection();$('#itemDetail textarea').val(text.join(''))},getFileName:function(a){var i=a.lastIndexOf("\\");return i>=0?a.substr(i+1):""},setPlugin:function(a){var b=this.SysfixMgr.getPluginDetailInfo(a),detailtext=[],i,file,reg;if(b.filecount>0){detailtext.push(" - 相關檔("+b.filecount+"個)\r\n");for(i=0;i<b.filecount;i++){file=b.getInstallFile(i);detailtext.push("   ");detailtext.push(file);detailtext.push("\r\n")}}if(b.regcount>0){detailtext.push(" - 相關註冊表項("+b.regcount+"個)\r\n");for(i=0;i<b.regcount;i++){reg=b.getRegInfo(i);detailtext.push("   ");detailtext.push(reg);detailtext.push("\r\n")}}$('#itemDetail textarea').enableSelection();$('#itemDetail textarea').val(detailtext.join(""))}});$(function(){e.init()})})(window,Core,jQuery,LangPack);$.copyTxt=function(a){var b=""+a;if(window.clipboardData){window.clipboardData.clearData();window.clipboardData.setData("Text",b)}else if(navigator.userAgent.indexOf("Opera")>0){window.location=b}else if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(e){alert("複製操作被流覽器拒絕！\n請在流覽器位址欄輸入\"about:config\"並回車\n然後將\"signed.applets.codebase_principal_support\"設置為\"true\"\n\n或者使用快速鍵 Ctrl+C 複製。");return false}var c=Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);if(!c)return;var d=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(!d)return;d.addDataFlavor("text/unicode");var f=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString),copytext=b;f.data=copytext;d.setTransferData("text/unicode",f,copytext.length*2);var g=Components.interfaces.nsIClipboard;if(!c)return false;c.setData(d,null,g.kGlobalClipboard)}return true};