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

  this.positions['head'] = '[{\"service_name\": \"Sanoma\", \"weight\": null, \"source\": \"<script src=\\"http://stat.p24.hu/mobile_detect/mobile_detect.js\\"></script>\"}, {\"service_name\": \"Gemius Traffic\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">    var properGemId = (\'d1A7Kw8acEW4QXuywBS5Jrde7HmwFGxRf46vOxAaKhz.77\' != \'\' ? \'d1A7Kw8acEW4QXuywBS5Jrde7HmwFGxRf46vOxAaKhz.77\' : \'10aV7_8iJdBOjvKKuUO_CuW0TBjdYCxzmpnPntDtEn3.l7\');        if(typeof deviceType !== \'undefined\' && deviceType != \'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\": \"Gemius Traffic\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">sendGemHit = function() {\tif (typeof pp_gemius_hit === \'function\') {\t\tvar hit_identifier= (\'d1A7Kw8acEW4QXuywBS5Jrde7HmwFGxRf46vOxAaKhz.77\' != \'\') ? \'d1A7Kw8acEW4QXuywBS5Jrde7HmwFGxRf46vOxAaKhz.77\' : \'10aV7_8iJdBOjvKKuUO_CuW0TBjdYCxzmpnPntDtEn3.l7\';                if(typeof deviceType !== \'undefined\' && deviceType != \'desktop\' && \'0ifq_KrFGx1vd4VAA7NkkKbk7MngUmvn7FD4pTzYvf..W7\' != \'\') {                    hit_identifier= \'0ifq_KrFGx1vd4VAA7NkkKbk7MngUmvn7FD4pTzYvf..W7\';                }\t\tpp_gemius_hit(hit_identifier);\t}\t}</script>\"}, {\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"http://ad-blacklist.p24.hu/adx_blacklist.js\\"></script><script type=\\"text/javascript\\">    var noADX = false;    if (        typeof blckAdx != \'undefined\' &&        typeof blckAdx[window.location.hostname] != \'undefined\' &&        blckAdx[window.location.hostname].indexOf(location.pathname) >= 0    ) {        noADX = true;    }</script>\"}, {\"service_name\": \"Visual Website Optimizer\", \"weight\": null, \"source\": \"<!-- Start Visual Website Optimizer Asynchronous Code --><script type=\'text/javascript\'>var _vwo_code=(function(){var account_id=43101,settings_tolerance=2000,library_tolerance=1500,use_existing_jquery=true,/* DO NOT EDIT BELOW THIS LINE */f=false,d=document;return{use_existing_jquery:function(){return use_existing_jquery;},library_tolerance:function(){return library_tolerance;},finish:function(){if(!f){f=true;var a=d.getElementById(\'_vis_opt_path_hides\');if(a)a.parentNode.removeChild(a);}},finished:function(){return f;},load:function(a){var b=d.createElement(\'script\');b.src=a;b.type=\'text/javascript\';b.innerText;b.onerror=function(){_vwo_code.finish();};d.getElementsByTagName(\'head\')[0].appendChild(b);},init:function(){settings_timer=setTimeout(\'_vwo_code.finish()\',settings_tolerance);this.load(\'//dev.visualwebsiteoptimizer.com/j.php?a=\'+account_id+\'&u=\'+encodeURIComponent(d.URL)+\'&r=\'+Math.random());var a=d.createElement(\'style\'),b=\'body{opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;}\',h=d.getElementsByTagName(\'head\')[0];a.setAttribute(\'id\',\'_vis_opt_path_hides\');a.setAttribute(\'type\',\'text/css\');if(a.styleSheet)a.styleSheet.cssText=b;else a.appendChild(d.createTextNode(b));h.appendChild(a);return settings_timer;}};}());_vwo_settings_timer=_vwo_code.init();</script><!-- End Visual Website Optimizer Asynchronous Code -->\"}, {\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<script src=\\"//stat.p24.hu/CTS/helper-scripts/ip2isp/ip2isp.min.js\\"></script>\"}, {\"service_name\": \"Criteo\", \"weight\": null, \"source\": \"<script type=\'text/javascript\'>\t\tvar crtg_nid = \'5014\';\t\tvar crtg_cookiename = \'crtg_rtacm\';\t\tvar crtg_varname = \'crtg_content\';\t\tfunction crtg_getCookie(c_name){ var i,x,y,ARRCookies=document.cookie.split(\\";\\");for(i=0;i<ARRCookies.length;i++){x=ARRCookies[i].substr(0,ARRCookies[i].indexOf(\\"=\\"));y=ARRCookies[i].substr(ARRCookies[i].indexOf(\\"=\\")+1);x=x.replace(/^\\s+|\\s+$/g,\\"\\");if(x==c_name){return unescape(y);} }return\'\';}\t\tvar crtg_content = crtg_getCookie(crtg_cookiename);\t\tvar crtg_rnd=Math.floor(Math.random()*99999999999);\t\t(function(){\t\t\t\tvar crtg_url=location.protocol+\'//rtax.criteo.com/delivery/rta/rta.js?netId=\'+escape(crtg_nid);\t\t\t\tcrtg_url +=\'&cookieName=\'+escape(crtg_cookiename);\t\t\t\tcrtg_url +=\'&rnd=\'+crtg_rnd;\t\t\t\tcrtg_url +=\'&varName=\' + escape(crtg_varname);\t\t\t\tvar crtg_script=document.createElement(\'script\');crtg_script.type=\'text/javascript\';crtg_script.src=crtg_url;crtg_script.async=true;                crtg_script.onload=function(){criteoCustomTarget(crtg_varname)};\t\t\t\tif(document.getElementsByTagName(\\"head\\").length>0)document.getElementsByTagName(\\"head\\")[0].appendChild(crtg_script);\t\t\t\telse if(document.getElementsByTagName(\\"body\\").length>0)document.getElementsByTagName(\\"body\\")[0].appendChild(crtg_script);\t\t})();\t\tfunction criteoCustomTarget(v) {\t\t\t\tvar advUserDB = 74;\t\t\t\tvar myVar = window[v];\t\t\t\tif (typeof myVar != \'undefined\' && myVar != \'\' && typeof btoa !== \'undefined\') {\t\t\t\t\t\tvar adverticumMeta = {};\t\t\t\t\t\tvar originCustomtarget = \'\';\t\t\t\t\t\tif (document.getElementsByName(\'customtarget\').length != 0) {\t\t\t\t\t\t\t\tadverticumMeta = document.getElementsByName(\'customtarget\')[0];\t\t\t\t\t\t\t\toriginCustomtarget = atob(adverticumMeta.content) + \'&\';\t\t\t\t\t\t} else {\t\t\t\t\t\t\t\tvar adverticumMeta = document.createElement(\'meta\');\t\t\t\t\t\t\t\tadverticumMeta.name = \'customtarget\';\t\t\t\t\t\t\t\tdocument.getElementsByTagName(\'head\')[0].appendChild(adverticumMeta);\t\t\t\t\t\t}\t\t\t\t\t\tadverticumMeta.content = btoa(originCustomtarget + \'userdb_id=\' + advUserDB + \'&\' + myVar.replace(/;$/g, \'\').replace(/;/g, \'&\'));\t\t\t\t}\t\t}</script>\"}, {\"service_name\": \"Adverticum AdServer\", \"weight\": 0, \"source\": \"<script>function ip2latlong(data){    centralGeoTarget.ip2latlong(data);}var centralGeoTarget = {    referrer : document.referrer,    geoLocInfo : \\"geoLocInfo\\",    onPositionUpdate: function (position) {        var latitude = position.coords.latitude,            longitude = position.coords.longitude;        centralGeoTarget.buildUpMetaTag(latitude, longitude);    },    ip2latlong: function (data) {        var latitude = data.latitude,            longitude = data.longitude;        centralGeoTarget.buildUpMetaTag(latitude, longitude);        if (centralGeoTarget.readCookie(centralGeoTarget.geoLocInfo) == \\"\\") {            var geoLocationInfoSting = \'latitude=\' + latitude + \'|longitude=\' + longitude;            centralGeoTarget.createCookie(centralGeoTarget.geoLocInfo, geoLocationInfoSting, 12);        }    },    ipGeoLocation: function () {        script = document.createElement(\'script\');        script.type = \'text/javascript\';        script.src = \'//geoip.p24.hu/latlong.js\';        document.head.appendChild(script);    },    getLocationFromCookie: function () {        var coordinates = centralGeoTarget.readCookie(centralGeoTarget.geoLocInfo);        var coordinateVals = (function () {            var pairs = coordinates.split(\'|\');            var coo = {};            for (var i = 0; i < pairs.length; i++) {                var temp = pairs[i].split(\'=\');                coo[temp[0]] = temp[1];            }            return coo;        })();        if ((typeof coordinateVals.latitude == \'undefined\') || (typeof coordinateVals.longitude == \'undefined\')) {            return null;        }        var latitudeVal = parseFloat(coordinateVals.latitude),            longitudeVal = parseFloat(coordinateVals.longitude);        if (isNaN(latitudeVal) || isNaN(longitudeVal)) {            return null;        }        return {            latitude: latitudeVal,            longitude: longitudeVal        }    },    onPositionUpdateError: function (e) {        if (centralGeoTarget.readCookie(centralGeoTarget.geoLocInfo) == \\"\\") {            centralGeoTarget.ipGeoLocation();        } else {            var savedData = centralGeoTarget.getLocationFromCookie();            if (savedData != null) {                centralGeoTarget.buildUpMetaTag(savedData.latitude, savedData.longitude);            }        }    },    createCookie: function (cname, cvalue, expiry) {        var d = new Date();        d.setHours(d.getHours() + expiry);        var expires = \\"expires=\\" + d.toUTCString();        document.cookie = cname + \'=\' + cvalue + \';\' + expires + \';domain=.\' + document.domain + \';path=/\';    },    readCookie: function (cname) {        var name = cname + \\"=\\";        var ca = document.cookie.split(\';\');        for (var i = 0; i < ca.length; i++) {            var c = ca[i].trim();            if (c.indexOf(name) == 0) return c.substring(name.length, c.length);        }        return \\"\\";    },    buildUpMetaTag: function (latitude, longitude) {        var userdb_id = 65;        var createMetaElement = true;        var metaElements = document.querySelectorAll(\\"[name=\'customtarget\']\\");        if (metaElements != undefined) {            if (metaElements.length != undefined) {                if (metaElements.length > 0) {                    createMetaElement = false;                }            }        }        if (createMetaElement) {            var adverticumMeta = document.createElement(\'meta\');            adverticumMeta.name = \'customtarget\';            adverticumMeta.content = window.btoa(unescape(encodeURIComponent(\'userdb_id=\' + userdb_id + \'&latitude=\' + latitude + \'&longitude=\' + longitude)));            document.getElementsByTagName(\'head\')[0].appendChild(adverticumMeta);        } else {            var defaultMetaVal = metaElements[0].getAttribute(\\"content\\");            var newMetaVal = window.atob(unescape(defaultMetaVal)) + \'&userdb_id=\' + userdb_id + \'&latitude=\' + latitude + \'&longitude=\' + longitude;            metaElements[0].setAttribute(\\"content\\", window.btoa(unescape(encodeURIComponent(newMetaVal))));        }    },    init: function () {        if (typeof deviceType != \'undefined\') {            if (deviceType != \\"desktop\\") {                if (centralGeoTarget.referrer.indexOf(\\"facebook\\") == -1) {                    navigator.geolocation.getCurrentPosition(centralGeoTarget.onPositionUpdate, centralGeoTarget.onPositionUpdateError);                } else {                    if (centralGeoTarget.readCookie(centralGeoTarget.geoLocInfo) == \\"\\") {                        centralGeoTarget.ipGeoLocation();                    } else {                        var savedData = centralGeoTarget.getLocationFromCookie();                        if (savedData != null) {                            centralGeoTarget.buildUpMetaTag(savedData.latitude, savedData.longitude);                        }                    }                }            }        }    }};centralGeoTarget.init();</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-WJSC4J\\"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-WJSC4J\');</script>\"}]';
  this.positions_weighted['body-start'] = false;
  
  this.positions['body-end'] = '[{\"service_name\": \"Sanoma\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"//segment.p24.hu/cerment.min.js\\"></script>\"}, {\"service_name\": \"Sanoma/Hir24\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"http://stat.p24.hu/CTS/measuring-codes/24hu/measuringCode.min.js\\"></script>\"}, {\"service_name\": \"Sanoma\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"//stat.p24.hu/CTS/helper-scripts/adverticum/lazyload/lazyad.min.js\\"></script>\"}, {\"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\": \"Google Adverts\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">\tvar googleCPLink = (\\"${google_cookie_policy_link}\\" != \\"\\") ? \\"${google_cookie_policy_link}\\" : \\"http://centralmediacsoport.hu/Company/Central-Digitalis-Media-Adatkezelesi-tajekoztato\\";\tvar hostname = document.location.hostname.split(\'.\');\thostname = \\".\\"+hostname[hostname.length-2]+\\".\\"+hostname[hostname.length-1];\twindow.cookieconsent_options = {\t\t\\"message\\"      : \\"A weboldalon cookie-kat haszn&#xE1;lunk, hogy biztons&#xE1;gos b&#xF6;ng&#xE9;sz&#xE9;s mellett a legjobb felhaszn&#xE1;l&#xF3;i &#xE9;lm&#xE9;nyt ny&#xFA;jthassunk.\\",\t\t\\"dismiss\\"      : \\"Rendben!\\",\t\t\\"learnMore\\"    : \\"R&#xE9;szletes le&#xED;r&#xE1;s\\",\t\t\\"link\\"         : googleCPLink,\t\t\\"theme\\"        : \\"//stat.p24.hu/cookiepolicy/styles/custom.css\\",\t\t\\"expiryDays\\"   : 1095,\t\t\\"domain\\"       : hostname\t};</script><script type=\\"text/javascript\\" src=\\"//stat.p24.hu/cookiepolicy/cookieconsent.min.js\\"></script>\"}, {\"service_name\": \"AudienceScience\", \"weight\": null, \"source\": \"<!-- AudienceScience Async Data Collection Tag --><script type=\\"text/javascript\\">\tfunction DM_prepClient(csid,client) {\t\tclient.DM_addEncToLoc(\\"as_cat\\", centralContext.ba.comm);\t}</script><script>\t(function() {\t var csid = \\"F09828\\";\t var bpid = \\"cmsaleshu\\";\t var e = document.createElement(\\"script\\");\t var s = document.getElementsByTagName(\\"script\\")[0];\t e.src = \\"//js.revsci.net/gateway/gw.js?auto=t&csid=\\" + csid + \\"&bpid=\\" + bpid;\t e.async = true;\t s.parentNode.insertBefore(e, s);\t})();</script><!-- End AudienceScience Data Collection Tag -->\"}, {\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" src=\\"//ad.adverticum.net/g3.js\\"></script>\"}, {\"service_name\": \"Strossle\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">    if ((typeof ctsIsArticlePage !== \'undefined\' && ctsIsArticlePage === true) || (typeof ctsPageType !== \'undefined\' && (ctsPageType === \'article\' || ctsPageType === \'category\' || ctsPageType === \'tag\')))    {        $(\'div.widget > div.related-posts\').remove();        (function () { var s = document.createElement(\'script\'); s.type = \'text/javascript\'; s.async = true; s.src = \'http://widgets.sprinklecontent.com/v2/sprinkle.js\'; var scriptList = document.getElementsByTagName(\'script\'); var x = scriptList[scriptList.length-1]; x.parentNode.insertBefore(s, x); })();    }</script>\"}, {\"service_name\": \"Kalooga\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">        if (typeof ctsIsArticlePage !== \'undefined\' && ctsIsArticlePage === true && $(\'.post-header-wrapper.has-img\').length > 0)    {         $(\'.post-header-wrapper.has-img > img:first\').addClass(\'kalooga_25686\');         $(\'.post-header-wrapper.has-img > img:first\').after(\'<scr\'+\'ipt type=\\"text/javascript\\">(function(){var d=document,k=\\"kalooga\\",s=\\"script\\",n=d.createElement(s),f=d.getElementsByTagName(s)[0];n.async=true;n.type=\\"text/java\\"+s;n.src=\\"//publishing.kaloo.ga/acct/7030.js\\";f.parentNode.insertBefore(n,f);})();</sc\'+\'ript>\');    }</script>\"}]';
  this.positions_weighted['body-end'] = false;
  
  this.positions['body-end-adv'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'3487596\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'${adv_zone_id_for_tablet}\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['body-end-adv'] = false;
  
  this.positions['content-top'] = '[]';
  this.positions_weighted['content-top'] = false;
  
  this.positions['right010'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum a8a263be\\" data-adsv-name=\\"\\"></div><script>var insertedElement = document.getElementById(\'ctstemp\');var zoneForDevice = \'\';var dataAdsvName = \'\';if (typeof deviceType !== \'undefined\') {    switch (deviceType) {        case \'desktop\':            zoneForDevice = \'1750445\';            dataAdsvName = \'box1\';            break;        case \'mobile\':            zoneForDevice = \'2147741\';            dataAdsvName = \'mobil_waterfall2\';            break;        case \'tablet\':            zoneForDevice = \'1750445\';            dataAdsvName = \'${adverticum_name_tablet}\';            if(dataAdsvName == \\"\\"){                dataAdsvName = \'box1\';            }            break;    }}if (zoneForDevice == \'\') {    insertedElement.parentNode.removeChild(insertedElement);} else {    insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);    insertedElement.id = \'zone\' + zoneForDevice;}</script>\"}]';
  this.positions_weighted['right010'] = false;
  
  this.positions['right030'] = '[{\"service_name\": \"Strossle\", \"weight\": null, \"source\": \"<div id=\\"strossle-widget-widget-5809f008c80bb\\"></div><script type=\\"text/javascript\\">    var strossle_element = document.getElementById(\\"strossle-widget-widget-5809f008c80bb\\");    var strossle_exceptions = \'${strossle_widget_exceptions}\';    strossle_exceptions = strossle_exceptions.replace(\\" \\", \\"\\");    strossle_exceptions = strossle_exceptions.split(\\",\\");    var strossle_enabled = true;        if(strossle_exceptions != \\"\\") {        for (var i = 0; i < strossle_exceptions.length; i++) {            if (window.location.search.indexOf(strossle_exceptions[i]) != -1) {                strossle_enabled = false;                strossle_element.remove();            }        }    }    if(strossle_enabled){        strossle_element.setAttribute(\\"data-spklw-widget\\", \\"widget-5809f008c80bb\\");        strossle_element.setAttribute(\\"style\\", \\"${strossle_style}\\");    }</script>\"}, {\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'2239069\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'2239069\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['right030'] = false;
  
  this.positions['right040'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'1864725\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'1864725\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['right040'] = false;
  
  this.positions['right050'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'1909214\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'1909214\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['right050'] = false;
  
  this.positions['right060'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'1711788\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'1711788\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['right060'] = false;
  
  this.positions['right070'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'2120782\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'${adv_zone_id_for_tablet}\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['right070'] = false;
  
  this.positions['right080'] = '[]';
  this.positions_weighted['right080'] = false;
  
  this.positions['right090'] = '[]';
  this.positions_weighted['right090'] = false;
  
  this.positions['right100'] = '[]';
  this.positions_weighted['right100'] = false;
  
  this.positions['bottom'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" style=\\"display:table;margin:0 auto;\\"></div><script type=\\"text/javascript\\">    var slotForDevice = \'\';    var gadxErr = false;    var dimensionForDevice = {        width: parseInt(300),        height: parseInt(250)    };    if (typeof ADXBannerWidth !== \'undefined\') {        dimensionForDevice.width = ADXBannerWidth;    }    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {            case \'desktop\':                slotForDevice = \'${google_adx_slot_default_for_desktop}\';                break;            case \'mobile\':                slotForDevice = \'5417207668\';                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 = \'${google_adx_slot_default_for_desktop}\';                }                break;        }    }    if ((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}\');        }        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);    }</script>\"}]';
  this.positions_weighted['bottom'] = false;
  
  this.positions['nonstop-link030'] = '[]';
  this.positions_weighted['nonstop-link030'] = false;
  
  this.positions['toothbrush-handle'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'33127\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'${adv_zone_id_for_tablet}\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['toothbrush-handle'] = false;
  
  this.positions['toothbrush-head'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'1751089\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'${adv_zone_id_for_tablet}\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['toothbrush-head'] = false;
  
  this.positions['menu-manager'] = '[{\"service_name\": \"Sanoma/Hir24\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">    $( document ).ready(function() {        var firstUpperMenuItem = $(\'.header-top .swiper-container .microsite-list .swiper-slide:first\');        if ( firstUpperMenuItem.find(\'a:first\').attr(\'href\') == \\"http://olimpia2016.24.hu/\\") {            firstUpperMenuItem.find(\'a:first\').css(\'background\', \'url(\\"http://24.p3k.hu/app/uploads/images/olimpia2016-torch-ico.png\\") 4px center no-repeat #fff\').css(\'background-size\', \'10px 18px\').css(\'padding-left\', \'18px\').css(\'color\', \'#fa444d\').css(\'border\', \'1px solid #fa444d\').css(\'line-height\', \'21px\');            firstUpperMenuItem.find(\'a:first\').hover(function(){                $(this).css(\\"color\\", \\"#000\\").css(\'background-color\', \'#ffb2b2\');            }, function(){                $(this).css(\\"color\\", \\"#fa444d\\").css(\'background-color\', \'#fff\');            });    }});</script>\"}]';
  this.positions_weighted['menu-manager'] = false;
  
  this.positions['content010'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum a8a263be\\" data-adsv-name=\\"\\"></div><script>var insertedElement = document.getElementById(\'ctstemp\');var zoneForDevice = \'\';var dataAdsvName = \'\';if (typeof deviceType !== \'undefined\') {    switch (deviceType) {        case \'desktop\':            zoneForDevice = \'2733420\';            dataAdsvName = \'roadblock\';            break;        case \'mobile\':            zoneForDevice = \'2147746\';            dataAdsvName = \'mobil_waterfall1\';            break;        case \'tablet\':            zoneForDevice = \'\';            dataAdsvName = \'\';            if(dataAdsvName == \\"\\"){                dataAdsvName = \'roadblock\';            }            break;    }}if (zoneForDevice == \'\') {    insertedElement.parentNode.removeChild(insertedElement);} else {    insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);    insertedElement.id = \'zone\' + zoneForDevice;}</script>\"}]';
  this.positions_weighted['content010'] = false;
  
  this.positions['content020'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'2938653\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'2938653\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['content020'] = false;
  
  this.positions['content040'] = '[{\"service_name\": \"Sanoma/Hir24\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">        var ADXBannerWidthDefault = 640,        pageType = typeof ctsPageType !== \'undefined\' ? ctsPageType : \'notSet\';            switch (pageType) {        case \'category\':            ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.category-component-box.hir24-rovat.list-category\').css(\'width\');            break;        case \'other\':            if (location.pathname.indexOf(\'/tag/\') != -1){                ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.hir24-rovat.list-category > div.row > div.article.col-sm-8\').css(\'width\'); }            break;        case \'tag\':            ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.hir24-rovat.list-category > div.row > div.article.col-sm-8\').css(\'width\');            break;        case \'article\':            ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.col-md-8.hir24-post\').css(\'width\');            break;        default:            ADXBannerWidth = ADXBannerWidthDefault;    }    ADXBannerWidth = parseInt(ADXBannerWidth);    if (window.innerWidth < 670) ADXBannerWidth-=15;    if (isNaN(ADXBannerWidth) || ADXBannerWidth <= 0 || ADXBannerWidthDefault < ADXBannerWidth){        ADXBannerWidth = ADXBannerWidthDefault;    }</script>\"}, {\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" style=\\"display:table;margin:0 auto;\\"></div><script type=\\"text/javascript\\">    var slotForDevice = \'\';    var gadxErr = false;    var dimensionForDevice = {        width: parseInt(640),        height: parseInt(200)    };    if (typeof ADXBannerWidth !== \'undefined\') {        dimensionForDevice.width = ADXBannerWidth;    }    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {            case \'desktop\':                slotForDevice = \'4912109665\';                break;            case \'mobile\':                slotForDevice = \'6980612068\';                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 = \'4912109665\';                }                break;        }    }    if ((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}\');        }        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);    }</script>\"}]';
  this.positions_weighted['content040'] = false;
  
  this.positions['content030'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum a8a263be\\" data-adsv-name=\\"\\"></div><script>var insertedElement = document.getElementById(\'ctstemp\');var zoneForDevice = \'\';var dataAdsvName = \'\';if (typeof deviceType !== \'undefined\') {    switch (deviceType) {        case \'desktop\':            zoneForDevice = \'3862495\';            dataAdsvName = \'${adverticum_name}\';            break;        case \'mobile\':            zoneForDevice = \'2147744\';            dataAdsvName = \'mobil_waterfall2\';            break;        case \'tablet\':            zoneForDevice = \'3862495\';            dataAdsvName = \'${adverticum_name_tablet}\';            if(dataAdsvName == \\"\\"){                dataAdsvName = \'${adverticum_name}\';            }            break;    }}if (zoneForDevice == \'\') {    insertedElement.parentNode.removeChild(insertedElement);} else {    insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);    insertedElement.id = \'zone\' + zoneForDevice;}</script>\"}]';
  this.positions_weighted['content030'] = false;
  
  this.positions['content050'] = '[{\"service_name\": \"Strossle\", \"weight\": null, \"source\": \"<div id=\\"strossle-widget-widget-570391f811f85\\"></div><script type=\\"text/javascript\\">    var strossle_element = document.getElementById(\\"strossle-widget-widget-570391f811f85\\");    var strossle_exceptions = \'${strossle_widget_exceptions}\';    strossle_exceptions = strossle_exceptions.replace(\\" \\", \\"\\");    strossle_exceptions = strossle_exceptions.split(\\",\\");    var strossle_enabled = true;        if(strossle_exceptions != \\"\\") {        for (var i = 0; i < strossle_exceptions.length; i++) {            if (window.location.search.indexOf(strossle_exceptions[i]) != -1) {                strossle_enabled = false;                strossle_element.remove();            }        }    }    if(strossle_enabled){        strossle_element.setAttribute(\\"data-spklw-widget\\", \\"widget-570391f811f85\\");        strossle_element.setAttribute(\\"style\\", \\"${strossle_style}\\");    }</script>\"}]';
  this.positions_weighted['content050'] = false;
  
  this.positions['content060'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" style=\\"display:table;margin:0 auto;\\"></div><script type=\\"text/javascript\\">    var slotForDevice = \'\';    var gadxErr = false;    var dimensionForDevice = {        width: parseInt(640),        height: parseInt(200)    };    if (typeof ADXBannerWidth !== \'undefined\') {        dimensionForDevice.width = ADXBannerWidth;    }    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {            case \'desktop\':                slotForDevice = \'2299671264\';                break;            case \'mobile\':                slotForDevice = \'2533343666\';                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 = \'2299671264\';                }                break;        }    }    if ((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}\');        }        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);    }</script>\"}]';
  this.positions_weighted['content060'] = false;
  
  this.positions['article-recommender020'] = '[]';
  this.positions_weighted['article-recommender020'] = false;
  
  this.positions['list-content010'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum a8a263be\\" data-adsv-name=\\"\\"></div><script>var insertedElement = document.getElementById(\'ctstemp\');var zoneForDevice = \'\';var dataAdsvName = \'\';if (typeof deviceType !== \'undefined\') {    switch (deviceType) {        case \'desktop\':            zoneForDevice = \'${adv_zone_id_for_desktop}\';            dataAdsvName = \'${adverticum_name}\';            break;        case \'mobile\':            zoneForDevice = \'2147740\';            dataAdsvName = \'mobil_waterfall1\';            break;        case \'tablet\':            zoneForDevice = \'${adv_zone_id_for_tablet}\';            dataAdsvName = \'${adverticum_name_tablet}\';            if(dataAdsvName == \\"\\"){                dataAdsvName = \'${adverticum_name}\';            }            break;    }}if (zoneForDevice == \'\') {    insertedElement.parentNode.removeChild(insertedElement);} else {    insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);    insertedElement.id = \'zone\' + zoneForDevice;}</script>\"}]';
  this.positions_weighted['list-content010'] = false;
  
  this.positions['list-content020'] = '[{\"service_name\": \"Sanoma/Hir24\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">        var ADXBannerWidthDefault = 640,        pageType = typeof ctsPageType !== \'undefined\' ? ctsPageType : \'notSet\';            switch (pageType) {        case \'category\':            ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.category-component-box.hir24-rovat.list-category\').css(\'width\');            break;        case \'other\':            if (location.pathname.indexOf(\'/tag/\') != -1){                ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.hir24-rovat.list-category > div.row > div.article.col-sm-8\').css(\'width\'); }            break;        case \'tag\':            ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.hir24-rovat.list-category > div.row > div.article.col-sm-8\').css(\'width\');            break;        case \'article\':            ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.col-md-8.hir24-post\').css(\'width\');            break;        default:            ADXBannerWidth = ADXBannerWidthDefault;    }    ADXBannerWidth = parseInt(ADXBannerWidth);    if (window.innerWidth < 670) ADXBannerWidth-=15;    if (isNaN(ADXBannerWidth) || ADXBannerWidth <= 0 || ADXBannerWidthDefault < ADXBannerWidth){        ADXBannerWidth = ADXBannerWidthDefault;    }</script>\"}, {\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" style=\\"margin-top:15px;border-bottom:1px solid #e4e4e4;\\"></div><script type=\\"text/javascript\\">    var slotForDevice = \'\';    var gadxErr = false;    var dimensionForDevice = {        width: parseInt(640),        height: parseInt(120)    };    if (typeof ADXBannerWidth !== \'undefined\') {        dimensionForDevice.width = ADXBannerWidth;    }    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {            case \'desktop\':                slotForDevice = \'3431196861\';                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 = \'3431196861\';                }                break;        }    }    if ((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}\');        }        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);    }</script>\"}, {\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum a8a263be\\" data-adsv-name=\\"\\"></div><script>var insertedElement = document.getElementById(\'ctstemp\');var zoneForDevice = \'\';var dataAdsvName = \'\';if (typeof deviceType !== \'undefined\') {    switch (deviceType) {        case \'desktop\':            zoneForDevice = \'${adv_zone_id_for_desktop}\';            dataAdsvName = \'${adverticum_name}\';            break;        case \'mobile\':            zoneForDevice = \'2771628\';            dataAdsvName = \'mobil_waterfall2\';            break;        case \'tablet\':            zoneForDevice = \'${adv_zone_id_for_tablet}\';            dataAdsvName = \'${adverticum_name_tablet}\';            if(dataAdsvName == \\"\\"){                dataAdsvName = \'${adverticum_name}\';            }            break;    }}if (zoneForDevice == \'\') {    insertedElement.parentNode.removeChild(insertedElement);} else {    insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);    insertedElement.id = \'zone\' + zoneForDevice;}</script>\"}]';
  this.positions_weighted['list-content020'] = false;
  
  this.positions['list-content030'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" style=\\"margin-top:15px;border-bottom:1px solid #e4e4e4;\\"></div><script type=\\"text/javascript\\">    var slotForDevice = \'\';    var gadxErr = false;    var dimensionForDevice = {        width: parseInt(640),        height: parseInt(120)    };    if (typeof ADXBannerWidth !== \'undefined\') {        dimensionForDevice.width = ADXBannerWidth;    }    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {            case \'desktop\':                slotForDevice = \'4349526861\';                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 = \'4349526861\';                }                break;        }    }    if ((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}\');        }        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);    }</script>\"}]';
  this.positions_weighted['list-content030'] = false;
  
  this.positions['list-content040'] = '[]';
  this.positions_weighted['list-content040'] = false;
  
  this.positions['list-content050'] = '[]';
  this.positions_weighted['list-content050'] = false;
  
  this.positions['list-content060'] = '[]';
  this.positions_weighted['list-content060'] = false;
  
  this.positions['list-content070'] = '[]';
  this.positions_weighted['list-content070'] = false;
  
  this.positions['list-content080'] = '[]';
  this.positions_weighted['list-content080'] = false;
  
  this.positions['content070'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'2457496\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'2457496\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['content070'] = false;
  
  this.positions['top'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum a8a263be\\" data-adsv-name=\\"\\"></div><script>var insertedElement = document.getElementById(\'ctstemp\');var zoneForDevice = \'\';var dataAdsvName = \'\';if (typeof deviceType !== \'undefined\') {    switch (deviceType) {        case \'desktop\':            zoneForDevice = \'1750444\';            dataAdsvName = \'top\';            break;        case \'mobile\':            zoneForDevice = \'3539239\';            dataAdsvName = \'mobil_waterfall1\';            break;        case \'tablet\':            zoneForDevice = \'1750444\';            dataAdsvName = \'${adverticum_name_tablet}\';            if(dataAdsvName == \\"\\"){                dataAdsvName = \'top\';            }            break;    }}if (zoneForDevice == \'\') {    insertedElement.parentNode.removeChild(insertedElement);} else {    insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);    insertedElement.id = \'zone\' + zoneForDevice;}</script>\"}]';
  this.positions_weighted['top'] = false;
  
  this.positions['right010'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum a8a263be\\" data-adsv-name=\\"\\"></div><script>var insertedElement = document.getElementById(\'ctstemp\');var zoneForDevice = \'\';var dataAdsvName = \'\';if (typeof deviceType !== \'undefined\') {    switch (deviceType) {        case \'desktop\':            zoneForDevice = \'561\';            dataAdsvName = \'box1\';            break;        case \'mobile\':            zoneForDevice = \'${adv_zone_id_for_mobile}\';            dataAdsvName = \'${adverticum_name_mobile}\';            break;        case \'tablet\':            zoneForDevice = \'561\';            dataAdsvName = \'${adverticum_name_tablet}\';            if(dataAdsvName == \\"\\"){                dataAdsvName = \'box1\';            }            break;    }}if (zoneForDevice == \'\') {    insertedElement.parentNode.removeChild(insertedElement);} else {    insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);    insertedElement.id = \'zone\' + zoneForDevice;}</script>\"}]';
  this.positions_weighted['right010'] = false;
  
  this.positions['top'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum a8a263be\\" data-adsv-name=\\"\\"></div><script>var insertedElement = document.getElementById(\'ctstemp\');var zoneForDevice = \'\';var dataAdsvName = \'\';if (typeof deviceType !== \'undefined\') {    switch (deviceType) {        case \'desktop\':            zoneForDevice = \'2252\';            dataAdsvName = \'top\';            break;        case \'mobile\':            zoneForDevice = \'3539239\';            dataAdsvName = \'${adverticum_name_mobile}\';            break;        case \'tablet\':            zoneForDevice = \'2252\';            dataAdsvName = \'${adverticum_name_tablet}\';            if(dataAdsvName == \\"\\"){                dataAdsvName = \'top\';            }            break;    }}if (zoneForDevice == \'\') {    insertedElement.parentNode.removeChild(insertedElement);} else {    insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);    insertedElement.id = \'zone\' + zoneForDevice;}</script>\"}]';
  this.positions_weighted['top'] = false;
  
  this.positions['content010'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum a8a263be\\" data-adsv-name=\\"\\"></div><script>var insertedElement = document.getElementById(\'ctstemp\');var zoneForDevice = \'\';var dataAdsvName = \'\';if (typeof deviceType !== \'undefined\') {    switch (deviceType) {        case \'desktop\':            zoneForDevice = \'1993505\';            dataAdsvName = \'roadblock\';            break;        case \'mobile\':            zoneForDevice = \'60307\';            dataAdsvName = \'mobil_waterfall1\';            break;        case \'tablet\':            zoneForDevice = \'1993505\';            dataAdsvName = \'\';            if(dataAdsvName == \\"\\"){                dataAdsvName = \'roadblock\';            }            break;    }}if (zoneForDevice == \'\') {    insertedElement.parentNode.removeChild(insertedElement);} else {    insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);    insertedElement.id = \'zone\' + zoneForDevice;}</script>\"}]';
  this.positions_weighted['content010'] = false;
  
  this.positions['body-end-adv'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'578\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'${adv_zone_id_for_tablet}\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['body-end-adv'] = false;
  
  this.positions['right040'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'1909225\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'1909225\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['right040'] = false;
  
  this.positions['content020'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'2941255\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'2941255\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['content020'] = false;
  
  this.positions['right050'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'1772922\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'1772922\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['right050'] = false;
  
  this.positions['right060'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'1697775\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'1697775\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['right060'] = false;
  
  this.positions['page-end'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"//ad.adverticum.net/g3.js\\"></script><script type=\\"text/javascript\\" class=\\"goa-inserterScript\\">    goAdverticum3.loadZones([{id: 3413875}]);</script><script type=\\"text/javascript\\" class=\\"goa-inserterScript\\">    goAdverticum3.insertBanner(3413875);</script>\"}]';
  this.positions_weighted['page-end'] = false;
  
  this.positions['list-content010'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum a8a263be\\" data-adsv-name=\\"\\"></div><script>var insertedElement = document.getElementById(\'ctstemp\');var zoneForDevice = \'\';var dataAdsvName = \'\';if (typeof deviceType !== \'undefined\') {    switch (deviceType) {        case \'desktop\':            zoneForDevice = \'${adv_zone_id_for_desktop}\';            dataAdsvName = \'${adverticum_name}\';            break;        case \'mobile\':            zoneForDevice = \'60307\';            dataAdsvName = \'mobil_waterfall1\';            break;        case \'tablet\':            zoneForDevice = \'${adv_zone_id_for_tablet}\';            dataAdsvName = \'${adverticum_name_tablet}\';            if(dataAdsvName == \\"\\"){                dataAdsvName = \'${adverticum_name}\';            }            break;    }}if (zoneForDevice == \'\') {    insertedElement.parentNode.removeChild(insertedElement);} else {    insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);    insertedElement.id = \'zone\' + zoneForDevice;}</script>\"}]';
  this.positions_weighted['list-content010'] = false;
  
  this.positions['list-content030'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum a8a263be\\" data-adsv-name=\\"\\"></div><script>var insertedElement = document.getElementById(\'ctstemp\');var zoneForDevice = \'\';var dataAdsvName = \'\';if (typeof deviceType !== \'undefined\') {    switch (deviceType) {        case \'desktop\':            zoneForDevice = \'${adv_zone_id_for_desktop}\';            dataAdsvName = \'${adverticum_name}\';            break;        case \'mobile\':            zoneForDevice = \'1728233\';            dataAdsvName = \'mobil_waterfall2\';            break;        case \'tablet\':            zoneForDevice = \'${adv_zone_id_for_tablet}\';            dataAdsvName = \'${adverticum_name_tablet}\';            if(dataAdsvName == \\"\\"){                dataAdsvName = \'${adverticum_name}\';            }            break;    }}if (zoneForDevice == \'\') {    insertedElement.parentNode.removeChild(insertedElement);} else {    insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);    insertedElement.id = \'zone\' + zoneForDevice;}</script>\"}, {\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" style=\\"margin-top:15px;border-bottom:1px solid #e4e4e4;\\"></div><script type=\\"text/javascript\\">    var slotForDevice = \'\';    var gadxErr = false;    var dimensionForDevice = {        width: parseInt(640),        height: parseInt(120)    };    if (typeof ADXBannerWidth !== \'undefined\') {        dimensionForDevice.width = ADXBannerWidth;    }    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {            case \'desktop\':                slotForDevice = \'4349526861\';                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 = \'4349526861\';                }                break;        }    }    if ((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}\');        }        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);    }</script>\"}]';
  this.positions_weighted['list-content030'] = false;
  
  this.positions['content030'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum a8a263be\\" data-adsv-name=\\"\\"></div><script>var insertedElement = document.getElementById(\'ctstemp\');var zoneForDevice = \'\';var dataAdsvName = \'\';if (typeof deviceType !== \'undefined\') {    switch (deviceType) {        case \'desktop\':            zoneForDevice = \'${adv_zone_id_for_desktop}\';            dataAdsvName = \'${adverticum_name}\';            break;        case \'mobile\':            zoneForDevice = \'1728233\';            dataAdsvName = \'mobil_waterfall2\';            break;        case \'tablet\':            zoneForDevice = \'${adv_zone_id_for_tablet}\';            dataAdsvName = \'${adverticum_name_tablet}\';            if(dataAdsvName == \\"\\"){                dataAdsvName = \'${adverticum_name}\';            }            break;    }}if (zoneForDevice == \'\') {    insertedElement.parentNode.removeChild(insertedElement);} else {    insertedElement.setAttribute(\'data-adsv-name\', dataAdsvName);    insertedElement.id = \'zone\' + zoneForDevice;}</script>\"}]';
  this.positions_weighted['content030'] = false;
  
  this.positions['content040'] = '[{\"service_name\": \"Sanoma/Hir24\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">        var ADXBannerWidthDefault = 640,        pageType = typeof ctsPageType !== \'undefined\' ? ctsPageType : \'notSet\';            switch (pageType) {        case \'category\':            ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.category-component-box.hir24-rovat.list-category\').css(\'width\');            break;        case \'other\':            if (location.pathname.indexOf(\'/tag/\') != -1){                ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.hir24-rovat.list-category > div.row > div.article.col-sm-8\').css(\'width\'); }            break;        case \'tag\':            ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.hir24-rovat.list-category > div.row > div.article.col-sm-8\').css(\'width\');            break;        case \'article\':            ADXBannerWidth = jQuery(\'div#page\').find(\'div#content\').find(\'div.col-md-8.hir24-post\').css(\'width\');            break;        default:            ADXBannerWidth = ADXBannerWidthDefault;    }    ADXBannerWidth = parseInt(ADXBannerWidth);    if (window.innerWidth < 670) ADXBannerWidth-=15;    if (isNaN(ADXBannerWidth) || ADXBannerWidth <= 0 || ADXBannerWidthDefault < ADXBannerWidth){        ADXBannerWidth = ADXBannerWidthDefault;    }</script>\"}, {\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" style=\\"display:table;margin:0 auto;\\"></div><script type=\\"text/javascript\\">    var slotForDevice = \'\';    var gadxErr = false;    var dimensionForDevice = {        width: parseInt(640),        height: parseInt(200)    };    if (typeof ADXBannerWidth !== \'undefined\') {        dimensionForDevice.width = ADXBannerWidth;    }    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {            case \'desktop\':                slotForDevice = \'7691505260\';                break;            case \'mobile\':                slotForDevice = \'3455364865\';                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 = \'7691505260\';                }                break;        }    }    if ((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}\');        }        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);    }</script>\"}]';
  this.positions_weighted['content040'] = false;
  
  this.positions['toothbrush-head'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'1835007\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'${adv_zone_id_for_tablet}\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['toothbrush-head'] = false;
  
  this.positions['toothbrush-handle'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"goAdverticum\\"></div><script>    var insertedElement = document.getElementById(\'ctstemp\');    var zoneForDevice = \'\';    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {                case \'desktop\':                    zoneForDevice = \'1835013\';                    break;                case \'mobile\':                    zoneForDevice = \'${adv_zone_id_for_mobile}\';                    break;                case \'tablet\':                    zoneForDevice = \'${adv_zone_id_for_tablet}\';                    break;        }    }    if (zoneForDevice == \'\') {\tinsertedElement.parentNode.removeChild(insertedElement);    } else {        insertedElement.id = \'zone\' + zoneForDevice;    }</script>\"}]';
  this.positions_weighted['toothbrush-handle'] = false;
  
  this.positions['unique-box-1'] = '[{\"service_name\": \"Sanoma/Hir24\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">jQuery( document ).ready(function( $ ) {    $(\'#horizontal-tag-widget_unique-box-1\').css(\'background\', \'transparent url(\\"http://24.p3k.hu/app/uploads/horizontal_tag_widget/muv_volgye_background.png\\") no-repeat top center\');    $(\'#horizontal-tag-widget_unique-box-1\').css(\'padding-top\', \'92px\').css(\'margin-bottom\', \'15px\');});</script>\"}]';
  this.positions_weighted['unique-box-1'] = false;
  
  this.positions['unique-box-2'] = '[{\"service_name\": \"Sanoma/Hir24\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">jQuery( document ).ready(function( $ ) {    $(\'#horizontal-tag-widget_unique-box-2\').css(\'background\', \'transparent url(\\"http://24.p3k.hu/app/uploads/horizontal_tag_widget/everness_background.jpg\\") no-repeat top center\');    $(\'#horizontal-tag-widget_unique-box-2\').css(\'padding-top\', \'50px\').css(\'margin-bottom\', \'15px\');});</script>\"}]';
  this.positions_weighted['unique-box-2'] = false;
  
  this.positions['unique-box-3'] = '[{\"service_name\": \"Sanoma/Hir24\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\">jQuery( document ).ready(function( $ ) {    $(\'#horizontal-tag-widget_unique-box-3\').css(\'background\', \'transparent url(\\"http://24.p3k.hu/app/uploads/horizontal_tag_widget/tudta-background.png\\") no-repeat top center\');    $(\'#horizontal-tag-widget_unique-box-3\').css(\'padding-top\', \'80px\').css(\'margin-bottom\', \'15px\');});</script>\"}]';
  this.positions_weighted['unique-box-3'] = false;
  
  this.positions['page-end'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"//ad.adverticum.net/g3.js\\"></script><script type=\\"text/javascript\\" class=\\"goa-inserterScript\\">    goAdverticum3.loadZones([{id: 3413875}]);</script><script type=\\"text/javascript\\" class=\\"goa-inserterScript\\">    goAdverticum3.insertBanner(3413875);</script>\"}]';
  this.positions_weighted['page-end'] = false;
  
  this.positions['right-bottom'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" style=\\"display:table;margin:0 auto;\\"></div><script type=\\"text/javascript\\">    var slotForDevice = \'\';    var gadxErr = false;    var dimensionForDevice = {        width: parseInt(305),        height: parseInt(250)    };    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {            case \'desktop\':                slotForDevice = \'2741490865\';                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 = \'2741490865\';                }                break;        }        try {        } catch(err) {            gadxErr = true;        }    }    if ((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}\');        }        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);    }</script>\"}]';
  this.positions_weighted['right-bottom'] = false;
  
  this.positions['article010'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"a8a263be\\" data-adsv-name=\\"\\"></div><script>var _cllq = _cllq || [];var _cLazyAd = {    \'placeholder\': document.getElementById(\'ctstemp\'),    \'zoneForDevice\': \'\',    \'dataAdsvName\': \'\'};if (typeof deviceType !== \'undefined\') {    switch (deviceType) {        case \'desktop\':            _cLazyAd.zoneForDevice = \'4107157\';            _cLazyAd.dataAdsvName = \'roadblock2\';            break;        case \'mobile\':            _cLazyAd.zoneForDevice = \'${adv_zone_id_for_mobile}\';            _cLazyAd.dataAdsvName = \'${adverticum_name_mobile}\';            break;        case \'tablet\':            _cLazyAd.zoneForDevice = \'${adv_zone_id_for_tablet}\';            _cLazyAd.dataAdsvName = ( \'${adverticum_name_tablet}\' != \'\' ? \'${adverticum_name_tablet}\' : \'roadblock2\');            break;    }}if (_cLazyAd.zoneForDevice == \'\') {    _cLazyAd.placeholder.parentNode.removeChild(_cLazyAd.placeholder);} else {    _cllq.push(_cLazyAd.zoneForDevice);    _cLazyAd.placeholder.setAttribute(\'data-adsv-name\', _cLazyAd.dataAdsvName);    _cLazyAd.placeholder.id = \'lazy\' + _cLazyAd.zoneForDevice;}_cLazyAd = undefined;</script>\"}]';
  this.positions_weighted['article010'] = false;
  
  this.positions['article020'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"a8a263be\\" data-adsv-name=\\"\\"></div><script>var _cllq = _cllq || [];var _cLazyAd = {    \'placeholder\': document.getElementById(\'ctstemp\'),    \'zoneForDevice\': \'\',    \'dataAdsvName\': \'\'};if (typeof deviceType !== \'undefined\') {    switch (deviceType) {        case \'desktop\':            _cLazyAd.zoneForDevice = \'4107158\';            _cLazyAd.dataAdsvName = \'roadblock3\';            break;        case \'mobile\':            _cLazyAd.zoneForDevice = \'${adv_zone_id_for_mobile}\';            _cLazyAd.dataAdsvName = \'${adverticum_name_mobile}\';            break;        case \'tablet\':            _cLazyAd.zoneForDevice = \'${adv_zone_id_for_tablet}\';            _cLazyAd.dataAdsvName = ( \'${adverticum_name_tablet}\' != \'\' ? \'${adverticum_name_tablet}\' : \'roadblock3\');            break;    }}if (_cLazyAd.zoneForDevice == \'\') {    _cLazyAd.placeholder.parentNode.removeChild(_cLazyAd.placeholder);} else {    _cllq.push(_cLazyAd.zoneForDevice);    _cLazyAd.placeholder.setAttribute(\'data-adsv-name\', _cLazyAd.dataAdsvName);    _cLazyAd.placeholder.id = \'lazy\' + _cLazyAd.zoneForDevice;}_cLazyAd = undefined;</script>\"}]';
  this.positions_weighted['article020'] = false;
  
  this.positions['article030'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"a8a263be\\" data-adsv-name=\\"\\"></div><script>var _cllq = _cllq || [];var _cLazyAd = {    \'placeholder\': document.getElementById(\'ctstemp\'),    \'zoneForDevice\': \'\',    \'dataAdsvName\': \'\'};if (typeof deviceType !== \'undefined\') {    switch (deviceType) {        case \'desktop\':            _cLazyAd.zoneForDevice = \'4107159\';            _cLazyAd.dataAdsvName = \'roadblock4\';            break;        case \'mobile\':            _cLazyAd.zoneForDevice = \'${adv_zone_id_for_mobile}\';            _cLazyAd.dataAdsvName = \'${adverticum_name_mobile}\';            break;        case \'tablet\':            _cLazyAd.zoneForDevice = \'${adv_zone_id_for_tablet}\';            _cLazyAd.dataAdsvName = ( \'${adverticum_name_tablet}\' != \'\' ? \'${adverticum_name_tablet}\' : \'roadblock4\');            break;    }}if (_cLazyAd.zoneForDevice == \'\') {    _cLazyAd.placeholder.parentNode.removeChild(_cLazyAd.placeholder);} else {    _cllq.push(_cLazyAd.zoneForDevice);    _cLazyAd.placeholder.setAttribute(\'data-adsv-name\', _cLazyAd.dataAdsvName);    _cLazyAd.placeholder.id = \'lazy\' + _cLazyAd.zoneForDevice;}_cLazyAd = undefined;</script>\"}]';
  this.positions_weighted['article030'] = false;
  
  this.positions['article040'] = '[{\"service_name\": \"Adverticum AdServer\", \"weight\": null, \"source\": \"<div id=\\"ctstemp\\" class=\\"a8a263be\\" data-adsv-name=\\"\\"></div><script>var _cllq = _cllq || [];var _cLazyAd = {    \'placeholder\': document.getElementById(\'ctstemp\'),    \'zoneForDevice\': \'\',    \'dataAdsvName\': \'\'};if (typeof deviceType !== \'undefined\') {    switch (deviceType) {        case \'desktop\':            _cLazyAd.zoneForDevice = \'4107160\';            _cLazyAd.dataAdsvName = \'roadblock5\';            break;        case \'mobile\':            _cLazyAd.zoneForDevice = \'${adv_zone_id_for_mobile}\';            _cLazyAd.dataAdsvName = \'${adverticum_name_mobile}\';            break;        case \'tablet\':            _cLazyAd.zoneForDevice = \'${adv_zone_id_for_tablet}\';            _cLazyAd.dataAdsvName = ( \'${adverticum_name_tablet}\' != \'\' ? \'${adverticum_name_tablet}\' : \'roadblock5\');            break;    }}if (_cLazyAd.zoneForDevice == \'\') {    _cLazyAd.placeholder.parentNode.removeChild(_cLazyAd.placeholder);} else {    _cllq.push(_cLazyAd.zoneForDevice);    _cLazyAd.placeholder.setAttribute(\'data-adsv-name\', _cLazyAd.dataAdsvName);    _cLazyAd.placeholder.id = \'lazy\' + _cLazyAd.zoneForDevice;}_cLazyAd = undefined;</script>\"}]';
  this.positions_weighted['article040'] = false;
  
  this.positions['article050'] = '[]';
  this.positions_weighted['article050'] = false;
  
  this.positions['right020'] = '[]';
  this.positions_weighted['right020'] = false;
  
  this.positions['content060'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" style=\\"display:table;margin:0 auto;\\"></div><script type=\\"text/javascript\\">    var slotForDevice = \'\';    var gadxErr = false;    var dimensionForDevice = {        width: parseInt(640),        height: parseInt(200)    };    if (typeof ADXBannerWidth !== \'undefined\') {        dimensionForDevice.width = ADXBannerWidth;    }    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {            case \'desktop\':                slotForDevice = \'1021414463\';                break;            case \'mobile\':                slotForDevice = \'5545685664\';                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 = \'1021414463\';                }                break;        }    }    if ((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}\');        }        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);    }</script>\"}]';
  this.positions_weighted['content060'] = false;
  
  this.positions['right-bottom'] = '[{\"service_name\": \"Google Adverts\", \"weight\": null, \"source\": \"<div id=\\"ctsGadxTemp\\" class=\\"ctsGadx\\" style=\\"display:table;margin:0 auto;\\"></div><script type=\\"text/javascript\\">    var slotForDevice = \'\';    var gadxErr = false;    var dimensionForDevice = {        width: parseInt(305),        height: parseInt(250)    };    if (typeof deviceType !== \'undefined\') {        switch (deviceType) {            case \'desktop\':                slotForDevice = \'3659820864\';                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 = \'3659820864\';                }                break;        }        try {        } catch(err) {            gadxErr = true;        }    }    if ((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}\');        }        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);    }</script>\"}]';
  this.positions_weighted['right-bottom'] = 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;
}



