function showPageUrl(){var r=$f("currentUrl"),u,n,t,i;if(r!=null){try{u=window.dialogArguments||opener;n=u.parent.mainFrame.location.href}catch(r){$("#faq .pCurrentUrl").hide();return}t=n;t.indexOf("?")>-1&&(t=t.substr(0,t.indexOf("?")));i=t.lastIndexOf("/");switch($("#urlMode").val()){case"Full":n=n.substr(0,i+1)+"default.aspx?src="+$.url.encode(n.substr(i+1));break;default:n=appendUrlParam(n,"alone","1")}$(r).attr("href",n).text(n)}}function setHeight(){var n=window.name=="mainFrame"?6:36;$("#mainDiv").height(document.documentElement.clientHeight-$("#header").outerHeight(!0)-n)}function MaximizeWindow(){moveTo(0,0);resizeTo(screen.availWidth,screen.availHeight)}function setBtnFullWin(){var n=window.name=="fullWin";n&&$("#guide,#about").hide();$f("fullWindow").style.display=n?"none":""}function setAnchorBack(){$("#aBack").css("display",referrerIs("help.aspx")?"":"none")}function to(n){if(window.name=="mainFrame")location=n;else{var t=window.dialogArguments||opener;try{t.parent.mainFrame.location=n;top.close()}catch(i){}}}function bindCoping(n,t){var r=$("#"+n),i;if(i=t?$("#"+t):r,$.browser.oldie)window.clipboardData&&window.clipboardData.setData&&r.click(function(){window.clipboardData.setData("Text",getEleValue(i));winalert("已复制到剪贴板！")});else new ClipboardJS("#"+n,{text:function(){return getEleValue(i)}}).on("success",function(n){winalert("已复制到剪贴板！");n.clearSelection()})}function toCloseWin(){inPopup()?setTimeout(parent.$.colorbox.close,0):closeWin()}$(function(){var n=$("#indexNav");n.length>0?n.find("a").each(function(){$(this).attr("href",$(this).attr("href")+"&showpath=1")}):getUrlParam("showpath")=="1"&&$("#mainDiv .path").show();$("#cmdtext").length>0&&bindCoping("cmdtext");setHeight();setAnchorBack();showPageUrl();setBtnFullWin();window.onresize=setHeight;window.onload=setHeight;window.name=="mainFrame"&&($("#footer").hide(),$("body").css("background-color","#fafafa"),$("#mainDiv").css("padding","0 8px 6px"))})