!(function (e, t) { "object" == typeof module && "object" == typeof module.exports ? (module.exports = e.document ? t(e, !0) : function (e) { if (!e.document) throw new Error("jQuery requires a window with a document"); return t(e); }) : t(e); })("undefined" != typeof window ? window : this, function (e, t) { function y(e) { var t = e.length, n = p.type(e); return "function" === n || p.isWindow(e) ? !1 : 1 === e.nodeType && t ? !0 : "array" === n || 0 === t || ("number" == typeof t && t > 0 && t - 1 in e); } function x(e, t, n) { if (p.isFunction(t)) return p.grep(e, function (e, r) { return !!t.call(e, r, e) !== n; }); if (t.nodeType) return p.grep(e, function (e) { return (e === t) !== n; }); if ("string" == typeof t) { if (S.test(t)) return p.filter(t, e, n); t = p.filter(t, e); } return p.grep(e, function (e) { return p.inArray(e, t) >= 0 !== n; }); } function O(e, t) { do e = e[t]; while (e && 1 !== e.nodeType); return e; } function D(e) { var t = (_[e] = {}); return ( p.each(e.match(M) || [], function (e, n) { t[n] = !0; }), t ); } function H() { N.addEventListener ? (N.removeEventListener("DOMContentLoaded", B, !1), e.removeEventListener("load", B, !1)) : (N.detachEvent("onreadystatechange", B), e.detachEvent("onload", B)); } function B() { (N.addEventListener || "load" === event.type || "complete" === N.readyState) && (H(), p.ready()); } function R(e, t, n) { if (void 0 === n && 1 === e.nodeType) { var r = "data-" + t.replace(q, "-$1").toLowerCase(); if (((n = e.getAttribute(r)), "string" == typeof n)) { try { n = "true" === n ? !0 : "false" === n ? !1 : "null" === n ? null : +n + "" === n ? +n : I.test(n) ? p.parseJSON(n) : n; } catch (i) {} p.data(e, t, n); } else n = void 0; } return n; } function U(e) { var t; for (t in e) if (("data" !== t || !p.isEmptyObject(e[t])) && "toJSON" !== t) return !1; return !0; } function z(e, t, r, i) { if (p.acceptData(e)) { var s, o, u = p.expando, a = e.nodeType, f = a ? p.cache : e, l = a ? e[u] : e[u] && u; if ((l && f[l] && (i || f[l].data)) || void 0 !== r || "string" != typeof t) return ( l || (l = a ? (e[u] = n.pop() || p.guid++) : u), f[l] || (f[l] = a ? {} : { toJSON: p.noop }), ("object" == typeof t || "function" == typeof t) && (i ? (f[l] = p.extend(f[l], t)) : (f[l].data = p.extend(f[l].data, t))), (o = f[l]), i || (o.data || (o.data = {}), (o = o.data)), void 0 !== r && (o[p.camelCase(t)] = r), "string" == typeof t ? ((s = o[t]), null == s && (s = o[p.camelCase(t)])) : (s = o), s ); } } function W(e, t, n) { if (p.acceptData(e)) { var r, i, s = e.nodeType, o = s ? p.cache : e, u = s ? e[p.expando] : p.expando; if (o[u]) { if (t && (r = n ? o[u] : o[u].data)) { p.isArray(t) ? (t = t.concat(p.map(t, p.camelCase))) : t in r ? (t = [t]) : ((t = p.camelCase(t)), (t = t in r ? [t] : t.split(" "))), (i = t.length); while (i--) delete r[t[i]]; if (n ? !U(r) : !p.isEmptyObject(r)) return; } (n || (delete o[u].data, U(o[u]))) && (s ? p.cleanData([e], !0) : c.deleteExpando || o != o.window ? delete o[u] : (o[u] = null)); } } } function tt() { return !0; } function nt() { return !1; } function rt() { try { return N.activeElement; } catch (e) {} } function it(e) { var t = st.split("|"), n = e.createDocumentFragment(); if (n.createElement) while (t.length) n.createElement(t.pop()); return n; } function Et(e, t) { var n, r, i = 0, s = typeof e.getElementsByTagName !== j ? e.getElementsByTagName(t || "*") : typeof e.querySelectorAll !== j ? e.querySelectorAll(t || "*") : void 0; if (!s) for (s = [], n = e.childNodes || e; null != (r = n[i]); i++) !t || p.nodeName(r, t) ? s.push(r) : p.merge(s, Et(r, t)); return void 0 === t || (t && p.nodeName(e, t)) ? p.merge([e], s) : s; } function St(e) { K.test(e.type) && (e.defaultChecked = e.checked); } function xt(e, t) { return p.nodeName(e, "table") && p.nodeName(11 !== t.nodeType ? t : t.firstChild, "tr") ? e.getElementsByTagName("tbody")[0] || e.appendChild(e.ownerDocument.createElement("tbody")) : e; } function Tt(e) { return (e.type = (null !== p.find.attr(e, "type")) + "/" + e.type), e; } function Nt(e) { var t = mt.exec(e.type); return t ? (e.type = t[1]) : e.removeAttribute("type"), e; } function Ct(e, t) { for (var n, r = 0; null != (n = e[r]); r++) p._data(n, "globalEval", !t || p._data(t[r], "globalEval")); } function kt(e, t) { if (1 === t.nodeType && p.hasData(e)) { var n, r, i, s = p._data(e), o = p._data(t, s), u = s.events; if (u) { delete o.handle, (o.events = {}); for (n in u) for (r = 0, i = u[n].length; i > r; r++) p.event.add(t, n, u[n][r]); } o.data && (o.data = p.extend({}, o.data)); } } function Lt(e, t) { var n, r, i; if (1 === t.nodeType) { if (((n = t.nodeName.toLowerCase()), !c.noCloneEvent && t[p.expando])) { i = p._data(t); for (r in i.events) p.removeEvent(t, r, i.handle); t.removeAttribute(p.expando); } "script" === n && t.text !== e.text ? ((Tt(t).text = e.text), Nt(t)) : "object" === n ? (t.parentNode && (t.outerHTML = e.outerHTML), c.html5Clone && e.innerHTML && !p.trim(t.innerHTML) && (t.innerHTML = e.innerHTML)) : "input" === n && K.test(e.type) ? ((t.defaultChecked = t.checked = e.checked), t.value !== e.value && (t.value = e.value)) : "option" === n ? (t.defaultSelected = t.selected = e.defaultSelected) : ("input" === n || "textarea" === n) && (t.defaultValue = e.defaultValue); } } function Mt(t, n) { var r = p(n.createElement(t)).appendTo(n.body), i = e.getDefaultComputedStyle ? e.getDefaultComputedStyle(r[0]).display : p.css(r[0], "display"); return r.detach(), i; } function _t(e) { var t = N, n = Ot[e]; return ( n || ((n = Mt(e, t)), ("none" !== n && n) || ((At = (At || p("", error: '

The requested content cannot be loaded.
Please try again later.

', closeBtn: '', next: '', prev: '', }, openEffect: "fade", openSpeed: 250, openEasing: "swing", openOpacity: !0, openMethod: "zoomIn", closeEffect: "fade", closeSpeed: 250, closeEasing: "swing", closeOpacity: !0, closeMethod: "zoomOut", nextEffect: "elastic", nextSpeed: 250, nextEasing: "swing", nextMethod: "changeIn", prevEffect: "elastic", prevSpeed: 250, prevEasing: "swing", prevMethod: "changeOut", helpers: { overlay: !0, title: !0 }, onCancel: n.noop, beforeLoad: n.noop, afterLoad: n.noop, beforeShow: n.noop, afterShow: n.noop, beforeChange: n.noop, beforeClose: n.noop, afterClose: n.noop, }, group: {}, opts: {}, previous: null, coming: null, current: null, isActive: !1, isOpen: !1, isOpened: !1, wrap: null, skin: null, outer: null, inner: null, player: { timer: null, isActive: !1 }, ajaxLoad: null, imgPreload: null, transitions: {}, helpers: {}, open: function (e, t) { if (e && (n.isPlainObject(t) || (t = {}), !1 !== o.close(!0))) return ( n.isArray(e) || (e = f(e) ? n(e).get() : [e]), n.each(e, function (i, s) { var u = {}, a, c, h, p, v; "object" === n.type(s) && (s.nodeType && (s = n(s)), f(s) ? ((u = { href: s.data("fancybox-href") || s.attr("href"), title: s.data("fancybox-title") || s.attr("title"), isDom: !0, element: s }), n.metadata && n.extend(!0, u, s.metadata())) : (u = s)); a = t.href || u.href || (l(s) ? s : null); c = t.title !== r ? t.title : u.title || ""; p = (h = t.content || u.content) ? "html" : t.type || u.type; !p && u.isDom && ((p = s.data("fancybox-type")), p || (p = (p = s.prop("class").match(/fancybox\.(\w+)/)) ? p[1] : null)); l(a) && (p || (o.isImage(a) ? (p = "image") : o.isSWF(a) ? (p = "swf") : "#" === a.charAt(0) ? (p = "inline") : l(s) && ((p = "html"), (h = s))), "ajax" === p && ((v = a.split(/\s+/, 2)), (a = v.shift()), (v = v.shift()))); h || ("inline" === p ? (a ? (h = n(l(a) ? a.replace(/.*(?=#[^\s]+$)/, "") : a)) : u.isDom && (h = s)) : "html" === p ? (h = a) : !p && !a && u.isDom && ((p = "inline"), (h = s))); n.extend(u, { href: a, type: p, content: h, title: c, selector: v }); e[i] = u; }), (o.opts = n.extend(!0, {}, o.defaults, t)), t.keys !== r && (o.opts.keys = t.keys ? n.extend({}, o.defaults.keys, t.keys) : !1), (o.group = e), o._start(o.opts.index) ); }, cancel: function () { var e = o.coming; e && !1 !== o.trigger("onCancel") && (o.hideLoading(), o.ajaxLoad && o.ajaxLoad.abort(), (o.ajaxLoad = null), o.imgPreload && (o.imgPreload.onload = o.imgPreload.onerror = null), e.wrap && e.wrap.stop(!0, !0).trigger("onReset").remove(), (o.coming = null), o.current || o._afterZoomOut(e)); }, close: function (e) { o.cancel(); !1 !== o.trigger("beforeClose") && (o.unbindEvents(), o.isActive && (!o.isOpen || !0 === e ? (n(".fancybox-wrap").stop(!0).trigger("onReset").remove(), o._afterZoomOut()) : ((o.isOpen = o.isOpened = !1), (o.isClosing = !0), n(".fancybox-item, .fancybox-nav").remove(), o.wrap.stop(!0, !0).removeClass("fancybox-opened"), o.transitions[o.current.closeMethod]()))); }, play: function (e) { var t = function () { clearTimeout(o.player.timer); }, r = function () { t(); o.current && o.player.isActive && (o.player.timer = setTimeout(o.next, o.current.playSpeed)); }, i = function () { t(); n("body").unbind(".player"); o.player.isActive = !1; o.trigger("onPlayEnd"); }; if (!0 === e || (!o.player.isActive && !1 !== e)) { if (o.current && (o.current.loop || o.current.index < o.group.length - 1)) (o.player.isActive = !0), n("body").bind({ "afterShow.player onUpdate.player": r, "onCancel.player beforeClose.player": i, "beforeLoad.player": t }), r(), o.trigger("onPlayStart"); } else i(); }, next: function (e) { var t = o.current; t && (l(e) || (e = t.direction.next), o.jumpto(t.index + 1, e, "next")); }, prev: function (e) { var t = o.current; t && (l(e) || (e = t.direction.prev), o.jumpto(t.index - 1, e, "prev")); }, jumpto: function (e, t, n) { var i = o.current; i && ((e = h(e)), (o.direction = t || i.direction[e >= i.index ? "next" : "prev"]), (o.router = n || "jumpto"), i.loop && (0 > e && (e = i.group.length + (e % i.group.length)), (e %= i.group.length)), i.group[e] !== r && (o.cancel(), o._start(e))); }, reposition: function (e, t) { var r = o.current, i = r ? r.wrap : null, s; i && ((s = o._getPosition(t)), e && "scroll" === e.type ? (delete s.position, i.stop(!0, !0).animate(s, 200)) : (i.css(s), (r.pos = n.extend({}, r.dim, s)))); }, update: function (e) { var t = e && e.type, n = !t || "orientationchange" === t; n && (clearTimeout(u), (u = null)); o.isOpen && !u && (u = setTimeout( function () { var r = o.current; r && !o.isClosing && (o.wrap.removeClass("fancybox-tmp"), (n || "load" === t || ("resize" === t && r.autoResize)) && o._setDimension(), ("scroll" === t && r.canShrink) || o.reposition(e), o.trigger("onUpdate"), (u = null)); }, n && !a ? 0 : 300 )); }, toggle: function (e) { o.isOpen && ((o.current.fitToView = "boolean" === n.type(e) ? e : !o.current.fitToView), a && (o.wrap.removeAttr("style").addClass("fancybox-tmp"), o.trigger("onUpdate")), o.update()); }, hideLoading: function () { s.unbind(".loading"); n("#fancybox-loading").remove(); }, showLoading: function () { var e, t; o.hideLoading(); e = n('
').click(o.cancel).appendTo("body"); s.bind("keydown.loading", function (e) { if (27 === (e.which || e.keyCode)) e.preventDefault(), o.cancel(); }); o.defaults.fixed || ((t = o.getViewport()), e.css({ position: "absolute", top: 0.5 * t.h + t.y, left: 0.5 * t.w + t.x })); }, getViewport: function () { var t = (o.current && o.current.locked) || !1, n = { x: i.scrollLeft(), y: i.scrollTop() }; t ? ((n.w = t[0].clientWidth), (n.h = t[0].clientHeight)) : ((n.w = a && e.innerWidth ? e.innerWidth : i.width()), (n.h = a && e.innerHeight ? e.innerHeight : i.height())); return n; }, unbindEvents: function () { o.wrap && f(o.wrap) && o.wrap.unbind(".fb"); s.unbind(".fb"); i.unbind(".fb"); }, bindEvents: function () { var e = o.current, t; e && (i.bind("orientationchange.fb" + (a ? "" : " resize.fb") + (e.autoCenter && !e.locked ? " scroll.fb" : ""), o.update), (t = e.keys) && s.bind("keydown.fb", function (i) { var s = i.which || i.keyCode, u = i.target || i.srcElement; if (27 === s && o.coming) return !1; !i.ctrlKey && !i.altKey && !i.shiftKey && !i.metaKey && (!u || (!u.type && !n(u).is("[contenteditable]"))) && n.each(t, function (t, u) { if (1 < e.group.length && u[s] !== r) return o[t](u[s]), i.preventDefault(), !1; if (-1 < n.inArray(s, u)) return o[t](), i.preventDefault(), !1; }); }), n.fn.mousewheel && e.mouseWheel && o.wrap.bind("mousewheel.fb", function (t, r, i, s) { for (var u = n(t.target || null), a = !1; u.length && !a && !u.is(".fancybox-skin") && !u.is(".fancybox-wrap"); ) (a = u[0] && !(u[0].style.overflow && "hidden" === u[0].style.overflow) && ((u[0].clientWidth && u[0].scrollWidth > u[0].clientWidth) || (u[0].clientHeight && u[0].scrollHeight > u[0].clientHeight))), (u = n(u).parent()); if (0 !== r && !a && 1 < o.group.length && !e.canShrink) { if (0 < s || 0 < i) o.prev(0 < s ? "down" : "left"); else if (0 > s || 0 > i) o.next(0 > s ? "up" : "right"); t.preventDefault(); } })); }, trigger: function (e, t) { var r, i = t || o.coming || o.current; if (i) { n.isFunction(i[e]) && (r = i[e].apply(i, Array.prototype.slice.call(arguments, 1))); if (!1 === r) return !1; i.helpers && n.each(i.helpers, function (t, r) { r && o.helpers[t] && n.isFunction(o.helpers[t][e]) && ((r = n.extend(!0, {}, o.helpers[t].defaults, r)), o.helpers[t][e](r, i)); }); n.event.trigger(e + ".fb"); } }, isImage: function (e) { return l(e) && e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$)/i); }, isSWF: function (e) { return l(e) && e.match(/\.(swf)((\?|#).*)?$/i); }, _start: function (e) { var t = {}, r, i, e = h(e); r = o.group[e] || null; if (!r) return !1; t = n.extend(!0, {}, o.opts, r); r = t.margin; i = t.padding; "number" === n.type(r) && (t.margin = [r, r, r, r]); "number" === n.type(i) && (t.padding = [i, i, i, i]); t.modal && n.extend(!0, t, { closeBtn: !1, closeClick: !1, nextClick: !1, arrows: !1, mouseWheel: !1, keys: null, helpers: { overlay: { closeClick: !1 } } }); t.autoSize && (t.autoWidth = t.autoHeight = !0); "auto" === t.width && (t.autoWidth = !0); "auto" === t.height && (t.autoHeight = !0); t.group = o.group; t.index = e; o.coming = t; if (!1 === o.trigger("beforeLoad")) o.coming = null; else { i = t.type; r = t.href; if (!i) return (o.coming = null), o.current && o.router && "jumpto" !== o.router ? ((o.current.index = e), o[o.router](o.direction)) : !1; o.isActive = !0; if ("image" === i || "swf" === i) (t.autoHeight = t.autoWidth = !1), (t.scrolling = "visible"); "image" === i && (t.aspectRatio = !0); "iframe" === i && a && (t.scrolling = "scroll"); t.wrap = n(t.tpl.wrap) .addClass("fancybox-" + (a ? "mobile" : "desktop") + " fancybox-type-" + i + " fancybox-tmp " + t.wrapCSS) .appendTo(t.parent || "body"); n.extend(t, { skin: n(".fancybox-skin", t.wrap), outer: n(".fancybox-outer", t.wrap), inner: n(".fancybox-inner", t.wrap) }); n.each(["Top", "Right", "Bottom", "Left"], function (e, n) { t.skin.css("padding" + n, p(t.padding[e])); }); o.trigger("onReady"); if ("inline" === i || "html" === i) { if (!t.content || !t.content.length) return o._error("content"); } else if (!r) return o._error("href"); "image" === i ? o._loadImage() : "ajax" === i ? o._loadAjax() : "iframe" === i ? o._loadIframe() : o._afterLoad(); } }, _error: function (e) { n.extend(o.coming, { type: "html", autoWidth: !0, autoHeight: !0, minWidth: 0, minHeight: 0, scrolling: "no", hasError: e, content: o.coming.tpl.error }); o._afterLoad(); }, _loadImage: function () { var e = (o.imgPreload = new Image()); e.onload = function () { this.onload = this.onerror = null; o.coming.width = this.width; o.coming.height = this.height; o._afterLoad(); }; e.onerror = function () { this.onload = this.onerror = null; o._error("image"); }; e.src = o.coming.href; !0 !== e.complete && o.showLoading(); }, _loadAjax: function () { var e = o.coming; o.showLoading(); o.ajaxLoad = n.ajax( n.extend({}, e.ajax, { url: e.href, error: function (e, t) { o.coming && "abort" !== t ? o._error("ajax", e) : o.hideLoading(); }, success: function (t, n) { "success" === n && ((e.content = t), o._afterLoad()); }, }) ); }, _loadIframe: function () { var e = o.coming, t = n(e.tpl.iframe.replace(/\{rnd\}/g, new Date().getTime())) .attr("scrolling", a ? "auto" : e.iframe.scrolling) .attr("src", e.href); n(e.wrap).bind("onReset", function () { try { n(this).find("iframe").hide().attr("src", "//about:blank").end().empty(); } catch (e) {} }); e.iframe.preload && (o.showLoading(), t.one("load", function () { n(this).data("ready", 1); a || n(this).bind("load.fb", o.update); n(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(); o._afterLoad(); })); e.content = t.appendTo(e.inner); e.iframe.preload || o._afterLoad(); }, _preloadImages: function () { var e = o.group, t = o.current, n = e.length, r = t.preload ? Math.min(t.preload, n - 1) : 0, i, s; for (s = 1; s <= r; s += 1) (i = e[(t.index + s) % n]), "image" === i.type && i.href && (new Image().src = i.href); }, _afterLoad: function () { var e = o.coming, t = o.current, r, i, s, u, a; o.hideLoading(); if (e && !1 !== o.isActive) if (!1 === o.trigger("afterLoad", e, t)) e.wrap.stop(!0).trigger("onReset").remove(), (o.coming = null); else { t && (o.trigger("beforeChange", t), t.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()); o.unbindEvents(); r = e.content; i = e.type; s = e.scrolling; n.extend(o, { wrap: e.wrap, skin: e.skin, outer: e.outer, inner: e.inner, current: e, previous: t }); u = e.href; switch (i) { case "inline": case "ajax": case "html": e.selector ? (r = n("
").html(r).find(e.selector)) : f(r) && (r.data("fancybox-placeholder") || r.data("fancybox-placeholder", n('
').insertAfter(r).hide()), (r = r.show().detach()), e.wrap.bind("onReset", function () { n(this).find(r).length && r.hide().replaceAll(r.data("fancybox-placeholder")).data("fancybox-placeholder", !1); })); break; case "image": r = e.tpl.image.replace("{href}", u); break; case "swf": (r = ''), (a = ""), n.each(e.swf, function (e, t) { r += ''; a += " " + e + '="' + t + '"'; }), (r += '"); } (!f(r) || !r.parent().is(e.inner)) && e.inner.append(r); o.trigger("beforeShow"); e.inner.css("overflow", "yes" === s ? "scroll" : "no" === s ? "hidden" : s); o._setDimension(); o.reposition(); o.isOpen = !1; o.coming = null; o.bindEvents(); if (o.isOpened) { if (t.prevMethod) o.transitions[t.prevMethod](); } else n(".fancybox-wrap").not(e.wrap).stop(!0).trigger("onReset").remove(); o.transitions[o.isOpened ? e.nextMethod : e.openMethod](); o._preloadImages(); } }, _setDimension: function () { var e = o.getViewport(), t = 0, r = !1, i = !1, r = o.wrap, s = o.skin, u = o.inner, a = o.current, i = a.width, f = a.height, l = a.minWidth, d = a.minHeight, m = a.maxWidth, g = a.maxHeight, y = a.scrolling, w = a.scrollOutside ? a.scrollbarWidth : 0, S = a.margin, x = h(S[1] + S[3]), T = h(S[0] + S[2]), N, C, L, A, O, M, _, D, P; r.add(s).add(u).width("auto").height("auto").removeClass("fancybox-tmp"); S = h(s.outerWidth(!0) - s.width()); N = h(s.outerHeight(!0) - s.height()); C = x + S; L = T + N; A = c(i) ? ((e.w - C) * h(i)) / 100 : i; O = c(f) ? ((e.h - L) * h(f)) / 100 : f; if ("iframe" === a.type) { if (((P = a.content), a.autoHeight && 1 === P.data("ready"))) try { P[0].contentWindow.document.location && (u.width(A).height(9999), (M = P.contents().find("body")), w && M.css("overflow-x", "hidden"), (O = M.height())); } catch (H) {} } else if (a.autoWidth || a.autoHeight) u.addClass("fancybox-tmp"), a.autoWidth || u.width(A), a.autoHeight || u.height(O), a.autoWidth && (A = u.width()), a.autoHeight && (O = u.height()), u.removeClass("fancybox-tmp"); i = h(A); f = h(O); D = A / O; l = h(c(l) ? h(l, "w") - C : l); m = h(c(m) ? h(m, "w") - C : m); d = h(c(d) ? h(d, "h") - L : d); g = h(c(g) ? h(g, "h") - L : g); M = m; _ = g; a.fitToView && ((m = Math.min(e.w - C, m)), (g = Math.min(e.h - L, g))); C = e.w - x; T = e.h - T; a.aspectRatio ? (i > m && ((i = m), (f = h(i / D))), f > g && ((f = g), (i = h(f * D))), i < l && ((i = l), (f = h(i / D))), f < d && ((f = d), (i = h(f * D)))) : ((i = Math.max(l, Math.min(i, m))), a.autoHeight && "iframe" !== a.type && (u.width(i), (f = u.height())), (f = Math.max(d, Math.min(f, g)))); if (a.fitToView) if ((u.width(i).height(f), r.width(i + S), (e = r.width()), (x = r.height()), a.aspectRatio)) for (; (e > C || x > T) && i > l && f > d && !(19 < t++); ) (f = Math.max(d, Math.min(g, f - 10))), (i = h(f * D)), i < l && ((i = l), (f = h(i / D))), i > m && ((i = m), (f = h(i / D))), u.width(i).height(f), r.width(i + S), (e = r.width()), (x = r.height()); else (i = Math.max(l, Math.min(i, i - (e - C)))), (f = Math.max(d, Math.min(f, f - (x - T)))); w && "auto" === y && f < O && i + S + w < C && (i += w); u.width(i).height(f); r.width(i + S); e = r.width(); x = r.height(); r = (e > C || x > T) && i > l && f > d; i = a.aspectRatio ? i < M && f < _ && i < A && f < O : (i < M || f < _) && (i < A || f < O); n.extend(a, { dim: { width: p(e), height: p(x) }, origWidth: A, origHeight: O, canShrink: r, canExpand: i, wPadding: S, hPadding: N, wrapSpace: x - s.outerHeight(!0), skinSpace: s.height() - f }); !P && a.autoHeight && f > d && f < g && !i && u.height("auto"); }, _getPosition: function (e) { var t = o.current, n = o.getViewport(), r = t.margin, i = o.wrap.width() + r[1] + r[3], s = o.wrap.height() + r[0] + r[2], r = { position: "absolute", top: r[0], left: r[3] }; t.autoCenter && t.fixed && !e && s <= n.h && i <= n.w ? (r.position = "fixed") : t.locked || ((r.top += n.y), (r.left += n.x)); r.top = p(Math.max(r.top, r.top + (n.h - s) * t.topRatio)); r.left = p(Math.max(r.left, r.left + (n.w - i) * t.leftRatio)); return r; }, _afterZoomIn: function () { var e = o.current; e && ((o.isOpen = o.isOpened = !0), o.wrap.css("overflow", "visible").addClass("fancybox-opened"), o.update(), (e.closeClick || (e.nextClick && 1 < o.group.length)) && o.inner.css("cursor", "pointer").bind("click.fb", function (t) { !n(t.target).is("a") && !n(t.target).parent().is("a") && (t.preventDefault(), o[e.closeClick ? "close" : "next"]()); }), e.closeBtn && n(e.tpl.closeBtn) .appendTo(o.skin) .bind(a ? "touchstart.fb" : "click.fb", function (e) { e.preventDefault(); o.close(); }), e.arrows && 1 < o.group.length && ((e.loop || 0 < e.index) && n(e.tpl.prev).appendTo(o.outer).bind("click.fb", o.prev), (e.loop || e.index < o.group.length - 1) && n(e.tpl.next).appendTo(o.outer).bind("click.fb", o.next)), o.trigger("afterShow"), !e.loop && e.index === e.group.length - 1 ? o.play(!1) : o.opts.autoPlay && !o.player.isActive && ((o.opts.autoPlay = !1), o.play())); }, _afterZoomOut: function (e) { e = e || o.current; n(".fancybox-wrap").trigger("onReset").remove(); n.extend(o, { group: {}, opts: {}, router: !1, current: null, isActive: !1, isOpened: !1, isOpen: !1, isClosing: !1, wrap: null, skin: null, outer: null, inner: null }); o.trigger("afterClose", e); }, }); o.transitions = { getOrigPosition: function () { var e = o.current, t = e.element, n = e.orig, r = {}, i = 50, s = 50, u = e.hPadding, a = e.wPadding, l = o.getViewport(); !n && e.isDom && t.is(":visible") && ((n = t.find("img:first")), n.length || (n = t)); f(n) ? ((r = n.offset()), n.is("img") && ((i = n.outerWidth()), (s = n.outerHeight()))) : ((r.top = l.y + (l.h - s) * e.topRatio), (r.left = l.x + (l.w - i) * e.leftRatio)); if ("fixed" === o.wrap.css("position") || e.locked) (r.top -= l.y), (r.left -= l.x); return (r = { top: p(r.top - u * e.topRatio), left: p(r.left - a * e.leftRatio), width: p(i + a), height: p(s + u) }); }, step: function (e, t) { var n, r, i = t.prop; r = o.current; var s = r.wrapSpace, u = r.skinSpace; if ("width" === i || "height" === i) (n = t.end === t.start ? 1 : (e - t.start) / (t.end - t.start)), o.isClosing && (n = 1 - n), (r = "width" === i ? r.wPadding : r.hPadding), (r = e - r), o.skin[i](h("width" === i ? r : r - s * n)), o.inner[i](h("width" === i ? r : r - s * n - u * n)); }, zoomIn: function () { var e = o.current, t = e.pos, r = e.openEffect, i = "elastic" === r, s = n.extend({ opacity: 1 }, t); delete s.position; i ? ((t = this.getOrigPosition()), e.openOpacity && (t.opacity = 0.1)) : "fade" === r && (t.opacity = 0.1); o.wrap.css(t).animate(s, { duration: "none" === r ? 0 : e.openSpeed, easing: e.openEasing, step: i ? this.step : null, complete: o._afterZoomIn }); }, zoomOut: function () { var e = o.current, t = e.closeEffect, n = "elastic" === t, r = { opacity: 0.1 }; n && ((r = this.getOrigPosition()), e.closeOpacity && (r.opacity = 0.1)); o.wrap.animate(r, { duration: "none" === t ? 0 : e.closeSpeed, easing: e.closeEasing, step: n ? this.step : null, complete: o._afterZoomOut }); }, changeIn: function () { var e = o.current, t = e.nextEffect, n = e.pos, r = { opacity: 1 }, i = o.direction, s; n.opacity = 0.1; "elastic" === t && ((s = "down" === i || "up" === i ? "top" : "left"), "down" === i || "right" === i ? ((n[s] = p(h(n[s]) - 200)), (r[s] = "+=200px")) : ((n[s] = p(h(n[s]) + 200)), (r[s] = "-=200px"))); "none" === t ? o._afterZoomIn() : o.wrap.css(n).animate(r, { duration: e.nextSpeed, easing: e.nextEasing, complete: function () { setTimeout(o._afterZoomIn, 20); }, }); }, changeOut: function () { var e = o.previous, t = e.prevEffect, r = { opacity: 0.1 }, i = o.direction; "elastic" === t && (r["down" === i || "up" === i ? "top" : "left"] = ("up" === i || "left" === i ? "-" : "+") + "=200px"); e.wrap.animate(r, { duration: "none" === t ? 0 : e.prevSpeed, easing: e.prevEasing, complete: function () { n(this).trigger("onReset").remove(); }, }); }, }; o.helpers.overlay = { defaults: { closeClick: !0, speedOut: 200, showEarly: !0, css: {}, locked: !a, fixed: !0 }, overlay: null, fixed: !1, create: function (e) { e = n.extend({}, this.defaults, e); this.overlay && this.close(); this.overlay = n('
').appendTo("body"); this.fixed = !1; e.fixed && o.defaults.fixed && (this.overlay.addClass("fancybox-overlay-fixed"), (this.fixed = !0)); }, open: function (e) { var t = this, e = n.extend({}, this.defaults, e); this.overlay ? this.overlay.unbind(".overlay").width("auto").height("auto") : this.create(e); this.fixed || (i.bind("resize.overlay", n.proxy(this.update, this)), this.update()); e.closeClick && this.overlay.bind("click.overlay", function (e) { n(e.target).hasClass("fancybox-overlay") && (o.isActive ? o.close() : t.close()); }); this.overlay.css(e.css).show(); }, close: function () { n(".fancybox-overlay").remove(); i.unbind("resize.overlay"); this.overlay = null; !1 !== this.margin && (n("body").css("margin-right", this.margin), (this.margin = !1)); this.el && this.el.removeClass("fancybox-lock"); }, update: function () { var e = "100%", r; this.overlay.width(e).height("100%"); n.browser.msie ? ((r = Math.max(t.documentElement.offsetWidth, t.body.offsetWidth)), s.width() > r && (e = s.width())) : s.width() > i.width() && (e = s.width()); this.overlay.width(e).height(s.height()); }, onReady: function (e, r) { n(".fancybox-overlay").stop(!0, !0); this.overlay || ((this.margin = s.height() > i.height() || "scroll" === n("body").css("overflow-y") ? n("body").css("margin-right") : !1), (this.el = t.all && !t.querySelector ? n("html") : n("body")), this.create(e)); e.locked && this.fixed && ((r.locked = this.overlay.append(r.wrap)), (r.fixed = !1)); !0 === e.showEarly && this.beforeShow.apply(this, arguments); }, beforeShow: function (e, t) { t.locked && (this.el.addClass("fancybox-lock"), !1 !== this.margin && n("body").css("margin-right", h(this.margin) + t.scrollbarWidth)); this.open(e); }, onUpdate: function () { this.fixed || this.update(); }, afterClose: function (e) { this.overlay && !o.isActive && this.overlay.fadeOut(e.speedOut, n.proxy(this.close, this)); }, }; o.helpers.title = { defaults: { type: "float", position: "bottom" }, beforeShow: function (e) { var t = o.current, r = t.title, i = e.type; n.isFunction(r) && (r = r.call(t.element, t)); if (l(r) && "" !== n.trim(r)) { t = n('
' + r + "
"); switch (i) { case "inside": i = o.skin; break; case "outside": i = o.wrap; break; case "over": i = o.inner; break; default: (i = o.skin), t.appendTo("body"), n.browser.msie && t.width(t.width()), t.wrapInner(''), (o.current.margin[2] += Math.abs(h(t.css("margin-bottom")))); } t["top" === e.position ? "prependTo" : "appendTo"](i); } }, }; n.fn.fancybox = function (e) { var t, r = n(this), i = this.selector || "", u = function (s) { var u = n(this).blur(), a = t, f, l; !s.ctrlKey && !s.altKey && !s.shiftKey && !s.metaKey && !u.is(".fancybox-wrap") && ((f = e.groupAttr || "data-fancybox-group"), (l = u.attr(f)), l || ((f = "rel"), (l = u.get(0)[f])), l && "" !== l && "nofollow" !== l && ((u = i.length ? n(i) : r), (u = u.filter("[" + f + '="' + l + '"]')), (a = u.index(this))), (e.index = a), !1 !== o.open(u, e) && s.preventDefault()); }, e = e || {}; t = e.index || 0; !i || !1 === e.live ? r.unbind("click.fb-start").bind("click.fb-start", u) : s.undelegate(i, "click.fb-start").delegate(i + ":not('.fancybox-item, .fancybox-nav')", "click.fb-start", u); this.filter("[data-fancybox-start=1]").trigger("click"); return this; }; s.ready(function () { n.scrollbarWidth === r && (n.scrollbarWidth = function () { var e = n('
').appendTo("body"), t = e.children(), t = t.innerWidth() - t.height(99).innerWidth(); e.remove(); return t; }); if (n.support.fixedPosition === r) { var e = n.support, t = n('
').appendTo("body"), i = 20 === t[0].offsetTop || 15 === t[0].offsetTop; t.remove(); e.fixedPosition = i; } n.extend(o.defaults, { scrollbarWidth: n.scrollbarWidth(), fixed: n.support.fixedPosition, parent: n("body") }); }); })(window, document, jQuery); eval( (function (e, t, n, r, i, s) { i = function (e) { return (e < t ? "" : i(parseInt(e / t))) + ((e = e % t) > 35 ? String.fromCharCode(e + 29) : e.toString(36)); }; if (!"".replace(/^/, String)) { while (n--) s[i(n)] = r[n] || i(n); r = [ function (e) { return s[e]; }, ]; i = function () { return "\\w+"; }; n = 1; } while (n--) if (r[n]) e = e.replace(new RegExp("\\b" + i(n) + "\\b", "g"), r[n]); return e; })( '7(A 3c.3q!=="9"){3c.3q=9(e){9 t(){}t.5S=e;p 5R t}}(9(e,t,n){h r={1N:9(t,n){h r=c;r.$k=e(n);r.6=e.4M({},e.37.2B.6,r.$k.v(),t);r.2A=t;r.4L()},4L:9(){9 r(e){h n,r="";7(A t.6.33==="9"){t.6.33.R(c,[e])}l{1A(n 38 e.d){7(e.d.5M(n)){r+=e.d[n].1K}}t.$k.2y(r)}t.3t()}h t=c,n;7(A t.6.2H==="9"){t.6.2H.R(c,[t.$k])}7(A t.6.2O==="2Y"){n=t.6.2O;e.5K(n,r)}l{t.3t()}},3t:9(){h e=c;e.$k.v("d-4I",e.$k.2x("2w")).v("d-4F",e.$k.2x("H"));e.$k.z({2u:0});e.2t=e.6.q;e.4E();e.5v=0;e.1X=14;e.23()},23:9(){h e=c;7(e.$k.25().N===0){p b}e.1M();e.4C();e.$S=e.$k.25();e.E=e.$S.N;e.4B();e.$G=e.$k.17(".d-1K");e.$K=e.$k.17(".d-1p");e.3u="U";e.13=0;e.26=[0];e.m=0;e.4A();e.4z()},4z:9(){h e=c;e.2V();e.2W();e.4t();e.30();e.4r();e.4q();e.2p();e.4o();7(e.6.2o!==b){e.4n(e.6.2o)}7(e.6.O===j){e.6.O=4Q}e.19();e.$k.17(".d-1p").z("4i","4h");7(!e.$k.2m(":3n")){e.3o()}l{e.$k.z("2u",1)}e.5O=b;e.2l();7(A e.6.3s==="9"){e.6.3s.R(c,[e.$k])}},2l:9(){h e=c;7(e.6.1Z===j){e.1Z()}7(e.6.1B===j){e.1B()}e.4g();7(A e.6.3w==="9"){e.6.3w.R(c,[e.$k])}},3x:9(){h e=c;7(A e.6.3B==="9"){e.6.3B.R(c,[e.$k])}e.3o();e.2V();e.2W();e.4f();e.30();e.2l();7(A e.6.3D==="9"){e.6.3D.R(c,[e.$k])}},3F:9(){h e=c;t.1c(9(){e.3x()},0)},3o:9(){h e=c;7(e.$k.2m(":3n")===b){e.$k.z({2u:0});t.18(e.1C);t.18(e.1X)}l{p b}e.1X=t.4d(9(){7(e.$k.2m(":3n")){e.3F();e.$k.4b({2u:1},2M);t.18(e.1X)}},5x)},4B:9(){h e=c;e.$S.5n(\'\').4a(\'\');e.$k.17(".d-1p").4a(\'\');e.1H=e.$k.17(".d-1p-49");e.$k.z("4i","4h")},1M:9(){h e=c,t=e.$k.1I(e.6.1M),n=e.$k.1I(e.6.2i);7(!t){e.$k.I(e.6.1M)}7(!n){e.$k.I(e.6.2i)}},2V:9(){h t=c,n,r;7(t.6.2Z===b){p b}7(t.6.48===j){t.6.q=t.2t=1;t.6.1h=b;t.6.1s=b;t.6.1O=b;t.6.22=b;t.6.1Q=b;t.6.1R=b;p b}n=e(t.6.47).1f();7(n>(t.6.1s[0]||t.2t)){t.6.q=t.2t}7(t.6.1h!==b){t.6.1h.5g(9(e,t){p e[0]-t[0]});1A(r=0;rt.E&&t.6.46===j){t.6.q=t.E}},4r:9(){h n=c,r,i;7(n.6.2Z!==j){p b}i=e(t).1f();n.3d=9(){7(e(t).1f()!==i){7(n.6.O!==b){t.18(n.1C)}t.5d(r);r=t.1c(9(){i=e(t).1f();n.3x()},n.6.45)}};e(t).44(n.3d)},4f:9(){h e=c;e.2g(e.m);7(e.6.O!==b){e.3j()}},43:9(){h t=c,n=0,r=t.E-t.6.q;t.$G.2f(9(i){h s=e(c);s.z({1f:t.M}).v("d-1K",3p(i));7(i%t.6.q===0||i===r){7(!(i>r)){n+=1}}s.v("d-24",n)})},42:9(){h e=c,t=e.$G.N*e.M;e.$K.z({1f:t*2,T:0});e.43()},2W:9(){h e=c;e.40();e.42();e.3Z();e.3v()},40:9(){h e=c;e.M=1F.4O(e.$k.1f()/e.6.q)},3v:9(){h e=c,t=(e.E*e.M-e.6.q*e.M)*-1;7(e.6.q>e.E){e.D=0;t=0;e.3z=0}l{e.D=e.E-e.6.q;e.3z=t}p t},3Y:9(){p 0},3Z:9(){h t=c,n=0,r=0,i,s,o;t.J=[0];t.3E=[];1A(i=0;i\').5m("5l",!t.F.15).5c(t.$k)}7(t.6.1v===j){t.3T()}7(t.6.2a===j){t.3S()}},3S:9(){h t=c,n=e(\'\');t.B.1o(n);t.1u=e("",{"H":"d-1n",2y:t.6.2U[0]||""});t.1q=e("",{"H":"d-U",2y:t.6.2U[1]||""});n.1o(t.1u).1o(t.1q);n.w("2X.B 21.B",\'L[H^="d"]\',9(e){e.1l()});n.w("2n.B 28.B",\'L[H^="d"]\',9(n){n.1l();7(e(c).1I("d-U")){t.U()}l{t.1n()}})},3T:9(){h t=c;t.1k=e(\'\');t.B.1o(t.1k);t.1k.w("2n.B 28.B",".d-1j",9(n){n.1l();7(3p(e(c).v("d-1j"))!==t.m){t.1g(3p(e(c).v("d-1j")),j)}})},3P:9(){h t=c,n,r,i,s,o,u;7(t.6.1v===b){p b}t.1k.2y("");n=0;r=t.E-t.E%t.6.q;1A(s=0;s",{"H":"d-1j"});u=e("<3N>",{4R:t.6.39===j?n:"","H":t.6.39===j?"d-59":""});o.1o(u);o.v("d-1j",r===s?i:s);o.v("d-24",n);t.1k.1o(o)}}t.35()},35:9(){h t=c;7(t.6.1v===b){p b}t.1k.17(".d-1j").2f(9(){7(e(c).v("d-24")===e(t.$G[t.m]).v("d-24")){t.1k.17(".d-1j").Z("2d");e(c).I("2d")}})},3e:9(){h e=c;7(e.6.2a===b){p b}7(e.6.2e===b){7(e.m===0&&e.D===0){e.1u.I("1b");e.1q.I("1b")}l 7(e.m===0&&e.D!==0){e.1u.I("1b");e.1q.Z("1b")}l 7(e.m===e.D){e.1u.Z("1b");e.1q.I("1b")}l 7(e.m!==0&&e.m!==e.D){e.1u.Z("1b");e.1q.Z("1b")}}},30:9(){h e=c;e.3P();e.3e();7(e.B){7(e.6.q>=e.E){e.B.3K()}l{e.B.3J()}}},55:9(){h e=c;7(e.B){e.B.3k()}},U:9(e){h t=c;7(t.1E){p b}t.m+=t.6.12===j?t.6.q:1;7(t.m>t.D+(t.6.12===j?t.6.q-1:0)){7(t.6.2e===j){t.m=0;e="2k"}l{t.m=t.D;p b}}t.1g(t.m,e)},1n:9(e){h t=c;7(t.1E){p b}7(t.6.12===j&&t.m>0&&t.m=i.D){e=i.D}l 7(e<=0){e=0}i.m=i.d.m=e;7(i.6.2o!==b&&r!=="4e"&&i.6.q===1&&i.F.1x===j){i.1t(0);7(i.F.1x===j){i.1L(i.J[e])}l{i.1r(i.J[e],1)}i.2r();i.4l();p b}s=i.J[e];7(i.F.1x===j){i.1T=b;7(n===j){i.1t("1w");t.1c(9(){i.1T=j},i.6.1w)}l 7(n==="2k"){i.1t(i.6.2v);t.1c(9(){i.1T=j},i.6.2v)}l{i.1t("1m");t.1c(9(){i.1T=j},i.6.1m)}i.1L(s)}l{7(n===j){i.1r(s,i.6.1w)}l 7(n==="2k"){i.1r(s,i.6.2v)}l{i.1r(s,i.6.1m)}}i.2r()},2g:9(e){h t=c;7(A t.6.1Y==="9"){t.6.1Y.R(c,[t.$k])}7(e>=t.D||e===-1){e=t.D}l 7(e<=0){e=0}t.1t(0);7(t.F.1x===j){t.1L(t.J[e])}l{t.1r(t.J[e],1)}t.m=t.d.m=e;t.2r()},2r:9(){h e=c;e.26.2D(e.m);e.13=e.d.13=e.26[e.26.N-2];e.26.5f(0);7(e.13!==e.m){e.35();e.3e();e.2l();7(e.6.O!==b){e.3j()}}7(A e.6.3y==="9"&&e.13!==e.m){e.6.3y.R(c,[e.$k])}},X:9(){h e=c;e.3A="X";t.18(e.1C)},3j:9(){h e=c;7(e.3A!=="X"){e.19()}},19:9(){h e=c;e.3A="19";7(e.6.O===b){p b}t.18(e.1C);e.1C=t.4d(9(){e.U(j)},e.6.O)},1t:9(e){h t=c;7(e==="1m"){t.$K.z(t.2z(t.6.1m))}l 7(e==="1w"){t.$K.z(t.2z(t.6.1w))}l 7(A e!=="2Y"){t.$K.z(t.2z(e))}},2z:9(e){p{"-1G-1a":"2C "+e+"1z 2s","-1W-1a":"2C "+e+"1z 2s","-o-1a":"2C "+e+"1z 2s",1a:"2C "+e+"1z 2s"}},3H:9(){p{"-1G-1a":"","-1W-1a":"","-o-1a":"",1a:""}},3I:9(e){p{"-1G-P":"1i("+e+"V, C, C)","-1W-P":"1i("+e+"V, C, C)","-o-P":"1i("+e+"V, C, C)","-1z-P":"1i("+e+"V, C, C)",P:"1i("+e+"V, C,C)"}},1L:9(e){h t=c;t.$K.z(t.3I(e))},3L:9(e){h t=c;t.$K.z({T:e})},1r:9(e,t){h n=c;n.29=b;n.$K.X(j,j).4b({T:e},{54:t||n.6.1m,3M:9(){n.29=j}})},4E:9(){h e=c,r="1i(C, C, C)",i=n.56("L"),s,o,u,a;i.2w.3O=" -1W-P:"+r+"; -1z-P:"+r+"; -o-P:"+r+"; -1G-P:"+r+"; P:"+r;s=/1i\\(C, C, C\\)/g;o=i.2w.3O.5i(s);u=o!==14&&o.N===1;a="5z"38 t||t.5Q.4P;e.F={1x:u,15:a}},4q:9(){h e=c;7(e.6.27!==b||e.6.1U!==b){e.3Q();e.3R()}},4C:9(){h e=c,t=["s","e","x"];e.16={};7(e.6.27===j&&e.6.1U===j){t=["2X.d 21.d","2N.d 3U.d","2n.d 3V.d 28.d"]}l 7(e.6.27===b&&e.6.1U===j){t=["2X.d","2N.d","2n.d 3V.d"]}l 7(e.6.27===j&&e.6.1U===b){t=["21.d","3U.d","28.d"]}e.16.3W=t[0];e.16.2K=t[1];e.16.2J=t[2]},3R:9(){h t=c;t.$k.w("5y.d",9(e){e.1l()});t.$k.w("21.3X",9(t){p e(t.1d).2m("5C, 5E, 5F, 5N")})},3Q:9(){9 s(e){7(e.2b!==W){p{x:e.2b[0].2c,y:e.2b[0].41}}7(e.2b===W){7(e.2c!==W){p{x:e.2c,y:e.41}}7(e.2c===W){p{x:e.52,y:e.53}}}}9 o(t){7(t==="w"){e(n).w(r.16.2K,a);e(n).w(r.16.2J,f)}l 7(t==="Q"){e(n).Q(r.16.2K);e(n).Q(r.16.2J)}}9 u(n){h u=n.3h||n||t.3g,a;7(u.5a===3){p b}7(r.E<=r.6.q){p}7(r.29===b&&!r.6.3f){p b}7(r.1T===b&&!r.6.3f){p b}7(r.6.O!==b){t.18(r.1C)}7(r.F.15!==j&&!r.$K.1I("3b")){r.$K.I("3b")}r.11=0;r.Y=0;e(c).z(r.3H());a=e(c).2h();i.2S=a.T;i.2R=s(u).x-a.T;i.2P=s(u).y-a.5o;o("w");i.2j=b;i.2L=u.1d||u.4c}9 a(o){h u=o.3h||o||t.3g,a,f;r.11=s(u).x-i.2R;r.2I=s(u).y-i.2P;r.Y=r.11-i.2S;7(A r.6.2E==="9"&&i.3C!==j&&r.Y!==0){i.3C=j;r.6.2E.R(r,[r.$k])}7((r.Y>8||r.Y<-8)&&r.F.15===j){7(u.1l!==W){u.1l()}l{u.5L=b}i.2j=j}7((r.2I>10||r.2I<-10)&&i.2j===b){e(n).Q("2N.d")}a=9(){p r.Y/5};f=9(){p r.3z+r.Y/5};r.11=1F.3v(1F.3Y(r.11,a()),f());7(r.F.1x===j){r.1L(r.11)}l{r.3L(r.11)}}9 f(n){h s=n.3h||n||t.3g,u,a,f;s.1d=s.1d||s.4c;i.3C=b;7(r.F.15!==j){r.$K.Z("3b")}7(r.Y<0){r.1y=r.d.1y="T"}l{r.1y=r.d.1y="3i"}7(r.Y!==0){u=r.4j();r.1g(u,b,"4e");7(i.2L===s.1d&&r.F.15!==j){e(s.1d).w("3a.4k",9(t){t.4S();t.4T();t.1l();e(t.1d).Q("3a.4k")});a=e.4N(s.1d,"4V").3a;f=a.4W();a.4X(0,0,f)}}o("Q")}h r=c,i={2R:0,2P:0,4Y:0,2S:0,2h:14,4Z:14,50:14,2j:14,51:14,2L:14};r.29=j;r.$k.w(r.16.3W,".d-1p",u)},4j:9(){h e=c,t=e.4m();7(t>e.D){e.m=e.D;t=e.D}l 7(e.11>=0){t=0;e.m=0}p t},4m:9(){h t=c,n=t.6.12===j?t.3E:t.J,r=t.11,i=14;e.2f(n,9(s,o){7(r-t.M/20>n[s+1]&&r-t.M/20(n[s+1]||n[s]-t.M)&&t.34()==="3i"){7(t.6.12===j){i=n[s+1]||n[n.N-1];t.m=e.4p(i,t.J)}l{i=n[s+1];t.m=s+1}}});p t.m},34:9(){h e=c,t;7(e.Y<0){t="3i";e.3u="U"}l{t="T";e.3u="1n"}p t},4A:9(){h e=c;e.$k.w("d.U",9(){e.U()});e.$k.w("d.1n",9(){e.1n()});e.$k.w("d.19",9(t,n){e.6.O=n;e.19();e.32="19"});e.$k.w("d.X",9(){e.X();e.32="X"});e.$k.w("d.1g",9(t,n){e.1g(n)});e.$k.w("d.2g",9(t,n){e.2g(n)})},2p:9(){h e=c;7(e.6.2p===j&&e.F.15!==j&&e.6.O!==b){e.$k.w("57",9(){e.X()});e.$k.w("58",9(){7(e.32!=="X"){e.19()}})}},1Z:9(){h t=c,n,r,i,s,o;7(t.6.1Z===b){p b}1A(n=0;n=t.m}l{o=j}7(o&&i=n.$S.N||r===-1){n.$S.1S(-1).5X(e)}l{n.$S.1S(r).5Y(e)}n.23()},5Z:9(e){h t=c,n;7(t.$k.25().N===0){p b}7(e===W||e===-1){n=-1}l{n=e}t.1V();t.$S.1S(n).3k();t.23()}};e.37.2B=9(t){p c.2f(9(){7(e(c).v("d-1N")===j){p b}e(c).v("d-1N",j);h n=3c.3q(r);n.1N(t,c);e.v(c,"2B",n)})};e.37.2B.6={q:5,1h:b,1s:[60,4],1O:[61,3],22:[62,2],1Q:b,1R:[63,1],48:b,46:b,1m:2M,1w:64,2v:65,O:b,2p:b,2a:b,2U:["1n","U"],2e:j,12:b,1v:j,39:b,2Z:j,45:2M,47:t,1M:"d-66",2i:"d-2i",1Z:b,4v:j,4x:"4y",1B:b,2O:b,33:b,3f:j,27:j,1U:j,2F:b,2o:b,3B:b,3D:b,2H:b,3s:b,1Y:b,3y:b,3w:b,2E:b,2T:b}})(67,68,69)', 62, 382, "||||||options|if||function||false|this|owl||||var||true|elem|else|currentItem|||return|items|||||data|on|||css|typeof|owlControls|0px|maximumItem|itemsAmount|browser|owlItems|class|addClass|positionsInArray|owlWrapper|div|itemWidth|length|autoPlay|transform|off|apply|userItems|left|next|px|undefined|stop|newRelativeX|removeClass||newPosX|scrollPerPage|prevItem|null|isTouch|ev_types|find|clearInterval|play|transition|disabled|setTimeout|target|loaded|width|goTo|itemsCustom|translate3d|page|paginationWrapper|preventDefault|slideSpeed|prev|append|wrapper|buttonNext|css2slide|itemsDesktop|swapSpeed|buttonPrev|pagination|paginationSpeed|support3d|dragDirection|ms|for|autoHeight|autoPlayInterval|visibleItems|isTransition|Math|webkit|wrapperOuter|hasClass|src|item|transition3d|baseClass|init|itemsDesktopSmall|origin|itemsTabletSmall|itemsMobile|eq|isCss3Finish|touchDrag|unWrap|moz|checkVisible|beforeMove|lazyLoad||mousedown|itemsTablet|setVars|roundPages|children|prevArr|mouseDrag|mouseup|isCssFinish|navigation|touches|pageX|active|rewindNav|each|jumpTo|position|theme|sliding|rewind|eachMoveUpdate|is|touchend|transitionStyle|stopOnHover|100|afterGo|ease|orignalItems|opacity|rewindSpeed|style|attr|html|addCssSpeed|userOptions|owlCarousel|all|push|startDragging|addClassActive|height|beforeInit|newPosY|end|move|targetElement|200|touchmove|jsonPath|offsetY|completeImg|offsetX|relativePos|afterLazyLoad|navigationText|updateItems|calculateAll|touchstart|string|responsive|updateControls|clearTransStyle|hoverStatus|jsonSuccess|moveDirection|checkPagination|endCurrent|fn|in|paginationNumbers|click|grabbing|Object|resizer|checkNavigation|dragBeforeAnimFinish|event|originalEvent|right|checkAp|remove|get|endPrev|visible|watchVisibility|Number|create|unwrap|afterInit|logIn|playDirection|max|afterAction|updateVars|afterMove|maximumPixels|apStatus|beforeUpdate|dragging|afterUpdate|pagesInArray|reload|clearEvents|removeTransition|doTranslate|show|hide|css2move|complete|span|cssText|updatePagination|gestures|disabledEvents|buildButtons|buildPagination|mousemove|touchcancel|start|disableTextSelect|min|loops|calculateWidth|pageY|appendWrapperSizes|appendItemsSizes|resize|responsiveRefreshRate|itemsScaleUp|responsiveBaseWidth|singleItem|outer|wrap|animate|srcElement|setInterval|drag|updatePosition|onVisibleItems|block|display|getNewPosition|disable|singleItemTransition|closestItem|transitionTypes|owlStatus|inArray|moveEvents|response|continue|buildControls|loading|lazyFollow|lazyPreload|lazyEffect|fade|onStartup|customEvents|wrapItems|eventTypes|naturalWidth|checkBrowser|originalClasses|outClass|inClass|originalStyles|abs|perspective|loadContent|extend|_data|round|msMaxTouchPoints|5e3|text|stopImmediatePropagation|stopPropagation|buttons|events|pop|splice|baseElWidth|minSwipe|maxSwipe|dargging|clientX|clientY|duration|destroyControls|createElement|mouseover|mouseout|numbers|which|lazyOwl|appendTo|clearTimeout|checked|shift|sort|removeAttr|match|fadeIn|400|clickable|toggleClass|wrapAll|top|prop|tagName|DIV|background|image|url|wrapperWidth|img|500|dragstart|ontouchstart|controls|out|input|relative|textarea|select|webkitAnimationEnd|oAnimationEnd|MSAnimationEnd|animationend|getJSON|returnValue|hasOwnProperty|option|onstartup|baseElement|navigator|new|prototype|destroy|removeData|reinit|addItem|after|before|removeItem|1199|979|768|479|800|1e3|carousel|jQuery|window|document".split( "|" ), 0, {} ) ); var Layout = (function () { function m() { $(".header .navbar-toggle span:nth-child(2)").addClass("short-icon-bar"); $(".header .navbar-toggle span:nth-child(4)").addClass("short-icon-bar"); } function g() { if (!jQuery().uniform) { return; } var e = $("input[type=checkbox]:not(.toggle), input[type=radio]:not(.toggle, .star)"); if (e.size() > 0) { e.each(function () { if ($(this).parents(".checker").size() == 0) { $(this).show(); $(this).uniform(); } }); } } var e = false; var t = false; var n = false; var r = false; var i = true; var s = []; var o = function () { if ($("body").css("direction") === "rtl") { e = true; } t = !!navigator.userAgent.match(/MSIE 8.0/); n = !!navigator.userAgent.match(/MSIE 9.0/); r = !!navigator.userAgent.match(/MSIE 10.0/); if (r) { jQuery("html").addClass("ie10"); } }; var u = function () { jQuery("body").on("click", ".portlet > .portlet-title > .tools > a.remove", function (e) { e.preventDefault(); jQuery(this).closest(".portlet").remove(); }); jQuery("body").on("click", ".portlet > .portlet-title > .tools > a.reload", function (e) { e.preventDefault(); var t = jQuery(this).closest(".portlet").children(".portlet-body"); var n = jQuery(this).attr("data-url"); var r = $(this).attr("data-error-display"); if (n) { Metronic.blockUI({ target: t, iconOnly: true }); $.ajax({ type: "GET", cache: false, url: n, dataType: "html", success: function (e) { Metronic.unblockUI(t); t.html(e); }, error: function (e, n, i) { Metronic.unblockUI(t); var s = "Error on reloading the content. Please check your connection and try again."; if (r == "toastr" && toastr) { toastr.error(s); } else if (r == "notific8" && $.notific8) { $.notific8("zindex", 11500); $.notific8(s, { theme: "ruby", life: 3e3 }); } else { alert(s); } }, }); } else { Metronic.blockUI({ target: t, iconOnly: true }); window.setTimeout(function () { Metronic.unblockUI(t); }, 1e3); } }); $('.portlet .portlet-title a.reload[data-load="true"]').click(); jQuery("body").on("click", ".portlet > .portlet-title > .tools > .collapse, .portlet .portlet-title > .tools > .expand", function (e) { e.preventDefault(); var t = jQuery(this).closest(".portlet").children(".portlet-body"); if (jQuery(this).hasClass("collapse")) { jQuery(this).removeClass("collapse").addClass("expand"); t.slideUp(200); } else { jQuery(this).removeClass("expand").addClass("collapse"); t.slideDown(200); } }); }; var a = function () { for (var e in s) { var t = s[e]; t.call(); } }; var f = function () { var e; if (t) { var n; $(window).resize(function () { if (n == document.documentElement.clientHeight) { return; } if (e) { clearTimeout(e); } e = setTimeout(function () { a(); }, 50); n = document.documentElement.clientHeight; }); } else { $(window).resize(function () { if (e) { clearTimeout(e); } e = setTimeout(function () { a(); }, 50); }); } }; var l = function () { if (t || n) { jQuery("input[placeholder]:not(.placeholder-no-fix), textarea[placeholder]:not(.placeholder-no-fix)").each(function () { var e = jQuery(this); if (e.val() == "" && e.attr("placeholder") != "") { e.addClass("placeholder").val(e.attr("placeholder")); } e.focus(function () { if (e.val() == e.attr("placeholder")) { e.val(""); } }); e.blur(function () { if (e.val() == "" || e.val() == e.attr("placeholder")) { e.val(e.attr("placeholder")); } }); }); } }; var c = function () { $(".scroller").each(function () { var t; if ($(this).attr("data-height")) { t = $(this).attr("data-height"); } else { t = $(this).css("height"); } $(this).slimScroll({ allowPageScroll: true, size: "7px", color: $(this).attr("data-handle-color") ? $(this).attr("data-handle-color") : "#bbb", railColor: $(this).attr("data-rail-color") ? $(this).attr("data-rail-color") : "#eaeaea", position: e ? "left" : "right", height: t, alwaysVisible: $(this).attr("data-always-visible") == "1" ? true : false, railVisible: $(this).attr("data-rail-visible") == "1" ? true : false, disableFadeOut: true, }); }); }; var h = function () { $(".search-btn").click(function () { if ($(".search-btn").hasClass("show-search-icon")) { if ($(window).width() > 767) { $(".search-box").fadeOut(300); } else { $(".search-box").fadeOut(0); } $(".search-btn").removeClass("show-search-icon"); } else { if ($(window).width() > 767) { $(".search-box").fadeIn(300); } else { $(".search-box").fadeIn(0); } $(".search-btn").addClass("show-search-icon"); } }); }; var p = function () { $(".header .navbar-toggle").click(function () { if ($(".header .navbar-collapse").hasClass("open")) { $(".header .navbar-collapse").slideDown(300).removeClass("open"); } else { $(".header .navbar-collapse").slideDown(300).addClass("open"); } }); }; var d = function () { $(".header-navigation .dropdown").on("hover", function () { if ($(this).children(".header-navigation-content-ext").show()) { if ($(".header-navigation-content-ext").height() >= $(".header-navigation-description").height()) { $(".header-navigation-description").css("height", $(".header-navigation-content-ext").height() + 22); } } }); }; var v = function () { $(".sidebar .dropdown a i").click(function (e) { e.preventDefault(); if ($(this).parent("a").hasClass("collapsed") == false) { $(this).parent("a").addClass("collapsed"); $(this).parent("a").siblings(".dropdown-menu").slideDown(300); } else { $(this).parent("a").removeClass("collapsed"); $(this).parent("a").siblings(".dropdown-menu").slideUp(300); } }); }; var y = function () { jQuery(".fancybox-fast-view").fancybox(); if (!jQuery.fancybox) { return; } if (jQuery(".fancybox-button").size() > 0) { jQuery(".fancybox-button").fancybox({ groupAttr: "data-rel", prevEffect: "none", nextEffect: "none", closeBtn: true, helpers: { title: { type: "inside" } } }); $(".fancybox-video").fancybox({ type: "iframe" }); } }; var b = function () { jQuery("body").on("shown.bs.collapse", ".accordion.scrollable", function (e) { Layout.scrollTo($(e.target), -100); }); }; var w = function () { $("body").on("shown.bs.tab", ".nav.nav-tabs", function () { handleSidebarAndContentHeight(); }); if (location.hash) { var e = location.hash.substr(1); $('a[href="#' + e + '"]').click(); } }; var E = function () { $(".mobi-toggler").on("click", function (e) { e.preventDefault(); $(".header").toggleClass("menuOpened"); $(".header").find(".header-navigation").toggle(300); }); }; var S = function () { var e = $(".color-panel"); var t = function (e) { $("#style-color").attr("href", "../../assets/frontend/layout/css/themes/" + e + ".css"); $(".corporate .site-logo img").attr("src", "../../assets/frontend/layout/img/logos/logo-corp-" + e + ".png"); $(".ecommerce .site-logo img").attr("src", "../../assets/frontend/layout/img/logos/logo-shop-" + e + ".png"); }; $(".icon-color", e).click(function () { $(".color-mode").show(); $(".icon-color-close").show(); }); $(".icon-color-close", e).click(function () { $(".color-mode").hide(); $(".icon-color-close").hide(); }); $("li", e).click(function () { var n = $(this).attr("data-style"); t(n); $(".inline li", e).removeClass("current"); $(this).addClass("current"); }); }; return { init: function () { S(); o(); f(); l(); h(); y(); m(); v(); b(); p(); c(); d(); E(); u(); }, initUniform: function (e) { if (e) { jQuery(e).each(function () { if ($(this).parents(".checker").size() == 0) { $(this).show(); $(this).uniform(); } }); } else { g(); } }, initTouchspin: function () { $(".product-quantity .form-control").TouchSpin({ buttondown_class: "btn quantity-down", buttonup_class: "btn quantity-up" }); $(".quantity-down").html(""); $(".quantity-up").html(""); }, initFixHeaderWithPreHeader: function () { jQuery(window).scroll(function () { if (jQuery(window).scrollTop() > 37) { jQuery("body").addClass("page-header-fixed"); } else { jQuery("body").removeClass("page-header-fixed"); } }); }, initNavScrolling: function () { function e() { if (jQuery(window).scrollTop() > 60) { jQuery(".header").addClass("reduce-header"); } else { jQuery(".header").removeClass("reduce-header"); } } e(); jQuery(window).scroll(function () { e(); }); }, initOWL: function () { $(".owl-carousel6-brands").owlCarousel({ pagination: false, navigation: true, items: 6, addClassActive: true, itemsCustom: [ [0, 1], [320, 1], [480, 2], [700, 3], [975, 5], [1200, 6], [1400, 6], [1600, 6], ], }); $(".owl-carousel7").owlCarousel({ pagination: false, navigation: true, items: 7, addClassActive: true }); $(".owl-carousel6").owlCarousel({ pagination: false, navigation: true, items: 6, addClassActive: true }); $(".owl-carousel5").owlCarousel({ pagination: false, navigation: true, items: 5, addClassActive: true }); $(".owl-carousel4").owlCarousel({ pagination: false, navigation: true, items: 4, addClassActive: true }); $(".owl-carousel3").owlCarousel({ pagination: false, navigation: true, items: 3, addClassActive: true }); $(".owl-carousel2").owlCarousel({ pagination: false, navigation: true, items: 2, addClassActive: true }); $(".owl-carousel1").owlCarousel({ pagination: false, navigation: true, items: 1, addClassActive: true }); }, initImageZoom: function () { $(".product-main-image").zoom({ url: $(".product-main-image img").attr("data-BigImgSrc") }); }, initSliderRange: function () { $("#slider-range").slider({ range: true, min: 0, max: 500, values: [50, 250], slide: function (e, t) { $("#amount").val("$" + t.values[0] + " - $" + t.values[1]); }, }); $("#amount").val("$" + $("#slider-range").slider("values", 0) + " - $" + $("#slider-range").slider("values", 1)); }, scrollTo: function (e, t) { var n = e && e.size() > 0 ? e.offset().top : 0; if (e) { if ($("body").hasClass("page-header-fixed")) { n = n - $(".header").height(); } n = n + (t ? t : -1 * e.height()); } jQuery("html,body").animate({ scrollTop: n }, "slow"); }, addResponsiveHandler: function (e) { s.push(e); }, scrollTop: function () { App.scrollTo(); }, gridOption1: function () { $(function () { $(".grid-v1").mixitup(); }); }, }; })(); (window.Modernizr = (function (e, t, n) { function r(e) { m.cssText = e; } function i(e, t) { return r(b.join(e + ";") + (t || "")); } function s(e, t) { return typeof e === t; } function o(e, t) { return !!~("" + e).indexOf(t); } function u(e, t) { for (var r in e) { var i = e[r]; if (!o(i, "-") && m[i] !== n) return t == "pfx" ? i : !0; } return !1; } function a(e, t, r) { for (var i in e) { var o = t[e[i]]; if (o !== n) return r === !1 ? e[i] : s(o, "function") ? o.bind(r || t) : o; } return !1; } function f(e, t, n) { var r = e.charAt(0).toUpperCase() + e.slice(1), i = (e + " " + E.join(r + " ") + r).split(" "); return s(t, "string") || s(t, "undefined") ? u(i, t) : ((i = (e + " " + S.join(r + " ") + r).split(" ")), a(i, t, n)); } var l = "2.7.1", c = {}, h = !0, p = t.documentElement, d = "modernizr", v = t.createElement(d), m = v.style, g, y = {}.toString, b = " -webkit- -moz- -o- -ms- ".split(" "), w = "Webkit Moz O ms", E = w.split(" "), S = w.toLowerCase().split(" "), x = {}, T = {}, N = {}, C = [], k = C.slice, L, A = function (e, n, r, i) { var s, o, u, a, f = t.createElement("div"), l = t.body, c = l || t.createElement("body"); if (parseInt(r, 10)) while (r--) (u = t.createElement("div")), (u.id = i ? i[r] : d + (r + 1)), f.appendChild(u); return ( (s = ["­", '"].join("")), (f.id = d), ((l ? f : c).innerHTML += s), c.appendChild(f), l || ((c.style.background = ""), (c.style.overflow = "hidden"), (a = p.style.overflow), (p.style.overflow = "hidden"), p.appendChild(c)), (o = n(f, e)), l ? f.parentNode.removeChild(f) : (c.parentNode.removeChild(c), (p.style.overflow = a)), !!o ); }, O = {}.hasOwnProperty, M; !s(O, "undefined") && !s(O.call, "undefined") ? (M = function (e, t) { return O.call(e, t); }) : (M = function (e, t) { return t in e && s(e.constructor.prototype[t], "undefined"); }), Function.prototype.bind || (Function.prototype.bind = function (e) { var t = this; if (typeof t != "function") throw new TypeError(); var n = k.call(arguments, 1), r = function () { if (this instanceof r) { var i = function () {}; i.prototype = t.prototype; var s = new i(), o = t.apply(s, n.concat(k.call(arguments))); return Object(o) === o ? o : s; } return t.apply(e, n.concat(k.call(arguments))); }; return r; }), (x.cssanimations = function () { return f("animationName"); }), (x.csstransforms3d = function () { var e = !!f("perspective"); return ( e && "webkitPerspective" in p.style && A("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}", function (t, n) { e = t.offsetLeft === 9 && t.offsetHeight === 3; }), e ); }); for (var _ in x) M(x, _) && ((L = _.toLowerCase()), (c[L] = x[_]()), C.push((c[L] ? "" : "no-") + L)); return ( (c.addTest = function (e, t) { if (typeof e == "object") for (var r in e) M(e, r) && c.addTest(r, e[r]); else { e = e.toLowerCase(); if (c[e] !== n) return c; (t = typeof t == "function" ? t() : t), typeof h != "undefined" && h && (p.className += " " + (t ? "" : "no-") + e), (c[e] = t); } return c; }), r(""), (v = g = null), (function (e, t) { function n(e, t) { var n = e.createElement("p"), r = e.getElementsByTagName("head")[0] || e.documentElement; return (n.innerHTML = "x"), r.insertBefore(n.lastChild, r.firstChild); } function r() { var e = y.elements; return typeof e == "string" ? e.split(" ") : e; } function i(e) { var t = m[e[d]]; return t || ((t = {}), v++, (e[d] = v), (m[v] = t)), t; } function s(e, n, r) { n || (n = t); if (g) return n.createElement(e); r || (r = i(n)); var s; return r.cache[e] ? (s = r.cache[e].cloneNode()) : h.test(e) ? (s = (r.cache[e] = r.createElem(e)).cloneNode()) : (s = r.createElem(e)), s.canHaveChildren && !c.test(e) && !s.tagUrn ? r.frag.appendChild(s) : s; } function o(e, n) { e || (e = t); if (g) return e.createDocumentFragment(); n = n || i(e); var s = n.frag.cloneNode(), o = 0, u = r(), a = u.length; for (; o < a; o++) s.createElement(u[o]); return s; } function u(e, t) { t.cache || ((t.cache = {}), (t.createElem = e.createElement), (t.createFrag = e.createDocumentFragment), (t.frag = t.createFrag())), (e.createElement = function (n) { return y.shivMethods ? s(n, e, t) : t.createElem(n); }), (e.createDocumentFragment = Function( "h,f", "return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&(" + r() .join() .replace(/[\w\-]+/g, function (e) { return t.createElem(e), t.frag.createElement(e), 'c("' + e + '")'; }) + ");return n}" )(y, t.frag)); } function a(e) { e || (e = t); var r = i(e); return ( y.shivCSS && !p && !r.hasCSS && (r.hasCSS = !!n(e, "article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")), g || u(e, r), e ); } var f = "3.7.0", l = e.html5 || {}, c = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i, h = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i, p, d = "_html5shiv", v = 0, m = {}, g; (function () { try { var e = t.createElement("a"); (e.innerHTML = ""), (p = "hidden" in e), (g = e.childNodes.length == 1 || (function () { t.createElement("a"); var e = t.createDocumentFragment(); return typeof e.cloneNode == "undefined" || typeof e.createDocumentFragment == "undefined" || typeof e.createElement == "undefined"; })()); } catch (n) { (p = !0), (g = !0); } })(); var y = { elements: l.elements || "abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video", version: f, shivCSS: l.shivCSS !== !1, supportsUnknownElements: g, shivMethods: l.shivMethods !== !1, type: "default", shivDocument: a, createElement: s, createDocumentFragment: o, }; (e.html5 = y), a(t); })(this, t), (c._version = l), (c._prefixes = b), (c._domPrefixes = S), (c._cssomPrefixes = E), (c.testProp = function (e) { return u([e]); }), (c.testAllProps = f), (c.testStyles = A), (c.prefixed = function (e, t, n) { return t ? f(e, t, n) : f(e, "pfx"); }), (p.className = p.className.replace(/(^|\s)no-js(\s|$)/, "$1$2") + (h ? " js " + C.join(" ") : "")), c ); })(this, this.document)), (function (e, t, n) { function r(e) { return "[object Function]" == d.call(e); } function i(e) { return "string" == typeof e; } function s() {} function o(e) { return !e || "loaded" == e || "complete" == e || "uninitialized" == e; } function u() { var e = v.shift(); (m = 1), e ? e.t ? h(function () { ("c" == e.t ? k.injectCss : k.injectJs)(e.s, 0, e.a, e.x, e.e, 1); }, 0) : (e(), u()) : (m = 0); } function a(e, n, r, i, s, a, f) { function l(t) { if (!d && o(c.readyState) && ((w.r = d = 1), !m && u(), (c.onload = c.onreadystatechange = null), t)) { "img" != e && h(function () { b.removeChild(c); }, 50); for (var r in T[n]) T[n].hasOwnProperty(r) && T[n][r].onload(); } } var f = f || k.errorTimeout, c = t.createElement(e), d = 0, g = 0, w = { t: r, s: n, e: s, a: a, x: f }; 1 === T[n] && ((g = 1), (T[n] = [])), "object" == e ? (c.data = n) : ((c.src = n), (c.type = e)), (c.width = c.height = "0"), (c.onerror = c.onload = c.onreadystatechange = function () { l.call(this, g); }), v.splice(i, 0, w), "img" != e && (g || 2 === T[n] ? (b.insertBefore(c, y ? null : p), h(l, f)) : T[n].push(c)); } function f(e, t, n, r, s) { return (m = 0), (t = t || "j"), i(e) ? a("c" == t ? E : w, e, t, this.i++, n, r, s) : (v.splice(this.i++, 0, e), 1 == v.length && u()), this; } function l() { var e = k; return (e.loader = { load: f, i: 0 }), e; } var c = t.documentElement, h = e.setTimeout, p = t.getElementsByTagName("script")[0], d = {}.toString, v = [], m = 0, g = "MozAppearance" in c.style, y = g && !!t.createRange().compareNode, b = y ? c : p.parentNode, c = e.opera && "[object Opera]" == d.call(e.opera), c = !!t.attachEvent && !c, w = g ? "object" : c ? "script" : "img", E = c ? "script" : w, S = Array.isArray || function (e) { return "[object Array]" == d.call(e); }, x = [], T = {}, N = { timeout: function (e, t) { return t.length && (e.timeout = t[0]), e; }, }, C, k; (k = function (e) { function t(e) { var e = e.split("!"), t = x.length, n = e.pop(), r = e.length, n = { url: n, origUrl: n, prefixes: e }, i, s, o; for (s = 0; s < r; s++) (o = e[s].split("=")), (i = N[o.shift()]) && (n = i(n, o)); for (s = 0; s < t; s++) n = x[s](n); return n; } function o(e, i, s, o, u) { var a = t(e), f = a.autoCallback; a.url.split(".").pop().split("?").shift(), a.bypass || (i && (i = r(i) ? i : i[e] || i[o] || i[e.split("/").pop().split("?")[0]]), a.instead ? a.instead(e, i, s, o, u) : (T[a.url] ? (a.noexec = !0) : (T[a.url] = 1), s.load(a.url, a.forceCSS || (!a.forceJS && "css" == a.url.split(".").pop().split("?").shift()) ? "c" : n, a.noexec, a.attrs, a.timeout), (r(i) || r(f)) && s.load(function () { l(), i && i(a.origUrl, u, o), f && f(a.origUrl, u, o), (T[a.url] = 2); }))); } function u(e, t) { function n(e, n) { if (e) { if (i(e)) n || (f = function () { var e = [].slice.call(arguments); l.apply(this, e), c(); }), o(e, f, t, 0, u); else if (Object(e) === e) for (p in ((h = (function () { var t = 0, n; for (n in e) e.hasOwnProperty(n) && t++; return t; })()), e)) e.hasOwnProperty(p) && (!n && !--h && (r(f) ? (f = function () { var e = [].slice.call(arguments); l.apply(this, e), c(); }) : (f[p] = (function (e) { return function () { var t = [].slice.call(arguments); e && e.apply(this, t), c(); }; })(l[p]))), o(e[p], f, t, p, u)); } else !n && c(); } var u = !!e.test, a = e.load || e.both, f = e.callback || s, l = f, c = e.complete || s, h, p; n(u ? e.yep : e.nope, !!a), a && n(a); } var a, f, c = this.yepnope.loader; if (i(e)) o(e, 0, c, 0); else if (S(e)) for (a = 0; a < e.length; a++) (f = e[a]), i(f) ? o(f, 0, c, 0) : S(f) ? k(f) : Object(f) === f && u(f, c); else Object(e) === e && u(e, c); }), (k.addPrefix = function (e, t) { N[e] = t; }), (k.addFilter = function (e) { x.push(e); }), (k.errorTimeout = 1e4), null == t.readyState && t.addEventListener && ((t.readyState = "loading"), t.addEventListener( "DOMContentLoaded", (C = function () { t.removeEventListener("DOMContentLoaded", C, 0), (t.readyState = "complete"); }), 0 )), (e.yepnope = l()), (e.yepnope.executeStack = u), (e.yepnope.injectJs = function (e, n, r, i, a, f) { var l = t.createElement("script"), c, d, i = i || k.errorTimeout; l.src = e; for (d in r) l.setAttribute(d, r[d]); (n = f ? u : n || s), (l.onreadystatechange = l.onload = function () { !c && o(l.readyState) && ((c = 1), n(), (l.onload = l.onreadystatechange = null)); }), h(function () { c || ((c = 1), n(1)); }, i), a ? l.onload() : p.parentNode.insertBefore(l, p); }), (e.yepnope.injectCss = function (e, n, r, i, o, a) { var i = t.createElement("link"), f, n = a ? u : n || s; (i.href = e), (i.rel = "stylesheet"), (i.type = "text/css"); for (f in r) i.setAttribute(f, r[f]); o || (p.parentNode.insertBefore(i, p), h(n, 0)); }); })(this, document), (Modernizr.load = function () { yepnope.apply(window, [].slice.call(arguments, 0)); }); (function (e) { "use strict"; function t(e) { return new RegExp("(^|\\s+)" + e + "(\\s+|$)"); } function s(e, t) { var s = n(e, t) ? i : r; s(e, t); } var n, r, i; if ("classList" in document.documentElement) { n = function (e, t) { return e.classList.contains(t); }; r = function (e, t) { e.classList.add(t); }; i = function (e, t) { e.classList.remove(t); }; } else { n = function (e, n) { return t(n).test(e.className); }; r = function (e, t) { if (!n(e, t)) { e.className = e.className + " " + t; } }; i = function (e, n) { e.className = e.className.replace(t(n), " "); }; } var o = { hasClass: n, addClass: r, removeClass: i, toggleClass: s, has: n, add: r, remove: i, toggle: s }; if (typeof define === "function" && define.amd) { define(o); } else { e.classie = o; } })(window); (function (e) { "use strict"; function s(e, t) { for (var n in t) { if (t.hasOwnProperty(n)) { e[n] = t[n]; } } return e; } function o(e, t) { this.el = e; this.animEffectsOut = ["moveUpOut", "moveDownOut", "slideUpOut", "slideDownOut", "slideLeftOut", "slideRightOut"]; this.animEffectsIn = ["moveUpIn", "moveDownIn", "slideUpIn", "slideDownIn", "slideLeftIn", "slideRightIn"]; this.items = this.el.querySelector("ol.slides").children; this.itemsCount = this.items.length; if (!this.itemsCount) return; this.current = 0; this.options = s({}, this.options); s(this.options, t); this._init(); } Modernizr.addTest("csstransformspreserve3d", function () { var t = Modernizr.prefixed("transformStyle"); var n = "preserve-3d"; var r; if (!t) return false; t = t .replace(/([A-Z])/g, function (e, t) { return "-" + t.toLowerCase(); }) .replace(/^ms-/, "-ms-"); Modernizr.testStyles("#modernizr{" + t + ":" + n + ";}", function (n, i) { r = e.getComputedStyle ? getComputedStyle(n, null).getPropertyValue(t) : ""; }); return r === n; }); var t = { animations: Modernizr.cssanimations, preserve3d: Modernizr.csstransformspreserve3d, transforms3d: Modernizr.csstransforms3d }, n = t.animations && t.preserve3d && t.transforms3d, r = { WebkitAnimation: "webkitAnimationEnd", OAnimation: "oAnimationEnd", msAnimation: "MSAnimationEnd", animation: "animationend" }, i = r[Modernizr.prefixed("animation")]; o.prototype.options = {}; o.prototype._init = function () { this._addNavigation(); this._initEvents(); }; o.prototype._addNavigation = function () { this.nav = document.createElement("nav"); var e = ""; for (var t = 0; t < this.itemsCount; ++t) { e += t === 0 ? '' : ""; } this.nav.innerHTML = e; this.el.appendChild(this.nav); this.navDots = [].slice.call(this.nav.children); }; o.prototype._initEvents = function () { var e = this; this.navDots.forEach(function (t, n) { t.addEventListener("click", function () { if (n !== e.current) { e._showItem(n); } }); }); }; o.prototype._showItem = function (e) { if (this.isAnimating) { return false; } this.isAnimating = true; classie.removeClass(this.navDots[this.current], "current"); var t = this, r = this.items[this.current]; this.current = e; var s = this.items[this.current], o = this.animEffectsOut[Math.floor(Math.random() * this.animEffectsOut.length)], u = this.animEffectsIn[Math.floor(Math.random() * this.animEffectsOut.length)]; r.setAttribute("data-effect-out", o); s.setAttribute("data-effect-in", u); classie.addClass(this.navDots[this.current], "current"); var a = 0, f = r.querySelector(".tiltview").children.length, l = s.querySelector(".tiltview").children.length, c = 0, h = 0, p = function () { ++a; if (a === 2) { t.isAnimating = false; } }, d = function () { ++c; var e = function () { classie.removeClass(r, "hide"); classie.removeClass(r, "current"); p(); }; if (!n) { e(); } else if (c === f) { r.removeEventListener(i, d); e(); } }, v = function () { ++h; var e = function () { classie.removeClass(s, "show"); classie.addClass(s, "current"); p(); }; if (!n) { e(); } else if (h === l) { s.removeEventListener(i, v); e(); } }; classie.addClass(r, "hide"); classie.addClass(s, "show"); if (n) { r.addEventListener(i, d); s.addEventListener(i, v); } else { d(); v(); } }; e.TiltSlider = o; })(window);