Tagging = function(context) {
  this.site = '24hu-rangado';
  this.zone = 'nyitooldal';
  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\": \"CMP\", \"weight\": null, \"source\": \"<!-- Quantcast Choice. Consent Manager Tag v2.0 (for TCF 2.0) --><script type=\\"text/javascript\\" async=true>(function() {  var host = window.location.hostname;  var element = document.createElement(\'script\');  var firstScript = document.getElementsByTagName(\'script\')[0];  var url = \'https://quantcast.mgr.consensu.org\'.concat(\'/choice/\', \'ZWemmHq85Y1fR\', \'/\', host, \'/choice.js\');  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 {        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);            }            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\": \"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\": \"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\": \"Sanoma/Hir24\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"//stat.p24.hu/CTS/measuring-codes/24.main.min.js?t=20190326\\"></script>\"}, {\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<script async src=\\"https://securepubads.g.doubleclick.net/tag/js/gpt.js\\"></script><script>      window.googletag = window.googletag || {cmd: []};</script>\"}, {\"service_name\": \"Sanoma\", \"weight\": null, \"source\": \"<script src=\\"//stat.p24.hu/CTS/helper-scripts/subscriptionDetect/subscriptionDetect.min.js\\"></script><script>    var _ceSubscriptionDetect = new subscriptionDetect(\'${subscription_config}\');</script>\"}, {\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<script>(function () {    var userdbId = \\"${adveritcum_customtarget_userdbId}\\" || 74,        confObj = {\'hasRightCol\':\'jobbhasab\',\'campaignParam\':\'campaignParam\',\'darkMode\':\'darkMode\'} || {},        replaceAccents = function(str) {            var rExps=[                {re:/\\u00f6/g, ch:\'o\'},                {re:/\\u00fc/g, ch:\'u\'},                {re:/\\u00f3/g, ch:\'o\'},                {re:/\\u0151/g, ch:\'o\'},                {re:/\\u00fa/g, ch:\'u\'},                {re:/\\u00e9/g, ch:\'e\'},                {re:/\\u00e1/g, ch:\'a\'},                {re:/\\u0171/g, ch:\'u\'},                {re:/\\u00ed/g, ch:\'i\'}            ];            for(var i=0, len=rExps.length; i<len; i++)                str=str.replace(rExps[i].re, rExps[i].ch);            return str;        };    if (typeof atob != \'undefined\' && typeof _ceCTSData != \'undefined\' && confObj != {}) {        var origMeta = \'\',            newContent = \'\',            userDbStr = \'userdb_id\',            adverticumMeta;        for (var key in confObj) {            if (confObj.hasOwnProperty(key) && _ceCTSData.hasOwnProperty(key)) {                newContent += confObj[key] + \'=\' + _ceCTSData[key] + \'&\';            }        }        newContent = replaceAccents(newContent);        if (newContent != \\"\\") {            if (document.getElementsByName(\'customtarget\').length != 0) {                adverticumMeta = document.getElementsByName(\'customtarget\')[0];                origMeta = atob(adverticumMeta.content);            } else {                adverticumMeta = document.createElement(\'meta\');                adverticumMeta.name = \'customtarget\';                document.getElementsByTagName(\'head\')[0].appendChild(adverticumMeta);            }            if (origMeta != \\"\\") {                if (origMeta.indexOf(userDbStr + \\"=\\" + userdbId) != -1) {                    var newMeta = userDbStr + \\"=\\" + userdbId + \'&\' + newContent.replace(/&$/g, \'\');                    origMeta = origMeta.replace(userDbStr + \\"=\\" + userdbId, newMeta);                    adverticumMeta.content = btoa(origMeta);                } else {                    adverticumMeta.content = btoa(userDbStr + \'=\' + userdbId + \'&\' + newContent.replace(/&$/g, \'\'));                }            } else {                adverticumMeta.content = btoa(userDbStr + \'=\' + userdbId + \'&\' + newContent.replace(/&$/g, \'\'));            }        }    }})();</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>\"}]';
  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-59PKLZS\\"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-59PKLZS\');</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\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"//ad.adverticum.net/g3.js\\"></script>\"}, {\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<script>    (function () {        function callGoogleTag(doNotPersonalise) {            var nonPersonalisedAds = typeof doNotPersonalise === \'boolean\' ? Number(doNotPersonalise) : 1;            var metaKeyArr = ((document.querySelector(\'meta[name=keywords]\') || {}).content || \'\').replace(/,[ ]+/ig, \',\').split(\',\');            var adPreview = ((document.location.search.match(/adPreview=[^&]+/g) || [])[0] || \'\').split(\'=\').pop();            var defaultContainerName = \'ce-gpt-slot\';            var slotsToDisplay = document.querySelectorAll(\'div[id*=\' + defaultContainerName + \']\');            var customTargetContent = document.querySelectorAll(\\"[name=\'customtarget\']\\");            var pageUrl = \'\';            var pagePath = document.location.pathname.slice(0, 40);            var audiencesArr = [];            if (customTargetContent.length > 0) {                (atob(customTargetContent[0].content)).split(\'&\').forEach(function (item) {                    if (item.indexOf(\'audiences\') !== -1) {                        audiencesArr = item.replace(\'audiences=\', \'\').slice(1, -1).split(\',\');                    }                });            }            var pathArr = (document.location.pathname.match(/([^\\/]+)/gm) || []).reverse();            for (var i = 0; i < pathArr.length; i++) {                if (pathArr[i].match(/^[0-9]+$/g) === null) {                    pageUrl = pathArr[i].slice(0, 40);                    break;                }            }            if (window.googletag && window.googletag.cmd) {                googletag.cmd.push(function () {                    googletag.pubads().setRequestNonPersonalizedAds(nonPersonalisedAds);                    googletag.pubads().collapseEmptyDivs();                    googletag.pubads().setTargeting(\'pageUrl\', pageUrl);                    googletag.pubads().setTargeting(\'pagePath\', pagePath);                    googletag.pubads().setTargeting(\'metaKeywords\', metaKeyArr);                    googletag.pubads().setTargeting(\'userData\', audiencesArr);                    googletag.pubads().setTargeting(\'adPreview\', adPreview);                    googletag.enableServices();                    for (var i = 0; i < slotsToDisplay.length; i++) {                        googletag.display(slotsToDisplay[i].id);                    }                });            }        }        if (typeof window[\'__tcfapi\'] === \'function\') {            window.__tcfapi(\'addEventListener\', 2, function (tcData, success) {                if (success && (tcData.eventStatus === \'tcloaded\' || tcData.eventStatus === \'useractioncomplete\')) {                    callGoogleTag(false);                    window.__tcfapi(\'removeEventListener\', 2, function (success) { }, tcData.listenerId);                }            });        } else {            callGoogleTag(true);        }    })();</script>\"}, {\"service_name\": \"JW player\", \"weight\": null, \"source\": \"<script>    (function () {        var isSubscribed = false;        if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {            isSubscribed = true;        }        if (isSubscribed && CentralJwPlayer != undefined && CentralJwPlayer.enableAdFree != undefined) {            CentralJwPlayer.enableAdFree();        }    })();</script>\"}, {\"service_name\": \"A42A6Cblck\", \"weight\": null, \"source\": \"<script>    (function () {        var evtName = \\"_ceAblfinish\\";        var prepareData = function () {            var cssName = \\"24hu\\";            var replaceMe = {                from: \\"##hostName##\\",                to: document.location.hostname.replace(/\\\\./g, \'\')            };            var insertElements = {                link: [{                    href: (cssName == undefined || cssName == \'\') ? \\"//adfree-stat.p3g.hu/layer/css/out/##hostName##.css\\" : \\"//adfree-stat.p3g.hu/layer/css/out/\\" + cssName + \\".css\\",                    rel: \\"stylesheet\\",                    type: \\"text/css\\"                }],                script: [{                    src: \\"//adfree-stat.p3g.hu/layer/layer.min.js\\",                    type: \\"text/javascript\\",                    onload: function () {                        if (typeof a2blckLayer != \\"undefined\\" && a2blckLayer.show != undefined) {                            a2blckLayer.show();                            var dataLayer = window.dataLayer || [];                            dataLayer.push({ \'event\': \'layer\', \'layerName\': \'prohibitad\' });                        }                    }                }]            };            var eltype = Object.keys(insertElements);            var isSubscribed = (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) ? true : false;            var subscribedDataExists = (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData().dataExists) ? true : false;            var getA42A6CblckStatus = function () {                var blckEd = 0;                if (typeof window.A42A6Cblck != \\"undefined\\" && window.A42A6Cblck.status != undefined) {                    blckEd = window.A42A6Cblck.status;                } else {                    try {                        var a2blckData = JSON.parse(localStorage.getItem(\\"A42A6Cblck\\"));                        if (a2blckData.b != undefined) {                            blckEd = a2blckData.b;                        }                    } catch (e) {                    }                }                return blckEd;            };            if (getA42A6CblckStatus() == 1 && subscribedDataExists && !isSubscribed && typeof _ceCTSData != \\"undefined\\" && _ceCTSData.a2blckLayer != undefined) {                for (var i = 0; i < eltype.length; i++) {                    for (var j = 0; j < Object.keys(insertElements[eltype[i]]).length; j++) {                        var needElements = Object.keys(insertElements[eltype[i]])[j];                        var newEl = document.createElement(eltype[i]);                        for (var k = 0; k < needElements.length; k++) {                            var needElementAttr = Object.keys(insertElements[eltype[i]][needElements[k]]);                            for (var l = 0; l < Object.keys(needElementAttr).length; l++) {                                var needElementAttrVal = insertElements[eltype[i]][needElements[k]][needElementAttr[l]];                                if (needElementAttrVal != undefined && typeof needElementAttrVal == \'string\') {                                    needElementAttrVal = needElementAttrVal.replace(replaceMe.from, replaceMe.to);                                }                                newEl[needElementAttr[l]] = needElementAttrVal;                            }                        }                        document.head.appendChild(newEl);                    }                }            }        };        var init = function () {            var loadLayer = false;            if (typeof _ceCTSData != undefined && _ceCTSData.a2blckLayer != undefined) {                loadLayer = true;                if (_ceCTSData.a2blckLayer.displayed) {                    loadLayer = false;                }            }            if (loadLayer) {                prepareData();            }        };        if (typeof window.A42A6Cblck != \\"undefined\\") {            init();        } else {            document.addEventListener(evtName, init);            window.addEventListener(\'load\', init);        }    })();</script>\"}]';
  this.positions_weighted['body-end'] = false;
  
  this.positions['body-end-adv'] = '[{\"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 = \'5240641\';                        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}\';                        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['body-end-adv'] = false;
  
  this.positions['top'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": 100, \"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 = \'4662976\';                        dataAdsvName = \'top\';                        break;                    case \'mobile\':                        zoneForDevice = \'4688110\';                        dataAdsvName = \'top\';                        break;                    case \'tablet\':                        zoneForDevice = \'${adv_zone_id_for_tablet}\';                        dataAdsvName = \'${adverticum_name_tablet}\';                        if (dataAdsvName == \\"\\") {                            dataAdsvName = \'top\';                        }                        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>\"}, {\"service_name\": \"Google Adverts\", \"weight\": 0, \"source\": \"<div id=\\"ce-gpt-emptyslot\\" ctsStyle=\\"display:table;margin:0 auto;text-align:center;\\" style=\\"display: none;\\"><script>        (function () {            var slotData = { id: \'\', name: \'\', size: \'\' },                gptAccountId = \'52203547\' || 6355419,                thisGptSlot = document.getElementById(\'ce-gpt-emptyslot\'),                isSubscribed = false;            thisGptSlot.id = thisGptSlot.id.replace(\'-emptyslot\', \'-slot\' + (new Date()).getTime());            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (                (typeof noADX == \'undefined\' || noADX === false) && typeof _ceDeviceDetect != \'unedfined\' &&                typeof _ceDeviceDetect.getDeviceType == \'function\'            ) {                switch (_ceDeviceDetect.getDeviceType()) {                    case \'desktop\':                        slotData.name = \'24.hu-top-default\';                        slotData.size = \'[[728, 90], [970, 90], [970, 250]]\';                        break;                    case \'mobile\':                        slotData.name = \'${google_gpt_mobile_slot_name}\';                        slotData.size = \'${google_gpt_mobile_slot_size}\';                        break;                    case \'tablet\':                        if (\'${google_gpt_tablet_slot_name}\' != \'\' && \'${google_gpt_tablet_slot_size}\' != \'\') {                            slotData.name = \'${google_gpt_tablet_slot_name}\';                            slotData.size = \'${google_gpt_tablet_slot_size}\';                        } else {                            slotData.name = \'24.hu-top-default\';                            slotData.size = \'[[728, 90], [970, 90], [970, 250]]\';                        }                        break;                }                if (!isSubscribed && window.googletag && window.googletag.cmd && slotData.name != \'\' && slotData.size != \'\') {                    if (thisGptSlot.getAttribute(\\"ctsStyle\\") != null) {                        thisGptSlot.style = thisGptSlot.getAttribute(\\"ctsStyle\\");                        thisGptSlot.removeAttribute(\\"ctsStyle\\");                    } else {                        thisGptSlot.removeAttribute(\\"style\\");                    }                    googletag.cmd.push(function () {                        googletag.defineSlot(\'/\' + gptAccountId + \'/\' + slotData.name, JSON.parse(slotData.size), thisGptSlot.id).addService(googletag.pubads());                    });                } else {                    thisGptSlot.parentNode.removeChild(thisGptSlot);                }            }        })();    </script></div>\"}]';
  this.positions_weighted['top'] = true;
  
  this.positions['right010'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": 100, \"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 = \'4662979\';                        dataAdsvName = \'box1\';                        break;                    case \'mobile\':                        zoneForDevice = \'${adv_zone_id_for_mobile}\';                        dataAdsvName = \'${adverticum_name_mobile}\';                        break;                    case \'tablet\':                        zoneForDevice = \'${adv_zone_id_for_tablet}\';                        dataAdsvName = \'${adverticum_name_tablet}\';                        if (dataAdsvName == \\"\\") {                            dataAdsvName = \'box1\';                        }                        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>\"}, {\"service_name\": \"Google Adverts\", \"weight\": 0, \"source\": \"<div id=\\"ce-gpt-emptyslot\\" ctsStyle=\\"display:table;margin:0 auto;text-align:center;\\" style=\\"display: none;\\"><script>        (function () {            var slotData = { id: \'\', name: \'\', size: \'\' },                gptAccountId = \'52203547\' || 6355419,                thisGptSlot = document.getElementById(\'ce-gpt-emptyslot\'),                isSubscribed = false;            thisGptSlot.id = thisGptSlot.id.replace(\'-emptyslot\', \'-slot\' + (new Date()).getTime());            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (                (typeof noADX == \'undefined\' || noADX === false) && typeof _ceDeviceDetect != \'unedfined\' &&                typeof _ceDeviceDetect.getDeviceType == \'function\'            ) {                switch (_ceDeviceDetect.getDeviceType()) {                    case \'desktop\':                        slotData.name = \'24.hu-box1-default\';                        slotData.size = \'[[300, 250], [300, 600]]\';                        break;                    case \'mobile\':                        slotData.name = \'${google_gpt_mobile_slot_name}\';                        slotData.size = \'${google_gpt_mobile_slot_size}\';                        break;                    case \'tablet\':                        if (\'${google_gpt_tablet_slot_name}\' != \'\' && \'${google_gpt_tablet_slot_size}\' != \'\') {                            slotData.name = \'${google_gpt_tablet_slot_name}\';                            slotData.size = \'${google_gpt_tablet_slot_size}\';                        } else {                            slotData.name = \'24.hu-box1-default\';                            slotData.size = \'[[300, 250], [300, 600]]\';                        }                        break;                }                if (!isSubscribed && window.googletag && window.googletag.cmd && slotData.name != \'\' && slotData.size != \'\') {                    if (thisGptSlot.getAttribute(\\"ctsStyle\\") != null) {                        thisGptSlot.style = thisGptSlot.getAttribute(\\"ctsStyle\\");                        thisGptSlot.removeAttribute(\\"ctsStyle\\");                    } else {                        thisGptSlot.removeAttribute(\\"style\\");                    }                    googletag.cmd.push(function () {                        googletag.defineSlot(\'/\' + gptAccountId + \'/\' + slotData.name, JSON.parse(slotData.size), thisGptSlot.id).addService(googletag.pubads());                    });                } else {                    thisGptSlot.parentNode.removeChild(thisGptSlot);                }            }        })();    </script></div>\"}]';
  this.positions_weighted['right010'] = true;
  
  this.positions['right020'] = '[{\"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 = \'4859296\';                        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}\';                        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['right020'] = false;
  
  this.positions['right030'] = '[{\"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 = \'4662980\';                        dataAdsvName = \'box2\';                        break;                    case \'mobile\':                        zoneForDevice = \'${adv_zone_id_for_mobile}\';                        dataAdsvName = \'${adverticum_name_mobile}\';                        break;                    case \'tablet\':                        zoneForDevice = \'${adv_zone_id_for_tablet}\';                        dataAdsvName = \'${adverticum_name_tablet}\';                        if (dataAdsvName == \\"\\") {                            dataAdsvName = \'box2\';                        }                        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['right030'] = false;
  
  this.positions['right040'] = '[{\"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 = \'5034997\';                        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}\';                        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['right040'] = false;
  
  this.positions['content010'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": 100, \"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 = \'4662977\';                        dataAdsvName = \'roadblock\';                        break;                    case \'mobile\':                        zoneForDevice = \'4688116\';                        dataAdsvName = \'mobile_waterfall2\';                        break;                    case \'tablet\':                        zoneForDevice = \'${adv_zone_id_for_tablet}\';                        dataAdsvName = \'${adverticum_name_tablet}\';                        if (dataAdsvName == \\"\\") {                            dataAdsvName = \'roadblock\';                        }                        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>\"}, {\"service_name\": \"Google Adverts\", \"weight\": 0, \"source\": \"<div id=\\"ce-gpt-emptyslot\\" ctsStyle=\\"display:table;margin:0 auto;text-align:center;\\" style=\\"display: none;\\"><script>        (function () {            var slotData = { id: \'\', name: \'\', size: \'\' },                gptAccountId = \'52203547\' || 6355419,                thisGptSlot = document.getElementById(\'ce-gpt-emptyslot\'),                isSubscribed = false;            thisGptSlot.id = thisGptSlot.id.replace(\'-emptyslot\', \'-slot\' + (new Date()).getTime());            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (                (typeof noADX == \'undefined\' || noADX === false) && typeof _ceDeviceDetect != \'unedfined\' &&                typeof _ceDeviceDetect.getDeviceType == \'function\'            ) {                switch (_ceDeviceDetect.getDeviceType()) {                    case \'desktop\':                        slotData.name = \'24.hu-roadblock-default\';                        slotData.size = \'[[300, 250], [640, 360]]\';                        break;                    case \'mobile\':                        slotData.name = \'24.hu-mobil2-default\';                        slotData.size = \'[[300, 250], [336, 280]]\';                        break;                    case \'tablet\':                        if (\'${google_gpt_tablet_slot_name}\' != \'\' && \'${google_gpt_tablet_slot_size}\' != \'\') {                            slotData.name = \'${google_gpt_tablet_slot_name}\';                            slotData.size = \'${google_gpt_tablet_slot_size}\';                        } else {                            slotData.name = \'24.hu-roadblock-default\';                            slotData.size = \'[[300, 250], [640, 360]]\';                        }                        break;                }                if (!isSubscribed && window.googletag && window.googletag.cmd && slotData.name != \'\' && slotData.size != \'\') {                    if (thisGptSlot.getAttribute(\\"ctsStyle\\") != null) {                        thisGptSlot.style = thisGptSlot.getAttribute(\\"ctsStyle\\");                        thisGptSlot.removeAttribute(\\"ctsStyle\\");                    } else {                        thisGptSlot.removeAttribute(\\"style\\");                    }                    googletag.cmd.push(function () {                        googletag.defineSlot(\'/\' + gptAccountId + \'/\' + slotData.name, JSON.parse(slotData.size), thisGptSlot.id).addService(googletag.pubads());                    });                } else {                    thisGptSlot.parentNode.removeChild(thisGptSlot);                }            }        })();    </script></div>\"}]';
  this.positions_weighted['content010'] = true;
  
  this.positions['content020'] = '[]';
  this.positions_weighted['content020'] = false;
  
  this.positions['content030'] = '[{\"service_name\": \"Rubicon\", \"weight\": null, \"source\": \"<div id=\\"RubiconAdTemp\\" class=\\"rubAd\\" ctsStyle=\\"display:table;margin:0 auto;width: 100%;text-align: center;\\"    style=\\"display: none;\\"><script language=\\"JavaScript\\" type=\\"text/javascript\\">        (function () {            var rubiconZoneSize = \'\';            var rubiconSite = \'146658\';            var rubiconAdType = \'${rubicon_ad_type}\';            var isSubscribed = false;            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (rubiconAdType == \'\') {                rubiconAdType = \'js\';            }            if (typeof _ceDeviceDetect.getDeviceType() !== \'undefined\') {                switch (_ceDeviceDetect.getDeviceType()) {                    case \'desktop\':                        rubiconZoneSize = \'693030-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 = \'693030-198\';                        }                        break;                }            }            if (!isSubscribed && (typeof noRUBICON == \'undefined\' || noRUBICON === false) && rubiconZoneSize.split(\'-\')[0] != \'\') {                rp_account = \'13818\';                rp_site = rubiconSite;                rp_zonesize = rubiconZoneSize;                rp_adtype = rubiconAdType;                var rubEl = document.getElementById(\\"RubiconAdTemp\\");                if (rubEl.getAttribute(\\"ctsStyle\\") != null) {                    rubEl.style = rubEl.getAttribute(\\"ctsStyle\\");                    rubEl.removeAttribute(\\"ctsStyle\\");                } else {                    rubEl.removeAttribute(\\"style\\");                }                rubEl.removeAttribute(\'id\');            } else {                document.getElementById(\\"RubiconAdTemp\\").remove();            }        })();    </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=\\"${google_adx_style}\\" 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(300),\t\t\t\theight: parseInt(250)\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 = \'1432343661\';\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(${google_max_num_ads}));\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>\"}, {\"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 = \'5235768\';                        dataAdsvName = \'${adverticum_name}\';                        break;                    case \'mobile\':                        zoneForDevice = \'5235771\';                        dataAdsvName = \'${adverticum_name_mobile}\';                        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['content030'] = false;
  
  this.positions['content040'] = '[{\"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: \'9290027669\',                mobile: \'2604785803\',                tablet: \'2604785803\'            },                slotForDeviceDark = {                    desktop: \'3666937215\',                    mobile: \'4788447197\',                    tablet: \'4788447197\'                },                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 _ceCTSData != \'undefined\' && _ceCTSData.darkMode != undefined && _ceCTSData.darkMode) {                slotForDevice = slotForDeviceDark;            }            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>\"}, {\"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>        (function () {            var slotForDevice = \'\';            var gadxErr = false;            var dimensionForDevice = {                width: parseInt(300),                mobileWidth: parseInt(${google_ad_width_mobile}),                minWidth: parseInt(${google_ad_min_width}),                height: parseInt(250),                mobileHeight: parseInt(${google_ad_height_mobile})            };            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\':                        slotForDevice = \'[6492683559,1563790500]\';                        break;                    case \'mobile\':                        slotForDevice = \'${google_adx_slot_default_for_mobile}\';                        dimensionForDevice.width = 300;                        dimensionForDevice.minWidth = 300;                        dimensionForDevice.height = 250;                        if (!isNaN(dimensionForDevice.mobileWidth)) {                            dimensionForDevice.width = dimensionForDevice.mobileWidth;                        }                        if (!isNaN(dimensionForDevice.mobileHeight)) {                            dimensionForDevice.height = dimensionForDevice.mobileHeight;                        }                        break;                    case \'tablet\':                        if (\'${google_adx_slot_default_for_tablet}\' != \'\') {                            slotForDevice = \'${google_adx_slot_default_for_tablet}\';                        } else {                            slotForDevice = \'[6492683559,1563790500]\';                        }                        break;                }            }            if (!isSubscribed && (typeof noADX == \'undefined\' || noADX === false) && slotForDevice != \'\') {                var gadxDiv = document.getElementById(\'ctsGadxTemp\'),                    adNum = 1;                try {                    slotForDevice = JSON.parse(slotForDevice);                    if (slotForDevice.length > 0) {                        adNum = slotForDevice.length;                    }                } catch (e) { }                    if (gadxDiv.getAttribute(\\"ctsStyle\\") != null) {                        gadxDiv.style = gadxDiv.getAttribute(\\"ctsStyle\\");                        gadxDiv.removeAttribute(\\"ctsStyle\\");                    } else {                        gadxDiv.removeAttribute(\\"style\\");                    }                var advParts = {};                advParts.initScript = document.createElement(\'script\');                advParts.initScript.src = \'//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\';                advParts.initScript.async = \'true\';                gadxDiv.appendChild(advParts.initScript);                for (var i = 0; i < adNum; i++) {                    var slotNum = slotForDevice[i] != undefined ? slotForDevice[i] : slotForDevice;                    advParts.body = document.createElement(\'ins\');                    advParts.body.className = \'adsbygoogle\';                    advParts.body.style.display = \'inline-block\';                    advParts.body.style.height = dimensionForDevice.height + \'px\';                    if (adNum > 1) advParts.body.style.cssFloat = i == 0 ? \'left\' : \'right\';                    if (!isNaN(dimensionForDevice.minWidth) && !isNaN(dimensionForDevice.width)) {                        advParts.body.style.maxWidth = dimensionForDevice.width + \'px\';                        advParts.body.style.minWidth = dimensionForDevice.minWidth + \'px\';                        advParts.body.style.width = \'100%\';                    } else {                        advParts.body.style.width = dimensionForDevice.width + \'px\';                    }                    advParts.body.setAttribute(\'data-ad-client\', \'ca-pub-8962558862962174\');                    advParts.body.setAttribute(\'data-ad-slot\', slotNum);                    advParts.body.setAttribute(\'data-max-num-ads\', parseInt(${google_max_num_ads}));                    if (typeof \'${google_ad_page_url}\' !== \'undefined\' && \'${google_ad_page_url}\' != \'\') {                        advParts.body.setAttribute(\'data-page-url\', \'${google_ad_page_url}\');                    }                    gadxDiv.appendChild(advParts.body);                    (adsbygoogle = window.adsbygoogle || []).push({});                }                gadxDiv.removeAttribute(\'id\');            } else {                var adxElement = document.getElementById(\'ctsGadxTemp\');                adxElement.parentNode.removeChild(adxElement);            }        })();    </script></div>\"}]';
  this.positions_weighted['content040'] = false;
  
  this.positions['list-content020'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": 100, \"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 = \'4688116\';                        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>\"}, {\"service_name\": \"Google Adverts\", \"weight\": 0, \"source\": \"<div id=\\"ce-gpt-emptyslot\\" ctsStyle=\\"display:table;margin:0 auto;text-align:center;\\" style=\\"display: none;\\"><script>        (function () {            var slotData = { id: \'\', name: \'\', size: \'\' },                gptAccountId = \'52203547\' || 6355419,                thisGptSlot = document.getElementById(\'ce-gpt-emptyslot\'),                isSubscribed = false;            thisGptSlot.id = thisGptSlot.id.replace(\'-emptyslot\', \'-slot\' + (new Date()).getTime());            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (                (typeof noADX == \'undefined\' || noADX === false) && typeof _ceDeviceDetect != \'unedfined\' &&                typeof _ceDeviceDetect.getDeviceType == \'function\'            ) {                switch (_ceDeviceDetect.getDeviceType()) {                    case \'desktop\':                        slotData.name = \'${google_gpt_slot_name}\';                        slotData.size = \'${google_gpt_slot_size}\';                        break;                    case \'mobile\':                        slotData.name = \'24.hu-mobil2-default\';                        slotData.size = \'[[300, 250], [336, 280]]\';                        break;                    case \'tablet\':                        if (\'${google_gpt_tablet_slot_name}\' != \'\' && \'${google_gpt_tablet_slot_size}\' != \'\') {                            slotData.name = \'${google_gpt_tablet_slot_name}\';                            slotData.size = \'${google_gpt_tablet_slot_size}\';                        } else {                            slotData.name = \'${google_gpt_slot_name}\';                            slotData.size = \'${google_gpt_slot_size}\';                        }                        break;                }                if (!isSubscribed && window.googletag && window.googletag.cmd && slotData.name != \'\' && slotData.size != \'\') {                    if (thisGptSlot.getAttribute(\\"ctsStyle\\") != null) {                        thisGptSlot.style = thisGptSlot.getAttribute(\\"ctsStyle\\");                        thisGptSlot.removeAttribute(\\"ctsStyle\\");                    } else {                        thisGptSlot.removeAttribute(\\"style\\");                    }                    googletag.cmd.push(function () {                        googletag.defineSlot(\'/\' + gptAccountId + \'/\' + slotData.name, JSON.parse(slotData.size), thisGptSlot.id).addService(googletag.pubads());                    });                } else {                    thisGptSlot.parentNode.removeChild(thisGptSlot);                }            }        })();    </script></div>\"}]';
  this.positions_weighted['list-content020'] = true;
  
  this.positions['toothbrush-head'] = '[{\"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 = \'5266598\';                        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}\';                        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['toothbrush-head'] = false;
  
  this.positions['toothbrush-handle'] = '[{\"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 = \'5266599\';                        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}\';                        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['toothbrush-handle'] = false;
  
  this.positions['right015'] = '[]';
  this.positions_weighted['right015'] = false;
  
  this.positions['right010'] = '[{\"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 = \'5279215\';                        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}\';                        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['right010'] = false;
  
  this.positions['right020'] = '[{\"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 = \'${adv_zone_id_for_mobile}\';                        dataAdsvName = \'${adverticum_name_mobile}\';                        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['right020'] = false;
  
  this.positions['right050'] = '[{\"service_name\": \"Rubicon\", \"weight\": null, \"source\": \"<div id=\\"RubiconAdTemp\\" class=\\"rubAd\\" ctsStyle=\\"display:table;margin:0 auto;width: 100%;text-align: center;\\"    style=\\"display: none;\\"><script language=\\"JavaScript\\" type=\\"text/javascript\\">        (function () {            var rubiconZoneSize = \'\';            var rubiconSite = \'146658\';            var rubiconAdType = \'${rubicon_ad_type}\';            var isSubscribed = false;            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData() != undefined && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (rubiconAdType == \'\') {                rubiconAdType = \'js\';            }            if (typeof _ceDeviceDetect.getDeviceType() !== \'undefined\') {                switch (_ceDeviceDetect.getDeviceType()) {                    case \'desktop\':                        rubiconZoneSize = \'693026-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 = \'693026-10\';                        }                        break;                }            }            if (!isSubscribed && (typeof noRUBICON == \'undefined\' || noRUBICON === false) && rubiconZoneSize.split(\'-\')[0] != \'\') {                rp_account = \'13818\';                rp_site = rubiconSite;                rp_zonesize = rubiconZoneSize;                rp_adtype = rubiconAdType;                var rubEl = document.getElementById(\\"RubiconAdTemp\\");                if (rubEl.getAttribute(\\"ctsStyle\\") != null) {                    rubEl.style = rubEl.getAttribute(\\"ctsStyle\\");                    rubEl.removeAttribute(\\"ctsStyle\\");                } else {                    rubEl.removeAttribute(\\"style\\");                }                rubEl.removeAttribute(\'id\');            } else {                document.getElementById(\\"RubiconAdTemp\\").remove();            }        })();    </script><script type=\\"text/javascript\\" src=\\"//ads.rubiconproject.com/ad/13818.js\\"></script></div>\"}]';
  this.positions_weighted['right050'] = false;
  
  this.positions['right030'] = '[]';
  this.positions_weighted['right030'] = false;
  
  this.positions['gallery-content-top'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" ctsStyle=\\"${google_adx_style}\\" style=\\"display: none;\\"><script type=\\"text/javascript\\">\t(function () {        var slotForDevice = \'\';        var gadxErr = false;        var dimensionForDevice = {            width: parseInt(727),            height: parseInt(90)        };        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\':                    slotForDevice = \'4199050721\';                    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 = \'4199050721\';                    }                    break;            }            try {            } catch (err) {                gadxErr = true;            }        }        if (!isSubscribed && (typeof noADX == \'undefined\' || noADX === false) && slotForDevice != \'\') {            var advParts = {};            var gadxDiv = document.getElementById(\'ctsGadxTemp\');            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 = \'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);            advParts.body.setAttribute(\'data-max-num-ads\', parseInt(1));            if (typeof \'${google_ad_page_url}\' !== \'undefined\' && \'${google_ad_page_url}\' != \'\') {                advParts.body.setAttribute(\'data-page-url\', \'${google_ad_page_url}\');            }            if (gadxDiv.getAttribute(\\"ctsStyle\\") != null) {                gadxDiv.style = gadxDiv.getAttribute(\\"ctsStyle\\");                gadxDiv.removeAttribute(\\"ctsStyle\\");            } else {                gadxDiv.removeAttribute(\\"style\\");            }            gadxDiv.appendChild(advParts.initScript);            gadxDiv.appendChild(advParts.body);            (adsbygoogle = window.adsbygoogle || []).push({});            gadxDiv.removeAttribute(\'id\');        } else {            var adxElement = document.getElementById(\'ctsGadxTemp\');            adxElement.parentNode.removeChild(adxElement);        }    })();\t</script></div>\"}]';
  this.positions_weighted['gallery-content-top'] = false;
  
  this.positions['gallery-content010'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" ctsStyle=\\"${google_adx_style}\\" style=\\"display: none;\\"><script type=\\"text/javascript\\">\t(function () {        var slotForDevice = \'\';        var gadxErr = false;        var dimensionForDevice = {            width: parseInt(570),            height: parseInt(318)        };        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\':                    slotForDevice = \'6568039674\';                    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 = \'6568039674\';                    }                    break;            }            try {            } catch (err) {                gadxErr = true;            }        }        if (!isSubscribed && (typeof noADX == \'undefined\' || noADX === false) && slotForDevice != \'\') {            var advParts = {};            var gadxDiv = document.getElementById(\'ctsGadxTemp\');            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 = \'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);            advParts.body.setAttribute(\'data-max-num-ads\', parseInt(1));            if (typeof \'${google_ad_page_url}\' !== \'undefined\' && \'${google_ad_page_url}\' != \'\') {                advParts.body.setAttribute(\'data-page-url\', \'${google_ad_page_url}\');            }            if (gadxDiv.getAttribute(\\"ctsStyle\\") != null) {                gadxDiv.style = gadxDiv.getAttribute(\\"ctsStyle\\");                gadxDiv.removeAttribute(\\"ctsStyle\\");            } else {                gadxDiv.removeAttribute(\\"style\\");            }            gadxDiv.appendChild(advParts.initScript);            gadxDiv.appendChild(advParts.body);            (adsbygoogle = window.adsbygoogle || []).push({});            gadxDiv.removeAttribute(\'id\');        } else {            var adxElement = document.getElementById(\'ctsGadxTemp\');            adxElement.parentNode.removeChild(adxElement);        }    })();\t</script></div>\"}, {\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\" style=\\"display: none;\\"><script>        (function () {            var insertedElement = document.getElementById(\'ctstemp\');            var zoneForDevice = \'\';            var isSubscribed = false;            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (typeof _ceDeviceDetect.getDeviceType() !== \'undefined\') {                switch (_ceDeviceDetect.getDeviceType()) {                    case \'desktop\':                        zoneForDevice = \'5575283\';                        break;                    case \'mobile\':                        zoneForDevice = \'${adv_zone_id_for_mobile}\';                        break;                    case \'tablet\':                        zoneForDevice = \'${adv_zone_id_for_tablet}\';                        break;                }            }            if (zoneForDevice == \'\' || isSubscribed) {                insertedElement.parentNode.removeChild(insertedElement);            } else {                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['gallery-content010'] = false;
  
  this.positions['gallery-left020'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" ctsStyle=\\"${google_adx_style}\\" style=\\"display: none;\\"><script type=\\"text/javascript\\">\t(function () {        var slotForDevice = \'\';        var gadxErr = false;        var dimensionForDevice = {            width: parseInt(255),            height: parseInt(143)        };        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\':                    slotForDevice = \'2341020050\';                    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 = \'2341020050\';                    }                    break;            }            try {            } catch (err) {                gadxErr = true;            }        }        if (!isSubscribed && (typeof noADX == \'undefined\' || noADX === false) && slotForDevice != \'\') {            var advParts = {};            var gadxDiv = document.getElementById(\'ctsGadxTemp\');            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 = \'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);            advParts.body.setAttribute(\'data-max-num-ads\', parseInt(1));            if (typeof \'${google_ad_page_url}\' !== \'undefined\' && \'${google_ad_page_url}\' != \'\') {                advParts.body.setAttribute(\'data-page-url\', \'${google_ad_page_url}\');            }            if (gadxDiv.getAttribute(\\"ctsStyle\\") != null) {                gadxDiv.style = gadxDiv.getAttribute(\\"ctsStyle\\");                gadxDiv.removeAttribute(\\"ctsStyle\\");            } else {                gadxDiv.removeAttribute(\\"style\\");            }            gadxDiv.appendChild(advParts.initScript);            gadxDiv.appendChild(advParts.body);            (adsbygoogle = window.adsbygoogle || []).push({});            gadxDiv.removeAttribute(\'id\');        } else {            var adxElement = document.getElementById(\'ctsGadxTemp\');            adxElement.parentNode.removeChild(adxElement);        }    })();\t</script></div>\"}]';
  this.positions_weighted['gallery-left020'] = false;
  
  this.positions['gallery-right010'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" ctsStyle=\\"${google_adx_style}\\" style=\\"display: none;\\"><script type=\\"text/javascript\\">\t(function () {        var slotForDevice = \'\';        var gadxErr = false;        var dimensionForDevice = {            width: parseInt(350),            height: parseInt(198)        };        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\':                    slotForDevice = \'6982972648\';                    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 = \'6982972648\';                    }                    break;            }            try {            } catch (err) {                gadxErr = true;            }        }        if (!isSubscribed && (typeof noADX == \'undefined\' || noADX === false) && slotForDevice != \'\') {            var advParts = {};            var gadxDiv = document.getElementById(\'ctsGadxTemp\');            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 = \'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);            advParts.body.setAttribute(\'data-max-num-ads\', parseInt(1));            if (typeof \'${google_ad_page_url}\' !== \'undefined\' && \'${google_ad_page_url}\' != \'\') {                advParts.body.setAttribute(\'data-page-url\', \'${google_ad_page_url}\');            }            if (gadxDiv.getAttribute(\\"ctsStyle\\") != null) {                gadxDiv.style = gadxDiv.getAttribute(\\"ctsStyle\\");                gadxDiv.removeAttribute(\\"ctsStyle\\");            } else {                gadxDiv.removeAttribute(\\"style\\");            }            gadxDiv.appendChild(advParts.initScript);            gadxDiv.appendChild(advParts.body);            (adsbygoogle = window.adsbygoogle || []).push({});            gadxDiv.removeAttribute(\'id\');        } else {            var adxElement = document.getElementById(\'ctsGadxTemp\');            adxElement.parentNode.removeChild(adxElement);        }    })();\t</script></div>\"}, {\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\" style=\\"display: none;\\"><script>        (function () {            var insertedElement = document.getElementById(\'ctstemp\');            var zoneForDevice = \'\';            var isSubscribed = false;            if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {                isSubscribed = true;            }            if (typeof _ceDeviceDetect.getDeviceType() !== \'undefined\') {                switch (_ceDeviceDetect.getDeviceType()) {                    case \'desktop\':                        zoneForDevice = \'5575278\';                        break;                    case \'mobile\':                        zoneForDevice = \'${adv_zone_id_for_mobile}\';                        break;                    case \'tablet\':                        zoneForDevice = \'${adv_zone_id_for_tablet}\';                        break;                }            }            if (zoneForDevice == \'\' || isSubscribed) {                insertedElement.parentNode.removeChild(insertedElement);            } else {                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['gallery-right010'] = false;
  
  this.positions['gallery-right020'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" ctsStyle=\\"${google_adx_style}\\" style=\\"display: none;\\"><script type=\\"text/javascript\\">\t(function () {        var slotForDevice = \'\';        var gadxErr = false;        var dimensionForDevice = {            width: parseInt(350),            height: parseInt(198)        };        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\':                    slotForDevice = \'6982972648\';                    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 = \'6982972648\';                    }                    break;            }            try {            } catch (err) {                gadxErr = true;            }        }        if (!isSubscribed && (typeof noADX == \'undefined\' || noADX === false) && slotForDevice != \'\') {            var advParts = {};            var gadxDiv = document.getElementById(\'ctsGadxTemp\');            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 = \'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);            advParts.body.setAttribute(\'data-max-num-ads\', parseInt(1));            if (typeof \'${google_ad_page_url}\' !== \'undefined\' && \'${google_ad_page_url}\' != \'\') {                advParts.body.setAttribute(\'data-page-url\', \'${google_ad_page_url}\');            }            if (gadxDiv.getAttribute(\\"ctsStyle\\") != null) {                gadxDiv.style = gadxDiv.getAttribute(\\"ctsStyle\\");                gadxDiv.removeAttribute(\\"ctsStyle\\");            } else {                gadxDiv.removeAttribute(\\"style\\");            }            gadxDiv.appendChild(advParts.initScript);            gadxDiv.appendChild(advParts.body);            (adsbygoogle = window.adsbygoogle || []).push({});            gadxDiv.removeAttribute(\'id\');        } else {            var adxElement = document.getElementById(\'ctsGadxTemp\');            adxElement.parentNode.removeChild(adxElement);        }    })();\t</script></div>\"}]';
  this.positions_weighted['gallery-right020'] = 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\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"//ad.adverticum.net/g3.js\\"></script>\"}, {\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<script>    (function () {        function callGoogleTag(doNotPersonalise) {            var nonPersonalisedAds = typeof doNotPersonalise === \'boolean\' ? Number(doNotPersonalise) : 1;            var metaKeyArr = ((document.querySelector(\'meta[name=keywords]\') || {}).content || \'\').replace(/,[ ]+/ig, \',\').split(\',\');            var adPreview = ((document.location.search.match(/adPreview=[^&]+/g) || [])[0] || \'\').split(\'=\').pop();            var defaultContainerName = \'ce-gpt-slot\';            var slotsToDisplay = document.querySelectorAll(\'div[id*=\' + defaultContainerName + \']\');            var customTargetContent = document.querySelectorAll(\\"[name=\'customtarget\']\\");            var pageUrl = \'\';            var pagePath = document.location.pathname.slice(0, 40);            var audiencesArr = [];            if (customTargetContent.length > 0) {                (atob(customTargetContent[0].content)).split(\'&\').forEach(function (item) {                    if (item.indexOf(\'audiences\') !== -1) {                        audiencesArr = item.replace(\'audiences=\', \'\').slice(1, -1).split(\',\');                    }                });            }            var pathArr = (document.location.pathname.match(/([^\\/]+)/gm) || []).reverse();            for (var i = 0; i < pathArr.length; i++) {                if (pathArr[i].match(/^[0-9]+$/g) === null) {                    pageUrl = pathArr[i].slice(0, 40);                    break;                }            }            if (window.googletag && window.googletag.cmd) {                googletag.cmd.push(function () {                    googletag.pubads().setRequestNonPersonalizedAds(nonPersonalisedAds);                    googletag.pubads().collapseEmptyDivs();                    googletag.pubads().setTargeting(\'pageUrl\', pageUrl);                    googletag.pubads().setTargeting(\'pagePath\', pagePath);                    googletag.pubads().setTargeting(\'metaKeywords\', metaKeyArr);                    googletag.pubads().setTargeting(\'userData\', audiencesArr);                    googletag.pubads().setTargeting(\'adPreview\', adPreview);                    googletag.enableServices();                    for (var i = 0; i < slotsToDisplay.length; i++) {                        googletag.display(slotsToDisplay[i].id);                    }                });            }        }        if (typeof window[\'__tcfapi\'] === \'function\') {            window.__tcfapi(\'addEventListener\', 2, function (tcData, success) {                if (success && (tcData.eventStatus === \'tcloaded\' || tcData.eventStatus === \'useractioncomplete\')) {                    callGoogleTag(false);                    window.__tcfapi(\'removeEventListener\', 2, function (success) { }, tcData.listenerId);                }            });        } else {            callGoogleTag(true);        }    })();</script>\"}, {\"service_name\": \"JW player\", \"weight\": null, \"source\": \"<script>    (function () {        var isSubscribed = false;        if (typeof _ceSubscriptionDetect != \'undefined\' && _ceSubscriptionDetect.getSubscriptionData().isSubscribed) {            isSubscribed = true;        }        if (isSubscribed && CentralJwPlayer != undefined && CentralJwPlayer.enableAdFree != undefined) {            CentralJwPlayer.enableAdFree();        }    })();</script>\"}]';
  this.positions_weighted['body-end'] = 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;
}



