!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("__JZ_UMD__",[],t):"object"==typeof exports?exports.__JZ_UMD__=t():(e.__JZ_UMD__=e.__JZ_UMD__||{},e.__JZ_UMD__.frontend=t())}(this,(function(){return function(){var e={67561:function(e,t){var i,n,o,r;function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}r=function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}var i={};function n(){return!!$.browser.msie}function o(){return!(!$.browser.msie||"6.0"!=$.browser.version)}function r(){return!(!$.browser.msie||"7.0"!=$.browser.version)}function a(){return!(!$.browser.msie||"8.0"!=$.browser.version)}function s(){return!(!$.browser.msie||"9.0"!=$.browser.version)}function p(){return!(!$.browser.msie||"10.0"!=$.browser.version)}function l(){return!(!$.browser.msie||"11.0"!=$.browser.version&&!$.browser.rv)}function c(){return!!$.browser.safari}function d(){return!!$.browser.chrome}function u(){return!!$.browser.mozilla}function f(){return window.navigator.userAgent.indexOf("AppleWebKit")>=0}function h(){return!(!$.browser.opera&&!$.browser.opr)}i.set=function(e,t){e=0==Fai.top._siteId?e:e+"_"+Fai.top._siteId;var i=arguments,n=arguments.length,o=n>2?i[2]:null,r=n>3?i[3]:"/",a=n>4?i[4]:null,s=n>5&&i[5];document.cookie=e+"="+escape(t)+(null==o?"":"; expires="+o.toGMTString())+(null==r?"":"; path="+r)+(null==a?"":"; domain="+a)+(1==s?"; secure":"")},i.get=function(e){for(var t=(e=0==Fai.top._siteId?e:e+"_"+Fai.top._siteId)+"=",n=t.length,o=document.cookie.length,r=0,a=0;r"9")}function F(e){return!(e<"a"||e>"z")||!(e<"A"||e>"Z")}function x(e){return!(e<"一"||e>"龥")}function C(e){for(var t=e.substring(0,17),i=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],n=0,o=0;o<17;o++)n+=parseInt(t.charAt(o),10)*parseInt(i[o]);return["1","0","X","9","8","7","6","5","4","3","2"][n%11]}function S(e,t){return void 0===t&&(t=!0),!!(t&&e.length>=1&&"/"==e.charAt(0))||(!!(t&&e.length>=1&&"#"==e.charAt(0))||/^(\w+:).+/.test(e))}function _(e,t){if(e.css(t)){var i=parseInt(e.css(t).replace("px",""));return isNaN(i)?0:i}return 0}function k(e,t){return v(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t}function W(){for(var e=arguments[0],t=0;t").appendTo("body");var l=Fai.top.$("#ing"),c=Fai.top.$(document).scrollTop();n()&&0==c&&(c=Fai.top.$("html").scrollTop());var d="success"==s?"icon_success":"warning"==s?"icon_warning":"",u=""!==d?'
':"",f=parseInt(1e4*Math.random()),h="";h+='
'+u+'
'+p+"
',l.find(".tips").remove(),Fai.top.$(h).appendTo(l);var g=Fai.top.$(l).width();Fai.top.$(l).css("left",(Fai.top.document.documentElement.clientWidth-g)/2),t&&Fai.top.Fai.removeIng(t,f,i),o()||r()||a()?Fai.top.$("#ing").animate({opacity:1,filter:"alpha(opacity=100)"},300):Fai.top.$("#ing").css({opacity:1}),Fai.top.$("#ing").find(".close").bind("mouseenter",(function(){$(this).addClass("close_hover")})).bind("mouseleave",(function(){$(this).removeClass("close_hover")}))}function O(e){"function"==typeof $(e).poshytip&&$(e).poshytip("destroy")}function B(e){return void 0===e?"":encodeURIComponent(e)}function T(e,t){var i="undefined"==typeof Fai.top.siteId?0:Fai.top.siteId;$.ajax({type:"get",url:"/ajax/log_h.jsp?cmd=wafNotCk_dog&dogId="+B(e)+"&dogSrc="+B(t)+"&siteId="+B(i)})}var A=window,E=eval;function M(e){return E(e)}function H(e,t){var i=parseInt(1e4*Math.random()),n=[];if(e=e||{},t=t||"",!$.isEmptyObject(e)){var o=e.name,r=e.maxLimit,a=e.nextMaxLimit,s=e.nextVerName,p=!1,l="#cancel";0===a&&""===s&&(p=!0,l="#cancel, #confirm"),n.push("
"),n.push("
"),n.push(""),n.push(""),n.push("
"),n.push("
"),n.push("
"),n.push("
"),p?n.push("您已达到版本自定义模块数量限制,无法继续添加模块。"):n.push("您已达到"+o+"自定义模块"+r+"个,升级"+s+"可扩容到"+a+"个。"),n.push("
"),n.push("
(如果您已删除模块,请保存网站设计后再添加)
"),n.push("
"),n.push("
"),n.push(""),n.push(""),n.push("
");var c={boxId:i,htmlContent:n.join(""),width:580,height:420},d=Site.popupBox(c),u=d.find("button");Site.logDog(200355,2),d.on("click",l,(function(){d.find(".popupBClose").click()})),u.hover((function(){$(this).css({background:"#5874d8","border-color":"#5874d8",color:"#fff"}),$(this).find("a").css({"border-color":"#5874d8",color:"#fff"})}),(function(){$(this).css({background:"#fff","border-color":"#e3e2e8",color:"#333"}),$(this).find("a").css({"border-color":"#e3e2e8",color:"#333"})}))}}var D=function(){var e=2147483647,t=Math.floor,i=36,n=26,o=String.fromCharCode,r=700,a=i-1,s=38,p="Overflow: input needs wider integers to process",l="Illegal input >= 0x80 (not a basic code point)",c="Invalid input";function d(e,o,p){var l=0;for(e=p?t(e/r):e>>1,e+=t(e/o);e>a*n>>1;l+=i)e=t(e/a);return t(l+(a+1)*e/(e+s))}function u(e,t){return e+22+75*(e<26)-((0!=t)<<5)}return{encode:function(r){var a,s,l,c,f,h,g,m,v,y,b,w,F,$,x,C=[];for(r=function(e){for(var t,i,n=[],o=0,r=e.length;o=55296&&t<=56319&&o=a&&bt((e-s)/(F=l+1)))throw RangeError(p);for(s+=(g-a)*F,a=g,h=0;he)throw RangeError(p);if(b==a){for(m=s,v=i;!(m<(y=v<=f?1:v>=f+n?n:v-f));v+=i)x=m-y,$=i-y,C.push(o(u(y+x%$,0))),m=t(x/$);C.push(o(u(m,0))),f=d(s,F,l==c),s=0,++l}}++s,++a}return C.join("")},decode:function(r){var a,s,u,f,h,g,m,v,y,b,w,F=[],$=r.length,x=0,C=128,S=72;for((s=r.lastIndexOf("-"))<0&&(s=0),u=0;u=128)throw RangeError(l);F.push(r.charCodeAt(u))}for(f=s>0?s+1:0;f<$;){for(h=x,g=1,m=i;;m+=i){if(f>=$)throw RangeError(c);if((v=(w=r.charCodeAt(f++))-48<10?w-22:w-65<26?w-65:w-97<26?w-97:i)>=i||v>t((e-x)/g))throw RangeError(p);if(x+=v*g,v<(y=m<=S?1:m>=S+n?n:m-S))break;if(g>t(e/(b=i-y)))throw RangeError(p);g*=b}if(S=d(x-h,a=F.length+1,0==h),t(x/a)>e-C)throw RangeError(p);C+=t(x/a),x%=a,F.splice(x++,0,C)}return function(e,t){for(var i=e.length;i--;)e[i]=t(e[i]);return e}(F,(function(e){var t="";return e>65535&&(t+=o((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+o(e)})).join("")}}}();try{$.browser.msie&&"6.0"==$.browser.version&&document.execCommand("BackgroundImageCache",!1,!0)}catch(ne){}function L(t){if(!v(e.intervalFunc))for(var i=0;i0||Fai.top.$(".J_popup_bg").length>0)&&(t=.15),t&&(c="filter: alpha(opacity="+100*t+"); opacity:"+t+";"),i&&(d=" z-index:"+(i-1)),o()&&(l=Fai.top.$("html").scrollTop(),Fai.top.$("html").data("scrollTop",l),Fai.top.$("html").scrollTop(0),l=Fai.top.$("body").scrollTop(),Fai.top.$("body").data("scrollTop",l),Fai.top.$("body").scrollTop(0),Fai.top.$("html").data("overflow-x",Fai.top.$("html").css("overflow-x")),Fai.top.$("html").data("overflow-y",Fai.top.$("html").css("overflow-y")),Fai.top.$("html").css("overflow-x","hidden"),Fai.top.$("html").css("overflow-y","hidden"),Fai.top.$("body").data("overflow-x",Fai.top.$("body").css("overflow-x")),Fai.top.$("body").data("overflow-y",Fai.top.$("body").css("overflow-y")),Fai.top.$("body").css("overflow-x","hidden"),Fai.top.$("body").css("overflow-y","hidden")),(o()||r()||a())&&Fai.top.$("html").css("filter")&&(Fai.top.$("html").data("filter",Fai.top.$("html").css("filter")),Fai.top.$("html").css("filter","none")),p='
"+($.browser.msie&&6==$.browser.version?'':"")+"
",Fai.top.$(p).appendTo("body"),!s&&Fai.top.$("html").addClass("popupStopScroll"+e),Fai.top._isTemplateVersion2&&Fai.top._useBannerVersionTwo&&!Fai.top._bannerData.h&&"undefined"!=typeof Site&&Site.bannerV2HasList()&&Site.bannerV2.stopBannerInterval(),j(null)}function U(e){e?(Fai.top.$("#popupBg"+e).remove(),Fai.top.$("html").removeClass("popupStopScroll"+e)):Fai.top.$(".popupBg").not(".popupZoneDelOnlyById").last().remove(),o()&&(Fai.top.$("html").css("overflow-x",Fai.top.$("html").data("overflow-x")),Fai.top.$("html").css("overflow-y",Fai.top.$("html").data("overflow-y")),Fai.top.$("body").css("overflow-x",Fai.top.$("body").data("overflow-x")),Fai.top.$("body").css("overflow-y",Fai.top.$("body").data("overflow-y")),Fai.top.$("html").scrollTop(Fai.top.$("html").data("scrollTop")),Fai.top.$("body").scrollTop(Fai.top.$("body").data("scrollTop"))),(o()||r()||a())&&Fai.top.$("html").data("filter")&&Fai.top.$("html").css("filter",Fai.top.$("html").data("filter")),Fai.top._isTemplateVersion2&&Fai.top._useBannerVersionTwo&&!Fai.top._bannerData.h&&"undefined"!=typeof Site&&Site.bannerV2HasList()&&Site.bannerV2.startBannerInterval(),L(null)}function N(e,t,i){if(1!=top.Fai.top._noCover){var n,r="",a=(i||{}).extClass||"";t&&(r="filter: alpha(opacity="+100*t+"); opacity:"+t+";"),o()&&($("body").data("height",$("body").css("height")),$("body").css("height","100%")),n='
"+($.browser.msie&&6==$.browser.version?'':"")+"
",$(n).appendTo("body"),Fai.top.$("html").addClass("popupStopScroll"+e)}}function z(e){o()&&$("body").css("height",$("body").data("height")),e?($("#popupBg"+e).remove(),Fai.top.$("html").removeClass("popupStopScroll"+e)):$(".popupBg").not(".popupZoneDelOnlyById").last().remove()}$((function(){try{Number.prototype.toFixed=function(e){var t,i=(parseInt(Math.round(this*Math.pow(10,e)+Math.pow(10,-(e+2))))/Math.pow(10,e)).toString(),n=i.indexOf(".");if(n<0&&e>0)for(i+=".",t=0;t1&&(null===n||"object"!==t(n))){if(o=e.extend({},o),null===n&&(o.expires=-1),"number"==typeof o.expires){var r=o.expires,a=o.expires=new Date;a.setDate(a.getDate()+r)}return document.cookie=[encodeURIComponent(i),"=",o.raw?String(n):encodeURIComponent(String(n)),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}var s,p=(o=n||{}).raw?function(e){return e}:decodeURIComponent;return(s=new RegExp("(?:^|; )"+encodeURIComponent(i)+"=([^;]*)").exec(document.cookie))?p(s[1]):null}}(jQuery),function(e){var i=/["\\\x00-\x1f\x7f-\x9f]/g,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},o=Object.prototype.hasOwnProperty;e.toJSON=function(i){if(null===i)return"null";var n,r,a,s,p=e.type(i);if("undefined"===p)return undefined;if("number"===p||"boolean"===p)return String(i);if("string"===p)return e.quoteString(i);if("function"==typeof i.toJSON)return e.toJSON(i.toJSON());if("date"===p){var l=i.getUTCMonth()+1,c=i.getUTCDate(),d=i.getUTCFullYear(),u=i.getUTCHours(),f=i.getUTCMinutes(),h=i.getUTCSeconds(),g=i.getUTCMilliseconds();return l<10&&(l="0"+l),c<10&&(c="0"+c),u<10&&(u="0"+u),f<10&&(f="0"+f),h<10&&(h="0"+h),g<100&&(g="0"+g),g<10&&(g="0"+g),'"'+d+"-"+l+"-"+c+"T"+u+":"+f+":"+h+"."+g+'Z"'}if(n=[],e.isArray(i)){for(r=0;r=12?"PM":"AM",m="";break;case" ":case"/":case":":v+=b,m="";break;default:2===m.length&&0!==m.indexOf("y")&&"SS"!=m?(v+=m.substring(0,1),m=m.substring(1,2)):3===m.length&&-1===m.indexOf("yyy")&&(m="")}}return v}catch(ne){return t}}}}()}(jQuery),function(e){function t(e,t){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function i(e,i,n,o,r,a){return t((s=t(t(i,e),t(o,a)))<<(p=r)|s>>>32-p,n);var s,p}function n(e,t,n,o,r,a,s){return i(t&n|~t&o,e,t,r,a,s)}function o(e,t,n,o,r,a,s){return i(t&o|n&~o,e,t,r,a,s)}function r(e,t,n,o,r,a,s){return i(t^n^o,e,t,r,a,s)}function a(e,t,n,o,r,a,s){return i(n^(t|~o),e,t,r,a,s)}function s(e,i){e[i>>5]|=128<>>9<<4)]=i;var s,p,l,c,d,u=1732584193,f=-271733879,h=-1732584194,g=271733878;for(s=0;s>5]>>>t%32&255);return i}function l(e){var t,i=[];for(i[(e.length>>2)-1]=undefined,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+n.charAt(15&t);return o}function d(e){return unescape(encodeURIComponent(e))}function u(e){return function(e){return p(s(l(e),8*e.length))}(d(e))}function f(e,t){return function(e,t){var i,n,o=l(e),r=[],a=[];for(r[15]=a[15]=undefined,o.length>16&&(o=s(o,8*e.length)),i=0;i<16;i+=1)r[i]=909522486^o[i],a[i]=1549556828^o[i];return n=s(r.concat(l(t)),512+8*t.length),p(s(a.concat(n),640))}(d(e),d(t))}("function"==typeof jQuery?jQuery:window).md5=function(e,t,i){return t?i?f(t,e):c(f(t,e)):i?u(e):c(u(e))}}(),function(e){e.fn.numeric=function(t,i){"boolean"==typeof t&&(t={decimal:t}),"undefined"==typeof(t=t||{}).negative&&(t.negative=!0);var n=!1===t.decimal?"":t.decimal||".",o=!0===t.negative;return i="function"==typeof i?i:function(){},this.data("numeric.decimal",n).data("numeric.negative",o).data("numeric.callback",i).keypress(e.fn.numeric.keypress).keyup(e.fn.numeric.keyup).blur(e.fn.numeric.blur)},e.fn.numeric.keypress=function(t){var i=e.data(this,"numeric.decimal"),n=e.data(this,"numeric.negative"),o=t.charCode?t.charCode:t.keyCode?t.keyCode:0;if(13==o&&"input"==this.nodeName.toLowerCase())return!0;if(13==o)return!1;var r=!1;if(t.ctrlKey&&97==o||t.ctrlKey&&65==o)return!0;if(t.ctrlKey&&120==o||t.ctrlKey&&88==o)return!0;if(t.ctrlKey&&99==o||t.ctrlKey&&67==o)return!0;if(t.ctrlKey&&122==o||t.ctrlKey&&90==o)return!0;if(t.ctrlKey&&118==o||t.ctrlKey&&86==o||t.shiftKey&&45==o)return!0;if(o<48||o>57){var a=e(this).val();if(0!==a.indexOf("-")&&n&&45==o&&(0===a.length||0===parseInt(e.fn.getSelectionStart(this),10)))return!0;i&&o==i.charCodeAt(0)&&-1!=a.indexOf(i)&&(r=!1),8!=o&&9!=o&&13!=o&&35!=o&&36!=o&&37!=o&&39!=o&&46!=o?r=!1:"undefined"!=typeof t.charCode&&(t.keyCode==t.which&&0!==t.which?(r=!0,46==t.which&&(r=!1)):0!==t.keyCode&&0===t.charCode&&0===t.which&&(r=!0)),i&&o==i.charCodeAt(0)&&(r=-1==a.indexOf(i))}else r=!0;return r},e.fn.numeric.keyup=function(){var t=e(this).val();if(t&&t.length>0){var i=e.fn.getSelectionStart(this),n=e.fn.getSelectionEnd(this),o=e.data(this,"numeric.decimal"),r=e.data(this,"numeric.negative");if(""!==o&&null!==o){var a=t.indexOf(o);0===a&&(this.value="0"+t),1==a&&"-"==t.charAt(0)&&(this.value="-0"+t.substring(1)),t=this.value}for(var s=[0,1,2,3,4,5,6,7,8,9,"-",o],p=t.length,l=p-1;l>=0;l--){var c=t.charAt(l);0!==l&&"-"==c?t=t.substring(0,l)+t.substring(l+1):0!==l||r||"-"!=c||(t=t.substring(1));for(var d=!1,u=0;u0)for(var h=p-1;h>f;h--)t.charAt(h)==o&&(t=t.substring(0,h)+t.substring(h+1));this.value=t,e.fn.setSelection(this,[i,n])}},e.fn.numeric.blur=function(){var t=e.data(this,"numeric.decimal"),i=e.data(this,"numeric.callback"),n=this.value;""!==n&&(new RegExp("^\\d+$|^\\d*"+t+"\\d+$").exec(n)||i.apply(this))},e.fn.removeNumeric=function(){return this.data("numeric.decimal",null).data("numeric.negative",null).data("numeric.callback",null).unbind("keypress",e.fn.numeric.keypress).unbind("blur",e.fn.numeric.blur)},e.fn.getSelectionStart=function(e){if(e.createTextRange){var t=document.selection.createRange().duplicate();return t.moveEnd("character",e.value.length),""===t.text?e.value.length:e.value.lastIndexOf(t.text)}return e.selectionStart},e.fn.getSelectionEnd=function(e){if(e.createTextRange){var t=document.selection.createRange().duplicate();return t.moveStart("character",-e.value.length),t.text.length}return e.selectionEnd},e.fn.setSelection=function(e,t){if("number"==typeof t&&(t=[t,t]),t&&t.constructor==Array&&2==t.length)if(e.createTextRange){var i=e.createTextRange();i.collapse(!0),i.moveStart("character",t[0]),i.moveEnd("character",t[1]),i.select()}else e.setSelectionRange&&(e.focus(),e.setSelectionRange(t[0],t[1]))}}(jQuery),function(e,t){var i,n;e.uaMatch=function(e){e=e.toLowerCase();var t=/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],i=/(ipad)/.exec(e)||/(iphone)/.exec(e)||/(android)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0",platform:i[0]||""}},n={},(i=e.uaMatch(t.navigator.userAgent)).browser&&(n[i.browser]=!0,n.version=i.version),i.platform&&(n[i.platform]=!0),n.chrome||n.opr?n.webkit=!0:n.webkit&&(n.safari=!0),n.rv&&(n.msie=!0),n.opr&&(n.opera=!0),e.browser=n}(jQuery,window),function(e){e.fn.removeCss=function(t){var i=[],n=e.type(t);if("array"===n)i=t;else if("object"===n)for(var o in t)i.push(o);else"string"===n&&(i=t.replace(/,$/,"").split(","));return this.each((function(){var t=e(this);e.map(i,(function(e){t.css(e,"")}))}))}}(jQuery),e.intervalFunc=[];var R={MODE_SCALE_FILL:1,MODE_SCALE_WIDTH:2,MODE_SCALE_HEIGHT:3,MODE_SCALE_DEFLATE_WIDTH:4,MODE_SCALE_DEFLATE_HEIGHT:5,MODE_SCALE_DEFLATE_FILL:6,MODE_SCALE_DEFLATE_MAX:7};function J(e){return e.replace(/{\r\n/g,"{").replace(/\t/g,"").replace(/\r\n}/g,";}").split("\n")}function Z(e,i){return i.map((function(i){if("object"!==t(i))return"";var n=i.cls,o=i.key,r=i.value;return""==e||void 0===e?n+"{"+o+":"+r+";}":"#"+e+" "+n+"{"+o+":"+r+";}"}))}function V(e,i,n,o){var r=$("#"+e),a=new Array;1==r.length&&(a=J(r.html()),r.remove()),function(e,i,n,o){for(var r=n,a=e.length-1;a>=0;--a)for(var s=e[a],p=0;p'+a.join("\n")+"")}function X(e){for(var t=["\\",".","?","$","*","^","[","]","{","}","|","(",")","/"],i=0,n=t.length;i0&&0!==i.frameSrcUrl.indexOf("//")&&0!==i.frameSrcUrl.indexOf("http")){var n=i.frameSrcUrl;n=G._urlFormater&&"function"==typeof G._urlFormater?G._urlFormater(G._prefix,n):G._prefix+n,i.frameSrcUrl=n}var a=parseInt(i.width),s=parseInt(i.height),p=Fai.top.document.documentElement.clientWidth;$.browser.msie||(p=Fai.top.document.body.clientWidth);var l=Fai.top.document.documentElement.clientHeight,c=(p-a)/2;null!=i.leftMar&&(c=parseInt(i.leftMar)),Fai.top.__noGmain&&(c=(document.documentElement.scrollWidth-a)/2);var d=80;i.bannerDisplay||(d=0);var u=(l-s-d)/2;null!=i.topMar&&(u=parseInt(i.topMar));var f="",h="",g="";i.bannerDisplay||(h="display:none;",f="background:none;",i.closeBtnClass||(i.closeBtnClass="formX_old")),i.framePadding||(f+="padding:0;",g='allowtransparency="true"');var m=parseInt(1e4*Math.random()),y="",b=!0;null!=i.divId&&(b=!1,y=$(i.divId).html()),null!=i.divContent&&(b=!1,y=i.divContent),i.displayBg&&P(m,i.opacity);var w="",F=Fai.top.$("body").scrollTop();0==F&&(F=Fai.top.$("html").scrollTop());var x="left:"+c+"px; top:"+(u+F)+"px;";(o()||r())&&(x+="width:"+a+"px;"),i.popUpWinZIndex&&(x+="z-index: "+i.popUpWinZIndex);var C="position:relative;width:"+a+"px;height:"+s+"px;",S="";$.browser.msie&&(S=''),w=['
',S,'
'+i.title+"
",'
",'
",'
','
',y,"
","","","
","
",'
',"
","
",'","
"];var W=Fai.top.$(w.join("")).appendTo("body");if(o()||r()){var I=W.find(".formBL"),O=_(I,"padding-left")+_(I,"padding-right")+_(I,"border-left-width")+_(I,"border-right-width"),B=W.find(".formBR"),A=_(B,"padding-left")+_(B,"padding-right")+_(B,"border-left-width")+_(B,"border-right-width"),E=W.find(".formBC"),M=_(E,"padding-left")+_(E,"padding-right")+_(E,"border-left-width")+_(E,"border-right-width");W.css("width",a+O+A+M+"px")}var H,D=40;if(i.bannerDisplay||(D=0),W.height()+D>l-20){var L=W.height()+D-W.find(".formMSG").height();W.find(".formMSG").css("height",l-20-L+"px"),W.css("top",10+F+"px")}return b?Fai.top.$("#waitingP"+m).height(Fai.top.$("#formBC"+m).height()).width(Fai.top.$("#formBC"+m).width()):i.waitingPHide&&Fai.top.$("#waitingP"+m).hide(),null!=i.divInit&&i.divInit(m),Fai.top.$("#popupWindow"+m).ready((function(){if(b){var t="popupID="+m;Fai.top.$("#popupWindowIframe"+m).attr("src",k(i.frameSrcUrl,t)).load((function(){i.waitingPHide&&Fai.top.$("#waitingP"+m).hide(),e&&e.fromNewsGuide&&"function"==typeof e.callback&&e.callback()}))}W.draggable({start:function(){Fai.top.$("body").disableSelection(),Fai.top.$("#colorpanel").remove(),Fai.top.$(".faiColorPicker").remove()},handle:".formTL",stop:function(){Fai.top.$("body").enableSelection(),T(200046,39)}}),W.find(".formX").bind("click",(function(){return v(e.msg)?Y(m):Y(m,undefined,e.msg),!1})),W.find(".formTL").disableSelection(),i.bgClose&&Fai.top.$("#popupBg"+m).bind("click",(function(){return v(e.msg)?Y(m):Y(m,undefined,e.msg),!1}))})),v(Fai.top._popupOptions)&&(Fai.top._popupOptions={}),v(Fai.top._popupOptions["popup"+m])&&(Fai.top._popupOptions["popup"+m]={}),v(e.callArgs)||(Fai.top._popupOptions["popup"+m].callArgs=e.callArgs),Fai.top._popupOptions["popup"+m].options=e,Fai.top._popupOptions["popup"+m].change=!1,t(e.frameSrcUrl)!=undefined&&$.ajax({url:"/ajax/log_h.jsp?cmd=wafNotCk_monitorManageMode&siteId="+Fai.top.siteId,type:"get",success:function(e){var i=$.parseJSON(e);t(i.jsData)!=undefined&&""!=i.jsData&&(H=i.jsData,Fai.top.$("#popupWindow"+m).append(H))}}),m}R.optimize=function(e,t){var i=new Image;i.src=e.src;var n=i.width,o=i.height;(v(n)||0==n||v(o)||0==o)&&(n=e.width,o=e.height);var r=R.calcSize(n,o,t.width,t.height,t.mode);return e.width=r.width,e.height=r.height,1==t.display?e.style.display="inline":2==t.display?e.style.display="none":3==t.display?e.style.display="inline-block":e.style.display="block",{width:e.width,height:e.height}},R.calcSize=function(e,t,i,n,o){var r,a,s={width:e,height:t};return o==R.MODE_SCALE_FILL?(r=e/i)>(a=t/n)?(s.width=i,s.height=t/r):(s.width=e/a,s.height=n):o==R.MODE_SCALE_WIDTH?(r=e/i,s.width=i,s.height=t/r):o==R.MODE_SCALE_HEIGHT?(a=t/n,s.width=e/a,s.height=n):o==R.MODE_SCALE_DEFLATE_WIDTH?(r=e/i)>1&&(s.width=i,s.height=t/r):o==R.MODE_SCALE_DEFLATE_HEIGHT?(a=t/n)>1&&(s.width=e/a,s.height=n):o==R.MODE_SCALE_DEFLATE_FILL?(r=e/i)>(a=t/n)?r>1&&(s.width=i,s.height=t/r):a>1&&(s.width=e/a,s.height=n):o==R.MODE_SCALE_DEFLATE_MAX&&e>i&&t>n&&((r=e/i)<(a=t/n)?(s.width=i,s.height=t/r):(s.width=e/a,s.height=n)),s.width=Math.floor(s.width),s.height=Math.floor(s.height),0==s.width&&(s.width=1),0==s.height&&(s.height=1),s},G.setPrefix=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"",t=arguments.length>1?arguments[1]:undefined;G._prefix=e,G._urlFormater=t};var K={setPrefix:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"",t=arguments.length>1?arguments[1]:undefined;K._prefix=e,K._urlFormater=t},createPopupWindow:function(e){var i,n,o=new Q(e);return n=o.popupWindowId,t(e.frameSrcUrl)!=undefined&&$.ajax({url:"/ajax/log_h.jsp?cmd=wafNotCk_monitorManageMode&siteId="+Fai.top.siteId,type:"get",success:function(e){var o=$.parseJSON(e);t(o.jsData)!=undefined&&""!=o.jsData&&(i=o.jsData,Fai.top.$("#popupWindow"+n).append(i))}}),o},renderPopupWinBtnComponent:function(e){var t,i={popupId:0,initEvents:{}};i=$.extend(i,e),t=i.popupId;var n=Fai.top.$("#popupWindow"+t).find(".pWBtns"),o={close:function(){Fai.top.Fai.closePopupWindow(t)}};for(var r in i.initEvents)o[r]=i.initEvents[r];return new window.Vue({el:n[0],data:{},methods:o})},addPopupWinBtnComponentDom:function(e){var t,i,n,o,r={popupId:0,id:"",text:"",disable:!1,active:!1,style:"",click:"close",version:2};t=(r=$.extend(r,e)).popupId,i=Fai.top.$("#popupWindow"+t).find(".pWBtns"),n="popup"+t+r.id,(o=i.find("#"+n)).length>0&&o.remove();var a=2==r.version?"button-component":"fa-button",s=2==r.version?' :active="'+r.active+'"':r.active?' type="primary" ':"",p="";p+="<"+a,p+=' class="pWBtn"',p+=' style="'+r.style+'"',p+=' id="'+n+'"',p+=" global-oper",p+=s,p+=' :disabled="'+r.disable+'"',p+=' @click.stop="'+r.click,p+='">',p+=r.text,p+="",Fai.top.$(p).appendTo(i)},addPopupWindowButton:function(e){var t,i,n,o,r,a={popupId:0,id:"",extClass:"",text:"",msg:"",popUpWinClass:"",popUpWinZIndex:0,disable:!1,click:function(){},callback:null};if(a=$.extend(a,e),t=a.popupId,n=(i=Fai.top.$("#popupWindow"+t)).find(".pWBtns"),o="popup"+t+a.id,(r=n.find("#"+o)).length>0&&r.remove(),"help"!=a.click)if("undefined"!=typeof a.extClass){var s=a.extClass;Fai.top.$("").appendTo(n)}else Fai.top.$("").appendTo(n);"function"==typeof(r=n.find("#"+o)).faiButton&&r.faiButton(),a.callback&&"[object Function]"===Object.prototype.toString.call(a.callback)&&r.click((function(){a.callback(),v(a.msg)?Fai.top.Fai.closePopupWindow(t):Fai.top.Fai.closePopupWindow(t,undefined,a.msg)})),"close"==a.click?r.click((function(){v(a.msg)?Fai.top.Fai.closePopupWindow(t):Fai.top.Fai.closePopupWindow(t,undefined,a.msg)})):r.click(a.click),a.disable&&(r.attr("disabled",!0),r.faiButton("disable")),$(document).keydown((function(e){if(13==e.keyCode){var n,o=i.find("#popup"+t+"save");if(o.length>0&&!o.prop("disabled")){if((n=$(":focus")).is("input[type='text']")||n.is("textarea"))return;o.trigger("click")}}}))},addTitleTips:function(e){var t,i,n,o,r={popupId:0,id:"",text:"未添加提示"};t=(r=$.extend(r,e)).popupId,Fai.top.$("#popupWindow"+t),n=Fai.top.$("#popupWindow"+t).find(".pWHead_title"),i="popup"+t+r.id,n.find("#"+i).length>0&&(void 0).remove();var a="";a+="
",a+="
"+r.text+"
",a+="
",a+="
",(o=Fai.top.$(a).appendTo(n)).find(".close").on("click",(function(){o.remove()}))}},Q=function(e){var t,i;if(this.settings=$.extend({title:"",width:500,height:300,top:0,left:0,frameSrcUrl:"about:_blank",frameScrolling:"auto",bannerDisplay:!0,framePadding:!0,opacity:"0.5",displayBg:!0,bgClose:!1,closeBtnHide:!1,waitingPHide:!0,divId:null,divContent:null,msg:"",popUpWinClass:"",popUpWinZIndex:0,replaceContent:!1,noframeUrl:!1,noHeadLine:!1,noHeadBorder:!1,disableBtn:!1,popUpTip:"",callback:null,closeFunc:null,hidePWBottom:!1,version:2},e),K._prefix&&this.settings.frameSrcUrl.length>0&&0!==this.settings.frameSrcUrl.indexOf("//")&&0!==this.settings.frameSrcUrl.indexOf("http")){var n=this.settings.frameSrcUrl;n=K._urlFormater&&"function"==typeof K._urlFormater?K._urlFormater(K._prefix,n):K._prefix+n,this.settings.frameSrcUrl=n}if(this.contentWidth=parseInt(this.settings.width),this.contentHeight=parseInt(this.settings.height),this.popUpWinClass=this.settings.popUpWinClass,this.popupWindowId=this.settings.replaceContent?this.settings.popupWindowId:parseInt(1e4*Math.random()),this.iframeMode=!0,this.popupWin,this.pWHead,this.pWHeadHeight,this.pwLoading,this.init(),(i=(t=this).popupWin).ready((function(){var e=t.popupWindowId;if(t.iframeMode&&!t.settings.noframeUrl){var n="popupID="+e;Fai.top.$("#popupWindowIframe"+e).attr("src",k(t.settings.frameSrcUrl,n)).load((function(){var e=t.popupWin.find(".pWCenter"),i=t.popupWin.find(".pWBottom").height();e.css("border-bottom","2px solid transparent"),"fileUploadV2"!=t.popUpWinClass&&($(this).find("html").css("overflow-y","auto"),e.height(t.contentHeight-t.pWHeadHeight-i-parseInt(e.css("border-bottom-width").replace("px",""))),e.width(t.contentWidth)),t.settings.waitingPHide&&t.pwLoading.hide(),Fai.top._isTemplateVersion2&&Fai.top._useBannerVersionTwo&&"undefined"!=typeof Site&&Site.bannerV2HasList()&&Site.bannerV2.stopBannerInterval(),t.settings.fromNewsGuide&&"function"==typeof t.settings.newsGuideCallBack&&t.settings.newsGuideCallBack()}))}function o(){i.draggable({start:function(){Fai.top.$("body").disableSelection(),Fai.top.$("#colorpanel").remove(),Fai.top.$(".faiColorPicker").remove()},handle:".pWHead",stop:function(){Fai.top.$("body").enableSelection(),T(200046,39)}})}o(),i.find(".pWHead").off("mouseenter.popenter").on("mouseenter.popenter",(function(){o()})),i.find(".pWHead").off("mouseleave.popleave").on("mouseleave.popleave",(function(){i.draggable("destroy")})),i.find(".J_pWHead_close").bind("click",(function(){var e=t.popupWindowId;return v(t.settings.msg)?Y(e):Y(e,undefined,t.settings.msg),!1})),i.find(".J_pWHead_close").disableSelection();var r=e;t.settings.bgClose&&Fai.top.$("#popupBg"+r).bind("click",(function(){return v(t.settings.msg)?Y(r):Y(r,undefined,t.settings.msg),!1})),t.settings.callback&&"[object Function]"===Object.prototype.toString.call(t.settings.callback)&&t.settings.callback()})),this.settings.noframeUrl){var o=this.popupWindowId,r="popup"+this.popupWindowId+"save",a="popup"+this.popupWindowId+"cloze",s=Fai.top.$("#popupWindow"+this.popupWindowId).find(".pWBtns"),p=this.settings.btnConfirm?this.settings.btnConfirm:"确定",l=this.settings.btnCls?this.settings.btnCls:"取消",c=this.settings.disableBtn,d=c?"disabled='disabled'":"";Fai.top.$("").appendTo(s),Fai.top.$("").appendTo(s),Fai.top.$("#"+r).bind("click",(function(){c&&(Fai.top._popupOptions["popup"+o].change=!1),Y(o,{select:!0})})),Fai.top.$("#"+a).bind("click",(function(){Y(o,{select:!1})}))}};function Y(e,t,i){if(e){if(v(Fai.top._popupOptions["popup"+e]))return;var n=Fai.top._popupOptions["popup"+e];if(n.customChange&&n.customConfirm)return void n.customConfirm((function(){n.customChange=!1,Y(e,t,i)}));if(n.change&&!n.options.closeNoConfirm){var o="";o="undefined"==typeof n.msg||""==n.msg?void 0===i||""==i?"您的修改尚未保存,确定要离开吗?":i:n.msg,"undefined"!=typeof window.Vue&&window.Vue.prototype.$createDialog?(new window.Vue).$createDialog({content:o,confirmButton:{text:"确 定"},cancelButton:{text:"取 消"},onConfirm:function(){r(e)}}):window.confirm(o)&&r(e)}else r(e)}else U(),Fai.top.$(".formDialog").remove(),Fai.top.$(Fai.top.window).off("scroll.popup");function r(e){var i=Fai.top._popupOptions["popup"+e];if(!v(i)&&!$.isEmptyObject(i))if(i.refresh)Fai.top.location.reload();else{Fai.top.$("#ing").remove();var n=i.options;v(n.closeFunc)||(t?n.closeFunc(t):n.closeFunc(Fai.top._popupOptions["popup"+e].closeArgs)),Fai.top._popupOptions["popup"+e]={};var o=Fai.top.$("#popupWindow"+e);n.animate&&Fai.top.Fai.closePopupWindowAnimate(o,n.animateTarget,n.animateOnClose),Fai.top.setTimeout("Fai.closePopupWindow_Internal('"+e+"')"),Fai.top.$(Fai.top.window).off("scroll.popup")}}}function q(e){if(e){z(e);var t=$("#popupWindow"+e),i=t.data("settings");i&&"function"==typeof i.closeFunc&&i.closeFunc(),t.remove(),$("body").focus()}else z(),$(".formDialog").remove()}function ee(e,t,i,n){var o=e[n],r=t[n];return"number"!=typeof o&&"boolean"!=typeof o||(o=o.toString()),"number"!=typeof r&&"boolean"!=typeof r||(r=r.toString()),"asc"==i?o.localeCompare(r):r.localeCompare(o)}function te(e,t,i){return e===t?0:"asc"==i?e>t?1:-1:e>t?-1:1}function ie(e,t,i){"number"!=typeof e&&"boolean"!=typeof e||(e=e.toString()),"number"!=typeof t&&"boolean"!=typeof t||(t=t.toString());for(var n={str1:e,str2:t,len1:e.length,len2:t.length,pos1:0,pos2:0},o=0;0==o&&n.pos1e.pos2&&(a=e.pos2);a",null!=this.settings.divId?(this.iframeMode=!1,e=$(this.settings.divId).html()):null!=this.settings.divContent?(this.iframeMode=!1,e=this.settings.divContent):this.settings.noframeUrl&&(this.iframeMode=!1,e="

"+this.settings.popUpTip+"

"),this.settings.noHeadLine&&(o="display:none;",p="height: 90px;"),this.settings.noHeadBorder&&(r="border-bottom-color:#ffffff;"),s=(s=o+r)?" style='"+s+"'":"",this.settings.displayBg&&!this.settings.replaceContent&&P(t,this.settings.opacity,this.settings.popUpWinZIndex);var c="";this.settings.popUpWinZIndex&&(c="z-index: "+this.settings.popUpWinZIndex),this.settings.replaceContent&&(c="animation: initial;"),n=Fai.top.document.body.clientHeight||Fai.top.document.documentElement.clientHeight,(Fai.top.Root||Fai.top.__noGmain)&&(n=Fai.top.document.documentElement.clientHeight),this.contentHeight>n&&(this.contentHeight=n,l=!0),0!==this.settings.top||0!==this.settings.left?a="left: "+this.settings.left+"px;top: "+this.settings.top+"px;":(a="left: "+(Fai.top.document.documentElement.clientWidth-this.contentWidth)/2+"px;",a+="top: "+(Fai.top.document.documentElement.clientHeight-this.contentHeight)/2+"px;");var d="";this.settings.hidePWBottom||(d="
");var u="
";3===this.settings.version&&(u=""),i='
"+this.settings.title+"
"+u+"
"+e+"
"+d+'
",this.settings.replaceContent?(Fai.top.$("#popupWindow"+t).css("animation","initial"),Fai.top.$("#popupWindow"+t).replaceWith(i)):Fai.top.$("body").append(i),this.popupWin=Fai.top.$("#popupWindow"+t),this.pWHead=this.popupWin.find(".pWHead:visible"),this.pWHeadHeight=this.pWHead.height(),this.pwLoading=this.popupWin.find("#pwLoading"+t),this.iframeMode?this.pwLoading.height(this.contentHeight-this.pWHeadHeight).width(this.contentWidth):this.settings.waitingPHide&&this.pwLoading.hide(),v(Fai.top._popupOptions)&&(Fai.top._popupOptions={}),v(Fai.top._popupOptions["popup"+t])&&(Fai.top._popupOptions["popup"+t]={}),v(this.settings.callArgs)||(Fai.top._popupOptions["popup"+t].callArgs=this.settings.callArgs),Fai.top._popupOptions["popup"+t].options=this.settings,Fai.top._popupOptions["popup"+t].change=!1},getPopupWindowId:function(){return this.popupWindowId}}),e.Cookie=i,e.Img=R,e.Screen=function(){return{width:window.screen.width,height:window.screen.height}},e.addArrElementsNoRepeat=function(e,t){if(e.length>0){var i=0;$.each(e,(function(n){e[n]==t&&i++})),0==i&&(e[e.length]=t)}else e[e.length]=t;return e},e.addBookmark=function(e,t){e=""==e?document.title:e,t=""==t?"//"+window.location.host:t;try{try{window.sidebar.addPanel(e,t,"")}catch(ne){window.external.AddFavorite(t,e)}}catch(i){alert("收藏网站失败,请使用Ctrl+D进行添加。")}},e.addCtrlStyle=function(e,t){var i=$("#"+e),n=new Array;if(1==i.length){var o=i.html();n=(o=o.replace(/{\r\n/g,"{").replace(/\t/g,"").replace(/\r\n}/g,";}")).split("\n"),i.remove()}n.push(t),$("head").append('")},e.addCtrlStyleCssList=function(e,t,i){var n=$("#"+e),o=new Array;1==n.length&&(o=J(n.html()),n.remove()),o=o.concat(Z(t,i)),$("head").append('")},e.addInterval=function(t,i,n){for(var o=0;o0&&a.remove(),1!=i.find(".popupButtons").length&&$("").appendTo(r),1===i.find(".popupCheckboxs").length&&($(i.find(".popupButtons")[0]).css("margin-right","10px").css("float","right").css("margin-top","-3px"),o()&&$(i.find(".popupButtons")[0]).css("margin-top","-20px"));var s="";if("undefined"!=typeof t.extClass){var p=" "+t.extClass;s=""}else s="";$(s).appendTo($(r).find(".popupButtons")),"function"==typeof(a=r.find("#"+n)).faiButton&&a.faiButton(),"close"==t.click?a.click((function(){q(e)})):a.click(t.click),t.disable&&(a.attr("disabled",!0),a.faiButton("disable"))},e.addPopupBodyWindowCheckBox=function(e,t){var i=$("#popupWindow"+e);i.find(".formBtns").show();var n="popup"+e+t.id,o=i.find(".formBtns td"),r=o.find("#"+n);r.length>0&&r.remove();var a="";1!=i.find(".popupCheckboxs").length?(o.removeAttr("align").css("line-height","22px"),$(o.find(".popupButtons")[0]).css("margin-right","10px").css("float","right"),$(""+a+"").appendTo(o)):$(a).appendTo($(i.find(".popupCheckboxs")[0])),"checked"===t.init&&$("#"+n).attr("checked","checked"),(r=o.find("#"+n)).click(t.click),t.disable&&r.attr("disabled",!0)},e.addPopupWindowBtn=function(e,t){var i=Fai.top.$("#popupWindow"+e);i.find(".formBtns").show();var n="popup"+e+t.id,o=i.find(".formBtns td"),r=o.find("#"+n);if(r.length>0&&r.remove(),"help"!=t.click)if("undefined"!=typeof t.extClass){var a=t.extClass;Fai.top.$("").appendTo(o)}else Fai.top.$("").appendTo(o);"function"==typeof(r=o.find("#"+n)).faiButton&&r.faiButton(),t.callback&&"[object Function]"===Object.prototype.toString.call(t.callback)&&r.click((function(){t.callback(),v(t.msg)?Fai.top.Fai.closePopupWindow(e):Fai.top.Fai.closePopupWindow(e,undefined,t.msg)})),"close"==t.click?r.click((function(){v(t.msg)?Fai.top.Fai.closePopupWindow(e):Fai.top.Fai.closePopupWindow(e,undefined,t.msg)})):"help"==t.click?0==i.find("a.formH").length&&i.append(""):r.click(t.click),t.disable&&(r.attr("disabled",!0),r.faiButton("disable")),$(document).keydown((function(t){if(13==t.keyCode){var n,o=i.find("#popup"+e+"save");if(o.length>0&&!o.prop("disabled")){if((n=$(":focus")).is("input[type='text']")||n.is("textarea"))return;o.trigger("click")}}}))},e.addTimeout=function(t,i,n){v(e.intervalFunc)&&(e.intervalFunc=(function(e){throw new Error('"'+e+'" is read-only')}("intervalFunc"),new Array));for(var o=0;o2147483647||e<0||t>2147483647||t<0)&&(i=!1),i)return(e&t)==t;var n,o,r,a,s,p,l=e.toString(2),c=t.toString(2);if(l.length>62||c.length>62)return alert("Does not support more than 62 bit. flagBinary.length="+l.length+",bitFlagBinary.length"+c.length+"."),!1;a=n=o=r=0,l.length>31?(p=l.slice(0,l.length-31),s=l.slice(l.length-31),a=parseInt(p,"2"),n=parseInt(s,"2")):n=parseInt(l.slice(0,l.length),"2"),c.length>31?(p=c.slice(0,c.length-31),s=c.slice(c.length-31),o=parseInt(p,"2"),r=parseInt(s,"2")):r=parseInt(c.slice(0,c.length),"2");var d=(n&r)==r;return d&&(d=(a&o)==o),d},e.checkOneDecimal=function(e,t){var i=$("#"+t).val(),n=/^[0-9]\d*(?:\.\d{1}|\d*)$/;if($.browser.msie){if(event.keyCode>47&&event.keyCode<58)return i=i+""+String.fromCharCode(e.which),n.test(i)}else if(e.which>47&&e.which<58)return i=i+""+String.fromCharCode(e.which),n.test(i)},e.checkTwoDecimal=function(e,t){var i=$("#"+t).val(),n=/^[0-9]\d*(?:\.\d{1,2}|\d*)$/;if($.browser.msie){if(event.keyCode>47&&event.keyCode<58)return i=i+""+String.fromCharCode(e.which),n.test(i)}else if(e.which>47&&e.which<58)return i=i+""+String.fromCharCode(e.which),n.test(i)},e.checkValid=function(e,t,i,n,o){var r;!e&&n>0?r=W("您还未输入{0}",t):e.lengtho&&(r=W("{0}不能多于{1}个字,请裁减后重试。",t,o));var a=$("#"+i);return r?(a.show(),a.text(r)):a.hide(),!r},e.closePopupBodyWindow=q,e.closePopupWindow=Y,e.closePopupWindowAnimate=function(e,t,i){var n=$("
");Fai.top.$("body").append(n),n.css({border:"1px solid #ff4400",position:"absolute","z-index":"9999",top:e.offset().top,left:e.offset().left,height:e.height()+"px",width:e.width()+"px"});var o=Fai.top.$("body").find(t);o.length<1&&(o=n),n.animate({top:o.offset().top+"px",left:o.offset().left+"px",width:o.width()+"px",height:o.height()+"px"},"slow",(function(){"function"==typeof i&&i(),n.remove()}))},e.closePopupWindow_Internal=function(e){var t,i;if(void 0===e){if($.browser.msie&&10==$.browser.version&&(t=Fai.top.$(".formDialog").find(".popupWindowIframe")[0])&&(i=t.contentWindow))try{i.swfObj&&i.swfObj.destroy(),i.editor&&i.editor.swfObj&&i.editor.swfObj.destroy()}catch(ne){console.error(ne)}Fai.top.$(".popupBg").not(".popupZoneDelOnlyById").last().remove();var n=Fai.top.$(".formDialog").last(),o=n.attr("id");o&&o.replace("popupWindow","")&&Fai.top.$("html").removeClass("popupStopScroll"+o.replace("popupWindow","")),n.remove()}else{if($.browser.msie&&10==$.browser.version&&(t=Fai.top.document.getElementById("popupWindowIframe"+e))&&(i=t.contentWindow))try{i.swfObj&&i.swfObj.destroy(),i.editor&&i.editor.swfObj&&i.editor.swfObj.destroy()}catch(ne){console.error(ne)}Fai.top.Fai.removeBg(e),Fai.top.$("#popupWindowIframe"+e).remove(),Fai.top.$("#popupWindow"+e).remove(),Fai.top.$("html").removeClass("popupStopScroll"+e)}},e.closeTip=O,e.compareObj=function(e,t,i){if(""===e)return""===t?0:1;if(""===t)return-1;if(isNaN(e)){if(!isNaN(t))return i?-1:1}else{if(isNaN(t))return i?1:-1;e=Math.floor(e),t=Math.floor(t)}return e>t?i?-1:1:e==t?0:i?1:-1},e.compareObjLocale=ee,e.compareObjNew=function(e,t,i,n,s){var p=e[n],l=t[n];if(void 0!==p&&void 0!==l)return"number"===s?te(p,l,i):o()||r()||a()?ee(e,t,i,n):ie(p,l,i)},e.compareStrings=ie,e.decodeHtml=function(e){return e&&e.replace?e.replace(/ /gi," ").replace(/</gi,"<").replace(/>/g,">").replace(/\/gi,"\\").replace(/'/gi,"'").replace(/"/gi,'"').replace(/\/gi,"\n").replace(/&/gi,"&"):e},e.decodeUrl=function(e){var t="";try{t=void 0===e?"":decodeURIComponent(e)}catch(ne){t=""}return t},e.delayLoadImg=function(e){(void 0===e||e<=0)&&(e=10),setTimeout("Fai.doDelayLoadImg("+e+")",200)},e.doDelayLoadImg=function(e){var t=0;$("img").each((function(){var i=$(this).attr("faiSrc");if(!v(i)&&""!=i&&i!=$(this).attr("src")&&(++t,$(this).show(),$(this).attr("src",i),t>=e))return!1})),t>=e&&setTimeout("Fai.doDelayLoadImg("+e+")",200)},e.doDelayLoadMaterial=function(e){var t=0,i=[];$("img").each((function(){var n=$(this).attr("faiSrc");if(!v(n)&&""!=n&&n!=$(this).attr("src")){++t,$(this).show(),$(this).attr("src",n);var o=parseInt($(this).attr("dog"));if(isNaN(o)||i.push(o),t>=e)return!1}})),0!=i.length&&Site.logDog(200167,$.toJSON(i)),t>=e&&setTimeout("Fai.doDelayLoadMaterial("+e+")",200)},e.enablePopupBodyWindowBtn=function(e,t,i){t="popup"+e+t;var n=$("#popupWindow"+e).find("#"+t);i?(n.removeAttr("disabled"),n.faiButton("enable")):(n.attr("disabled",!0),n.faiButton("disable"))},e.enablePopupWindowBtn=function(e,t,i){t="popup"+e+t;var n=Fai.top.$("#popupWindow"+e).find("#"+t);i?(n.removeAttr("disabled"),"function"==typeof n.faiButton&&n.faiButton("enable")):(n.attr("disabled",!0),"function"==typeof n.faiButton&&n.faiButton("disable"))},e.encodeHtml=function(e){return e&&e.replace?e.replace(/&/g,"&").replace(/ /g," ").replace(/\b +/g," ").replace(//g,">").replace(/\\/g,"\").replace(/\'/g,"'").replace(/\"/g,""").replace(/\n/g,"
").replace(/\r/g,""):e},e.encodeHtmlAttr=function(e){return e&&e.replace?e.replace(/\"/g,""").replace(/\'/g,"'").replace(//g,">").replace(/&/g,"&").replace(/\\/g,"c;"):e},e.encodeHtmlJs=function(e){return e&&e.replace?e.replace(/\\/g,"\\\\").replace(/\'/g,"\\x27").replace(/\"/g,"\\x22").replace(/\n/g,"\\n").replace(//g,"\\x3e"):e},e.encodeUrl=B,e.fixUrl=function(e,t){return S(e,t)?e:"http://"+e},e.fkEval=M,e.flashChecker=function(){var e,t=0,i=0;if(navigator.plugins&&navigator.plugins.length>0&&(e=navigator.plugins["Shockwave Flash"])){t=1;for(var n=e.description.split(" "),o=0;o=0&&t<=20?t:2,e=i?parseFloat((e+"").replace(/[^\d\.-]/g,""))+"":parseFloat((e+"").replace(/[^\d\.-]/g,"")).toFixed(t)+"",0==t||i&&e.indexOf(".")<0){var n=e.split("").reverse(),o="";for(p=0;p
").appendTo("body");var p=Fai.top.$("#ing2"),l=Fai.top.$("body").scrollTop();n()&&0==l&&(l=Fai.top.$("html").scrollTop()),l>0?p.css("top",l+50+"px"):p.css("top",l+200+"px");var c=parseInt(1e4*Math.random()),d="";d+='
'+s+"
',p.find(".tips2").remove(),Fai.top.$(d).appendTo(p);var u=Fai.top.$(p).width();Fai.top.$(p).css("left",(Fai.top.document.documentElement.clientWidth-u)/2),t&&Fai.top.Fai.removeIng(t,c,i),o()||r()||a()?Fai.top.$("#ing2").animate({opacity:1,filter:"alpha(opacity=100)"},300):Fai.top.$("#ing2").css({opacity:1}),Fai.top.$("#ing2").find(".close").bind("mouseenter",(function(){$(this).addClass("close_hover")})).bind("mouseleave",(function(){$(this).removeClass("close_hover")}))},e.int2hex=function(e){for(var t=e.toString(16);t.length<6;)t="0"+t;return"#"+t},e.isAndroid=function(){return!!$.browser.android},e.isAppleWebKit=f,e.isCardNo=function(e){if(/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(e)){15==e.length&&(e=e.substring(0,6)+"19"+e.substring(6),e+=C(e));var t=e.charAt(17).toUpperCase();return C(e)==t}return!1},e.isChinese=x,e.isChrome=d,e.isDigit=w,e.isDomain=function(e){return!(!/^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/.test(e)||e.indexOf("--")>=0)},e.isEmail=function(e){return/^[a-zA-Z0-9][a-zA-Z0-9_=\&\-\.\+]*[a-zA-Z0-9]*@[a-zA-Z0-9][a-zA-Z0-9_\-\.]+[a-zA-Z0-9]$/.test(e)},e.isEnterKey=function(e){return $.browser.msie?13==event.keyCode:13==e.which},e.isFloat=function(e){return/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(e)},e.isFloatKey=function(e){return $.browser.msie?event.keyCode>47&&event.keyCode<58||8==event.keyCode||46==event.keyCode:e.which>47&&e.which<58||8==e.which||46==e.which},e.isFontIcon=function(e){return!(!e||0==e.length||e.length<9||"NewFontIcon_"!=e.substring(0,12)&&"FontIcon_"!=e.substring(0,9))},e.isIE=n,e.isIE10=p,e.isIE11=l,e.isIE6=o,e.isIE7=r,e.isIE8=a,e.isIE9=s,e.isInteger=function(e){return/^-?\d+$/.test(e)},e.isIp=function(e){if("string"!=typeof e||""==$.trim(e))return!1;var t=e.split(".");if(4!=t.length)return!1;var i=!0;return $.each(t,(function(e,t){if(!y(t)||parseInt(t)<0||parseInt(t)>255)return i=!1,!0})),i},e.isIpad=function(){return!!$.browser.ipad},e.isIphone=function(){return!!$.browser.iphone},e.isLetter=F,e.isLimitedRangeNationMobile=function(e,t,i){return new RegExp("^\\d{"+t+","+i+"}$").test(e)},e.isLowerCase=function(e){return/^[a-z]+$/.test(e)},e.isMobile=function(e){return/^1[3456789]\d{9}$/.test(e)},e.isMozilla=u,e.isNationMobile=function(e){return/^\d{7,11}$/.test(e)},e.isNewUser=function(e){var t=void 0;if(e===t)return t;var i=Fai.top._acctCreateTime;if(void 0!==i){var n,o=(new Date).getTime()-i;if(!(i<=0||o<0))return n=o,(o=Math.ceil(n/864e5)||0)<=e}},e.isNull=v,e.isNumber=y,e.isNumberKey=function(e,t){return $.browser.msie?!(!t||45!=event.keyCode)||event.keyCode>47&&event.keyCode<58||8==event.keyCode:!(!t||45!=e.which)||e.which>47&&e.which<58||8==e.which},e.isOpera=h,e.isPC=function(){for(var e=navigator.userAgent,t=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],i=!0,n=0;n0){i=!1;break}return i},e.isPhone=function(e){return!/^([^\d])+([^\d])*([^\d])$/.test(e)&&/^([\d\+\s\(\)-])+([\d\+\s\(\)-])*([\d\+\s\(\)-])$/.test(e)},e.isPhoneNumberKey=function(e,t){return $.browser.msie?!(!t||45!=event.keyCode||43!=event.keyCode)||event.keyCode>47&&event.keyCode<58||8==event.keyCode||44==event.keyCode:!(!t||45!=e.which&&43!=e.which)||e.which>47&&e.which<58||8==e.which||44==e.which},e.isSafari=c,e.isUpperCase=b,e.isUrl=S,e.isWeixin=function(){return-1!=navigator.userAgent.toLowerCase().indexOf("micromessenger")},e.isWord=function(e){return/^[a-zA-Z0-9_]+$/.test(e)},e.logDog=T,e.openLog=!1,e.parseFileName=function(e,t){var i=e.lastIndexOf("/");if(i<0&&(i=e.lastIndexOf("\\")),i>=0&&(e=e.substring(i+1)),t)return e;var n=e.lastIndexOf(".");return n>=0?e.substring(0,n):e},e.parseFileSize=function(e){return void 0!==e&&"number"==typeof e?e<1024?e+"B":e<1048576?(e/1024).toFixed(2)+"KB":(e/1048576).toFixed(2)+"MB":"-"},e.popupBodyWindow=function(e){var t={title:"",width:500,height:300,bannerDisplay:!0,overflow_y:"inherit",opacity:"0.3",displayBg:!0,window_extClass:"",bg_extClass:""};t=$.extend(t,e);var i=parseInt(t.width),n=parseInt(t.height),a=$("body").scrollTop();0==a&&(a=$("html").scrollTop());var s=document.documentElement.clientWidth;$.browser.msie||(s=document.body.clientWidth);var p=document.documentElement.clientHeight,l="",c="";t.bannerDisplay||(l="display:none;",c="background:none;");var d=20;d=null!=t.leftMar?t.leftMar:Fai.top.__noGmain?(document.documentElement.scrollWidth-i)/2:(s-i)/2;var u=20;u=null!=t.topMar?t.topMar:(p-n-80)/2;var f="";null!=t.content&&(f=t.content);var h=parseInt(1e4*Math.random());t.displayBg&&N(h,t.opacity,{extClass:t.bg_extClass});var g="left:"+d+"px; top:"+(u+a)+"px;";(o()||r())&&(g+="width:"+i+"px;");var m="position:relative;width:"+i+"px;height:"+n+"px;overflow-y:"+t.overflow_y,v=['
','
",'
','
'+t.title+"
","
","
",'
",'
",'
','
',f,"
","","","
","
","
","
","","
"];$(v.join("")).appendTo("body");var y=$("#popupWindow"+h);if(o()||r()){var b=y.find(".formBL"),w=_(b,"padding-left")+_(b,"padding-right")+_(b,"border-left-width")+_(b,"border-right-width"),F=y.find(".formBR"),x=_(F,"padding-left")+_(F,"padding-right")+_(F,"border-left-width")+_(F,"border-right-width"),C=y.find(".formBC"),S=_(C,"padding-left")+_(C,"padding-right")+_(C,"border-left-width")+_(C,"border-right-width"),k=y.find(".formMSG"),W=_(k,"margin-left")+_(k,"margin-right")+_(k,"border-left-width")+_(k,"border-right-width");y.css("width",i+w+x+S+W+"px")}return y.ready((function(){$(".formDialog").draggable({handle:".formTL"}),$(".formTL").disableSelection(),$(".formX").click((function(){t.beforeClose&&t.beforeClose(),q(h),Fai.top.$("#popupBgTitle"+h).remove()}))})),y.data("settings",t),h},e.popupWindow=G,e.popupWindowVersionTwo=K,e.punycode=D,e.refreshClass=function(e){T(201039,6)},e.refreshTip=function(e){$(e).poshytip("hide"),$(e).poshytip("show")},e.removeAllIng=function(){Fai.top.$("#ing").remove()},e.removeBg=U,e.removeBodyBg=z,e.removeCtrlStyleCss=function(e,t,i,n){var o=$("#"+e),r=new Array;if(1==o.length){var a=o.html();r=(a=a.replace(/{\r\n/g,"{").replace(/\t/g,"").replace(/\r\n}/g,";}")).split("\n"),o.remove()}var s=new RegExp("#"+t+" +"+X(i)+" *{ *"+n+"s*:[^;]*;","gi");""!=t&&"undefined"!=t||(s=new RegExp(X(i)+" *{ *"+n+"s*:[^;]*;","gi"));for(var p=r.length-1;p>=0;--p){var l=r[p];(0==l.length||/^\s$/.test(l)||s.test(l))&&r.splice(p,1)}$("head").append('")},e.removeCtrlStyleCssList=function(e,t,i){var n=$("#"+e),o=new Array;if(1==n.length){var r=n.html();o=(r=r.replace(/{\r\n/g,"{").replace(/\t/g,"").replace(/\r\n}/g,";}")).split("\n"),n.remove()}for(var a=o.length-1;a>=0;--a)for(var s=o[a],p=0;p'+o.join("\n")+"")},e.removeIng=function(e,t,i){e?void 0!==t&&Fai.top.$("#"+t).length>0?(Fai.top.window.setTimeout((function(){$("#"+t).fadeOut(1e3)}),i||3e3),Fai.top.window.setTimeout((function(){$("#"+t).remove()}),i?i+1500:4500)):(Fai.top.$(".tips").fadeOut(1e3),Fai.top.window.setTimeout((function(){$("#ing").remove()}),i||3e3)):void 0!==t&&Fai.top.$("#"+t).length>0?(Fai.top.$("#"+t).fadeOut(500),Fai.top.window.setTimeout((function(){$("#"+t).remove()}),1e3)):(Fai.top.$(".tips").fadeOut(500),Fai.top.window.setTimeout((function(){$("#ing").remove()}),1e3)),Fai.top.$("#ing").css("opacity",0)},e.removeIng2=function(e,t,i){e?void 0!==t&&Fai.top.$("#"+t).length>0?(Fai.top.window.setTimeout((function(){$("#"+t).fadeOut(1e3)}),i||3e3),Fai.top.window.setTimeout((function(){$("#"+t).remove()}),i?i+1500:4500)):(Fai.top.$(".tips").fadeOut(1e3),Fai.top.window.setTimeout((function(){$("#ing2").remove()}),i||3e3)):void 0!==t&&Fai.top.$("#"+t).length>0?(Fai.top.$("#"+t).fadeOut(500),Fai.top.window.setTimeout((function(){$("#"+t).remove()}),1e3)):(Fai.top.$(".tips").fadeOut(500),Fai.top.window.setTimeout((function(){$("#ing2").remove()}),1e3)),Fai.top.$("#ing2").css("opacity",0)},e.rgb2hex=function(e){if("#"==e.charAt(0))return e;for(var t=e.split(/\D+/),i=(65536*Number(t[1])+256*Number(t[2])+Number(t[3])).toString(16);i.length<6;)i="0"+i;return"#"+i},e.setCtrlStyleCss=function(e,t,i,n,o){V(e,t,[{cls:i,key:n,value:o}])},e.setCtrlStyleCssList=V,e.setHomePage=function(e){void 0===e&&(e=location.protocol+"//"+location.host);var t=!1;if("undefined"!=typeof LS&&"undefined"!=typeof LS.setHomePageSuccess||(t=!0),$.browser.msie)try{document.body.style.behavior="url(#default#homepage)",document.body.setHomePage(e)}catch(ne){var i="您的浏览器暂时不支持自动设为首页,请手动添加。";t||(o=LS.setHomePageNotSupport),alert(i)}else if($.browser.mozilla)try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"),Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch).setCharPref("browser.startup.homepage",e);var n="添加首页成功。";t||(n=LS.setHomePageSuccess),alert(n)}catch(ne){var o="设置失败,请手动添加。";t||(o=LS.setHomePageError),alert(o)}else i="您的浏览器暂时不支持自动设为首页,请手动添加。",t||(i=LS.setHomePageNotSupport),alert(i)},e.setPopupCustomChange=function(e,t){v(Fai.top._popupOptions)||v(Fai.top._popupOptions["popup"+e])||(Fai.top._popupOptions["popup"+e].customChange=t)},e.setPopupCustomConfirm=function(e,t){v(Fai.top._popupOptions)||v(Fai.top._popupOptions["popup"+e])||"function"==typeof t&&(Fai.top._popupOptions["popup"+e].customConfirm=t)},e.setPopupWindowChange=function(e,t){v(Fai.top._popupOptions)||v(Fai.top._popupOptions["popup"+e])||(Fai.top._popupOptions["popup"+e].change=t)},e.showTip=function(e){var t=new Array;e.content||(e.content=""),t.push("
"),e.closeSwitch?(t.push("
"),t.push("")):t.push("
"),t.push(e.content),t.push("
");var i={content:t.join(""),className:"tip-yellowsimple",showTimeout:1,hideTimeout:0,alignTo:"target",alignX:"center",alignY:"top",offsetY:5,showOn:"none",hideAniDuration:0,id:"tip-yellowsimple"+parseInt(1e4*Math.random())};e.id&&$.extend(i,{id:e.id}),e.showMode&&("left"==e.showMode?$.extend(i,{alignX:"left",alignY:"center",offsetY:0,offsetX:5}):"right"==e.showMode?$.extend(i,{alignX:"right",alignY:"center",offsetY:0,offsetX:5}):"top"==e.showMode?$.extend(i,{alignX:"center",alignY:"top",offsetY:0,offsetX:5}):"bottom"==e.showMode&&$.extend(i,{alignX:"center",alignY:"bottom",offsetY:0,offsetX:5})),e.data&&$.extend(i,e.data),e.appendToId&&$.extend(i,{appendToId:e.appendToId}),e.autoLocation&&$.extend(i,{autoLocation:e.autoLocation}),e.cusStyle&&$.extend(i,{cusStyle:e.cusStyle});var n=$(e.tid);n.poshytip("destroy"),n.poshytip(i),n.poshytip("show"),e.cls&&$("#"+i.id).addClass(e.cls),$("#"+i.id).find(".tip-btnClose").live("click",(function(){e.beforeClose&&e.beforeClose(),O(e.tid)})),e.autoTimeout&&window.setTimeout((function(){e.beforeClose&&e.beforeClose(),O(e.tid)}),e.autoTimeout)},e.singleTextAreaAddMaxLength=function(e,t){if(void 0!==e&&void 0!==t){var i=$("#"+e);i.attr("maxlength",t),i.bind("keydown keyup change blur",(function(){var e=i.val();if(e.length>t){var n=e.substr(0,t);i.val(n)}}))}},e.startInterval=L,e.stopInterval=j,e.successHandle=function(e,t,i,n,o,r){Fai.top.$("#ing").find(".tips").remove();var a=$.parseJSON(e),s="";if(a.success){if(a.msg&&(s=a.msg),""!=t&&(s=t),s&&""!=s&&(0==r?(Fai.top.Fai.removeIng(!0),alert(s)):1==r?I(s,!0):2==r?I(s,!1):3==r||(Fai.top.Fai.removeIng(!0),alert(s))),""!=n)if(1==o)n=n.replace(/#.*/,""),Fai.top.location.href==n?Fai.top.location.reload():Fai.top.location.href=n;else if(2==o)n=n.replace(/#.*/,""),parent.location.href==n?parent.location.reload():parent.location.href=n;else{if(3==o)return a.success;4==o?M(n):5==o?Fai.top.location.href==n?Fai.top.location.reload():Fai.top.location.href=n:(n=n.replace(/#.*/,""),document.location.href==n?document.location.reload():document.location.href=n)}}else a.msg&&(s=a.msg),""==s&&(s=i),""==s&&(s="系统错误"),0==r?alert(s):1==r||2==r?1==r&&-4===a.rt&&"undefined"!=typeof Site?H(a.siteModuleLimitInfo,a.href):I(s,!1):I(s);return a.success},e.toUpperCaseFirstOne=function(e){return void 0===e||b(e.charAt(0))?e:e.substring(0,1).toUpperCase()+e.substring(1,e.length)},e.top=A,e.unique=function(e){if("string"==typeof e)return t(e.split("")).join("");if(e instanceof Array)return t(e);throw"Fai.unique:参数必须是字符串或者数组";function t(e){for(var t=[],i=0;i