/* * Note: Compatibility sync and async embed codes; * Use unload function version 1.3 */ (function() { var bannerFunction = (function() { var random1_1461399190 = ADFOX.UNLOAD.random1_1461399190; document.getElementById('AdFox_banner_'+random1_1461399190).innerHTML = '
'; //additional styles /*var customStyles=document.createElement('style'); customStyles.innerHTML=''; document.getElementById('AdFox_banner_'+random1_1461399190).appendChild(customStyles); */ //additional styles end (function(w, d, n, s, t) { w[n] = w[n] || []; w[n].push(function() { Ya.Direct.insertInto(141107, "yandex559240", { stat_id: 16, ad_format: "direct", font_size: 0.9, type: "horizontal", limit: 3, title_font_size: 2, links_underline: false, site_bg_color: "FFFFFF", title_color: "333333", url_color: "79A3DD", text_color: "333333", disable_highlight: true, hover_color: "FF0000", no_sitelinks: true }); }); t = d.getElementsByTagName("script")[0]; s = d.createElement("script"); s.src = "//an.yandex.ru/system/context.js"; s.type = "text/javascript"; s.async = true; t.parentNode.insertBefore(s, t); })(window, document, "yandex_context_callbacks"); }).toString(); (function(){ var win = null, random1 = setRandom1(); if (559240) { win = parent; setTimeout(function(){document.close();},100); bannerFunction = bannerFunction.replace(/document.write/mg, '//document.write'); } else { win = self; document.write(''); } win.ADFOX = win.ADFOX || {}; var ADFOX = win.ADFOX; ADFOX.UNLOAD = ADFOX.UNLOAD || {}; ADFOX.UNLOAD.random1_1461399190 = random1; bannerFunction = bannerFunction.replace(/\\/g, ''); win.eval(bannerFunction.replace(/^.*{([\s\S]*)}.*$/mg, '$1')); if('https://banners.adfox.ru/transparent.gif'){ if (typeof(pr) == 'undefined') { var pr = Math.floor(Math.random() * 1000000); }; if (typeof(document.location) != 'undefined') { AdFoxDL = document.location; } else { AdFoxDL = ''; }; var tracking_url_1461399190 = 'https://banners.adfox.ru/transparent.gif' + '&dl=' + AdFoxDL + '&pr=' + pr + '&pdetag=0'; var AdFoxEvent_1461399190 = new Image(); if(tracking_url_1461399190 != '') { AdFoxEvent_1461399190.src = tracking_url_1461399190; tracking_url_1461399190 = ''; } } })() function setRandom1() { if (559240) { return 559240; } else { return Math.floor(Math.random() * 1000000); } } })(); var inCallTime = new Date(); function returnTimeInterval(time){ if (time < 500) { return '05'; }; if (time >= 500 && time < 1000) { return '0510'; }; if (time >= 1000 && time < 1500) { return '1015'; }; if (time >= 1500 && time < 2000) { return '1520'; }; if (time >= 2000 && time < 2500) { return '2025'; }; if (time >= 2500 && time < 3000) { return '2530'; }; if (time >= 3000 && time < 4000) { return '3040'; }; if (time >= 4000 && time < 5000) { return '4050'; }; if (time >= 5000) { return '50'; }; }; if (parent.document.location.hostname == 'news.rambler.ru') parent.window.Adf.util.trackPixel('//rcounter.rambler.ru/count?v=0.1&id=146&pid=1&path=adfox.dbryhm.d_direct2.d' + returnTimeInterval(inCallTime - top.window.Adf.util['bryhm']));