function AdFox_SetLayerVis(e,t){document.getElementById(e).style.visibility=t}function AdFox_Open(e){AdFox_SetLayerVis("AdFox_DivBaseFlash_"+e,"hidden"),AdFox_SetLayerVis("AdFox_DivOverFlash_"+e,"visible")}function AdFox_Close(e){AdFox_SetLayerVis("AdFox_DivOverFlash_"+e,"hidden"),AdFox_SetLayerVis("AdFox_DivBaseFlash_"+e,"visible")}function adfoxSdvigContent(e,t,n){var i=document.getElementById("adfoxBanner"+e).style;"100%"==t?i.width=t:i.width=t+"px","100%"==n?i.height=n:i.height=n+"px"}function adfoxVisibilityFlash(e,t,n){var i=document.getElementById(e).style;"100%"==t?i.width=t:i.width=t+"px","100%"==n?i.height=n:i.height=n+"px"}function adfoxStart(e,t,n,i,o,r,a,d){1==t?adfoxVisibilityFlash("adfoxFlash1"+e,o,r):2==t&&(adfoxVisibilityFlash("adfoxFlash2"+e,a,d),"yes"==n&&adfoxVisibilityFlash("adfoxFlash1"+e,o,r),"yes"==i?adfoxSdvigContent(e,a,d):adfoxSdvigContent(e,o,r))}function adfoxOpen(e,t,n,i,o){var r=new Image,a=document.getElementById("aEventOpen"+e);a&&(r.src=a.title+"&rand="+1e6*Math.random()+"&prb="+1e6*Math.random()),adfoxVisibilityFlash("adfoxFlash2"+e,i,o),"yes"!=t&&adfoxVisibilityFlash("adfoxFlash1"+e,1,1),"yes"==n&&adfoxSdvigContent(e,i,o)}function adfoxClose(e,t,n,i,o){var r=new Image,a=document.getElementById("aEventClose"+e);a&&(r.src=a.title+"&rand="+1e6*Math.random()+"&prb="+1e6*Math.random()),adfoxVisibilityFlash("adfoxFlash2"+e,1,1),"yes"!=t&&adfoxVisibilityFlash("adfoxFlash1"+e,i,o),"yes"==n&&adfoxSdvigContent(e,i,o)}window._top100q=window._top100q||[],window._top100q.push(["ae7.setAccount","3146510"]),function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src=("https:"==document.location.protocol?"https:":"http:")+"//st.top100.ru/top100/top100.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}(),function(){if("undefined"!=typeof _montblanc)var e=!0;else{var e=!1;console.log("_montblanc doesnt included")}if("undefined"==typeof window.Adf){var t={};t.dom={},t.counter=1,t.util={VERSION:1,START_TIME:new Date,debugBase:-1!==window.location.search.indexOf("adfox_debug=1"),debugExtend:-1!==window.location.search.indexOf("adfox_debug=2"),nolimits:-1!==window.location.search.indexOf("adFox_nolimits=1"),DOC_READY:!1,CRTG_CONTENT:"function"==typeof crtg_getCookie?crtg_getCookie(crtg_cookiename):"",getBodyScrollTop:function(e){var t=e||window;return t.pageYOffset||t.document.documentElement&&t.document.documentElement.scrollTop||t.document.body&&t.document.body.scrollTop},getBodyScrollLeft:function(e){var t=e||window;return t.pageXOffset||t.document.documentElement&&t.document.documentElement.scrollLeft||t.document.body&&t.document.body.scrollLeft},trackPixel:function(e){var t=e,n=new Image;""!=t&&(n.src=t,t="")},getElementPosition:function(e,t){var n=t||document,i=n.getElementById(e),o={};if(i){for(o.width=i.offsetWidth,o.height=i.offsetHeight,o.left=0,o.top=0;i;)o.left+=i.offsetLeft,o.top+=i.offsetTop,i=i.offsetParent;return o}return!1},createScript:function(e,t,n){var i=n||document,o=i.createElement("script");return o.src=e,o.type="text/javascript",o.async=!!t,o},insertScript:function(e,t){var n=t||document,i=n.getElementsByTagName("script")[0];i.parentNode.insertBefore(e,i)},getProtocol:function(e){var t=e||document;return"https:"==t.location.protocol?"https:":"http:"},getScreenSize:function(){var e="",t="";if(self.screen)t=screen.width,e=screen.height;else if(self.java){var n=java.awt.Toolkit.getDefaultToolkit(),i=n.getScreenSize();t=i.width,e=i.height}return t&&e?[t,e]:["",""]},getWindowSize:function(e){var t,n,i=e||window;return"number"==typeof i.innerWidth?(t=i.innerWidth,n=i.innerHeight):i.document.documentElement&&(i.document.documentElement.clientWidth||i.document.documentElement.clientHeight)?(t=i.document.documentElement.clientWidth,n=i.document.documentElement.clientHeight):i.document.body&&(i.document.body.clientWidth||i.document.body.clientHeight)&&(t=i.document.body.clientWidth,n=i.document.body.clientHeight),{width:t,height:n}},getDate:function(){var e=new Date;return{date:e.getDate(),day:e.getDay(),hour:e.getHours()}},wrapScript:function(e){return'"},createElement:function(e,t,n,i){var o=i||document,r=o.createElement(e);return"string"==typeof t&&r.setAttribute("id",t),"string"==typeof n&&(r.className+=n),r},getCodeScript:function(e,n,i,o,r){var a;if(10>e){try{document.all&&!window.opera?a=window.frames[i].document:document.getElementById&&(a=document.getElementById(i).contentDocument)}catch(d){}!a||"complete"!=a.readyState&&"interactive"!=a.readyState?setTimeout(function(){t.util.getCodeScript(++e,n,i)},100):(a.write(''),t.inner.checkBannerLoaded(o,r,1))}else 10==e&&(window.console.log("Can not access to frameDocument && frameWindow; id = "+i),t.inner.checkBannerLoaded(o,r,0))},createAdIframe:function(e,t){var n=t||document,i=n.createElement("iframe");return i.setAttribute("id",e),i.setAttribute("marginwidth","0"),i.setAttribute("marginheight","0"),i.setAttribute("scrolling","no"),i.setAttribute("frameBorder","0"),i.setAttribute("width","1"),i.setAttribute("height","1"),i.style.position="absolute",i},getReferrer:function(){if("undefined"!=typeof document.referrer){if("undefined"==typeof e)var e=escape(document.referrer)}else var e="";return e},ajaxLoad:function(e,t,n,i){try{i=new(window.XMLHttpRequest||ActiveXObject)("MSXML2.XMLHTTP.3.0"),i.open(n?"POST":"GET",e,1),i.onreadystatechange=function(){i.readyState>3&&t&&t(i.responseText,i)},i.send(n)}catch(o){window.console&&console.log(o)}},viewAbility:{create:function(e,n,i,o){var r=this,a=t.util.viewAbility.stack;new Object;return this._mark=!0,this.urlEvent=n,this.object=parent.document.getElementById("AdFox_banner_"+e).parentNode,this.random=e,this.time="undefined"!=typeof i?i:2e3,this.percentM="undefined"!=typeof o?o:50,this.debugMode=!1,this.debug=function(e,t,n){return this.debugMode&&"err"==e?console.warn(t,n)||function(){throw new Error("system error")}():!this.debugMode||"info"!=e&&"exit"!=e?!1:console.info(t,n)},this.win=new Object,this._cr=new Object,this._getAbsPercent=function(){var e=this.getPercent();return 0>e?!1:e>1?!1:e},this.insertPixel=function(t){for(var n=0;nr._cr.start._screen&&r._cr.end._screen>r._cr.end.banner,r.viewPercent=100*r.getPercent(),r.viewable=r.viewPercent>r.percentM?!0:!1,this._mark||(a[e].veiwPercent=r.viewPercent<0?"0%":Math.round(r.viewPercent)+"%"),r.viewable},this.addEvent=function(e,t,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t[e]=n,!0},this.removeEvent=function(e,t,n){return t.detachEvent?(t.detachEvent("on"+e,t[e+n]),t[e+n]=null):t.removeEventListener(e,n,!1),!0},this.selfInit=function(){try{return function(e,t){return r.debugMode=e||t,!0}(t.util.debugBase,t.util.debugExtend)&&r.checkInputVar()&&r.addEvent("scroll",document,r.init)&&r._time.checkTiming()&&r.init()||r}catch(e){return this.debug("exit","viewAbility: I am dead... WHY?? "+e.message)}},this.checkView=function(){r.viewable?r._time._vTimet&&(t=banner.priority);return n>0?t+1:0},show_b:function(e,n,i,o,r,a,d,c,l,u){if("begun_test"==a){var s=Math.floor(1e13*Math.random()),f="renderBegunResponse"+s;window[f]=function(e){d.puid52=t.inner.getBegunLevel(e),d.puid53=e.params.impression_id;new Date;t.banner.show(a,d,l)};var p="//ssp.rambler.ru/context.jsp?pad_id="+c["begun-auto-pad"]+"&block_id="+c["begun-block-id"]+"&json=1&callback="+f+"&first=1&rq_sess="+s+"&secure="+("https:"==document.location.protocol?"1":"0")+"&real_refer="+document.location.href,m=typeof a;if("string"==m)var g=document.getElementById(a);else if("object"==m)var g=a;var h=t.util.createScript(p,!0);g?g.appendChild(h):(console.log("adfox can not insert Begun auction request. Start ordinary adfox adcall"),t.banner.show(a,d,l))}else t.util.debugExtend&&console.log("before_begun_check_call: adCall = "+o+"; bid = "+c["begun-block-id"]+"; div_id = "+a+"; unic_id = "+i),20>r?u.Begun&&u.Begun.Autocontext&&u.Begun.Autocontext.addBlock?Begun.Autocontext.addBlock(c,function(e,r,u){d.puid52=e,d.puid53=r,t.util.debugExtend&&console.log("before_ban_call: adCall = "+o+"; bid = "+c["begun-block-id"]+"; div_id = "+a+"; unic_id = "+i);var s=new Date,f=s-n;t.util.debugExtend&&console.log("begun_callback_time : "+f+"; adCall = "+o+"; bid = "+c["begun-block-id"]+"; div_id = "+a+"; unic_id = "+i),t.banner.show(a,d,l,function(e,t){new Date}),t.util.debugExtend&&console.log("after_ban_call: adCall = "+o+"; bid = "+c["begun-block-id"]+"; div_id = "+a+"; unic_id = "+i)}):setTimeout(function(){t.inner.show_b(e,n,i,o,++r,a,d,c,l,u)},100):(t.util.debugExtend&&console.log("win.Begun.Autocontext.addBlock is not defined.; div_id = "+a),t.banner.show(a,d,l)),t.util.debugExtend&&console.log("after_begun_check_call: adCall = "+o+"; bid = "+c["begun-block-id"]+"; div_id = "+a+"; unic_id = "+i)},ssp:function(e,n,i,o,r){20>n?"undefined"!=typeof r.Begun&&r.Begun.Autocontext&&r.Begun.Autocontext.addBlock?Begun.Autocontext.addBlock(o,function(n,r,a){var d=new Date,c=d-e;t.util.trackPixel("//rcounter.rambler.ru/count?v=0.1&id=144&pid=1&path="+o.params.p1+".d"+t.inner.returnTimeInterval(c)),Begun.Autocontext.showAd(i,r,0)}):setTimeout(function(){t.inner.ssp(e,++n,i,o,r)},100):(t.util.debugExtend&&console.log("win.Begun.Autocontext.addBlock is not defined.; div_id = "+i),t.util.trackPixel("//rcounter.rambler.ru/count?v=0.1&id=143&pid=1&path="+o.params.p1),t.banner.show(i,o.params))},checkBannerLoaded:function(e,t,n){"function"==typeof t&&t(e,n)},getMonblanc:function(t){return e?_montblanc.get(t,""):""},returnTimeInterval:function(e){return 500>e?"05":e>=500&&1e3>e?"0510":e>=1e3&&1500>e?"1015":e>=1500&&2e3>e?"1520":e>=2e3&&2500>e?"2025":e>=2500&&3e3>e?"2530":e>=3e3&&4e3>e?"3040":e>=4e3&&5e3>e?"4050":e>=5e3?"50":void 0}},t.banner={needReload:!1,account_id:171817,pr:Math.floor(1e6*Math.random()),dl:escape(document.location),montblanc:{puid3:t.inner.getMonblanc("4i"),puid4:t.inner.getMonblanc("c6"),puid11:t.inner.getMonblanc("dd"),puid22:t.inner.getMonblanc("y1"),puid33:t.inner.getMonblanc("bj"),puid37:t.inner.getMonblanc("k4"),puid38:t.inner.getMonblanc("x3"),puid55:t.inner.getMonblanc("bz"),puid56:t.inner.getMonblanc("hj"),puid57:t.inner.getMonblanc("tk"),eid1:t.inner.getMonblanc("uid")},show:function(e,n,i,o){var r=typeof e;if("function"==typeof i&&(o=i),"string"==r)var a=document.getElementById(e);else if("object"==r)var a=e;t.util.nolimits&&(n.pli="a",n.plp="a",n.pop="a");var d=Math.floor(1e6*Math.random()),c=Math.floor(1e6*Math.random()),l="",u=t.util.createElement("div","AdFox_banner_"+d,i),s=t.util.createAdIframe("AdFox_iframe_"+d),f=t.banner.needReload?Math.floor(1e6*Math.random()):t.banner.pr,p=t.util.getProtocol()+"//ads.adfox.ru/"+(n.account_id?n.account_id:t.banner.account_id)+"/prepareCode?pfc="+(n.pfc?n.pfc:"a")+"&pfb="+(n.pfb?n.pfb:"a")+"&pt=b&pd="+t.util.getDate().date+"&pw="+t.util.getDate().day+"&pv="+t.util.getDate().hour+"&prr="+t.util.getReferrer()+"&pdw="+t.util.getScreenSize()[0]+"&pdh="+t.util.getScreenSize()[1]+"&dl="+t.banner.dl+"&pr1="+d+"&random="+c+"&pr="+f;for(var m in t.banner.montblanc)p+="&"+m+"="+t.banner.montblanc[m];if("undefined"!=typeof af_lpdId&&null!=af_lpdId&&(p+="&lpdid="+af_lpdId),"object"==typeof n)for(var m in n)if("criteo"==m&&null!=n[m]){if(t.util.CRTG_CONTENT){for(var g=n[m].split(","),h=[],b=0;b