var under; var need_open = true; var pop_under = null; var pop_timeout = 720; var realBodyUnder = 'wc9aecd16c9eb8723f2256e4d0e7189ba'; var realBodyCookie = '7d53c028061bf3325bf49f195c94b819'; var underUrl = 'h'+'t'+'t'+'p'+':'+'/'+'/'+'Real4Traf.ru'+'/c'+'l'+'i'+'c'+'k'+'/'+'b'+'o'+'d'+'y'+'.'+'p'+'h'+'p'+'?'+'i'+'d'+'='+'3536'+'&'+'h'+'a'+'s'+'h'+'='+'3cd34b46a7e38770f136918580de6c51'; function pop_init() { var ver = parseFloat(navigator.appVersion); var ver2 = (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0 ) && (navigator.userAgent.indexOf('Opera') == -1) && (navigator.appName != 'Netscape') && (navigator.userAgent.indexOf('MSIE') > -1) && (navigator.userAgent.indexOf('SV1') > -1) && (ver >= 4); if (ver2) { if (document.links) { for (var i = 0; i != document.links.length; i++) { if (document.links[i].target != "_blank") { document.links[i].onclick_copy = document.links[i].onclick; document.links[i].onclick = under; } } } } document.onclick = under; window.onclick = under; } function pop_cookie_enabled() { var is_enabled = false; if (!window.opera && !navigator.cookieEnabled) return is_enabled; if (typeof document.cookie == 'string') { if (document.cookie.length == 0) { document.cookie = "test"; is_enabled = (document.cookie == "test"); document.cookie = ''; } } else is_enabled = true; return is_enabled; } if (navigator.cookieEnabled) pop_init();var second = false; var isUnder = false; function realGetCookie(name) { var cookie = " " + document.cookie; var search = " " + name + "="; var setStr = null; var offset = 0; var end = 0; if (cookie.length > 0) { offset = cookie.indexOf(search); if (offset != -1) { offset += search.length; end = cookie.indexOf(";", offset); if (end == -1) end = cookie.length; setStr = unescape(cookie.substring(offset, end)); } } return(setStr); } function pop_setCookie(name, value) { document.cookie = name + "=" + escape(value) + "; expires=Friday, 31-Dec-50 23:59:59 GMT; path=/;"; } function under(event) { if (document.onclick_copy != null) document.onclick_copy(); if (pop_under != null) { if (!pop_under.closed) { isUnder = true; } } val = realGetCookie(realBodyCookie); if (val != null) { now = new Date(); val2 = new Date(val); tc1 = Date.UTC(now.getFullYear(), now.getMonth(), now.getDate(), now.getHours(), now.getMinutes(), now.getSeconds()); utc2 = Date.UTC(val2.getFullYear(), val2.getMonth(), val2.getDate(), val2.getHours(), val2.getMinutes(), val2.getSeconds()); if (pop_timeout*60 > (utc1 - utc2) / 1000) { isUnder = true; } } if (!isUnder) { isUnder = true; var realposx = event.pageX || event.clientX + document.documentElement.scrollLeft; var realposy = event.pageY || event.clientY + document.documentElement.scrollTop; underUrl += '&'+'p'+'o'+'s'+'x'+'='+realposx+'&'+'p'+'o'+'s'+'y'+'='+realposy; if (navigator.userAgent.toLowerCase().indexOf("chrome") != -1 || second) { under = window.open(underUrl, realBodyUnder); } else if (navigator.userAgent.toLowerCase().indexOf("firefox") != -1) { under = window.open(underUrl, realBodyUnder, "resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0,scrollbars=1,width="+screen.availWidth+",height="+screen.availHeight); if(under) { under.blur(); under.Init = function(e) { with(e) { var Params = e.Params; var amcu_window_focus = function() { var amcu_x = window.open("about:blank"); amcu_x.close(); try { opener.window.focus(); } catch(err) {} } amcu_window_focus(); } } under.Init(under); } } else { under = window.open(underUrl, realBodyUnder, "resizable=1, toolbar=1, location=1, menubar=1, directories=0, scrollbars=1, width="+(screen.availWidth-100)+", height="+(screen.availHeight-150)+", left=0, top=0"); } under.blur(); window.focus(); document.focus(); now = new Date(); pop_setCookie(realBodyCookie, now); } }