var PopIn5Conf = PopIn5Conf || { status: 0 } , mdAdPosition = 0; 0 === PopIn5Conf.status && (PopIn5Conf.status = 1, PopIn5Conf.load = function(e, t) { "undefined" != typeof _popIn5_config && void 0 !== _popIn5_config[e] && t(_popIn5_config[e]) } ), void 0 === window.PopIn5 && (window.PopIn5 = {}, void 0 !== window.performance && "function" == typeof window.performance.getEntries && (PopIn5.__PERFORMANCE_DISCOVERY_INIT__ = window.performance.now()), PopIn5.ajaxCache = [], PopIn5.load = function(e) { var t = { func: e, self: this, loaded: !1 } , n = function() { t.loaded || (t.loaded = !0, t.func()) }; if (!PopIn5.$F.isIE6 && !PopIn5.$F.isIE7) if (PopIn5.$F.isIE8 || PopIn5.$F.isIE9) { var o = "readyState"in document ? document.readyState : null; o && ("complete" === o || "loaded" === o ? n() : void 0 !== document.attachEvent ? document.attachEvent("onreadystatechange", function() { "complete" === document.readyState && n() }) : void 0 !== document.addEventListener && document.addEventListener(document, "readystatechange", function() { "complete" === document.readyState && n() })) } else setTimeout(n, 1) } , PopIn5.Loader = { loaded: !1, toLoad: [], start: function() { this.timeStart = (new Date).getTime(); var e = function(e) { PopIn5.Loader.exec() }; void 0 !== document.addEventListener && document.addEventListener("DOMContentLoaded", e, !1); var t = "readyState"in document ? document.readyState : null; "complete" !== t && "interactive" !== t && "loaded" !== t || setTimeout(e, 1) }, exec: function() { if (!this.loaded) { this.timeLoad = (new Date).getTime(), this.loadScroll = document.body.scrollTop || document.documentElement.scrollTop, this.loaded = !0; for (var e = 0, t = this.toLoad.length; e < t; e++) this.toLoad[e](); this.toLoad = [] } }, load: function(e) { if (this.loaded) return e(); this.toLoad.push(e) } }, PopIn5.Loader.start(), PopIn5.Class = function(e, t, n) { if (void 0 === PopIn5[e] && (PopIn5[e] = {}), void 0 === PopIn5[e][t]) { var o = PopIn5[e]; o[t] = function() { this.init && this.init.apply(this, arguments) } , o[t].prototype = n, o[t].prototype._package = e, o[t].prototype._className = t } } , PopIn5.ClassLoad = function(e, t, n) { if (void 0 === PopIn5[e] || void 0 === PopIn5[e][t]) { PopIn5.Class(e, t, n); var o = function() { new PopIn5[e][t] }; setTimeout(function() { PopIn5.load(o) }, 1) } } , PopIn5.StaticClass = function(e, t, n) { (void 0 === PopIn5[e] || "" !== t && void 0 === PopIn5[e][t]) && (void 0 === PopIn5[e] && (PopIn5[e] = {}), "" !== t ? PopIn5[e][t] = n : PopIn5[e] = n, n.init && n.init()) } , PopIn5.ErrorSafeStaticClass = function(e, t, n) { for (var o in n) !function(e) { var t = n[e]; "function" == typeof t && (n[e] = function() { try { return t.apply(this, arguments) } catch (e) {} } ) }(o); PopIn5.StaticClass(e, t, n) } , PopIn5.Module = function(e, t) { void 0 !== PopIn5[e] && void 0 !== PopIn5[e].Main || (PopIn5.Class(e, "Main", t), setTimeout(function() { PopIn5Conf.load(e, function(t) { var n = function() { for (; "function" == typeof t; ) t = t(); if (PopIn5.$F.notEmpty(t)) { var n = new PopIn5[e].Main; n._config = new PopIn5[e].Config(t), n.initModule(), PopIn5[e]._instance = n } }; PopIn5.$F.notEmpty(t.load) && "fast" == t.load ? n() : PopIn5.load(n) }) }, 1)) } ), PopIn5.StaticClass("$", "Config", { init: function() { this.setDefaults() }, afterInit: function() { var e = this; PopIn5Conf.load("*", function(t) { "function" == typeof t && (t = t()), e.overrideAll(e, t), e.afterConfig() }), PopIn5.Loader.load(function() { var e = PopIn5.$.Config; if (PopIn5.$F.notEmpty(e.articleSelector)) { var t = PopIn5.$F.selector(e.articleSelector); e.isArticle = PopIn5.$F.notEmpty(t) } PopIn5.$F.notEmpty(e.articleFilter.url) && (e.isArticle = PopIn5.$F.testOne(e.articleFilter.url, e.target)); for (var n in e.eventHandlers) PopIn5.$.Global.event.addEventListener(n, e.eventHandlers[n]); e.onLoad() }, 0) }, overrideAll: function(e, t) { for (var n in t) t.hasOwnProperty(n) && ("object" != typeof e[n] || "object" != typeof t[n] || PopIn5.$F.isArray(e[n]) ? e[n] = t[n] : this.overrideAll(e[n], t[n])) }, setDefaults: function() { this.pid = "0", this.partnerDomain = location.host, this.includeFilter = {}, this.urlReplace = [], this.displayUrlReplace = [], this.target = location.href, this.country = !1, this.contextFactory = !1, this.contextSelector = "body", this.isArticle = !0, this.articleSelector = "", this.articleFilter = {}, this.readArticle = !1, this.eventHandlers = {}, this.onLoad = function() {} }, afterConfig: function() { this.target = PopIn5.$F.replaceAll(this.target, this.urlReplace) } }), PopIn5.StaticClass("$", "Context", { init: function() { var e = this; this.contexts = [], setTimeout(function() { PopIn5.$F.notEmpty(PopIn5.$.Config.contextFactory) ? setInterval(function() { var e = PopIn5.$.Config.contextFactory(); PopIn5.$F.notEmpty(e) && PopIn5.$.Global.event.fireEvent("newContext", [e]) }, 500) : "body" == PopIn5.$.Config.contextSelector ? e.createContext(document.body) : setInterval(function() { for (var t = document.querySelectorAll(PopIn5.$.Config.contextSelector), n = 0; n < t.length; n++) { var o = t[n] , i = e.getContext(o); !1 === i && (i = e.createContext(o), PopIn5.$.Global.event.fireEvent("newContext", [i])) } }, 500) }, 1) }, findContext: function(e) { var t = this.getContext(e); return !1 === t ? this.findContext(e.parentNode) : t }, getContext: function(e) { for (var t = 0; t < this.contexts.length; t++) { var n = this.contexts[t]; if (n.key === e) return n } return !1 }, createContext: function(e) { var t = { idx: this.contexts.length, configs: {}, key: e, segmentData: {}, target: PopIn5.$.Config.target }; return this.contexts.push(t), t } }), PopIn5.StaticClass("Cookie", "", { init: function() {}, setCookie: function(e, t, n) { var o = ""; if ((n = n || {}).expires && ("number" == typeof n.expires || n.expires.toUTCString)) { var i; "number" == typeof n.expires ? (i = new Date).setTime(i.getTime() + 24 * n.expires * 60 * 60 * 1e3) : i = n.expires, o = "; expires=" + i.toUTCString() } var a = n.path ? "; path=" + n.path : "; path=/" , r = n.domain ? "; domain=" + n.domain : "" , s = n.secure ? "; secure" : ""; t = n.noencode ? t : encodeURIComponent(t), document.cookie = [e, "=", t, o, a, r, s].join("") }, getCookie: function(e) { if (!navigator.cookieEnabled || "" === document.cookie) return null; e = e.replace(/\W/g, "\\$&"); var t = new RegExp("(?:^|;)\\s?" + e + "=([^;]*)","i") , n = document.cookie.match(t); return n && decodeURIComponent(n[1]) }, removeCookie: function(e) { this.setCookie(e, "", { expires: -1 }) } }), PopIn5.StaticClass("$F", "", { init: function() { this.inViewData = [], this.nua = navigator.userAgent, this.detectBrowser(this.nua.toLowerCase()), this.tracking_id = this.getTrackingId(), this.cssExclude = /z-?index|font-?weight|opacity|zoom|line-?height/, this.boxModel = !1, this.validDocType = !this.isIE || document.getElementById && "CSS1Compat" == document.compatMode; for (var e in PopIn5.$) { var t = PopIn5.$[e]; "function" == typeof t.afterInit && t.afterInit() } }, detectBrowser: function(e) { this.browser = "firefox", this.browserType = "unknown"; for (var t = [["Firefox", "firefox"], ["Firefox3", "firefox", "3.0."], ["IE", "msie"], ["IE6", "msie 6"], ["IE7", "msie 7"], ["IE8", "msie 8"], ["IE9", "msie 9"], ["IE10", "msie 10"], ["iPhone", "iphone"], ["iPad", "ipad"], ["iPod", "ipod"], ["Safari", "safari"], ["Chrome", "chrome"], ["Android", "android"], ["Windows", "windows"], ["Mac", "mac"], ["OperaMobile", "opera mini", "opera mobi"], ["UCBrowser", "ucbrowser"]], n = 0, o = t.length; n < o; n++) { for (var i = t[n], a = !1, r = 1, s = i.length; r < s; r++) -1 !== e.indexOf(i[r]) && (a = !0); this["is" + i[0]] = a, !0 === a && (this.browserType = i[0]) } }, isMobileDevice: function() { return this.isiPhone || this.isiPod || this.isAndroid && -1 !== this.nua.toLowerCase().indexOf("mobile") || this.isUCBrowser || this.isOperaMobile }, isTabletDevice: function() { return this.isAndroid && -1 === this.nua.toLowerCase().indexOf("mobile") || this.isiPad }, getPlatform: function() { var e = "other"; return this.isiPhone || this.isiPod || this.isiPad ? e = "ios" : this.isAndroid ? e = "android" : this.isWindows ? e = "win" : this.isMac && (e = "mac"), e }, getPageScrollTop: function() { return document.body ? document.body.scrollTop || document.documentElement.scrollTop : 0 }, getWindowWidth: function() { var e = window , t = e.document; return e.innerWidth || t.documentElement.clientWidth || t.body.clientWidth || t.scrollWidth }, getWindowHeight: function() { var e = window , t = e.document; return e.innerHeight || t.documentElement.clientHeight || t.body.clientHeight || t.body.scrollHeight }, isEmpty: function(e) { return !this.notEmpty(e) }, notEmpty: function(e) { return void 0 !== e && "" != e && 0 != e && 0 != e && null != e }, firstNotEmpty: function() { for (var e = 0, t = arguments.length; e < t; e++) if (this.notEmpty(arguments[e] || e === arguments.length - 1)) return arguments[e] }, testOne: function(e, t) { for (var n = e.length; n-- > 0; ) if (new RegExp(e[n]).test(t)) return !0; return !1 }, replaceAll: function(e, t) { for (var n = e, o = 0, i = t.length; o < i; o++) { var a = t[o]; for (var r in a) n = n.replace(new RegExp(r), a[r]) } return n }, parseUrl: function(e) { var t = {}; return e.indexOf("?") > 0 && (qString = e.substring(e.indexOf("?")), e = e.substring(0, e.indexOf("?")), qString.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"), function(e, n, o, i) { t[n] = i })), { url: e, qString: t } }, getTrackingId: function() { return this.parseUrl(location.href).qString.uy3ubftvh0u6o8 }, parseUri: function(e) { var t = /^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/ , n = e.match(t); return n ? { scheme: n[1], host: n[2], path: n[3], query: n[4], fragment: n[5] } : null }, digest: function(e) { for (var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!$".split(""), n = 0, o = "", i = 0, a = e.length; i < a; i++) n = (n << 5) - n + e.charCodeAt(i), n |= 0; for (var r = 0; r < 6; r++) o += t[63 & n], n >>>= 6; return o }, getInnerText: function(e) { var t = e.innerText || e.textContent || e.data; return PopIn5.$F.notEmpty(t) ? t : "" }, ajax_counter: 0, ajax: function() { var e; if (2 === arguments.length) e = { url: arguments[0], success: arguments[1] }; else { if (1 !== arguments.length || "object" != typeof arguments[0]) throw "Invalid Arguments"; e = arguments[0] } var t = function() {} , n = "pop" + (new Date).getTime().toString(16) + "_" , o = e.callbackname ? e.callbackname : n + this.ajax_counter++ , i = document.getElementsByTagName("head")[0]; window[o] = function(n) { window[o] = void 0; try { delete window[o] } catch (e) {} "callback"in e && window[e.callback](n), "success"in e && e.success(n); try { setTimeout(t, 10) } catch (e) {} } ; var a = document.createElement("script"); a.charset = "utf-8"; var r = e.url; if (r += (r.indexOf("?") >= 0 ? "&" : "?") + (e.callbackParameterName ? e.callbackParameterName : "callback") + "=" + encodeURIComponent(o), e.iframeLoad) { var s = []; return s.push('"), s.push("