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)
});