//prebid starts ! function(a) { var b = /iPhone/i, c = /iPod/i, d = /iPad/i, e = /(?=.*\bAndroid\b)(?=.*\bMobile\b)/i, f = /Android/i, g = /(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i, h = /(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i, i = /IEMobile/i, j = /(?=.*\bWindows\b)(?=.*\bARM\b)/i, k = /BlackBerry/i, l = /BB10/i, m = /Opera Mini/i, n = /(CriOS|Chrome)(?=.*\bMobile\b)/i, o = /(?=.*\bFirefox\b)(?=.*\bMobile\b)/i, p = new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)", "i"), q = function(a, b) { return a.test(b) }, r = function(a) { var r = a || navigator.userAgent, s = r.split("[FBAN"); return "undefined" != typeof s[1] && (r = s[0]), s = r.split("Twitter"), "undefined" != typeof s[1] && (r = s[0]), this.apple = { phone: q(b, r), ipod: q(c, r), tablet: !q(b, r) && q(d, r), device: q(b, r) || q(c, r) || q(d, r) }, this.amazon = { phone: q(g, r), tablet: !q(g, r) && q(h, r), device: q(g, r) || q(h, r) }, this.android = { phone: q(g, r) || q(e, r), tablet: !q(g, r) && !q(e, r) && (q(h, r) || q(f, r)), device: q(g, r) || q(h, r) || q(e, r) || q(f, r) }, this.windows = { phone: q(i, r), tablet: q(j, r), device: q(i, r) || q(j, r) }, this.other = { blackberry: q(k, r), blackberry10: q(l, r), opera: q(m, r), firefox: q(o, r), chrome: q(n, r), device: q(k, r) || q(l, r) || q(m, r) || q(o, r) || q(n, r) }, this.seven_inch = q(p, r), this.any = this.apple.device || this.android.device || this.windows.device || this.other.device || this.seven_inch, this.phone = this.apple.phone || this.android.phone || this.windows.phone, this.tablet = this.apple.tablet || this.android.tablet || this.windows.tablet, "undefined" == typeof window ? this : void 0 }, s = function() { var a = new r; return a.Class = r, a }; "undefined" != typeof module && module.exports && "undefined" == typeof window ? module.exports = r : "undefined" != typeof module && module.exports && "undefined" != typeof window ? module.exports = s() : "function" == typeof define && define.amd ? define("isMobile", [], a.isMobile = s()) : a.isMobile = s() }(this); //amazon ! function(a9, a, p, s, t, A, g) { if (a[a9]) return; function q(c, r) { a[a9]._Q.push([c, r]) } a[a9] = { init: function() { q("i", arguments) }, fetchBids: function() { q("f", arguments) }, setDisplayBids: function() {}, targetingKeys: function() { return [] }, _Q: [] }; A = p.createElement(s); A.async = !0; A.src = t; g = p.getElementsByTagName(s)[0]; g.parentNode.insertBefore(A, g) }("apstag", window, document, "script", "//c.amazon-adsystem.com/aax2/apstag.js"); //initialize the apstag.js library on the page to allow bidding apstag.init({ pubID: '3182', adServer: 'googletag' }); //initiate bid request apstag.fetchBids({ slots: [{ slotID: 'div-gpt-ad-1440702215287-4', slotName: '/1011927/PJM_300_by_250_middle', sizes: [ [300, 250] ] }, { slotID: 'div-gpt-ad-1440702215287-0', slotName: '/1011927/PJM_728_by_90_top', sizes: [ [720, 90] ] }, { slotID: 'div-gpt-ad-1440702215287-2', slotName: '/1011927/PJM_300_by_250_top', sizes: [ [300, 250] ] }, { slotID: 'div-gpt-ad-1462200563826-0', slotName: '/1011927/PJM_160_by_600_bottom', sizes: [ [160, 600] ] }, { slotID: 'div-gpt-ad-1440702215287-3', slotName: '/1011927/PJM_300_by_250_middle_2', sizes: [ [300, 250] ] }, { slotID: 'div-gpt-ad-1440703155108-4', slotName: '/1011927/PJM_320_by_50_mobile', sizes: [ [320, 50] ] }, { slotID: 'div-gpt-ad-1440703250434-0', slotName: '/1011927/PJM_300_by_600', sizes: [ [300, 600] ] }, { slotID: 'div-gpt-ad-1440702215287-6', slotName: '/1011927/PJM_300_by_250_bottom', sizes: [ [300, 250] ] } , { slotID: 'div-gpt-ad-1455466630525-0', slotName: '/1011927/PJM_728_by_90_bottom', sizes: [ [728, 90] ] } ], timeout: 2e3 }, function(bids) { googletag.cmd.push(function() { //set apstag targeting on googletag apstag.setDisplayBids(); //trigger the first DFP request in googletag's disableInitialLoad integration //googletag.pubads().refresh(); }); }); var OX_dfp_options = {prefetch: true}; var OX_dfp_ads = [ ["/1011927/PJM_728_by_90_top", ["728, 90"], "div-gpt-ad-1440702215287-0"], ["/1011927/PJM_300_by_250_top", ["300, 250"], "div-gpt-ad-1440702215287-2"], ["/1011927/PJM_300_by_250_middle", ["300, 250"], "adSlot-1-google-ad"], ["/1011927/PJM_300_by_250_bottom", ["300, 250"], "adSlot-2-google-ad"], ["/1011927/PJM_300_by_600", ["300, 600"], "adSlot-3-google-ad"], ["/1011927/PJM_728_by_90_bottom", ["728, 90"], "div-gpt-ad-1455466630525-0"] ]; /* (function() { var opxsEl = document.createElement("script"); opxsEl.type = "text/javascript"; opxsEl.async = true; opxsEl.src = "//publir-d.openx.net/w/1.0/jstag?nc=1011927-pjmedia.com"; var opxsTargetEl = document.getElementsByTagName("head")[0]; opxsTargetEl.insertBefore(opxsEl, opxsTargetEl.firstChild); })(); */ var PREBID_TIMEOUT = 3000; var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; function initAdserver() { if (pbjs.initAdserverSet) return; (function() { var gads = document.createElement('script'); gads.async = true; gads.type = 'text/javascript'; var useSSL = 'https:' == document.location.protocol; gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js'; var node = document.getElementsByTagName('script')[0]; node.parentNode.insertBefore(gads, node); })(); pbjs.initAdserverSet = true; }; setTimeout(initAdserver, PREBID_TIMEOUT); var pbjs = pbjs || {}; pbjs.que = pbjs.que || []; (function() { var pbjsEl = document.createElement("script"); pbjsEl.type = "text/javascript"; pbjsEl.async = true; pbjsEl.src = "//a.publir.com/prebid/pb124.js"; var pbjsTargetEl = document.getElementsByTagName("head")[0]; pbjsTargetEl.insertBefore(pbjsEl, pbjsTargetEl.firstChild); })(); if (!isMobile.any) { console.log("PrebidAdunits:Desktop"); (function() { var pbjsEf = document.createElement("script"); pbjsEf.type = "text/javascript"; pbjsEf.async = true; pbjsEf.src = "//ssl-intgr-net.s3.amazonaws.com/header/18.js"; var pbjsTargetEf = document.getElementsByTagName("head")[0]; pbjsTargetEf.insertBefore(pbjsEf, pbjsTargetEf.firstChild); })(); } if (isMobile.any && !isMobile.tablet) { console.log("PrebidAdunits:Mobile"); (function() { var pbjsEf = document.createElement("script"); pbjsEf.type = "text/javascript"; pbjsEf.async = true; pbjsEf.src = "//ssl-intgr-net.s3.amazonaws.com/header/272.js"; var pbjsTargetEf = document.getElementsByTagName("head")[0]; pbjsTargetEf.insertBefore(pbjsEf, pbjsTargetEf.firstChild); })(); } if (isMobile.tablet) { console.log("PrebidAdunits:Tablet"); (function() { var pbjsEf = document.createElement("script"); pbjsEf.type = "text/javascript"; pbjsEf.async = true; pbjsEf.src = "//ssl-intgr-net.s3.amazonaws.com/header/273.js"; var pbjsTargetEf = document.getElementsByTagName("head")[0]; pbjsTargetEf.insertBefore(pbjsEf, pbjsTargetEf.firstChild); })(); } pbjs.bidderSettings = { emxdigital: { bidCpmAdjustment : function(bidCpm){ return bidCpm * 0.80; } } } ; pbjs.que.push(function() { pbjs.enableAnalytics({ provider: 'publir', options: { pubId: 18, publir_siteId: 18 } }); });