").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cd=a.document.documentElement;function dd(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using" in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length){return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)})}var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f){return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dd(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d}},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cd;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position")){a=a.offsetParent}return a||cd})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dd(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void (f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=Lb(k.pixelPosition,function(a,c){return c?(c=Jb(a,b),Hb.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ed=a.jQuery,fd=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fd),b&&a.jQuery===m&&(a.jQuery=ed),m},typeof b===K&&(a.jQuery=a.$=m),m});
!function(A){"function"==typeof define&&define.amd?define(["jquery"],A):A(jQuery)}(function(C){C.extend(C.fn,{validate:function(D){if(!this.length){return void (D&&D.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."))}var E=C.data(this[0],"validator");return E?E:(this.attr("novalidate","novalidate"),E=new C.validator(D,this[0]),C.data(this[0],"validator",E),E.settings.onsubmit&&(this.validateDelegate(":submit","click",function(F){E.settings.submitHandler&&(E.submitButton=F.target),C(F.target).hasClass("cancel")&&(E.cancelSubmit=!0),void 0!==C(F.target).attr("formnovalidate")&&(E.cancelSubmit=!0)}),this.submit(function(G){function F(){var H;return E.settings.submitHandler?(E.submitButton&&(H=C("
").attr("name",E.submitButton.name).val(C(E.submitButton).val()).appendTo(E.currentForm)),E.settings.submitHandler.call(E,E.currentForm,G),E.submitButton&&H.remove(),!1):!0}return E.settings.debug&&G.preventDefault(),E.cancelSubmit?(E.cancelSubmit=!1,F()):E.form()?E.pendingRequest?(E.formSubmitted=!0,!1):F():(E.focusInvalid(),!1)})),E)},valid:function(){var D,E;return C(this[0]).is("form")?D=this.validate().form():(D=!0,E=C(this[0].form).validate(),this.each(function(){D=E.element(this)&&D})),D},removeAttrs:function(E){var F={},D=this;return C.each(E.split(/\s/),function(H,G){F[G]=D.attr(G),D.removeAttr(G)}),F},rules:function(H,I){var L,D,J,K,F,G,E=this[0];if(H){switch(L=C.data(E.form,"validator").settings,D=L.rules,J=C.validator.staticRules(E),H){case"add":C.extend(J,C.validator.normalizeRule(I)),delete J.messages,D[E.name]=J,I.messages&&(L.messages[E.name]=C.extend(L.messages[E.name],I.messages));break;case"remove":return I?(G={},C.each(I.split(/\s/),function(M,N){G[N]=J[N],delete J[N],"required"===N&&C(E).removeAttr("aria-required")}),G):(delete D[E.name],J)}}return K=C.validator.normalizeRules(C.extend({},C.validator.classRules(E),C.validator.attributeRules(E),C.validator.dataRules(E),C.validator.staticRules(E)),E),K.required&&(F=K.required,delete K.required,K=C.extend({required:F},K),C(E).attr("aria-required","true")),K.remote&&(F=K.remote,delete K.remote,K=C.extend(K,{remote:F})),K}}),C.extend(C.expr[":"],{blank:function(D){return !C.trim(""+C(D).val())},filled:function(D){return !!C.trim(""+C(D).val())},unchecked:function(D){return !C(D).prop("checked")}}),C.validator=function(D,E){this.settings=C.extend(!0,{},C.validator.defaults,D),this.currentForm=E,this.init()},C.validator.format=function(D,E){return 1===arguments.length?function(){var F=C.makeArray(arguments);return F.unshift(D),C.validator.format.apply(this,F)}:(arguments.length>2&&E.constructor!==Array&&(E=C.makeArray(arguments).slice(1)),E.constructor!==Array&&(E=[E]),C.each(E,function(G,F){D=D.replace(new RegExp("\\{"+G+"\\}","g"),function(){return F})}),D)},C.extend(C.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:C([]),errorLabelContainer:C([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(D){this.lastActive=D,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,D,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(D)))},onfocusout:function(D){this.checkable(D)||!(D.name in this.submitted)&&this.optional(D)||this.element(D)},onkeyup:function(E,D){(9!==D.which||""!==this.elementValue(E))&&(E.name in this.submitted||E===this.lastElement)&&this.element(E)},onclick:function(D){D.name in this.submitted?this.element(D):D.parentNode.name in this.submitted&&this.element(D.parentNode)},highlight:function(E,F,D){"radio"===E.type?this.findByName(E.name).addClass(F).removeClass(D):C(E).addClass(F).removeClass(D)},unhighlight:function(E,F,D){"radio"===E.type?this.findByName(E.name).removeClass(F).addClass(D):C(E).removeClass(F).addClass(D)}},setDefaults:function(D){C.extend(C.validator.defaults,D)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:C.validator.format("請輸入少于 {0} 個字符."),minlength:C.validator.format("Please enter at least {0} characters."),rangelength:C.validator.format("Please enter a value between {0} and {1} characters long."),range:C.validator.format("Please enter a value between {0} and {1}."),max:C.validator.format("Please enter a value less than or equal to {0}."),min:C.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function E(I){var J=C.data(this[0].form,"validator"),G="on"+I.type.replace(/^validate/,""),H=J.settings;H[G]&&!this.is(H.ignore)&&H[G].call(J,this[0],I)}this.labelContainer=C(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||C(this.currentForm),this.containers=C(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var F,D=this.groups={};C.each(this.settings.groups,function(G,H){"string"==typeof H&&(H=H.split(/\s/)),C.each(H,function(J,I){D[I]=G})}),F=this.settings.rules,C.each(F,function(H,G){F[H]=C.validator.normalizeRule(G)}),C(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox']","focusin focusout keyup",E).validateDelegate("select, option, [type='radio'], [type='checkbox']","click",E),this.settings.invalidHandler&&C(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler),C(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),C.extend(this.submitted,this.errorMap),this.invalid=C.extend({},this.errorMap),this.valid()||C(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var E=0,D=this.currentElements=this.elements();D[E];E++){this.check(D[E])}return this.valid()},element:function(F){var G=this.clean(F),D=this.validationTargetFor(G),E=!0;return this.lastElement=D,void 0===D?delete this.invalid[G.name]:(this.prepareElement(D),this.currentElements=C(D),E=this.check(D)!==!1,E?delete this.invalid[D.name]:this.invalid[D.name]=!0),C(F).attr("aria-invalid",!E),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),E},showErrors:function(D){if(D){C.extend(this.errorMap,D),this.errorList=[];for(var E in D){this.errorList.push({message:D[E],element:this.findByName(E)[0]})}this.successList=C.grep(this.successList,function(F){return !(F.name in D)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){C.fn.resetForm&&C(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(F){var D,E=0;for(D in F){E++}return E},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(D){D.not(this.containers).text(""),this.addWrapper(D).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{C(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(D){}}},findLastActive:function(){var D=this.lastActive;return D&&1===C.grep(this.errorList,function(E){return E.element.name===D.name}).length&&D},elements:function(){var D=this,E={};return C(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return !this.name&&D.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in E||!D.objectLength(C(this).rules())?!1:(E[this.name]=!0,!0)})},clean:function(D){return C(D)[0]},errors:function(){var D=this.settings.errorClass.split(" ").join(".");return C(this.settings.errorElement+"."+D,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=C([]),this.toHide=C([]),this.currentElements=C([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(D){this.reset(),this.toHide=this.errorsFor(D)},elementValue:function(F){var G,D=C(F),E=F.type;return"radio"===E||"checkbox"===E?C("input[name='"+F.name+"']:checked").val():"number"===E&&"undefined"!=typeof F.validity?F.validity.badInput?!1:D.val():(G=D.val(),"string"==typeof G?G.replace(/\r/g,""):G)},check:function(H){H=this.validationTargetFor(this.clean(H));var I,L,D,J=C(H).rules(),K=C.map(J,function(N,M){return M}).length,F=!1,G=this.elementValue(H);for(L in J){D={method:L,parameters:J[L]};try{if(I=C.validator.methods[L].call(this,G,H,D.parameters),"dependency-mismatch"===I&&1===K){F=!0;continue}if(F=!1,"pending"===I){return void (this.toHide=this.toHide.not(this.errorsFor(H)))}if(!I){return this.formatAndAdd(H,D),!1}}catch(E){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+H.id+", check the '"+D.method+"' method.",E),E}}if(!F){return this.objectLength(J)&&this.successList.push(H),!0}},customDataMessage:function(D,E){return C(D).data("msg"+E.charAt(0).toUpperCase()+E.substring(1).toLowerCase())||C(D).data("msg")},customMessage:function(F,D){var E=this.settings.messages[F];return E&&(E.constructor===String?E:E[D])},findDefined:function(){for(var D=0;D
Warning: No message defined for "+D.name+"")},formatAndAdd:function(F,G){var D=this.defaultMessage(F,G.method),E=/\$?\{(\d+)\}/g;"function"==typeof D?D=D.call(this,G.parameters,F):E.test(D)&&(D=C.validator.format(D.replace(E,"{$1}"),G.parameters)),this.errorList.push({message:D,element:F,method:G.method}),this.errorMap[F.name]=D,this.submitted[F.name]=D},addWrapper:function(D){return this.settings.wrapper&&(D=D.add(D.parent(this.settings.wrapper))),D},defaultShowErrors:function(){var F,D,E;for(F=0;this.errorList[F];F++){E=this.errorList[F],this.settings.highlight&&this.settings.highlight.call(this,E.element,this.settings.errorClass,this.settings.validClass),this.showLabel(E.element,E.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success){for(F=0;this.successList[F];F++){this.showLabel(this.successList[F])}}if(this.settings.unhighlight){for(F=0,D=this.validElements();D[F];F++){this.settings.unhighlight.call(this,D[F],this.settings.errorClass,this.settings.validClass)}}this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return C(this.errorList).map(function(){return this.element})},showLabel:function(G,H){var K,D,I,J=this.errorsFor(G),E=this.idOrName(G),F=C(G).attr("aria-describedby");J.length?(J.removeClass(this.settings.validClass).addClass(this.settings.errorClass),J.html(H)):(J=C("<"+this.settings.errorElement+">").attr("id",E+"-error").addClass(this.settings.errorClass).html(H||""),K=J,this.settings.wrapper&&(K=J.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(K):this.settings.errorPlacement?this.settings.errorPlacement(K,C(G)):K.insertAfter(G),J.is("label")?J.attr("for",E):0===J.parents("label[for='"+E+"']").length&&(I=J.attr("id"),F?F.match(new RegExp("\b"+I+"\b"))||(F+=" "+I):F=I,C(G).attr("aria-describedby",F),D=this.groups[G.name],D&&C.each(this.groups,function(L,M){M===D&&C("[name='"+L+"']",this.currentForm).attr("aria-describedby",J.attr("id"))}))),!H&&this.settings.success&&(J.text(""),"string"==typeof this.settings.success?J.addClass(this.settings.success):this.settings.success(J,G)),this.toShow=this.toShow.add(J)},errorsFor:function(F){var G=this.idOrName(F),D=C(F).attr("aria-describedby"),E="label[for='"+G+"'], label[for='"+G+"'] *";return D&&(E=E+", #"+D.replace(/\s+/g,", #")),this.errors().filter(E)},idOrName:function(D){return this.groups[D.name]||(this.checkable(D)?D.name:D.id||D.name)},validationTargetFor:function(D){return this.checkable(D)&&(D=this.findByName(D.name).not(this.settings.ignore)[0]),D},checkable:function(D){return/radio|checkbox/i.test(D.type)},findByName:function(D){return C(this.currentForm).find("[name='"+D+"']")},getLength:function(D,E){switch(E.nodeName.toLowerCase()){case"select":return C("option:selected",E).length;case"input":if(this.checkable(E)){return this.findByName(E.name).filter(":checked").length}}return D.length},depend:function(E,D){return this.dependTypes[typeof E]?this.dependTypes[typeof E](E,D):!0},dependTypes:{"boolean":function(D){return D},string:function(D,E){return !!C(D,E.form).length},"function":function(E,D){return E(D)}},optional:function(D){var E=this.elementValue(D);return !C.validator.methods.required.call(this,E,D)&&"dependency-mismatch"},startRequest:function(D){this.pending[D.name]||(this.pendingRequest++,this.pending[D.name]=!0)},stopRequest:function(D,E){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[D.name],E&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(C(this.currentForm).submit(),this.formSubmitted=!1):!E&&0===this.pendingRequest&&this.formSubmitted&&(C(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(D){return C.data(D,"previousValue")||C.data(D,"previousValue",{old:null,valid:!0,message:this.defaultMessage(D,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(D,E){D.constructor===String?this.classRuleSettings[D]=E:C.extend(this.classRuleSettings,D)},classRules:function(E){var F={},D=C(E).attr("class");return D&&C.each(D.split(" "),function(){this in C.validator.classRuleSettings&&C.extend(F,C.validator.classRuleSettings[this])}),F},attributeRules:function(G){var H,E,F={},I=C(G),D=G.getAttribute("type");for(H in C.validator.methods){"required"===H?(E=G.getAttribute(H),""===E&&(E=!0),E=!!E):E=I.attr(H),/min|max/.test(H)&&(null===D||/number|range|text/.test(D))&&(E=Number(E)),E||0===E?F[H]=E:D===H&&"range"!==D&&(F[H]=!0)}return F.maxlength&&/-1|2147483647|524288/.test(F.maxlength)&&delete F.maxlength,F},dataRules:function(F){var G,D,E={},H=C(F);for(G in C.validator.methods){D=H.data("rule"+G.charAt(0).toUpperCase()+G.substring(1).toLowerCase()),void 0!==D&&(E[G]=D)}return E},staticRules:function(E){var F={},D=C.data(E.form,"validator");return D.settings.rules&&(F=C.validator.normalizeRule(D.settings.rules[E.name])||{}),F},normalizeRules:function(D,E){return C.each(D,function(F,G){if(G===!1){return void delete D[F]}if(G.param||G.depends){var H=!0;switch(typeof G.depends){case"string":H=!!C(G.depends,E.form).length;break;case"function":H=G.depends.call(E,E)}H?D[F]=void 0!==G.param?G.param:!0:delete D[F]}}),C.each(D,function(F,G){D[F]=C.isFunction(G)?G(E):G}),C.each(["minlength","maxlength"],function(){D[this]&&(D[this]=Number(D[this]))}),C.each(["rangelength","range"],function(){var F;D[this]&&(C.isArray(D[this])?D[this]=[Number(D[this][0]),Number(D[this][1])]:"string"==typeof D[this]&&(F=D[this].replace(/[\[\]]/g,"").split(/[\s,]+/),D[this]=[Number(F[0]),Number(F[1])]))}),C.validator.autoCreateRanges&&(D.min&&D.max&&(D.range=[D.min,D.max],delete D.min,delete D.max),D.minlength&&D.maxlength&&(D.rangelength=[D.minlength,D.maxlength],delete D.minlength,delete D.maxlength)),D},normalizeRule:function(D){if("string"==typeof D){var E={};C.each(D.split(/\s/),function(){E[this]=!0}),D=E}return D},addMethod:function(E,F,D){C.validator.methods[E]=F,C.validator.messages[E]=void 0!==D?D:C.validator.messages[E],F.length<3&&C.validator.addClassRules(E,C.validator.normalizeRule(E))},methods:{required:function(F,G,D){if(!this.depend(D,G)){return"dependency-mismatch"}if("select"===G.nodeName.toLowerCase()){var E=C(G).val();return E&&E.length>0}return this.checkable(G)?this.getLength(F,G)>0:C.trim(F).length>0},email:function(E,D){return this.optional(D)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(E)},url:function(E,D){return this.optional(D)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(E)},date:function(E,D){return this.optional(D)||!/Invalid|NaN/.test(new Date(E).toString())},dateISO:function(E,D){return this.optional(D)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(E)},number:function(E,D){return this.optional(D)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(E)},digits:function(E,D){return this.optional(D)||/^\d+$/.test(E)},creditcard:function(I,G){if(this.optional(G)){return"dependency-mismatch"}if(/[^0-9 \-]+/.test(I)){return !1}var H,E,F=0,J=0,D=!1;if(I=I.replace(/\D/g,""),I.length<13||I.length>19){return !1}for(H=I.length-1;H>=0;H--){E=I.charAt(H),J=parseInt(E,10),D&&(J*=2)>9&&(J-=9),F+=J,D=!D}return F%10===0},minlength:function(F,G,D){var E=C.isArray(F)?F.length:this.getLength(C.trim(F),G);return this.optional(G)||E>=D},maxlength:function(F,G,D){var E=C.isArray(F)?F.length:this.getLength(C.trim(F),G);return this.optional(G)||D>=E},rangelength:function(F,G,D){var E=C.isArray(F)?F.length:this.getLength(C.trim(F),G);return this.optional(G)||E>=D[0]&&E<=D[1]},min:function(F,D,E){return this.optional(D)||F>=E},max:function(F,D,E){return this.optional(D)||E>=F},range:function(F,D,E){return this.optional(D)||F>=E[0]&&F<=E[1]},equalTo:function(F,G,D){var E=C(D);return this.settings.onfocusout&&E.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){C(G).valid()}),F===E.val()},remote:function(G,H,E){if(this.optional(H)){return"dependency-mismatch"}var F,I,D=this.previousValue(H);return this.settings.messages[H.name]||(this.settings.messages[H.name]={}),D.originalMessage=this.settings.messages[H.name].remote,this.settings.messages[H.name].remote=D.message,E="string"==typeof E&&{url:E}||E,D.old===G?D.valid:(D.old=G,F=this,this.startRequest(H),I={},I[H.name]=G,C.ajax(C.extend(!0,{url:E,mode:"abort",port:"validate"+H.name,dataType:"json",data:I,context:F.currentForm,success:function(K){var N,J,L,M=K===!0||"true"===K;F.settings.messages[H.name].remote=D.originalMessage,M?(L=F.formSubmitted,F.prepareElement(H),F.formSubmitted=L,F.successList.push(H),delete F.invalid[H.name],F.showErrors()):(N={},J=K||F.defaultMessage(H,"remote"),N[H.name]=D.message=C.isFunction(J)?J(G):J,F.invalid[H.name]=!0,F.showErrors(N)),D.valid=M,F.stopRequest(H,M)}},E)),"pending")}}});var A,B={};C.ajaxPrefilter?C.ajaxPrefilter(function(G,F,D){var E=G.port;"abort"===G.mode&&(B[E]&&B[E].abort(),B[E]=D)}):(A=C.ajax,C.ajax=function(D){var E=("mode" in D?D:C.ajaxSettings).mode,F=("port" in D?D:C.ajaxSettings).port;return"abort"===E?(B[F]&&B[F].abort(),B[F]=A.apply(this,arguments),B[F]):A.apply(this,arguments)}),C.extend(C.fn,{validateDelegate:function(E,F,D){return this.bind(F,function(H){var G=C(H.target);return G.is(E)?D.apply(G,arguments):void 0})}})});(function(K){var N=K.validator,I,A="unobtrusiveValidation";function J(Q,O,P){Q.rules[O]=P;if(Q.message){Q.messages[O]=Q.message}}function B(O){return O.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function L(O){return O.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function D(O){return O.substr(0,O.lastIndexOf(".")+1)}function M(P,O){if(P.indexOf("*.")===0){P=P.replace("*.",O)}return P}function H(S,Q){var R=K(this).find("[data-valmsg-for='"+L(Q[0].name)+"']"),P=R.attr("data-valmsg-replace"),O=P?K.parseJSON(P)!==false:null;R.removeClass("field-validation-valid").addClass("field-validation-error");S.data("unobtrusiveContainer",R);if(O){R.empty();S.removeClass("input-validation-error").appendTo(R)}else{S.hide()}}function G(P,O){var R=K(this).find("[data-valmsg-summary=true]"),Q=R.find("ul");if(Q&&Q.length&&O.errorList.length){Q.empty();R.addClass("validation-summary-errors").removeClass("validation-summary-valid");K.each(O.errorList,function(){K("").html(this.message).appendTo(Q)})}}function C(O){var Q=O.data("unobtrusiveContainer"),R=Q.attr("data-valmsg-replace"),P=R?K.parseJSON(R):null;if(Q){Q.addClass("field-validation-valid").removeClass("field-validation-error");O.removeData("unobtrusiveContainer");P&&Q.empty()}}function F(){var O=K(this);O.data("validator").resetForm();O.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");O.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}function E(R){var S=K(R),T=S.data(A),P=K.proxy(F,R),O=N.unobtrusive.options||{},Q=function(V,U){var W=O[V];W&&K.isFunction(W)&&W.apply(R,U)};if(!T){T={options:{errorClass:O.errorClass||"input-validation-error",errorElement:O.errorElement||"span",errorPlacement:function(){H.apply(R,arguments);Q("errorPlacement",arguments)},invalidHandler:function(){G.apply(R,arguments);Q("invalidHandler",arguments)},messages:{},rules:{},success:function(){C.apply(R,arguments);Q("success",arguments)}},attachValidation:function(){S.off("reset."+A,P).on("reset."+A,P).validate(this.options)},validate:function(){S.validate();return S.valid()}};S.data(A,T)}return T}N.unobtrusive={adapters:[],parseElement:function(S,O){var P=K(S),U=P.parents("form")[0],T,Q,R;if(!U){return}T=E(U);T.options.rules[S.name]=Q={};T.options.messages[S.name]=R={};K.each(this.adapters,function(){var X="data-val-"+this.name,W=P.attr(X),V={};if(W!==undefined){X+="-";K.each(this.params,function(){V[this]=P.attr(X+this)});this.adapt({element:S,form:U,message:W,params:V,rules:Q,messages:R})}});K.extend(Q,{__dummy__:true});!O&&T.attachValidation()},parse:function(Q){var P=K(Q),O=P.parents().addBack().filter("form").add(P.find("form")).has("[data-val=true]");P.find("[data-val=true]").each(function(){N.unobtrusive.parseElement(this,true)});O.each(function(){var R=E(this);R&&R.attachValidation()})}};I=N.unobtrusive.adapters;I.add=function(P,Q,O){if(!O){O=Q;Q=[]}this.push({name:P,params:Q,adapt:O});return this};I.addBool=function(P,O){return this.add(P,function(Q){J(Q,O||P,true)})};I.addMinMax=function(Q,O,T,S,P,R){return this.add(Q,[P||"min",R||"max"],function(W){var V=W.params.min,U=W.params.max;if(V&&U){J(W,S,[V,U])}else{if(V){J(W,O,V)}else{U&&J(W,T,U)}}})};I.addSingleVal=function(Q,P,O){return this.add(Q,[P||"val"],function(R){J(R,O||Q,R.params[P])})};N.addMethod("__dummy__",function(){return true});N.addMethod("regex",function(P,Q,O){var R;if(this.optional(Q)){return true}R=(new RegExp(O)).exec(P);return R&&R.index===0&&R[0].length===P.length});N.addMethod("nonalphamin",function(Q,O,P){var R;if(P){R=Q.match(/\W/g);R=R&&R.length>=P}return R});if(N.methods.extension){I.addSingleVal("accept","mimtype");I.addSingleVal("extension","extension")}else{I.addSingleVal("extension","extension","accept")}I.addSingleVal("regex","pattern");I.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");I.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");I.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength");I.add("equalto",["other"],function(R){var O=D(R.element.name),S=R.params.other,Q=M(S,O),P=K(R.form).find(":input").filter("[name='"+L(Q)+"']")[0];J(R,"equalTo",P)});I.add("required",function(O){(O.element.tagName.toUpperCase()!=="INPUT"||O.element.type.toUpperCase()!=="CHECKBOX")&&J(O,"required",true)});I.add("remote",["url","type","additionalfields"],function(Q){var O={url:Q.params.url,type:Q.params.type||"GET",data:{}},P=D(Q.element.name);K.each(B(Q.params.additionalfields||Q.element.name),function(S,R){var T=M(R,P);O.data[T]=function(){return K(Q.form).find(":input").filter("[name='"+L(T)+"']").val()}});J(Q,"remote",O)});I.add("password",["min","nonalphamin","regex"],function(O){O.params.min&&J(O,"minlength",O.params.min);O.params.nonalphamin&&J(O,"nonalphamin",O.params.nonalphamin);O.params.regex&&J(O,"regex",O.params.regex)});K(function(){N.unobtrusive.parse(document)})})(jQuery);(function(G){var E="unobtrusiveAjaxClick",J="unobtrusiveAjaxClickTarget",C="unobtrusiveValidation";function F(K,L){var N=window,M=(K||"").split(".");while(N&&M.length){N=N[M.shift()]}if(typeof N==="function"){return N}L.push(K);return Function.constructor.apply(null,L)}function A(K){return K==="GET"||K==="POST"}function I(K,L){!A(L)&&K.setRequestHeader("X-HTTP-Method-Override",L)}function D(N,M,L){var K;if(L.indexOf("application/x-javascript")!==-1){return}K=(N.getAttribute("data-ajax-mode")||"").toUpperCase();G(N.getAttribute("data-ajax-update")).each(function(Q,P){var O;switch(K){case"BEFORE":O=P.firstChild;G("").html(M).contents().each(function(){P.insertBefore(this,O)});break;case"AFTER":G("").html(M).contents().each(function(){P.appendChild(this)});break;case"REPLACE-WITH":G(P).replaceWith(M);break;default:G(P).html(M)}})}function H(N,L){var O,P,M,K;O=N.getAttribute("data-ajax-confirm");if(O&&!window.confirm(O)){return}P=G(N.getAttribute("data-ajax-loading"));K=parseInt(N.getAttribute("data-ajax-loading-duration"),10)||0;G.extend(L,{type:N.getAttribute("data-ajax-method")||undefined,url:N.getAttribute("data-ajax-url")||undefined,cache:!!N.getAttribute("data-ajax-cache"),beforeSend:function(Q){var R;I(Q,M);R=F(N.getAttribute("data-ajax-begin"),["xhr"]).apply(N,arguments);R!==false&&P.show(K);return R},complete:function(){P.hide(K);F(N.getAttribute("data-ajax-complete"),["xhr","status"]).apply(N,arguments)},success:function(S,R,Q){D(N,S,Q.getResponseHeader("Content-Type")||"text/html");F(N.getAttribute("data-ajax-success"),["data","status","xhr"]).apply(N,arguments)},error:function(){F(N.getAttribute("data-ajax-failure"),["xhr","status","error"]).apply(N,arguments)}});L.data.push({name:"X-Requested-With",value:"XMLHttpRequest"});M=L.type.toUpperCase();if(!A(M)){L.type="POST";L.data.push({name:"X-HTTP-Method-Override",value:M})}G.ajax(L)}function B(L){var K=G(L).data(C);return !K||!K.validate||K.validate()}G(document).on("click","a[data-ajax=true]",function(K){K.preventDefault();H(this,{url:this.href,type:"GET",data:[]})});G(document).on("click","form[data-ajax=true] input[type=image]",function(N){var K=N.target.name,M=G(N.target),O=G(M.parents("form")[0]),L=M.offset();O.data(E,[{name:K+".x",value:Math.round(N.pageX-L.left)},{name:K+".y",value:Math.round(N.pageY-L.top)}]);setTimeout(function(){O.removeData(E)},0)});G(document).on("click","form[data-ajax=true] :submit",function(L){var K=L.currentTarget.name,N=G(L.target),M=G(N.parents("form")[0]);M.data(E,K?[{name:K,value:L.currentTarget.value}]:[]);M.data(J,N);setTimeout(function(){M.removeData(E);M.removeData(J)},0)});G(document).on("submit","form[data-ajax=true]",function(K){var L=G(this).data(E)||[],N=G(this).data(J),M=N&&N.hasClass("cancel");K.preventDefault();if(!M&&!B(this)){return}H(this,{url:this.action,type:this.method||"GET",data:L.concat(G(this).serializeArray())})})})(jQuery);
function getViewSizeWithoutScrollbar(){return{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}}function getViewSizeWithScrollbar(){if(window.innerWidth){return{width:window.innerWidth,height:window.innerHeight}}else{if(document.documentElement.offsetWidth==document.documentElement.clientWidth){return{width:document.documentElement.offsetWidth,height:document.documentElement.offsetHeight}}else{return{width:document.documentElement.clientWidth+getScrollWith(),height:document.documentElement.clientHeight+getScrollWith()}}}}function getScrollWith(){var A=setAttributes(document.createElement("div"),{style:{width:"200px",height:"200px",overflow:"auto",position:"absolute",visibility:"hidden"}});var C=setAttributes(document.createElement("div"),{style:{width:"100px",height:"2000px"}});document.body.appendChild(A);A.appendChild(C);var B=A.offsetWidth-A.clientWidth;document.body.removeChild(A);A=null;C=null;return B}function setAttributes(C,B){for(var A in B){if(typeof B[A]=="string"){C[A]=B[A]}else{if(!C[A]){C[A]={}}setAttributes(C[A],B[A])}}return C}function getEvent(){if(window.event){return window.event}var A=getEvent.caller;while(A!=null){var B=A.arguments[0];if(B){if((B.constructor==Event||B.constructor==MouseEvent)||(typeof(B)=="object"&&B.preventDefault&&B.stopPropagation)){return B}}A=A.caller}return null}function getElement(A){if(A){return A.target||A.srcElement}throw"Event is undefined!"}function stopPropagation(A){if(A&&A.stopPropagation){A.stopPropagation()}else{window.event.cancelBubble=true}}function preventDefault(A){if(A&&A.preventDefault){A.preventDefault()}else{window.event.returnValue=false}return false}function requestFullScreen(){var A=document.documentElement;if(A.requestFullscreen){A.requestFullscreen()}else{if(A.mozRequestFullScreen){A.mozRequestFullScreen()}else{if(A.webkitRequestFullScreen){A.webkitRequestFullScreen()}}}}function cancelFullscreen(){var A=document;if(A.exitFullscreen){A.exitFullscreen()}else{if(A.mozCancelFullScreen){A.mozCancelFullScreen()}else{if(A.webkitCancelFullScreen){A.webkitCancelFullScreen()}}}};
$(function(){$("a[id^=changeskin]").on("click",function(B){var C=$(this);B.preventDefault();B.stopPropagation();var E=C.attr("id");var D=E.match(/\d+/)[0];$.post("/PageSetting/set_pageskin_cookie",{skinNum:D},function(F){top.document.location.reload()}).error(function(F){alert(F)})});var A=new RegExp("^/|([a-z]+:)|#","i");$("a").each(function(B){if($(this).attr("href")&&!A.test($(this).attr("href"))){if(window.console&&window.console.log){console.log($(this).get(0))}}})});
(function (A) { A.extend({ format: function (G) { if (arguments.length > 1) { var D = arguments[0]; if (arguments.length == 2 && typeof arguments[0] == "string" && typeof arguments[1] == "object") { var F = arguments[1]; for (var B in F) { if (F[B] != undefined) { var E = new RegExp("({\x20*" + B + "\x20*})", "g"); D = D.replace(E, F[B]) } } } else { for (var C = 1; C < arguments.length; C++) { if (arguments[C] != undefined) { var E = new RegExp("({\x20*[" + (C - 1) + "]\x20*})", "g"); D = D.replace(E, arguments[C]) } } } return D } return G }, startWith: function (C) { C = C.replace(/([\(\)\[\]\{\}\.\+\*\^\$])/g, "\\$1"); var B = new RegExp("^" + C); return B.test(this) }, genaralGuid: function () { var B = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"; return B.replace(/[xy]/gi, function (E) { var C = Math.random() * 16 | 0, D = E == "x" ? C : C & 3 | 8; return D.toString(16) }) }, convertGB2312ToUnicode: { toUnicode: function (B) { return escape(B).toLocaleLowerCase().replace(/%u/gi, "\\u") }, toGB2312: function (B) { return unescape(B.replace(/\\u/gi, "%u")) } } }); A.fn.newGuid = function () { var B = A.genaralGuid(); if (arguments[0]) { B = B.toUpperCase() } this.val(B); return this }; A.fn.goTop = function () { var C = this; var B = function () { if ((document.documentElement.scrollTop || document.body.scrollTop) > 0) { A(".g-hd").css("opacity", ".95"); C.show() } else { A(".g-hd").css("opacity", "1"); C.hide() } }; if (this) { window.onscroll = function () { B() }; window.onresize = function () { B() } } this.click(function (D) { D.preventDefault(); var E = document.body.scrollTop || 300; if (E > 300) { E = 300 } A("body,html").animate({ scrollTop: 0 }, 2 * E) }); return this } }(jQuery)); (function (A) { A.fn.helptips = function () { return this.each(function () { if ($(this).find("img").length == 0) { $(this).append($('
')) } if ($(this).find(".tips-cinfo-show").length == 0) { $(this).append($('')) } var G = $(this).find("img").get(0); var H = $(this).find(".tips-cinfo-show"); H.html($(this).attr("title")); $(this).removeAttr("title"); var D = G.getBoundingClientRect(); if (typeof ($(this).attr("width")) != "undefined") { H.css("width", parseInt($(this).attr("width")) + "px"); $(this).removeAttr("width") } var E = parseInt(H.css("width")), F = parseInt(H.css("left")); var B = document.documentElement.clientWidth, C = document.documentElement.clientHeight; $(this).find(".tips-cinfo-show").css("text-align", "left"); $(this).find(".tips-cinfo-show").css("z-index", "9999"); if (D.right + E > B) { $(this).find(".tips-cinfo-show").css("left", (B - (D.right + E + F) - 17) + "px") } if (D.bottom + H.get(0).scrollHeight > C) { $(this).find(".tips-cinfo-show").css("top", (0 - H.get(0).scrollHeight - 4) + "px") } }) } })(jQuery), $(function () { $(".tips-cinfo").helptips() });
var getParamArr = function (id) { var script = $("#" + id); var src = script && script.attr("data"); var requestParam = new Object(); var strs = src && src.split("&"); if (strs) { for (var i = 0; i < strs.length; i++) { requestParam[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]); } } return requestParam; }
function obj$(A){return document.getElementById(A)}function val$(B){var A=document.getElementById(B);if(A!==null){return A.value}return null}String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};String.prototype.ltrim=function(){return this.replace(/^\s*/g,"")};String.prototype.rtrim=function(){return this.replace(/\s*$/,"")};String.prototype.isEmpty=function(){if(this!=null&&this.length>0){return true}return false};String.prototype.equals=function(A){if(this==A){return true}return false};String.prototype.equalsIgnoreCase=function(A){if(this==A||this.toUpperCase()==A.toUpperCase()){return true}return false};String.prototype.isChinese=function(){var A=this.trim();if(!(/^[\u4E00-\uFA29]*$/.test(A))){return false}return true};String.prototype.isEmail=function(){if(/^[\w-_]+(\.[\w-_]+)*@[\w-_]+(\.[\w-_]+)+$/.test(this)){return true}return false};String.prototype.isImg=function(){var A=new RegExp("[.]+(jpg|jpeg|swf|gif)$","gi");if(A.test(this)){return true}return false};String.prototype.isInteger=function(){if(/^-?\d+$/.test(this)){return true}return false};String.prototype.isFloat=function(){if(/^(-?\d+)(\.\d+)?$/.test(this)){return true}return false};String.prototype.isPost=function(){if(/^\d{1,6}$/.test(this)){return true}return false};String.prototype.isMobile=function(){if(/^1[34578]\d{9}/.test(this)){return true}return false};String.prototype.isPhone=function(){if(/^(0[1-9]\d{1,2}-)\d{7,8}(-\d{1,8})?/.test(this)){return true}return false};String.prototype.isQQ=function(){if(/^\d{5,12}$/.test(this)){return true}return false};String.prototype.isIPv4=function(){var A=/^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$/;if(A.test(this)){return true}return false};String.prototype.isDate=function(){var A=/^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-0?2-(0?[1-9]|1\d|2[0-8]))|(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))$/;if(A.test(this)){return true}return false};String.prototype.isIdCardNo=function(){var A=new Array(7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2,1);var E=new Array();var F=0;var D;if((idNumber.length!=15)&&(idNumber.length!=18)){return false}for(i=0;i"9")&&(i!=17)){return false}else{if(i<17){E[i]=E[i]*A[i]}}}if(idNumber.length==18){var B=idNumber.substring(6,14);if(checkDate(B)==false){return false}for(i=0;i<17;i++){F=F+E[i]}D=12-F%11;switch(D){case 10:D="X";break;case 11:D=0;break;case 12:D=1;break}if(E[17].toUpperCase()!=D){return false}}else{var C=idNumber.substring(6,12);if(checkDate(C)==false){return false}}return true};String.prototype.ToCharArray=function(){return this.split("")};String.prototype.Reverse=function(){return this.split("").reverse().join("")};String.prototype.IsContains=function(A){return(this.indexOf(A)>-1)};String.prototype.IsEmpty=function(){return this==""};String.prototype.IsNumeric=function(){var A=parseFloat(this);if(isNaN(A)){return false}var B=this.length-A.toString().length;return A+"0".GetSame(B)==this};String.prototype.IsInt=function(){if(this=="NaN"){return false}return this==parseInt(this).toString()};String.prototype.resetBlank=function(){return this.replace(/\s+/g,"")};String.prototype.getNum=function(){return this.replace(/[^\d]/g,"")};String.prototype.getEn=function(){return this.replace(/[^A-Za-z]/g,"")};String.prototype.getCn=function(){return this.replace(/[^\u4e00-\u9fa5\uf900-\ufa2d]/g,"")};String.prototype.ByteLength=function(){return this.replace(/[^\x00-\xff]/g,"aa").length};String.prototype.left=function(A){return this.slice(0,A)};String.prototype.right=function(A){return this.slice(this.length-A)};String.prototype.HTMLEncode=function(){var A=this;var C=[/\x26/g,/\x3C/g,/\x3E/g,/\x20/g];var D=["&","<",">"," "];for(var B=0;B=AU?0!=A2%AT?A2%AT:AT:0,Al="leftMarquee"==a||"topMarquee"==a?!0:!1,Am=function(){A.isFunction(A3.startFun)&&A3.startFun(AP,AW,A6,A(A3.titCell,A6),A1,A0,A4,A5)},Ar=function(){A.isFunction(A3.endFun)&&A3.endFun(AP,AW,A6,A(A3.titCell,A6),A1,A0,A4,A5)},As=function(){AV.removeClass(Au),AD&&AV.eq(Ax).addClass(Au)};if("menu"==A3.type){return AD&&AV.removeClass(Au).eq(AP).addClass(Au),AV.hover(function(){Ao=A(this).find(A3.targetCell);var C=AV.index(A(this));Aw=setTimeout(function(){switch(AP=C,AV.removeClass(Au).eq(AP).addClass(Au),Am(),a){case"fade":Ao.stop(!0,!0).animate({opacity:"show"},AQ,AF,Ar);break;case"slideDown":Ao.stop(!0,!0).animate({height:"show"},AQ,AF,Ar)}},A3.triggerTime)},function(){switch(clearTimeout(Aw),a){case"fade":Ao.animate({opacity:"hide"},AQ,AF);break;case"slideDown":Ao.animate({height:"hide"},AQ,AF)}}),AB&&A6.hover(function(){clearTimeout(At)},function(){At=setTimeout(As,AQ)}),void 0}if(0==AW&&(AW=A2),Al&&(AW=2),AJ){if(A2>=AU){if("leftLoop"==a||"topLoop"==a){AW=0!=A2%AT?(0^A2/AT)+1:A2/AT}else{var Ap=A2-AU;AW=1+parseInt(0!=Ap%AT?Ap/AT+1:Ap/AT),0>=AW&&(AW=1)}}else{AW=1}AV.html("");var Aq="";if(1==A3.autoPage||"true"==A3.autoPage){for(var Ai=0;AW>Ai;Ai++){Aq+=""+(Ai+1)+""}}else{for(var Ai=0;AW>Ai;Ai++){Aq+=A3.autoPage.replace("$",Ai+1)}}AV.html(Aq);var AV=AV.children()}if(A2>=AU){A1.children().each(function(){A(this).width()>AH&&(AH=A(this).width(),AG=A(this).outerWidth(!0)),A(this).height()>AE&&(AE=A(this).height(),AC=A(this).outerHeight(!0))});var Aj=A1.children(),Ah=function(){for(var C=0;AU>C;C++){Aj.eq(C).clone().addClass("clone").appendTo(A1)}for(var C=0;An>C;C++){Aj.eq(A2-C-1).clone().addClass("clone").prependTo(A1)}};switch(a){case"fold":A1.css({position:"relative",width:AG,height:AC}).children().css({position:"absolute",width:AH,left:0,top:0,display:"none"});break;case"top":A1.wrap('').css({top:-(AP*AT)*AC,position:"relative",padding:"0",margin:"0"}).children().css({height:AE});break;case"left":A1.wrap('').css({width:A2*AG,left:-(AP*AT)*AG,position:"relative",overflow:"hidden",padding:"0",margin:"0"}).children().css({"float":"left",width:AH});break;case"leftLoop":case"leftMarquee":Ah(),A1.wrap('').css({width:(A2+AU+An)*AG,position:"relative",overflow:"hidden",padding:"0",margin:"0",left:-(An+AP*AT)*AG}).children().css({"float":"left",width:AH});break;case"topLoop":case"topMarquee":Ah(),A1.wrap('').css({height:(A2+AU+An)*AC,position:"relative",padding:"0",margin:"0",top:-(An+AP*AT)*AC}).children().css({height:AE})}}var s=function(D){var C=D*AT;return D==AW?C=A2:-1==D&&0!=A2%AT&&(C=-A2%AT),C},Ak=function(F){var G=function(J){for(var I=J;AU+J>I;I++){F.eq(I).find("img["+AZ+"]").each(function(){var L=A(this);if(L.attr("src",L.attr(AZ)).removeAttr(AZ),A1.find(".clone")[0]){for(var M=A1.children(),K=0;K=1?AP=1:0>=AP&&(AP=0):(Ay=AP,AP>=AW?AP=0:0>AP&&(AP=AW-1)),Am(),null!=AZ&&Ak(A1.children()),A0[0]&&(Ao=A0.eq(AP),null!=AZ&&Ak(A0),"slideDown"==a?(A0.not(Ao).stop(!0,!0).slideUp(AQ),Ao.slideDown(AQ,AF,function(){A1[0]||Ar()})):(A0.not(Ao).stop(!0,!0).hide(),Ao.animate({opacity:"show"},AQ,function(){A1[0]||Ar()}))),A2>=AU){switch(a){case"fade":A1.children().stop(!0,!0).eq(AP).animate({opacity:"show"},AQ,AF,function(){Ar()}).siblings().hide();break;case"fold":A1.children().stop(!0,!0).eq(AP).animate({opacity:"show"},AQ,AF,function(){Ar()}).siblings().animate({opacity:"hide"},AQ,AF);break;case"top":A1.stop(!0,!1).animate({top:-AP*AT*AC},AQ,AF,function(){Ar()});break;case"left":A1.stop(!0,!1).animate({left:-AP*AT*AG},AQ,AF,function(){Ar()});break;case"leftLoop":var D=Ay;A1.stop(!0,!0).animate({left:-(s(Ay)+An)*AG},AQ,AF,function(){-1>=D?A1.css("left",-(An+(AW-1)*AT)*AG):D>=AW&&A1.css("left",-An*AG),Ar()});break;case"topLoop":var D=Ay;A1.stop(!0,!0).animate({top:-(s(Ay)+An)*AC},AQ,AF,function(){-1>=D?A1.css("top",-(An+(AW-1)*AT)*AC):D>=AW&&A1.css("top",-An*AC),Ar()});break;case"leftMarquee":var E=A1.css("left").replace("px","");0==AP?A1.animate({left:++E},0,function(){A1.css("left").replace("px","")>=0&&A1.css("left",-A2*AG)}):A1.animate({left:--E},0,function(){A1.css("left").replace("px","")<=-(A2+An)*AG&&A1.css("left",-An*AG)});break;case"topMarquee":var C=A1.css("top").replace("px","");0==AP?A1.animate({top:++C},0,function(){A1.css("top").replace("px","")>=0&&A1.css("top",-A2*AC)}):A1.animate({top:--C},0,function(){A1.css("top").replace("px","")<=-(A2+An)*AC&&A1.css("top",-An*AC)})}}AV.removeClass(Au).eq(AP).addClass(Au),AA=AP,AK||(A5.removeClass("nextStop"),A4.removeClass("prevStop"),0==AP&&A4.addClass("prevStop"),AP==AW-1&&A5.addClass("nextStop")),AX.html(""+(AP+1)+"/"+AW)}};AD&&Ac(!0),AB&&A6.hover(function(){clearTimeout(At)},function(){At=setTimeout(function(){AP=Ax,AD?Ac():"slideDown"==a?Ao.slideUp(AQ,As):Ao.animate({opacity:"hide"},AQ,As),AA=AP},300)});var Aa=function(C){Av=setInterval(function(){AS?AP--:AP++,Ac()},C?C:AN)},Ab=function(C){Av=setInterval(Ac,C?C:AN)},Af=function(){AI||(clearInterval(Av),Aa())},Ag=function(){(AK||AP!=AW-1)&&(AP++,Ac(),Al||Af())},Ad=function(){(AK||0!=AP)&&(AP--,Ac(),Al||Af())},Ae=function(){clearInterval(Av),Al?Ab():Aa(),AY.removeClass("pauseState")},b=function(){clearInterval(Av),AY.addClass("pauseState")};if(AR?Al?(AS?AP--:AP++,Ab(),AI&&A1.hover(b,Ae)):(Aa(),AI&&A6.hover(b,Ae)):(Al&&(AS?AP--:AP++),AY.addClass("pauseState")),AY.click(function(){AY.hasClass("pauseState")?Ae():b()}),"mouseover"==A3.trigger?AV.hover(function(){var C=AV.index(this);Aw=setTimeout(function(){AP=C,Ac(),Af()},A3.triggerTime)},function(){clearTimeout(Aw)}):AV.click(function(){AP=AV.index(this),Ac(),Af()}),Al){if(A5.mousedown(Ag),A4.mousedown(Ad),AK){var AO,AL=function(){AO=setTimeout(function(){clearInterval(Av),Ab(0^AN/10)},150)},AM=function(){clearTimeout(AO),clearInterval(Av),Ab()};A5.mousedown(AL),A5.mouseup(AM),A4.mousedown(AL),A4.mouseup(AM)}"mouseover"==A3.trigger&&(A5.hover(Ag,function(){}),A4.hover(Ad,function(){}))}else{A5.click(Ag),A4.click(Ad)}})}}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(E,C,D,A,B){return jQuery.easing[jQuery.easing.def](E,C,D,A,B)},easeInQuad:function(E,C,D,A,B){return A*(C/=B)*C+D},easeOutQuad:function(E,C,D,A,B){return -A*(C/=B)*(C-2)+D},easeInOutQuad:function(E,C,D,A,B){return(C/=B/2)<1?A/2*C*C+D:-A/2*(--C*(C-2)-1)+D},easeInCubic:function(E,C,D,A,B){return A*(C/=B)*C*C+D},easeOutCubic:function(E,C,D,A,B){return A*((C=C/B-1)*C*C+1)+D},easeInOutCubic:function(E,C,D,A,B){return(C/=B/2)<1?A/2*C*C*C+D:A/2*((C-=2)*C*C+2)+D},easeInQuart:function(E,C,D,A,B){return A*(C/=B)*C*C*C+D},easeOutQuart:function(E,C,D,A,B){return -A*((C=C/B-1)*C*C*C-1)+D},easeInOutQuart:function(E,C,D,A,B){return(C/=B/2)<1?A/2*C*C*C*C+D:-A/2*((C-=2)*C*C*C-2)+D},easeInQuint:function(E,C,D,A,B){return A*(C/=B)*C*C*C*C+D},easeOutQuint:function(E,C,D,A,B){return A*((C=C/B-1)*C*C*C*C+1)+D},easeInOutQuint:function(E,C,D,A,B){return(C/=B/2)<1?A/2*C*C*C*C*C+D:A/2*((C-=2)*C*C*C*C+2)+D},easeInSine:function(E,C,D,A,B){return -A*Math.cos(C/B*(Math.PI/2))+A+D},easeOutSine:function(E,C,D,A,B){return A*Math.sin(C/B*(Math.PI/2))+D},easeInOutSine:function(E,C,D,A,B){return -A/2*(Math.cos(Math.PI*C/B)-1)+D},easeInExpo:function(E,C,D,A,B){return 0==C?D:A*Math.pow(2,10*(C/B-1))+D},easeOutExpo:function(E,C,D,A,B){return C==B?D+A:A*(-Math.pow(2,-10*C/B)+1)+D},easeInOutExpo:function(E,C,D,A,B){return 0==C?D:C==B?D+A:(C/=B/2)<1?A/2*Math.pow(2,10*(C-1))+D:A/2*(-Math.pow(2,-10*--C)+2)+D},easeInCirc:function(E,C,D,A,B){return -A*(Math.sqrt(1-(C/=B)*C)-1)+D},easeOutCirc:function(E,C,D,A,B){return A*Math.sqrt(1-(C=C/B-1)*C)+D},easeInOutCirc:function(E,C,D,A,B){return(C/=B/2)<1?-A/2*(Math.sqrt(1-C*C)-1)+D:A/2*(Math.sqrt(1-(C-=2)*C)+1)+D},easeInElastic:function(E,C,D,H,A){var F=1.70158,G=0,B=H;if(0==C){return D}if(1==(C/=A)){return D+H}if(G||(G=0.3*A),BC?-0.5*B*Math.pow(2,10*(C-=1))*Math.sin((C*A-F)*2*Math.PI/G)+D:0.5*B*Math.pow(2,-10*(C-=1))*Math.sin((C*A-F)*2*Math.PI/G)+H+D},easeInBack:function(E,C,D,A,B,F){return void 0==F&&(F=1.70158),A*(C/=B)*C*((F+1)*C-F)+D},easeOutBack:function(E,C,D,A,B,F){return void 0==F&&(F=1.70158),A*((C=C/B-1)*C*((F+1)*C+F)+1)+D},easeInOutBack:function(E,C,D,A,B,F){return void 0==F&&(F=1.70158),(C/=B/2)<1?A/2*C*C*(((F*=1.525)+1)*C-F)+D:A/2*((C-=2)*C*(((F*=1.525)+1)*C+F)+2)+D},easeInBounce:function(E,C,D,A,B){return A-jQuery.easing.easeOutBounce(E,B-C,0,A,B)+D},easeOutBounce:function(E,C,D,A,B){return(C/=B)<1/2.75?A*7.5625*C*C+D:2/2.75>C?A*(7.5625*(C-=1.5/2.75)*C+0.75)+D:2.5/2.75>C?A*(7.5625*(C-=2.25/2.75)*C+0.9375)+D:A*(7.5625*(C-=2.625/2.75)*C+0.984375)+D},easeInOutBounce:function(E,C,D,A,B){return B/2>C?0.5*jQuery.easing.easeInBounce(E,2*C,0,A,B)+D:0.5*jQuery.easing.easeOutBounce(E,2*C-B,0,A,B)+0.5*A+D}});
(function(A){A.fn.kxbdMarquee=function(C){var B=A.extend({},A.fn.kxbdMarquee.defaults,C);return this.each(function(){var N=A(this);var M=N.get(0);var D=N.width();var J=N.height();var E=N.children();var H=E.children();var G=0;var P=(B.direction=="left"||B.direction=="right")?1:0;E.css(P?"width":"height",10000);if(B.isEqual){G=H[P?"outerWidth":"outerHeight"]()*H.length}else{H.each(function(){G+=A(this)[P?"outerWidth":"outerHeight"]()})}if(G<(P?D:J)){return}E.append(H.clone()).css(P?"width":"height",G*2+1);var F=G==10000;if(F){var K=0;if(P){A("li",N).each(function(Q,S){var R=parseInt(A("a",A(S)).css("paddingLeft"))+parseInt(A("a",A(S)).css("paddingRight"));K+=A(S).width()+R})}else{A("li",N).each(function(Q,S){var R=parseInt(A("a",A(S)).css("paddingTop"))+parseInt(A("a",A(S)).css("paddingBottom"));K+=A(S).height()+R})}}var O=0;function I(){var Q=(B.direction=="left"||B.direction=="right")?"scrollLeft":"scrollTop";if(B.loop>0){O+=B.scrollAmount;if(O>G*B.loop){M[Q]=0;return clearInterval(L)}}if(B.direction=="left"||B.direction=="up"){var R=M[Q]+B.scrollAmount;if(!F&&R>=G){R-=G}if(F&&R>=K){R-=K}M[Q]=R}else{var R=M[Q]-B.scrollAmount;if(R<=0){if(!F){R+=G}else{R+=K}}M[Q]=R}}var L=setInterval(I,B.scrollDelay);N.hover(function(){clearInterval(L)},function(){clearInterval(L);L=setInterval(I,B.scrollDelay)});if(B.controlBtn){A.each(B.controlBtn,function(Q,R){A(R).bind(B.eventA,function(){B.direction=Q;B.oldAmount=B.scrollAmount;B.scrollAmount=B.newAmount}).bind(B.eventB,function(){B.scrollAmount=B.oldAmount})})}})};A.fn.kxbdMarquee.defaults={isEqual:true,loop:0,direction:"left",scrollAmount:1,scrollDelay:20,newAmount:3,eventA:"mousedown",eventB:"mouseup"};A.fn.kxbdMarquee.setDefaults=function(B){A.extend(A.fn.kxbdMarquee.defaults,B)}})(jQuery);
(function(A){A.fn.kxbdSuperMarquee=function(C){var B=A.extend({},A.fn.kxbdSuperMarquee.defaults,C);return this.each(function(){var V=A(this);var a=V.get(0);var Z=V.width();var K=V.height();var L=V.children();var X=L.children();var J=0;var f=(B.direction=="left"||B.direction=="right")?1:0;var o,M,P,h;var F,N,O,S,T;var g,R;var H,Q;var U=[];var G=0;var D=0;var l=0;L.css(f?"width":"height",10000);var Y="";if(B.isEqual){g=X[f?"outerWidth":"outerHeight"]();R=X.length;J=g*R;for(var j=0;j"+(j+1)+""}}else{X.each(function(b){U.push(J);J+=A(this)[f?"outerWidth":"outerHeight"]();Y+="- "+(b+1)+"
"})}Y+="
";if(J<(f?Z:K)){return}L.append(X.clone()).css(f?"width":"height",J*2);if(B.navId){H=A(B.navId).append(Y).hover(k,n);Q=A("li",H);Q.each(function(b){A(this).bind(B.eventNav,function(){if(P){return}if(G==b){return}m(U[b]);Q.eq(G).removeClass("navOn");G=b;A(this).addClass("navOn")})});Q.eq(G).addClass("navOn")}if(B.direction=="right"||B.direction=="down"){a[f?"scrollLeft":"scrollTop"]=J}else{a[f?"scrollLeft":"scrollTop"]=0}if(B.isMarquee){h=setTimeout(I,B.scrollDelay);V.hover(function(){clearInterval(h)},function(){clearInterval(h);h=setTimeout(I,B.scrollDelay)});if(B.controlBtn){A.each(B.controlBtn,function(b,c){A(c).bind(B.eventA,function(){B.direction=b;B.oldAmount=B.scrollAmount;B.scrollAmount=B.newAmount}).bind(B.eventB,function(){B.scrollAmount=B.oldAmount})})}}else{if(B.isAuto){n();V.hover(k,n)}if(B.btnGo){A.each(B.btnGo,function(b,c){A(c).bind(B.eventGo,function(){if(P==true){return}B.direction=b;m();if(B.isAuto){k();n()}})})}}function I(){var b=(B.direction=="left"||B.direction=="right")?"scrollLeft":"scrollTop";if(B.isMarquee){if(B.loop>0){l+=B.scrollAmount;if(l>J*B.loop){a[b]=0;return clearInterval(h)}}var c=a[b]+(B.direction=="left"||B.direction=="up"?1:-1)*B.scrollAmount}else{if(B.duration){if(F++=J){c-=J}}else{if(c<=0){c+=J}}a[b]=c;if(B.isMarquee){h=setTimeout(I,B.scrollDelay)}else{if(F=R){G=0}else{if(G<0){G=R-1}}Q.eq(G).addClass("navOn");D=G}var e=D<0?J:0;F=0;N=a[b];T=(d!=undefined)?d:e+(B.distance*D)%J;if(c==1){if(T>N){O=T-N}else{O=T+J-N}}else{if(T>N){O=T-J-N}else{O=T-N}}S=B.duration;if(o){clearTimeout(o)}o=setTimeout(I,B.scrollDelay)}function n(){M=setInterval(function(){m()},B.time*1000)}function k(){clearInterval(M)}function W(p,i,q,e){return -q*(p/=e)*(p-2)+i}function E(p,i,q,e){return q*((p=p/e-1)*p*p*p*p+1)+i}})};A.fn.kxbdSuperMarquee.defaults={isMarquee:false,isEqual:true,loop:0,newAmount:3,eventA:"mousedown",eventB:"mouseup",isAuto:true,time:5,duration:50,eventGo:"click",direction:"left",scrollAmount:1,scrollDelay:10,eventNav:"click"};A.fn.kxbdSuperMarquee.setDefaults=function(B){A.extend(A.fn.kxbdSuperMarquee.defaults,B)}})(jQuery);
var timespan=navigator.userAgent.indexOf("Firefox")>0?15:10;var AdConfig=false;function addEvent(F,E,D){if(F.addEventListener){F.addEventListener(E,D,false)}else{if(F.attachEvent){F.attachEvent("on"+E,D)}}}function AdConfigInit(){AdConfig=new Object();AdConfig.Left=0;AdConfig.Top=0;AdConfig.Width=0;AdConfig.Height=0;AdConfig.Scroll=function(){if(document.documentElement&&document.documentElement.scrollLeft){AdConfig.Left=document.documentElement.scrollLeft}else{if(document.body){AdConfig.Left=document.body.scrollLeft}}if(document.documentElement&&document.documentElement.scrollTop){AdConfig.Top=document.documentElement.scrollTop}else{if(document.body){AdConfig.Top=document.body.scrollTop}}};AdConfig.Resize=function(){if(document.documentElement&&document.documentElement.clientHeight&&document.body&&document.body.clientHeight){AdConfig.Width=(document.documentElement.clientWidth>document.body.clientWidth)?document.body.clientWidth:document.documentElement.clientWidth;AdConfig.Height=(document.documentElement.clientHeight>document.body.clientHeight)?document.body.clientHeight:document.documentElement.clientHeight}else{if(document.documentElement&&document.documentElement.clientHeight){AdConfig.Width=document.documentElement.clientWidth;AdConfig.Height=document.documentElement.clientHeight}else{if(document.body){AdConfig.Width=document.body.clientWidth;AdConfig.Height=document.body.clientHeight}}}};AdConfig.Scroll();AdConfig.Resize();addEvent(window,"scroll",AdConfig.Scroll);addEvent(window,"resize",AdConfig.Resize)}function AdPopup(R,O,K,M,L,Q,J,P){var N=window.open("","win"+R,"width="+M+", height="+L+", top="+Q+", left="+J);N.document.write("欧美激情AAAAAA,三级片在线第一页,海外成年人视频8x
");N.document.write(K);N.document.write("
")}function AdFloat(N,V,M,P,T,L,U,R){var O=1;var Q=1;N.Move=function(){if(L+M>=AdConfig.Left+AdConfig.Width){L=AdConfig.Left+AdConfig.Width-M;O=-1}else{if(L<=AdConfig.Left){L=AdConfig.Left;O=1}}if(T+P>=AdConfig.Top+AdConfig.Height){T=AdConfig.Top+AdConfig.Height-P;Q=-1}else{if(T<=AdConfig.Top){T=AdConfig.Top;Q=1}}L+=O;T+=Q;N.style.left=L+"px";N.style.top=T+"px"};var S=window.setInterval(N.Move,timespan);N.onmouseover=function(){window.clearInterval(S)};N.onmouseout=function(){S=window.setInterval(N.Move,timespan)};if(U=="True"){N.onclick=function(){window.clearInterval(S);N.style.display="none"}}if(R){V.onclick=function(){window.clearInterval(S);N.style.display="none"}}}function AdHangLeft(J,L,I,G,H){J.Move=function(){var A=parseInt(J.style.top,10);if(A+5AdConfig.Top+I){J.style.top=(A-5)+"px"}}};var K=window.setInterval(J.Move,timespan);if(G=="True"){J.onclick=function(){window.clearInterval(K);J.style.display="none"}}if(H){L.onclick=function(){window.clearInterval(K);J.style.display="none"}}}function AdHangRight(J,L,I,G,H){J.Move=function(){var A=parseInt(J.style.top,10);if(A+5AdConfig.Top+I){J.style.top=(A-5)+"px"}}};var K=window.setInterval(J.Move,timespan);if(G=="True"){J.onclick=function(){window.clearInterval(K);J.style.display="none"}}if(H){L.onclick=function(){window.clearInterval(K);J.style.display="none"}}}function AdHangBottom(H,J,F,G,I){if(G=="True"){H.onclick=function(){H.style.display="none"}}if(I){J.onclick=function(){H.style.display="none"}}}function AdPrepare(d,c,U,T,b,P,X,Z,S,W,a){if(!AdConfig){AdConfigInit()}var R=AdContent(U,b,P,X);if(T=="popup"){AdPopup(d,c,R,P,X,Z,S,W);return}var Q="";if(T=="hangB"){Q="";if(a==1){Q=Q+"
"}if(a==2){Q=Q+"
"}}else{Q="";if(a==1){Q=Q+"
"}else{if(a==2){Q=Q+"
"}}}Q=Q+R+"";document.writeln(Q);var Y=document.getElementById("adver_"+d);var V=document.getElementById("shut_"+d);switch(T){case"float":AdFloat(Y,V,P,X,Z,S,W,a);break;case"hangL":AdHangLeft(Y,V,Z,W,a);break;case"hangR":AdHangRight(Y,V,Z,W,a);break;case"hangB":AdHangBottom(Y,V,Z,W,a);break}}function AdContent(J,H,I,L){var G=H.substr(H.lastIndexOf(".")+1).toLowerCase();var K;if(G=="swf"){K="";if(J!=""){K="
"+K}else{K="
"+K}}else{K="
";if(J!=""){K=""+K+""}}return K};
(function(A){if(typeof define==="function"&&define.amd){define(A)}else{window.purl=A()}})(function(){var E={a:"href",img:"src",form:"action",base:"href",script:"src",iframe:"src",link:"href",embed:"src",object:"data"},D=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","fragment"],O={"anchor":"fragment"},A={strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/},P=/^[0-9]+$/;function F(S,R){var V=decodeURI(S),U=A[R||false?"strict":"loose"].exec(V),W={attr:{},param:{},seg:{}},T=14;while(T--){W.attr[D[T]]=U[T]||""}W.param["query"]=Q(W.attr["query"]);W.param["fragment"]=Q(W.attr["fragment"]);W.seg["path"]=W.attr.path.replace(/^\/+|\/+$/g,"").split("/");W.seg["fragment"]=W.attr.fragment.replace(/^\/+|\/+$/g,"").split("/");W.attr["base"]=W.attr.host?(W.attr.protocol?W.attr.protocol+"://"+W.attr.host:W.attr.host)+(W.attr.port?":"+W.attr.port:""):"";return W}function C(S){var R=S.tagName;if(typeof R!=="undefined"){return E[R.toLowerCase()]}return R}function I(U,R){if(U[R].length===0){return U[R]={}}var T={};for(var S in U[R]){T[S]=U[R][S]}U[R]=T;return T}function B(R,W,S,U){var V=R.shift();if(!V){if(J(W[S])){W[S].push(U)}else{if("object"==typeof W[S]){W[S]=U}else{if("undefined"==typeof W[S]){W[S]=U}else{W[S]=[W[S],U]}}}}else{var T=W[S]=W[S]||[];if("]"==V){if(J(T)){if(""!==U){T.push(U)}}else{if("object"==typeof T){T[M(T).length]=U}else{T=W[S]=[W[S],U]}}}else{if(~V.indexOf("]")){V=V.substr(0,V.length-1);if(!P.test(V)&&J(T)){T=I(W,S)}B(R,T,V,U)}else{if(!P.test(V)&&J(T)){T=I(W,S)}B(R,T,V,U)}}}}function K(V,S,T){if(~S.indexOf("]")){var R=S.split("[");B(R,V,"base",T)}else{if(!P.test(S)&&J(V.base)){var U={};for(var W in V.base){U[W]=V.base[W]}V.base=U}if(S!==""){L(V.base,S,T)}}return V}function Q(R){return N(String(R).split(/&|;/),function(W,T){try{T=decodeURIComponent(T.replace(/\+/g," "))}catch(U){}var X=T.indexOf("="),Y=G(T),S=T.substr(0,Y||X),V=T.substr(Y||X,T.length);V=V.substr(V.indexOf("=")+1,V.length);if(S===""){S=T;V=""}return K(W,S,V)},{base:{}}).base}function L(S,R,U){var T=S[R];if(typeof T==="undefined"){S[R]=U}else{if(J(T)){T.push(U)}else{S[R]=[T,U]}}}function G(T){var U=T.length,V,R;for(var S=0;S>0,U=arguments[2];while(R=0&&l0&&h<=g)){if(k){if(j==="img"){f(p.attr("src",k))}else{p.load(k,{},function(){f(p)})}}else{f(p)}n.obj=null}}})};e();d.container.bind("scroll",e)}})(jQuery);
(function (o, y, Ab) { var S = { html: false, photo: false, iframe: false, inline: false, transition: "elastic", speed: 300, fadeOut: 300, width: false, initialWidth: "600", innerWidth: false, maxWidth: false, height: false, initialHeight: "450", innerHeight: false, maxHeight: false, scalePhotos: true, scrolling: true, opacity: 0.9, preloading: true, className: false, overlayClose: true, escKey: true, arrowKey: true, top: false, bottom: false, left: false, right: false, fixed: false, data: undefined, closeButton: true, fastIframe: true, open: false, reposition: true, loop: true, slideshow: false, slideshowAuto: true, slideshowSpeed: 2500, slideshowStart: "開啟自動播放", slideshowStop: "關閉自動播放", photoRegex: /\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i, retinaImage: false, retinaUrl: false, retinaSuffix: "@2x.$1", current: T("當前") + ": {current} / {total}", previous: T("上一個") + " ", next: T("下一個") + " ", close: T("關閉"), xhrError: "加載內容失敗.", imgError: "加載圖片失敗.", returnFocus: true, trapFocus: true, onOpen: false, onLoad: false, onComplete: false, onCleanup: false, onClosed: false, rel: function () { return this.rel }, href: function () { return o(this).children("img").attr("src") }, title: function () { return this.title }, createImg: function () { var Aq = new Image(); var Ap = o(this).data("cbox-img-attrs"); if (typeof Ap === "object") { o.each(Ap, function (Ar, As) { Aq[Ar] = As }) } return Aq }, createIframe: function () { var Ap = y.createElement("iframe"); var Aq = o(this).data("cbox-iframe-attrs"); if (typeof Aq === "object") { o.each(Aq, function (Ar, As) { Ap[Ar] = As }) } if ("frameBorder" in Ap) { Ap.frameBorder = 0 } if ("allowTransparency" in Ap) { Ap.allowTransparency = "true" } Ap.name = (new Date()).getTime(); Ap.allowFullScreen = true; return Ap } }, j = "colorbox", G = "cbox", H = G + "Element", R = G + "_open", W = G + "_load", Al = G + "_complete", D = G + "_cleanup", k = G + "_closed", t = G + "_purge", Z, s, f, C, J, N, Af, w, An, F, V, Q, Ad, B, a, K, Ae, n, Ao, E, u = o(""), Aa, g, c, Ac, i, Ai, O, A, p, Aj, h, r, P = "div", Ak = 0, v = {}, q; function Ag(Ap, As, Aq) { var Ar = y.createElement(Ap); if (As) { Ar.id = G + As } if (Aq) { Ar.style.cssText = Aq } return o(Ar) } function X() { return Ab.innerHeight ? Ab.innerHeight : o(Ab).height() } function Ah(Aq, Ap) { if (Ap !== Object(Ap)) { Ap = {} } this.cache = {}; this.el = Aq; this.value = function (Ar) { var As; if (this.cache[Ar] === undefined) { As = o(this.el).attr("data-cbox-" + Ar); if (As !== undefined) { this.cache[Ar] = As } else { if (Ap[Ar] !== undefined) { this.cache[Ar] = Ap[Ar] } else { if (S[Ar] !== undefined) { this.cache[Ar] = S[Ar] } } } } return this.cache[Ar] }; this.get = function (Ar) { var As = this.value(Ar); return o.isFunction(As) ? As.call(this.el, this) : As } } function I(Ap) { var Ar = An.length, Aq = (Ai + Ap) % Ar; return (Aq < 0) ? Ar + Aq : Aq } function e(Ap, Aq) { return Math.round((/%/.test(Ap) ? ((Aq === "x" ? F.width() : X()) / 100) : 1) * parseInt(Ap, 10)) } function Am(Aq, Ap) { return Aq.get("photo") || Aq.get("photoRegex").test(Ap) } function Y(Aq, Ap) { return Aq.get("retinaUrl") && Ab.devicePixelRatio > 1 ? Ap.replace(Aq.get("photoRegex"), Aq.get("retinaSuffix")) : Ap } function L(Ap) { if ("contains" in s[0] && !s[0].contains(Ap.target) && Ap.target !== Z[0]) { Ap.stopPropagation(); s.focus() } } function U(Ap) { if (U.str !== Ap) { s.add(Z).removeClass(U.str).addClass(Ap); U.str = Ap } } function z(Ap) { Ai = 0; if (Ap && Ap !== false && Ap !== "nofollow") { An = o("." + H).filter(function () { var Aq = o.data(this, j); var Ar = new Ah(this, Aq); return (Ar.get("rel") === Ap) }); Ai = An.index(Aa.el); if (Ai === -1) { An = An.add(Aa.el); Ai = An.length - 1 } } else { An = o(Aa.el) } } function x(Ap) { o(y).trigger(Ap); u.triggerHandler(Ap) } var b = (function () { var Au, Av = G + "Slideshow_", Aw = "click." + G, As; function Ax() { clearTimeout(As) } function At() { if (Aa.get("loop") || An[Ai + 1]) { Ax(); As = setTimeout(r.next, Aa.get("slideshowSpeed")) } } function Aq() { K.html(Aa.get("slideshowStop")).unbind(Aw).one(Aw, Ap); u.bind(Al, At).bind(W, Ax); s.removeClass(Av + "off").addClass(Av + "on") } function Ap() { Ax(); u.unbind(Al, At).unbind(W, Ax); K.html(Aa.get("slideshowStart")).unbind(Aw).one(Aw, function () { r.next(); Aq() }); s.removeClass(Av + "on").addClass(Av + "off") } function Ar() { Au = false; K.hide(); Ax(); u.unbind(Al, At).unbind(W, Ax); s.removeClass(Av + "off " + Av + "on") } return function () { if (Au) { if (!Aa.get("slideshow")) { u.unbind(D, Ar); Ar() } } else { if (Aa.get("slideshow") && An[1]) { Au = true; u.one(D, Ar); if (Aa.get("slideshowAuto")) { Aq() } else { Ap() } K.show() } } } }()); function m(Au) { var Ar; if (!Aj) { Ar = o(Au).data(j); Aa = new Ah(Au, Ar); z(Aa.get("rel")); if (!A) { A = p = true; U(Aa.get("className")); s.css({ visibility: "hidden", display: "block", opacity: "" }); V = Ag(P, "LoadedContent", "width:0; height:0; overflow:hidden; visibility:hidden"); C.css({ width: "", height: "" }).append(V); g = J.height() + w.height() + C.outerHeight(true) - C.height(); c = N.width() + Af.width() + C.outerWidth(true) - C.width(); Ac = V.outerHeight(true); i = V.outerWidth(true); var Ap = e(Aa.get("initialWidth"), "x"); var Av = e(Aa.get("initialHeight"), "y"); var At = Aa.get("maxWidth"); var As = Aa.get("maxHeight"); Aa.w = (At !== false ? Math.min(Ap, e(At, "x")) : Ap) - i - c; Aa.h = (As !== false ? Math.min(Av, e(As, "y")) : Av) - Ac - g; V.css({ width: "", height: Aa.h }); r.position(); x(R); Aa.get("onOpen"); E.add(B).hide(); s.focus(); if (Aa.get("trapFocus")) { if (y.addEventListener) { y.addEventListener("focus", L, true); u.one(k, function () { y.removeEventListener("focus", L, true) }) } } if (Aa.get("returnFocus")) { u.one(k, function () { o(Aa.el).focus() }) } } var Aq = parseFloat(Aa.get("opacity")); Z.css({ opacity: Aq === Aq ? Aq : "", cursor: Aa.get("overlayClose") ? "pointer" : "", visibility: "visible" }).show(); if (Aa.get("closeButton")) { Ao.html(Aa.get("close")).appendTo(C) } else { Ao.appendTo("") } d() } } function l() { if (!s) { q = false; F = o(Ab); s = Ag(P).attr({ id: j, "class": o.support.opacity === false ? G + "IE" : "", role: "dialog", tabindex: "-1" }).hide(); Z = Ag(P, "Overlay").hide(); Ad = o([Ag(P, "LoadingOverlay")[0], Ag(P, "LoadingGraphic")[0]]); f = Ag(P, "Wrapper"); C = Ag(P, "Content").append(B = Ag(P, "Title"), a = Ag(P, "Current"), n = o('').attr({ id: G + "Previous" }), Ae = o('').attr({ id: G + "Next" }), K = Ag("button", "Slideshow"), Ad); Ao = o('').attr({ id: G + "Close" }); f.append(Ag(P).append(Ag(P, "TopLeft"), J = Ag(P, "TopCenter"), Ag(P, "TopRight")), Ag(P, false, "clear:left").append(N = Ag(P, "MiddleLeft"), C, Af = Ag(P, "MiddleRight")), Ag(P, false, "clear:left").append(Ag(P, "BottomLeft"), w = Ag(P, "BottomCenter"), Ag(P, "BottomRight"))).find("div div").css({ "float": "left" }); Q = Ag(P, false, "position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"); E = Ae.add(n).add(a).add(K) } if (y.body && !s.parent().length) { o(y.body).append(Z, s.append(f, Q)) } } function M() { function Ap(Aq) { if (!(Aq.which > 1 || Aq.shiftKey || Aq.altKey || Aq.metaKey || Aq.ctrlKey)) { Aq.preventDefault(); m(this) } } if (s) { if (!q) { q = true; Ae.click(function () { r.next() }); n.click(function () { r.prev() }); Ao.click(function () { r.close() }); Z.click(function () { if (Aa.get("overlayClose")) { r.close() } }); o(y).bind("keydown." + G, function (Ar) { var Aq = Ar.keyCode; if (A && Aa.get("escKey") && Aq === 27) { Ar.preventDefault(); r.close() } if (A && Aa.get("arrowKey") && An[1] && !Ar.altKey) { if (Aq === 37) { Ar.preventDefault(); n.click() } else { if (Aq === 39) { Ar.preventDefault(); Ae.click() } } } }); if (o.isFunction(o.fn.on)) { o(y).on("click." + G, "." + H, Ap) } else { o("." + H).live("click." + G, Ap) } } return true } return false } if (o[j]) { return } o(l); r = o.fn[j] = o[j] = function (Aq, Ap) { var Ar; var As = this; Aq = Aq || {}; if (o.isFunction(As)) { As = o(""); Aq.open = true } if (!As[0]) { return As } l(); if (M()) { if (Ap) { Aq.onComplete = Ap } As.each(function () { var At = o.data(this, j) || {}; o.data(this, j, o.extend(At, Aq)) }).addClass(H); Ar = new Ah(As[0], Aq); if (Ar.get("open")) { m(As[0]) } } return As }; r.position = function (At, Ay) { var As, Av = 0, Aw = 0, Aq = s.offset(), Au, Ax; F.unbind("resize." + G); s.css({ top: -90000, left: -90000 }); Au = F.scrollTop(); Ax = F.scrollLeft(); if (Aa.get("fixed")) { Aq.top -= Au; Aq.left -= Ax; s.css({ position: "fixed" }) } else { Av = Au; Aw = Ax; s.css({ position: "absolute" }) } if (Aa.get("right") !== false) { Aw += Math.max(F.width() - Aa.w - i - c - e(Aa.get("right"), "x"), 0) } else { if (Aa.get("left") !== false) { Aw += e(Aa.get("left"), "x") } else { Aw += Math.round(Math.max(F.width() - Aa.w - i - c, 0) / 2) } } if (Aa.get("bottom") !== false) { Av += Math.max(X() - Aa.h - Ac - g - e(Aa.get("bottom"), "y"), 0) } else { if (Aa.get("top") !== false) { Av += e(Aa.get("top"), "y") } else { Av += Math.round(Math.max(X() - Aa.h - Ac - g, 0) / 2) } } s.css({ top: Aq.top, left: Aq.left, visibility: "visible" }); f[0].style.width = f[0].style.height = "9999px"; function Ap() { J[0].style.width = w[0].style.width = C[0].style.width = (parseInt(s[0].style.width, 10) - c) + "px"; C[0].style.height = N[0].style.height = Af[0].style.height = (parseInt(s[0].style.height, 10) - g) + "px" } As = { width: Aa.w + i + c, height: Aa.h + Ac + g, top: Av, left: Aw }; if (At) { var Ar = 0; o.each(As, function (Az) { if (As[Az] !== v[Az]) { Ar = At; return } }); At = Ar } v = As; if (!At) { s.css(As) } s.dequeue().animate(As, { duration: At || 0, complete: function () { Ap(); p = false; f[0].style.width = (Aa.w + i + c) + "px"; f[0].style.height = (Aa.h + Ac + g) + "px"; if (Aa.get("reposition")) { setTimeout(function () { F.bind("resize." + G, r.position) }, 1) } if (o.isFunction(Ay)) { Ay() } }, step: Ap }) }; r.resize = function (Aq) { var Ap; if (A) { Aq = Aq || {}; if (Aq.width) { Aa.w = e(Aq.width, "x") - i - c } if (Aq.innerWidth) { Aa.w = e(Aq.innerWidth, "x") } V.css({ width: Aa.w }); if (Aq.height) { Aa.h = e(Aq.height, "y") - Ac - g } if (Aq.innerHeight) { Aa.h = e(Aq.innerHeight, "y") } if (!Aq.innerHeight && !Aq.height) { Ap = V.scrollTop(); V.css({ height: "auto" }); Aa.h = V.height() } V.css({ height: Aa.h }); if (Ap) { V.scrollTop(Ap) } r.position(Aa.get("transition") === "none" ? 0 : Aa.get("speed")) } }; r.prep = function (Ar) { if (!A) { return } var Ap, Aq = Aa.get("transition") === "none" ? 0 : Aa.get("speed"); V.remove(); V = Ag(P, "LoadedContent").append(Ar); function At() { Aa.w = Aa.w || V.width(); Aa.w = Aa.mw && Aa.mw < Aa.w ? Aa.mw : Aa.w; if (Aa.w < 250) { Aa.w = 250 } return Aa.w } function As() { Aa.h = Aa.h || V.height(); Aa.h = Aa.mh && Aa.mh < Aa.h ? Aa.mh : Aa.h; return Aa.h } V.hide().appendTo(Q.show()).css({ width: At(), overflow: Aa.get("scrolling") ? "auto" : "hidden" }).css({ height: As() }).prependTo(C); Q.hide(); o(O).css({ "float": "none" }); U(Aa.get("className")); Ap = function () { var Av = An.length, Au, Ax; if (!A) { return } function Aw() { if (o.support.opacity === false) { s[0].style.removeAttribute("filter") } } Ax = function () { clearTimeout(h); Ad.hide(); x(Al); Aa.get("onComplete") }; B.html(Aa.get("title")).show(); V.show(); if (Av > 1) { if (typeof Aa.get("current") === "string") { a.html(Aa.get("current").replace("{current}", Ai + 1).replace("{total}", Av)).show() } Ae[(Aa.get("loop") || Ai < Av - 1) ? "show" : "hide"]().html(Aa.get("next")); n[(Aa.get("loop") || Ai) ? "show" : "hide"]().html(Aa.get("previous")); b(); if (Aa.get("preloading")) { o.each([I(-1), I(1)], function () { var AB, Ay = An[this], Az = new Ah(Ay, o.data(Ay, j)), AA = Az.get("href"); if (AA && Am(Az, AA)) { AA = Y(Az, AA); AB = y.createElement("img"); AB.src = AA } }) } } else { E.hide() } if (Aa.get("iframe")) { Au = Aa.get("createIframe"); if (!Aa.get("scrolling")) { Au.scrolling = "no" } o(Au).attr({ src: Aa.get("href"), "class": G + "Iframe" }).one("load", Ax).appendTo(V); u.one(t, function () { Au.src = "http://about:blank" }); if (Aa.get("fastIframe")) { o(Au).trigger("load") } } else { Ax() } if (Aa.get("transition") === "fade") { s.fadeTo(Aq, 1, Aw) } else { Aw() } }; if (Aa.get("transition") === "fade") { s.fadeTo(Aq, 0, function () { r.position(0, Ap) }) } else { r.position(Aq, Ap) } }; function d() { var Ap, Au, Ar = r.prep, As, Aq = ++Ak; p = true; O = false; x(t); x(W); Aa.get("onLoad"); Aa.h = Aa.get("height") ? e(Aa.get("height"), "y") - Ac - g : Aa.get("innerHeight") && e(Aa.get("innerHeight"), "y"); Aa.w = Aa.get("width") ? e(Aa.get("width"), "x") - i - c : Aa.get("innerWidth") && e(Aa.get("innerWidth"), "x"); Aa.mw = Aa.w; Aa.mh = Aa.h; if (Aa.get("maxWidth")) { Aa.mw = e(Aa.get("maxWidth"), "x") - i - c; Aa.mw = Aa.w && Aa.w < Aa.mw ? Aa.w : Aa.mw } if (Aa.get("maxHeight")) { Aa.mh = e(Aa.get("maxHeight"), "y") - Ac - g; Aa.mh = Aa.h && Aa.h < Aa.mh ? Aa.h : Aa.mh } Ap = Aa.get("href"); h = setTimeout(function () { Ad.show() }, 100); if (Aa.get("inline")) { var At = o(Ap); As = o("").hide().insertBefore(At); u.one(t, function () { As.replaceWith(At) }); Ar(At) } else { if (Aa.get("iframe")) { Ar(" ") } else { if (Aa.get("html")) { Ar(Aa.get("html")) } else { if (Am(Aa, Ap)) { Ap = Y(Aa, Ap); O = Aa.get("createImg"); o(O).addClass(G + "Photo").bind("error", function () { Ar(Ag(P, "Error").html(Aa.get("imgError"))) }).one("load", function () { if (Aq !== Ak) { return } setTimeout(function () { var Av; if (Aa.get("retinaImage") && Ab.devicePixelRatio > 1) { O.height = O.height / Ab.devicePixelRatio; O.width = O.width / Ab.devicePixelRatio } if (Aa.get("scalePhotos")) { Au = function () { O.height -= O.height * Av; O.width -= O.width * Av }; if (Aa.mw && O.width > Aa.mw) { Av = (O.width - Aa.mw) / O.width; Au() } if (Aa.mh && O.height > Aa.mh) { Av = (O.height - Aa.mh) / O.height; Au() } } if (Aa.h) { O.style.marginTop = Math.max(Aa.mh - O.height, 0) / 2 + "px" } if (An[1] && (Aa.get("loop") || An[Ai + 1])) { O.style.cursor = "pointer"; O.onclick = function () { r.next() } } O.style.width = O.width + "px"; O.style.height = O.height + "px"; Ar(O) }, 1) }); O.src = Ap } else { if (Ap) { Q.load(Ap, Aa.get("data"), function (Aw, Av) { if (Aq === Ak) { Ar(Av === "error" ? Ag(P, "Error").html(Aa.get("xhrError")) : o(this).contents()) } }) } } } } } } r.next = function () { if (!p && An[1] && (Aa.get("loop") || An[Ai + 1])) { Ai = I(1); m(An[Ai]) } }; r.prev = function () { if (!p && An[1] && (Aa.get("loop") || Ai)) { Ai = I(-1); m(An[Ai]) } }; r.close = function () { if (A && !Aj) { Aj = true; A = false; x(D); Aa.get("onCleanup"); F.unbind("." + G); Z.fadeTo(Aa.get("fadeOut") || 0, 0); s.stop().fadeTo(Aa.get("fadeOut") || 0, 0, function () { s.hide(); Z.hide(); x(t); V.remove(); setTimeout(function () { Aj = false; Aa.get("onClosed") }, 1) }) } }; r.remove = function () { if (!s) { return } s.stop(); o[j].close(); s.stop(false, true).remove(); Z.remove(); Aj = false; s = null; o("." + H).removeData(j).removeClass(H); o(y).unbind("click." + G).unbind("keydown." + G) }; r.element = function () { return o(Aa.el) }; r.settings = S }(jQuery, document, window));
Validator={Require:/.+/,Email:/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,Phone:/^((\(\d{2,3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}(\-\d{1,4})?$/,Mobile:/^1[3457869]\d{9}$/,Url:/^http:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/,IdCard:"this.IsIdCard(value)",Currency:/^\d+(\.\d+)?$/,Number:/^\d+$/,Zip:/^\d{6}$/,QQ:/^[1-9]\d{4,11}$/,Integer:/^[-\+]?\d+$/,Double:/^[-\+]?\d+(\.\d+)?$/,English:/^[A-Za-z]+$/,Chinese:/^[\u0391-\uFFE5]+$/,Username:/^[a-z]\w{3,}$/i,UnSafe:/^(([A-Z]*|[a-z]*|\d*|[-_\~!@#\$%\^&\*\.\(\)\[\]\{\}<>\?\\\/\'\"]*)|.{0,5})$|\s/,IsSafe:function(A){return !this.UnSafe.test(A)},SafeString:"this.IsSafe(value)",Filter:"this.DoFilter(value, getAttribute('accept'))",Limit:"this.limit(value.length,getAttribute('min'), getAttribute('max'))",LimitB:"this.limit(this.LenB(value), getAttribute('min'), getAttribute('max'))",Date:"this.IsDate(value, getAttribute('min'), getAttribute('format'))",Repeat:"value == document.getElementsByName(getAttribute('to'))[0].value",Range:"getAttribute('min') < (value|0) && (value|0) < getAttribute('max')",Compare:"this.compare(value,getAttribute('operator'),getAttribute('to'))",Custom:"this.Exec(value, getAttribute('regexp'))",Group:"this.MustChecked(getAttribute('name'), getAttribute('min'), getAttribute('max'))",ErrorItem:[document.forms[0]],ErrorMessage:[T("以下原因導致提交失敗")+":\t\t\t\t"],Validate:function(theForm,mode){var obj=theForm||event.srcElement;var count=obj.elements.length;this.ErrorMessage.length=1;this.ErrorItem.length=1;this.ErrorItem[0]=obj;for(var i=0;i(((\n)|(.))*)$/)).test(value)){this.AddError(i,getAttribute("msgHtml"));this.ClearState(obj.elements[i])}else{var _dataType=getAttribute("dataType");if(typeof(_dataType)=="object"||typeof(this[_dataType])=="undefined"){continue}this.ClearState(obj.elements[i]);if(getAttribute("require")=="false"&&value==""){continue}switch(_dataType){case"IdCard":case"Date":case"Repeat":case"Range":case"Compare":case"Custom":case"Group":case"Limit":case"LimitB":case"SafeString":case"Filter":if(!eval(this[_dataType])){this.AddError(i,getAttribute("msg"))}break;default:if(!this[_dataType].test(value)){this.AddError(i,getAttribute("msg"))}else{if(getAttribute("allowHtml")=="1"&&(new RegExp(/^(((\n)|(.))*)<(((\n)|(.))*)>(((\n)|(.))*)$/)).test(value)){this.AddError(i,getAttribute("msgHtml"))}}break}}}}if(this.ErrorMessage.length>1){mode=mode||1;var errCount=this.ErrorItem.length;switch(mode){case 2:for(var i=1;iB);case"GreaterThanEqual":return(A>=B);case"LessThan":return(A=0;B--){if(C[B].checked){E++}}return A<=E&&E<=F},DoFilter:function(A,B){return new RegExp("^.+.(?=EXT)(EXT)$".replace(/EXT/g,B.split(/\s*,\s*/).join("|")),"gi").test(A)},IsIdCard:function(A){var I,D;var H="10x98765432";var G=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2];var C=["","","","","","","","","","","","北京","天津","河北","山西","內蒙古","","","","","","遼寧","吉林","黑龍江","","","","","","","","上海","江蘇","浙江","安微","福建","江西","山東","","","","河南","湖北","湖南","廣東","廣西","海南","","","","重慶","四川","貴州","云南","西藏","","","","","","","陜西","甘肅","青海","寧夏","新疆","","","","","","臺灣","","","","","","","","","","香港","澳門","","","","","","","","","國外"];var B=A.match(/^(\d{2})\d{4}(((\d{2})(\d{2})(\d{2})(\d{3}))|((\d{4})(\d{2})(\d{2})(\d{3}[x\d])))$/i);if(B==null){return false}if(B[1]>=C.length||C[B[1]]==""){return false}if(B[2].length==12){D=A.substr(0,17);I=[B[9],B[10],B[11]].join("-")}else{D=A.substr(0,6)+"19"+A.substr(6);I=["19"+B[4],B[5],B[6]].join("-")}if(!this.IsDate(I,"ymd")){return false}var E=0;for(var F=0;F<=16;F++){E+=D.charAt(F)*G[F]}D+=H.charAt(E%11);return(A.length==15||A.length==18&&A==D)},IsDate:function(G,F){F=F||"ymd";var E,D,A,B;switch(F){case"ymd":E=G.match(new RegExp("^((\\d{4})|(\\d{2}))([-./])(\\d{1,2})\\4(\\d{1,2})$"));if(E==null){return false}B=E[6];A=E[5]*1;D=(E[2].length==4)?E[2]:C(parseInt(E[3],10));break;case"dmy":E=G.match(new RegExp("^(\\d{1,2})([-./])(\\d{1,2})\\2((\\d{4})|(\\d{2}))$"));if(E==null){return false}B=E[1];A=E[3]*1;D=(E[5].length==4)?E[5]:C(parseInt(E[6],10));break;default:break}if(!parseInt(A)){return false}A=A==0?12:A;var H=new Date(D,A-1,B);return(typeof(H)=="object"&&D==H.getFullYear()&&A==(H.getMonth()+1)&&B==H.getDate());function C(I){return((I<30?"20":"19")+I)|0}}};