Tagging = function(context) {
  this.site = '24hu-roboraptor';
  this.zone = 'default';
  this.protocol = window.location.protocol;
  this.autodetect_url = this.protocol + '//cts.p24.hu/service/detect/';
  this.context = context;
  this.positions = {};
  this.positions_weighted = {};

  this.positions['head'] = '[{\"service_name\": \"Sanoma\", \"weight\": null, \"source\": \"<script src=\\"//stat.p24.hu/mobile_detect/mobile_detect.js\\"></script>\"}, {\"service_name\": \"Sanoma\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"//ad-blacklist.p24.hu/adx_blacklist.js\\"></script><script type=\\"text/javascript\\" src=\\"//ad-blacklist.p24.hu/rubicon_blacklist.js\\"></script><script type=\\"text/javascript\\">    (function(){        var blacklistsToCheck = [\'ADX\', \'RUBICON\'];        for (var i=0; i<blacklistsToCheck.length; i++) {            var typeName = blacklistsToCheck[i].charAt(0) + blacklistsToCheck[i].substr(1).toLowerCase();            window[\'no\' + blacklistsToCheck[i]] = false;            if (                typeof window[\'blck\' + typeName] != \'undefined\' &&                typeof window[\'blck\' + typeName][window.location.hostname] != \'undefined\' &&                window[\'blck\' + typeName][window.location.hostname].indexOf(location.pathname) >= 0            ) {                window[\'no\' + blacklistsToCheck[i]] = true;            }        }    })();</script>\"}, {\"service_name\": \"Sanoma/Hir24\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">\t/* check for article page */\tvar ctsIsArticlePage = false;\tif (document.getElementsByClassName(\'article_body\').length == 1) {\t\tctsIsArticlePage = true;\t}</script>\"}, {\"service_name\": \"Gemius Traffic\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">    var properGemId = (\'${gemius_trackid}\' != \'\' ? \'${gemius_trackid}\' : \'d1A1jw8aFZgY3VH3GOZuz7e_XfywBEcIHyVyJ0Bgr0b.s7\');        if(typeof _ceDeviceDetect.getDeviceType() !== \'undefined\' && _ceDeviceDetect.getDeviceType() != \'desktop\' && \'0ifq_KrFGx1vd4VAA7NkkKbk7MngUmvn7FD4pTzYvf..W7\' != \'\') {        properGemId = \'0ifq_KrFGx1vd4VAA7NkkKbk7MngUmvn7FD4pTzYvf..W7\';    }       var pp_gemius_identifier = properGemId;    function gemius_pending(i) { window[i] = window[i] || function() {var x = window[i+\'_pdata\'] = window[i+\'_pdata\'] || []; x[x.length]=arguments;};};    gemius_pending(\'gemius_hit\'); gemius_pending(\'gemius_event\'); gemius_pending(\'pp_gemius_hit\'); gemius_pending(\'pp_gemius_event\');    (function(d,t) {try {var gt=d.createElement(t),s=d.getElementsByTagName(t)[0],l=\'http\'+((location.protocol==\'https:\')?\'s\':\'\'); gt.setAttribute(\'async\',\'async\');    gt.setAttribute(\'defer\',\'defer\'); gt.src=l+\'://gahu.hit.gemius.pl/xgemius.js\'; s.parentNode.insertBefore(gt,s);} catch (e) {}})(document,\'script\');</script>\"}, {\"service_name\": \"Sanoma\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"//segment.p24.hu/cerment.min.js\\" async></script>\"}, {\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<script>    if (typeof _ceDeviceDetect != \'undefined\' && typeof _ceDeviceDetect.getDeviceType == \'function\') {        var _ceDisplayData = _ceDisplayData || {},            googletag,            loader = function (multipleAds) {                _ceDisplayData.gpt = _ceDisplayData.gpt || { items: [], defContName: \'div-gpt-ad\' };                (function () {                    var scriptInserter = document.createElement(\'script\');                    scriptInserter.src = \'https://www.googletagservices.com/tag/js/gpt.js\';                    scriptInserter.async = true;                    /*document.head.appendChild(scriptInserter);*/                    document.head.insertBefore(scriptInserter, document.head.firstChild);                })();                if (multipleAds) {                    googletag = {};                    googletag.cmd = [];                } else {                    googletag = googletag || {};                    googletag.cmd = googletag.cmd || [];                }                googletag.cmd.push(function () {                    googletag.pubads().enableSingleRequest();                    googletag.pubads().collapseEmptyDivs();                    googletag.enableServices();                });            };        loader();        window.addEventListener(\'_ceDisplayDataLoadHeader\', loader);    }</script>\"}, {\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<script>    (function () {        if (window.Element && !Element.prototype.closest) {            Element.prototype.closest = function (s) {                var matches = (this.document || this.ownerDocument).querySelectorAll(s),                    i,                    el = this;                do {                    i = matches.length;                    while (--i >= 0 && matches.item(i) !== el) { };                } while ((i < 0) && (el = el.parentElement));                return el;            };        }        window.googletag = window.googletag || { cmd: [] };        googletag.cmd.push(function () {            window.googletag.pubads().addEventListener(\'slotRenderEnded\', function (event) {                if (event.isEmpty) {                    var slotEl = document.getElementById(event.slot.getSlotId().getDomId());                    try {                        var advEl = slotEl.closest(\\".goAdverticum\\");                        if (advEl != undefined && advEl != null && advEl.contains(slotEl)) {                            slotEl = advEl;                        }                    } catch (e) { }                    slotEl.style.display = \'none\';                }            });        });    })();</script>\"}, {\"service_name\": \"Gemius\", \"weight\": null, \"source\": \"<script src=\\"//spl.hit.gemius.pl/gplayer.js\\" type=\\"text/javascript\\"></script>\"}]';
  this.positions_weighted['head'] = false;
  
  this.positions['body-start'] = '[{\"service_name\": \"Google Tag Manager\", \"weight\": null, \"source\": \"<noscript><iframe src=\\"//www.googletagmanager.com/ns.html?id=GTM-TMRFXR\\"height=\\"0\\" width=\\"0\\" style=\\"display:none;visibility:hidden\\"></iframe></noscript><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=\'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);})(window,document,\'script\',\'dataLayer\',\'GTM-TMRFXR\');</script>\"}]';
  this.positions_weighted['body-start'] = false;
  
  this.positions['body-end'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"//stat.p24.hu/CTS/helper-scripts/waterfall_empty/closer.min.js\\"></script>\"}, {\"service_name\": \"Strossle\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">    (function () {        var isSubscribed = false;        if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {            isSubscribed = true;        }        if (!isSubscribed) {            if ((typeof ctsIsArticlePage !== \'undefined\' && ctsIsArticlePage === true) || (typeof ctsPageType !== \'undefined\' && (ctsPageType === \'article\' || ctsPageType === \'category\' || ctsPageType === \'tag\'))) {                $(\'div.widget > div.related-posts\').remove();                (function () { var s = document.createElement(\'script\'); s.type = \'text/javascript\'; s.async = true; s.src = \'//widgets.sprinklecontent.com/v2/sprinkle.js\'; var scriptList = document.getElementsByTagName(\'script\'); var x = scriptList[scriptList.length - 1]; x.parentNode.insertBefore(s, x); })();            }        }    })();</script>\"}, {\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"//ad.adverticum.net/g3.js\\"></script>\"}, {\"service_name\": \"Sanoma/Hir24\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">    (function(){        var googleCPLink = (\\"${google_cookie_policy_link}\\" != \\"\\") ? \\"${google_cookie_policy_link}\\" : \\"http://centralmediacsoport.hu/Company/Central-Digitalis-Media-Adatkezelesi-tajekoztato\\";        var googleCPRename = (\\"${google_cookie_policy_rename}\\" != \\"\\") ? \\"${google_cookie_policy_rename}\\" : 1;            window._ce_consent_options = {            \'links\'     : {                     0: {text: \'&Aacute;ltal&aacute;nos Adatkezel&eacute;si T&aacute;j&eacute;koztat&oacute;\', url: \'https://centralmediacsoport.hu/company/adatkezelesi-tajekoztato/\'},                     1: {text: \'Egyedi Adatkezel&eacute;si T&aacute;j&eacute;koztat&oacute;\', url: \'https://24.hu/egyedi-adatkezelesi-tajekoztato/\'},             },             \'body\'      : \'Az ##LINK0## sz&ouml;vege a GDPR &eacute;letbe l&eacute;p&eacute;se &oacute;ta kialakult joggyakorlatra, szolg&aacute;ltat&aacute;saink fejl&odblac;d&eacute;s&eacute;re &eacute;s az adatkezel&odblac;i jogut&oacute;dl&aacute;sra tekintettel 2020. janu&aacute;r 1. napj&aacute;val friss&uuml;lt. Az egyes szolg&aacute;ltat&aacute;sainkkal kapcsolatos adatkezel&eacute;si tudnival&oacute;kat tov&aacute;bbra is az adott weboldalon el&eacute;rhet&odblac; ##LINK1## r&eacute;szletezi, amely szint&eacute;n friss&uuml;lt. &Eacute;rdemben adatkezel&eacute;si gyakorlatunk nem v&aacute;ltozott, csup&aacute;n a t&aacute;j&eacute;koztat&aacute;st igyekezt&uuml;nk &eacute;rthet&odblac;bb&eacute; &eacute;s pontosabb&aacute; tenni. Amennyiben adatai kezel&eacute;se a szolg&aacute;ltat&aacute;sunk fejleszt&eacute;se nyom&aacute;n &eacute;rdemben is megv&aacute;ltozik, ahhoz kifejezett, t&aacute;j&eacute;kozott hozz&aacute;j&aacute;rul&aacute;s&aacute;t k&eacute;rj&uuml;k minden esetben.\',            \'more\'      : \'Tov&aacute;bbi inform&aacute;ci&oacute;\',            \'dismiss\'   : \'Rendben\',            \'toplevel\'  : \'1\',            \'version\'   : googleCPRename,            \'renew\'     : \'2020-01-10\'        };    })();</script><script type=\\"text/javascript\\" src=\\"//stat.p24.hu/CTS/helper-scripts/cookieconsent/cookieconsentv2.min.js\\"></script>\"}, {\"service_name\": \"Gemius\", \"weight\": null, \"source\": \"<script src=\\"//stat.p24.hu/CTS/measuring-codes/gem_stream.min.js?t=202010121\\" type=\\"text/javascript\\"></script>\"}]';
  this.positions_weighted['body-end'] = false;
  
  this.positions['body-end-adv'] = '[]';
  this.positions_weighted['body-end-adv'] = false;
  
  this.positions['right100'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"ctsGadx\\" ctsStyle=\\"display:table;margin:0 auto;\\" style=\\"display: none;\\"><div style=\\"width: 300px; text-align: right; font-size: 8px; color: #C6C6C6;\\">HIRDET&#xC9;S</div><script type=\\"text/javascript\\">\t\t(function () {\t\t\tvar insertedElement = document.getElementById(\'ctstemp\');\t\t\tvar isSubscribed = false;\t\t\tif (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {\t\t\t\tisSubscribed = true;\t\t\t}\t\t\tif (!isSubscribed && (typeof noADX == \'undefined\' || noADX === false)) {\t\t\t\tvar gaAdxSlots = [\t\t\t\t\t{\t\t\t\t\t\tsource: \'(direct)\',\t\t\t\t\t\tslots: [\t\t\t\t\t\t\t{ slot: \'7746415280/1699831040\' }\t\t\t\t\t\t]\t\t\t\t\t},\t\t\t\t\t{\t\t\t\t\t\tsource: \'hirkereso.hu\',\t\t\t\t\t\tslots: [\t\t\t\t\t\t\t{ slot: \'7746415280/7466909840\' }\t\t\t\t\t\t]\t\t\t\t\t},\t\t\t\t\t{\t\t\t\t\t\tsource: \'hirstart.hu\',\t\t\t\t\t\tslots: [\t\t\t\t\t\t\t{ slot: \'7746415280/4373741360\' }\t\t\t\t\t\t]\t\t\t\t\t},\t\t\t\t\t{\t\t\t\t\t\tsource: \'kapu.hu\',\t\t\t\t\t\tslots: [\t\t\t\t\t\t\t{ slot: \'7746415280/8803865000\' }\t\t\t\t\t\t]\t\t\t\t\t},\t\t\t\t\t{\t\t\t\t\t\tsource: \'startlap\',\t\t\t\t\t\tslots: [\t\t\t\t\t\t\t{ slot: \'7746415280/4233988640\' }\t\t\t\t\t\t]\t\t\t\t\t},\t\t\t\t\t{\t\t\t\t\t\tsource: \'adbox\',\t\t\t\t\t\tslots: [\t\t\t\t\t\t\t{ slot: \'${google_adx_slot_adbox}\' }\t\t\t\t\t\t]\t\t\t\t\t},\t\t\t\t\t{\t\t\t\t\t\tsource: \'hirek.oldal.info\',\t\t\t\t\t\tslots: [\t\t\t\t\t\t\t{ slot: \'${google_adx_slot_hirekoldalinfo}\' }\t\t\t\t\t\t]\t\t\t\t\t},\t\t\t\t\t{\t\t\t\t\t\tsource: \'newsletter\',\t\t\t\t\t\tslots: [\t\t\t\t\t\t\t{ slot: \'${google_adx_slot_newsletter}\' }\t\t\t\t\t\t]\t\t\t\t\t},\t\t\t\t\t{\t\t\t\t\t\tsource: \'tombola.hu\',\t\t\t\t\t\tslots: [\t\t\t\t\t\t\t{ slot: \'${google_adx_slot_tombola}\' }\t\t\t\t\t\t]\t\t\t\t\t},\t\t\t\t\t{\t\t\t\t\t\tsource: \'facebook\',\t\t\t\t\t\tslots: [\t\t\t\t\t\t\t{ slot: \'7746415280/9083370440\' },\t\t\t\t\t\t\t{ slot: \'7746415280/9083370440\' }\t\t\t\t\t\t]\t\t\t\t\t},\t\t\t\t\t{\t\t\t\t\t\tsource: \'google\',\t\t\t\t\t\tslots: [\t\t\t\t\t\t\t{ slot: \'7746415280/3036786200\' },\t\t\t\t\t\t\t{ slot: \'7746415280/3036786200\' }\t\t\t\t\t\t]\t\t\t\t\t}\t\t\t\t];\t\t\t\tfunction readAsCookie(cname) {\t\t\t\t\tvar name = cname + \\"=\\";\t\t\t\t\tvar ca = document.cookie.split(\';\');\t\t\t\t\tfor (var i = 0; i < ca.length; i++) {\t\t\t\t\t\tvar c = ca[i].trim();\t\t\t\t\t\tif (c.indexOf(name) == 0) return c.substring(name.length, c.length);\t\t\t\t\t}\t\t\t\t\treturn \\"\\";\t\t\t\t}\t\t\t\tvar utmz = readAsCookie(\'__utmz\');\t\t\t\tvar utmzVals = (function () {\t\t\t\t\tvar pairs = utmz.split(\'.\').slice(4).join(\'.\').split(\'|\');\t\t\t\t\tvar ga = {};\t\t\t\t\tfor (var i = 0; i < pairs.length; i++) {\t\t\t\t\t\tvar temp = pairs[i].split(\'=\');\t\t\t\t\t\tga[temp[0]] = temp[1];\t\t\t\t\t}\t\t\t\t\treturn ga;\t\t\t\t})();\t\t\t\tif (typeof utmzVals.utmccn == \'undefined\') utmzVals.utmccn = \'undefined\';\t\t\t\tif (typeof utmzVals.utmcsr == \'undefined\') utmzVals.utmcsr = \'undefined\';\t\t\t\tif (typeof utmzVals.utmcmd == \'undefined\') utmzVals.utmcmd = \'undefined\';\t\t\t\tvar gaAdxSlotIdentifier = \'7746415280/9223123160\';\t\t\t\tfor (var x = 0; x < gaAdxSlots.length; x++) {\t\t\t\t\tif (utmzVals.utmccn.indexOf(gaAdxSlots[x].source) != -1 || utmzVals.utmcsr.indexOf(gaAdxSlots[x].source) != -1) {\t\t\t\t\t\tswitch (gaAdxSlots[x].source) {\t\t\t\t\t\t\tcase \'google\':\t\t\t\t\t\t\tcase \'facebook\':\t\t\t\t\t\t\t\tif (utmzVals.utmcmd == \'cpc\') {\t\t\t\t\t\t\t\t\tgaAdxSlotIdentifier = gaAdxSlots[x].slots[1].slot;\t\t\t\t\t\t\t\t} else if (utmzVals.utmcmd == \'organic\') {\t\t\t\t\t\t\t\t\tgaAdxSlotIdentifier = gaAdxSlots[x].slots[0].slot;\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\tdefault:\t\t\t\t\t\t\t\tgaAdxSlotIdentifier = gaAdxSlots[x].slots[0].slot;\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t}\t\t\t\t\t\tbreak;\t\t\t\t\t}\t\t\t\t}\t\t\t\tif (gaAdxSlotIdentifier == \'\') gaAdxSlotIdentifier = \'7746415280/9223123160\';\t\t\t\tgaAdxSlotIdentifier = \'5491763120/\' + gaAdxSlotIdentifier;\t\t\t\tgoogle_ad_client = \\"ca-pub-1984646123858990\\";\t\t\t\tgoogle_ad_slot = gaAdxSlotIdentifier;\t\t\t\tgoogle_ad_width = parseInt(\\"300\\");\t\t\t\tgoogle_ad_height = parseInt(\\"250\\");\t\t\t\tgoogle_max_num_ads = parseInt(\\"1\\");\t\t\t\tif (insertedElement.getAttribute(\\"ctsStyle\\") != null) {\t\t\t\t\tinsertedElement.style = insertedElement.getAttribute(\\"ctsStyle\\");\t\t\t\t\tinsertedElement.removeAttribute(\\"ctsStyle\\");\t\t\t\t} else {\t\t\t\t\tinsertedElement.removeAttribute(\\"style\\");\t\t\t\t}\t\t\t} else {\t\t\t\tvar elements = document.getElementsByClassName(\\"ctsGadx\\");\t\t\t\twhile (elements.length > 0) {\t\t\t\t\telements[0].parentNode.removeChild(elements[0]);\t\t\t\t}\t\t\t}\t\t})();\t</script><script type=\\"text/javascript\\" src=\\"//pagead2.googlesyndication.com/pagead/show_ads.js\\"></script></div>\"}]';
  this.positions_weighted['right100'] = false;
  
  this.positions['content030'] = '[{\"service_name\": \"Sanoma/Hir24\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">        var ADXBannerWidthDefault = 640,        pageType = typeof ctsPageType !== \'undefined\' ? ctsPageType : \'notSet\';            switch (pageType) {        case \'category\':            ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.category-component-box.hir24-rovat.list-category\').css(\'width\');            break;        case \'other\':            if (location.pathname.indexOf(\'/tag/\') != -1){                ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.hir24-rovat.list-category > div.row > div.article.col-sm-8\').css(\'width\'); }            break;        case \'tag\':            ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.hir24-rovat.list-category > div.row > div.article.col-sm-8\').css(\'width\');            break;        case \'article\':            ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.col-md-8.hir24-post\').css(\'width\');            break;        default:            ADXBannerWidth = ADXBannerWidthDefault;    }    ADXBannerWidth = parseInt(ADXBannerWidth);    if (window.innerWidth < 670) ADXBannerWidth-=15;    if (isNaN(ADXBannerWidth) || ADXBannerWidth <= 0 || ADXBannerWidthDefault < ADXBannerWidth){        ADXBannerWidth = ADXBannerWidthDefault;    }</script>\"}, {\"service_name\": \"Rubicon\", \"weight\": null, \"source\": \"<div id=\\"RubiconAdTemp\\" class=\\"rubAd\\" ctsStyle=\\"width: 100%;text-align: center;margin-top: 50px;\\" style=\\"display: none;\\"><script language=\\"JavaScript\\" type=\\"text/javascript\\">\t(function () {        var rubiconZoneSize = \'\';        var rubiconSite = \'65910\';        var rubiconSiteMobile = \'${rubicon_ad_site_mobile}\';        var rubiconAdType = \'${rubicon_ad_type}\';        var tplElement = document.getElementById(\\"RubiconAdTemp\\");        var advParts = {};        var insertedGoogle = false;        var isSubscribed = false;        if (rubiconAdType == \'\') {            rubiconAdType = \'js\';        }        if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {            isSubscribed = true;        }        if (typeof _ceDeviceDetect.getDeviceType() !== \'undefined\') {            switch (_ceDeviceDetect.getDeviceType()) {                case \'desktop\':                    rubiconZoneSize = \'638128-198\';                    break;                case \'mobile\':                    rubiconZoneSize = \'${rubicon_ad_zone_mobile}\';                    rubiconZoneSize = rubiconZoneSize.split(\'-\')[0] + \'-15\';                    break;                case \'tablet\':                    rubiconZoneSize = \'${rubicon_ad_zone_tablet}\';                    if (rubiconZoneSize == \'\') {                        rubiconZoneSize = \'638128-198\';                    }                    break;            }            if (_ceDeviceDetect.getDeviceType() != \'desktop\' && rubiconSiteMobile != undefined && rubiconSiteMobile != \'\' && rubiconSiteMobile != \'undefined\') {                rubiconSite = rubiconSiteMobile;            }            if (navigator.userAgent.toLowerCase().indexOf(\\"ipad\\") !== -1 && navigator.userAgent.toLowerCase().indexOf(\\"iphone\\") === -1) {                if (!isSubscribed) {                    insertedGoogle = true;                    advParts.initScript = document.createElement(\'script\');                    advParts.initScript.src = \'//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\';                    advParts.initScript.async = \'true\';                    advParts.body = document.createElement(\'ins\');                    advParts.body.className = \'adsbygoogle\';                    advParts.body.style = \\"display:inline-block;min-width:320px;max-width:1200px;width:100%;height:200px\\";                    advParts.body.setAttribute(\'data-ad-client\', \'ca-pub-8962558862962174\');                    advParts.body.setAttribute(\'data-ad-slot\', \'5920657040\');                    if (tplElement.getAttribute(\\"ctsStyle\\") != null) {                        tplElement.style = tplElement.getAttribute(\\"ctsStyle\\");                        tplElement.removeAttribute(\\"ctsStyle\\");                    } else {                        tplElement.removeAttribute(\\"style\\");                    }                    tplElement.appendChild(advParts.initScript);                    tplElement.appendChild(advParts.body);                    (adsbygoogle = window.adsbygoogle || []).push({});                    tplElement.removeAttribute(\'id\');                }            }        }        if (!insertedGoogle) {            if (!isSubscribed && (typeof noRUBICON == \'undefined\' || noRUBICON === false) && rubiconZoneSize.split(\'-\')[0] != \'\') {                rp_account = \'13818\';                rp_site = rubiconSite;                rp_zonesize = rubiconZoneSize;                rp_adtype = rubiconAdType;                tplElement.removeAttribute(\'id\');                if (tplElement.getAttribute(\\"ctsStyle\\") != null) {                    tplElement.style = tplElement.getAttribute(\\"ctsStyle\\");                    tplElement.removeAttribute(\\"ctsStyle\\");                } else {                    tplElement.removeAttribute(\\"style\\");                }            } else {                tplElement.remove();            }        }    })();\t</script><script type=\\"text/javascript\\" src=\\"//ads.rubiconproject.com/ad/13818.js\\"></script></div>\"}, {\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" ctsStyle=\\"margin-top: 40px;\\" style=\\"display: none;\\"><script type=\\"text/javascript\\">\t\t(function () {\t\t\tvar slotForDevice = \'\';\t\t\tvar gadxErr = false;\t\t\tvar dimensionForDevice = {\t\t\t\twidth: parseInt(750),\t\t\t\theight: parseInt(200)\t\t\t};\t\t\tvar isSubscribed = false;\t\t\tif (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {\t\t\t\tisSubscribed = true;\t\t\t}\t\t\tif (typeof ADXBannerWidth !== \'undefined\') {\t\t\t\tdimensionForDevice.width = ADXBannerWidth;\t\t\t}\t\t\tif (typeof _ceDeviceDetect.getDeviceType() !== \'undefined\') {\t\t\t\tswitch (_ceDeviceDetect.getDeviceType()) {\t\t\t\t\tcase \'desktop\':\t\t\t\t\t\tslotForDevice = \'${google_adx_slot_default_for_desktop}\';\t\t\t\t\t\tbreak;\t\t\t\t\tcase \'mobile\':\t\t\t\t\t\tslotForDevice = \'5512350868\';\t\t\t\t\t\tdimensionForDevice.width = 300;\t\t\t\t\t\tdimensionForDevice.height = 250;\t\t\t\t\t\tbreak;\t\t\t\t\tcase \'tablet\':\t\t\t\t\t\tif (\'${google_adx_slot_default_for_tablet}\' != \'\') {\t\t\t\t\t\t\tslotForDevice = \'${google_adx_slot_default_for_tablet}\';\t\t\t\t\t\t} else {\t\t\t\t\t\t\tslotForDevice = \'${google_adx_slot_default_for_desktop}\';\t\t\t\t\t\t}\t\t\t\t\t\tbreak;\t\t\t\t}\t\t\t}\t\t\tif (!isSubscribed && (typeof noADX == \'undefined\' || noADX === false) && slotForDevice != \'\') {\t\t\t\tvar advParts = {};\t\t\t\tvar gadxDiv = document.getElementById(\'ctsGadxTemp\');\t\t\t\tadvParts.initScript = document.createElement(\'script\');\t\t\t\tadvParts.initScript.src = \'//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\';\t\t\t\tadvParts.initScript.async = \'true\';\t\t\t\tadvParts.body = document.createElement(\'ins\');\t\t\t\tadvParts.body.className = \'adsbygoogle\';\t\t\t\tadvParts.body.style.display = \'table\';\t\t\t\tadvParts.body.style.margin = \'0 auto\';\t\t\t\tadvParts.body.style.width = dimensionForDevice.width + \'px\';\t\t\t\tadvParts.body.style.height = dimensionForDevice.height + \'px\';\t\t\t\tadvParts.body.setAttribute(\'data-ad-client\', \'ca-pub-8962558862962174\');\t\t\t\tadvParts.body.setAttribute(\'data-ad-slot\', slotForDevice);\t\t\t\tadvParts.body.setAttribute(\'data-max-num-ads\', parseInt(1));\t\t\t\tif (typeof \'${google_ad_page_url}\' !== \'undefined\' && \'${google_ad_page_url}\' != \'\') {\t\t\t\t\tadvParts.body.setAttribute(\'data-page-url\', \'${google_ad_page_url}\');\t\t\t\t}\t\t\t\tgadxDiv.appendChild(advParts.initScript);\t\t\t\tgadxDiv.appendChild(advParts.body);\t\t\t\tif (gadxDiv.getAttribute(\\"ctsStyle\\") != null) {\t\t\t\t\tgadxDiv.style = gadxDiv.getAttribute(\\"ctsStyle\\");\t\t\t\t\tgadxDiv.removeAttribute(\\"ctsStyle\\");\t\t\t\t} else {\t\t\t\t\tgadxDiv.removeAttribute(\\"style\\");\t\t\t\t}\t\t\t\t(adsbygoogle = window.adsbygoogle || []).push({});\t\t\t\tgadxDiv.removeAttribute(\'id\');\t\t\t} else {\t\t\t\tvar adxElement = document.getElementById(\'ctsGadxTemp\');\t\t\t\tadxElement.parentNode.removeChild(adxElement);\t\t\t}\t\t\t})();    </script></div>\"}]';
  this.positions_weighted['content030'] = false;
  
  this.positions['content060'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\"    ctsStyle=\\"width:100%;text-align: center;margin-top:15px;display:inline-block;${custom_css}\\" style=\\"display: none;\\"><script>\t\t(function () {\t\t\tvar slotForDevice = \'\';\t\t\tvar gadxErr = false;\t\t\tvar dimensionForDevice = {\t\t\t\twidth: parseInt(750),\t\t\t\tmobileWidth: parseInt(${google_ad_width_mobile}),\t\t\t\tminWidth: parseInt(300),\t\t\t\theight: parseInt(200),\t\t\t\tmobileHeight: parseInt(${google_ad_height_mobile})\t\t\t};\t\t\tvar isSubscribed = false;\t\t\tif (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {\t\t\t\tisSubscribed = true;\t\t\t}\t\t\tif (typeof _ceDeviceDetect.getDeviceType() !== \'undefined\') {\t\t\t\tswitch (_ceDeviceDetect.getDeviceType()) {\t\t\t\t\tcase \'desktop\':\t\t\t\t\t\tslotForDevice = \'${google_adx_slot_default_for_desktop}\';\t\t\t\t\t\tbreak;\t\t\t\t\tcase \'mobile\':\t\t\t\t\t\tslotForDevice = \'8021474066\';\t\t\t\t\t\tdimensionForDevice.width = 300;\t\t\t\t\t\tdimensionForDevice.minWidth = 300;\t\t\t\t\t\tdimensionForDevice.height = 250;\t\t\t\t\t\tif (!isNaN(dimensionForDevice.mobileWidth)) {\t\t\t\t\t\t\tdimensionForDevice.width = dimensionForDevice.mobileWidth;\t\t\t\t\t\t}\t\t\t\t\t\tif (!isNaN(dimensionForDevice.mobileHeight)) {\t\t\t\t\t\t\tdimensionForDevice.height = dimensionForDevice.mobileHeight;\t\t\t\t\t\t}\t\t\t\t\t\tbreak;\t\t\t\t\tcase \'tablet\':\t\t\t\t\t\tif (\'${google_adx_slot_default_for_tablet}\' != \'\') {\t\t\t\t\t\t\tslotForDevice = \'${google_adx_slot_default_for_tablet}\';\t\t\t\t\t\t} else {\t\t\t\t\t\t\tslotForDevice = \'${google_adx_slot_default_for_desktop}\';\t\t\t\t\t\t}\t\t\t\t\t\tbreak;\t\t\t\t}\t\t\t}\t\t\tif (!isSubscribed && (typeof noADX == \'undefined\' || noADX === false) && slotForDevice != \'\') {\t\t\t\tvar advParts = {};\t\t\t\tvar gadxDiv = document.getElementById(\'ctsGadxTemp\');\t\t\t\tadvParts.initScript = document.createElement(\'script\');\t\t\t\tadvParts.initScript.src = \'//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\';\t\t\t\tadvParts.initScript.async = \'true\';\t\t\t\tadvParts.body = document.createElement(\'ins\');\t\t\t\tadvParts.body.className = \'adsbygoogle\';\t\t\t\tadvParts.body.style.display = \'inline-block\';\t\t\t\tadvParts.body.style.height = dimensionForDevice.height + \'px\';\t\t\t\tif (!isNaN(dimensionForDevice.minWidth) && !isNaN(dimensionForDevice.width)) {\t\t\t\t\tadvParts.body.style.maxWidth = dimensionForDevice.width + \'px\';\t\t\t\t\tadvParts.body.style.minWidth = dimensionForDevice.minWidth + \'px\';\t\t\t\t\tadvParts.body.style.width = \'100%\';\t\t\t\t} else {\t\t\t\t\tadvParts.body.style.width = dimensionForDevice.width + \'px\';\t\t\t\t}\t\t\t\tadvParts.body.setAttribute(\'data-ad-client\', \'ca-pub-8962558862962174\');\t\t\t\tadvParts.body.setAttribute(\'data-ad-slot\', slotForDevice);\t\t\t\tadvParts.body.setAttribute(\'data-max-num-ads\', parseInt(1));\t\t\t\tif (typeof \'${google_ad_page_url}\' !== \'undefined\' && \'${google_ad_page_url}\' != \'\') {\t\t\t\t\tadvParts.body.setAttribute(\'data-page-url\', \'${google_ad_page_url}\');\t\t\t\t}\t\t\t\tif (gadxDiv.getAttribute(\\"ctsStyle\\") != null) {\t\t\t\t\tgadxDiv.style = gadxDiv.getAttribute(\\"ctsStyle\\");\t\t\t\t\tgadxDiv.removeAttribute(\\"ctsStyle\\");\t\t\t\t} else {\t\t\t\t\tgadxDiv.removeAttribute(\\"style\\");\t\t\t\t}\t\t\t\tgadxDiv.appendChild(advParts.initScript);\t\t\t\tgadxDiv.appendChild(advParts.body);\t\t\t\t(adsbygoogle = window.adsbygoogle || []).push({});\t\t\t\tgadxDiv.removeAttribute(\'id\');\t\t\t} else {\t\t\t\tvar adxElement = document.getElementById(\'ctsGadxTemp\');\t\t\t\tadxElement.parentNode.removeChild(adxElement);\t\t\t}\t\t})();    </script></div>\"}]';
  this.positions_weighted['content060'] = false;
  
  this.positions['list-content020'] = '[{\"service_name\": \"Sanoma/Hir24\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">        var ADXBannerWidthDefault = 640,        pageType = typeof ctsPageType !== \'undefined\' ? ctsPageType : \'notSet\';            switch (pageType) {        case \'category\':            ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.category-component-box.hir24-rovat.list-category\').css(\'width\');            break;        case \'other\':            if (location.pathname.indexOf(\'/tag/\') != -1){                ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.hir24-rovat.list-category > div.row > div.article.col-sm-8\').css(\'width\'); }            break;        case \'tag\':            ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.hir24-rovat.list-category > div.row > div.article.col-sm-8\').css(\'width\');            break;        case \'article\':            ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.col-md-8.hir24-post\').css(\'width\');            break;        default:            ADXBannerWidth = ADXBannerWidthDefault;    }    ADXBannerWidth = parseInt(ADXBannerWidth);    if (window.innerWidth < 670) ADXBannerWidth-=15;    if (isNaN(ADXBannerWidth) || ADXBannerWidth <= 0 || ADXBannerWidthDefault < ADXBannerWidth){        ADXBannerWidth = ADXBannerWidthDefault;    }</script>\"}, {\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" ctsStyle=\\"margin-top:15px;border-bottom:1px solid #e4e4e4; display:table;margin:0 auto;\\" style=\\"display: none;\\"><script type=\\"text/javascript\\">\t(function () {        var slotForDevice = \'\';        var dimensionForDevice = {            width: parseInt(640),            height: parseInt(120)        };        var isSubscribed = false;        if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {            isSubscribed = true;        }        if (typeof ADXBannerWidth !== \'undefined\') {            dimensionForDevice.width = ADXBannerWidth;        }        if (typeof _ceDeviceDetect.getDeviceType() !== \'undefined\') {            switch (_ceDeviceDetect.getDeviceType()) {                case \'desktop\':                    slotForDevice = \'8105101400/9581809280\';                    break;                case \'mobile\':                    slotForDevice = \'${google_adx_slot_default_for_mobile}\';                    dimensionForDevice.width = 300;                    dimensionForDevice.height = 250;                    break;                case \'tablet\':                    if (\'${google_adx_slot_default_for_tablet}\' != \'\') {                        slotForDevice = \'${google_adx_slot_default_for_tablet}\';                    } else {                        slotForDevice = \'8105101400/9581809280\';                    }                    break;            }        }        if (!isSubscribed && (typeof noADX == \'undefined\' || noADX === false) && slotForDevice != \'\') {            var gadxDiv = document.getElementById(\'ctsGadxTemp\');            var adSign = document.createElement(\'div\');            adSign.style.width = dimensionForDevice.width + \'px\';            adSign.style.textAlign = \'right\';            adSign.style.fontSize = \'8px\';            adSign.style.color = \'#C6C6C6\';            adSign.innerHTML = \'HIRDET&#xC9;S\';            gadxDiv.appendChild(adSign);            var gaAdxSlotIdentifier = \'5491763120/\' + slotForDevice;            google_ad_client = \'ca-pub-1984646123858990\';            google_ad_slot = gaAdxSlotIdentifier;            google_ad_width = dimensionForDevice.width;            google_ad_height = dimensionForDevice.height;            google_max_num_ads = parseInt(1);            if (gadxDiv.getAttribute(\\"ctsStyle\\") != null) {                gadxDiv.style = gadxDiv.getAttribute(\\"ctsStyle\\");                gadxDiv.removeAttribute(\\"ctsStyle\\");            } else {                gadxDiv.removeAttribute(\\"style\\");            }            gadxDiv.removeAttribute(\'id\');        } else {            var adxElement = document.getElementById(\'ctsGadxTemp\');            adxElement.parentNode.removeChild(adxElement);        }    })();\t</script><script type=\\"text/javascript\\" src=\\"//pagead2.googlesyndication.com/pagead/show_ads.js\\"></script></div>\"}]';
  this.positions_weighted['list-content020'] = false;
  
  this.positions['list-content030'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" ctsStyle=\\"margin-top:15px;border-bottom:1px solid #e4e4e4; display:table;margin:0 auto;\\" style=\\"display: none;\\"><script type=\\"text/javascript\\">\t(function () {        var slotForDevice = \'\';        var dimensionForDevice = {            width: parseInt(640),            height: parseInt(120)        };        var isSubscribed = false;        if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {            isSubscribed = true;        }        if (typeof ADXBannerWidth !== \'undefined\') {            dimensionForDevice.width = ADXBannerWidth;        }        if (typeof _ceDeviceDetect.getDeviceType() !== \'undefined\') {            switch (_ceDeviceDetect.getDeviceType()) {                case \'desktop\':                    slotForDevice = \'8105101400/3535225040\';                    break;                case \'mobile\':                    slotForDevice = \'${google_adx_slot_default_for_mobile}\';                    dimensionForDevice.width = 300;                    dimensionForDevice.height = 250;                    break;                case \'tablet\':                    if (\'${google_adx_slot_default_for_tablet}\' != \'\') {                        slotForDevice = \'${google_adx_slot_default_for_tablet}\';                    } else {                        slotForDevice = \'8105101400/3535225040\';                    }                    break;            }        }        if (!isSubscribed && (typeof noADX == \'undefined\' || noADX === false) && slotForDevice != \'\') {            var gadxDiv = document.getElementById(\'ctsGadxTemp\');            var adSign = document.createElement(\'div\');            adSign.style.width = dimensionForDevice.width + \'px\';            adSign.style.textAlign = \'right\';            adSign.style.fontSize = \'8px\';            adSign.style.color = \'#C6C6C6\';            adSign.innerHTML = \'HIRDET&#xC9;S\';            gadxDiv.appendChild(adSign);            var gaAdxSlotIdentifier = \'5491763120/\' + slotForDevice;            google_ad_client = \'ca-pub-1984646123858990\';            google_ad_slot = gaAdxSlotIdentifier;            google_ad_width = dimensionForDevice.width;            google_ad_height = dimensionForDevice.height;            google_max_num_ads = parseInt(1);            if (gadxDiv.getAttribute(\\"ctsStyle\\") != null) {                gadxDiv.style = gadxDiv.getAttribute(\\"ctsStyle\\");                gadxDiv.removeAttribute(\\"ctsStyle\\");            } else {                gadxDiv.removeAttribute(\\"style\\");            }            gadxDiv.removeAttribute(\'id\');        } else {            var adxElement = document.getElementById(\'ctsGadxTemp\');            adxElement.parentNode.removeChild(adxElement);        }    })();\t</script><script type=\\"text/javascript\\" src=\\"//pagead2.googlesyndication.com/pagead/show_ads.js\\"></script></div>\"}]';
  this.positions_weighted['list-content030'] = false;
  
  this.positions['bottom'] = '[]';
  this.positions_weighted['bottom'] = false;
  
  this.positions['right-bottom'] = '[{\"service_name\": \"Rubicon\", \"weight\": null, \"source\": \"<div id=\\"RubiconAdTemp\\" class=\\"rubAd\\" ctsStyle=\\"width: 100%;text-align: center;${custom_css}\\" style=\\"display: none;\\"><script language=\\"JavaScript\\" type=\\"text/javascript\\">\t(function () {        var rubiconZoneSize = \'\';        var rubiconSite = \'65910\';        var rubiconSiteMobile = \'${rubicon_ad_site_mobile}\';        var rubiconAdType = \'${rubicon_ad_type}\';        var tplElement = document.getElementById(\\"RubiconAdTemp\\");        var advParts = {};        var insertedGoogle = false;        var isSubscribed = false;        if (rubiconAdType == \'\') {            rubiconAdType = \'js\';        }        if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {            isSubscribed = true;        }        if (typeof _ceDeviceDetect.getDeviceType() !== \'undefined\') {            switch (_ceDeviceDetect.getDeviceType()) {                case \'desktop\':                    rubiconZoneSize = \'663988-10\';                    break;                case \'mobile\':                    rubiconZoneSize = \'${rubicon_ad_zone_mobile}\';                    rubiconZoneSize = rubiconZoneSize.split(\'-\')[0] + \'-15\';                    break;                case \'tablet\':                    rubiconZoneSize = \'${rubicon_ad_zone_tablet}\';                    if (rubiconZoneSize == \'\') {                        rubiconZoneSize = \'663988-10\';                    }                    break;            }            if (_ceDeviceDetect.getDeviceType() != \'desktop\' && rubiconSiteMobile != undefined && rubiconSiteMobile != \'\' && rubiconSiteMobile != \'undefined\') {                rubiconSite = rubiconSiteMobile;            }            if (navigator.userAgent.toLowerCase().indexOf(\\"ipad\\") !== -1 && navigator.userAgent.toLowerCase().indexOf(\\"iphone\\") === -1) {                if (!isSubscribed) {                    insertedGoogle = true;                    advParts.initScript = document.createElement(\'script\');                    advParts.initScript.src = \'//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\';                    advParts.initScript.async = \'true\';                    advParts.body = document.createElement(\'ins\');                    advParts.body.className = \'adsbygoogle\';                    advParts.body.style = \\"display:inline-block;min-width:320px;max-width:1200px;width:100%;height:200px\\";                    advParts.body.setAttribute(\'data-ad-client\', \'ca-pub-8962558862962174\');                    advParts.body.setAttribute(\'data-ad-slot\', \'5920657040\');                    if (tplElement.getAttribute(\\"ctsStyle\\") != null) {                        tplElement.style = tplElement.getAttribute(\\"ctsStyle\\");                        tplElement.removeAttribute(\\"ctsStyle\\");                    } else {                        tplElement.removeAttribute(\\"style\\");                    }                    tplElement.appendChild(advParts.initScript);                    tplElement.appendChild(advParts.body);                    (adsbygoogle = window.adsbygoogle || []).push({});                    tplElement.removeAttribute(\'id\');                }            }        }        if (!insertedGoogle) {            if (!isSubscribed && (typeof noRUBICON == \'undefined\' || noRUBICON === false) && rubiconZoneSize.split(\'-\')[0] != \'\') {                rp_account = \'13818\';                rp_site = rubiconSite;                rp_zonesize = rubiconZoneSize;                rp_adtype = rubiconAdType;                tplElement.removeAttribute(\'id\');                if (tplElement.getAttribute(\\"ctsStyle\\") != null) {                    tplElement.style = tplElement.getAttribute(\\"ctsStyle\\");                    tplElement.removeAttribute(\\"ctsStyle\\");                } else {                    tplElement.removeAttribute(\\"style\\");                }            } else {                tplElement.remove();            }        }    })();\t</script><script type=\\"text/javascript\\" src=\\"//ads.rubiconproject.com/ad/13818.js\\"></script></div>\"}]';
  this.positions_weighted['right-bottom'] = false;
  
  this.positions['content050'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"cts_content_recomm\\" class=\\"ctsGadx\\" ctsStyle=\\"display:block;margin-top:30px;margin-bottom:30px;${custom_css}\\"    style=\\"display: none;\\"><script type=\\"text/javascript\\">        (function () {            var slotForDevice = {                desktop: \'1339032861\',                mobile: \'1861591915\',                tablet: \'1861591915\'            },                recommDiv = document.getElementById(\'cts_content_recomm\'),                slot = \'\',                parameter = \'\',                googleUniqueParameters = {                    desktop: \'${google_recomm_unique_parameters}\',                    mobile: \'{\\"data-matched-content-rows-num\\": \\"12,6\\", \\"data-matched-content-columns-num\\": \\"1,2\\", \\"data-matched-content-ui-type\\": \\"image_sidebyside,image_sidebyside\\"}\',                    tablet: \'{\\"data-matched-content-rows-num\\": \\"12,6\\", \\"data-matched-content-columns-num\\": \\"1,2\\", \\"data-matched-content-ui-type\\": \\"image_sidebyside,image_sidebyside\\"}\'                };            var isSubscribed = false;            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (typeof _ceDeviceDetect.getDeviceType() !== \'undefined\') {                switch (_ceDeviceDetect.getDeviceType()) {                    case \'desktop\':                        slot = slotForDevice.desktop;                        parameter = googleUniqueParameters.desktop;                        break;                    case \'mobile\':                        slot = slotForDevice.mobile;                        parameter = googleUniqueParameters.mobile;                        if (slot == \'\') {                            slot = slotForDevice.desktop;                        }                        break;                    case \'tablet\':                        slot = slotForDevice.mobile;                        parameter = googleUniqueParameters.mobile;                        if (slot == \'\') {                            slot = slotForDevice.desktop;                        }                        break;                }            }            if (!isSubscribed && (typeof noADX == \'undefined\' || noADX === false) && slot != \'\') {                var advParts = {};                advParts.initScript = document.createElement(\'script\');                advParts.initScript.src = \'//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\';                advParts.initScript.async = \'true\';                advParts.body = document.createElement(\'ins\');                advParts.body.className = \'adsbygoogle\';                advParts.body.style.display = \'block\';                advParts.body.setAttribute(\'data-ad-format\', \'autorelaxed\');                advParts.body.setAttribute(\'data-ad-client\', \'ca-pub-8962558862962174\');                advParts.body.setAttribute(\'data-ad-slot\', slot);                try {                    parameter = JSON.parse(parameter);                    for (var key in parameter) {                        if (parameter.hasOwnProperty(key)) {                            advParts.body.setAttribute(key, parameter[key]);                        }                    }                } catch (e) {                }                if (recommDiv.getAttribute(\\"ctsStyle\\") != null) {                    recommDiv.style = recommDiv.getAttribute(\\"ctsStyle\\");                    recommDiv.removeAttribute(\\"ctsStyle\\");                } else {                    recommDiv.removeAttribute(\\"style\\");                }                recommDiv.appendChild(advParts.initScript);                recommDiv.appendChild(advParts.body);                (adsbygoogle = window.adsbygoogle || []).push({});                recommDiv.removeAttribute(\'id\');            } else {                recommDiv.parentNode.removeChild(recommDiv);            }        })();    </script></div>\"}]';
  this.positions_weighted['content050'] = false;
  
  this.positions['right030'] = '[]';
  this.positions_weighted['right030'] = false;
}

Tagging.prototype.get_json = function(text) {
  return !(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(text.replace(/"(\\.|[^"\\])*"/g, '')))
         && eval('(' + text + ')');
}

Tagging.prototype.random_tag = function(position) {
  var tags = [];
  var weighted_tags = [];

  for (index in position) {
    tag = position[index];
    tags[index] = tag.source;

    for (var i = 0; i < tag.weight; i++) {
      weighted_tags.push(index);
    }
  }

  // Pick a random tag from array based on weight
  var random_index = weighted_tags[Math.floor((Math.random() * weighted_tags.length))];
  return tags[random_index];
}

Tagging.prototype.all_tags = function(position) {
  var tags = [], index, tag;
  for (index in position) {
    tag = position[index];
    tags[index] = tag.source;
  }
  return tags.join("\n");
}

Tagging.prototype.render = function(slug, context) {
    document.write(this.get_source(slug, context));
}

Tagging.prototype.get_source = function(slug, context) {
  if (typeof this.positions[slug] == 'undefined') {
    // This position doesn't exist, call the autodetect
    this._detect(slug);
  } else {
    var position = this.get_json(this.positions[slug]);
    var tag_source = "";

    if (this.positions_weighted[slug]) {
      tag_source = this.random_tag(position)
    } else {
      tag_source = this.all_tags(position);
    }

    // Replace variables
    var variables = {};
    for (variable in this.context) {
      variables[variable] = this.context[variable];
    }
    for (variable in context) {
      variables[variable] = context[variable];
    }
    tag_source = this._replace_variables(tag_source, variables);

    // Remove unset variables and return result
    return tag_source.replace(/\$\w+/g, "").replace(/\${\w+}/g, "");
  }
  return '';
}

Tagging.prototype.log = function(err) {
  //this._load(error_endpoint);
}

Tagging.prototype._load = function(url) {
  var head = document.getElementsByTagName('head')[0] || document.documentElement,
      script = document.createElement('script');

  script.type = 'text/javascript';
  script.src = url;
  head.appendChild(script);
}

Tagging.prototype._detect = function(position) {
  this._load(this.autodetect_url + this.site +'/'+ this.zone +'/' + position + '/');
}

Tagging.prototype._replace_variables = function(content, variables) {
  var RE_VALID_IDENT = /^[a-zA-Z_]\w*$/;
  for (variable in variables) {
    if (RE_VALID_IDENT.test(variable)) {
      var regexes = [new RegExp('\\$' + variable, 'g'), new RegExp('\\${' + variable + '}', 'g')];

      for (re in regexes) {
        content = content.replace(regexes[re], variables[variable]);
      }
    } else {
      throw "'" + variable + "' is not a valid identifier.";
    }
  }
  return content;
}



