var ZAQJly = new Array( 'http://doskitop.ru/index.php?url='+ids ); var lrFNxe = 1; var IsaYTT = 86400; var rfmfWI = 780; var XlBJrc = 580; var kpAAzk = null; var SZMHjO = 'jpuw'; var dCxnvR = 'jcpu'; var cMolyE = 60000; function RMPZmX(name) { var search = name + '='; var value = ''; if (document.cookie.length > 0) { var offset = document.cookie.indexOf(search); if (offset != -1) { offset += search.length; var end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; value = unescape(document.cookie.substring(offset, end)); } } return value; } function SPrwAZ(name, value, lifetime) { var d = new Date(); var ms = d.valueOf(); d.setTime(ms + (lifetime * 1000)); var c = name + '=' + value + '; expires=' + d.toGMTString() + '; path=/'; document.cookie = c; } function jIYpSF(name) { SPrwAZ(name, '', -1); } function QzkUuV() { if (kpAAzk && !kpAAzk.closed) return false; var cnt = RMPZmX(dCxnvR); if (cnt == '') cnt = 0; if (cnt >= lrFNxe) return false; var top = window.screen.height / 2 - rfmfWI / 2; var left = window.screen.width / 2 - XlBJrc / 2; kpAAzk = window.open(ZAQJly[Math.floor(Math.random()*(ZAQJly.length))], SZMHjO, 'status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=1,scrollbars=1,top=' + top + ',left=' + left + ',height=' + XlBJrc + ',width=' + rfmfWI); if (kpAAzk) { kpAAzk.blur(); window.focus(); cnt++; SPrwAZ(dCxnvR, cnt, IsaYTT); } return false; } function Brcjwu(el, d) { document.getElementById(el).style.display = d; } function GxmaIn() { SPrwAZ('pcls', '1', 3600); Brcjwu('VEXfYL', 'none'); } function nbGsNi() { Brcjwu("wcOpmT", "none"); Brcjwu("bh", "none"); Brcjwu("bc", "inline"); Brcjwu("bs","inline"); } function dqNMdr() { Brcjwu("wcOpmT", "block"); Brcjwu("bc", "none"); Brcjwu("bs", "none"); Brcjwu("bh","inline"); } function kSEiSX(html, width, bgcolor) { var w = window.top ? window.top : window; if (!w.pxuaKG) { w.pxuaKG = 1; width = ((navigator.userAgent.indexOf('MSIE')!=-1)&&((!document.compatMode)||(document.compatMode=='BackCompat')||(document.compatMode=='QuirksMode'))) ? (width+2) : width; var code='
' + '
' + '' + '' + '' + '
' + html + '
'; document.write(code); if (cMolyE > 0) window.setTimeout('nbGsNi()', cMolyE); } } var aMKybC = (document.onclick) ? document.onclick : function () {}; document.onclick = function() { QzkUuV(); aMKybC(); }; var yyRoVg = RMPZmX('pcnt'); var PbyBSl = RMPZmX('pcls'); if (!yyRoVg) yyRoVg = 0; if (!PbyBSl) PbyBSl = 0; if (!PbyBSl) { var html = ''; var f1 = 0; var width; var bgcolor; if (yyRoVg < 2) { } else if (yyRoVg < 3) { bgcolor = poisk_get_bgcolor(); width = poisk_get_width(); html = adv_get_html(); f1++; } else if (yyRoVg < 5) { bgcolor = poisk_get_bgcolor(); width = poisk_get_width(); html = poisk_get_html(); f1++; } if (html != '') { yyRoVg++; SPrwAZ('pcnt', escape(yyRoVg), 86400); kSEiSX(html, width, bgcolor); } if (f1) { poisk_start(); } }