function swiperAnimateCache(t) {
for (j = 0; j < t.slides.length; j++) for (allBoxes = t.slides[j].querySelectorAll(".ani"), i = 0; i < allBoxes.length; i++) allBoxes[i].attributes.style ? allBoxes[i].setAttribute("swiper-animate-style-cache", allBoxes[i].attributes.style.value) : allBoxes[i].setAttribute("swiper-animate-style-cache", " "), allBoxes[i].style.visibility = "hidden"
}
function swiperAnimate(t) {
clearSwiperAnimate(t);
var e = t.slides[t.activeIndex].querySelectorAll(".ani");
for (i = 0; i < e.length; i++) e[i].style.visibility = "visible", effect = e[i].attributes["swiper-animate-effect"] ? e[i].attributes["swiper-animate-effect"].value : "", e[i].className = e[i].className + " " + effect + " animated", style = e[i].attributes.style.value, duration = e[i].attributes["swiper-animate-duration"] ? e[i].attributes["swiper-animate-duration"].value : "", duration && (style = style + "animation-duration:" + duration + ";-webkit-animation-duration:" + duration + ";"), delay = e[i].attributes["swiper-animate-delay"] ? e[i].attributes["swiper-animate-delay"].value : "", delay && (style = style + "animation-delay:" + delay + ";-webkit-animation-delay:" + delay + ";"), e[i].setAttribute("style", style)
}
function clearSwiperAnimate(t) {
for (j = 0; j < t.slides.length; j++) for (allBoxes = t.slides[j].querySelectorAll(".ani"), i = 0; i < allBoxes.length; i++) allBoxes[i].attributes["swiper-animate-style-cache"] && allBoxes[i].setAttribute("style", allBoxes[i].attributes["swiper-animate-style-cache"].value), allBoxes[i].style.visibility = "hidden", allBoxes[i].className = allBoxes[i].className.replace("animated", " "), allBoxes[i].attributes["swiper-animate-effect"] && (effect = allBoxes[i].attributes["swiper-animate-effect"].value, allBoxes[i].className = allBoxes[i].className.replace(effect, " "))
}!
function(ct) {
ct.fn.slide = function(ot) {
return ct.fn.slide.defaults = {
type: "slide",
effect: "fade",
autoPlay: !1,
delayTime: 500,
interTime: 2500,
triggerTime: 150,
defaultIndex: 0,
titCell: ".hd li",
mainCell: ".bd",
targetCell: null,
trigger: "mouseover",
scroll: 1,
vis: 1,
titOnClassName: "on",
autoPage: !1,
prevCell: ".prev",
nextCell: ".next",
pageStateCell: ".pageState",
opp: !1,
pnLoop: !0,
easing: "swing",
startFun: null,
endFun: null,
switchLoad: null,
playStateCell: ".playState",
mouseOverStop: !0,
defaultPlay: !0,
returnDefault: !1
}, this.each(function() {
var e = ct.extend({}, ct.fn.slide.defaults, ot),
t = ct(this),
n = e.effect,
s = ct(e.prevCell, t),
r = ct(e.nextCell, t),
l = ct(e.pageStateCell, t),
i = ct(e.playStateCell, t),
o = (N = ct(e.titCell, t)).size(),
c = ct(e.mainCell, t),
u = c.children().size(),
d = e.switchLoad,
f = ct(e.targetCell, t),
p = parseInt(e.defaultIndex),
h = parseInt(e.delayTime),
a = parseInt(e.interTime);
parseInt(e.triggerTime);
var m, g = parseInt(e.scroll),
v = parseInt(e.vis),
w = "false" != e.autoPlay && 0 != e.autoPlay,
y = "false" != e.opp && 0 != e.opp,
b = "false" != e.autoPage && 0 != e.autoPage,
_ = "false" != e.pnLoop && 0 != e.pnLoop,
x = "false" != e.mouseOverStop && 0 != e.mouseOverStop,
k = "false" != e.defaultPlay && 0 != e.defaultPlay,
j = "false" != e.returnDefault && 0 != e.returnDefault,
C = 0,
S = 0,
T = 0,
q = 0,
I = e.easing,
V = null,
$ = null,
M = null,
P = e.titOnClassName,
E = N.index(t.find("." + P)),
O = p = -1 == E ? p : E,
A = p,
B = p,
D = v <= u ? 0 != u % g ? u % g : g : 0,
F = "leftMarquee" == n || "topMarquee" == n,
Q = function() {
ct.isFunction(e.startFun) && e.startFun(p, o, t, ct(e.titCell, t), c, f, s, r)
},
W = function() {
ct.isFunction(e.endFun) && e.endFun(p, o, t, ct(e.titCell, t), c, f, s, r)
},
H = function() {
N.removeClass(P), k && N.eq(A).addClass(P)
};
if ("menu" == e.type) return k && N.removeClass(P).eq(p).addClass(P), N.hover(function() {
m = ct(this).find(e.targetCell);
var t = N.index(ct(this));
$ = setTimeout(function() {
switch (p = t, N.removeClass(P).eq(p).addClass(P), Q(), n) {
case "fade":
m.stop(!0, !0).animate({
opacity: "show"
}, h, I, W);
break;
case "slideDown":
m.stop(!0, !0).animate({
height: "show"
}, h, I, W)
}
}, e.triggerTime)
}, function() {
switch (clearTimeout($), n) {
case "fade":
m.animate({
opacity: "hide"
}, h, I);
break;
case "slideDown":
m.animate({
height: "hide"
}, h, I)
}
}), void(j && t.hover(function() {
clearTimeout(M)
}, function() {
M = setTimeout(H, h)
}));
if (0 == o && (o = u), F && (o = 2), b) {
if (v <= u) if ("leftLoop" == n || "topLoop" == n) o = 0 != u % g ? 1 + (0 ^ u / g) : u / g;
else {
var L = u - v;
(o = 1 + parseInt(0 != L % g ? L / g + 1 : L / g)) <= 0 && (o = 1)
} else o = 1;
N.html("");
var R = "";
if (1 == e.autoPage || "true" == e.autoPage) for (var z = 0; z < o; z++) R += "
" + (z + 1) + "";
else for (z = 0; z < o; z++) R += e.autoPage.replace("$", z + 1);
N.html(R);
var N = N.children()
}
if (v <= u) {
c.children().each(function() {
ct(this).width() > T && (T = ct(this).width(), S = ct(this).outerWidth(!0)), ct(this).height() > q && (q = ct(this).height(), C = ct(this).outerHeight(!0))
});
var U = c.children(),
Z = function() {
for (var t = 0; t < v; t++) U.eq(t).clone().addClass("clone").appendTo(c);
for (t = 0; t < D; t++) U.eq(u - t - 1).clone().addClass("clone").prependTo(c)
};
switch (n) {
case "fold":
c.css({
position: "relative",
width: S,
height: C
}).children().css({
position: "absolute",
width: T,
left: 0,
top: 0,
display: "none"
});
break;
case "top":
c.wrap('').css({
top: -p * g * C,
position: "relative",
padding: "0",
margin: "0"
}).children().css({
height: q
});
break;
case "left":
c.wrap('').css({
width: u * S,
left: -p * g * S,
position: "relative",
overflow: "hidden",
padding: "0",
margin: "0"
}).children().css({
float: "left",
width: T
});
break;
case "leftLoop":
case "leftMarquee":
Z(), c.wrap('').css({
width: (u + v + D) * S,
position: "relative",
overflow: "hidden",
padding: "0",
margin: "0",
left: -(D + p * g) * S
}).children().css({
float: "left",
width: T
});
break;
case "topLoop":
case "topMarquee":
Z(), c.wrap('').css({
height: (u + v + D) * C,
position: "relative",
padding: "0",
margin: "0",
top: -(D + p * g) * C
}).children().css({
height: q
})
}
}
var G = function(t) {
var e = t * g;
return t == o ? e = u : -1 == t && 0 != u % g && (e = -u % g), e
},
J = function(i) {
var t = function(t) {
for (var e = t; e < v + t; e++) i.eq(e).find("img[" + d + "]").each(function() {
var t = ct(this);
if (t.attr("src", t.attr(d)).removeAttr(d), c.find(".clone")[0]) for (var e = c.children(), i = 0; i < e.size(); i++) e.eq(i).find("img[" + d + "]").each(function() {
ct(this).attr(d) == t.attr("src") && ct(this).attr("src", ct(this).attr(d)).removeAttr(d)
})
})
};
switch (n) {
case "fade":
case "fold":
case "top":
case "left":
case "slideDown":
t(p * g);
break;
case "leftLoop":
case "topLoop":
t(D + G(B));
break;
case "leftMarquee":
case "topMarquee":
var e = "leftMarquee" == n ? c.css("left").replace("px", "") : c.css("top").replace("px", ""),
a = "leftMarquee" == n ? S : C,
s = D;
if (0 != e % a) {
var r = Math.abs(0 ^ e / a);
s = 1 == p ? D + r : D + r - 1
}
t(s)
}
},
K = function(t) {
if (!k || O != p || t || F) {
if (F ? 1 <= p ? p = 1 : p <= 0 && (p = 0) : o <= (B = p) ? p = 0 : p < 0 && (p = o - 1), Q(), null != d && J(c.children()), f[0] && (m = f.eq(p), null != d && J(f), "slideDown" == n ? (f.not(m).stop(!0, !0).slideUp(h), m.slideDown(h, I, function() {
c[0] || W()
})) : (f.not(m).stop(!0, !0).hide(), m.animate({
opacity: "show"
}, h, function() {
c[0] || W()
}))), v <= u) switch (n) {
case "fade":
c.children().stop(!0, !0).eq(p).animate({
opacity: "show"
}, h, I, function() {
W()
}).siblings().hide();
break;
case "fold":
c.children().stop(!0, !0).eq(p).animate({
opacity: "show"
}, h, I, function() {
W()
}).siblings().animate({
opacity: "hide"
}, h, I);
break;
case "top":
c.stop(!0, !1).animate({
top: -p * g * C
}, h, I, function() {
W()
});
break;
case "left":
c.stop(!0, !1).animate({
left: -p * g * S
}, h, I, function() {
W()
});
break;
case "leftLoop":
var e = B;
c.stop(!0, !0).animate({
left: -(G(B) + D) * S
}, h, I, function() {
e <= -1 ? c.css("left", -(D + (o - 1) * g) * S) : o <= e && c.css("left", -D * S), W()
});
break;
case "topLoop":
e = B;
c.stop(!0, !0).animate({
top: -(G(B) + D) * C
}, h, I, function() {
e <= -1 ? c.css("top", -(D + (o - 1) * g) * C) : o <= e && c.css("top", -D * C), W()
});
break;
case "leftMarquee":
var i = c.css("left").replace("px", "");
0 == p ? c.animate({
left: ++i
}, 0, function() {
0 <= c.css("left").replace("px", "") && c.css("left", -u * S)
}) : c.animate({
left: --i
}, 0, function() {
c.css("left").replace("px", "") <= -(u + D) * S && c.css("left", -D * S)
});
break;
case "topMarquee":
var a = c.css("top").replace("px", "");
0 == p ? c.animate({
top: ++a
}, 0, function() {
0 <= c.css("top").replace("px", "") && c.css("top", -u * C)
}) : c.animate({
top: --a
}, 0, function() {
c.css("top").replace("px", "") <= -(u + D) * C && c.css("top", -D * C)
})
}
N.removeClass(P).eq(p).addClass(P), O = p, _ || (r.removeClass("nextStop"), s.removeClass("prevStop"), 0 == p && s.addClass("prevStop"), p == o - 1 && r.addClass("nextStop")), l.html("" + (p + 1) + "/" + o)
}
};
k && K(!0), j && t.hover(function() {
clearTimeout(M)
}, function() {
M = setTimeout(function() {
p = A, k ? K() : "slideDown" == n ? m.slideUp(h, H) : m.animate({
opacity: "hide"
}, h, H), O = p
}, 300)
});
var X = function(t) {
V = setInterval(function() {
y ? p-- : p++, K()
}, t || a)
},
Y = function(t) {
V = setInterval(K, t || a)
},
tt = function() {
x || (clearInterval(V), X())
},
et = function() {
(_ || p != o - 1) && (p++, K(), F || tt())
},
it = function() {
(_ || 0 != p) && (p--, K(), F || tt())
},
at = function() {
clearInterval(V), F ? Y() : X(), i.removeClass("pauseState")
},
st = function() {
clearInterval(V), i.addClass("pauseState")
};
if (w ? F ? (y ? p-- : p++, Y(), x && c.hover(st, at)) : (X(), x && t.hover(st, at)) : (F && (y ? p-- : p++), i.addClass("pauseState")), i.click(function() {
i.hasClass("pauseState") ? at() : st()
}), "mouseover" == e.trigger ? N.hover(function() {
var t = N.index(this);
$ = setTimeout(function() {
p = t, K(), tt()
}, e.triggerTime)
}, function() {
clearTimeout($)
}) : N.click(function() {
p = N.index(this), K(), tt()
}), F) {
if (r.mousedown(et), s.mousedown(it), _) {
var rt, nt = function() {
rt = setTimeout(function() {
clearInterval(V), Y(0 ^ a / 10)
}, 150)
},
lt = function() {
clearTimeout(rt), clearInterval(V), Y()
};
r.mousedown(nt), r.mouseup(lt), s.mousedown(nt), s.mouseup(lt)
}
"mouseover" == e.trigger && (r.hover(et, function() {}), s.hover(it, function() {}))
} else r.click(et), s.click(it)
})
}
}(jQuery), jQuery.easing.jswing = jQuery.easing.swing, jQuery.extend(jQuery.easing, {
def: "easeOutQuad",
swing: function(t, e, i, a, s) {
return jQuery.easing[jQuery.easing.def](t, e, i, a, s)
},
easeInQuad: function(t, e, i, a, s) {
return a * (e /= s) * e + i
},
easeOutQuad: function(t, e, i, a, s) {
return -a * (e /= s) * (e - 2) + i
},
easeInOutQuad: function(t, e, i, a, s) {
return (e /= s / 2) < 1 ? a / 2 * e * e + i : -a / 2 * (--e * (e - 2) - 1) + i
},
easeInCubic: function(t, e, i, a, s) {
return a * (e /= s) * e * e + i
},
easeOutCubic: function(t, e, i, a, s) {
return a * ((e = e / s - 1) * e * e + 1) + i
},
easeInOutCubic: function(t, e, i, a, s) {
return (e /= s / 2) < 1 ? a / 2 * e * e * e + i : a / 2 * ((e -= 2) * e * e + 2) + i
},
easeInQuart: function(t, e, i, a, s) {
return a * (e /= s) * e * e * e + i
},
easeOutQuart: function(t, e, i, a, s) {
return -a * ((e = e / s - 1) * e * e * e - 1) + i
},
easeInOutQuart: function(t, e, i, a, s) {
return (e /= s / 2) < 1 ? a / 2 * e * e * e * e + i : -a / 2 * ((e -= 2) * e * e * e - 2) + i
},
easeInQuint: function(t, e, i, a, s) {
return a * (e /= s) * e * e * e * e + i
},
easeOutQuint: function(t, e, i, a, s) {
return a * ((e = e / s - 1) * e * e * e * e + 1) + i
},
easeInOutQuint: function(t, e, i, a, s) {
return (e /= s / 2) < 1 ? a / 2 * e * e * e * e * e + i : a / 2 * ((e -= 2) * e * e * e * e + 2) + i
},
easeInSine: function(t, e, i, a, s) {
return -a * Math.cos(e / s * (Math.PI / 2)) + a + i
},
easeOutSine: function(t, e, i, a, s) {
return a * Math.sin(e / s * (Math.PI / 2)) + i
},
easeInOutSine: function(t, e, i, a, s) {
return -a / 2 * (Math.cos(Math.PI * e / s) - 1) + i
},
easeInExpo: function(t, e, i, a, s) {
return 0 == e ? i : a * Math.pow(2, 10 * (e / s - 1)) + i
},
easeOutExpo: function(t, e, i, a, s) {
return e == s ? i + a : a * (1 - Math.pow(2, -10 * e / s)) + i
},
easeInOutExpo: function(t, e, i, a, s) {
return 0 == e ? i : e == s ? i + a : (e /= s / 2) < 1 ? a / 2 * Math.pow(2, 10 * (e - 1)) + i : a / 2 * (2 - Math.pow(2, -10 * --e)) + i
},
easeInCirc: function(t, e, i, a, s) {
return -a * (Math.sqrt(1 - (e /= s) * e) - 1) + i
},
easeOutCirc: function(t, e, i, a, s) {
return a * Math.sqrt(1 - (e = e / s - 1) * e) + i
},
easeInOutCirc: function(t, e, i, a, s) {
return (e /= s / 2) < 1 ? -a / 2 * (Math.sqrt(1 - e * e) - 1) + i : a / 2 * (Math.sqrt(1 - (e -= 2) * e) + 1) + i
},
easeInElastic: function(t, e, i, a, s) {
var r = 1.70158,
n = 0,
l = a;
if (0 == e) return i;
if (1 == (e /= s)) return i + a;
if (n || (n = .3 * s), l < Math.abs(a)) {
l = a;
r = n / 4
} else r = n / (2 * Math.PI) * Math.asin(a / l);
return -l * Math.pow(2, 10 * (e -= 1)) * Math.sin(2 * (e * s - r) * Math.PI / n) + i
},
easeOutElastic: function(t, e, i, a, s) {
var r = 1.70158,
n = 0,
l = a;
if (0 == e) return i;
if (1 == (e /= s)) return i + a;
if (n || (n = .3 * s), l < Math.abs(a)) {
l = a;
r = n / 4
} else r = n / (2 * Math.PI) * Math.asin(a / l);
return l * Math.pow(2, -10 * e) * Math.sin(2 * (e * s - r) * Math.PI / n) + a + i
},
easeInOutElastic: function(t, e, i, a, s) {
var r = 1.70158,
n = 0,
l = a;
if (0 == e) return i;
if (2 == (e /= s / 2)) return i + a;
if (n || (n = .3 * s * 1.5), l < Math.abs(a)) {
l = a;
r = n / 4
} else r = n / (2 * Math.PI) * Math.asin(a / l);
return e < 1 ? -.5 * l * Math.pow(2, 10 * (e -= 1)) * Math.sin(2 * (e * s - r) * Math.PI / n) + i : .5 * l * Math.pow(2, -10 * (e -= 1)) * Math.sin(2 * (e * s - r) * Math.PI / n) + a + i
},
easeInBack: function(t, e, i, a, s, r) {
return null == r && (r = 1.70158), a * (e /= s) * e * ((r + 1) * e - r) + i
},
easeOutBack: function(t, e, i, a, s, r) {
return null == r && (r = 1.70158), a * ((e = e / s - 1) * e * ((r + 1) * e + r) + 1) + i
},
easeInOutBack: function(t, e, i, a, s, r) {
return null == r && (r = 1.70158), (e /= s / 2) < 1 ? a / 2 * e * e * ((1 + (r *= 1.525)) * e - r) + i : a / 2 * ((e -= 2) * e * ((1 + (r *= 1.525)) * e + r) + 2) + i
},
easeInBounce: function(t, e, i, a, s) {
return a - jQuery.easing.easeOutBounce(t, s - e, 0, a, s) + i
},
easeOutBounce: function(t, e, i, a, s) {
return (e /= s) < 1 / 2.75 ? 7.5625 * a * e * e + i : e < 2 / 2.75 ? a * (7.5625 * (e -= 1.5 / 2.75) * e + .75) + i : e < 2.5 / 2.75 ? a * (7.5625 * (e -= 2.25 / 2.75) * e + .9375) + i : a * (7.5625 * (e -= 2.625 / 2.75) * e + .984375) + i
},
easeInOutBounce: function(t, e, i, a, s) {
return e < s / 2 ? .5 * jQuery.easing.easeInBounce(t, 2 * e, 0, a, s) + i : .5 * jQuery.easing.easeOutBounce(t, 2 * e - s, 0, a, s) + .5 * a + i
}
}), function(p, e, g) {
var h = null,
s = null,
r = !0,
v = {
tit: "忙聫聬莽陇潞盲驴隆忙聛炉",
w: {
"*": "盲赂聧猫茠陆盲赂潞莽漏潞茂录聛",
"*6-16": "猫炉路氓隆芦氓鈥犫劉6氓藛掳16盲陆聧盲禄禄忙鈥灺徝ヂ€斆γ悸?,
n: "猫炉路氓隆芦氓鈥犫劉忙鈥⒙懊ヂ€斆悸?,
"n6-16": "猫炉路氓隆芦氓鈥犫劉6氓藛掳16盲陆聧忙鈥⒙懊ヂ€斆悸?,
s: "盲赂聧猫茠陆猫戮鈥溍モ€βッр€奥姑β犆ヂ€斆γ悸?,
"s6-18": "猫炉路氓隆芦氓鈥犫劉6氓藛掳18盲陆聧氓颅鈥斆γ悸?,
p: "猫炉路氓隆芦氓鈥犫劉茅鈥毬︹€澛棵尖€撁 聛茂录聛",
m: "猫炉路氓隆芦氓鈥犫劉忙鈥扳€姑ε撀好ヂ徛访 聛茂录聛",
e: "茅鈥毬泵ヅ撀懊ヂ濃偓忙 录氓录聫盲赂聧氓炉鹿茂录聛",
url: "猫炉路氓隆芦氓鈥犫劉莽陆鈥樏ヂ濃偓茂录聛"
},
def: "猫炉路氓隆芦氓鈥犫劉忙颅拢莽隆庐盲驴隆忙聛炉茂录聛",
undef: "datatype忙艙陋氓庐拧盲鹿鈥懊悸?,
reck: "盲赂陇忙卢隆猫戮鈥溍モ€βッ♀€灻モ€犫€γヂ姑ぢ嘎嵜ぢ糕偓猫鈥÷疵悸?,
r: "茅鈧∶库€∶ぢ柯∶β伮┞捗伱悸?,
c: "忙颅拢氓艙篓忙拢鈧β碘€姑ぢ柯∶β伮⑩偓娄",
s: "猫炉路{氓隆芦氓鈥犫劉|茅鈧€懊︹€孤﹠{0|盲驴隆忙聛炉}茂录聛",
v: "忙鈥扳偓氓隆芦盲驴隆忙聛炉忙虏隆忙艙鈥懊宦徝库€∶┞捗伱寂捗访嵜ヂ惻矫⑩偓娄",
p: "忙颅拢氓艙篓忙聫聬盲潞陇忙鈥⒙懊β嵚⑩偓娄"
};
p.Tipmsg = v;
var w = function(t, a, e) {
(a = p.extend({}, w.defaults, a)).datatype && p.extend(w.util.dataType, a.datatype);
var s = this;
if (s.tipmsg = {
w: {}
}, s.forms = t, s.objects = [], !0 === e) return !1;
t.each(function() {
if ("inited" == this.validform_inited) return !0;
this.validform_inited = "inited";
var e = this;
e.settings = p.extend({}, a);
var i = p(e);
e.validform_status = "normal", i.data("tipmsg", s.tipmsg), i.delegate("[datatype]", "blur", function() {
var t = arguments[1];
w.util.check.call(this, i, t)
}), i.delegate(":text", "keypress", function(t) {
13 == t.keyCode && 0 == i.find(":submit").length && i.submit()
}), w.util.enhance.call(i, e.settings.tiptype, e.settings.usePlugin, e.settings.tipSweep), e.settings.btnSubmit && i.find(e.settings.btnSubmit).bind("click", function() {
return i.trigger("submit"), !1
}), i.submit(function() {
var t = w.util.submitForm.call(i, e.settings);
return t === g && (t = !0), t
}), i.find("[type='reset']").add(i.find(e.settings.btnReset)).bind("click", function() {
w.util.resetForm.call(i)
})
}), (1 == a.tiptype || (2 == a.tiptype || 3 == a.tiptype) && a.ajaxPost) && l()
};
function n(t, e) {
var i = (p(window).width() - t.outerWidth()) / 2,
a = (p(window).height() - t.outerHeight()) / 2;
a = (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + (0 < a ? a : 0);
t.css({
left: i
}).animate({
top: a
}, {
duration: e,
queue: !1
})
}
function l() {
if (0 !== p("#Validform_msg").length) return !1;
(s = p('').appendTo("body")).find("a.Validform_close").click(function() {
return s.hide(), r = !0, h && h.focus().addClass("Validform_error"), !1
}).focus(function() {
this.blur()
}), p(window).bind("scroll resize", function() {
!r && n(s, 400)
})
}
w.defaults = {
tiptype: 1,
tipSweep: !1,
showAllError: !1,
postonce: !1,
ajaxPost: !1
}, w.util = {
dataType: {
"*": /[\w\W]+/,
"*6-16": /^[\w\W]{6,16}$/,
n: /^\d+$/,
"n6-16": /^\d{6,16}$/,
s: /^[\u4E00-\u9FA5\uf900-\ufa2d\w\.\s]+$/,
"s6-18": /^[\u4E00-\u9FA5\uf900-\ufa2d\w\.\s]{6,18}$/,
p: /^[0-9]{6}$/,
m: /^13[0-9]{9}$|14[0-9]{9}|15[0-9]{9}$|18[0-9]{9}$/,
e: /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,
url: /^(\w+:\/\/)?\w+(\.\w+)+.*$/
},
toString: Object.prototype.toString,
isEmpty: function(t) {
return "" === t || t === p.trim(this.attr("tip"))
},
getValue: function(t) {
var e;
return e = t.is(":radio") ? (e = this.find(":radio[name='" + t.attr("name") + "']:checked").val()) === g ? "" : e : t.is(":checkbox") ? (e = "", this.find(":checkbox[name='" + t.attr("name") + "']:checked").each(function() {
e += p(this).val() + ","
}), e === g ? "" : e) : t.val(), e = p.trim(e), w.util.isEmpty.call(t, e) ? "" : e
},
enhance: function(t, e, i, a) {
var s = this;
s.find("[datatype]").each(function() {
2 == t ? 0 == p(this).parent().next().find(".Validform_checktip").length && (p(this).parent().next().append(""), p(this).siblings(".Validform_checktip").remove()) : 3 != t && 4 != t || 0 == p(this).siblings(".Validform_checktip").length && (p(this).parent().append(""), p(this).parent().next().find(".Validform_checktip").remove())
}), s.find("input[recheck]").each(function() {
if ("inited" == this.validform_inited) return !0;
this.validform_inited = "inited";
var t = p(this),
e = s.find("input[name='" + p(this).attr("recheck") + "']");
e.bind("keyup", function() {
if (e.val() == t.val() && "" != e.val()) {
if (e.attr("tip") && e.attr("tip") == e.val()) return !1;
t.trigger("blur")
}
}).bind("blur", function() {
if (e.val() != t.val() && "" != t.val()) {
if (t.attr("tip") && t.attr("tip") == t.val()) return !1;
t.trigger("blur")
}
})
}), s.find("[tip]").each(function() {
if ("inited" == this.validform_inited) return !0;
this.validform_inited = "inited";
var t = p(this).attr("tip"),
e = p(this).attr("altercss");
p(this).focus(function() {
p(this).val() == t && (p(this).val(""), e && p(this).removeClass(e))
}).blur(function() {
"" === p.trim(p(this).val()) && (p(this).val(t), e && p(this).addClass(e))
})
}), s.find(":checkbox[datatype],:radio[datatype]").each(function() {
if ("inited" == this.validform_inited) return !0;
this.validform_inited = "inited";
var t = p(this),
e = t.attr("name");
s.find("[name='" + e + "']").filter(":checkbox,:radio").bind("click", function() {
setTimeout(function() {
t.trigger("blur")
}, 0)
})
}), s.find("select[datatype][multiple]").bind("click", function() {
var t = p(this);
setTimeout(function() {
t.trigger("blur")
}, 0)
}), w.util.usePlugin.call(s, e, t, i, a)
},
usePlugin: function(e, a, s, t) {
var r = this;
e = e || {};
if (r.find("input[plugin='swfupload']").length && "undefined" != typeof swfuploadhandler) {
var i = {
custom_settings: {
form: r,
showmsg: function(t, e, i) {
w.util.showmsg.call(r, t, a, {
obj: r.find("input[plugin='swfupload']"),
type: e,
sweep: s
})
}
}
};
i = p.extend(!0, {}, e.swfupload, i), r.find("input[plugin='swfupload']").each(function(t) {
if ("inited" == this.validform_inited) return !0;
this.validform_inited = "inited", p(this).val(""), swfuploadhandler.init(i, t)
})
}
if (r.find("input[plugin='datepicker']").length && p.fn.datePicker && (e.datepicker = e.datepicker || {}, e.datepicker.format && (Date.format = e.datepicker.format, delete e.datepicker.format), e.datepicker.firstDayOfWeek && (Date.firstDayOfWeek = e.datepicker.firstDayOfWeek, delete e.datepicker.firstDayOfWeek), r.find("input[plugin='datepicker']").each(function(t) {
if ("inited" == this.validform_inited) return !0;
this.validform_inited = "inited", e.datepicker.callback && p(this).bind("dateSelected", function() {
var t = new Date(p.event._dpCache[this._dpId].getSelected()[0]).asString(Date.format);
e.datepicker.callback(t, this)
}), p(this).datePicker(e.datepicker)
})), r.find("input[plugin*='passwordStrength']").length && p.fn.passwordStrength && (e.passwordstrength = e.passwordstrength || {}, e.passwordstrength.showmsg = function(t, e, i) {
w.util.showmsg.call(r, e, a, {
obj: t,
type: i,
sweep: s
})
}, r.find("input[plugin='passwordStrength']").each(function(t) {
if ("inited" == this.validform_inited) return !0;
this.validform_inited = "inited", p(this).passwordStrength(e.passwordstrength)
})), "addRule" != t && e.jqtransform && p.fn.jqTransSelect) {
if ("true" == r[0].jqTransSelected) return;
r[0].jqTransSelected = "true";
var n = function(t) {
var e;
0 === p(t.target).parents(".jqTransformSelectWrapper").length && (e = p(t.target), p(".jqTransformSelectWrapper ul:visible").each(function() {
var t = p(this).parents(".jqTransformSelectWrapper:first").find("select").get(0);
e && t.oLabel && t.oLabel.get(0) == e.get(0) || p(this).hide()
}))
};
e.jqtransform.selector ? (r.find(e.jqtransform.selector).filter('input:submit, input:reset, input[type="button"]').jqTransInputButton(), r.find(e.jqtransform.selector).filter("input:text, input:password").jqTransInputText(), r.find(e.jqtransform.selector).filter("input:checkbox").jqTransCheckBox(), r.find(e.jqtransform.selector).filter("input:radio").jqTransRadio(), r.find(e.jqtransform.selector).filter("textarea").jqTransTextarea(), 0 < r.find(e.jqtransform.selector).filter("select").length && (r.find(e.jqtransform.selector).filter("select").jqTransSelect(), p(document).mousedown(n))) : r.jqTransform(), r.find(".jqTransformSelectWrapper").find("li a").click(function() {
p(this).parents(".jqTransformSelectWrapper").find("select").trigger("blur")
})
}
},
getNullmsg: function(t) {
var e, i = this,
a = /[\u4E00-\u9FA5\uf900-\ufa2da-zA-Z\s]+/g,
s = t[0].settings.label || ".Validform_label";
if (s = (s = (s = i.siblings(s).eq(0).text() || i.siblings().find(s).eq(0).text() || i.parent().siblings(s).eq(0).text() || i.parent().siblings().find(s).eq(0).text()).replace(/\s(?![a-zA-Z])/g, "").match(a)) ? s.join("") : [""], a = /\{(.+)\|(.+)\}/, e = t.data("tipmsg").s || v.s, "" != s) {
if (e = e.replace(/\{0\|(.+)\}/, s), i.attr("recheck")) return e = e.replace(/\{(.+)\}/, ""), i.attr("nullmsg", e), e
} else e = i.is(":checkbox,:radio,select") ? e.replace(/\{0\|(.+)\}/, "") : e.replace(/\{0\|(.+)\}/, "$1");
return e = i.is(":checkbox,:radio,select") ? e.replace(a, "$2") : e.replace(a, "$1"), i.attr("nullmsg", e), e
},
getErrormsg: function(t, e, i) {
var a, s = /^(.+?)(\d+)-(\d+)$/,
r = /(.*?)\d+(.+?)\d+(.*)/,
n = e.match(/^(.+?)((\d+)-(\d+))?$/);
if ("recheck" == i) return a = t.data("tipmsg").reck || v.reck;
var l = p.extend({}, v.w, t.data("tipmsg").w);
if (n[0] in l) return t.data("tipmsg").w[n[0]] || v.w[n[0]];
for (var o in l) if (-1 != o.indexOf(n[1]) && s.test(o)) return a = (t.data("tipmsg").w[o] || v.w[o]).replace(r, "$1" + n[3] + "$2" + n[4] + "$3"), t.data("tipmsg").w[n[0]] = a;
return t.data("tipmsg").def || v.def
},
_regcheck: function(t, e, i, a) {
a = a;
var s = null,
r = !1,
n = /\/.+\//g,
l = /^(.+?)(\d+)-(\d+)$/,
o = 3;
if (n.test(t)) {
var c = t.match(n)[0].slice(1, -1),
u = t.replace(n, "");
r = RegExp(c, u).test(e)
} else if ("[object Function]" == w.util.toString.call(w.util.dataType[t])) r = !0 === (r = w.util.dataType[t](e, i, a, w.util.dataType)) || r === g || (s = r, !1);
else {
if (!(t in w.util.dataType)) {
var d, f = t.match(l);
if (f) {
for (var p in w.util.dataType) if ((d = p.match(l)) && f[1] === d[1]) {
var h = w.util.dataType[p].toString(),
m = (u = h.match(/\/[mgi]*/g)[1].replace("/", ""), new RegExp("\\{" + d[2] + "," + d[3] + "\\}", "g"));
h = h.replace(/\/[mgi]*/g, "/").replace(m, "{" + f[2] + "," + f[3] + "}").replace(/^\//, "").replace(/\/$/, ""), w.util.dataType[t] = new RegExp(h, u);
break
}
} else r = !1, s = a.data("tipmsg").undef || v.undef
}
"[object RegExp]" == w.util.toString.call(w.util.dataType[t]) && (r = w.util.dataType[t].test(e))
}
r ? (o = 2, s = i.attr("sucmsg") || a.data("tipmsg").r || v.r, i.attr("recheck") && e != a.find("input[name='" + i.attr("recheck") + "']:first").val() && (r = !1, o = 3, s = i.attr("errormsg") || w.util.getErrormsg.call(i, a, t, "recheck"))) : (s = s || i.attr("errormsg") || w.util.getErrormsg.call(i, a, t), w.util.isEmpty.call(i, e) && (s = i.attr("nullmsg") || w.util.getNullmsg.call(i, a)));
return {
passed: r,
type: o,
info: s
}
},
regcheck: function(t, e, i) {
var a = null;
if ("ignore" === i.attr("ignore") && w.util.isEmpty.call(i, e)) return i.data("cked") && (a = ""), {
passed: !0,
type: 4,
info: a
};
i.data("cked", "cked");
for (var s, r = w.util.parseDatatype(t), n = 0; n < r.length; n++) {
for (var l = 0; l < r[n].length && (s = w.util._regcheck(r[n][l], e, i, this)).passed; l++);
if (s.passed) break
}
return s
},
parseDatatype: function(t) {
var e = /\/.+?\/[mgi]*(?=(,|$|\||\s))|[\w\*-]+/g,
i = t.match(e),
a = t.replace(e, "").replace(/\s*/g, "").split(""),
s = [],
r = 0;
s[0] = [], s[0].push(i[0]);
for (var n = 0; n < a.length; n++)"|" == a[n] && (s[++r] = []), s[r].push(i[n + 1]);
return s
},
showmsg: function(t, e, i, a) {
t != g && ("bycheck" == a && i.sweep && (i.obj && !i.obj.is(".Validform_error") || "function" == typeof e) || (p.extend(i, {
curform: this
}), "function" != typeof e ? ((1 == e || "byajax" == a && 4 != e) && s.find(".Validform_info").html(t), (1 == e && "bycheck" != a && 2 != i.type || "byajax" == a && 4 != e) && (r = !1, s.find(".iframe").css("height", s.outerHeight()), s.show(), n(s, 100)), 2 == e && i.obj && (i.obj.parent().next().find(".Validform_checktip").html(t), w.util.cssctl(i.obj.parent().next().find(".Validform_checktip"), i.type)), 3 != e && 4 != e || !i.obj || (i.obj.siblings(".Validform_checktip").html(t), w.util.cssctl(i.obj.siblings(".Validform_checktip"), i.type))) : e(t, i, w.util.cssctl)))
},
cssctl: function(t, e) {
switch (e) {
case 1:
t.removeClass("Validform_right Validform_wrong").addClass("Validform_checktip Validform_loading");
break;
case 2:
t.removeClass("Validform_wrong Validform_loading").addClass("Validform_checktip Validform_right");
break;
case 4:
t.removeClass("Validform_right Validform_wrong Validform_loading").addClass("Validform_checktip");
break;
default:
t.removeClass("Validform_right Validform_loading").addClass("Validform_checktip Validform_wrong")
}
},
check: function(i, t, e) {
var a = i[0].settings,
s = (t = t || "", w.util.getValue.call(i, p(this)));
if (a.ignoreHidden && p(this).is(":hidden") || "dataIgnore" === p(this).data("dataIgnore")) return !0;
if (a.dragonfly && !p(this).data("cked") && w.util.isEmpty.call(p(this), s) && "ignore" != p(this).attr("ignore")) return !1;
var r, n = w.util.regcheck.call(i, p(this).attr("datatype"), s, p(this));
if (s == this.validform_lastval && !p(this).attr("recheck") && "" == t) return !!n.passed;
if (this.validform_lastval = s, h = r = p(this), !n.passed) return w.util.abort.call(r[0]), e || (w.util.showmsg.call(i, n.info, a.tiptype, {
obj: p(this),
type: n.type,
sweep: a.tipSweep
}, "bycheck"), !a.tipSweep && r.addClass("Validform_error")), !1;
var l = p(this).attr("ajaxurl");
if (!l || w.util.isEmpty.call(p(this), s) || e) return l && w.util.isEmpty.call(p(this), s) && (w.util.abort.call(r[0]), r[0].validform_valid = "true"), e || (w.util.showmsg.call(i, n.info, a.tiptype, {
obj: p(this),
type: n.type,
sweep: a.tipSweep
}, "bycheck"), r.removeClass("Validform_error")), !(h = null);
var o = p(this);
if (o[0].validform_subpost = "postform" == t ? "postform" : "", "posting" === o[0].validform_valid && s == o[0].validform_ckvalue) return "ajax";
o[0].validform_valid = "posting", o[0].validform_ckvalue = s, w.util.showmsg.call(i, i.data("tipmsg").c || v.c, a.tiptype, {
obj: o,
type: 1,
sweep: a.tipSweep
}, "bycheck"), w.util.abort.call(r[0]);
var c = p.extend(!0, {}, a.ajaxurl || {}),
u = {
type: "POST",
cache: !1,
url: l,
data: "param=" + encodeURIComponent(s) + "&name=" + encodeURIComponent(p(this).attr("name")),
success: function(t) {
"y" === p.trim(t.status) ? (o[0].validform_valid = "true", t.info && o.attr("sucmsg", t.info), w.util.showmsg.call(i, o.attr("sucmsg") || i.data("tipmsg").r || v.r, a.tiptype, {
obj: o,
type: 2,
sweep: a.tipSweep
}, "bycheck"), r.removeClass("Validform_error"), h = null, "postform" == o[0].validform_subpost && i.trigger("submit")) : (o[0].validform_valid = t.info, w.util.showmsg.call(i, t.info, a.tiptype, {
obj: o,
type: 3,
sweep: a.tipSweep
}), r.addClass("Validform_error")), r[0].validform_ajax = null
},
error: function(t) {
if ("200" == t.status) return "y" == t.responseText ? c.success({
status: "y"
}) : c.success({
status: "n",
info: t.responseText
}), !1;
if ("abort" !== t.statusText) {
var e = "status: " + t.status + "; statusText: " + t.statusText;
w.util.showmsg.call(i, e, a.tiptype, {
obj: o,
type: 3,
sweep: a.tipSweep
}), r.addClass("Validform_error")
}
return o[0].validform_valid = t.statusText, !(r[0].validform_ajax = null)
}
};
if (c.success) {
var d = c.success;
c.success = function(t) {
u.success(t), d(t, o)
}
}
if (c.error) {
var f = c.error;
c.error = function(t) {
u.error(t) && f(t, o)
}
}
return c = p.extend({}, u, c, {
dataType: "json"
}), r[0].validform_ajax = p.ajax(c), "ajax"
},
submitForm: function(a, s, t, e, i) {
var r = this;
if ("posting" === r[0].validform_status) return !1;
if (a.postonce && "posted" === r[0].validform_status) return !1;
if (!1 === (a.beforeCheck && a.beforeCheck(r))) return !1;
var n, l = !0;
if (r.find("[datatype]").each(function() {
if (s) return !1;
if (a.ignoreHidden && p(this).is(":hidden") || "dataIgnore" === p(this).data("dataIgnore")) return !0;
var t, e = w.util.getValue.call(r, p(this));
if (h = t = p(this), !(n = w.util.regcheck.call(r, p(this).attr("datatype"), e, p(this))).passed) return w.util.showmsg.call(r, n.info, a.tiptype, {
obj: p(this),
type: n.type,
sweep: a.tipSweep
}), t.addClass("Validform_error"), a.showAllError ? (l && (l = !1), !0) : (t.focus(), l = !1);
if (p(this).attr("ajaxurl") && !w.util.isEmpty.call(p(this), e)) {
if ("true" !== this.validform_valid) {
var i = p(this);
return w.util.showmsg.call(r, r.data("tipmsg").v || v.v, a.tiptype, {
obj: i,
type: 3,
sweep: a.tipSweep
}), t.addClass("Validform_error"), i.trigger("blur", ["postform"]), a.showAllError ? (l && (l = !1), !0) : l = !1
}
} else p(this).attr("ajaxurl") && w.util.isEmpty.call(p(this), e) && (w.util.abort.call(this), this.validform_valid = "true");
w.util.showmsg.call(r, n.info, a.tiptype, {
obj: p(this),
type: n.type,
sweep: a.tipSweep
}), t.removeClass("Validform_error"), h = null
}), a.showAllError && r.find(".Validform_error:first").focus(), l) {
if (!1 === (a.beforeSubmit && a.beforeSubmit(r))) return !1;
if (r[0].validform_status = "posting", !a.ajaxPost && "ajaxPost" !== e) return a.postonce || (r[0].validform_status = "normal"), (t = t || a.url) && r.attr("action", t), a.callback && a.callback(r);
var o = p.extend(!0, {}, a.ajaxpost || {});
if (o.url = t || o.url || a.url || r.attr("action"), w.util.showmsg.call(r, r.data("tipmsg").p || v.p, a.tiptype, {
obj: r,
type: 1,
sweep: a.tipSweep
}, "byajax"), i ? o.async = !1 : !1 === i && (o.async = !0), o.success) {
var c = o.success;
o.success = function(t) {
a.callback && a.callback(t), r[0].validform_ajax = null, "y" === p.trim(t.status) ? r[0].validform_status = "posted" : r[0].validform_status = "normal", c(t, r)
}
}
if (o.error) {
var u = o.error;
o.error = function(t) {
a.callback && a.callback(t), r[0].validform_status = "normal", r[0].validform_ajax = null, u(t, r)
}
}
var d = {
type: "POST",
async: !0,
data: r.serializeArray(),
success: function(t) {
"y" === p.trim(t.status) ? (r[0].validform_status = "posted", w.util.showmsg.call(r, t.info, a.tiptype, {
obj: r,
type: 2,
sweep: a.tipSweep
}, "byajax")) : (r[0].validform_status = "normal", w.util.showmsg.call(r, t.info, a.tiptype, {
obj: r,
type: 3,
sweep: a.tipSweep
}, "byajax")), a.callback && a.callback(t), r[0].validform_ajax = null
},
error: function(t) {
var e = "status: " + t.status + "; statusText: " + t.statusText;
w.util.showmsg.call(r, e, a.tiptype, {
obj: r,
type: 3,
sweep: a.tipSweep
}, "byajax"), a.callback && a.callback(t), r[0].validform_status = "normal", r[0].validform_ajax = null
}
};
o = p.extend({}, d, o, {
dataType: "json"
}), r[0].validform_ajax = p.ajax(o)
}
return !1
},
resetForm: function() {
var t = this;
t.each(function() {
this.reset && this.reset(), this.validform_status = "normal"
}), t.find(".Validform_right").text(""), t.find(".passwordStrength").children().removeClass("bgStrength"), t.find(".Validform_checktip").removeClass("Validform_wrong Validform_right Validform_loading"), t.find(".Validform_error").removeClass("Validform_error"), t.find("[datatype]").removeData("cked").removeData("dataIgnore").each(function() {
this.validform_lastval = null
}), t.eq(0).find("input:first").focus()
},
abort: function() {
this.validform_ajax && this.validform_ajax.abort()
}
}, p.Datatype = w.util.dataType, w.prototype = {
dataType: w.util.dataType,
eq: function(t) {
var e = this;
return t >= e.forms.length ? null : (t in e.objects || (e.objects[t] = new w(p(e.forms[t]).get(), {}, !0)), e.objects[t])
},
resetStatus: function() {
return p(this.forms).each(function() {
this.validform_status = "normal"
}), this
},
setStatus: function(t) {
return p(this.forms).each(function() {
this.validform_status = t || "posting"
}), this
},
getStatus: function() {
return p(this.forms)[0].validform_status
},
ignore: function(t) {
t = t || "[datatype]";
return p(this.forms).find(t).each(function() {
p(this).data("dataIgnore", "dataIgnore").removeClass("Validform_error")
}), this
},
unignore: function(t) {
t = t || "[datatype]";
return p(this.forms).find(t).each(function() {
p(this).removeData("dataIgnore")
}), this
},
addRule: function(t) {
t = t || [];
for (var e = 0; e < t.length; e++) {
var i = p(this.forms).find(t[e].ele);
for (var a in t[e])"ele" !== a && i.attr(a, t[e][a])
}
return p(this.forms).each(function() {
var t = p(this);
w.util.enhance.call(t, this.settings.tiptype, this.settings.usePlugin, this.settings.tipSweep, "addRule")
}), this
},
ajaxPost: function(t, e, i) {
var a = this;
return p(a.forms).each(function() {
1 != this.settings.tiptype && 2 != this.settings.tiptype && 3 != this.settings.tiptype || l(), w.util.submitForm.call(p(a.forms[0]), this.settings, t, i, "ajaxPost", e)
}), this
},
submitForm: function(e, i) {
return p(this.forms).each(function() {
var t = w.util.submitForm.call(p(this), this.settings, e, i);
t === g && (t = !0), !0 === t && this.submit()
}), this
},
resetForm: function() {
return w.util.resetForm.call(p(this.forms)), this
},
abort: function() {
return p(this.forms).each(function() {
w.util.abort.call(this)
}), this
},
check: function(t, e) {
e = e || "[datatype]";
var i = p(this.forms),
a = !0;
return i.find(e).each(function() {
w.util.check.call(this, i, "", t) || (a = !1)
}), a
},
config: function(e) {
return e = e || {}, p(this.forms).each(function() {
var t = p(this);
this.settings = p.extend(!0, this.settings, e), w.util.enhance.call(t, this.settings.tiptype, this.settings.usePlugin, this.settings.tipSweep)
}), this
}
}, p.fn.Validform = function(t) {
return new w(this, t)
}, p.Showmsg = function(t) {
l(), w.util.showmsg.call(e, t, 1, {})
}, p.Hidemsg = function() {
s.hide(), r = !0
}
}(jQuery, window), function(t) {
"use strict";
"function" == typeof define && define.amd ? define(["jquery"], t) : "undefined" != typeof module && module.exports ? module.exports = t(require("jquery")) : t(jQuery)
}(function(o) {
var a = -1,
s = -1,
c = function(t) {
return parseFloat(t) || 0
},
u = function(t) {
var e = o(t),
a = null,
s = [];
return e.each(function() {
var t = o(this),
e = t.offset().top - c(t.css("margin-top")),
i = 0 < s.length ? s[s.length - 1] : null;
null === i ? s.push(t) : Math.floor(Math.abs(a - e)) <= 1 ? s[s.length - 1] = i.add(t) : s.push(t), a = e
}), s
},
d = function(t) {
var e = {
byRow: !0,
property: "height",
target: null,
remove: !1
};
return "object" == typeof t ? o.extend(e, t) : ("boolean" == typeof t ? e.byRow = t : "remove" === t && (e.remove = !0), e)
},
f = o.fn.matchHeight = function(t) {
var e = d(t);
if (e.remove) {
var i = this;
return this.css(e.property, ""), o.each(f._groups, function(t, e) {
e.elements = e.elements.not(i)
}), this
}
return this.length <= 1 && !e.target || (f._groups.push({
elements: this,
options: e
}), f._apply(this, e)), this
};
f.version = "0.7.2", f._groups = [], f._throttle = 80, f._maintainScroll = !1, f._beforeUpdate = null, f._afterUpdate = null, f._rows = u, f._parse = c, f._parseOptions = d, f._apply = function(t, e) {
var r = d(e),
i = o(t),
a = [i],
s = o(window).scrollTop(),
n = o("html").outerHeight(!0),
l = i.parents().filter(":hidden");
return l.each(function() {
var t = o(this);
t.data("style-cache", t.attr("style"))
}), l.css("display", "block"), r.byRow && !r.target && (i.each(function() {
var t = o(this),
e = t.css("display");
"inline-block" !== e && "flex" !== e && "inline-flex" !== e && (e = "block"), t.data("style-cache", t.attr("style")), t.css({
display: e,
"padding-top": "0",
"padding-bottom": "0",
"margin-top": "0",
"margin-bottom": "0",
"border-top-width": "0",
"border-bottom-width": "0",
height: "100px",
overflow: "hidden"
})
}), a = u(i), i.each(function() {
var t = o(this);
t.attr("style", t.data("style-cache") || "")
})), o.each(a, function(t, e) {
var i = o(e),
s = 0;
if (r.target) s = r.target.outerHeight(!1);
else {
if (r.byRow && i.length <= 1) return void i.css(r.property, "");
i.each(function() {
var t = o(this),
e = t.attr("style"),
i = t.css("display");
"inline-block" !== i && "flex" !== i && "inline-flex" !== i && (i = "block");
var a = {
display: i
};
a[r.property] = "", t.css(a), t.outerHeight(!1) > s && (s = t.outerHeight(!1)), e ? t.attr("style", e) : t.css("display", "")
})
}
i.each(function() {
var t = o(this),
e = 0;
r.target && t.is(r.target) || ("border-box" !== t.css("box-sizing") && (e += c(t.css("border-top-width")) + c(t.css("border-bottom-width")), e += c(t.css("padding-top")) + c(t.css("padding-bottom"))), t.css(r.property, s - e + "px"))
})
}), l.each(function() {
var t = o(this);
t.attr("style", t.data("style-cache") || null)
}), f._maintainScroll && o(window).scrollTop(s / n * o("html").outerHeight(!0)), this
}, f._applyDataApi = function() {
var i = {};
o("[data-match-height], [data-mh]").each(function() {
var t = o(this),
e = t.attr("data-mh") || t.attr("data-match-height");
i[e] = e in i ? i[e].add(t) : t
}), o.each(i, function() {
this.matchHeight(!0)
})
};
var r = function(t) {
f._beforeUpdate && f._beforeUpdate(t, f._groups), o.each(f._groups, function() {
f._apply(this.elements, this.options)
}), f._afterUpdate && f._afterUpdate(t, f._groups)
};
f._update = function(t, e) {
if (e && "resize" === e.type) {
var i = o(window).width();
if (i === a) return;
a = i
}
t ? -1 === s && (s = setTimeout(function() {
r(e), s = -1
}, f._throttle)) : r(e)
}, o(f._applyDataApi);
var t = o.fn.on ? "on" : "bind";
o(window)[t]("load", function(t) {
f._update(!1, t)
}), o(window)[t]("resize orientationchange", function(t) {
f._update(!0, t)
})
}), $(document).ready(function() {
$(".nav").slide({
type: "menu",
titCell: ".m",
targetCell: ".sub",
effect: "slideDown",
delayTime: 300,
triggerTime: 0,
returnDefault: !0,
defaultPlay: !1
}), $(".m_nav").slide({
type: "menu",
titCell: ".m",
targetCell: ".sub",
effect: "slideDown",
delayTime: 200,
triggerTime: 0,
returnDefault: !1,
defaultPlay: !1
}), $("#backtotop").click(function() {
return $("html,body").animate({
scrollTop: "0px"
}, 800), !1
});
var t = $(".hamburger"),
e = $(".overlay"),
i = !1;
t.click(function() {
i = 1 == i ? (e.hide(), t.removeClass("is-open"), t.addClass("is-closed"), !1) : (e.show(), t.removeClass("is-closed"), t.addClass("is-open"), !0)
}), $('[data-toggle="offcanvas"]').click(function() {
$("#warper").toggleClass("toggled")
});
new Swiper(".index_banner", {
loop: !0,
effect: "fade",
pagination: {
el: ".swiper-pagination"
},
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev"
},
on: {
init: function() {
swiperAnimateCache(this), swiperAnimate(this)
},
slideChangeTransitionEnd: function() {
swiperAnimate(this)
}
},
lazy: {
loadPrevNext: !0
}
});
1088 < $(window).width() ? ($(".history_list .list").each(function(t) {
$(".history_list .list").slice(5 * t, 5 * t + 5).wrapAll('')
}), $(".hospital_doctor_slide .list").each(function(t) {
$(".hospital_doctor_slide .list").slice(4 * t, 4 * t + 4).wrapAll('')
})) : $(window).width() <= 1088 && 668 < $(window).width() ? ($(".history_list .list").each(function(t) {
$(".history_list .list").slice(3 * t, 3 * t + 3).wrapAll('')
}), $(".hospital_doctor_slide .list").each(function(t) {
$(".hospital_doctor_slide .list").slice(3 * t, 3 * t + 3).wrapAll('')
})) : ($(".history_list .list").each(function(t) {
$(".history_list .list").slice(2 * t, 2 * t + 2).wrapAll('')
}), $(".hospital_doctor_slide .list").each(function(t) {
$(".hospital_doctor_slide .list").slice(1 * t, 1 * t + 1).wrapAll('')
}));
new Swiper(".history_list", {
navigation: {
nextEl: ".history_next",
prevEl: ".history_prev"
}
}), new Swiper(".hospital_doctor_slide", {
navigation: {
prevEl: ".arrow_prev",
nextEl: ".arrow_next"
}
});
$(".hospital_content_txt").mCustomScrollbar({
theme: "red"
}), $(".medical_list").slide({
titCell: ".hd li",
targetCell: ".medical_list_box",
trigger: "click"
}), $(".medical_list_t .hd").mCustomScrollbar({
theme: "light-2"
}), $(".medical_list_box").mCustomScrollbar({
theme: "red"
});
new Swiper(".medical_list_slide", {
loop: !0,
slidesPerView: 3,
spaceBetween: 20,
breakpoints: {
320: {
slidesPerView: 1,
spaceBetween: 10
},
480: {
slidesPerView: 1,
spaceBetween: 0
},
640: {
slidesPerView: 3,
spaceBetween: 20
}
},
navigation: {
nextEl: ".arrow_next",
prevEl: ".arrow_prev"
},
lazy: {
loadPrevNext: !0
}
}), new Swiper(".hospital_content_slide", {
loop: !0,
pagination: {
el: ".swiper-pagination"
},
navigation: {
nextEl: ".arrow_next",
prevEl: ".arrow_prev"
},
lazy: {
loadPrevNext: !0
}
});
function a() {
$windowW = $(window).width(), $windowH = $(window).height(), $(".windowH").css("width", "100%").css("height", $windowH)
}
$(".job_all .des_txt").matchHeight(), a(), $(window).resize(a)
});