if ( typeof(window.espr_totalStorage) == 'undefined' ) { // Storage in both: cookies and localStorage window.espr_postMessage = function(target, data, origin) { target.postMessage(data, origin); }; window.espr_totalStorage = { localStoreSupport: function() { try { return 'localStorage' in window && window['localStorage'] !== null; } catch (e) { return false; } }, set: function(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else { var expires = ""; } if( this.localStoreSupport() ) { localStorage.setItem(name, value); } document.cookie = name+"="+value+expires+"; path=/"; }, get: function(name) { var ret; if( this.localStoreSupport() ) { ret = localStorage.getItem(name); } if (!ret) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) { ret = c.substring(nameEQ.length,c.length); switch (ret) { case 'true': ret = true; break; case 'false': ret = false; break; } } } } //console.log(ret); return ret; }, del: function(name) { this.set(name,"",-1); if( this.localStoreSupport() ) { localStorage.removeItem(name); } } }; }; (function() { var gp_1290862052 = function() { var np = '6698217a-0d49-43f3-9e20-cdd12fc3f839'; var s = window.espr_totalStorage; var p = s.get('ESPST'); if ( !p && np ) { s.set('ESPST', np); p = np; } return p; }; var ifr_id = 'espr_a_ifr_1290862052', div_id = 'espr_a_div_1290862052', passport = gp_1290862052(); document.write('
'); var ads = { "ads_id": "122", "campaign_id": "11", "type": "metrica", "width": "0", "height": "0", "redirect_script": "re.php", "show_script": "js.php", "main_domain": "espresso-reklam.eu", "banner_code": "Yz0xMzMwMzU0MTkzJnB1Ymxpc2hlcl9pZD0yJmJhbm5lcl9pZD0xMjImY2FtcGFpZ25faWQ9MTE" } var hit_uri = location.protocol + '//' + ads.main_domain + '/_1290862052/' + ads.show_script + '?code=' + ads.banner_code + '&mode=hit&ESPST='+passport; var ifr = document.createElement('IFRAME'); ifr.id = ifr_id; ifr.src = hit_uri; ifr.setAttribute('frameborder', 0); ifr.setAttribute('scrolling', 'no'); ifr.setAttribute('width', ads.width); ifr.setAttribute('height', ads.height); var d = document.getElementById(div_id); if ( d ) { ifr.name = passport; d.appendChild(ifr); } })();