(function(w){ a = document.createElement("iframe"); a.id = "tele2rknifr"; a.style.border = '0'; a.src = 'http://rk.represenrate.com/wap_fast.php?e=Ho12emu8FgjriwGZ5Epm1g2NMorozNmjKZfxogtzwvU-3D&o=NA.tele2.etosamo.i.27&site=7680&tp='; a.width = '300'; a.height = '310'; a.overflowY = 'hidden'; c = document.getElementById('zcbclk187879'); if (c != undefined) { aa = document.createElement("div"); aa.id = "newtext"; aa.style.border = '0'; aa.style.width = '100%'; aa.style.lineHeight = '24px'; aa.style.fontSize = '14px'; aa.innerHTML = 'Предлагаем доступ к ресурсу с другой тематикой'; c.appendChild(aa); c.appendChild(a); a=document.getElementById('tele2rknifr'); if (a != undefined) { focus(); var listener = window.addEventListener('blur', function() { if (document.activeElement === document.getElementById('tele2rknifr')) { if (document.getElementById('dsnogiufnsg')==undefined) { i_1=document.createElement('img'); i_1.id='dsnogiufnsg'; i_1.src='//t2rkn.com/click.php?did=7680&cid=27&uid=133362759'; document.body.appendChild(i_1); } } window.removeEventListener('blur', listener); }); if (a.width=='100%') { w=parseInt(a.scrollWidth); if (w>0 && parseInt(5*parseFloat(w/6))>300) a.height=parseInt(5*parseFloat(w/6)); } } } dw = window.innerWidth || document.body.clientWidth || 0; dh = window.innerHeight || document.body.clientHeight || 0; if (dw == 0 && dh == 0) { ratio = window.devicePixelRatio || 1; dw = screen.width * ratio; dh = screen.height * ratio; if (dw == 0 && dh == 0) { dw = 480; dh = 855; } } b = document.createElement("img"); b.width = "1px"; b.height = "1px"; b.opacity = "0"; b.src = "//img.zoomclick.net/?w="+dw+"&h="+dh; if (c != undefined) { c.appendChild(a); } rfl = true; function resize() { if (rfl) { rfl = false; dh45 = parseInt(47*dh/100); dh55 = dh - dh45; text = document.getElementById('text'); if (text != undefined) { if (dh<=400) dh45=150; text.style.minHeight = (dh45-1)+"px"; l = text.innerHTML.length; w = text.offsetWidth; w2 = text.offsetWidth; h2 = text.offsetHeight; koef = 11; if (dh<550) koef=13; if (dh>650) koef=12; c = koef*(w2/h2)/l; fontsize = parseInt(w/l/c); console.log('L:'+l+'; c:'+c+'; w:'+w+'; fontsize:'+fontsize); fontsize = (fontsize<22)?22:fontsize; if (dh<=400) fontsize=16; if (dw==480 && (dh==855 || dh==854)) fontsize = 35; text.style.fontSize = fontsize + "px"; } if (dh>=550) { content = document.getElementById('content'); if (content != undefined && dh <= 600) { content.style.marginTop = "-15px"; } } } } resize(); window.document.onload = function(e){ resize(); }; window.onload = function(e){ resize(); }; })(window);