Tagging = function(context) {
  this.site = 'startlap';
  this.zone = 'kereso';
  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['body-start'] = '[{\"service_name\": \"Sanoma\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">\t(function() {        const insertBt = () => {\t\t\twindow._btq = window._btq || [];\t\t\twindow._btq.request = window._btq.request || function(){return{};};\t\t\tconst bt = document.createElement(\'script\');\t\t\tbt.type = \'text/javascript\';\t\t\tbt.async = true;\t\t\tbt.onload = function(){\t\t\t\twindow.dispatchEvent( new Event(\'btLoaded\') );\t\t\t};\t\t\tbt.src = (\'https:\' === document.location.protocol ? \'https://\' : \'http://\') + \'bt.p24.hu/btarget.js?t=20221006\';\t\t\tconst s = document.getElementsByTagName(\'script\')[0];\t\t\ts.parentNode.insertBefore(bt, s);\t\t};\t\tinsertBt();\t\twindow.addEventListener(\\"btAjaxLoad\\", insertBt);\t})();</script>\"}, {\"service_name\": \"Google Tag Manager\", \"weight\": null, \"source\": \"<noscript><iframe src=\\"//www.googletagmanager.com/ns.html?id=GTM-KM9R\\"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-KM9R\');</script>\"}, {\"service_name\": \"A42A6Cblck\", \"weight\": null, \"source\": \"<script src=\\"//adfree-stat.p3g.hu/detect/detect.min.js?t=20221209\\"></script>\"}]';
  this.positions_weighted['body-start'] = false;
  
  this.positions['head'] = '[{\"service_name\": \"Sanoma\", \"weight\": null, \"source\": \"<script src=\\"//stat.p24.hu/mobile_detect/mobile_detect.js\\"></script>\"}, {\"service_name\": \"Sanoma/Startlap\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"//stat.p24.hu/CTS/measuring-codes/startlap_category.main.min.js?t=20230516\\"></script>\"}, {\"service_name\": \"Gemius Traffic\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">const pp_gemius_use_cmp = true;const pp_gemius_cmp_timeout = Infinity;var pp_gemius_identifier = (\'nXc6QXOBk9xpioM6JQtZB5aFj1gF9mdvhU4f84aCSaj.67\' != \'\') ? \'nXc6QXOBk9xpioM6JQtZB5aFj1gF9mdvhU4f84aCSaj.67\' : \'ogHqH7e848_t7D21Njjpx3amzSU1j07F8rDy6dML7Fv.j7\';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=\\"//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\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"//segment.p24.hu/cerment.min.js?t=20230202\\" 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: [] };        if(typeof noADX != \'undefined\' && noADX){            window.adsbygoogle = window.adsbygoogle || [];            window.adsbygoogle.pauseAdRequests = 1;            window.adsbygoogle.push({                enable_page_level_ads: false            });            window.googletag.cmd.push(function() {                window.googletag.destroySlots();                window.googletag.pubads().disableInitialLoad();                window.googletag.pubads().clear();            });        }        window.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, .goa-embedded[id*=\'ajaxZone\']\\");                        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>\"}, {\"service_name\": \"OneSignal\", \"weight\": null, \"source\": \"<script src=\\"https://cdn.onesignal.com/sdks/OneSignalSDK.js\\" async></script><script id=\\"tempScript\\">    (function () {        const config = JSON.parse(\'{\\"appId\\":\\"def199fc-b5f7-4ed6-abb4-2868990ad598\\",\\"sendTag\\":true}\');        window.OneSignal = window.OneSignal || [];        window.OneSignal.push(function () {            window.OneSignal.init({                appId: config.appId,            });        });        const tempScript = document.querySelector(\\"#tempScript\\");        tempScript.parentNode.removeChild(tempScript);    })();</script>\"}]';
  this.positions_weighted['head'] = false;
  
  this.positions['body-end'] = '[{\"service_name\": \"Sanoma/Startlap\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"//stat.p24.hu/startlap/cts/subPageMeasuringCode.min.js\\"></script>\"}, {\"service_name\": \"Social\", \"weight\": null, \"source\": \"<script>function dataLayerPush(eventNetwork, eventAction, targetUrl) {    dataLayer.push({        \'event\'        : \'socialEvent\',        \'socialNetwork\': eventNetwork,        \'socialAction\' : eventAction,        \'socialTarget\' : targetUrl,        \'eventValue\'   : 1    });}try {    FB.Event.subscribe(\'edge.create\', function(targetUrl) {        dataLayerPush(\'facebook\', \'like\', targetUrl);    });    FB.Event.subscribe(\'edge.remove\', function(targetUrl) {        dataLayerPush(\'facebook\', \'unlike\', targetUrl);    });    FB.Event.subscribe(\'message.send\', function(targetUrl) {        dataLayerPush(\'facebook\', \'send\', targetUrl);    });} catch(err) {}</script>\"}, {\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"//ad.adverticum.net/g3.js\\"></script>\"}, {\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">    (function(){        var googleCPLink = (\\"${google_cookie_policy_link}\\" != \\"\\") ? \\"${google_cookie_policy_link}\\" : \\"//centralmediacsoport.hu/Company/Central-Digitalis-Media-Adatkezelesi-tajekoztato\\";        var googleCPRename = (\\"${google_cookie_policy_rename}\\" != \\"\\") ? \\"${google_cookie_policy_rename}\\" : 1;        var hostname = document.location.hostname.split(\'.\');        hostname = \\".\\"+hostname[hostname.length-2]+\\".\\"+hostname[hostname.length-1];        window.cookieconsent_options = {            \\"message\\"   : \\"A weboldalon cookie-kat haszn&#xE1;lunk, hogy biztons&#xE1;gos b&#xF6;ng&#xE9;sz&#xE9;s mellett a legjobb felhaszn&#xE1;l&#xF3;i &#xE9;lm&#xE9;nyt ny&#xFA;jthassunk.\\",            \\"dismiss\\"   : \\"Rendben!\\",            \\"learnMore\\" : \\"R&#xE9;szletes le&#xED;r&#xE1;s\\",            \\"link\\"      : googleCPLink,            \\"theme\\"     : \\"//stat.p24.hu/CTS/helper-scripts/cookieconsent/styles/custom.css\\",            \\"expiryDays\\": 1095,            \\"domain\\"    : hostname,            \\"renamed\\"   : googleCPRename        };    })();</script><script type=\\"text/javascript\\" src=\\"//stat.p24.hu/CTS/helper-scripts/cookieconsent/cookieconsent.min.js\\"></script>\"}, {\"service_name\": \"Gemius\", \"weight\": null, \"source\": \"<script src=\\"//stat.p24.hu/CTS/measuring-codes/gem_stream.min.js?t=20210111\\" type=\\"text/javascript\\"></script>\"}, {\"service_name\": \"Sanoma/Surveysparrow\", \"weight\": null, \"source\": \"<div id=\\"ss_survey_widget_cts\\" class=\\"_ce_measure_widget\\" data-ce-measure-widget=\\"survey-form-ss\\"    style=\\"display:none;${survey_css}\\"><script>        (function () {            var placeholder = document.getElementById(\\"ss_survey_widget_cts\\");            try{                var conf = {};                if (placeholder != undefined && conf != undefined && conf != \'\' && conf != null  && Object.keys(conf).length > 0) {                    var s = document.createElement(\'script\');                    s.src = \'//stat.p24.hu/CTS/helper-scripts/survey/surveysparrow/ss.min.js?t=20230411\';                    s.onload = () => {                        const ssSurv = new _ceSsSurvey(conf);                        if (document.readyState === \\"interactive\\") {                            ssSurv.init();                        } else {                            window.addEventListener(\'DOMContentLoaded\', ssSurv.init);                        }                    };                    document.head.appendChild(s);                }else{                    if (placeholder != undefined) placeholder.parentNode.removeChild(placeholder);                }            }catch(e){                if (placeholder != undefined) placeholder.parentNode.removeChild(placeholder);            }        })();    </script></div>\"}, {\"service_name\": \"Gemius Traffic\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">    (function () {        const insertGemiusTrackingCode = () => {            const extra = window.pp_gemius_extraparameters || \'\';            const identifier = window.pp_gemius_identifier != undefined ? window.pp_gemius_identifier.replace(\'USED_\', \'\') : \'\';            if (identifier != \'\') {                pp_gemius_hit(identifier, extra);            }        };        if (typeof document.addEventListener !== \'undefined\') {            window.addEventListener(\\"_ce_gallery_pagination\\", insertGemiusTrackingCode);            window.addEventListener(\\"_ce_gem_pv\\", insertGemiusTrackingCode);        } else {            window.attachEvent(\\"_ce_gallery_pagination\\", insertGemiusTrackingCode);            window.attachEvent(\\"_ce_gem_pv\\", insertGemiusTrackingCode);        }    })();</script>\"}]';
  this.positions_weighted['body-end'] = false;
  
  this.positions['body-end-adv'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<!-- Goa3: 2836173 --><div id=\\"ctstemp\\" class=\\"goAdverticum\\" style=\\"display: none;\\"><script>        (function () {            var insertedElement = document.getElementById(\\"ctstemp\\");            var isSubscribed = false;            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (!isSubscribed) {                insertedElement.id = \\"zone2836173\\";                if (insertedElement.getAttribute(\\"ctsStyle\\") != null) {                    insertedElement.style = insertedElement.getAttribute(\\"ctsStyle\\");                    insertedElement.removeAttribute(\\"ctsStyle\\");                } else {                    insertedElement.removeAttribute(\\"style\\");                }            } else {                insertedElement.parentNode.removeChild(insertedElement);            }        })();    </script></div>\"}]';
  this.positions_weighted['body-end-adv'] = false;
  
  this.positions['list-adx-top'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"ctsGadx\\" ctsStyle=\\"margin-bottom:20px !important;display:table;margin:0 auto;\\" style=\\"display: none;\\"><div style=\\"width: 633px; 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: \'${google_adx_slot_direct}\' }\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: \'${google_adx_slot_hirkereso}\' }\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: \'${google_adx_slot_hirstart}\' }\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: \'${google_adx_slot_kapu}\' }\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: \'${google_adx_slot_startlap}\' }\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: \'${google_adx_slot_facebook_organic}\' },\t\t\t\t\t\t\t{ slot: \'${google_adx_slot_facebook_cpc}\' }\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: \'${google_adx_slot_google_organic}\' },\t\t\t\t\t\t\t{ slot: \'${google_adx_slot_google_cpc}\' }\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 = \'3912895640/6866311400\';\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 = \'3912895640/6866311400\';\t\t\t\tgaAdxSlotIdentifier = \'9018803960/\' + gaAdxSlotIdentifier;\t\t\t\tgoogle_ad_client = \\"ca-pub-1984646123858990\\";\t\t\t\tgoogle_ad_slot = gaAdxSlotIdentifier;\t\t\t\tgoogle_ad_width = parseInt(\\"633\\");\t\t\t\tgoogle_ad_height = parseInt(\\"120\\");\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['list-adx-top'] = false;
  
  this.positions['list-adx-bottom'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"ctsGadx\\" ctsStyle=\\"margin-bottom:20px !important;display:table;margin:0 auto;\\" style=\\"display: none;\\"><div style=\\"width: 633px; 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: \'${google_adx_slot_direct}\' }\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: \'${google_adx_slot_hirkereso}\' }\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: \'${google_adx_slot_hirstart}\' }\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: \'${google_adx_slot_kapu}\' }\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: \'${google_adx_slot_startlap}\' }\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: \'${google_adx_slot_facebook_organic}\' },\t\t\t\t\t\t\t{ slot: \'${google_adx_slot_facebook_cpc}\' }\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: \'${google_adx_slot_google_organic}\' },\t\t\t\t\t\t\t{ slot: \'${google_adx_slot_google_cpc}\' }\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 = \'3912895640/5389603520\';\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 = \'3912895640/5389603520\';\t\t\t\tgaAdxSlotIdentifier = \'9018803960/\' + gaAdxSlotIdentifier;\t\t\t\tgoogle_ad_client = \\"ca-pub-1984646123858990\\";\t\t\t\tgoogle_ad_slot = gaAdxSlotIdentifier;\t\t\t\tgoogle_ad_width = parseInt(\\"633\\");\t\t\t\tgoogle_ad_height = parseInt(\\"120\\");\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['list-adx-bottom'] = false;
  
  this.positions['list-adx-middle'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"ctsGadx\\" ctsStyle=\\"margin-bottom:20px !important;display:table;margin:0 auto;\\" style=\\"display: none;\\"><div style=\\"width: 633px; 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: \'${google_adx_slot_direct}\' }\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: \'${google_adx_slot_hirkereso}\' }\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: \'${google_adx_slot_hirstart}\' }\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: \'${google_adx_slot_kapu}\' }\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: \'${google_adx_slot_startlap}\' }\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: \'${google_adx_slot_facebook_organic}\' },\t\t\t\t\t\t\t{ slot: \'${google_adx_slot_facebook_cpc}\' }\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: \'${google_adx_slot_google_organic}\' },\t\t\t\t\t\t\t{ slot: \'${google_adx_slot_google_cpc}\' }\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 = \'3912895640/8343019280\';\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 = \'3912895640/8343019280\';\t\t\t\tgaAdxSlotIdentifier = \'9018803960/\' + gaAdxSlotIdentifier;\t\t\t\tgoogle_ad_client = \\"ca-pub-1984646123858990\\";\t\t\t\tgoogle_ad_slot = gaAdxSlotIdentifier;\t\t\t\tgoogle_ad_width = parseInt(\\"633\\");\t\t\t\tgoogle_ad_height = parseInt(\\"120\\");\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['list-adx-middle'] = false;
  
  this.positions['left010'] = '[]';
  this.positions_weighted['left010'] = false;
  
  this.positions['top005'] = '[]';
  this.positions_weighted['top005'] = false;
  
  this.positions['top010'] = '[]';
  this.positions_weighted['top010'] = false;
  
  this.positions['right010'] = '[]';
  this.positions_weighted['right010'] = false;
  
  this.positions['right020'] = '[]';
  this.positions_weighted['right020'] = false;
  
  this.positions['list-content010'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum a8a263be\\" style=\\"display: none;\\"><script>        (function () {            var insertedElement = document.getElementById(\'ctstemp\');            var zoneForDevice = \'\';            var dataAdsvName = \'\';            var isSubscribed = false;            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (typeof _ceDeviceDetect.getDeviceType() !== \'undefined\') {                switch (_ceDeviceDetect.getDeviceType()) {                    case \'desktop\':                        zoneForDevice = \'${adv_zone_id_for_desktop}\';                        dataAdsvName = \'${adverticum_name}\';                        break;                    case \'mobile\':                        zoneForDevice = \'5277895\';                        dataAdsvName = \'mobil_waterfall2\';                        break;                    case \'tablet\':                        zoneForDevice = \'${adv_zone_id_for_tablet}\';                        dataAdsvName = \'${adverticum_name_tablet}\';                        if (dataAdsvName == \\"\\") {                            dataAdsvName = \'${adverticum_name}\';                        }                        break;                }            }            if (zoneForDevice == \'\' || isSubscribed) {                insertedElement.parentNode.removeChild(insertedElement);            } else {                insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);                insertedElement.id = \'zone\' + zoneForDevice;                if (insertedElement.getAttribute(\\"ctsStyle\\") != null) {                    insertedElement.style = insertedElement.getAttribute(\\"ctsStyle\\");                    insertedElement.removeAttribute(\\"ctsStyle\\");                } else {                    insertedElement.removeAttribute(\\"style\\");                }            }        })();    </script></div>\"}]';
  this.positions_weighted['list-content010'] = false;
  
  this.positions['content-article-end'] = '[]';
  this.positions_weighted['content-article-end'] = false;
  
  this.positions['top'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum a8a263be\\" style=\\"display: none;\\"><script>        (function () {            var insertedElement = document.getElementById(\'ctstemp\');            var zoneForDevice = \'\';            var dataAdsvName = \'\';            var isSubscribed = false;            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (typeof _ceDeviceDetect.getDeviceType() !== \'undefined\') {                switch (_ceDeviceDetect.getDeviceType()) {                    case \'desktop\':                        zoneForDevice = \'${adv_zone_id_for_desktop}\';                        dataAdsvName = \'${adverticum_name}\';                        break;                    case \'mobile\':                        zoneForDevice = \'5127244\';                        dataAdsvName = \'mobil_waterfall1\';                        break;                    case \'tablet\':                        zoneForDevice = \'${adv_zone_id_for_tablet}\';                        dataAdsvName = \'${adverticum_name_tablet}\';                        if (dataAdsvName == \\"\\") {                            dataAdsvName = \'${adverticum_name}\';                        }                        break;                }            }            if (zoneForDevice == \'\' || isSubscribed) {                insertedElement.parentNode.removeChild(insertedElement);            } else {                insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);                insertedElement.id = \'zone\' + zoneForDevice;                if (insertedElement.getAttribute(\\"ctsStyle\\") != null) {                    insertedElement.style = insertedElement.getAttribute(\\"ctsStyle\\");                    insertedElement.removeAttribute(\\"ctsStyle\\");                } else {                    insertedElement.removeAttribute(\\"style\\");                }            }        })();    </script></div>\"}]';
  this.positions_weighted['top'] = false;
  
  this.positions['toothbrush-head'] = '[]';
  this.positions_weighted['toothbrush-head'] = false;
  
  this.positions['toothbrush-handle'] = '[]';
  this.positions_weighted['toothbrush-handle'] = false;
  
  this.positions['content010'] = '[]';
  this.positions_weighted['content010'] = false;
  
  this.positions['list-content020'] = '[]';
  this.positions_weighted['list-content020'] = false;
  
  this.positions['list-content030'] = '[]';
  this.positions_weighted['list-content030'] = false;
  
  this.positions['block-box-bottom'] = '[]';
  this.positions_weighted['block-box-bottom'] = false;
  
  this.positions['right-bottom'] = '[]';
  this.positions_weighted['right-bottom'] = false;
  
  this.positions['content020'] = '[]';
  this.positions_weighted['content020'] = false;
  
  this.positions['content030'] = '[]';
  this.positions_weighted['content030'] = false;
  
  this.positions['bottom-right'] = '[]';
  this.positions_weighted['bottom-right'] = false;
  
  this.positions['list-content-dynamic'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" ctsStyle=\\"text-align: right; font-size: 8px; color: #C6C6C6; margin: 0 auto;\\"    style=\\"display: none;\\">    HIRDET&#xC9;S    <ins id=\\"gadsPholder\\" class=\\"adsbygoogle\\" style=\\"display:block;margin-bottom: 50px;\\"        data-ad-client=\\"ca-pub-8962558862962174\\" data-full-width-responsive=\\"true\\" data-ad-format=\\"auto\\"></ins><script type=\\"text/javascript\\">        (function () {            var adxElement = document.getElementById(\'ctsGadxTemp\');            var gadsPholder = document.getElementById(\'gadsPholder\');            var adsByGoogleScript = document.createElement(\\"script\\");            var isSubscribed = false;            var slotForDevice = \'\';            gadsPholder.removeAttribute(\'id\');            if (typeof _ceDeviceDetect.getDeviceType() !== \'undefined\') {                switch (_ceDeviceDetect.getDeviceType()) {                    case \'desktop\':                        slotForDevice = \'7402652842\';                        break;                    case \'mobile\':                        slotForDevice = \'9346289904\';                        break;                    case \'tablet\':                        if (\'${google_adx_slot_default_for_tablet}\' != \'\') {                            slotForDevice = \'${google_adx_slot_default_for_tablet}\';                        } else {                            slotForDevice = \'7402652842\';                        }                        break;                }            }            if (slotForDevice != \'\') {                gadsPholder.setAttribute(\\"data-ad-slot\\", slotForDevice);                adsByGoogleScript.src = \\"//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\\";                adxElement.removeAttribute(\'id\');                if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                    isSubscribed = true;                }                if (!isSubscribed && (typeof noADX == \'undefined\' || noADX === false)) {                    adxElement.appendChild(adsByGoogleScript);                    if (adxElement.getAttribute(\\"ctsStyle\\") != null) {                        adxElement.style = adxElement.getAttribute(\\"ctsStyle\\");                        adxElement.removeAttribute(\\"ctsStyle\\");                    } else {                        adxElement.removeAttribute(\\"style\\");                    }                    (adsbygoogle = window.adsbygoogle || []).push({});                } else {                    adxElement.parentNode.removeChild(adxElement);                }            }else{                adxElement.parentNode.removeChild(adxElement);            }        })();    </script></div>\"}]';
  this.positions_weighted['list-content-dynamic'] = false;
  
  this.positions['roadblock010'] = '[]';
  this.positions_weighted['roadblock010'] = false;
  
  this.positions['gallery-content010'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ajaxZoneTemp\\" class=\\"a8a263be\\" data-adsv-name=\\"\\" ctsStyle=\\"${custom_css}\\" style=\\"display: none;\\"></div><script>    (function () {        const insertedElement = document.getElementById(\'ajaxZoneTemp\');        const randSlotStr = \'_\' + Math.round(Math.random() * 9999999);        insertedElement.id += randSlotStr;        window.goAdverticum3.onReady((goa3) => {            const $ = goa3.getjQuery();            let zoneForDevice = \'\';            let dataAdsvName = \'\';            let isSubscribed = false;            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (window._ceDeviceDetect != undefined && typeof window._ceDeviceDetect.getDeviceType() !== \'undefined\') {                switch (window._ceDeviceDetect.getDeviceType()) {                    case \'desktop\':                        zoneForDevice = \'6700246\';                        dataAdsvName = \'${adverticum_name}\';                        break;                    case \'mobile\':                        zoneForDevice = \'7189071\';                        dataAdsvName = \'${adverticum_name_mobile}\';                        break;                    case \'tablet\':                        zoneForDevice = \'${adv_zone_id_for_tablet}\' || \'6700246\';                        dataAdsvName = \'${adverticum_name_tablet}\';                        if (dataAdsvName == \\"\\") {                            dataAdsvName = \'${adverticum_name}\';                        }                        break;                }            }            if (zoneForDevice == \'\' || isSubscribed) {                insertedElement.parentNode.removeChild(insertedElement);            } else {                insertedElement.id = \'ajaxZone\' + zoneForDevice + randSlotStr;                insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);                if (insertedElement.getAttribute(\\"ctsStyle\\") != null) {                    insertedElement.style = insertedElement.getAttribute(\\"ctsStyle\\");                    insertedElement.removeAttribute(\\"ctsStyle\\");                } else {                    insertedElement.removeAttribute(\\"style\\");                }                $(\'#\' + insertedElement.id).goa(zoneForDevice, {                    p: 100, zP: \\"\\", fP: \\"\\", cT: \\"\\"                });            }        });    })();</script>\"}]';
  this.positions_weighted['gallery-content010'] = false;
  
  this.positions['gallery-right010'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ajaxZoneTemp\\" class=\\"a8a263be\\" data-adsv-name=\\"\\" ctsStyle=\\"${custom_css}\\" style=\\"display: none;\\"></div><script>    (function () {        const insertedElement = document.getElementById(\'ajaxZoneTemp\');        const randSlotStr = \'_\' + Math.round(Math.random() * 9999999);        insertedElement.id += randSlotStr;        window.goAdverticum3.onReady((goa3) => {            const $ = goa3.getjQuery();            let zoneForDevice = \'\';            let dataAdsvName = \'\';            let isSubscribed = false;            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (window._ceDeviceDetect != undefined && typeof window._ceDeviceDetect.getDeviceType() !== \'undefined\') {                switch (window._ceDeviceDetect.getDeviceType()) {                    case \'desktop\':                        zoneForDevice = \'6700247\';                        dataAdsvName = \'${adverticum_name}\';                        break;                    case \'mobile\':                        zoneForDevice = \'${adv_zone_id_for_mobile}\';                        dataAdsvName = \'${adverticum_name_mobile}\';                        break;                    case \'tablet\':                        zoneForDevice = \'${adv_zone_id_for_tablet}\' || \'6700247\';                        dataAdsvName = \'${adverticum_name_tablet}\';                        if (dataAdsvName == \\"\\") {                            dataAdsvName = \'${adverticum_name}\';                        }                        break;                }            }            if (zoneForDevice == \'\' || isSubscribed) {                insertedElement.parentNode.removeChild(insertedElement);            } else {                insertedElement.id = \'ajaxZone\' + zoneForDevice + randSlotStr;                insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);                if (insertedElement.getAttribute(\\"ctsStyle\\") != null) {                    insertedElement.style = insertedElement.getAttribute(\\"ctsStyle\\");                    insertedElement.removeAttribute(\\"ctsStyle\\");                } else {                    insertedElement.removeAttribute(\\"style\\");                }                $(\'#\' + insertedElement.id).goa(zoneForDevice, {                    p: 100, zP: \\"\\", fP: \\"\\", cT: \\"\\"                });            }        });    })();</script>\"}]';
  this.positions_weighted['gallery-right010'] = false;
  
  this.positions['list-content-top'] = '[]';
  this.positions_weighted['list-content-top'] = false;
  
  this.positions['list-content-bottom'] = '[]';
  this.positions_weighted['list-content-bottom'] = false;
  
  this.positions['head'] = '[{\"service_name\": \"CMP\", \"weight\": null, \"source\": \"<!-- Quantcast Choice. Consent Manager Tag v2.0 (for TCF 2.0) --><script type=\\"text/javascript\\" async=true>(function() {  var host =  \'www.startlap.hu\' || window.location.hostname;  var element = document.createElement(\'script\');  var firstScript = document.getElementsByTagName(\'script\')[0];  var url = \'https://cmp.quantcast.com\'    .concat(\'/choice/\', \'ZWemmHq85Y1fR\', \'/\', host, \'/choice.js?tag_version=V2\');  var uspTries = 0;  var uspTriesLimit = 3;  element.async = true;  element.type = \'text/javascript\';  element.src = url;  firstScript.parentNode.insertBefore(element, firstScript);  function makeStub() {    var TCF_LOCATOR_NAME = \'__tcfapiLocator\';    var queue = [];    var win = window;    var cmpFrame;    function addFrame() {      var doc = win.document;      var otherCMP = !!(win.frames[TCF_LOCATOR_NAME]);      if (!otherCMP) {        if (doc.body) {          var iframe = doc.createElement(\'iframe\');          iframe.style.cssText = \'display:none\';          iframe.name = TCF_LOCATOR_NAME;          doc.body.appendChild(iframe);        } else {          setTimeout(addFrame, 5);        }      }      return !otherCMP;    }    function tcfAPIHandler() {      var gdprApplies;      var args = arguments;      if (!args.length) {        return queue;      } else if (args[0] === \'setGdprApplies\') {        if (          args.length > 3 &&          args[2] === 2 &&          typeof args[3] === \'boolean\'        ) {          gdprApplies = args[3];          if (typeof args[2] === \'function\') {            args[2](\'set\', true);          }        }      } else if (args[0] === \'ping\') {        var retr = {          gdprApplies: gdprApplies,          cmpLoaded: false,          cmpStatus: \'stub\'        };        if (typeof args[2] === \'function\') {          args[2](retr);        }      } else {        if(args[0] === \'init\' && typeof args[3] === \'object\') {          args[3] = Object.assign(args[3], { tag_version: \'V2\' });        }        queue.push(args);      }    }    function postMessageEventHandler(event) {      var msgIsString = typeof event.data === \'string\';      var json = {};      try {        if (msgIsString) {          json = JSON.parse(event.data);        } else {          json = event.data;        }      } catch (ignore) {}      var payload = json.__tcfapiCall;      if (payload) {        window.__tcfapi(          payload.command,          payload.version,          function(retValue, success) {            var returnMsg = {              __tcfapiReturn: {                returnValue: retValue,                success: success,                callId: payload.callId              }            };            if (msgIsString) {              returnMsg = JSON.stringify(returnMsg);            }            if (event && event.source && event.source.postMessage) {              event.source.postMessage(returnMsg, \'*\');            }          },          payload.parameter        );      }    }    while (win) {      try {        if (win.frames[TCF_LOCATOR_NAME]) {          cmpFrame = win;          break;        }      } catch (ignore) {}      if (win === window.top) {        break;      }      win = win.parent;    }    if (!cmpFrame) {      addFrame();      win.__tcfapi = tcfAPIHandler;      win.addEventListener(\'message\', postMessageEventHandler, false);    }  };  makeStub();  var uspStubFunction = function() {    var arg = arguments;    if (typeof window.__uspapi !== uspStubFunction) {      setTimeout(function() {        if (typeof window.__uspapi !== \'undefined\') {          window.__uspapi.apply(window.__uspapi, arg);        }      }, 500);    }  };  var checkIfUspIsReady = function() {    uspTries++;    if (window.__uspapi === uspStubFunction && uspTries < uspTriesLimit) {      console.warn(\'USP is not accessible\');    } else {      clearInterval(uspInterval);    }  };  if (typeof window.__uspapi === \'undefined\') {    window.__uspapi = uspStubFunction;    var uspInterval = setInterval(checkIfUspIsReady, 6000);  }})();</script><!-- End Quantcast Choice. Consent Manager Tag v2.0 (for TCF 2.0) -->\"}, {\"service_name\": \"Sanoma\", \"weight\": null, \"source\": \"<script src=\\"//stat.p24.hu/mobile_detect/mobile_detect.js\\"></script>\"}, {\"service_name\": \"Gemius Traffic\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">const pp_gemius_use_cmp = true;const pp_gemius_cmp_timeout = Infinity;var pp_gemius_identifier = (\'nXc6QXOBk9xpioM6JQtZB5aFj1gF9mdvhU4f84aCSaj.67\' != \'\') ? \'nXc6QXOBk9xpioM6JQtZB5aFj1gF9mdvhU4f84aCSaj.67\' : \'ogHqH7e848_t7D21Njjpx3amzSU1j07F8rDy6dML7Fv.j7\';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?t=20230202\\" async></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: [] };        if(typeof noADX != \'undefined\' && noADX){            window.adsbygoogle = window.adsbygoogle || [];            window.adsbygoogle.pauseAdRequests = 1;            window.adsbygoogle.push({                enable_page_level_ads: false            });            window.googletag.cmd.push(function() {                window.googletag.destroySlots();                window.googletag.pubads().disableInitialLoad();                window.googletag.pubads().clear();            });        }        window.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, .goa-embedded[id*=\'ajaxZone\']\\");                        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>\"}, {\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" charset=\\"utf-8\\">    (function () {        var isSubscribed = false;        if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {            isSubscribed = true;        }        if (!isSubscribed) {            (function (G, o, O, g, L, e) {                G[g] = G[g] || function () {                    (G[g][\'q\'] = G[g][\'q\'] || []).push(                        arguments)                }, G[g][\'t\'] = 1 * new Date; L = o.createElement(O), e = o.getElementsByTagName(                    O)[0]; L.async = 1; L.src = \'//www.google.com/adsense/search/async-ads.js\';                e.parentNode.insertBefore(L, e)            })(window, document, \'script\', \'_googCsa\');        }    })();</script>\"}]';
  this.positions_weighted['head'] = false;
  
  this.positions['body-end'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"//ad.adverticum.net/g3.js\\"></script>\"}, {\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"tempAdScript\\"><script>        (function () {                try {                    const scriptPlaceholder = document.querySelector(\\"#tempAdScript\\");                    const mySearchStartingCallback = (gname, query) => {                        const slots = window._ce_csa_slots || [];                        for(var i=0; i < slots.length; i++){                              window._ce_csa_slots[i].pageOptions.query = query;                            window._ce_csa_slots[i].pageOptions.resultsPageBaseUrl = window.location.href;                            _googCsa(\'ads\', window._ce_csa_slots[i].pageOptions, window._ce_csa_slots[i].containerOpts);                        }                        document.body.scrollTop = 0;                        document.documentElement.scrollTop = 0;                    };                    window.__gcse || (window.__gcse = {});                    window.__gcse.searchCallbacks = {                        image: {                            rendered: mySearchStartingCallback,                        },                        web: {                            rendered: mySearchStartingCallback,                        }                    };                    scriptPlaceholder.parentNode.removeChild(scriptPlaceholder);                } catch (e) {                    scriptPlaceholder.parentNode.removeChild(scriptPlaceholder);                }            })();    </script></div>\"}, {\"service_name\": \"Gemius Traffic\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">    (function () {        const insertGemiusTrackingCode = () => {            const extra = window.pp_gemius_extraparameters || \'\';            const identifier = window.pp_gemius_identifier != undefined ? window.pp_gemius_identifier.replace(\'USED_\', \'\') : \'\';            if (identifier != \'\') {                pp_gemius_hit(identifier, extra);            }        };        if (typeof document.addEventListener !== \'undefined\') {            window.addEventListener(\\"_ce_gallery_pagination\\", insertGemiusTrackingCode);            window.addEventListener(\\"_ce_gem_pv\\", insertGemiusTrackingCode);        } else {            window.attachEvent(\\"_ce_gallery_pagination\\", insertGemiusTrackingCode);            window.attachEvent(\\"_ce_gem_pv\\", insertGemiusTrackingCode);        }    })();</script>\"}]';
  this.positions_weighted['body-end'] = false;
  
  this.positions['list-content-top'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"search_ads_placeholder\\"><div id=\\"tempAdScript\\"><script>            (function () {                const placeholder = document.getElementById(\'search_ads_placeholder\');                try {                    window._ce_csa_slots = window._ce_csa_slots || [];                    placeholder.id += Math.floor(Math.random() * 1000000);                    const scriptPlaceholder = document.querySelector(\\"#tempAdScript\\");                    const pageOptions = JSON.parse(\'{   \\"pubId\\":\\"partner-pub-8962558862962174\\",   \\"styleId\\":\\"5097634897\\",   \\"adsafe\\":\\"high\\",   \\"channel\\":\\"Startlap-CSE\\",   \\"hl\\":\\"hu\\",   \\"number\\":2,   \\"linkTarget\\":\\"_blank\\",   \\"channelId\\": \\"4971405901\\",   \\"resultsPageQueryParam\\": \\"q\\"}\');                    const slotData = {                        \'containerOpts\': {                            \'container\': placeholder.id                        },                        \'pageOptions\': pageOptions                    };                    window._ce_csa_slots.push(slotData);                    scriptPlaceholder.parentNode.removeChild(scriptPlaceholder);                } catch (e) {                    placeholder.parentNode.removeChild(placeholder);                }            })();        </script></div></div>\"}]';
  this.positions_weighted['list-content-top'] = false;
  
  this.positions['list-content-bottom'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" ctsStyle=\\"${custom_css}\\" style=\\"display: none;\\"><script type=\\"text/javascript\\">        (function () {            var slotForDevice = \\"1738112063\\";            var gadxErr = false;            var dimensionForDevice = {                width: parseInt(728) || 0,                height: parseInt(90) || 0            };            var channel = \\"4971405901\\";            var isSubscribed = false;            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (!isSubscribed && (typeof noADX == \'undefined\' || noADX === false) && slotForDevice != \'\') {                var advParts = {};                var gadxDiv = document.getElementById(\'ctsGadxTemp\');                gadxDiv.style.width = dimensionForDevice.width + \'px\';                advParts.initScript = document.createElement(\'script\');                advParts.initScript.src = \'//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\';                advParts.initScript.async = \'true\';                advParts.adText = document.createElement(\'div\');                advParts.adText.style = \\"text-align: right; font-size: 8px; color: #C6C6C6; margin: 0 auto;\\";                advParts.adText.innerHTML += \\"HIRDET&#xC9;S\\";                advParts.body = document.createElement(\'ins\');                advParts.body.className = \'adsbygoogle\';                advParts.body.style.display = \'table\';                advParts.body.style.margin = \'0 auto\';                advParts.body.style.width = dimensionForDevice.width + \'px\';                advParts.body.style.height = dimensionForDevice.height + \'px\';                advParts.body.setAttribute(\'data-ad-client\', \'ca-pub-8962558862962174\');                advParts.body.setAttribute(\'data-ad-slot\', slotForDevice);                if(channel != undefined && channel != \'\'){                    advParts.body.setAttribute(\'data-ad-channel\', channel)                }                advParts.body.setAttribute(\'data-max-num-ads\', parseInt(1) || 1);                gadxDiv.appendChild(advParts.adText);                gadxDiv.appendChild(advParts.initScript);                gadxDiv.appendChild(advParts.body);                if (gadxDiv.getAttribute(\\"ctsStyle\\") != null) {                    gadxDiv.style = gadxDiv.getAttribute(\\"ctsStyle\\");                    gadxDiv.removeAttribute(\\"ctsStyle\\");                } else {                    gadxDiv.removeAttribute(\\"style\\");                }                (adsbygoogle = window.adsbygoogle || []).push({});                gadxDiv.removeAttribute(\'id\');            } else {                var adxElement = document.getElementById(\'ctsGadxTemp\');                adxElement.parentNode.removeChild(adxElement);            }        })();    </script></div>\"}]';
  this.positions_weighted['list-content-bottom'] = false;
  
  this.positions['list-content-sidebar'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"search_ads_placeholder\\"><div id=\\"tempAdScript\\"><script>            (function () {                const placeholder = document.getElementById(\'search_ads_placeholder\');                try {                    window._ce_csa_slots = window._ce_csa_slots || [];                    placeholder.id += Math.floor(Math.random() * 1000000);                    const scriptPlaceholder = document.querySelector(\\"#tempAdScript\\");                    const pageOptions = JSON.parse(\'{   \\"pubId\\":\\"partner-pub-8962558862962174\\",   \\"styleId\\":\\"5097634897\\",   \\"adsafe\\":\\"high\\",   \\"channel\\":\\"Startlap-CSE\\",   \\"hl\\":\\"hu\\",   \\"number\\":4,   \\"linkTarget\\":\\"_blank\\",   \\"channelId\\": \\"4971405901\\",   \\"resultsPageQueryParam\\": \\"q\\"}\');                    const slotData = {                        \'containerOpts\': {                            \'container\': placeholder.id                        },                        \'pageOptions\': pageOptions                    };                    window._ce_csa_slots.push(slotData);                    scriptPlaceholder.parentNode.removeChild(scriptPlaceholder);                } catch (e) {                    placeholder.parentNode.removeChild(placeholder);                }            })();        </script></div></div>\"}]';
  this.positions_weighted['list-content-sidebar'] = false;
  
  this.positions['gallery-content020'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ajaxZoneTemp\\" class=\\"a8a263be\\" data-adsv-name=\\"\\" ctsStyle=\\"${custom_css}\\" style=\\"display: none;\\"></div><script>    (function () {        const insertedElement = document.getElementById(\'ajaxZoneTemp\');        const randSlotStr = \'_\' + Math.round(Math.random() * 9999999);        insertedElement.id += randSlotStr;        window.goAdverticum3.onReady((goa3) => {            const $ = goa3.getjQuery();            let zoneForDevice = \'\';            let dataAdsvName = \'\';            let isSubscribed = false;            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (window._ceDeviceDetect != undefined && typeof window._ceDeviceDetect.getDeviceType() !== \'undefined\') {                switch (window._ceDeviceDetect.getDeviceType()) {                    case \'desktop\':                        zoneForDevice = \'7243610\';                        dataAdsvName = \'${adverticum_name}\';                        break;                    case \'mobile\':                        zoneForDevice = \'7243612\';                        dataAdsvName = \'${adverticum_name_mobile}\';                        break;                    case \'tablet\':                        zoneForDevice = \'${adv_zone_id_for_tablet}\' || \'7243610\';                        dataAdsvName = \'${adverticum_name_tablet}\';                        if (dataAdsvName == \\"\\") {                            dataAdsvName = \'${adverticum_name}\';                        }                        break;                }            }            if (zoneForDevice == \'\' || isSubscribed) {                insertedElement.parentNode.removeChild(insertedElement);            } else {                insertedElement.id = \'ajaxZone\' + zoneForDevice + randSlotStr;                insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);                if (insertedElement.getAttribute(\\"ctsStyle\\") != null) {                    insertedElement.style = insertedElement.getAttribute(\\"ctsStyle\\");                    insertedElement.removeAttribute(\\"ctsStyle\\");                } else {                    insertedElement.removeAttribute(\\"style\\");                }                $(\'#\' + insertedElement.id).goa(zoneForDevice, {                    p: 100, zP: \\"\\", fP: \\"\\", cT: \\"\\"                });            }        });    })();</script>\"}]';
  this.positions_weighted['gallery-content020'] = false;
  
  this.positions['gallery-content030'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ajaxZoneTemp\\" class=\\"a8a263be\\" data-adsv-name=\\"\\" ctsStyle=\\"${custom_css}\\" style=\\"display: none;\\"></div><script>    (function () {        const insertedElement = document.getElementById(\'ajaxZoneTemp\');        const randSlotStr = \'_\' + Math.round(Math.random() * 9999999);        insertedElement.id += randSlotStr;        window.goAdverticum3.onReady((goa3) => {            const $ = goa3.getjQuery();            let zoneForDevice = \'\';            let dataAdsvName = \'\';            let isSubscribed = false;            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (window._ceDeviceDetect != undefined && typeof window._ceDeviceDetect.getDeviceType() !== \'undefined\') {                switch (window._ceDeviceDetect.getDeviceType()) {                    case \'desktop\':                        zoneForDevice = \'7243611\';                        dataAdsvName = \'${adverticum_name}\';                        break;                    case \'mobile\':                        zoneForDevice = \'7243613\';                        dataAdsvName = \'${adverticum_name_mobile}\';                        break;                    case \'tablet\':                        zoneForDevice = \'${adv_zone_id_for_tablet}\' || \'7243611\';                        dataAdsvName = \'${adverticum_name_tablet}\';                        if (dataAdsvName == \\"\\") {                            dataAdsvName = \'${adverticum_name}\';                        }                        break;                }            }            if (zoneForDevice == \'\' || isSubscribed) {                insertedElement.parentNode.removeChild(insertedElement);            } else {                insertedElement.id = \'ajaxZone\' + zoneForDevice + randSlotStr;                insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);                if (insertedElement.getAttribute(\\"ctsStyle\\") != null) {                    insertedElement.style = insertedElement.getAttribute(\\"ctsStyle\\");                    insertedElement.removeAttribute(\\"ctsStyle\\");                } else {                    insertedElement.removeAttribute(\\"style\\");                }                $(\'#\' + insertedElement.id).goa(zoneForDevice, {                    p: 100, zP: \\"\\", fP: \\"\\", cT: \\"\\"                });            }        });    })();</script>\"}]';
  this.positions_weighted['gallery-content030'] = false;
  
  this.positions['gallery-content040'] = '[]';
  this.positions_weighted['gallery-content040'] = false;
  
  this.positions['left-bottom'] = '[]';
  this.positions_weighted['left-bottom'] = false;
  
  this.positions['content-article-recommender'] = '[]';
  this.positions_weighted['content-article-recommender'] = 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.renderAsync = function (slug, elSelector, clearNodeContent, context) {
  var receiverNode = (elSelector != undefined && elSelector != null) ? document.querySelector(elSelector) : document.querySelector("[data-cts-position='" + slug + "']");
  if (receiverNode != undefined && clearNodeContent != undefined && clearNodeContent != null && clearNodeContent) {
    receiverNode.innerHTML = '';
  }

  if (receiverNode != undefined) {
    receiverNode.setAttribute("data-cts-tag", slug);
    try {
      window.dispatchEvent(new CustomEvent("_ce_cts_render_async", { "detail": { "pos": slug, "tagging": new Tagging() } }));
    } catch (err) {
      console.log(err);
    }
  }

  
  var htmlDoc = document.implementation.createHTMLDocument();
  htmlDoc.body.innerHTML = (this.get_source(slug, context)).replace(/(src=)("|')(\/\/)/g, '$1$2' + document.location.protocol + '//');
  [].map.call(htmlDoc.body.childNodes, function (node) {
    var newNode = node.cloneNode(true);
    var prepareNode = function (element) {
      var scriptNode = '';
      if (element.nodeName.toLowerCase() == 'script') {
        scriptNode = document.createElement('script');
        scriptNode.type = 'text/javascript';
        if (element.hasAttribute('src') === false) {
          scriptNode.textContent = element.textContent;
        } else {
          scriptNode.src = element.src;
        }
      }
      return scriptNode;
    };
    var preparedNodeData = prepareNode(node);
    if (preparedNodeData != '') newNode = preparedNodeData;

    for (var i = 0; i < node.childNodes.length; i++) {
      try {
        var childNode = newNode.childNodes[i];
        if (childNode.nodeName.toLowerCase() == 'script') {
          childNode.parentNode.removeChild(childNode);
        }
        var preparedScriptData = prepareNode(childNode);
        if (preparedScriptData != '') newNode.appendChild(preparedScriptData);
      } catch (e) { }
    }
    if (receiverNode != undefined) receiverNode.appendChild(newNode);
  });
};

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;
}



