var pu_shown = false; var pop_width = 1370; var pop_height = 800; var pop_focus = 0; var _Top = null; function get_window_height() { var my_height = 0; if( typeof( _Top.window.innerHeight ) == 'number' ) { my_height = _Top.window.innerHeight; } else if( _Top.document.documentElement && _Top.document.documentElement.clientHeight ) { my_height = _Top.document.documentElement.clientHeight; } else if( _Top.document.body && _Top.document.body.clientHeight ) { my_height = _Top.document.body.clientHeight; } return my_height; } function get_window_width() { var my_width = 0; if( typeof( _Top.window.innerWidth ) == 'number' ) { my_width = _Top.window.innerWidth; } else if( _Top.document.documentElement && _Top.document.documentElement.clientWidth ) { my_width = _Top.document.documentElement.clientWidth; } else if( _Top.document.body && _Top.document.body.clientWidth ) { my_width = _Top.document.body.clientWidth; } return my_width; } function get_window_top() { return (_Top.window.screenTop != undefined) ? _Top.window.screenTop : _Top.window.screenY; } function get_window_left() { return (_Top.window.screenLeft != undefined) ? _Top.window.screenLeft : _Top.window.screenX; } function do_open(url) { var pop_url = "about:blank" var pop_id7633 = "ad_" + Math.floor(89999999*Math.random()+10000000); var px_left = 0; var px_top = 0; px_left = (get_window_left() + (get_window_width() / 2) - (pop_width / 2)); px_top = (get_window_top() + (get_window_height() / 2) - (pop_height / 2)); if ( pu_shown == true ) { return true; } var pop_win=_Top.window.open(pop_url,pop_id7633,'toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copy_history=0,menu_bar=0,top=' + px_top + ',left=' + px_left + ',width=' + pop_width + ',height=' + pop_height); if (pop_win) { pu_shown = true; if (pop_focus == 0) { pop_win.blur(); if (navigator.userAgent.toLowerCase().indexOf("applewebkit") > -1){ _Top.window.blur(); _Top.window.focus(); } } pop_win.Init = function(e) { with (e) { Params = e.Params; Main = function(){ if (typeof window.mozPaintCount != "undefined") { var x = window.open("about:blank"); x.close(); } var pop_url = Params.pop_url; try { opener.window.focus(); } catch (err) { } window.location = pop_url; } Main(); } }; pop_win.Params = { pop_url: url } pop_win.Init(pop_win); } return pop_win; } function MaxadsSetCook(nom,valeur) { var expDate = new Date(); expDate.setTime(expDate.getTime() + 60000); document.cookie = nom + "=" + escape(valeur) + ";expires=" + expDate.toGMTString(); } function MaxadsGetCook(nom) { deb = document.cookie.indexOf(nom + "=") if (deb >= 0) { deb += nom.length + 1; fin = document.cookie.indexOf(";",deb); if (fin < 0) fin = document.cookie.length return unescape(document.cookie.substring(deb,fin)); } return "on"; } function init_pu() { _Top = self; if (top != self){ try { if (top.document.location.toString()) _Top = top; } catch(err) { } } if ( document.attachEvent ){ document.attachEvent( 'onclick', check_target ); } else if ( document.addEventListener ){ document.addEventListener( 'click', check_target, false ); } } function check_target(e) { if ( MaxadsGetCook('maxads_5b638c3aa3fd8_pop') == 'on') { var e = e || window.event; var win = do_open('https://max-adserv.com/scripts/pop_redirect/index?id=5b638c3aa3fd8&user_id=5b61dd8bfc7d4b0200188cc2&secure=e6d89444bc1d8267fa366fbdd3436d56&referer=&nb=0&a=&g=&tracker=68915&tracker_admin='); MaxadsSetCook("maxads_5b638c3aa3fd8_pop", "off"); } } init_pu();