").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});
/* jQuery Validation Plugin*/
!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 < arguments.length; D++) { if (void 0 !== arguments[D]) { return arguments[D] } } return void 0 }, defaultMessage: function (D, E) { return this.findDefined(this.customMessage(D.name, E), this.customDataMessage(D, E), !this.settings.ignoreTitle && D.title || void 0, C.validator.messages[E], "
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(A,B){if(typeof define==="function"&&define.amd){define(B)}else{if(typeof exports==="object"){module.exports=B()}else{A.NProgress=B()}}})(this,function(){var F={};F.version="0.1.6";var L=F.settings={minimum:0.08,easing:"ease",positionUsing:"",speed:200,trickle:true,trickleRate:0.02,trickleSpeed:800,showSpinner:true,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};F.configure=function(N){var M,O;for(M in N){O=N[M];if(O!==undefined&&N.hasOwnProperty(M)){L[M]=O}}return this};F.status=null;F.set=function(N){var O=F.isStarted();N=K(N,L.minimum,1);F.status=(N===1?null:N);var P=F.render(!O),Q=P.querySelector(L.barSelector),M=L.speed,R=L.easing;P.offsetWidth;D(function(S){if(L.positionUsing===""){L.positionUsing=F.getPositioningCSS()}C(Q,B(N,M,R));if(N===1){C(P,{transition:"none",opacity:1});P.offsetWidth;setTimeout(function(){C(P,{transition:"all "+M+"ms linear",opacity:0});setTimeout(function(){F.remove();S()},M)},M)}else{setTimeout(S,M)}});return this};F.isStarted=function(){return typeof F.status==="number"};F.start=function(){if(!F.status){F.set(0)}var M=function(){setTimeout(function(){if(!F.status){return}F.trickle();M()},L.trickleSpeed)};if(L.trickle){M()}return this};F.done=function(M){if(!M&&!F.status){return this}return F.inc(0.3+0.5*Math.random()).set(1)};F.inc=function(N){var M=F.status;if(!M){return F.start()}else{if(typeof N!=="number"){N=(1-M)*K(Math.random()*M,0.1,0.95)}M=K(M+N,0,0.994);return F.set(M)}};F.trickle=function(){return F.inc(Math.random()*L.trickleRate)};(function(){var M=0,N=0;F.promise=function(O){if(!O||O.state()=="resolved"){return this}if(N==0){F.start()}M++;N++;O.always(function(){N--;if(N==0){M=0;F.done()}else{F.set((M-N)/M)}});return this}})();F.render=function(N){if(F.isRendered()){return document.getElementById("nprogress")}I(document.documentElement,"nprogress-busy");var O=document.createElement("div");O.id="nprogress";O.innerHTML=L.template;var P=O.querySelector(L.barSelector),M=N?"-100":G(F.status||0),R=document.querySelector(L.parent),Q;C(P,{transition:"all 0 linear",transform:"translate3d("+M+"%,0,0)"});if(!L.showSpinner){Q=O.querySelector(L.spinnerSelector);Q&&J(Q)}if(R!=document.body){I(R,"nprogress-custom-parent")}R.appendChild(O);return O};F.remove=function(){E(document.documentElement,"nprogress-busy");E(document.querySelector(L.parent),"nprogress-custom-parent");var M=document.getElementById("nprogress");M&&J(M)};F.isRendered=function(){return !!document.getElementById("nprogress")};F.getPositioningCSS=function(){var N=document.body.style;var M=("WebkitTransform" in N)?"Webkit":("MozTransform" in N)?"Moz":("msTransform" in N)?"ms":("OTransform" in N)?"O":"";if(M+"Perspective" in N){return"translate3d"}else{if(M+"Transform" in N){return"translate"}else{return"margin"}}};function K(N,M,O){if(N
O){return O}return N}function G(M){return(-1+M)*100}function B(N,M,O){var P;if(L.positionUsing==="translate3d"){P={transform:"translate3d("+G(N)+"%,0,0)"}}else{if(L.positionUsing==="translate"){P={transform:"translate("+G(N)+"%,0)"}}else{P={"margin-left":G(N)+"%"}}}P.transition="all "+M+"ms "+O;return P}var D=(function(){var N=[];function M(){var O=N.shift();if(O){O(M)}}return function(O){N.push(O);if(N.length==1){M()}}})();var C=(function(){var O=["Webkit","O","Moz","ms"],M={};function P(S){return S.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(T,U){return U.toUpperCase()})}function N(U){var V=document.body.style;if(U in V){return U}var T=O.length,W=U.charAt(0).toUpperCase()+U.slice(1),S;while(T--){S=O[T]+W;if(S in V){return S}}return U}function R(S){S=P(S);return M[S]||(M[S]=N(S))}function Q(U,S,T){S=R(S);U.style[S]=T}return function(V,S){var W=arguments,T,U;if(W.length==2){for(T in S){U=S[T];if(U!==undefined&&S.hasOwnProperty(T)){Q(V,T,U)}}}else{Q(V,W[1],W[2])}}})();function H(O,M){var N=typeof O=="string"?O:A(O);return N.indexOf(" "+M+" ")>=0}function I(O,N){var P=A(O),M=P+N;if(H(P,N)){return}O.className=M.substring(1)}function E(O,N){var P=A(O),M;if(!H(O,N)){return}M=P.replace(" "+N+" "," ");O.className=M.substring(1,M.length-1)}function A(M){return(" "+(M.className||"")+" ").replace(/\s+/gi," ")}function J(M){M&&M.parentNode&&M.parentNode.removeChild(M)}return F});function iColorShow(E,B){var G=jQuery("#"+B).position();jQuery("#iColorPicker").css({"top":G.top+(jQuery("#"+E).outerHeight())+"px","left":(G.left)+"px","position":"absolute"}).fadeIn("fast");var H=jQuery("#"+E).val();jQuery("#colorPreview span").text(H);jQuery("#colorPreview").css("background",H);jQuery("#color").val(H);var C=jQuery("#iColorPicker");for(i=0;i | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
|
').appendTo("body");jQuery("table.pickerTable td").css({"width":"12px","height":"14px","border":"1px solid #000","cursor":"pointer"});jQuery("#iColorPicker table.pickerTable").css({"border-collapse":"collapse"});jQuery("#iColorPicker").css({"border":"1px solid #ccc","background":"#333","padding":"5px","color":"#fff","z-index":9999})}jQuery("#colorPreview").css({"height":"50px"});jQuery(this).after('")})};this.iColorPicker.init=function(){jQuery(function(){iColorPicker();jQuery(document).mousedown(function(A){var B=$(A.target);if(!B.is("#colorPreview")&&!jQuery(B).parents("#colorPreview").length){jQuery("#iColorPicker").fadeOut()}})})};function hexInvert(E){var C=E.length;if(C!=7){return"#ffffff"}var B=parseInt(E.substr(1,2),16);var A=parseInt(E.substr(3,2),16);var D=parseInt(E.substr(5,2),16);return 0.212671*B+0.71516*16+0.072169*D<50?"#ffffff":"#000000"}function BindInput(A){A.change(function(){A.css({background:A.val(),color:hexInvert(A.val())})});A.click(function(){iColorShow(this.id,"icp_"+this.id)});A.change()}(function(A){if(typeof define==="function"&&define.amd){define(["jquery"],A)}else{A(jQuery)}}(function(G){var B=[],D=G(document),F=navigator.userAgent.toLowerCase(),C=G(window),E=[];var A={ieQuirks:null,msie:/msie/.test(F)&&!/opera/.test(F),opera:/opera/.test(F)};A.ie6=A.msie&&/msie 6./.test(F)&&typeof window["XMLHttpRequest"]!=="object";A.ie7=A.msie&&/msie 7.0/.test(F);G.modal=function(I,H){return G.modal.impl.init(I,H)};G.modal.close=function(){G.modal.impl.close()};G.modal.focus=function(H){G.modal.impl.focus(H)};G.modal.setContainerDimensions=function(){G.modal.impl.setContainerDimensions()};G.modal.setPosition=function(){G.modal.impl.setPosition()};G.modal.update=function(H,I){G.modal.impl.update(H,I)};G.fn.modal=function(H){return G.modal.impl.init(this,H)};G.modal.defaults={appendTo:"body",focus:true,opacity:50,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataId:"simplemodal-data",dataCss:{},minHeight:null,minWidth:null,maxHeight:null,maxWidth:null,autoResize:false,autoPosition:true,zIndex:1000,close:true,closeHTML:'',closeClass:"simplemodal-close",escClose:true,overlayClose:false,fixed:true,position:null,persist:false,modal:true,onOpen:null,onShow:null,onClose:null,title:""};G.modal.impl={d:{},init:function(J,I){var H=this;if(H.d.data){return false}A.ieQuirks=A.msie&&!G.support.boxModel;H.o=G.extend({},G.modal.defaults,I);H.zIndex=H.o.zIndex;H.occb=false;if(typeof J==="object"){J=J instanceof G?J:G(J);H.d.placeholder=false;if(J.parent().parent().size()>0){J.before(G("").attr("id","simplemodal-placeholder").css({display:"none"}));H.d.placeholder=true;H.display=J.css("display");if(!H.o.persist){H.d.orig=J.clone(true)}}}else{if(typeof J==="string"||typeof J==="number"){J=G("").html(J)}else{alert("SimpleModal Error: Unsupported data type: "+typeof J);return H}}H.create(J);J=null;H.open();if(G.isFunction(H.o.onShow)){H.o.onShow.apply(H,[H.d])}return H},create:function(I){var H=this;H.getDimensions();if(H.o.modal&&A.ie6){H.d.iframe=G('').css(G.extend(H.o.iframeCss,{display:"none",opacity:0,position:"fixed",height:E[0],width:E[1],zIndex:H.o.zIndex,top:0,left:0})).appendTo(H.o.appendTo)}H.d.overlay=G("").attr("id",H.o.overlayId).addClass("simplemodal-overlay").css(G.extend(H.o.overlayCss,{display:"none",opacity:H.o.opacity/100,height:H.o.modal?B[0]:0,width:H.o.modal?B[1]:0,position:"fixed",left:0,top:0,zIndex:H.o.zIndex+1})).appendTo(H.o.appendTo);if(H.o.title&&H.o.title.length>0){H.d.head=G(""+H.o.title+"
").attr("id","simplemodal-head").addClass("simplemodal-head").css(G.extend({position:H.o.fixed?"fixed":"absolute"},{display:"none",zIndex:H.o.zIndex+2})).appendTo(H.o.appendTo)}H.d.container=G("").attr("id",H.o.containerId).addClass("simplemodal-container").css(G.extend({position:H.o.fixed?"fixed":"absolute"},H.o.containerCss,{display:"none",zIndex:H.o.zIndex+3})).append(H.o.close&&H.o.closeHTML?G(H.o.closeHTML).addClass(H.o.closeClass):"").appendTo(H.o.appendTo);H.d.wrap=G("").attr("tabIndex",-1).addClass("simplemodal-wrap").css({height:"100%",outline:0,width:"100%",position:"relative",top:"0",left:"0"}).appendTo(H.d.container);H.d.data=I.attr("id",I.attr("id")||H.o.dataId).addClass("simplemodal-data").css(G.extend(H.o.dataCss,{display:"none"}));I=null;H.setContainerDimensions();H.d.data[0].style.height="100%";H.d.data[0].style.width="100%";if(H.d.data[0].style.height==""){H.d.data[0].childNodes[0].height="100%";H.d.data[0].childNodes[0].width="100%"}H.d.data.appendTo(H.d.wrap);if(A.ie6||A.ieQuirks){H.fixIE()}},bindEvents:function(){var H=this;G("."+H.o.closeClass).bind("click.simplemodal",function(I){I.preventDefault();H.close()});if(H.o.modal&&H.o.close&&H.o.overlayClose){H.d.overlay.bind("click.simplemodal",function(I){I.preventDefault();H.close()})}D.bind("keydown.simplemodal",function(I){if(H.o.modal&&I.keyCode===9){H.watchTab(I)}else{if((H.o.close&&H.o.escClose)&&I.keyCode===27){I.preventDefault();H.close()}}});C.bind("resize.simplemodal orientationchange.simplemodal",function(){H.getDimensions();H.o.autoResize?H.setContainerDimensions():H.o.autoPosition&&H.setPosition();if(A.ie6||A.ieQuirks){H.fixIE()}else{if(H.o.modal){H.d.iframe&&H.d.iframe.css({height:E[0],width:E[1]});H.d.overlay.css({height:B[0],width:B[1]})}}})},unbindEvents:function(){G("."+this.o.closeClass).unbind("click.simplemodal");D.unbind("keydown.simplemodal");C.unbind(".simplemodal");this.d.overlay.unbind("click.simplemodal")},fixIE:function(){var H=this,I=H.o.position;G.each([H.d.iframe||null,!H.o.modal?null:H.d.overlay,H.d.container.css("position")==="fixed"?H.d.container:null],function(M,a){if(a){var Z="document.body.clientHeight",Y="document.body.clientWidth",T="document.body.scrollHeight",U="document.body.scrollLeft",Q="document.body.scrollTop",S="document.body.scrollWidth",P="document.documentElement.clientHeight",V="document.documentElement.clientWidth",O="document.documentElement.scrollLeft",X="document.documentElement.scrollTop",J=a[0].style;J.position="absolute";if(M<2){try{J.removeExpression("height");J.removeExpression("width");J.setExpression("height",""+T+" > "+Z+" ? "+T+" : "+Z+' + "px"');J.setExpression("width",""+S+" > "+Y+" ? "+S+" : "+Y+' + "px"')}catch(R){}}else{var K,N;if(I&&I.constructor===Array){var W=I[0]?typeof I[0]==="number"?I[0].toString():I[0].replace(/px/,""):a.css("top").replace(/px/,"");K=W.indexOf("%")===-1?W+" + (t = "+X+" ? "+X+" : "+Q+') + "px"':parseInt(W.replace(/%/,""))+" * (("+P+" || "+Z+") / 100) + (t = "+X+" ? "+X+" : "+Q+') + "px"';if(I[1]){var L=typeof I[1]==="number"?I[1].toString():I[1].replace(/px/,"");N=L.indexOf("%")===-1?L+" + (t = "+O+" ? "+O+" : "+U+') + "px"':parseInt(L.replace(/%/,""))+" * (("+V+" || "+Y+") / 100) + (t = "+O+" ? "+O+" : "+U+') + "px"'}}else{K="("+P+" || "+Z+") / 2 - (this.offsetHeight / 2) + (t = "+X+" ? "+X+" : "+Q+') + "px"';N="("+V+" || "+Y+") / 2 - (this.offsetWidth / 2) + (t = "+O+" ? "+O+" : "+U+') + "px"'}try{J.removeExpression("top");J.removeExpression("left");J.setExpression("top",K);J.setExpression("left",N)}catch(R){}}}})},focus:function(J){var H=this,I=J&&G.inArray(J,["first","last"])!==-1?J:"first";var K=G(":input:enabled:visible:"+I,H.d.wrap);setTimeout(function(){K.length>0?K.focus():H.d.wrap.focus()},10)},getDimensions:function(){var I=this,H=typeof window.innerHeight==="undefined"?C.height():window.innerHeight;B=[D.height(),D.width()];E=[H,C.width()]},getVal:function(I,H){return I?(typeof I==="number"?I:I==="auto"?0:I.indexOf("%")>0?((parseInt(I.replace(/%/,""))/100)*(H==="h"?E[0]:E[1])):parseInt(I.replace(/px/,""))):null},update:function(H,J){var I=this;if(!I.d.data){return false}I.d.origHeight=I.getVal(H,"h");I.d.origWidth=I.getVal(J,"w");I.d.data.hide();H&&I.d.container.css("height",H);J&&I.d.container.css("width",J);I.setContainerDimensions();I.d.data.show();I.o.focus&&I.focus();I.unbindEvents();I.bindEvents()},setContainerDimensions:function(){var K=this,Q=A.ie6||A.ie7;var M=K.d.origHeight?K.d.origHeight:A.opera?K.d.container.height():K.getVal(Q?K.d.container[0].currentStyle["height"]:K.d.container.css("height"),"h"),R=K.d.origWidth?K.d.origWidth:A.opera?K.d.container.width():K.getVal(Q?K.d.container[0].currentStyle["width"]:K.d.container.css("width"),"w"),P=K.d.data.outerHeight(true),I=K.d.data.outerWidth(true);K.d.origHeight=K.d.origHeight||M;K.d.origWidth=K.d.origWidth||R;var J=K.o.maxHeight?K.getVal(K.o.maxHeight,"h"):null,N=K.o.maxWidth?K.getVal(K.o.maxWidth,"w"):null,L=J&&JL){M=L}else{if(K.o.minHeight&&O!=="auto"&&PL?L:MS){R=S}else{if(K.o.minWidth&&H!=="auto"&&IS?S:RM-2||I>R-2)?"auto":"visible"});K.o.autoPosition&&K.setPosition()},setPosition:function(){var I=this,L,J,M=(E[0]/2)-(I.d.container.outerHeight(true)/2),H=(E[1]/2)-(I.d.container.outerWidth(true)/2),K=I.d.container.css("position")!=="fixed"?C.scrollTop():0;if(I.d.head){M=(E[0]/2)-((I.d.container.outerHeight(true)+I.d.head.outerHeight(true))/2)}if(I.o.position&&Object.prototype.toString.call(I.o.position)==="[object Array]"){L=K+(I.o.position[0]||M);J=I.o.position[1]||H}else{L=K+M;J=H}if(I.d.head){I.d.head.css({left:J,top:L});I.d.container.css({left:J,top:L+I.d.head.outerHeight(true)})}else{I.d.container.css({left:J,top:L})}},watchTab:function(H){var I=this;if(G(H.target).parents(".simplemodal-container").length>0){I.inputs=G(":input:enabled:visible:first, :input:enabled:visible:last",I.d.data[0]);if((!H.shiftKey&&H.target===I.inputs[I.inputs.length-1])||(H.shiftKey&&H.target===I.inputs[0])||I.inputs.length===0){H.preventDefault();var J=H.shiftKey?"last":"first";I.focus(J)}}else{H.preventDefault();I.focus()}},open:function(){var H=this;H.d.iframe&&H.d.iframe.show();if(G.isFunction(H.o.onOpen)){H.o.onOpen.apply(H,[H.d])}else{H.d.overlay.show();if(H.d.head){H.d.head.show()}H.d.container.show();H.d.data.show()}H.o.focus&&H.focus();H.bindEvents()},close:function(){var H=this;if(!H.d.data){return false}H.unbindEvents();if(G.isFunction(H.o.onClose)&&!H.occb){H.occb=true;H.o.onClose.apply(H,[H.d])}else{if(H.d.placeholder){var I=G("#simplemodal-placeholder");if(H.o.persist){I.replaceWith(H.d.data.removeClass("simplemodal-data").css("display",H.display))}else{H.d.data.hide().remove();I.replaceWith(H.d.orig)}}else{H.d.data.hide().remove()}if(H.d.head){H.d.head.hide().remove()}H.d.container.hide().remove();H.d.overlay.hide();H.d.iframe&&H.d.iframe.hide().remove();H.d.overlay.remove();H.d={}}}}}));(function(){function B(E,F){return E===F||E.valueOf()===F.valueOf()}function A(E,F){return E===F?0:E==null?-1:F==null?1:typeof E=="string"?E.toString().localeCompare(F.toString()):E.valueOf()-F.valueOf()}function C(){return !0}function D(E){return E}Array.prototype.select=Array.prototype.map||function(F,H){var E,I,G;for(H=H||window,E=[],I=this.length,G=0;G0){if(F(this[E],E,this)){return this[E]}}return G==null?null:G},Array.prototype.union=function(E){return this.concat(E).distinct()},Array.prototype.intersect=function(F,E){return E=E||B,this.distinct(E).where(function(G){return F.contains(G,E)})},Array.prototype.except=function(I,E){var G,J,F,K,H;for(I instanceof Array||(I=[I]),E=E||B,G=this.length,J=[],F=0;F0;){if(E(this[F],I[K])===!0){H=!0;break}}H||J.push(this[F])}return J},Array.prototype.distinct=function(F){for(var E=[],G=this.length,H=0;H0;){if(this[E]===F){return E}}return -1},Array.prototype.remove=function(E){var F=this.indexOf(E);F!=-1&&this.splice(F,1)},Array.prototype.removeAll=function(F){for(var G,E=0;(G=this.first(F))!=null;){E++,this.remove(G)}return E},Array.prototype.orderBy=function(F,E){E=E||A;var G=this.slice(0),H=function(J,I){return E(F(J),F(I))};return G.thenBy=function(J,I){return I=I||A,G.orderBy(D,function(L,K){var M=H(L,K);return M===0?I(J(L),J(K)):M})},G.thenByDescending=function(J,I){return I=I||A,G.orderBy(D,function(L,K){var M=H(L,K);return M===0?-I(J(L),J(K)):M})},G.sort(H)},Array.prototype.orderByDescending=function(E,F){return F=F||A,this.orderBy(E,function(H,G){return -F(H,G)})},Array.prototype.innerJoin=function(H,E,F,I,J){J=J||B;var G=[];return this.forEach(function(K){H.where(function(L){return J(E(K),F(L))}).forEach(function(L){G.push(I(K,L))})}),G},Array.prototype.groupJoin=function(G,E,F,H,I){return I=I||B,this.select(function(J){var K=E(J);return{outer:J,inner:G.where(function(L){return I(K,F(L))}),key:K}}).select(function(J){return J.inner.key=J.key,H(J.outer,J.inner)})},Array.prototype.groupBy=function(E,F){var H=[],G=this.length,K,I,J;for(F=F||B,E=E||D,K=0;K0;){(G=F(this[E]),G!=null&&G!="")&&(I[G]=H(this[E]))}return I},Array.prototype.aggregate=Array.prototype.reduce||function(F,H){var E=this.slice(0),I=this.length,G;for(H==null&&(H=E.shift()),G=0;G0;){F(this[E])0;){F(this[E])>G&&(G=F(this[E]))}return G},Array.prototype.sum=function(F){F=F||D;for(var E=this.length,G=0;E-->0;){G+=F(this[E])}return G},Array.prototype.where=Array.prototype.filter||function(F,H){var E,I,G;for(H=H||window,E=[],I=this.length,G=0;G0}while(H-->0){if(I.call(J,this[H],H,this)===!0){return !0}}return !1};return E.apply(this,[F,G])},Array.prototype.all=function(F,G){G=G||window,F=F||C;var E=this.every||function(H,I){return this.length==this.where(H,I).length};return E.apply(this,[F,G])},Array.prototype.takeWhile=function(F){var H,E,G;for(F=F||C,H=this.length,E=[],G=0;G0;){if(E(this[F],G)===!0){return !0}}return !1},Array.prototype.forEach=Array.prototype.forEach||function(F,H){var E,G;for(H=H||window,E=this.length,G=0;G0;){E.push(F++)}return E}})();
(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(E){var D="createTouch" in document||"ontouchstart" in E||0,H=document.documentElement||document.getElementsByTagName("html")[0],A="WebkitTransition" in H.style||"MsTransition" in H.style||"MozTransition" in H.style||"OTransition" in H.style||"transition" in H.style||0,F=D?"touchstart":"mousedown",G=D?"touchmove":"mousemove",B=D?"touchend":"mouseup",C=function(K){this.opt=this.parse_args(K),this.container=this.$(this.opt.id);try{if("ul"==this.container.nodeName.toLowerCase()?(this.element=this.container,this.container=this.element.parentNode):this.element=this.container.getElementsByTagName("ul")[0],"undefined"==typeof this.element){throw new Error('Can\'t find "ul"')}for(var I=0;IO;O++){new RegExp("(?:^|\\s+)"+N+"(?:\\s+|$)").test(K[O].className)&&J.push(K[O])}return J},isIE:function(){return !-[1]},css:function(){var K=function(N){var L,M;switch(N){case"float":return"cssFloat" in document.body.style?"cssFloat":"styleFloat";case"opacity":return"opacity" in document.body.style?"opacity":{get:function(Q,O){var P=O.filter;return P&&P.indexOf("opacity")>=0&&parseFloat(P.match(/opacity=([^)]*)/i)[1])/100+""||"1"},set:function(P,O){P.style.filter="alpha(opacity="+100*O+")",P.style.zoom=1}};default:for(L=N.split("-"),M=1;M=this.length?0:this.opt.auto,!(this.length<2)){switch(this.opt.direction){case"up":this.direction="up",this.vertical=!0;break;case"down":this.direction="down",this.vertical=!0;break;case"right":this.direction="right",this.vertical=!1;break;default:this.direction="left",this.vertical=!1}this.resize(),this.begin(),this.addListener(this.element,F,this.bind(this._start,this),!1),this.addListener(document,G,this.bind(this._move,this),!1),this.addListener(document,B,this.bind(this._end,this),!1),this.addListener(this.element,"webkitTransitionEnd",this.bind(this._transitionend,this),!1),this.addListener(this.element,"msTransitionEnd",this.bind(this._transitionend,this),!1),this.addListener(this.element,"oTransitionEnd",this.bind(this._transitionend,this),!1),this.addListener(this.element,"transitionend",this.bind(this._transitionend,this),!1),this.addListener(E,"resize",this.bind(function(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(this.bind(this.resize,this),100)},this),!1),this.addListener(this.element,"mousewheel",this.bind(this.mouseScroll,this),!1),this.addListener(this.element,"DOMMouseScroll",this.bind(this.mouseScroll,this),!1)}},resize:function(){var J,I;for(this.css(this.container,{overflow:"hidden",visibility:"hidden",listStyle:"none",position:"relative"}),this.width=this.container.clientWidth-parseInt(this.css(this.container,"padding-left"))-parseInt(this.css(this.container,"padding-right")),J={position:"relative",webkitTransitionDuration:"0ms",MozTransitionDuration:"0ms",msTransitionDuration:"0ms",OTransitionDuration:"0ms",transitionDuration:"0ms"},this.vertical?(J["height"]=this.height*this.length+"px",J["top"]=-this.height*this.index+"px",this.css(this.container,{height:this.height+"px"})):(J["width"]=this.width*this.length+"px",J["left"]=-this.width*this.index+"px"),this.css(this.element,J),I=0;IS?this.length-1:S>=this.length?0:S,Q="undefined"==typeof Q?this.opt.speed:parseInt(Q),T=this.element,U=null,K=T.style,L=this,I=0,J=parseInt(K[R])||0,O=-S*this[V]-J,P=Math.abs(O)I&&!A?(I++,K[R]=Math.ceil(M(I,J,O,P))+"px",U=setTimeout(N,10)):(K[R]=-L[V]*S+"px",L.index=S,A||L._transitionend(),L.pause(),L.begin())},K.WebkitTransition=K.MozTransition=K.msTransition=K.OTransition=K.transition=R+" "+10*P+"ms "+this.opt.fx,this.opt.before.call(this,S,this.slides[this.index]),N()},begin:function(){return this.timer||this.opt.auto<0?!0:(this.timer=setTimeout(this.bind(function(){"left"==this.direction||"up"==this.direction?this.next():this.prev()},this),this.opt.timeout),this.status=1,void 0)},pause:function(){clearInterval(this.timer),this.timer=null,this.status=2},stop:function(){this.pause(),this.index=0,this.slide(0),this.status=0},prev:function(J){J="undefined"==typeof J?J=1:J%this.length;var I=J>this.index?this.length+this.index-J:this.index-J;this.slide(I)},next:function(I){"undefined"==typeof I&&(I=1),this.slide((this.index+I)%this.length)},_start:function(J){this.touching||this.preventDefault(J),this.element.onclick=null,this.startPos=this.getMousePoint(J);var I=this.element.style;I.webkitTransitionDuration=I.MozTransitionDuration=I.msTransitionDuration=I.OTransitionDuration=I.transitionDuration="0ms",this.scrolling=1,this.startTime=new Date},_move:function(M){var K,L,I,J,N;!this.scrolling||M.touches&&M.touches.length>1||M.scale&&1!==M.scale||(K=this.vertical?"top":"left",L=this.vertical?"height":"width",I=this.vertical?"y":"x",J=this.vertical?"x":"y",this.endPos=this.getMousePoint(M),N=this.endPos[I]-this.startPos[I],2===this.scrolling||Math.abs(N)>=Math.abs(this.endPos[J]-this.startPos[J])?(this.preventDefault(M),this.pause(),N/=!this.index&&N>0||this.index==this.length-1&&0>N?Math.abs(N)/this[L]+1:1,this.element.style[K]=-this.index*this[L]+N+"px",0!=N&&(this.scrolling=2)):this.scrolling=0)},_end:function(){if("undefined"!=typeof this.scrolling){try{var K=this.vertical?"y":"x",L=this.vertical?"height":"width",I=this.endPos[K]-this.startPos[K];2===this.scrolling&&(this.element.onclick=new Function("return false;"))}catch(J){I=0}(new Date-this.startTime<250&&Math.abs(I)>0.1*this[L]||Math.abs(I)>this[L]/2)&&(0>I&&this.index+10&&this.index>0)?I>0?this.prev():this.next():this.slide(this.index),delete this.scrolling,delete this.startPos,delete this.endPos,delete this.startTime,this.opt.auto>=0&&this.begin()}},mouseScroll:function(I){if(this.opt.mouseWheel){this.preventDefault(I),I=I||E.event;var J=I.wheelDelta||I.detail&&-1*I.detail||0;J/Math.abs(J),J>0?this.next():this.prev()}},_transitionend:function(){this.opt.after.call(this,this.index,this.slides[this.index])}},E.TouchSlider=C}(window,void 0);
/* JsRender v1.0.0-beta: http://github.com/BorisMoore/jsrender and http://jsviews.com/jsviews
informal pre V1.0 commit counter: 60 */
(function(Af,AE,AJ){function X(b,c){for(var a in c.props){E.test(a)&&(b[a]=c.props[a])}}function L(a){return a}function T(a){return a}function U(a){Ab._dbgMode=a;C=a?"Unavailable (nested view): use #getIndex()":"";j("dbg",Aj.dbg=F.dbg=a?T:L)}function B(a){this.name=(Ac.link?"JsViews":"JsRender")+" Error";this.message=a||this.name}function AR(b,c){for(var a in c){b[a]=c[a]}return b}function AT(a){return typeof a=="function"}function m(b,c,a){return(!AL.rTag||b)&&(AA=b?b.charAt(0):AA,AD=b?b.charAt(1):AD,Ae=c?c.charAt(0):Ae,AC=c?c.charAt(1):AC,K=a||K,b="\\"+AA+"(\\"+K+")?\\"+AD,c="\\"+Ae+"\\"+AC,At="(?:(?:(\\w+(?=[\\/\\s\\"+Ae+"]))|(?:(\\w+)?(:)|(>)|!--((?:[^-]|-(?!-))*)--|(\\*)))\\s*((?:[^\\"+Ae+"]|\\"+Ae+"(?!\\"+AC+"))*?)",AL.rTag=At+")",At=new RegExp(b+At+"(\\/)?|(?:\\/(\\w+)))"+c,"g"),AP=new RegExp("<.*>|([^\\\\]|^)[{}]|"+b+".*"+c)),[AA,AD,Ae,AC,K]}function AK(h,d){d||(d=h,h=AJ);var a,k,i,g,c=this,b=!d||d==="root";if(h){if(g=c.type===d?c:AJ,!g){if(a=c.views,c._.useKey){for(k in a){if(g=a[k].get(h,d)){break}}}else{for(k=0,i=a.length;!g&&k0){try{a=f.nodeType>0?f:!AP.test(f)&&AE&&AE(Af.document).find(f)[0]}catch(c){}return a&&(f=Ah[b=b||a.getAttribute(Y)],f||(b=b||"_"+Ak++,a.setAttribute(Y,b),f=Ah[b]=Aw(b,a.innerHTML,k,e)),a=AJ),f}}var d,a;return i=i||"",d=g(i),e=e||(i.markup?i:{}),e.tmplName=b,k&&(e._parentTmpl=k),!d&&i.markup&&(d=g(i.markup))&&d.fn&&(d.debug!==i.debug||d.allowCode!==i.allowCode)&&(d=d.markup),d!==AJ?(b&&!k&&(N[b]=function(){return i.render.apply(i,arguments)}),d.fn||i.fn?d.fn&&(i=b&&b!==d.tmplName?AQ(e,d):d):(i=As(d,e),M(d.replace(Ao,"\\$&"),i)),J(e),i):void 0}function Am(a){function b(d,c){this.tgt=a.getTgt(d,c)}return AT(a)&&(a={getTgt:a}),a.baseMap&&(a=AR(AR({},a.baseMap),a)),a.map=function(d,c){return new b(d,c)},a}function As(b,f){var a,d=Ab.wrapMap||{},c=AR({markup:b,tmpls:[],links:{},tags:{},bnds:[],_is:"template",render:AF},f);return f.htmlTag||(a=Al.exec(b),c.htmlTag=a?a[1].toLowerCase():""),a=d[c.htmlTag],a&&a!==d.div&&(c.markup=Ac.trim(c.markup)),c}function Z(a,b){function c(g,i,f){var n,o,k,p;if(g&&typeof g=="object"&&!g.nodeType&&!g.markup&&!g.getTgt){for(k in g){c(k,g[k],i)}return z}return i===AJ&&(i=g,g=AJ),g&&""+g!==g&&(f=i,i=g,g=AJ),p=f?f[d]=f[d]||{}:c,o=b.compile,i===null?g&&delete p[g]:(i=o?i=o(g,i,f):i,g&&(p[g]=i)),o&&i&&(i._is=a),i&&(n=AL.onStore[a])&&n(g,i,o),i}var d=a+"s";z[d]=c;Ad[a]=b}function W(b,d,a){var c=this.jquery&&(this[0]||AO('Unknown template: "'+this.selector+'"')),e=c.getAttribute(Y);return AF.call(e?Ah[e]:Ah(c),b,d,a)}function R(b,c,a){if(Ab._dbgMode){try{return b.fn(c,a,z)}catch(d){return AO(d,a)}}return b.fn(c,a,z)}function AF(b,h,a,c,k,d){var g=this;return !c&&g.fn._nvw&&!Ac.isArray(b)?R(g,b,{tmpl:g}):AI.call(g,b,h,a,c,k,d)}function AI(AW,u,A3,A0,AX,A4){var A7,A8,A1,AY,b,A2,a,e,g,A5,i,AU,AV,A9,AZ=this,A6="";if(!!u===u&&(A3=u,u=AJ),AX===!0&&(a=!0,AX=0),AZ.tag?(e=AZ,AZ=AZ.tag,A5=AZ._,AU=AZ.tagName,AV=A5.tmpl||e.tmpl,A9=AZ.attr&&AZ.attr!==Ag,u=AQ(u,AZ.ctx),g=e.content,e.props.link===!1&&(u=u||{},u.link=!1),A0=A0||e.view,AW=arguments.length?AW:A0):AV=AZ,AV&&(!A0&&AW&&AW._is==="view"&&(A0=AW),A0&&(g=g||A0.content,A4=A4||A0._.onRender,AW===A0&&(AW=A0.data),u=AQ(u,A0.ctx)),A0&&A0.type!=="top"||((u=u||{}).root=AW),AV.fn||(AV=Ah[AV]||Ah(AV)),AV)){if(A4=(u&&u.link)!==!1&&!A9&&A4,i=A4,A4===!0&&(i=AJ,A4=A0._.onRender),u=AV.helpers?AQ(AV.helpers,u):u,Ac.isArray(AW)&&!A3){for(AY=a?A0:AX!==AJ&&A0||new AS(u,"array",A0,AW,AV,AX,g,A4),A7=0,A8=AW.length;A7f-Bc&&(Bc=A9.slice(Bc,f+1),o=AD+":"+Bc+" onerror=''"+Ae,n=A0[o],n||(A0[o]=!0,A0[o]=n=M(o,AV||k,!0),n.paths.push({_jsvOb:n})),n!==!0&&(g||k).push({_jsvOb:n}))),AX?(AX=!A6,AX?u:'"'):d?(d=!Bd,d?u:'"'):(y?(AU++,h[AU]=f++,y):"")+(A4?AU?"":(AZ=A9.slice(AZ,f),A2?(A2=A1=g=!1,"\b"):"\b,")+AZ+(AZ=f+u.length,k&&w.push(k=[]),"\b"):A5?(AU&&AM(AW),k&&w.pop(),A2=c,A1=v,AZ=f+u.length,v&&(k=w[A2]=[]),c+":"):c?c.split("^").join(".").replace(Au,A3)+(p?(l[++AU]=!0,c.charAt(0)!=="."&&(h[AU]=f),s?"":p):Ba):Ba?Ba:i?(l[AU--]=!1,i)+(p?(l[++AU]=!0,p):""):t?(l[AU]||AM(AW),","):A7?"":(AX=A6,d=Bd,'"'))}AM(AW)}var A2,g,A1,d,AX,k=w&&w[0],AZ=0,A0=AV?AV.links:k&&(k.links=k.links||{}),l={},h={0:-1},AU=0;return(AW+(AV?" ":"")).replace(/\)\^/g,").").replace(Ap,AY)}function D(Bm,Bi,Bd){var Bf,Br,b,Bo,Bs,Bp,l,Bc,AV,A0,A1,Bh,Be,i,AW,AZ,Bg,AY,Ba,AU,Bk,A5,A3,Bt,AX,A7,A4,Bl,Bq,A2,A6,Bn=0,Bj="",A8={},A9=Bm.length;for(""+Bi===Bi?(Ba=Bd?'data-link="'+Bi.replace(G," ").slice(1,-1)+'"':Bi,Bi=0):(Ba=Bi.tmplName||"unnamed",Bi.allowCode&&(A8.allowCode=!0),Bi.debug&&(A8.debug=!0),Bh=Bi.bnds,AY=Bi.tmpls),Bf=0;Bf":Bo+b):(A5&&(AU=As(A3,A8),AU.tmplName=Ba+"/"+b,D(A5,AU),AY.push(AU)),A7||(Bk=b,AX=Bj,Bj=""),Bt=Bm[Bf+1],Bt=Bt&&Bt[0]==="else"),A2=Bq?";\ntry{\nret+=":"\n+",AW="",AZ="",A4&&(Be||A6||Bo&&Bo!==Ag)){if(Bl="return {"+Bs+"};",Bg='c("'+Bo+'",view,',Bl=new Function("data,view,j,u"," // "+Ba+" "+Bn+" "+b+"\n"+Bl),Bl._er=Bq,AW=Bg+Bn+",",AZ=")",Bl._tag=b,Bd){return Bl}x(Bl,Be);A1=!0}if(Bj+=A4?(Bd?(Bq?"\ntry{\n":"")+"return ":A2)+(A1?(A1=AJ,A0=AV=!0,Bg+(Be?(Bh[Bn-1]=Bl,Bn):"{"+Bs+"}")+")"):b===">"?(l=!0,"h("+i[0]+")"):(Bc=!0,"((v="+i[0]+')!=null?v:"")')):(A0=Bp=!0,"\n{view:view,tmpl:"+(A5?AY.length:"0")+","+Bs+"},"),Bk&&!Bt){if(Bj="["+Bj.slice(0,-1)+"]",Bg='t("'+Bk+'",view,this,',Bd||Be){if(Bj=new Function("data,view,j,u"," // "+Ba+" "+Bn+" "+Bk+"\nreturn "+Bj+";"),Bj._er=Bq,Bj._tag=b,Be&&x(Bh[Bn-1]=Bj,Be),Bd){return Bj}AW=Bg+Bn+",undefined,";AZ=")"}Bj=AX+A2+Bg+(Bn||Bj)+")";Be=0;Bk=0}Bq&&(A0=!0,Bj+=";\n}catch(e){ret"+(Bd?"urn ":"+=")+AW+"j._err(e,view,"+Bq+")"+AZ+";}\n"+(Bd?"":"ret=ret"))}}}Bj="// "+Ba+"\nvar v"+(Bp?",t=j._tag":"")+(AV?",c=j._cnvt":"")+(l?",h=j.converters.html":"")+(Bd?";\n":',ret=""\n')+(A8.debug?"debugger;":"")+Bj+(Bd?"\n":";\nreturn ret;");try{Bj=new Function("data,view,j,u",Bj)}catch(Bb){AM("Compiled template code:\n\n"+Bj+'\n: "'+Bb.message+'"')}return Bi&&(Bi.fn=Bj),A0||(Bj._nvw=!0),Bj}function AQ(a,b){return a&&a!==b?b?AR(AR({},b),a):a:b&&AR({},b)}function H(a){return Q[a]||(Q[a]="&#"+a.charCodeAt(0)+";")}function AN(b){var a,d,c=[];if(typeof b=="object"){for(a in b){d=b[a],d&&d.toJSON&&!d.toJSON()||AT(d)||c.push({key:a,prop:d})}}return c}function Az(a){return a!=null?AH.test(a)&&(""+a).replace(AG,H)||a:""}if((!AE||!AE.render)&&!Af.jsviews){var Ac,A,At,AP,C,AA="{",AD="{",Ae="}",AC="}",K="^",Au=/^(!*?)(?:null|true|false|\d[\d.]*|([\w$]+|\.|~([\w$]+)|#(view|([\w$]+))?)([\w$.^]*?)(?:[.[^]([\w$]+)\]?)?)$/g,Ap=/(\()(?=\s*\()|(?:([([])\s*)?(?:(\^?)(!*?[#~]?[\w$.^]+)?\s*((\+\+|--)|\+|-|&&|\|\||===|!==|==|!=|<=|>=|[<>%*:?\/]|(=))\s*|(!*?[#~]?[\w$.^]+)([([])?)|(,\s*)|(\(?)\\?(?:(')|("))|(?:\s*(([)\]])(?=\s*\.|\s*\^|\s*$)|[)\]])([([]?))|(\s+)/g,G=/[ \t]*(\r\n|\n|\r)/g,Ai=/\\(['"])/g,Ao=/['"\\]/g,Aq=/(?:\x08|^)(onerror:)?(?:(~?)(([\w$]+):)?([^\x08]+))\x08(,)?([^\x08]+)/gi,AB=/^if\s/,Al=/<(\w+)[>\s]/,AH=/[\x00`><\"'&]/,E=/^on[A-Z]|^convert(Back)?$/,AG=/[\x00`><"'&]/g,Ak=0,O=0,Q={"&":"&","<":"<",">":">","\x00":"�","'":"'",'"':""","`":"`"},Ag="html",Y="data-jsv-tmpl",N={},Ad={template:{compile:Aw},tag:{compile:S},helper:{},converter:{}},z={jsviews:"v1.0.0-beta",settings:function(a){AR(Ab,a);U(Ab._dbgMode);Ab.jsv&&Ab.jsv()},sub:{View:AS,Err:B,tmplFn:M,cvt:I,parse:Av,extend:AR,syntaxErr:AM,onStore:{},_lnk:L,_ths:X},map:Am,_cnvt:q,_tag:V,_err:AO};(B.prototype=new Error).constructor=B;Ax.depends=function(){return[this.get("item"),"index"]};Ar.depends=function(){return["index"]};AS.prototype={get:AK,getIndex:Ar,getRsc:Aa,hlp:P,_is:"view"};for(A in Ad){Z(A,Ad[A])}var Ah=z.templates,F=z.converters,Aj=z.helpers,j=z.tags,AL=z.sub,Ab=z.settings;AE?(Ac=AE,Ac.fn.render=W,Ac.observable&&(AR(AL,Ac.views.sub),z.map=Ac.views.map)):(Ac=Af.jsviews={},Ac.isArray=Array&&Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"});Ac.render=N;Ac.views=z;Ac.templates=Ah=z.templates;Ab({debugMode:U,delimiters:m,onError:function(b,c,a){return c&&(b=a===AJ?"{Error: "+b+"}":AT(a)?a(b,c):a),b==AJ?"":b},_dbgMode:!0});j({"else":function(){},"if":{render:function(a){var b=this;return b.rendering.done||!a&&(arguments.length||!b.tagCtx.index)?"":(b.rendering.done=!0,b.selected=b.tagCtx.index,b.tagCtx.render(b.tagCtx.view,!0))},onUpdate:function(b,d,a){for(var c,g,e=0;(c=this.tagCtxs[e])&&c.args.length;e++){if(c=c.args[0],g=!c!=!a[e].args[0],!this.convert&&!!c||g){return g}}return !1},flow:!0},"for":{render:function(b){var h,g=this,a=g.tagCtx,d="",c=0;return g.rendering.done||((h=!arguments.length)&&(b=a.view.data),b!==AJ&&(d+=a.render(b,h),c+=Ac.isArray(b)?b.length:1),(g.rendering.done=c)&&(g.selected=a.index)),d},flow:!0},include:{flow:!0},"*":{render:L,flow:!0}});j("props",{baseTag:j["for"],dataMap:Am(AN)});F({html:Az,attr:Az,url:function(a){return a!=AJ?encodeURI(""+a):a===null?a:""}});m()}})(this,this.jQuery);
var browser={versions:function(){var A=navigator.userAgent.toLowerCase();return{mobile:!!A.match(/AppleWebKit.*Mobile.*/)||!!A.match(/AppleWebKit/),android:A.indexOf("android")>-1||A.indexOf("linux")>-1,iphone:A.indexOf("iphone")>-1||A.indexOf("mac")>-1,}}(),language:(navigator.browserLanguage||navigator.language).toLowerCase()};var PAGEINDEX=2;function loadmore(B,A){$.ajax({type:"get",dataType:"json",url:B+"&pageIndex="+PAGEINDEX,success:function(C){$(".loading").hide();PAGEINDEX=C.page;$(A).append(C.html);if(!C.hasmore){$(".btn-more").hide()}}});$(".loading").show()}$(".arrdiv_btn").css("top",$(".swipe").height()/2-20);var hideScroll=function(){$("html,body").css("overflowY","hidden")};var showScroll=function(){$("html,body").css("overflowY","")};var btnCancel=function(A){$(tablesDiv).css("bottom","-100%");fullbg.style.opacity="0";showScroll();setTimeout(function(){$(shadeDiv).remove()},100)};var btnClick=function(A){window.btnCancel(A);var B=$(linkRow).data("type");if(B=="phone"||B=="sms"){CallSmsOrPhone(A)}};var CallSmsOrPhone=function(A){};function showtip(B){var H,E,F;H=300;E=80;F="#336699";var D=document.createElement("div");D.setAttribute("id","alertmsgDiv");D.setAttribute("align","center");D.style.background="white";D.style.border="1px solid "+F;D.style.position="absolute";D.style.left="55%";D.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";D.style.marginLeft="-225px";var G=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;D.style.top=G+(window.screen.availHeight/2)-150+"px";D.style.width=H+"px";D.style.height=E+"px";D.style.textAlign="center";D.style.lineHeight="25px";D.style.zIndex="10001";document.body.appendChild(D);var C=document.createElement("h4");C.setAttribute("id","alertmsgTitle");C.setAttribute("align","left");C.style.margin="0";C.style.padding="3px";C.style.background=F;C.style.filter="progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);";C.style.opacity="0.75";C.style.border="1px solid "+F;C.style.height="18px";C.style.font="12px Verdana, Geneva, Arial, Helvetica, sans-serif";C.style.color="white";C.innerHTML="Tips";document.getElementById("alertmsgDiv").appendChild(C);var A=document.createElement("p");A.setAttribute("id","msgTxt");A.style.margin="16px 0";A.innerHTML=B;document.getElementById("alertmsgDiv").appendChild(A);window.setTimeout("closetip()",3000)}function closetip(){document.getElementById("alertmsgDiv").removeChild(document.getElementById("alertmsgTitle"));document.body.removeChild(document.getElementById("alertmsgDiv"))}$(function(){$("#logoTel").on("click",function(A){CallSmsOrPhone(A)});$("#BottomPhone").click(function(D){var B=$(this);var K=B.attr("href").split(",");if(K!="undefined"&&K.length>1){D.preventDefault();hideScroll();var B=$(this);var K=B.attr("href").split(",");var L=[];for(var M=0;M1){D.preventDefault();hideScroll();var L=[];for(var M=0;M1){D.preventDefault();hideScroll();var L=[];for(var M=0;M=2){var C=A[1]}var E=F.find("img").attr("height");$(B).find("img").css("width","100%").height(E)})});
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}}};
(function (A) {
A.fn.scrollLoading = function (D) {
var E = {
attr: "data-url",
container: A(window),
callback: A.noop
};
var B = A.extend({},
E, D || {});
B.cache = [];
A(this).each(function () {
var G = this.nodeName.toLowerCase(),
I = A(this).attr(B.attr);
var H = {
obj: A(this),
tag: G,
url: I
};
B.cache.push(H)
});
var F = function (G) {
if (A.isFunction(B.callback)) {
B.callback.call(G.get(0))
}
};
var C = function () {
var G = B.container.height();
if (B.container.get(0) === window) {
contop = A(window).scrollTop()
} else {
contop = B.container.offset().top
}
A.each(B.cache,
function (L, I) {
var J = I.obj,
M = I.tag,
N = I.url,
K, H;
if (J) {
K = J.offset().top - contop;
if (K > G) {
K = K - G;
}
H = K + J.height();
if ((K >= 0 && K < G) || (H > 0 && H <= G)) {
if (N) {
if (M === "img") {
F(J.attr("src", N))
} else {
J.load(N, {},
function () {
F(J)
})
}
} else {
F(J)
}
I.obj = null
}
}
})
};
C();
B.container.bind("scroll", C)
}
})(jQuery);