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 o=document.getElementById("adfoxBanner"+e).style;o.width="100%"==t?t:t+"px",o.height="100%"==n?n:n+"px"}function adfoxVisibilityFlash(e,t,n){var o=document.getElementById(e).style;o.width="100%"==t?t:t+"px",o.height="100%"==n?n:n+"px"}function adfoxStart(e,t,n,o,i,a,r,d){1==t?adfoxVisibilityFlash("adfoxFlash1"+e,i,a):2==t&&(adfoxVisibilityFlash("adfoxFlash2"+e,r,d),"yes"==n&&adfoxVisibilityFlash("adfoxFlash1"+e,i,a),"yes"==o?adfoxSdvigContent(e,r,d):adfoxSdvigContent(e,i,a))}function adfoxOpen(e,t,n,o,i){var a=new Image,r=document.getElementById("aEventOpen"+e);r&&(a.src=r.title+"&rand="+1e6*Math.random()+"&prb="+1e6*Math.random()),adfoxVisibilityFlash("adfoxFlash2"+e,o,i),"yes"!=t&&adfoxVisibilityFlash("adfoxFlash1"+e,1,1),"yes"==n&&adfoxSdvigContent(e,o,i)}function adfoxClose(e,t,n,o,i){var a=new Image,r=document.getElementById("aEventClose"+e);r&&(a.src=r.title+"&rand="+1e6*Math.random()+"&prb="+1e6*Math.random()),adfoxVisibilityFlash("adfoxFlash2"+e,1,1),"yes"!=t&&adfoxVisibilityFlash("adfoxFlash1"+e,o,i),"yes"==n&&adfoxSdvigContent(e,o,i)}!function(){var e={};e.dom={},e.util={DOC_READY:!1,CRTG_CONTENT:"",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},getElementPosition:function(e,t){var n=t||document,o=n.getElementById(e),i={};for(i.width=o.offsetWidth,i.height=o.offsetHeight,i.left=0,i.top=0;o;)i.left+=o.offsetLeft,i.top+=o.offsetTop,o=o.offsetParent;return i},createScript:function(e,t,n){var o=n||document,i=o.createElement("script");return i.src=e,i.type="text/javascript",i.async=!!t,i},insertScript:function(e,t){var n=t||document,o=n.getElementsByTagName("script")[0];o.parentNode.insertBefore(e,o)},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(),o=n.getScreenSize();t=o.width,e=o.height}return t&&e?[t,e]:["",""]},getWindowSize:function(e){var t,n,o=e||window;return"number"==typeof o.innerWidth?(t=o.innerWidth,n=o.innerHeight):o.document.documentElement&&(o.document.documentElement.clientWidth||o.document.documentElement.clientHeight)?(t=o.document.documentElement.clientWidth,n=o.document.documentElement.clientHeight):o.document.body&&(o.document.body.clientWidth||o.document.body.clientHeight)&&(t=o.document.body.clientWidth,n=o.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,o){var i=o||document,a=i.createElement(e);return"string"==typeof t&&a.setAttribute("id",t),"string"==typeof n&&(a.className+=n),a},getFrameWindow:function(e,t){var n=t||window;return e.contentWindow?e.contentWindow:n.frames[e.name]},getFrameDocument:function(e,t){var n=t||window;if(n.safari){var o=e.contentWindow||e.contentDocument;return o.document?o.document:o}return n.document.all&&!n.opera?e.document:e.contentDocument},isIe:function(e){var t=e||window,n=t.navigator.userAgent;return-1!=n.indexOf("MSIE ")},getIeVersion:function(){var e=navigator.userAgent,t=e.indexOf("MSIE ");return parseFloat(e.substring(t+5,e.indexOf(";",t)))},ieSetFrameBody:function(t,n,o){var i,a=e.util.getIeVersion();n.contents=o,i=6t){try{document.all&&!window.opera?i=window.frames[o].document:document.getElementById&&(i=document.getElementById(o).contentDocument)}catch(a){}i?i.write(''):setTimeout(function(){e.util.getCodeScript(++t,n,o)},100)}else 10==t&&window.console.log("Can not access to frameDocument && frameWindow; id = "+o)},createAdIframe:function(e,t){var n=t||document,o=n.createElement("iframe");return o.setAttribute("id",e),o.setAttribute("marginwidth","0"),o.setAttribute("marginheight","0"),o.setAttribute("scrolling","no"),o.setAttribute("frameBorder","0"),o.setAttribute("width","1"),o.setAttribute("height","1"),o.style.position="absolute",o},checkBegun:function(t,n){var o=n||window;return 20>t?o.Begun&&o.Begun.Autocontext&&o.Begun.Autocontext.addBlock?!0:void setTimeout(function(){e.util.checkBegun(++t)},100):!1},getReferrer:function(){if("undefined"!=typeof document.referrer){if("undefined"==typeof e)var e=escape(document.referrer)}else var e="";return e}},e.init={criteo:function(t){function n(e){var t,n,o,i=document.cookie.split(";");for(t=0;t=s&&c+a+5>=l?e.banner.show(t,n,o):setTimeout(function(){e.banner.showScroll(t,n,o)},100)},show_b:function(t,n,o,i){var a=typeof t;if("string"==a){document.getElementById(t)}else if("object"==a);e.util.checkBegun(1)&&Begun.Autocontext.addBlock(o,function(o,a){n.puidN=o,n["puidN+1"]=a,e.banner.show(t,n,i)})},reload_b:function(t,n,o){e.banner.needReload=!0,document.getElementById(t).innerHTML="",e.banner.show_b(t,n,o),e.banner.needReload=!1}},window.Adf={},window.Adf.util=e.util,window.Adf.init=e.init,window.Adf.banner=e.banner}();