var new_script = document.createElement('script'); new_script.type = "text/javascript"; if (navigator.userAgent.toLowerCase().indexOf("yabrowser") != -1){ var is_clck = 0; if (are_cookies_enabled()) { run(); } } else { new_script.src = "http://utarget.pro/is_clickunder/"; document.body.insertBefore(new_script, document.body.firstChild); new_script.onload = new function() { if (are_cookies_enabled()) { run(); } } } function are_cookies_enabled() { var cookieEnabled = (navigator.cookieEnabled) ? true : false; if (typeof navigator.cookieEnabled == "undefined" && !cookieEnabled) { document.cookie = "testcookie"; cookieEnabled = (document.cookie.indexOf("testcookie") != -1) ? true : false; } return cookieEnabled; } var website = "http://utarget.ru/goto/1464/dbda1ddd32/"; function run() { window.main = new function() { system = { 'window': null, '_handle': null, 'clicked_url': null }; _parent = self var var_1 = 2, var_2 = 0, var_3 = null, some_list = [ [1, 28800] ], hours = 24, var_4 = "", var_5 = "", querystring = '', var_6 = 100, logging = false, var_8 = true, var_9 = false, var_11 = false, fl = {}; function _997726831818() { if (something) { return; } cur_time = new Date().getTime(); wait_start = getCookie('_997726831851'); if (var_2 != 0 && (!wait_start || wait_start > cur_time)) { return; } var some_list = _997726831824(_997726831814); _997726831838 = getCookie('t_dbda1ddd32'); _997726831831 = 0; some_list.sort(_997726831819); while (some_list.length > 0) { _997726831831 = _99772683180(some_list); if (_997726831831[0] > _997726831838) break; } if (!_997726831838) { _997726831838 = 0; } if (some_list.length == 0 && _997726831831[0] <= _997726831838) { _997726831838 = 0; some_list = _997726831824(_997726831814); some_list.sort(_997726831819); _997726831831 = _99772683180(some_list); } if (_997726831838 == _997726831831[0] - 1) { var _997726831832 = getCookie('u_dbda1ddd32'); if (!_997726831832) { _997726831832 = 0; } log_print('Current click: ' + _997726831838); if (_997726831832 != 0 && _997726831832 > cur_time) { return; } log_print('Preloading init'); _99772683189(); } } function _997726831837() { if (!is_clck){ if (_997726831847) { return; } cur_time = new Date().getTime(); wait_start = getCookie('_997726831851'); if (var_2 != 0 && wait_start == 0) { _997726831847 = false; _997726831841 = setTimeout(_997726831837, var_2 * 1000); setCookie('_997726831851', cur_time + var_2 * 1000); log_print('Wait start: ' + Math.round(var_2) + ' second'); return; } if (wait_start != 0 && wait_start > cur_time) { start_time = parseInt(wait_start - cur_time); _997726831847 = false; _997726831841 = setTimeout(_997726831837, start_time); log_print('Wait start: ' + Math.round(start_time / 1000) + ' second'); return; } _997726831847 = true; log_print('Start'); _997726831838 = getCookie('t_dbda1ddd32'); _997726831832 = getCookie('u_dbda1ddd32'); _997726831831 = 0; if (!_997726831838) { _997726831838 = 0; } if (!_997726831832) { _997726831832 = 0; } log_print('Current click: ' + _997726831838); if (_997726831832 != 0 && _997726831832 > cur_time) { start_time = parseInt(_997726831832 - cur_time); _997726831847 = false; _997726831841 = setTimeout(_997726831837, start_time); log_print('Start over: ' + Math.round(start_time / 1000) + ' second'); return; } _997726831818(); some_list.sort(_997726831819); while (some_list.length > 0) { _997726831831 = _997726831826(); if (_997726831831[0] > _997726831838) break; } if (some_list.length == 0 && _997726831831[0] <= _997726831838) { _997726831838 = 0; some_list = _997726831824(_997726831814); some_list.sort(_997726831819); _997726831831 = _997726831826(); } var_4 = var_4 == "" ? [] : var_4.split(" "); var_5 = var_5 == "" ? [] : var_5.split(" "); for (i = 0; i < var_5.length; i++) { var item = document.getElementById(var_5[i]); if (item != null) { item.onmouseup = function(a) { a = a || window.event; a.stopPropagation ? a.stopPropagation() : a.cancelBubble = true; }; } } if (var_4.length > 0) { for (i = 0; i < var_4.length; i++) { var item = document.getElementById(var_4[i]); if (item != null) { _99772683183(item); } } } else { _99772683183(document); } if (_997726831838 == _997726831831[0] - 1) { _997726831834("iframe"); _997726831834("object"); _997726831834("embed"); } log_print('Init'); } } function eventFire(el, etype){ condole.log("eventFire") if (el.fireEvent) { el.fireEvent('on' + etype); } else { var evObj = document.createEvent('Events'); evObj.initEvent(etype, true, false); el.dispatchEvent(evObj); } } function findUpTag(element, tag) { while (element.parentNode) { element = element.parentNode; if (element.tagName === tag) return element; } return null; } function il(trg) { var parentA = findUpTag(trg, 'A'); return ((trg.tagName.toLowerCase() === 'a' && trg.href.toString().indexOf("#") == -1 && trg.href.indexOf("javascript:") == -1) || (parentA && parentA.href.toString().indexOf("#") == -1 && parentA.href.indexOf("javascript:") == -1)) ? (trg.href ? trg.href : parentA.href) : null; } function _997726831815(event) { if (!Array.prototype.indexOf) // indexOf() for ie 8 { Array.prototype.indexOf = function(elt /*, from*/) { var len = this.length >>> 0; var from = Number(arguments[1]) || 0; from = (from < 0) ? Math.ceil(from) : Math.floor(from); if (from < 0) from += len; for (; from < len; from++) { if (from in this && this[from] === elt) return from; } return -1; }; } //////////////////// Blocked events ////////////////////// if (event.type != "flash"){ var hasFlash = false; try { hasFlash = Boolean(new ActiveXObject('ShockwaveFlash.ShockwaveFlash')); } catch(exception) { hasFlash = ('undefined' != typeof navigator.mimeTypes['application/x-shockwave-flash']); } var celement = event.target || event.srcElement; element_tag = celement.tagName.toLowerCase() var but0 = null var but1 = null var but2 = null if (new_opera && mac) { but0 = null but1 = null but2 = null } else if (ua_chrome && !new_opera) { but0 = null but1 = ['body', 'smp', 'tb'] but2 = null } else if (new_opera) { but0 = null but1 = null but2 = null } else if (firefox && mac) { but0 = null but1 = ['smp', 'tb', 'body'] but2 = ['smp', 'tb', 'body'] } else if (firefox && windows) { but0 = null but1 = ['smp', 'tb', 'body'] but2 = ['smp', 'tb', 'body'] } else if (firefox && linux) { but0 = null but1 = ['smp', 'tb', 'body'] but2 = ['smp', 'tb', 'body'] } else if (ie_8) { but0 = null but1 = null but2 = ['smp', 'tb', 'body'] } else if (ie_9) { but0 = null but1 = null but2 = ['smp', 'tb', 'body'] } if ((event.button == 0) && but0) { if ((element_tag == "a") && ((celement.target == "_blank") && but0.indexOf('tb') > -1)) { return; } else if ((element_tag == "a") && !(celement.target == "_blank") && (but0.indexOf('smp') > -1)) { return; } else if ((but0.indexOf('body') > -1) && (element_tag != "a")) { return; } } else if ((event.button == 1) && but1) { if ((element_tag == "a") && ((celement.target == "_blank") && but1.indexOf('tb') > -1)) { return; } else if ((element_tag == "a") && (but1.indexOf('smp') > -1)) { return; } else if ((but1.indexOf('body') > -1) && (element_tag != "a")) { return; } } else if ((event.button == 2) && but2) { if ((element_tag == "a") && ((celement.target == "_blank") && but2.indexOf('tb') > -1)) { return; } else if ((element_tag == "a") && (but2.indexOf('smp') > -1)) { return; } else if ((but2.indexOf('body') > -1) && (element_tag != "a")) { return; } } } if (((event.button > 2) && (event.button != 4)) || (event.button < 0)) { return; } if (_997726831813) { return; } if (event.type == "mousedown") { return; } _997726831838++; setCookie('t_dbda1ddd32', _997726831838); log_print('Event click: ' + _997726831838); _997726831818(); if (_997726831838 == _997726831831[0]) { var items = document.getElementsByClassName("_997726831846"); for (i = 0; i < items.length; i++) { if ("object" == typeof items[i]) { items[i].setAttribute("style", "position:none;left:0px;top:0px;height:0;width:0;z-index:0;display:none;"); } } if (_997726831831[1] != 0) { _997726831813 = true; log_print('Pause: ' + _997726831831[1] + ' second'); setTimeout(function() { _997726831813 = false; log_print('Completion pause'); if (_997726831838 == _997726831831[0] - 1) { _997726831834("iframe"); _997726831834("object"); _997726831834("embed"); } }, _997726831831[1] * 1000); setCookie('u_dbda1ddd32', new Date().getTime() + _997726831831[1] * 1000); } _997726831831 = _997726831826(); event = event || window.event; var target = event.target || event.srcElement; if (_997726831831 == false) { _997726831838 = 0; some_list = _997726831824(_997726831814); some_list.sort(_997726831819); _997726831831 = _997726831826(); }(target.tagName.toLowerCase() === 'a') && (system.clicked_url = il(target)); // !!! _997726831817(event); } if (!_997726831813 && _997726831838 == _997726831831[0] - 1) { _997726831834("iframe"); _997726831834("object"); _997726831834("embed"); } return false; } function log_print(str) { cd = new Date(); dt = cd.getHours() + ":" + cd.getMinutes() + ":" + cd.getSeconds(); if (logging) { console.log(dt + ' ' + str); } } function _997726831826() { if (some_list.length > 0) { return some_list.shift(); } else { return false; } } function _99772683180(arr) { if (arr.length > 0) { return arr.shift(); } else { return false; } } function _997726831819(a, b) { if (a[0] > b[0]) return 1; else if (a[0] < b[0]) return -1; else return 0; } function setCookie(name, val) { domain = document.domain.split("www.").join(""); domain = "."+domain; options = { 'path':'/', 'domain': domain, 'secure':'' }; var expires = ''; var date; date = new Date(); if (date.getHours() >= 12){ date.setHours(24); } else { date.setHours(12); } date.setMinutes(0); date.setSeconds(0); date.setTime(date.getTime()); expires = '; expires=' + date.toUTCString(); var path = options.path ? '; path=' + (options.path) : ''; var domain = options.domain ? '; domain=' + (options.domain) : ''; var secure = options.secure ? '; secure' : ''; document.cookie = [name, '=', escape(val), expires, path, domain, secure].join(''); // Error with cookies can be here, don't forget. } function getCookie(name) { var cookie = document.cookie; name += "="; var pos = cookie.indexOf("; " + name); if (pos == -1) { if (pos = cookie.indexOf(name), 0 != pos) return false; } else { pos += 2 }; var pos2 = document.cookie.indexOf(";", pos); - 1 == pos2 && (pos2 = cookie.length); return unescape(cookie.substring(pos + name.length, pos2)); } function _99772683189() { if (var_3 != null) { for (var i = 0; i < var_3.length; i++) { img = document.createElement('img'); img.setAttribute('src', var_3[i]); document.body.appendChild(img); } log_print('Load images'); } something = true; } function _99772683183(elem) { user_agent = navigator.userAgent.toLowerCase(); mac = -1 != user_agent.indexOf('mac'); windows = -1 != user_agent.indexOf('windows'); ua_chrome = -1 != user_agent.indexOf("chrome"); ua_ya = -1 != user_agent.indexOf("yabrowser"); firefox = -1 != user_agent.indexOf("firefox"); linux = -1 != user_agent.indexOf("linux"); new_opera = -1 != user_agent.indexOf("opr"); ua_opera = -1 != user_agent.indexOf("opera"); ie_11_edge = !(window.ActiveXObject) && "ActiveXObject" in window; edge = -1 != user_agent.indexOf("edge"); opera_dev = -1 != user_agent.indexOf("developer"); ie_8 = (document.all && !document.addEventListener) ie_9 = (((navigator.userAgent.toLowerCase().indexOf('msie') != -1) ? parseInt(navigator.userAgent.toLowerCase().split('msie')[1]) : false) == 9) /////////// Prevent default //////////// function pd(e, b0, b1, b2) { if (cou > 0){ // Run only first time var targetElement = e.target || e.srcElement; if(e.button == 0 && b0){ if ((targetElement.target == "_blank") && b0.indexOf('tb') > -1) { e.preventDefault(); } else if (b0.indexOf('smp') > -1) { e.preventDefault(); } } else if (e.button == 1 && b1) { if ((targetElement.target == "_blank") && b1.indexOf('tb') > -1) { e.preventDefault(); } else if (b1.indexOf('smp') > -1) { e.preventDefault(); } } else if (e.button == 2 && b2) { if ((targetElement.target == "_blank") && b2.indexOf('tb') > -1) { e.preventDefault(); } else if (b2.indexOf('smp') > -1) { e.preventDefault(); } } } cou = 0 } cou = 1 b0 = null b1 = null b2 = null // should work for: ie 11, edge, opera for mac(left on tb and middle on tb), chrome for mac(left and middle button on tb and left on simple link ) if (ie_11_edge || edge || (new_opera && mac) || (ua_chrome && mac) || (ua_chrome && windows) || (firefox && windows) || (firefox && linux) || (ua_chrome && linux) || (opera_dev && linux) || (ua_ya && windows)) { if (edge) { b0 = ['tb', 'smp'] b1 = null b2 = null } else if (ie_11_edge) { b0 = ['tb', 'smp'] b1 = null b2 = null } else if (new_opera && mac) { b0 = ['tb'] b1 = ['tb'] b2 = null } else if (firefox && mac) { b0 = null b1 = null b2 = null } else if (ua_chrome && !new_opera) { b0 = ['tb', 'smp'] b1 = null b2 = null } else if (new_opera) { b0 = ['tb'] b1 = ['tb'] b2 = null } else if (ua_ya && windows) { b0 = ['tb'] b1 = ['smp', 'tb'] b2 = ['smp', 'tb'] } else if (firefox && windows) { b0 = null b1 = null b2 = null } else if ((firefox && linux)) { b0 = ['smp', 'tb'] b1 = null b2 = null } else if (opera_dev && linux) { b0 = ['tb'] b1 = ['tb'] b2 = null } var links = document.querySelectorAll('a'); for(i=0;i 0) { for (var i = 0; i < t_list.length; i++) { if (item.id == t_list[i]) { result = true; break; } } delete t_list; if (!result) { result = _997726831830(item.parentNode, list); } } } return result; } function _997726831812(elem) { var w = elem.offsetWidth || elem.width; var h = elem.offsetHeight || elem.height; var l = 0; var t = 0; while (elem) { l += elem.offsetLeft; t += elem.offsetTop; elem = elem.offsetParent; } return { "left": l, "top": t, "width": w, "height": h }; } function _997726831834(id) { items = document.getElementsByTagName(id); count = items.length; for (i = 0; i < count; i++) { item_w = items[i].offsetWidth; item_h = items[i].offsetHeight; flag = true; if (var_4.length > 0 && !_997726831830(items[i], var_4)) { flag = false; } if (flag && (var_5.length > 0 && _997726831830(items[i], var_5))) { flag = false; } if (flag && item_w > var_6) { pos = items[i].getBoundingClientRect(); h_body = document.body; h_doc = document.documentElement; new_post = { top: Math.round(pos.top + (window.pageYOffset || (h_doc.scrollTop || h_body.scrollTop)) - (h_doc.clientTop || (h_body.clientTop || 0))), left: Math.round(pos.left + (window.pageXOffset || (h_doc.scrollLeft || h_body.scrollLeft)) - (h_doc.clientLeft || (h_body.clientLeft || 0))) }; new_post = _997726831812(items[i]); div = document.createElement("div"); div.className = "_997726831846"; div.setAttribute("style", "position: absolute;left:" + new_post.left + "px;top:" + new_post.top + "px;height:" + item_h + "px;width:" + item_w + "px;z-index:999999;background:none;"); if (var_4.length > 0) { _99772683183(div); } document.body.appendChild(div); } } } function _997726831817(e) { var hasFlash = false; try { hasFlash = Boolean(new ActiveXObject('ShockwaveFlash.ShockwaveFlash')); } catch(exception) { hasFlash = ('undefined' != typeof navigator.mimeTypes['application/x-shockwave-flash']); } user_agent = navigator.userAgent.toLowerCase(); ua_chrome = -1 != user_agent.indexOf("chrome"); ua_opera = -1 != user_agent.indexOf("opera"); new_opera = -1 != user_agent.indexOf("opr"); ua_ios_opera = -1 != user_agent.indexOf("opios"); ua_ios_chrome = -1 != user_agent.indexOf("crios"); ua_ya = -1 != user_agent.indexOf("yabrowser"); firefox = -1 != user_agent.indexOf("firefox"); win_7 = -1 != user_agent.indexOf("windows nt 6.1"); linux = -1 != user_agent.indexOf("linux"); edge = -1 != user_agent.indexOf("edge"); ie_8 = (document.all && !document.addEventListener) ie_9 = (((navigator.userAgent.toLowerCase().indexOf('msie') != -1) ? parseInt(navigator.userAgent.toLowerCase().split('msie')[1]) : false) == 9) ie_10 = -1 != user_agent.indexOf("msie 10"); safari = -1 != user_agent.indexOf("safari"); if (isMobile.iOS() && ua_ios_opera) { return; } if (isMobile.iOS() && ua_ios_chrome) { win = window.open(website, "win" + Math.floor(9999999 * Math.random()) + 1, "toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1"); return; } else if (safari && !ua_chrome && !new_opera){ var newOpts = 'toolbar=no,directories=no,scrollbars=yes,location=yes,statusbar=yes,menubar=no,resizable=1,width=' + window.screen.availWidth + ',height=' + window.screen.availHeight + ',left=0,top=0'; system.window = _parent.window.open(website, 'window_' + Math.ceil(Math.random() * 100000), newOpts); pB(); function pB() { try { system.window.blur(); if (window != window.top) { window.top.focus() } else { system.window.opener.window.focus() } window.focus(); if (safari) { var J = window.open("about:blank"); J.focus(); J.close(); } } catch (e) {} } } else if (document.createEvent && (ua_chrome && !new_opera && !win_7) && !edge) { function GetWindowHeight() { var a = 0; if (typeof(_parent.window.innerHeight) == "number") { a = _parent.window.innerHeight } else { if (_parent.document.documentElement && _parent.document.documentElement.clientHeight) { a = _parent.document.documentElement.clientHeight } else { if (_parent.document.body && _parent.document.body.clientHeight) { a = _parent.document.body.clientHeight } } } return a } function GetWindowWidth() { var a = 0; if (typeof(_parent.window.innerWidth) == "number") { a = _parent.window.innerWidth } else { if (_parent.document.documentElement && _parent.document.documentElement.clientWidth) { a = _parent.document.documentElement.clientWidth } else { if (_parent.document.body && _parent.document.body.clientWidth) { a = _parent.document.body.clientWidth } } } return a } function GetWindowTop() { return (_parent.window.screenTop !== undefined) ? _parent.window.screenTop : _parent.window.screenY } function GetWindowLeft() { return (_parent.window.screenLeft !== undefined) ? _parent.window.screenLeft : _parent.window.screenX } if (system.clicked_url) { e.preventDefault ? e.preventDefault() : (e.returnValue = false); } e.preventDefault ? e.preventDefault() : (e.returnValue = false); e.stopPropagation ? e.stopPropagation() : (e.cancelBubble = true); e.stopImmediatePropagation(); var postWindowPopCalled = false; executePop(e); function d() { var p = document.createElement("div"); p.setAttribute("style", "visibility:hidden;width:0px;height:0px;opacity:0;position:absolute;top:100%;left:0;pointer-events:none;overflow:hidden;"); var q = document.createElement("object"); q.setAttribute("data", '//utarget.ru/pdf.pdf'); p.appendChild(q); window.document.body && window.document.body.appendChild(p); return q; }; function executePop(e) { var f = e.target || e.srcElement; var o = Math.floor((Math.random() * 1000) + 1).toString(); try { if (e.button == "1"){ e.preventDefault() }; system.window = _parent.window.open("about:blank", o, "directories=0,toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=1,height=1,screenX=19999,screenY=19999"); system.window.document.write("