(function (o, y, ab) { var s = { html: false, photo: false, iframe: false, inline: false, transition: "elastic", speed: 300, fadeout: 300, width: false, initialwidth: "600", innerwidth: false, maxwidth: false, height: false, initialheight: "450", innerheight: false, maxheight: false, scalephotos: true, scrolling: true, opacity: 0.9, preloading: true, classname: false, overlayclose: true, esckey: true, arrowkey: true, top: false, bottom: false, left: false, right: false, fixed: false, data: undefined, closebutton: true, fastiframe: true, open: false, reposition: true, loop: true, slideshow: false, slideshowauto: true, slideshowspeed: 2500, slideshowstart: "开启自动播放", slideshowstop: "关闭自动播放", photoregex: /\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i, retinaimage: false, retinaurl: false, retinasuffix: "@2x.$1", current: t("当前") + ": {current} / {total}", previous: t("上一个") + " ", next: t("下一个") + " ", close: t("关闭"), xhrerror: "加载内容失败.", imgerror: "加载图片失败.", returnfocus: true, trapfocus: true, onopen: false, onload: false, oncomplete: false, oncleanup: false, onclosed: false, rel: function () { return this.rel }, href: function () { return o(this).children("img").attr("src") }, title: function () { return this.title }, createimg: function () { var aq = new image(); var ap = o(this).data("cbox-img-attrs"); if (typeof ap === "object") { o.each(ap, function (ar, as) { aq[ar] = as }) } return aq }, createiframe: function () { var ap = y.createelement("iframe"); var aq = o(this).data("cbox-iframe-attrs"); if (typeof aq === "object") { o.each(aq, function (ar, as) { ap[ar] = as }) } if ("frameborder" in ap) { ap.frameborder = 0 } if ("allowtransparency" in ap) { ap.allowtransparency = "true" } ap.name = (new date()).gettime(); ap.allowfullscreen = true; return ap } }, j = "colorbox", g = "cbox", h = g + "element", r = g + "_open", w = g + "_load", al = g + "_complete", d = g + "_cleanup", k = g + "_closed", t = g + "_purge", z, s, f, c, j, n, af, w, an, f, v, q, ad, b, a, k, ae, n, ao, e, u = o(""), aa, g, c, ac, i, ai, o, a, p, aj, h, r, p = "div", ak = 0, v = {}, q; function ag(ap, as, aq) { var ar = y.createelement(ap); if (as) { ar.id = g + as } if (aq) { ar.style.csstext = aq } return o(ar) } function x() { return ab.innerheight ? ab.innerheight : o(ab).height() } function ah(aq, ap) { if (ap !== object(ap)) { ap = {} } this.cache = {}; this.el = aq; this.value = function (ar) { var as; if (this.cache[ar] === undefined) { as = o(this.el).attr("data-cbox-" + ar); if (as !== undefined) { this.cache[ar] = as } else { if (ap[ar] !== undefined) { this.cache[ar] = ap[ar] } else { if (s[ar] !== undefined) { this.cache[ar] = s[ar] } } } } return this.cache[ar] }; this.get = function (ar) { var as = this.value(ar); return o.isfunction(as) ? as.call(this.el, this) : as } } function i(ap) { var ar = an.length, aq = (ai + ap) % ar; return (aq < 0) ? ar + aq : aq } function e(ap, aq) { return math.round((/%/.test(ap) ? ((aq === "x" ? f.width() : x()) / 100) : 1) * parseint(ap, 10)) } function am(aq, ap) { return aq.get("photo") || aq.get("photoregex").test(ap) } function y(aq, ap) { return aq.get("retinaurl") && ab.devicepixelratio > 1 ? ap.replace(aq.get("photoregex"), aq.get("retinasuffix")) : ap } function l(ap) { if ("contains" in s[0] && !s[0].contains(ap.target) && ap.target !== z[0]) { ap.stoppropagation(); s.focus() } } function u(ap) { if (u.str !== ap) { s.add(z).removeclass(u.str).addclass(ap); u.str = ap } } function z(ap) { ai = 0; if (ap && ap !== false && ap !== "nofollow") { an = o("." + h).filter(function () { var aq = o.data(this, j); var ar = new ah(this, aq); return (ar.get("rel") === ap) }); ai = an.index(aa.el); if (ai === -1) { an = an.add(aa.el); ai = an.length - 1 } } else { an = o(aa.el) } } function x(ap) { o(y).trigger(ap); u.triggerhandler(ap) } var b = (function () { var au, av = g + "slideshow_", aw = "click." + g, as; function ax() { cleartimeout(as) } function at() { if (aa.get("loop") || an[ai + 1]) { ax(); as = settimeout(r.next, aa.get("slideshowspeed")) } } function aq() { k.html(aa.get("slideshowstop")).unbind(aw).one(aw, ap); u.bind(al, at).bind(w, ax); s.removeclass(av + "off").addclass(av + "on") } function ap() { ax(); u.unbind(al, at).unbind(w, ax); k.html(aa.get("slideshowstart")).unbind(aw).one(aw, function () { r.next(); aq() }); s.removeclass(av + "on").addclass(av + "off") } function ar() { au = false; k.hide(); ax(); u.unbind(al, at).unbind(w, ax); s.removeclass(av + "off " + av + "on") } return function () { if (au) { if (!aa.get("slideshow")) { u.unbind(d, ar); ar() } } else { if (aa.get("slideshow") && an[1]) { au = true; u.one(d, ar); if (aa.get("slideshowauto")) { aq() } else { ap() } k.show() } } } }()); function m(au) { var ar; if (!aj) { ar = o(au).data(j); aa = new ah(au, ar); z(aa.get("rel")); if (!a) { a = p = true; u(aa.get("classname")); s.css({ visibility: "hidden", display: "block", opacity: "" }); v = ag(p, "loadedcontent", "width:0; height:0; overflow:hidden; visibility:hidden"); c.css({ width: "", height: "" }).append(v); g = j.height() + w.height() + c.outerheight(true) - c.height(); c = n.width() + af.width() + c.outerwidth(true) - c.width(); ac = v.outerheight(true); i = v.outerwidth(true); var ap = e(aa.get("initialwidth"), "x"); var av = e(aa.get("initialheight"), "y"); var at = aa.get("maxwidth"); var as = aa.get("maxheight"); aa.w = (at !== false ? math.min(ap, e(at, "x")) : ap) - i - c; aa.h = (as !== false ? math.min(av, e(as, "y")) : av) - ac - g; v.css({ width: "", height: aa.h }); r.position(); x(r); aa.get("onopen"); e.add(b).hide(); s.focus(); if (aa.get("trapfocus")) { if (y.addeventlistener) { y.addeventlistener("focus", l, true); u.one(k, function () { y.removeeventlistener("focus", l, true) }) } } if (aa.get("returnfocus")) { u.one(k, function () { o(aa.el).focus() }) } } var aq = parsefloat(aa.get("opacity")); z.css({ opacity: aq === aq ? aq : "", cursor: aa.get("overlayclose") ? "pointer" : "", visibility: "visible" }).show(); if (aa.get("closebutton")) { ao.html(aa.get("close")).appendto(c) } else { ao.appendto("
") } d() } } function l() { if (!s) { q = false; f = o(ab); s = ag(p).attr({ id: j, "class": o.support.opacity === false ? g + "ie" : "", role: "dialog", tabindex: "-1" }).hide(); z = ag(p, "overlay").hide(); ad = o([ag(p, "loadingoverlay")[0], ag(p, "loadinggraphic")[0]]); f = ag(p, "wrapper"); c = ag(p, "content").append(b = ag(p, "title"), a = ag(p, "current"), n = o('