function getBrowser() { navigator.userAgent.toLowerCase(); return $.browser.chrome ? "chrome" : $.browser.mozilla ? "mozilla" : $.browser.opera ? "opera" : $.browser.safari ? "safari" : $.browser.msie ? "ie" : void 0 } function getInternetExplorerVersion() { var a = -1; if ("Microsoft Internet Explorer" == navigator.appName) { var b = navigator.userAgent, c = new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"); null != c.exec(b) && (a = parseFloat(RegExp.$1)) } else if ("Netscape" == navigator.appName) { var b = navigator.userAgent, c = new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})"); null != c.exec(b) && (a = parseFloat(RegExp.$1)) } return a } function get_browser_version() { var b, a = navigator.userAgent, c = a.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || []; return /trident/i.test(c[1]) ? (b = /\brv[ :]+(\d+)/g.exec(a) || [], "IE " + (b[1] || "")) : "Chrome" === c[1] && (b = a.match(/\bOPR\/(\d+)/), null != b) ? "Opera " + b[1] : (c = c[2] ? [c[1], c[2]] : [navigator.appName, navigator.appVersion, "-?"], null != (b = a.match(/version\/(\d+)/i)) && c.splice(1, 1, b[1]), c[1]) } function getCSEResults(a) { function u(a, b, c, d) { return '
No results found for "' + q + '".
'; return void $(".news-feed-left-wrap").prepend(d) } $(".news-feed-left-wrap .content-box").show(); for (var e = 0; e < a.items.length; e++) { var f = a.items[e], g = document.createElement("li"); g.setAttribute("class", "search-item"); var h = document.createElement("a"); h.setAttribute("href", f.link); var i = document.createElement("p"); i.setAttribute("class", "search-item-title"); var j = document.createElement("p"); j.setAttribute("class", "search-item-excerpt"), i.innerHTML = f.htmlTitle, j.innerHTML = f.snippet, h.appendChild(i), h.appendChild(j), g.appendChild(h), b.append(g) } var k = $(".search-results-pagination"); if (a.queries.previousPage) { var l = a.queries.previousPage[0].startIndex; k.append(u("", "prev", SEARCH_PAGE + "?search=" + q + "&start=" + l + c, "<")) } for (var m = a.queries.request[0].totalResults, n = a.queries.request[0].startIndex, o = (n - 1) / RESULTS_PER_PAGE + 1, p = o - 1 - (o - 1) % TOTAL_PAGER_ITEMS, r = p; r < p + TOTAL_PAGER_ITEMS; r++) { var s = r * RESULTS_PER_PAGE + 1; if (s > m) break; k.append(u(n == s ? "active" : "", "", n == s ? "#" : SEARCH_PAGE + "?search=" + q + "&start=" + s + c, r + 1)) } if (a.queries.nextPage) { var t = a.queries.nextPage[0].startIndex; k.append(u("", "next", SEARCH_PAGE + "?search=" + q + "&start=" + t + c, ">")) } } function getQS(a) { a = a.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var b = new RegExp("[\\?&]" + a + "=([^]*)"), c = b.exec(location.search); return null == c ? "" : decodeURIComponent(c[1].replace(/\+/g, " ")) } function cutStringByHeight(a, b) { $("." + a).each(function (a, c) { for (var d = $(c).find(b), e = $(c).height() ; d.outerHeight() > e;) d.text(function (a, b) { return b.replace(/\W*\s(\S)*$/, "...") }) }) } function changeIframeSrc() { $("#conf").attr("src", $("#conf").data("src")) } function changeIframeSrcToEmpty() { $("#conf").attr("src", "") } function onTemplateLoaded(a) { var b = brightcove.getPlayer(a), c = b.getModule(APIModules.VIDEO_PLAYER), d = b.getModule(APIModules.EXPERIENCE); d.addEventListener(BCExperienceEvent.TEMPLATE_READY, function () { c.mute(!0) }) } function mutePlayer() { "undefined" != $(".video-js") && $(".video-js").each(function (a) { var b = $(this).attr("id"); videojs(b, {}, function () { this.muted(!0), this.on("adstart", function () { this.ima3.adPlayer.muted(!0) }) }) }) } function refreshSite() { $(".refresh-site").height($(this).height()), $(".refresh-site").width($(this).width()), $(".refresh-site").css("display", "block") } !function (a) { var b = {}, c = { mode: "horizontal", slideSelector: "", infiniteLoop: !0, hideControlOnEnd: !1, speed: 500, easing: null, slideMargin: 0, startSlide: 0, randomStart: !1, captions: !1, ticker: !1, tickerHover: !1, adaptiveHeight: !1, adaptiveHeightSpeed: 500, video: !1, useCSS: !0, preloadImages: "visible", responsive: !0, slideZIndex: 50, wrapperClass: "bx-wrapper", touchEnabled: !0, swipeThreshold: 50, oneToOneTouch: !0, preventDefaultSwipeX: !0, preventDefaultSwipeY: !1, pager: !0, pagerType: "full", pagerShortSeparator: " / ", pagerSelector: null, buildPager: null, pagerCustom: null, controls: !0, nextText: "Next", prevText: "Prev", nextSelector: null, prevSelector: null, autoControls: !1, startText: "Start", stopText: "Stop", autoControlsCombine: !1, autoControlsSelector: null, auto: !1, pause: 4e3, autoStart: !0, autoDirection: "next", autoHover: !1, autoDelay: 0, autoSlideForOnePage: !1, minSlides: 1, maxSlides: 1, moveSlides: 0, slideWidth: 0, onSliderLoad: function () { }, onSlideBefore: function () { }, onSlideAfter: function () { }, onSlideNext: function () { }, onSlidePrev: function () { }, onSliderResize: function () { } }; a.fn.bxSlider = function (d) { if (0 == this.length) return this; if (this.length > 1) return this.each(function () { a(this).bxSlider(d) }), this; var e = {}, f = this; b.el = this; var g = a(window).width(), h = a(window).height(), j = function () { e.settings = a.extend({}, c, d), e.settings.slideWidth = parseInt(e.settings.slideWidth), e.children = f.children(e.settings.slideSelector), e.children.length < e.settings.minSlides && (e.settings.minSlides = e.children.length), e.children.length < e.settings.maxSlides && (e.settings.maxSlides = e.children.length), e.settings.randomStart && (e.settings.startSlide = Math.floor(Math.random() * e.children.length)), e.active = { index: e.settings.startSlide }, e.carousel = e.settings.minSlides > 1 || e.settings.maxSlides > 1, e.carousel && (e.settings.preloadImages = "all"), e.minThreshold = e.settings.minSlides * e.settings.slideWidth + (e.settings.minSlides - 1) * e.settings.slideMargin, e.maxThreshold = e.settings.maxSlides * e.settings.slideWidth + (e.settings.maxSlides - 1) * e.settings.slideMargin, e.working = !1, e.controls = {}, e.interval = null, e.animProp = "vertical" == e.settings.mode ? "top" : "left", e.usingCSS = e.settings.useCSS && "fade" != e.settings.mode && function () { var a = document.createElement("div"), b = ["WebkitPerspective", "MozPerspective", "OPerspective", "msPerspective"]; for (var c in b) if (void 0 !== a.style[b[c]]) return e.cssPrefix = b[c].replace("Perspective", "").toLowerCase(), e.animProp = "-" + e.cssPrefix + "-transform", !0; return !1 }(), "vertical" == e.settings.mode && (e.settings.maxSlides = e.settings.minSlides), f.data("origStyle", f.attr("style")), f.children(e.settings.slideSelector).each(function () { a(this).data("origStyle", a(this).attr("style")) }), k() }, k = function () { f.wrap('"), this.$body.append(this.$elm), e = function (a, b) { b.elm.remove() }, this.showSpinner(), c.trigger(a.modal.AJAX_SEND), a.get(f).done(function (d) { b && (c.trigger(a.modal.AJAX_SUCCESS), b.$elm.empty().append(d).on(a.modal.CLOSE, e), b.hideSpinner(), b.open(), c.trigger(a.modal.AJAX_COMPLETE)) }).fail(function () { c.trigger(a.modal.AJAX_FAIL), b.hideSpinner(), c.trigger(a.modal.AJAX_COMPLETE) }); else this.$elm = c, this.open() }, a.modal.prototype = { constructor: a.modal, open: function () { stopRefreshSite(), changeIframeSrc(); var b = this; this.options.doFade ? (this.block(), setTimeout(function () { b.show() }, this.options.fadeDuration * this.options.fadeDelay)) : (this.block(), this.show()), this.options.escapeClose && a(document).on("keydown.modal", function (b) { 27 == b.which && a.modal.close() }), this.options.clickClose && this.blocker.click(a.modal.close) }, close: function () { refreshSiteInterval(), changeIframeSrcToEmpty(), this.unblock(), this.hide(), a(document).off("keydown.modal") }, block: function () { var b = this.options.doFade ? 0 : this.options.opacity; this.$elm.trigger(a.modal.BEFORE_BLOCK, [this._ctx()]), this.blocker = a('
').css({ top: 0, right: 0, bottom: 0, left: 0, width: "100%", height: "100%", position: "fixed", zIndex: this.options.zIndex, background: this.options.overlay, opacity: b }), this.$body.append(this.blocker), this.options.doFade && this.blocker.animate({ opacity: this.options.opacity }, this.options.fadeDuration), this.$elm.trigger(a.modal.BLOCK, [this._ctx()]) }, unblock: function () { this.options.doFade ? this.blocker.fadeOut(this.options.fadeDuration, function () { a(this).remove() }) : this.blocker.remove() }, show: function () { this.$elm.trigger(a.modal.BEFORE_OPEN, [this._ctx()]), this.options.showClose && (this.closeButton = a('
' + this.options.closeText + ""), this.$elm.append(this.closeButton)), this.$elm.addClass(this.options.modalClass + " current"), this.center(), this.options.doFade ? this.$elm.fadeIn(this.options.fadeDuration) : this.$elm.show(), this.$elm.trigger(a.modal.OPEN, [this._ctx()]) }, hide: function () { this.$elm.trigger(a.modal.BEFORE_CLOSE, [this._ctx()]), this.closeButton && this.closeButton.remove(), this.$elm.removeClass("current"), this.options.doFade ? this.$elm.fadeOut(this.options.fadeDuration) : this.$elm.hide(), this.$elm.trigger(a.modal.CLOSE, [this._ctx()]) }, showSpinner: function () { this.options.showSpinner && (this.spinner = this.spinner || a('
').append(this.options.spinnerHtml), this.$body.append(this.spinner), this.spinner.show()) }, hideSpinner: function () { this.spinner && this.spinner.remove() }, center: function () { this.$elm.css({ position: "fixed", top: "50%", left: "50%", marginTop: -(this.$elm.outerHeight() / 2), marginLeft: -(this.$elm.outerWidth() / 2), zIndex: this.options.zIndex + 1 }) }, _ctx: function () { return { elm: this.$elm, blocker: this.blocker, options: this.options } } }, a.modal.prototype.resize = a.modal.prototype.center, a.modal.close = function (a) { if (b) { a && a.preventDefault(), b.close(); var c = b.$elm; return b = null, c } }, a.modal.resize = function () { b && b.resize() }, a.modal.isActive = function () { return !!b }, a.modal.defaults = { overlay: "#000", opacity: .75, zIndex: 998, escapeClose: !0, clickClose: !0, closeText: "Close", closeClass: "", modalClass: "modal", spinnerHtml: null, showSpinner: !0, showClose: !0, fadeDuration: null, fadeDelay: 1 }, a.modal.BEFORE_BLOCK = "modal:before-block", a.modal.BLOCK = "modal:block", a.modal.BEFORE_OPEN = "modal:before-open", a.modal.OPEN = "modal:open", a.modal.BEFORE_CLOSE = "modal:before-close", a.modal.CLOSE = "modal:close", a.modal.AJAX_SEND = "modal:ajax:send", a.modal.AJAX_SUCCESS = "modal:ajax:success", a.modal.AJAX_FAIL = "modal:ajax:fail", a.modal.AJAX_COMPLETE = "modal:ajax:complete", a.fn.modal = function (c) { return 1 === this.length && (b = new a.modal(this, c)), this }, a(document).on("click.modal", 'a[rel="modal:close"]', a.modal.close), a(document).on("click.modal", 'a[rel="modal:open"]', function (b) { b.preventDefault(), a(this).modal() }) }(jQuery), !function (a, b, c) { function d() { var b = a(this); b.is(":visible") && e(b) && b.trigger(q) } function e(a) { var b = a[0].getBoundingClientRect(), c = -a.data(p).threshold, d = c, e = n - d, f = o - c; return (b.top >= d && b.top <= e || b.bottom >= d && b.bottom <= e) && (b.left >= c && b.left <= f || b.right >= c && b.right <= f) } function f() { n = b.innerHeight || c.documentElement.clientHeight, o = b.innerWidth || c.documentElement.clientWidth, g() } function g() { y = y.filter(s), 1 == this.nodeType ? a(this).find(s).each(d) : y.each(d) } function h() { var b = a(this), c = b.data(p), d = b.data("lazyload"); if (!d) { var e = b.children().filter('script[type="text/lazyload"]').get(0); d = a(e).html() } if (!d) { var f = b.contents().filter(function () { return 8 === this.nodeType }).get(0); d = f && a.trim(f.data) } var g = w.html(d).contents(); b.replaceWith(g), a.isFunction(c.load) && c.load.call(g, g) } function i() { var b = a(this); j(b) | k(b) && (b.data(v) || (b.data(v, 1), b.bind(q, l))) } function j(a) { if (a.data(t)) return !1; var b = a.css("overflow"); return ("scroll" == b || "auto" == b) && (a.data(t, 1), a.bind("scroll", g), !0) } function k(a) { if (!a.data(u)) { var b = a.css("display"); if ("none" == b) return a.data(u, 1), a._bindShow(g), !0 } } function l() { var b = a(this); 0 === b.find(s).length && (b.removeData(t).removeData(u).removeData(v), b.unbind("scroll", g).unbind(q, l)._unbindShow(g)) } function m(b) { var c = void 0 === b ? y : a(b); c.each(function () { var b = a(this); b.is(s) && b.parents().each(i) }) } var n, o, p = "jquery-lazyload-any", q = "appear", r = p + "-" + q, s = ":" + r, t = p + "-scroller", u = p + "-display", v = p + "-watch", w = a("
"), x = !1, y = a(); a.expr[":"][r] = function (b) { return void 0 !== a(b).data(r) }, a.fn.lazyloadScript = function (e) { var j = { threshold: 900, trigger: q }; a.extend(j, e); var k = j.trigger.split(" "); return this.data(r, -1 != a.inArray(q, k)).data(p, j), this.bind(j.trigger, h), this.each(d), this.parents().each(i), this.each(function () { y = y.add(this) }), x || (x = !0, f(), a(c).ready(function () { a(b).bind("resize", f).bind("scroll", g) })), this }, a.lazyloadScript = { check: g, refresh: m }, function () { function b() { var b = a(this), c = "none" != b.css("display"); b.data(f) != c && (b.data(f, c), c && b.trigger(e)) } function c() { i = i.filter(g), i.each(b), 0 === i.length && (d = clearInterval(d)) } var d, e = "show", f = p + "-" + e, g = ":" + f, h = 50, i = a(); a.expr[":"][f] = function (b) { return void 0 !== a(b).data(f) }, a.fn._bindShow = function (a) { this.bind(e, a), this.data(f, "none" != this.css("display")), i = i.add(this), h && !d && (d = setInterval(c, h)) }, a.fn._unbindShow = function (a) { this.unbind(e, a), this.removeData(f) }, a.lazyloadScript.setInterval = function (b) { b == h || !a.isNumeric(b) || 0 > b || (h = b, d = clearInterval(d), h > 0 && (d = setInterval(c, h))) } }() }(jQuery, window, document), function (a, b, c, d) {
var e = a(b); a.fn.lazyload = function (f) { function g() { var b = 0; h.each(function () { if (a(this).hasClass("lazy")) { var c = a(this); if (!j.skip_invisible || c.is(":visible")) if (a.abovethetop(this, j) || a.leftofbegin(this, j)); else if (a.belowthefold(this, j) || a.rightoffold(this, j)) { if (++b > j.failure_limit) return !1 } else c.trigger("appear"), b = 0 } }) } var i, h = this, j = { threshold: 0, failure_limit: 0, event: "scroll", effect: "show", container: b, data_attribute: "original", skip_invisible: !0, appear: null, load: null, effect_speed: 10, placeholder: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC" }; return f && (d !== f.failurelimit && (f.failure_limit = f.failurelimit, delete f.failurelimit), d !== f.effectspeed && (f.effect_speed = f.effectspeed, delete f.effectspeed), a.extend(j, f)), i = j.container === d || j.container === b ? e : a(j.container), 0 === j.event.indexOf("scroll") && i.bind(j.event, function () { return g() }), this.each(function () { var b = this, c = a(b); b.loaded = !1, c.attr("src") !== d && c.attr("src") !== !1 || c.is("img") && c.attr("src", j.placeholder), c.one("appear", function () { if (!this.loaded) { if (j.appear) { var d = h.length; j.appear.call(b, d, j) } a("
").bind("load", function () { var d = c.attr("data-" + j.data_attribute); c.hide(), c.is("img") ? c.attr("src", d) : c.css("background-image", "url('" + d + "')"), c[j.effect](j.effect_speed), b.loaded = !0; var e = a.grep(h, function (a) { return !a.loaded }); if (h = a(e), j.load) { var f = h.length; j.load.call(b, f, j) } }).attr("src", c.attr("data-" + j.data_attribute)) } }), 0 !== j.event.indexOf("scroll") && c.bind(j.event, function () { b.loaded || c.trigger("appear") }) }), e.bind("resize", function () { g() }), /(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion) && e.bind("pageshow", function (b) { b.originalEvent && b.originalEvent.persisted && h.each(function () { a(this).trigger("appear") }) }), a(c).ready(function () { g() }), this }, a.belowthefold = function (c, f) {
var g; return g = f.container === d || f.container === b ? (b.innerHeight ? b.innerHeight : e.height()) + e.scrollTop() : a(f.container).offset().top + a(f.container).height(),
g <= a(c).offset().top - f.threshold
}, a.rightoffold = function (c, f) { var g; return g = f.container === d || f.container === b ? e.width() + e.scrollLeft() : a(f.container).offset().left + a(f.container).width(), g <= a(c).offset().left - f.threshold }, a.abovethetop = function (c, f) { var g; return g = f.container === d || f.container === b ? e.scrollTop() : a(f.container).offset().top, g >= a(c).offset().top + f.threshold + a(c).height() }, a.leftofbegin = function (c, f) { var g; return g = f.container === d || f.container === b ? e.scrollLeft() : a(f.container).offset().left, g >= a(c).offset().left + f.threshold + a(c).width() }, a.inviewport = function (b, c) { return !(a.rightoffold(b, c) || a.leftofbegin(b, c) || a.belowthefold(b, c) || a.abovethetop(b, c)) }, a.extend(a.expr[":"], { "below-the-fold": function (b) { return a.belowthefold(b, { threshold: 0 }) }, "above-the-top": function (b) { return !a.belowthefold(b, { threshold: 0 }) }, "right-of-screen": function (b) { return a.rightoffold(b, { threshold: 0 }) }, "left-of-screen": function (b) { return !a.rightoffold(b, { threshold: 0 }) }, "in-viewport": function (b) { return a.inviewport(b, { threshold: 0 }) }, "above-the-fold": function (b) { return !a.belowthefold(b, { threshold: 0 }) }, "right-of-fold": function (b) { return a.rightoffold(b, { threshold: 0 }) }, "left-of-fold": function (b) { return !a.rightoffold(b, { threshold: 0 }) } })
}(jQuery, window, document), function (a, b, c) { function d(a) { var b = {}, d = /^jQuery\d+$/; return c.each(a.attributes, function (a, c) { c.specified && !d.test(c.name) && (b[c.name] = c.value) }), b } function e(a, b) { var d = this, e = c(d); if (d.value == e.attr("placeholder") && e.hasClass("placeholder")) if (e.data("placeholder-password")) { if (e = e.hide().next().show().attr("id", e.removeAttr("id").data("placeholder-id")), a === !0) return e[0].value = b; e.focus() } else d.value = "", e.removeClass("placeholder"), d == g() && d.select() } function f() { var a, b = this, f = c(b), g = this.id; if ("" == b.value) { if ("password" == b.type) { if (!f.data("placeholder-textinput")) { try { a = f.clone().attr({ type: "text" }) } catch (b) { a = c("
").attr(c.extend(d(this), { type: "text" })) } a.removeAttr("name").data({ "placeholder-password": f, "placeholder-id": g }).bind("focus.placeholder", e), f.data({ "placeholder-textinput": a, "placeholder-id": g }).before(a) } f = f.removeAttr("id").hide().prev().attr("id", g).show() } f.addClass("placeholder"), f[0].value = f.attr("placeholder") } else f.removeClass("placeholder") } function g() { try { return b.activeElement } catch (a) { } } var n, o, h = "[object OperaMini]" == Object.prototype.toString.call(a.operamini), i = "placeholder" in b.createElement("input") && !h, j = "placeholder" in b.createElement("textarea") && !h, k = c.fn, l = c.valHooks, m = c.propHooks; i && j ? (o = k.placeholder = function () { return this }, o.input = o.textarea = !0) : (o = k.placeholder = function () { var a = this; return a.filter((i ? "textarea" : ":input") + "[placeholder]").not(".placeholder").bind({ "focus.placeholder": e, "blur.placeholder": f }).data("placeholder-enabled", !0).trigger("blur.placeholder"), a }, o.input = i, o.textarea = j, n = { get: function (a) { var b = c(a), d = b.data("placeholder-password"); return d ? d[0].value : b.data("placeholder-enabled") && b.hasClass("placeholder") ? "" : a.value }, set: function (a, b) { var d = c(a), h = d.data("placeholder-password"); return h ? h[0].value = b : d.data("placeholder-enabled") ? ("" == b ? (a.value = b, a != g() && f.call(a)) : d.hasClass("placeholder") ? e.call(a, !0, b) || (a.value = b) : a.value = b, d) : a.value = b } }, i || (l.input = n, m.value = n), j || (l.textarea = n, m.value = n), c(function () { c(b).delegate("form", "submit.placeholder", function () { var a = c(".placeholder", this).each(e); setTimeout(function () { a.each(f) }, 10) }) }), c(a).bind("beforeunload.placeholder", function () { c(".placeholder").each(function () { this.value = "" }) })) }(this, document, jQuery), $(window).on("error", function (a) { return a.preventDefault(), !1 }), $(document).ready(function () {
function layoutZoom() { if ("mozilla" == getBrowser()); else { var a = document.createElementNS("http://www.w3.org/2000/svg", "svg"); a.setAttribute("xmlns", "http://www.w3.org/2000/svg"), a.setAttribute("version", "1.1"), document.body.appendChild(a); var b = 100 * a.currentScale; if (document.body.removeChild(a), b < MIN_ZOOM) { var c = b / MIN_ZOOM * 100, d = 100 / c * 100; document.body.style.zoom = d + "%" } else document.body.style.zoom = "100%" } } function justtext(a) { return $(a).clone().children().remove().end().text() } function turnOffMenu() { $(".main-menu-item.hoverd").next().hide(), $(".main-menu-item.hoverd").removeClass("hoverd"), $("#site-overlay").removeClass("site-overlay") } function resizeLikeBox() { var a, b = $(".fb-like-box iframe").attr("src"); if (b) { var c; $(".content-wrap").width() < 1200 ? (a = "950", c = b.replace("&width=1190", "&width=950")) : $(".content-wrap").width() >= 1200 && (a = "1190", c = b.replace("&width=950", "&width=1190")), c != b && ($(".fb-like-box iframe").attr("width", a), $(".fb-like-box iframe").attr("src", c)) } } function stopVideos() { for (var a = document.getElementsByClassName("video-channel-main-video"), b = 0; b < a.length; b++) { var c = a[b].getElementsByTagName("iframe"), d = a[b].getElementsByTagName("object"); if (c.length > 0) { var e = c[0].contentWindow, f = "stopVideo"; e.postMessage('{"event":"command","func":"' + f + '","args":""}', "*") } if (d.length > 0) { var g = d[0], h = g.id; try { var i = brightcove.getExperience(h); modVP = i.getModule(APIModules.VIDEO_PLAYER), modVP.pause() } catch (a) { } } } } function resizeNewsTicker() { $(".breaking-news-wrap.content-box .bx-viewport").css("height", "3" == pageTypeId ? "405px" : "351px") } function updateImagePager() { $(".navctl .pager").html(cImage + "/" + numImages), $(".galdot").removeClass("current"), $(".galdot:nth-child(" + cImage + ")").addClass("current") } function iupdateImagePager() { $(".inavctl .pager").html(icImage + "/" + inumImages), $(".igaldot").removeClass("current"), $(".igaldot:nth-child(" + icImage + ")").addClass("current") } function facebookShare(a) { a = "https://www.facebook.com/dialog/share?app_id=163414806897&display=popup&href=" + encodeURIComponent(a) + "&redirect_uri=" + encodeURIComponent(a), window.open(a, "_blank", "width=500, height=500,top=200,left=200") } function isEmail(a) { var b = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; return b.test(a) } function registerUser(a, b) { var c = "email:'"; c = c + a + "'", c = c + ",contactListID:'" + b + "'"; var d = CallPageMethod("registerUser", success, fail, c); return d } function success(a) { if (null != a) { var b = $(".newsletter-signup-form"); "9" == pageTypeId && (b = $(".article-newsletter-signup-form")), "succses" == a.d ? "9" == pageTypeId ? b.html('
Thank you!
') : b.text("Thank you!") : "conflict" == a.d ? "9" == pageTypeId ? b.html('
This email already exists!
') : b.text("This email already exists!") : "robots" != a.d && "abuser" != a.d || $("#newsletter-submit").unbind("click") } } function registerUserTop(a, b) { var c = "email:'"; c = c + a + "'", c = c + ",contactListID:'" + b + "'"; var d = CallPageMethod("registerUserTop", successTop, fail, c); return d } function successTop(a) { null != a && ("succses" == a.d ? (alert("Thank you!"), $("#subscribe-top-email").val("")) : "conflict" == a.d ? alert("This email already exists!") : "robots" != a.d && "abuser" != a.d || $("#subscribe-top-button").unbind("click")) } function fail(a) { alert("An error occurred." + a.responseText) } function CallPageMethod(a, b, c, d) { $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", dataType: "json", async: !1, cache: !1, url: "/WS.asmx/registerUser", data: "{" + d + "}", success: b, error: c }) } function submitNewsLetter() { $("#newsletter-signup-checkbox").is(":checked") ? (terms = !1, $("#newsletter-form-msg").html("You must accept the terms and conditions").fadeIn()) : (terms = !0, emailVal = $("#user-email-input").val(), email = isEmail(emailVal), 1 == email ? (contactListID = $("#contact-list-id").val(), registerUser(emailVal, contactListID)) : $("#newsletter-form-msg").html("Please insert a valid email address").fadeIn()) } function submitNewsLetterTop() { terms = !0, emailVal = $("#subscribe-top-email").val(), email = isEmail(emailVal), 1 == email ? (contactListID = $("#subscribe-top-contact-list-id").val(), registerUserTop(emailVal, contactListID)) : alert("Please insert a valid email address") } var SEARCH_PAGE = "/Search", MIN_ZOOM = 50; !function (a, b, c) { "use strict"; "undefined" != typeof module && module.exports ? module.exports = c(b, a) : "function" == typeof define && define.amd ? define("detect-zoom", function () { return c(b, a) }) : a[b] = c(b, a) }(window, "detectZoom", function () { var a = function () { return window.devicePixelRatio || 1 }, b = function () { return { zoom: 1, devicePxPerCssPx: 1 } }, c = function () { var b = Math.round(100 * (screen.deviceXDPI / screen.logicalXDPI)) / 100; return { zoom: b, devicePxPerCssPx: b * a() } }, d = function () { var b = Math.round(100 * (document.documentElement.offsetHeight / window.innerHeight)) / 100; return { zoom: b, devicePxPerCssPx: b * a() } }, e = function () { var b = 90 == Math.abs(window.orientation) ? screen.height : screen.width, c = b / window.innerWidth; return { zoom: c, devicePxPerCssPx: c * a() } }, f = function () { var b = function (a) { return a.replace(/;/g, " !important;") }, c = document.createElement("div"); c.innerHTML = "1
2
3
4
5
6
7
8
9
0", c.setAttribute("style", b("font: 100px/1em sans-serif; -webkit-text-size-adjust: none; text-size-adjust: none; height: auto; width: 1em; padding: 0; overflow: visible;")); var d = document.createElement("div"); d.setAttribute("style", b("width:0; height:0; overflow:hidden; visibility:hidden; position: absolute;")), d.appendChild(c), document.body.appendChild(d); var e = 1e3 / c.clientHeight; return e = Math.round(100 * e) / 100, document.body.removeChild(d), { zoom: e, devicePxPerCssPx: e * a() } }, g = function () { var a = j("min--moz-device-pixel-ratio", "", 0, 10, 20, 1e-4); return a = Math.round(100 * a) / 100, { zoom: a, devicePxPerCssPx: a } }, h = function () { return { zoom: g().zoom, devicePxPerCssPx: a() } }, i = function () { var b = window.top.outerWidth / window.top.innerWidth; return b = Math.round(100 * b) / 100, { zoom: b, devicePxPerCssPx: b * a() } }, j = function (a, b, c, d, e, f) { function g(c, d, e) { var i = (c + d) / 2; if (0 >= e || f > d - c) return i; var j = "(" + a + ":" + i + b + ")"; return h(j).matches ? g(i, d, e - 1) : g(c, i, e - 1) } var h, i, j, k; window.matchMedia ? h = window.matchMedia : (i = document.getElementsByTagName("head")[0], j = document.createElement("style"), i.appendChild(j), k = document.createElement("div"), k.className = "mediaQueryBinarySearch", k.style.display = "none", document.body.appendChild(k), h = function (a) { j.sheet.insertRule("@media " + a + "{.mediaQueryBinarySearch {text-decoration: underline} }", 0); var b = "underline" == getComputedStyle(k, null).textDecoration; return j.sheet.deleteRule(0), { matches: b } }); var l = g(c, d, e); return k && (i.removeChild(j), document.body.removeChild(k)), l }, k = function () { var a = b; return isNaN(screen.logicalXDPI) || isNaN(screen.systemXDPI) ? window.navigator.msMaxTouchPoints ? a = d : "orientation" in window && "string" == typeof document.body.style.webkitMarquee ? a = e : "string" == typeof document.body.style.webkitMarquee ? a = f : navigator.userAgent.indexOf("Opera") >= 0 ? a = i : window.devicePixelRatio ? a = h : g().zoom > .001 && (a = g) : a = c, a }(); return { zoom: function () { return k().zoom }, device: function () { return k().devicePxPerCssPx } } }), layoutZoom(), $(window).on("resize", function () { layoutZoom() }), $(".MagazineLoginTxt").keydown(function (a) { if (13 == a.keyCode) return a.preventDefault(), !1 }), $("img.lazy").lazyload({ effect: "show", failure_limit: 999, threshold: 220 }), $(".main-menu-item,.sub-menu-item").on("click", function (a) { var c = (justtext(this), document.location.href), d = c.split("/"), e = c.split("/").length, f = d[e - 1], g = /\w+([0-9]$)/.test(c); g && (f = d[e - 2]); var h = $(this).attr("href"); window.location.href = h }); var MENU_SHOW_DELAY = 200, showOverlay; if ($(".main-menu-item-wrap").on({ mouseenter: function () { var b = ($(this), $(this).find(".main-sub-menu-inner-wrap")), c = $(this).find(".main-sub-menu-inner-wrap > .sub-menu-featured-items-wrap"); c.find("img").each(function () { $(this).attr("src") != $(this).attr("data-original") && $(this).attr("src", $(this).attr("data-original")) }); var d = b.find(".sub-menu"); 0 == b.find(".sub-menu-default-items").length && (b.append(""), b.find(".sub-menu-default-items").html(c.html()), c.remove(), c = b.find(".sub-menu-default-items"), 0 == d.find("a[href!='']").length && "none" != d.css("display") && (d.css("display", "none"), c.css("width", "100%"), c.css("border-left", "none"), c.css("padding-left", "0"), c.css("display", "block")), d.find(".sub-menu-featured-items-wrap").each(function () { b.append($(this).clone()), $(this).remove() })), b.find(".sub-menu-default-items").css("display", "inline-block"), b.find(".sub-menu-featured-items-wrap").css("display", "none"), showOverlay = $(this).find(".main-sub-menu a[href!='']").length > 0, showOverlay || $("#site-overlay").removeClass("site-overlay"); var e = $(this).find(".main-menu-item"); e.addClass("above"), setTimeout(function () { e.hasClass("above") && (showOverlay && $("#site-overlay").addClass("site-overlay"), $(".main-menu-item.hoverd").next().hide(), $(".main-menu-item.hoverd").removeClass("hoverd"), e.addClass("hoverd"), showOverlay && $(".main-menu-item.hoverd").next().show()) }, MENU_SHOW_DELAY) }, mouseleave: function () { var a = $(this).find(".main-menu-item"); a.removeClass("above") } }), $("ul.nav").on({ mouseleave: function () { turnOffMenu() } }), $(window).on({ scroll: function () { turnOffMenu() } }), $(".sub-menu .sub-menu-item").on({ mouseenter: function () { var a = $(this).parent().prevAll().length + 3, b = $(this).parent().parent().parent().parent().parent().find(".main-sub-menu-inner-wrap > .sub-menu-featured-items-wrap:nth-child(" + a + ")"); b.find("img").each(function () { $(this).attr("src") != $(this).attr("data-original") && $(this).attr("src", $(this).attr("data-original")) }); var c = b.parent().find(".sub-menu-default-items"); c.css("display", "none"), $(this).parent().parent().parent().parent().parent().find(".main-sub-menu-inner-wrap > .sub-menu-featured-items-wrap").css("display", "none"), b.css("display", "inline-block") } }), $(".search-input").on("keypress", function (a) { var b = a.which ? a.which : a.keyCode; 13 == b && (a.preventDefault(), self.location = SEARCH_PAGE + "?search=" + encodeURI($(this).val())) }), $(".search-submit").on("click", function (a) { a.preventDefault(), self.location = SEARCH_PAGE + "?search=" + encodeURI($(".search-input").val()) }), "7" != pageTypeId && "9" != pageTypeId && "11" != pageTypeId && $("#level-1-news-slider img").length > 1) { var level1NewsSlider = $("#level-1-news-slider").bxSlider({ responsive: !1, slideWidth: $(".content-wrap").width() >= 1200 ? 526 : 462, pager: !1, controls: $("#level-1-news-slider li").length > 1, nextText: '
', prevText: '
' }); document.getElementById("level-1-news-slider") && $(window).on("resize", function () { level1NewsSlider.reloadSlider({ responsive: !1, slideWidth: $(".content-wrap").width() >= 1200 ? 526 : 462, pager: !1, controls: $("#level-1-news-slider li").length > 1, nextText: '
', prevText: '
' }) }), $(".news-slider-wrap .bx-controls-direction").on("click", function () { $(".news-slider-wrap img").each(function () { $(this).attr("src") != $(this).attr("data-original") && $(this).attr("src", $(this).attr("data-original")) }) }), $(".news-slider-wrap").on("mouseenter", function () { $(".news-slider-wrap img:nth-child(2), .news-slider-wrap img:last-child").each(function () { $(this).attr("src") != $(this).attr("data-original") && $(this).attr("src", $(this).attr("data-original")) }) }), "ontouchstart" in window && $(".news-slider-wrap").on("touchstart", function () { $(".news-slider-wrap img").each(function () { $(this).attr("src") != $(this).attr("data-original") && $(this).attr("src", $(this).attr("data-original")) }) }) } if ("3" == pageTypeId) { $(window).on("scroll resize", function () { if ("" == $("#fbLikeBox").html()) { var a, b = 200; a = (window.innerHeight ? window.innerHeight : $(window).height()) + $(window).scrollTop(); var c = a <= $("#fbLikeBox").offset().top - b; a = a = $(window).width() + $(window).scrollLeft(); var d = a <= $("#fbLikeBox").offset().left - b; a = $(window).scrollTop(); var e = a >= $("#fbLikeBox").offset().top + b + $("#fbLikeBox").height(); a = $(window).scrollLeft(); var f = a >= $("#fbLikeBox").offset().left + b + $("#fbLikeBox").width(); e || f || c || d || $("#fbLikeBox").html(fbLikeBoxHTML) } resizeLikeBox() }); var weatherSlider = $("#weather-slider").bxSlider({ minSlides: $(".content-wrap").width() >= 1200 ? 2 : 1, maxSlides: $(".content-wrap").width() >= 1200 ? 2 : 1, infiniteLoop: !0, slideWidth: 218, pager: !1, controls: !0, nextText: '
', prevText: '
', prevSelector: $("#weather-prev"), nextSelector: $("#weather-next") }); document.getElementById("weather-slider") && $(window).on("resize", function () { weatherSlider.reloadSlider({ minSlides: $(".content-wrap").width() >= 1200 ? 2 : 1, maxSlides: $(".content-wrap").width() >= 1200 ? 2 : 1, infiniteLoop: !0, slideWidth: 218, pager: !1, controls: !0, nextText: '
', prevText: '
', prevSelector: $("#weather-prev"), nextSelector: $("#weather-next") }) }), $("#video-section-slider").bxSlider({ minSlides: 1, maxSlides: 1, slideWidth: 153, infiniteLoop: !0, pager: !1, controls: !0, nextText: '
', prevText: '
', prevSelector: $("#video-section-prev"), nextSelector: $("#video-section-next") }), $("#video-section-prev, #video-section-next").on("mouseenter click", function () { $(".video-section-wrap img").each(function () { $(this).attr("src") != $(this).attr("data-original") && $(this).attr("src", $(this).attr("data-original")) }) }), $("#featured-blogs-slider").bxSlider({ minSlides: 1, maxSlides: 1, slideWidth: 153, infiniteLoop: !0, pager: !1, controls: !0, nextText: '
', prevText: '
', prevSelector: $("#featured-blogs-prev"), nextSelector: $("#featured-blogs-next") }), $("#featured-blogs-prev, #featured-blogs-next").on("mouseenter click", function () { $(".featured-blogs-wrap img").each(function () { $(this).attr("src") != $(this).attr("data-original") && $(this).attr("src", $(this).attr("data-original")) }) }), cutStringByHeight("hot-on-social-item-content", " a"), cutStringByHeight("video-section-item-content", " p"), $("#blogs-boxes-slider").bxSlider({ minSlides: 1, maxSlides: 1, slideWidth: 926, infiniteLoop: !0, pager: !0, controls: !0, nextText: '
', prevText: '
', prevSelector: $("#blogs-boxes-prev"), nextSelector: $("#blogs-boxes-next"), pagerSelector: $("#divPaging-blogs"), pagerActiveClass: "pager-active" }), $("#blogs-boxes-prev, #blogs-boxes-next").on("mouseenter click", function () { $(".blogs-boxes-wrap img").each(function () { $(this).removeClass("lazy"), $(this).attr("src") != $(this).attr("data-original") && $(this).attr("src", $(this).attr("data-original")) }) }), $("#experts-boxes-slider").bxSlider({ minSlides: 1, maxSlides: 1, slideWidth: 926, infiniteLoop: !0, pager: !0, controls: !0, nextText: '
', prevText: '
', prevSelector: $("#experts-boxes-prev"), nextSelector: $("#experts-boxes-next"), pagerSelector: $("#divPaging-experts"), pagerActiveClass: "pager-active" }), $("#experts-boxes-prev, #Experts-boxes-next").on("mouseenter click", function () { $(".experts-boxes-wrap img").each(function () { $(this).removeClass("lazy"), $(this).attr("src") != $(this).attr("data-original") && $(this).attr("src", $(this).attr("data-original")) }) }); var l9vidLZ = !1; $(".level-9").length > 0 && $(window).on("scroll resize", function () { if (!l9vidLZ) { var a, b = 200; a = (window.innerHeight ? window.innerHeight : $(window).height()) + $(window).scrollTop(); var c = a <= $(".level-9").offset().top - b; a = a = $(window).width() + $(window).scrollLeft(); var d = a <= $(".level-9").offset().left - b; a = $(window).scrollTop(); var e = a >= $(".level-9").offset().top + b + $(".level-9").height(); a = $(window).scrollLeft(); var f = a >= $(".level-9").offset().left + b + $(".level-9").width(); if (e || f); else if (!c && !d) { var g = $(".video-channel-related-videos-wrap ul li:last-child .items-share-wrap").attr("data-share-url"), h = $(".video-channel-related-videos-wrap ul li:last-child .items-share-wrap").attr("data-title"), i = $(".video-channel-related-videos-wrap ul li:last-child .items-share-wrap").attr("data-social-title"); $(".video-channel-main-video-wrap .inline-block .items-share-wrap").attr("data-share-url", g), $(".video-channel-main-video-wrap .inline-block .items-share-wrap").attr("data-title", h), $(".video-channel-main-video-wrap .inline-block .items-share-wrap").attr("data-social-title", i), l9vidLZ = !0 } } }), $(window).on("resize", function () { $(".content-wrap").width() < 1200 ? vw = "600" : $(".content-wrap").width() >= 1200 && (vw = "659"), $(".video-channel-main-video iframe.channel-video").attr("width", vw), $(".video-channel-main-video object.BrightcoveExperience").attr("width", vw), $(".video-channel-main-video object.BrightcoveExperience param[name='width']").attr("value", vw) }), $(".video-channel-related-videos-wrap").each(function () { $(".content-wrap").width() < 1200 ? vw = "600" : $(".content-wrap").width() >= 1200 && (vw = "659"), hv = $(this).find("li:last"), hvTitle = $(hv).find(".video-channel-related-video-title").text(), hvVideo = $(hv).find(".video-channel-related-video-thumb").data("related-url"), hvType = $(hv).find(".video-channel-related-video-thumb").data("video-type"), mvWrap = $(this).parent().find(".video-channel-main-video"), mvTitleWrap = $(this).parent().find(".video-channel-main-video-title"), "youtube" == hvType ? $(mvWrap).html('
') : "brightcove" == hvType ? $(mvWrap).html('
') : "ILTV" == hvType && $(mvWrap).html('
'), $(mvTitleWrap).html(hvTitle) }), $(".video-channel-related-video-thumb").on("click", function () { item = this, $(".video-channel-main-video-icon").css("display", "block"), $(".content-wrap").width() < 1200 ? vw = "600" : $(".content-wrap").width() >= 1200 && (vw = "659"), stopVideos(), relatedUrl = $(item).data("related-url"), videoType = $(item).data("video-type"), relatedTitle = $(item).parent().find(".video-channel-related-video-title").text(), vscope = $(item).closest(".video-channel-main-video-wrap"), relatedImage = $(item).data("image-url") + "&w=" + vw + "&h=360", "youtube" == videoType ? $(vscope).find(".video-channel-main-video").html('
') : "brightcove" == videoType ? $(vscope).find(".video-channel-main-video").html('
') : "Iframe_embbed" == hvType ? $(vscope).find(".video-channel-main-video").html('
') : "ILTV" == videoType && $(vscope).find(".video-channel-main-video").html('
'), $(vscope).find(".video-channel-main-video-title").html(relatedTitle), svul = $(item).closest("ul"), svli = $(item).closest(".video-channel-related-video").appendTo(svul), showvid = $(svul).find("li:nth-child(2)"), $(showvid).css("display", "inline-block"), $(".video-channel-related-video:last-child").css("display", "none"); var a = $(this).parent().find(".items-share-wrap").attr("data-share-url"); $(".video-channel-main-video-wrap .inline-block .items-share-wrap").attr("data-share-url", a), $(".video-channel-main-video-wrap .inline-block .items-share-wrap").attr("data-title", relatedTitle), $(".video-channel-main-video-wrap .inline-block .items-share-wrap").attr("data-social-title", relatedTitle), $(".video-channel-main-video-wrap .inline-block .video-channel-main-video-icon").attr("data-related-url", relatedUrl), $(".video-channel-main-video-wrap .inline-block .video-channel-main-video-icon").attr("data-video-type", videoType), $(window).scroll() }), $(".video-channel-main-video-icon").on("click", function () { item = this, relatedUrl = $(".video-channel-main-video-wrap .inline-block .video-channel-main-video-icon").attr("data-related-url").trim(), videoType = $(".video-channel-main-video-wrap .inline-block .video-channel-main-video-icon").attr("data-video-type"), "youtube" == videoType ? $(vscope).find(".video-channel-main-video").html('
') : "brightcove" == videoType ? $(vscope).find(".video-channel-main-video").html('
') : "Iframe_embbed" == videoType ? $(vscope).find(".video-channel-main-video").html('
') : "ILTV" == videoType && $(vscope).find(".video-channel-main-video").html('
'), $(".video-channel-main-video-icon").css("display", "none"), mutePlayer() }), $(".video-channel-menu-item-link").click(function (a) { a.preventDefault(), stopVideos(); var b = $(this).data("channel-name"), c = $("#" + b); $(".video-channel-menu-item-link.active").removeClass("active"), $(this).addClass("active"), $(".video-channel-main-video-wrap").hide(), $(c).show(), $("#" + b + " .video-channel-related-videos-wrap ul li:last-child .video-channel-related-video-thumb").click(), $(window).scroll() }), $(".israeli-innovation-menu-item-link").click(function (a) { a.preventDefault(); var b = $(this).data("israeli-innovation-name"), c = $("#IsraeliInnovationArticles" + b); $(".israeli-innovation-menu-item-link.active").removeClass("active"), $(this).addClass("active"), $(".israeli-innovation-articles-wrap").hide(), $(c).show(), $(window).scroll() }), $("#0 .video-channel-related-videos-wrap ul li:last-child .video-channel-related-video-thumb").click(), $("#spot-im-root2 .default-bubble2").on("click", function () { $("#spot-im-root2").fadeOut(8e3), eval($("#spot-im-script").html()) }) } if ("3" == pageTypeId || "14" == pageTypeId) {
setTimeout(function () { $("#home-news-ticker").bxSlider({ mode: "vertical", ticker: !0, useCSS: !1, minSlides: 4, speed: 6e4, tickerHover: !0, infiniteLoop: !0, onSliderLoad: function () { $(".breaking-news-wrap.content-box .bx-viewport").css("height", "3" == pageTypeId ? "405px" : "351px") } }) }, 4e3), $(window).on("resize", function () { resizeNewsTicker() }); var openBlogPage = !0; $("a.blog-box-item").on("click", function (a) { if (!openBlogPage) return a.preventDefault(), !1 }), $("a.blog-box-item .items-share").on({ mouseenter: function () { openBlogPage = !1 }, mouseleave: function () { openBlogPage = !0 } }), $(".blog-box-overlay").click(function () { var a = $(this).attr("data-url"); document.location.href = a }), $(".experts-box-overlay").click(function () { var a = $(this).attr("data-url"); document.location.href = a }); var grayscale = function () { var a = { colorProps: ["color", "backgroundColor", "borderBottomColor", "borderTopColor", "borderLeftColor", "borderRightColor", "backgroundImage"], externalImageHandler: { init: function (a, b) { "img" === a.nodeName.toLowerCase() || (d(a).backgroundImageSRC = b, a.style.backgroundImage = "") }, reset: function (a) { "img" === a.nodeName.toLowerCase() || (a.style.backgroundImage = "url(" + (d(a).backgroundImageSRC || "") + ")") } } }, c = function (a) { return new RegExp("https?://(?!" + window.location.hostname + ")").test(a) }, d = function () { var a = [0], b = "data" + +new Date; return function (c) { var d = c[b], e = a.length; return d || (d = c[b] = e, a[d] = {}), a[d] } }(), e = function (a, b, c) { var k, f = document.createElement("canvas"), h = f.getContext("2d"), i = a.naturalHeight || a.offsetHeight || a.height, j = a.naturalWidth || a.offsetWidth || a.width; f.height = i, f.width = j, h.drawImage(a, 0, 0); try { k = h.getImageData(0, 0, j, i) } catch (a) { } if (b) { e.preparing = !0; var l = 0; return void function () { if (e.preparing) { l === i && (h.putImageData(k, 0, 0, 0, 0, j, i), c ? d(c).BGdataURL = f.toDataURL() : d(a).dataURL = f.toDataURL()); for (var b = 0; b < j; b++) { var m = 4 * (l * j + b); k.data[m] = k.data[m + 1] = k.data[m + 2] = g(k.data[m], k.data[m + 1], k.data[m + 2]) } l++, setTimeout(arguments.callee, 0) } }() } e.preparing = !1; for (var l = 0; l < i; l++) for (var m = 0; m < j; m++) { var n = 4 * (l * j + m); k.data[n] = k.data[n + 1] = k.data[n + 2] = g(k.data[n], k.data[n + 1], k.data[n + 2]) } return h.putImageData(k, 0, 0, 0, 0, j, i), f }, f = function (a, b) { var c = document.defaultView && document.defaultView.getComputedStyle ? document.defaultView.getComputedStyle(a, null)[b] : a.currentStyle[b]; if (c && /^#[A-F0-9]/i.test(c)) { var d = c.match(/[A-F0-9]{2}/gi); c = "rgb(" + parseInt(d[0], 16) + "," + parseInt(d[1], 16) + "," + parseInt(d[2], 16) + ")" } return c }, g = function (a, b, c) { return parseInt(.2125 * a + .7154 * b + .0721 * c, 10) }, h = function (a) { var b = Array.prototype.slice.call(a.getElementsByTagName("*")); return b.unshift(a), b }, i = function (b) { if (b && b[0] && b.length && b[0].nodeName) for (var j = Array.prototype.slice.call(b), k = -1, l = j.length; ++k < l;) i.call(this, j[k]); else { if (b = b || document.documentElement, !document.createElement("canvas").getContext) return b.style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)", void (b.style.zoom = 1); for (var m = h(b), n = -1, o = m.length; ++n < o;) { var p = m[n]; if ("img" === p.nodeName.toLowerCase()) { var q = p.getAttribute("data-original"); if (!q) continue; if (c(q)) a.externalImageHandler.init(p, q); else { d(p).realSRC = q; try { p.src = d(p).dataURL || e(p).toDataURL() } catch (b) { a.externalImageHandler.init(p, q) } } } else for (var r = 0, s = a.colorProps.length; r < s; r++) { var t = a.colorProps[r], u = f(p, t); if (u) if (p.style[t] && (d(p)[t] = u), "rgb(" !== u.substring(0, 4)) { if (u.indexOf("url(") > -1) { var w = /\(['"]?(.+?)['"]?\)/, x = u.match(w)[1]; if (c(x)) { a.externalImageHandler.init(p, x), d(p).externalBG = !0; continue } try { var y = d(p).BGdataURL || function () { var a = document.createElement("img"); return a.src = x, e(a).toDataURL() }(); p.style[t] = u.replace(w, function (a, b) { return "(" + y + ")" }) } catch (b) { a.externalImageHandler.init(p, x) } } } else { var v = g.apply(null, u.match(/\d+/g)); p.style[t] = u = "rgb(" + v + "," + v + "," + v + ")" } } } } }; return i.reset = function (b) { if (b && b[0] && b.length && b[0].nodeName) for (var e = Array.prototype.slice.call(b), f = -1, g = e.length; ++f < g;) i.reset.call(this, e[f]); else { if (b = b || document.documentElement, !document.createElement("canvas").getContext) return void (b.style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=0)"); for (var j = h(b), k = -1, l = j.length; ++k < l;) { var m = j[k]; if ("img" === m.nodeName.toLowerCase()) { var n = m.getAttribute("data-original"); c(n) && a.externalImageHandler.reset(m, n), m.src = d(m).realSRC || n } else for (var o = 0, p = a.colorProps.length; o < p; o++) { d(m).externalBG && a.externalImageHandler.reset(m); var q = a.colorProps[o]; m.style[q] = d(m)[q] || "" } } } }, i.prepare = function (a) { if (a && a[0] && a.length && a[0].nodeName) for (var b = Array.prototype.slice.call(a), g = -1, j = b.length; ++g < j;) i.prepare.call(null, b[g]); else if (a = a || document.documentElement, document.createElement("canvas").getContext) for (var k = h(a), l = -1, m = k.length; ++l < m;) { var n = k[l]; if (d(n).skip) return; if ("img" === n.nodeName.toLowerCase()) n.getAttribute("data-original") && !c(n.src) && e(n, !0); else { var o = f(n, "backgroundImage"); if (o.indexOf("url(") > -1) { var p = /\(['"]?(.+?)['"]?\)/, q = o.match(p)[1]; if (!c(q)) { var r = document.createElement("img"); r.src = q, e(r, !0, n) } } } } }, i }(), $images, imageCount, counter; getInternetExplorerVersion() >= 10 && ($(".desaturate > img").each(function () {
var a = $(this), b = $(this).parent().width(), c = $(this).parent().height(); a.removeClass("lazy"), a.attr("src", a.attr("data-original") ? a.attr("data-original") : a.attr("src")), a.css({ position: "absolute" }).wrap("
").queue(function () { var a = $(this); a.parent().css({ width: b, height: c }), a.dequeue() }); var d = '
';
$(this).after(d)
}), $(".desaturate").hover(function () { $(this).find(".img_grayscale").css("opacity", "0") }, function () { $(this).find(".img_grayscale").css("opacity", "1") }))
} if ("14" == pageTypeId && ($(".start-blog-button").on("click", function (a) { a.preventDefault(), $("#frmStartBlogIfrm").attr("src", "https://members.jpost.com/landedpages/blog.aspx"), $("#frmStartBlogIfrm").show(), $(".content-box.blogs-page").hide() }), $("#search-blogs-input").on("keypress", function (a) { var b = a.which ? a.which : a.keyCode; 13 == b && (a.preventDefault(), self.location = SEARCH_PAGE + "?search=" + encodeURI($(this).val()) + "&blogger=1") }), $(".search-blogs-submit").on("click", function (a) { a.preventDefault(), self.location = SEARCH_PAGE + "?search=" + encodeURI($(".search-blogs-input").val()) + "&blogger=1" })), "31" == pageTypeId) { var blogs_query = "allinurl:jpost.com/Blogger"; if (q = getQS("search"), "" != q) { var start = getQS("start"); start = "" == start ? 1 : parseInt(start), $(".search-input").val(q), $("h1.category-menu-title").html("Search: " + q); var scrLoad = document.createElement("script"); scrLoad.src = "https://www.googleapis.com/customsearch/v1?key=AIzaSyCMGfdDaSfjqv5zYoS0mTJnOT3e9MURWkU&cx=012860551684240964068:7b9pexdovug&q=" + encodeURI((1 == getQS("blogger") ? blogs_query + " " : "") + q) + "&start=" + start + "&callback=getCSEResults", document.body.appendChild(scrLoad) } $(".search-publishdate-submit").on("click", function (a) { a.preventDefault(), self.location = SEARCH_PAGE + "?search=" + encodeURI($(".search-input").val()) + "&sort=metatags-publishdate" }) } if ("7" == pageTypeId || "11" == pageTypeId || "116" == pageTypeId || "13" == pageTypeId || "141" == pageTypeId || "142" == pageTypeId) { var numImages = $(".article-teaser-wrap .article-main-image").length; if (numImages > 1) { var cImage = 1, arrImages = new Array, arrCredit = new Array, onDots = !1; $(".article-teaser-wrap h2").next().wrap("
"), $(".galholder").append("
"), $(".galdots").on({ mouseenter: function () { onDots = !0 }, mouseleave: function () { onDots = !1 } }), $(".galholder").on("click", function () { onDots || $(".navctl .next").click() }); for (var n = 0; n < numImages; n++) $(".galdots").append("
"); $(".galdot").on("click", function () { cImage = parseInt($(this).attr("num")), updateImagePager(), $(".galholder .article-main-image").attr("src", arrImages[cImage - 1]), $(".article-image-caption-holder .article-image-caption").html(arrCredit[cImage - 1]) }), updateImagePager(), $(".article-teaser-wrap .article-main-image").each(function () { arrImages[arrImages.length] = $(this).attr("src") ? $(this).attr("src") : $(this).attr("data-original") }), $(".article-teaser-wrap .article-image-caption").each(function (a) { arrCredit[a] = $(this).html() }), $(".navctl .next").on("click", function () { cImage == numImages ? cImage = 1 : cImage += 1, updateImagePager(), $(".galholder .article-main-image").attr("src", arrImages[cImage - 1]), $(".article-image-caption-holder .article-image-caption").html(arrCredit[cImage - 1]) }), $(".navctl .previous").on("click", function () { 1 == cImage ? cImage = numImages : cImage -= 1, updateImagePager(), $(".galholder .article-main-image").attr("src", arrImages[cImage - 1]), $(".article-image-caption-holder .article-image-caption").html(arrCredit[cImage - 1]) }) } else $(".navctl").hide(); if ($(".article-text img").each(function () { var a = $(this).attr("alt"); "" != a && a && $("
" + a + "").insertAfter($(this)) }), $(".article-text .imagegallery img").length > 0) { $(".navctl").clone().insertAfter($(".article-text .imagegallery")).removeClass("navctl").addClass("inavctl"), $(".inavctl").append("
"), $(".inavctl").show(); var icImage = 1, iarrImages = new Array, iarrCredit = new Array, ionDots = !1, inumImages = $(".article-text .imagegallery img").length; $(".article-text .imagegallery img:first-child").wrap("
"), $(".igalholder").append("
"), $(".igaldots").on({ mouseenter: function () { ionDots = !0 }, mouseleave: function () { ionDots = !1 } }), $(".igalholder").on("click", function () { ionDots || $(".inavctl .next").click() }); for (var n = 0; n < inumImages; n++) $(".igaldots").append("
"); $(".igaldot").on("click", function () { icImage = parseInt($(this).attr("num")), iupdateImagePager(), $(".igalholder .article-main-image").attr("src", iarrImages[icImage - 1]), $(".article-text .article-image-caption").html(iarrCredit[icImage - 1]) }), iupdateImagePager(), $(".article-text .imagegallery img").each(function () { iarrImages[iarrImages.length] = $(this).attr("src") ? $(this).attr("src") : $(this).attr("data-original") }), $(".article-text .article-image-caption").each(function (a) { iarrCredit[a] = $(this).html() }), $(".inavctl .next").on("click", function () { icImage == inumImages ? icImage = 1 : icImage += 1, iupdateImagePager(), $(".igalholder .article-main-image").attr("src", iarrImages[icImage - 1]), $(".article-text .article-image-caption").html(iarrCredit[icImage - 1]) }), $(".inavctl .previous").on("click", function () { 1 == icImage ? icImage = inumImages : icImage -= 1, iupdateImagePager(), $(".igalholder .article-main-image").attr("src", iarrImages[icImage - 1]), $(".article-text .article-image-caption").html(iarrCredit[icImage - 1]) }), $(".article-text .article-image-caption").html(iarrCredit[0]) } $(document).on("click", ".social-share-buttons .share-twitter-button", function (a) { a.preventDefault(); var b = $(this).parent().data("share-url"), c = $("div.article-social-title").text().trim(), d = 575, e = 400, f = ($(window).width() - d) / 2, g = ($(window).height() - e) / 2, h = "https://twitter.com/share?text=" + encodeURI(c) + "&url=" + encodeURIComponent(b), i = "status=1,width=" + d + ",height=" + e + ",top=" + g + ",left=" + f; return window.open(h, "Tweet Us", i), !1 }), mutePlayer(), $(".lazyload").lazyloadScript({ threshold: 1600 }); var windowHref = "http://www.jpost.com" + window.location.pathname, title = document.title; $(".article-side-share").attr("data-share-url", windowHref), $(".article-side-share").attr("data-share-title", title), $(".article-side-share .facebook").click(function () { var a = $(this).parent().data("share-url"); facebookShare(a) }), $(".article-side-share .linked-in").click(function () { var a = $(this).parent().data("share-url"); url = "https://www.linkedin.com/cws/share?url=" + encodeURIComponent(a) + "&original_referer=" + encodeURIComponent(a) + "&token=&isFramed=false&lang=en_US&_ts=1468240739663.0916&xd_origin_host=http://www.jpost.com", window.open(url, "_blank", "width=500, height=500,top=200,left=200") }), $(".article-side-share .reddit").click(function () { var a = $(this).parent().data("share-url"); url = "https://www.reddit.com/submit?url=" + encodeURIComponent(a), window.open(url, "_blank", "width=500, height=500,top=200,left=200") }), $(".article-side-share .print").click(function () { var a = $(this).parent().data("articleid"); url = "http://www.jpost.com/printarticle.aspx?id=" + encodeURIComponent(a), window.open(url, "_blank", "width=500, height=500,top=200,left=200") }), $(".article-side-share .stumbleupon").click(function () { var a = $(this).parent().data("share-url"); url = "http://www.stumbleupon.com/?next=http%253A%252F%252Fwww.stumbleupon.com%252Fbadge%252F%253Furl%253D" + encodeURIComponent(a), window.open(url, "_blank", "width=500, height=500,top=200,left=200") }), $(".article-side-share .flipboard").click(function () { var a = $(this).parent().data("share-url"); url = "https://share.flipboard.com/u/login?done=%2Fbookmarklet%2Fpopout%3Fv%3D2%26title%3D%26url%3D" + encodeURIComponent(a) + "%26t%3D1472569566441%26utm_campaign%3Dwidgets%26utm_medium%3Dweb%26utm_source%3Dflipit%26utm_content%3Dwww.jpost.com&fromBookmarklet=1", window.open(url, "_blank", "width=500, height=500,top=200,left=200") }); var VKShowHeader = !0; $(".article-side-share .vk").click(function () { if (VKShowHeader) { VKShowHeader = !1; var a = document.createElement("script"); a.type = "text/javascript", a.src = "http://vk.com/js/api/share.js?90", a.charset = "windows-1251", $("head").append(a) } var b = $(this).parent().data("share-url"); url = "http://oauth.vk.com/authorize?client_id=-1&redirect_uri=http%3A%2F%2Fvk.com%2Fshare.php%3Furl%3D" + encodeURIComponent(b) + "&display=widget", window.open(url, "_blank", "width=500, height=500,top=200,left=200") }), $(document).on("click", ".article-side-share .twitter", function (a) { a.preventDefault(); var b = $(this).parent().data("share-url"), c = $(this).parent().data("share-title"), d = 575, e = 400, f = ($(window).width() - d) / 2, g = ($(window).height() - e) / 2, h = "https://twitter.com/share?text=" + encodeURI(c) + "&url=" + encodeURIComponent(b), i = "status=1,width=" + d + ",height=" + e + ",top=" + g + ",left=" + f; return window.open(h, "Tweet Us", i), !1 }), $(".article-side-share .gplus").click(function (a) { var b = $(this).parent().data("share-url"); console.log(b); var c = "https://plus.google.com/share?url=" + b + "&output=embed", d = 575, e = 400, f = ($(window).width() - d) / 2, g = ($(window).height() - e) / 2, i = "status=1,width=" + d + ",height=" + e + ",top=" + g + ",left=" + f; window.open(c, "Share on Google+", i) }), $(document).on("click", ".article-side-share .send-mail", function (a) { var b = $(this).parent().data("share-url"), c = $(this).parent().data("share-title"); window.location.href = "mailto:?subject=" + c + "&body=" + b }); var S_Width = 1350; $(window).on("load resize", function () { $(window).width() < S_Width ? ($(".article-side-share").css("display", "none"), $(".article-bottom-buttond .article-side-share").css("display", "block")) : $(".article-side-share").css("display", "block") }) } if ("8" == pageTypeId) { $("#lobby-videos-list").css("position", "relative"); var vslideheight = 378; $("#lobby-load-more-button-wrap").on("click", "#load-more-category-videos", function () { var a = 378 * $("#lobby-videos-list li").length, b = $(".lobby-videos-list-wrap").height(), c = b + vslideheight; $("html,body").animate({ scrollTop: c > a ? "+=" + (vslideheight - (c - a)) : "+=" + vslideheight }, 1500), $(".lobby-videos-list-wrap").animate({ height: c > a ? a : "+=" + vslideheight }, 1500, function () { $(".lobby-videos-list-wrap").height() >= $("#lobby-videos-list").height() && $("#lobby-load-more-button-wrap").html('
Back To Start
') }) }), $("#lobby-load-more-button-wrap").on("click", "#scroll-video-list-to-top", function () { var a = $(".lobby-videos-list-wrap").height(); $("html,body").animate({ scrollTop: "-=" + (a - vslideheight) }, 1500), $(".lobby-videos-list-wrap").animate({ height: 5 * vslideheight }, 1500, function () { $("#lobby-load-more-button-wrap").html('
Load More Videos
') }) }), $(".ie.9").size() > 0 && $("input, textarea").placeholder() } "9" == pageTypeId && $(document).on("click", ".social-share-buttons .share-twitter-button", function (a) { a.preventDefault(); var b = $(this).parent().data("share-url"), c = $("p.blogger-name").html(), d = 575, e = 400, f = ($(window).width() - d) / 2, g = ($(window).height() - e) / 2, h = "https://twitter.com/share?text=" + encodeURI(c) + "&url=" + encodeURIComponent(b), i = "status=1,width=" + d + ",height=" + e + ",top=" + g + ",left=" + f; return window.open(h, "Tweet Us", i), !1 }), $(".items-share.facebook").click(function () { var a = $(this).parent().data("share-url"); facebookShare(a) }), $("#showchannels").click(function () { $(".header-menu-mobile").toggle("slow"), $(".content-wrap").toggle(), $(".footer-wrap").toggle() }), $(".social-share-buttons .share-facebook-button").click(function () { var a = $(this).parent().data("share-url"); facebookShare(a) }), $(document).on("click", ".items-share.twitter", function (a) { a.preventDefault(); var b = $(this).parent().data("share-url"), c = $(this).parent().data("social-title"); "undefined" == c && (c = $(this).parent().data("title")); var d = 575, e = 400, f = ($(window).width() - d) / 2, g = ($(window).height() - e) / 2, h = "https://twitter.com/share?text=" + encodeURI(c) + "&url=" + encodeURIComponent(b), i = "status=1,width=" + d + ",height=" + e + ",top=" + g + ",left=" + f; return window.open(h, "Tweet Us", i), !1 }), $(".items-share.gplus").click(function (a) { var b = $(this).parent().data("share-url"); console.log(b); var c = "https://plus.google.com/share?url=" + b + "&output=embed", d = 575, e = 400, f = ($(window).width() - d) / 2, g = ($(window).height() - e) / 2, i = "status=1,width=" + d + ",height=" + e + ",top=" + g + ",left=" + f; window.open(c, "Share on Google+", i) }), $(".social-share-buttons .share-google-button").click(function (a) { var b = $(this).parent().data("share-url"), c = "https://plus.google.com/share?url=" + b + "&output=embed", d = 575, e = 400, f = ($(window).width() - d) / 2, g = ($(window).height() - e) / 2, i = "status=1,width=" + d + ",height=" + e + ",top=" + g + ",left=" + f; window.open(c, "Share on Google+", i) }), $("#user-email-input").keydown(function (a) { if (13 == a.keyCode) return a.preventDefault(), submitNewsLetter(), !1 }), $("#newsletter-submit").click(function (a) { a.preventDefault(), submitNewsLetter() }), $("#subscribe-top-button").click(function (a) { a.preventDefault(), submitNewsLetterTop() }); var slideheight = 885; document.getElementById("lobby-load-more-button-wrap") && ($("#lobby-load-more-button-wrap").on("click", "#load-more-category-articles", function () { var a = 222 * $(".list-category-articles li").length, b = $(".list-category-articles-inner-wrap").height(), c = b + slideheight; $("html,body").animate({ scrollTop: c > a ? "+=" + (slideheight - (c - a)) : "+=" + slideheight }, 1500), $(".list-category-articles-inner-wrap").animate({ height: c > a ? a : "+=" + slideheight }, 1500, function () { $(".list-category-articles-inner-wrap").height() >= $(".list-category-articles").height() && $("#lobby-load-more-button-wrap").html('
Back To Start
') }) }), $("#lobby-load-more-button-wrap").on("click", "#scroll-articles-list-to-top", function () { var a = $(".list-category-articles-inner-wrap").height(); $("html,body").animate({ scrollTop: "-=" + (a - slideheight) }, 1500), $(".list-category-articles-inner-wrap").animate({ height: slideheight }, 1500, function () { $("#lobby-load-more-button-wrap").html('
Load More News
') }) })); var katavaTopArticlesSlide; document.getElementById("katava-top-articles-slider") && ($("#katava-top-articles-slider").show(), katavaTopArticlesSlide = $("#katava-top-articles-slider").bxSlider({ speed: $(".content-wrap").width() >= 640 ? 2100 : 500, pager: !1, nextText: '
', prevText: '
', minSlides: $(".content-wrap").width() >= 1200 ? 4 : $(".content-wrap").width() >= 640 ? 3 : 1.5, maxSlides: $(".content-wrap").width() >= 1200 ? 4 : $(".content-wrap").width() >= 640 ? 3 : 1.5, slideWidth: $(".content-wrap").width() >= 640 ? 277 : 230, slideMargin: 10 }), $(window).on("resize", function () { katavaTopArticlesSlide.reloadSlider({ speed: $(".content-wrap").width() >= 640 ? 2100 : 500, pager: !1, nextText: '
', prevText: '
', minSlides: $(".content-wrap").width() >= 1200 ? 4 : $(".content-wrap").width() >= 640 ? 3 : 1.5, maxSlides: $(".content-wrap").width() >= 1200 ? 4 : $(".content-wrap").width() >= 640 ? 3 : 1.5, slideWidth: $(".content-wrap").width() >= 640 ? 277 : 230, slideMargin: 10 }) })); var footerMenuSlide; $(".content-wrap").width() < 640 && ($(".footer-menu").show(), footerMenuSlide = $(".footer-menu").bxSlider({ speed: 500, pager: !1, nextText: '
', prevText: '
', minSlides: 1.5, maxSlides: 1.5, slideWidth: 230, slideMargin: 10 })); var newsMaxLoaded = !1; document.getElementById("nmWidgetContainer") && $(window).on("load scroll", function () { var fold, threshold = 200; fold = (window.innerHeight ? window.innerHeight : $(window).height()) + $(window).scrollTop(); var belowthefold = fold <= $("#nmWidgetContainer").offset().top - threshold; fold = fold = $(window).width() + $(window).scrollLeft(); var rightoffold = fold <= $("#nmWidgetContainer").offset().left - threshold; fold = $(window).scrollTop(); var abovethetop = fold >= $("#nmWidgetContainer").offset().top + threshold + $("#nmWidgetContainer").height(); fold = $(window).scrollLeft(); var leftofbegin = fold >= $("#nmWidgetContainer").offset().left + threshold + $("#nmWidgetContainer").width(); if (abovethetop || leftofbegin); else if (!belowthefold && !rightoffold && !newsMaxLoaded) { newsMaxLoaded = !0; var scr = document.createElement("script"); scr.src = newsmax_url, scr.onload = function () { eval(newsmax_cmd) }, document.getElementById("nmWidgetContainer_scr").appendChild(scr) } }); var lightwindow_hight, lightwindow_width, lightwindow_title, lightwindow_url; $("#ShowLighWindow").click(function () { lightwindow_hight = $(this).data("height") + 20, lightwindow_width = $(this).data("width") + 20, lightwindow_title = $(this).data("title"), lightwindow_url = $(this).data("url"); var a = window.innerHeight, b = window.innerWidth, c = (a - lightwindow_hight + 3) / 2; $("#lightwindow-div").removeAttr("style"), $("#lightwindow-div").css("width", b + "px"), $("#lightwindow-div").css("height", a + "px"), $("#lightwindow-div").attr("class", "light-window-div"), $("#lightwindow-info-div").css("margin", "0 auto"), $("#lightwindow-info-div").css("margin-top", c + "px"), $("#lightwindow-info-div").css("width", lightwindow_width + 3 + "px"), $("#lightwindow-info-div").css("height", lightwindow_hight + 3 + "px"), $("#lightwindowtitle").html(lightwindow_title), setTimeout(function () { $("#lightwindowobject").css("height", lightwindow_hight + "px"), $("#lightwindowobject").css("width", lightwindow_width + "px"), $("#lightwindowobject").attr("class", "light-window-object"), $("#lightwindowobject").fadeIn(800), $("#lightwindowobject").html("
") }, 300) }), $("#lightwindowclose").click(function () { $("#lightwindow-div").removeAttr("style"), $("#lightwindow-div").removeAttr("class"), $("#lightwindow-div").css("display", "none"), $("#lightwindowobject").removeAttr("style"), $("#lightwindowobject").removeAttr("class"), $("#lightwindowobject").html("") })
}); var ScreenWidth; ScreenWidth = (3 == pageTypeId, 1580), $(window).on("load resize", function () { $(window).width() < ScreenWidth ? $(".header-banner-ears-sides").css("display", "none") : $(".header-banner-ears-sides").css("display", "block") }), eval(function (a, b, c, d, e, f) { for (e = function (a) { return (a < b ? "" : e(a / b)) + String.fromCharCode(a % b + 161) }; c--;) d[c] && (a = a.replace(new RegExp(e(c), "g"), d[c])); return a }("Ö ¡(){® Ø={'¥':¡(){¢ £.¥},'©':{'±':¡(){¢ £.©.±},'¯':¡(){¢ £.©.¯}},'¬':¡(){¢ £.¬},'¶':¡(){¢ £.¶},'º':¡(){¢ £.º},'Á':¡(){¢ £.Á},'À':¡(){¢ £.À},'½':¡(){¢ £.½},'¾':¡(){¢ £.¾},'¼':¡(){¢ £.¼},'·':¡(){¢ £.·},'Â':¡(){¢ £.Â},'³':¡(){¢ £.³},'Ä':¡(){¢ £.Ä},'Ã':¡(){¢ £.Ã},'Å':¡(){¢ £.Å},'¸':¡(){¢ £.¸}};$.¥=Ø;® £={'¥':'¿','©':{'±':²,'¯':'¿'},'¬':'¿','¶':§,'º':§,'Á':§,'À':§,'½':§,'¾':§,'¼':§,'·':§,'Â':§,'³':§,'Ä':§,'Ã':§,'Å':§,'¸':§};Î(® i=0,«=».ì,°=».í,¦=[{'¤':'Ý','¥':¡(){¢/Ù/.¨(°)}},{'¤':'Ú','¥':¡(){¢ Û.³!=²}},{'¤':'È','¥':¡(){¢/È/.¨(°)}},{'¤':'Ü','¥':¡(){¢/Þ/.¨(°)}},{'ª':'¶','¤':'ß Ñ','¥':¡(){¢/à á â/.¨(«)},'©':¡(){¢ «.¹(/ã(\\d+(?:\\.\\d+)+)/)}},{'¤':'Ì','¥':¡(){¢/Ì/.¨(«)}},{'¤':'Í','¥':¡(){¢/Í/.¨(°)}},{'¤':'Ï','¥':¡(){¢/Ï/.¨(«)}},{'¤':'Ð','¥':¡(){¢/Ð/.¨(«)}},{'ª':'·','¤':'å Ñ','¥':¡(){¢/Ò/.¨(«)},'©':¡(){¢ «.¹(/Ò (\\d+(?:\\.\\d+)+(?:b\\d*)?)/)}},{'¤':'Ó','¥':¡(){¢/æ|Ó/.¨(«)},'©':¡(){¢ «.¹(/è:(\\d+(?:\\.\\d+)+)/)}}];i<¦.Ë;i++){µ(¦[i].¥()){® ª=¦[i].ª?¦[i].ª:¦[i].¤.Õ();£[ª]=É;£.¥=¦[i].¤;® ;µ(¦[i].©!=²&&(=¦[i].©())){£.©.¯=[1];£.©.±=Ê([1])}ê{® Ç=Ö ë(¦[i].¤+'(?:\\\\s|\\\\/)(\\\\d+(?:\\\\.\\\\d+)+(?:(?:a|b)\\\\d*)?)');=«.¹(Ç);µ(!=²){£.©.¯=[1];£.©.±=Ê([1])}}×}};Î(® i=0,´=».ä,¦=[{'ª':'¸','¤':'ç','¬':¡(){¢/é/.¨(´)}},{'¤':'Ô','¬':¡(){¢/Ô/.¨(´)}},{'¤':'Æ','¬':¡(){¢/Æ/.¨(´)}}];i<¦.Ë;i++){µ(¦[i].¬()){® ª=¦[i].ª?¦[i].ª:¦[i].¤.Õ();£[ª]=É;£.¬=¦[i].¤;×}}}();", 77, 77, "function|return|Private|name|browser|data|false|test|version|identifier|ua|OS|result|var|string|ve|number|undefined|opera|pl|if|aol|msie|win|match|camino|navigator|mozilla|icab|konqueror|Unknown|flock|firefox|netscape|linux|safari|mac|Linux|re|iCab|true|parseFloat|length|Flock|Camino|for|Firefox|Netscape|Explorer|MSIE|Mozilla|Mac|toLowerCase|new|break|Public|Apple|Opera|window|Konqueror|Safari|KDE|AOL|America|Online|Browser|rev|platform|Internet|Gecko|Windows|rv|Win|else|RegExp|userAgent|vendor".split("|"))); var aol = $.browser.aol(), camino = $.browser.camino(), firefox = $.browser.firefox(), flock = $.browser.flock(), icab = $.browser.icab(), konqueror = $.browser.konqueror(), mozilla = $.browser.mozilla(), msie = $.browser.msie(), netscape = $.browser.netscape(), opera = $.browser.opera(), safari = $.browser.safari(), userbrowser = $.browser.browser(), linux = $.browser.linux(), mac = $.browser.mac(), win = $.browser.win(), userversion = $.browser.version.number(); 1 == mac ? $("html").addClass("mac") : 1 == linux ? $("html").addClass("linux") : 1 == win && $("html").addClass("windows"); var browser_trident = navigator.userAgent; "Safari" == userbrowser ? $("html").addClass("safari") : "Firefox" == userbrowser ? $("html").addClass("firefox") : "Camino" == userbrowser ? $("html").addClass("camino") : "AOL Explorer" == userbrowser ? $("html").addClass("aol") : "Flock" == userbrowser ? $("html").addClass("flock") : "iCab" == userbrowser ? $("html").addClass("icab") : "Konqueror" == userbrowser ? $("html").addClass("konqueror") : "Mozilla" == userbrowser ? browser_trident.indexOf("Trident") == -1 ? $("html").addClass("mozilla") : $("html").addClass("ie") : "Netscape" == userbrowser ? $("html").addClass("netscape") : "Opera" == userbrowser ? $("html").addClass("opera") : "Internet Explorer" == userbrowser && (userversion > 8 ? $("html").addClass("ie") : window.location = "/JpostMessages.aspx"), $("html").addClass("" + userversion); var SEARCH_PAGE = "/Search", q, TOTAL_PAGER_ITEMS = 10, RESULTS_PER_PAGE = 10; window.onscroll = function () { var a = $(window).scrollTop(); $(".content-top-banner-wrap").scrollTop(); a > 150 ? ($(".header-menu-site").addClass("header-menu-site-scrollingLogo"), $(".main-menu-item").addClass("main-menu-item-scrollingLogo"), $(".main-menu-item-wrap").addClass("main-menu-item-wrap-scrollingLogo"), $(".main-menu-wrap").css("height", "60px"), $(".main-menu").css("height", "60px"), $(".main-menu-item-icon").css("color", "white"), $(".nav > li > div").css("top", "61px")) : ($(".header-menu-site").removeClass("header-menu-site-scrollingLogo"), $(".main-menu-item").removeClass("main-menu-item-scrollingLogo"), $(".main-menu-item-wrap").removeClass("main-menu-item-wrap-scrollingLogo"), $(".main-menu-wrap").css("height", ""), $(".main-menu").css("height", ""), $(".main-menu-item-icon").css("color", ""), $(".nav > li > div").css("top", "")) }, "undefined" != $(".refresh-site") && ($("#btnRfrsh").click(function () { window.location.href = window.location.href }), $("#btnStay").click(function () { $(".refresh-site").css("display", "none") }));