1function receiveMessage(e) { if (e != null && e !== undefined && e.data != null && e.data !== undefined && (typeof e.data === 'string' || e.data instanceof String)) { var t = e.data.split("|"); if ("size" == t[1]) { if (jQuery("iframe[src*='" + t[0] + "']").length > 0 ? (jQuery("iframe[src*='" + t[0] + "']").css("display", ""), jQuery("iframe[src*='" + t[0] + "']").css("height", t[2] + "px")) : (jQuery(".cobalt-widget-frame").css("display", ""), jQuery(".cobalt-widget-frame").css("height", t[2] + "px")), $("#widgetOptionsLink").length) { postMessageToWidgets(document.location.toString() + "|genwidgetcode|" + getWidgetOptions()); var i = document.getElementById(jQuery(".cobalt-widget-frame").attr("id")).contentWindow; $("#widgetOptionsLink").attr("href", i.location.href.replace(".aspx", "Designer.aspx")); var o = new XMLHttpRequest; o.open("GET", $("#widgetOptionsLink").attr("href"), !0), o.onreadystatechange = function () { 4 === o.readyState && (404 === o.status ? $("#widgetOpts").css("display", "none") : $("#widgetOpts").css("display", "")) }, o.send() } } else "closeLightBox" == t[1] ? jQuery.fancybox.close() : "url" == t[1] ? document.location.href = t[2] : "click" == t[1] ? (jQuery("#cobaltfancybox").fancybox({ width: JSON.parse("{" + t[3].replace(/'/g, '"') + "}").width, type: JSON.parse("{" + t[3].replace(/'/g, '"') + "}").type, height: JSON.parse("{" + t[3].replace(/'/g, '"') + "}").height }), jQuery("#cobaltfancybox").attr("href", e.origin + t[2]), jQuery("#cobaltfancybox").trigger("click")) : "setwidgetcode" == t[1] && $("#widgetText").val(t[2]) } } function postMessageToWidgets(e) { jQuery(".cobalt-widget-frame").each(function () { var t = document.getElementById(jQuery(this).attr("id")).contentWindow, i = t.postMessage ? t : t.document.postMessage ? t.document : void 0; void 0 !== i && i.postMessage(e, "*") }) } function cobaltFancyBoxClosed() { postMessageToWidgets(document.location.toString() + "|closed") } function widgetInit(e) { var t = jQuery("#" + e), i = "", o = "cobaltsrc", n = location.search, a = n.indexOf(o); a > 0 && (i = n.substring(a + o.length + 1, n.length).trim(), i = decodeURIComponent(i)); var r = i; "2.0" == t.attr("ver") && "" != t.attr("src") && (r = t.attr("src")), (null == i || "" == i) && (r = t.attr("src")), -1 == r.indexOf("widget=") && (r += r.indexOf("?") > -1 ? "&widget=frame" : "?widget=frame"); var s = "cobaltloadingMessage" + t.attr("id"), c = "cobaltautoIframe" + t.attr("id"); jQuery("<iframe id='" + c + "' width='100%' scrolling='no' frameBorder='0'>").attr("class", "cobalt-widget-frame").attr("data-loadingid", s).attr("src", r).appendTo("#" + t.attr("id")), jQuery("#" + c).css("height", "0px"); var l = t.data("css"); null != l && void 0 !== l && jQuery("#" + c).attr("style", jQuery("#" + c).attr("style") + l), (null == t.data("loading") || void 0 === t.data("loading") || t.data("loading")) && (jQuery("<div id='" + s + "' class='widget-loading'><div id='cobaltloadingContent' class='widget-loading-content'></div></div>").appendTo("#" + t.attr("id")), jQuery("#" + c).on("load", function () { jQuery("#" + jQuery(this).attr("data-loadingid")).css("display", "none") })), jQuery("<a id='cobaltfancybox' class='fancybox fancybox.iframe'></a>").appendTo("#" + t.attr("id")), jQuery("#cobaltfancybox").fancybox({ width: "955px", afterClose: function () { cobaltFancyBoxClosed() } }) } jQuery.noConflict(), function (e, t, i, o) { "use strict"; var n = i(e), a = i(t), r = i.fancybox = function () { r.open.apply(this, arguments) }, s = navigator.userAgent.match(/msie/), c = null, l = t.createTouch !== o, d = function (e) { return e && e.hasOwnProperty && e instanceof i }, p = function (e) { return e && "string" === i.type(e) }, h = function (e) { return p(e) && e.indexOf("%") > 0 }, f = function (e) { return e && !(e.style.overflow && "hidden" === e.style.overflow) && (e.clientWidth && e.scrollWidth > e.clientWidth || e.clientHeight && e.scrollHeight > e.clientHeight) }, u = function (e, t) { var i = parseInt(e, 10) || 0; return t && h(e) && (i = r.getViewport()[t] / 100 * i), Math.ceil(i) }, g = function (e, t) { return u(e, t) + "px" }; i.extend(r, { version: "2.1.4", defaults: { padding: 15, margin: 20, width: 800, height: 600, minWidth: 100, minHeight: 100, maxWidth: 9999, maxHeight: 9999, autoSize: !0, autoHeight: !1, autoWidth: !1, autoResize: !0, autoCenter: !l, fitToView: !0, aspectRatio: !1, topRatio: .5, leftRatio: .5, scrolling: "auto", wrapCSS: "", arrows: !0, closeBtn: !0, closeClick: !1, nextClick: !1, mouseWheel: !0, autoPlay: !1, playSpeed: 3e3, preload: 3, modal: !1, loop: !0, ajax: { dataType: "html", headers: { "X-fancyBox": !0 } }, iframe: { scrolling: "auto", preload: !0 }, swf: { wmode: "transparent", allowfullscreen: "true", allowscriptaccess: "always" }, keys: { next: { 13: "left", 34: "up", 39: "left", 40: "up" }, prev: { 8: "right", 33: "down", 37: "right", 38: "down" }, close: [27], play: [32], toggle: [70] }, direction: { next: "left", prev: "right" }, scrollOutside: !0, index: 0, type: null, href: null, content: null, title: null, tpl: { wrap: '<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>', image: '<img class="fancybox-image" src="{href}" alt="" />', iframe: '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen' + (s ? ' allowtransparency="true"' : "") + "></iframe>", error: '<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>', closeBtn: '<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>', next: '<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>', prev: '<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>' }, 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: i.noop, beforeLoad: i.noop, afterLoad: i.noop, beforeShow: i.noop, afterShow: i.noop, beforeChange: i.noop, beforeClose: i.noop, afterClose: i.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) { return e && (i.isPlainObject(t) || (t = {}), !1 !== r.close(!0)) ? (i.isArray(e) || (e = d(e) ? i(e).get() : [e]), i.each(e, function (n, a) { var s, c, l, h, f, u, g, y = {}; "object" === i.type(a) && (a.nodeType && (a = i(a)), d(a) ? (y = { href: a.data("fancybox-href") || a.attr("href"), title: a.data("fancybox-title") || a.attr("title"), isDom: !0, element: a }, i.metadata && i.extend(!0, y, a.metadata())) : y = a), s = t.href || y.href || (p(a) ? a : null), c = t.title !== o ? t.title : y.title || "", !(
1h = (l = t.content || y.content) ? "html" : t.type || y.type) && y.isDom && ((h = a.data("fancybox-type")) || (h = (f = a.prop("class").match(/fancybox\.(\w+)/)) ? f[1] : null)), p(s) && (h || (r.isImage(s) ? h = "image" : r.isSWF(s) ? h = "swf" : "#" === s.charAt(0) ? h = "inline" : p(a) && (h = "html", l = a)), "ajax" === h && (u = s.split(/\s+/, 2), s = u.shift(), g = u.shift())), l || ("inline" === h ? s ? l = i(p(s) ? s.replace(/.*(?=#[^\s]+jQuery)/, "") : s) : y.isDom && (l = a) : "html" === h ? l = s : h || s || !y.isDom || (h = "inline", l = a)), i.extend(y, { href: s, type: h, content: l, title: c, selector: g }), e[n] = y }), r.opts = i.extend(!0, {}, r.defaults, t), t.keys !== o && (r.opts.keys = !!t.keys && i.extend({}, r.defaults.keys, t.keys)), r.group = e, r._start(r.opts.index)) : void 0 }, cancel: function () { var e = r.coming; e && !1 !== r.trigger("onCancel") && (r.hideLoading(), r.ajaxLoad && r.ajaxLoad.abort(), r.ajaxLoad = null, r.imgPreload && (r.imgPreload.onload = r.imgPreload.onerror = null), e.wrap && e.wrap.stop(!0, !0).trigger("onReset").remove(), r.coming = null, r.current || r._afterZoomOut(e)) }, close: function (e) { r.cancel(), !1 !== r.trigger("beforeClose") && (r.unbindEvents(), r.isActive && (r.isOpen && !0 !== e ? (r.isOpen = r.isOpened = !1, r.isClosing = !0, i(".fancybox-item, .fancybox-nav").remove(), r.wrap.stop(!0, !0).removeClass("fancybox-opened"), r.transitions[r.current.closeMethod]()) : (i(".fancybox-wrap").stop(!0).trigger("onReset").remove(), r._afterZoomOut()))) }, play: function (e) { var t = function () { clearTimeout(r.player.timer) }, o = function () { t(), r.current && r.player.isActive && (r.player.timer = setTimeout(r.next, r.current.playSpeed)) }, n = function () { t(), i("body").off(".player"), r.player.isActive = !1, r.trigger("onPlayEnd") }; !0 === e || !r.player.isActive && !1 !== e ? r.current && (r.current.loop || r.current.index < r.group.length - 1) && (r.player.isActive = !0, i("body").on({ "afterShow.player onUpdate.player": o, "onCancel.player beforeClose.player": n, "beforeLoad.player": t }), o(), r.trigger("onPlayStart")) : n() }, next: function (e) { var t = r.current; t && (p(e) || (e = t.direction.next), r.jumpto(t.index + 1, e, "next")) }, prev: function (e) { var t = r.current; t && (p(e) || (e = t.direction.prev), r.jumpto(t.index - 1, e, "prev")) }, jumpto: function (e, t, i) { var n = r.current; n && (e = u(e), r.direction = t || n.direction[e >= n.index ? "next" : "prev"], r.router = i || "jumpto", n.loop && (0 > e && (e = n.group.length + e % n.group.length), e %= n.group.length), n.group[e] !== o && (r.cancel(), r._start(e))) }, reposition: function (e, t) { var o, n = r.current, a = n ? n.wrap : null; a && (o = r._getPosition(t), e && "scroll" === e.type ? (delete o.position, a.stop(!0, !0).animate(o, 200)) : (a.css(o), n.pos = i.extend({}, n.dim, o))) }, update: function (e) { var t = e && e.type, i = !t || "orientationchange" === t; i && (clearTimeout(c), c = null), r.isOpen && !c && (c = setTimeout(function () { var o = r.current; o && !r.isClosing && (r.wrap.removeClass("fancybox-tmp"), (i || "load" === t || "resize" === t && o.autoResize) && r._setDimension(), "scroll" === t && o.canShrink || r.reposition(e), r.trigger("onUpdate"), c = null) }, i && !l ? 0 : 300)) }, toggle: function (e) { r.isOpen && (r.current.fitToView = "boolean" === i.type(e) ? e : !r.current.fitToView, l && (r.wrap.removeAttr("style").addClass("fancybox-tmp"), r.trigger("onUpdate")), r.update()) }, hideLoading: function () { a.off(".loading"), i("#fancybox-loading").remove() }, showLoading: function () { var e, t; r.hideLoading(), e = i('<div id="fancybox-loading"><div></div></div>').on("click", r.cancel).appendTo("body"), a.on("keydown.loading", function (e) { 27 === (e.which || e.keyCode) && (e.preventDefault(), r.cancel()) }), r.defaults.fixed || (t = r.getViewport(), e.css({ position: "absolute", top: .5 * t.h + t.y, left: .5 * t.w + t.x })) }, getViewport: function () { var t = r.current && r.current.locked || !1, i = { x: n.scrollLeft(), y: n.scrollTop() }; return t ? (i.w = t[0].clientWidth, i.h = t[0].clientHeight) : (i.w = l && e.innerWidth ? e.innerWidth : n.width(), i.h = l && e.innerHe
1ight ? e.innerHeight : n.height()), i }, unbindEvents: function () { r.wrap && d(r.wrap) && r.wrap.off(".fb"), a.off(".fb"), n.off(".fb") }, bindEvents: function () { var e, t = r.current; t && (n.on("orientationchange.fb" + (l ? "" : " resize.fb") + (t.autoCenter && !t.locked ? " scroll.fb" : ""), r.update), (e = t.keys) && a.on("keydown.fb", function (n) { var a = n.which || n.keyCode, s = n.target || n.srcElement; return (27 !== a || !r.coming) && void (n.ctrlKey || n.altKey || n.shiftKey || n.metaKey || s && (s.type || i(s).is("[contenteditable]")) || i.each(e, function (e, s) { return t.group.length > 1 && s[a] !== o ? (r[e](s[a]), n.preventDefault(), !1) : i.inArray(a, s) > -1 ? (r[e](), n.preventDefault(), !1) : void 0 })) }), i.fn.mousewheel && t.mouseWheel && r.wrap.on("mousewheel.fb", function (e, o, n, a) { for (var s = e.target || null, c = i(s), l = !1; c.length && !(l || c.is(".fancybox-skin") || c.is(".fancybox-wrap"));)l = f(c[0]), c = i(c).parent(); 0 === o || l || r.group.length > 1 && !t.canShrink && (a > 0 || n > 0 ? r.prev(a > 0 ? "down" : "left") : (0 > a || 0 > n) && r.next(0 > a ? "up" : "right"), e.preventDefault()) })) }, trigger: function (e, t) { var o, n = t || r.coming || r.current; if (n) { if (i.isFunction(n[e]) && (o = n[e].apply(n, Array.prototype.slice.call(arguments, 1))), !1 === o) return !1; n.helpers && i.each(n.helpers, function (t, o) { o && r.helpers[t] && i.isFunction(r.helpers[t][e]) && (o = i.extend(!0, {}, r.helpers[t].defaults, o), r.helpers[t][e](o, n)) }), i.event.trigger(e + ".fb") } }, isImage: function (e) { return p(e) && e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?jQuery)/i) }, isSWF: function (e) { return p(e) && e.match(/\.(swf)((\?|#).*)?jQuery/i) }, _start: function (e) { var t, o, n, a, s, c = {}; if (e = u(e), !(t = r.group[e] || null)) return !1; if (a = (c = i.extend(!0, {}, r.opts, t)).margin, s = c.padding, "number" === i.type(a) && (c.margin = [a, a, a, a]), "number" === i.type(s) && (c.padding = [s, s, s, s]), c.modal && i.extend(!0, c, { closeBtn: !1, closeClick: !1, nextClick: !1, arrows: !1, mouseWheel: !1, keys: null, helpers: { overlay: { closeClick: !1 } } }), c.autoSize && (c.autoWidth = c.autoHeight = !0), "auto" === c.width && (c.autoWidth = !0), "auto" === c.height && (c.autoHeight = !0), c.group = r.group, c.index = e, r.coming = c, !1 !== r.trigger("beforeLoad")) { if (n = c.type, o = c.href, !n) return r.coming = null, !(!r.current || !r.router || "jumpto" === r.router) && (r.current.index = e, r[r.router](r.direction)); if (r.isActive = !0, ("image" === n || "swf" === n) && (c.autoHeight = c.autoWidth = !1, c.scrolling = "visible"), "image" === n && (c.aspectRatio = !0), "iframe" === n && l && (c.scrolling = "scroll"), c.wrap = i(c.tpl.wrap).addClass("fancybox-" + (l ? "mobile" : "desktop") + " fancybox-type-" + n + " fancybox-tmp " + c.wrapCSS).appendTo(c.parent || "body"), i.extend(c, { skin: i(".fancybox-skin", c.wrap), outer: i(".fancybox-outer", c.wrap), inner: i(".fancybox-inner", c.wrap) }), i.each(["Top", "Right", "Bottom", "Left"], function (e, t) { c.skin.css("padding" + t, g(c.padding[e])) }), r.trigger("onReady"), "inline" === n || "html" === n) { if (!c.content || !c.content.length) return r._error("content") } else if (!o) return r._error("href"); "image" === n ? r._loadImage() : "ajax" === n ? r._loadAjax() : "iframe" === n ? r._loadIframe() : r._afterLoad() } else r.coming = null }, _error: function (e) { i.extend(r.coming, { type: "html", autoWidth: !0, autoHeight: !0, minWidth: 0, minHeight: 0, scrolling: "no", hasError: e, content: r.coming.tpl.error }), r._afterLoad() }, _loadImage: function () { var e = r.imgPreload = new Image; e.onload = function () { this.onload = this.onerror = null, r.coming.width = this.width, r.coming.height = this.height, r._afterLoad() }, e.onerror = function () { this.onload = this.onerror = null, r._error("image") }, e.src = r.coming.href, !0 !== e.complete && r.showLoading() }, _loadAjax: function () { var e = r.coming; r.showLoading(), r.ajaxLoad = i.ajax(i.extend({}, e.ajax, { url: e.href, error: function (e, t) { r.coming && "abort" !== t ? r._error("ajax", e) : r.hideLoading() }, success: function (t, i) { "success" === i && (e.content = t, r._afterLoad()) } })) }, _loadIframe: function () { var e = r.coming, t = i(e.tpl.iframe.replace(/\{rnd\}/g, (new Date).getTime())).attr("scrolling", l ? "auto" : e.iframe.
1scrolling).attr("src", e.href); i(e.wrap).on("onReset", function () { try { i(this).find("iframe").hide().attr("src", "//about:blank").end().empty() } catch (e) { } }), e.iframe.preload && (r.showLoading(), t.one("load", function () { i(this).data("ready", 1), l || i(this).on("load.fb", r.update), i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(), r._afterLoad() })), e.content = t.appendTo(e.inner), e.iframe.preload || r._afterLoad() }, _preloadImages: function () { var e, t, i = r.group, o = r.current, n = i.length, a = o.preload ? Math.min(o.preload, n - 1) : 0; for (t = 1; a >= t; t += 1)"image" === (e = i[(o.index + t) % n]).type && e.href && ((new Image).src = e.href) }, _afterLoad: function () { var e, t, o, n, a, s, c = r.coming, l = r.current, p = "fancybox-placeholder"; if (r.hideLoading(), c && !1 !== r.isActive) { if (!1 === r.trigger("afterLoad", c, l)) return c.wrap.stop(!0).trigger("onReset").remove(), void (r.coming = null); switch (l && (r.trigger("beforeChange", l), l.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()), r.unbindEvents(), e = c, t = c.content, o = c.type, n = c.scrolling, i.extend(r, { wrap: e.wrap, skin: e.skin, outer: e.outer, inner: e.inner, current: e, previous: l }), a = e.href, o) { case "inline": case "ajax": case "html": e.selector ? t = i("<div>").html(t).find(e.selector) : d(t) && (t.data(p) || t.data(p, i('<div class="' + p + '"></div>').insertAfter(t).hide()), t = t.show().detach(), e.wrap.on("onReset", function () { i(this).find(t).length && t.hide().replaceAll(t.data(p)).data(p, !1) })); break; case "image": t = e.tpl.image.replace("{href}", a); break; case "swf": t = '<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="' + a + '"></param>', s = "", i.each(e.swf, function (e, i) { t += '<param name="' + e + '" value="' + i + '"></param>', s += " " + e + '="' + i + '"' }), t += '<embed src="' + a + '" type="application/x-shockwave-flash" width="100%" height="100%"' + s + "></embed></object>" }d(t) && t.parent().is(e.inner) || e.inner.append(t), r.trigger("beforeShow"), e.inner.css("overflow", "yes" === n ? "scroll" : "no" === n ? "hidden" : n), r._setDimension(), r.reposition(), r.isOpen = !1, r.coming = null, r.bindEvents(), r.isOpened ? l.prevMethod && r.transitions[l.prevMethod]() : i(".fancybox-wrap").not(e.wrap).stop(!0).trigger("onReset").remove(), r.transitions[r.isOpened ? e.nextMethod : e.openMethod](), r._preloadImages() } }, _setDimension: function () { var e, t, o, n, a, s, c, l, d, p, f, y, m, w, x, v, b, k = r.getViewport(), j = 0, C = r.wrap, O = r.skin, S = r.inner, W = r.current, E = W.width, T = W.height, Q = W.minWidth, L = W.minHeight, M = W.maxWidth, _ = W.maxHeight, I = W.scrolling, P = W.scrollOutside ? W.scrollbarWidth : 0, R = W.margin, H = u(R[1] + R[3]), A = u(R[0] + R[2]); if (C.add(O).add(S).width("auto").height("auto").removeClass("fancybox-tmp"), o = H + (e = u(O.outerWidth(!0) - O.width())), n = A + (t = u(O.outerHeight(!0) - O.height())), a = h(E) ? (k.w - o) * u(E) / 100 : E, s = h(T) ? (k.h - n) * u(T) / 100 : T, "iframe" === W.type) { if (w = W.content, W.autoHeight && 1 === w.data("ready")) try { w[0].contentWindow.document.location && (S.width(a).height(9999), x = w.contents().find("body"), P && x.css("overflow-x", "hidden"), s = x.height()) } catch (e) { } } else (W.autoWidth || W.autoHeight) && (S.addClass("fancybox-tmp"), W.autoWidth || S.width(a), W.autoHeight || S.height(s), W.autoWidth && (a = S.width()), W.autoHeight && (s = S.height()), S.removeClass("fancybox-tmp")); if (E = u(a), T = u(s), d = a / s, Q = u(h(Q) ? u(Q, "w") - o : Q), M = u(h(M) ? u(M, "w") - o : M), L = u(h(L) ? u(L, "h") - n : L), c = M, l = _ = u(h(_) ? u(_, "h") - n : _), W.fitToView && (M = Math.min(k.w - o, M), _ = Math.min(k.h - n, _)), y = k.w - H, m = k.h - A, W.aspectRatio ? (E > M && (T = u((E = M) / d)), T > _ && (E = u((T = _) * d)), Q > E && (T = u((E = Q) / d)), L > T && (E = u((T = L) * d))) : (E = Math.max(Q, Math.min(E, M)), W.autoHeight && "iframe" !== W.type && (S.width(E), T = S.height()), T = Math.max(L, Math.min(T, _))), W.fitToView) if (S.width(E).height(T), C.width(E + e), p = C.width(), f = C.height(), W.aspectRatio) for (; (p > y || f > m) && E > Q && T > L && !(j++ > 19);)T = Math.max(L, Math.min(_, T - 10)), Q > (E = u(T * d)) && (T = u((E = Q) / d)), E > M && (T = u((E = M) / d)), S.width(E).height(T), C.width(E + e), p = C.width(), f = C.height(); else E = Math.max(Q, Math.min(E, E - (p - y))), T = Math.max(L, Math.min(T, T - (f - m))); P && "auto" === I && s > T && y > E + e + P && (E += P), S.width(E).height(T), C.width(E + e), p = C.width(), f = C.height(), v = (p > y || f > m) && E > Q && T > L, b = W.aspectRatio ? c > E && l > T && a > E && s > T : (c > E || l > T) && (a > E || s > T), i.extend(W, { dim: { width: g(p), height: g(f) }, origWidth: a, origHeight: s, canShrink: v, canExpand: b, wPadding: e, hPadding: t, wrapSpace: f - O.outerHeight(!0), skinSpace: O.height() - T }), !w && W.autoHeight && T > L && _ > T && !b && S.height("auto") }, _getPosition: function (e) { var t = r.current, i = r.getViewport(), o = t.margin, n = r.wrap.width() + o[1] + o[3], a = r.wrap.height() + o[0] + o[2], s = { position: "absolute", top: o[0], left: o[3] }; return t.autoCenter && t.fixed && !e && a <= i.h && n <= i.w ? s.position = "fixed" : t.locked || (s.top += i.y, s.left += i.x), s.top = g(Math.max(s.top, s.top + (i.h - a) * t.topRatio)), s.left = g(Math.max(s.left, s.left + (i.w - n) * t.leftRatio)), s }, _afterZoomIn: function () { var e = r.current; e && (r.isOpen = r.isOpened = !0, r.wrap.css("overflow", "visible").addClass("fancybox-opened"), r.update(
1), (e.closeClick || e.nextClick && r.group.length > 1) && r.inner.css("cursor", "pointer").on("click.fb", function (t) { i(t.target).is("a") || i(t.target).parent().is("a") || (t.preventDefault(), r[e.closeClick ? "close" : "next"]()) }), e.closeBtn && i(e.tpl.closeBtn).appendTo(r.skin).on("click.fb", function (e) { e.preventDefault(), r.close() }), e.arrows && r.group.length > 1 && ((e.loop || e.index > 0) && i(e.tpl.prev).appendTo(r.outer).on("click.fb", r.prev), (e.loop || e.index < r.group.length - 1) && i(e.tpl.next).appendTo(r.outer).on("click.fb", r.next)), r.trigger("afterShow"), e.loop || e.index !== e.group.length - 1 ? r.opts.autoPlay && !r.player.isActive && (r.opts.autoPlay = !1, r.play()) : r.play(!1)) }, _afterZoomOut: function (e) { e = e || r.current, i(".fancybox-wrap").trigger("onReset").remove(), i.extend(r, { group: {}, opts: {}, router: !1, current: null, isActive: !1, isOpened: !1, isOpen: !1, isClosing: !1, wrap: null, skin: null, outer: null, inner: null }), r.trigger("afterClose", e) } }), r.transitions = { getOrigPosition: function () { var e = r.current, t = e.element, i = e.orig, o = {}, n = 50, a = 50, s = e.hPadding, c = e.wPadding, l = r.getViewport(); return !i && e.isDom && t.is(":visible") && ((i = t.find("img:first")).length || (i = t)), d(i) ? (o = i.offset(), i.is("img") && (n = i.outerWidth(), a = i.outerHeight())) : (o.top = l.y + (l.h - a) * e.topRatio, o.left = l.x + (l.w - n) * e.leftRatio), ("fixed" === r.wrap.css("position") || e.locked) && (o.top -= l.y, o.left -= l.x), { top: g(o.top - s * e.topRatio), left: g(o.left - c * e.leftRatio), width: g(n + c), height: g(a + s) } }, step: function (e, t) { var i, o, n = t.prop, a = r.current, s = a.wrapSpace, c = a.skinSpace; ("width" === n || "height" === n) && (i = t.end === t.start ? 1 : (e - t.start) / (t.end - t.start), r.isClosing && (i = 1 - i), o = e - ("width" === n ? a.wPadding : a.hPadding), r.skin[n](u("width" === n ? o : o - s * i)), r.inner[n](u("width" === n ? o : o - s * i - c * i))) }, zoomIn: function () { var e = r.current, t = e.pos, o = e.openEffect, n = "elastic" === o, a = i.extend({ opacity: 1 }, t); delete a.position, n ? (t = this.getOrigPosition(), e.openOpacity && (t.opacity = .1)) : "fade" === o && (t.opacity = .1), r.wrap.css(t).animate(a, { duration: "none" === o ? 0 : e.openSpeed, easing: e.openEasing, step:
1n ? this.step : null, complete: r._afterZoomIn }) }, zoomOut: function () { var e = r.current, t = e.closeEffect, i = "elastic" === t, o = { opacity: .1 }; i && (o = this.getOrigPosition(), e.closeOpacity && (o.opacity = .1)), r.wrap.animate(o, { duration: "none" === t ? 0 : e.closeSpeed, easing: e.closeEasing, step: i ? this.step : null, complete: r._afterZoomOut }) }, changeIn: function () { var e, t = r.current, i = t.nextEffect, o = t.pos, n = { opacity: 1 }, a = r.direction, s = 200; o.opacity = .1, "elastic" === i && (e = "down" === a || "up" === a ? "top" : "left", "down" === a || "right" === a ? (o[e] = g(u(o[e]) - s), n[e] = "+=200px") : (o[e] = g(u(o[e]) + s), n[e] = "-=200px")), "none" === i ? r._afterZoomIn() : r.wrap.css(o).animate(n, { duration: t.nextSpeed, easing: t.nextEasing, complete: r._afterZoomIn }) }, changeOut: function () { var e = r.previous, t = e.prevEffect, o = { opacity: .1 }, n = r.direction; "elastic" === t && (o["down" === n || "up" === n ? "top" : "left"] = ("up" === n || "left" === n ? "-" : "+") + "=200px"), e.wrap.animate(o, { duration: "none" === t ? 0 : e.prevSpeed, easing: e.prevEasing, complete: function () { i(this).trigger("onReset").remove() } }) } }, r.helpers.overlay = { defaults: { closeClick: !0, speedOut: 200, showEarly: !0, css: {}, locked: !l, fixed: !0 }, overlay: null, fixed: !1, create: function (e) { e = i.extend({}, this.defaults, e), this.overlay && this.close(), this.overlay = i('<div class="fancybox-overlay"></div>').appendTo("body"), this.fixed = !1, e.fixed && r.defaults.fixed && (this.overlay.addClass("fancybox-overlay-fixed"), this.fixed = !0) }, open: function (e) { var t = this; e = i.extend({}, this.defaults, e), this.overlay ? this.overlay.off(".overlay").width("auto").height("auto") : this.create(e), this.fixed || (n.on("resize.overlay", i.proxy(this.update, this)), this.update()), e.closeClick && this.overlay.on("click.overlay", function (e) { i(e.target).hasClass("fancybox-overlay") && (r.isActive ? r.close() : t.close()) }), this.overlay.css(e.css).show() }, close: function () { i(".fancybox-overlay").remove(), n.off("resize.overlay"), this.overlay = null, !1 !== this.margin && (i("body").css("margin-right", this.margin), this.margin = !1), this.el && this.el.removeClass("fancybox-lock") }, update: function () { var e, i = "100%"; this.overlay.width(i).height("100%"), s ? (e = Math.max(t.documentElement.offsetWidth, t.body.offsetWidth), a.width() > e && (i = a.width())) : a.width() > n.width() && (i = a.width()), this.overlay.width(i).height(a.height()) }, onReady: function (e, o) { i(".fancybox-overlay").stop(!0, !0), this.overlay || (this.margin = (a.height() > n.height() || "scroll" === i("body").css("overflow-y")) && i("body").css("margin-right"), this.el = i(t.all && !t.querySelector ? "html" : "body"), this.create(e)), e.locked && this.fixed && (o.locked = this.overlay.append(o.wrap), o.fixed = !1), !0 === e.showEarly && this.beforeShow.apply(this, arguments) }, beforeShow: function (e, t) { t.locked && (this.el.addClass("fancybox-lock"), !1 !== this.margin && i("body").css("margin-right", u(this.margin) + t.scrollbarWidth)), this.open(e) }, onUpdate: function () { this.fixed || this.update() }, afterClose: function (e) { this.overlay && !r.isActive && this.overlay.fadeOut(e.speedOut, i.proxy(this.close, this)) } }, r.helpers.title = { defaults: { type: "float", position: "bottom" }, beforeShow: function (e) { var t, o, n = r.current, a = n.title, c = e.type; if (i.isFunction(a) && (a = a.call(n.element, n)), p(a) && "" !== i.trim(a)) { switch (t = i('<div class="fancybox-title fancybox-title-' + c + '-wrap">' + a + "</div>"), c) { case "inside": o = r.skin; break; case "outside": o = r.wrap; break; case "over": o = r.inner; break; default: o = r.skin, t.appendTo("body"), s && t.width(t.width()), t.wrapInner('<span class="child"></span>'), r.current.margin[2] += Math.abs(u(t.css("margin-bottom"))) }t["top" === e.position ? "prependTo" : "appendTo"](o) } } }, i.fn.fancybox = function (e) { var t, o = i(this), n = this.selector || "", s = function (a) { var s, c, l = i(this).trigger("blur"), d = t; a.ctrlKey || a.altKey || a.shiftKey || a.metaKey || l.is(".fancybox-wrap") || (s = e.groupAttr || "data-fancybox-group", (c
1= l.attr(s)) || (s = "rel", c = l.get(0)[s]), c && "" !== c && "nofollow" !== c && (d = (l = (l = n.length ? i(n) : o).filter("[" + s + '="' + c + '"]')).index(this)), e.index = d, !1 !== r.open(l, e) && a.preventDefault()) }; return t = (e = e || {}).index || 0, n && !1 !== e.live ? a.undelegate(n, "click.fb-start").delegate(n + ":not('.fancybox-item, .fancybox-nav')", "click.fb-start", s) : o.off("click.fb-start").on("click.fb-start", s), this.filter("[data-fancybox-start=1]").trigger("click"), this }, a.ready(function () { var e, t; i.scrollbarWidth === o && (i.scrollbarWidth = function () { var e = i('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"), t = e.children(), o = t.innerWidth() - t.height(99).innerWidth(); return e.remove(), o }), i.support.fixedPosition === o && (i.support.fixedPosition = (e = i('<div style="position:fixed;top:20px;"></div>').appendTo("body"), t = 20 === e[0].offsetTop || 15 === e[0].offsetTop, e.remove(), t)), i.extend(r.defaults, { scrollbarWidth: i.scrollbarWidth(), fixed: i.support.fixedPosition, parent: i("body") }) }) }(window, document, jQuery); var fancycss, widgetcss, p = /^http:/.test(document.location) ? "http" : "https", currentScript = document.currentScript || document.getElementById("cobalt-wjs"), scriptLocation = currentScript.src.replace("js/widget.js", ""); document.getElementById("cobalt-widgetcss") || ((widgetcss = document.createElement("link")).id = "cobalt-widgetcss", widgetcss.type = "text/css", widgetcss.rel = "stylesheet", widgetcss.href = scriptLocation + "css/widget.css", document.getElementsByTagName("head")[0].appendChild(widgetcss)), document.getElementById("cobalt-fancyboxcss") || ((fancycss = document.createElement("link")).id = "cobalt-fancyboxcss", fancycss.type = "text/css", fancycss.rel = "stylesheet", fancycss.href = scriptLocation + "css/jquery.fancybox.css", document.getElementsByTagName("head")[0].appendChild(fancycss)), window.addEventListener("message", receiveMessage, !1), jQuery(document).ready(function () { jQuery(".cobalt-widget").each(function () { widgetInit(jQuery(this).attr("id")) }) }), jQuery(".cobalt-fancybox").each(function () { if (void 0 !== jQuery(this).data("options") && "" != jQuery(this).data("options")) { var e = JSON.parse("{" + jQuery(this).data("options").replace(/'/g, '"') + "}"); jQuery(this).fancybox({ width: e.width, height: e.height, type: e.type }) } else jQuery("#cobaltfancybox").fancybox({ width: e.width, height: e.height, type: e.type }) }), $ = jQuery;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.