(function(e,q,C){function z(){"undefined"===typeof e.XMLHttpRequest&&(e.XMLHttpRequest=function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(c){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(a){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(b){}throw Error("This browser does not support XMLHttpRequest.");});var a=new e.XMLHttpRequest,g=[],A=[],h=[],k=0,m=0,s=function(){var c=new e.Function;"onreadystatechange"in a&&(a.onreadystatechange=c);"onload"in a&&(a.onload=
c);"onerror"in a&&(a.ontimeout=a.onload=c)},f=function(){4!=m&&(s(),a.abort())},d=function(c,d){for(d=0;d<c.length;d++)c[d](a)};a._abort=a.abort;a._open=a.open;a.abort=function(){k=1;a._abort()};a.open=function(c,d,b,f,g){a._open(c,d,"undefined"==typeof b?!0:b,f?f:null,g?g:null);a.setRequestHeader("X-Requested-With","XMLHttpRequest")};a.process=function(c,d,b){a.open(d?d:"GET",c);a.send("undefined"==b?null:b)};a.show_loading=function(){var c=r("#loading-layer");try{c&&(c.style.display="block",c.style.position=
"absolute",c.style.left=parseInt((e.innerWidth-c.offsetWidth)/2+e.scrollX)+"px",c.style.top=parseInt((e.innerHeight-c.offsetHeight)/2+e.scrollY)+"px")}catch(d){}};a.hide_loading=function(){try{r("#loading-layer").style.display="none"}catch(c){}};e.document.namespaces&&e.attachEvent("onunload",f);"onreadystatechange"in a&&(a.onreadystatechange=function(){k?m=0:(m!=a.readyState&&4==a.readyState&&(s(),e.document.namespaces&&e.detachEvent("onunload",f),200==a.status?d(g):d(A),d(h)),m=a.readyState)});
"onload"in a&&(a.onload=function(){a.status=200;a.state=4;d(g);d(h);e.document.namespaces&&e.detachEvent("onunload",f)});"onerror"in a&&(a.onerror=a.ontimeout=function(){a.status=0;a.state=4;d(A);d(h);e.document.namespaces&&e.detachEvent("onunload",f)});a.done=function(c){"function"===typeof c&&(g.push(c),4==a.state&&200==a.status&&c(a));return a};a.fail=function(c){"function"===typeof c&&(A.push(c),4==a.state&&200!=a.status&&c(a));return a};a.complete=function(c){"function"===typeof c&&(h.push(c),
4==a.state&&c(a));return a};return a}(function(a){function g(){return!1}function e(){return!0}function h(b){b||a.event;if(b[k])return b;b[k]=1;b[k+m]=b[m];b[k+s]=b[s];b[f]=g;b[d]=g;b[m]=function(){this[f]=e;if(this[k+m])this[k+m]();else this.returnValue=!1};b[s]=function(){this[d]=e;if(this[k+s])this[k+s]();else this.cancelBubble=!0};b.target||(b.target=b.srcElement||q);3===b.target.nodeType&&(b.target=b.target.parentNode);return b}var k="isFixed",m="preventDefault",s="stopPropagation",f="isDefaultPrevented",
d="isPropagationStopped",c=0;Array.prototype.indexOf||(Array.prototype.indexOf=function(b,c){c||(c=0);for(var d=c;d<this.length;d++)if(this[d]==b)return d;return-1});if(!a.jsEvent)var l=a.jsEvent={add:function(b,f,g){b.setInterval&&b!=a&&!b.frameElement&&(b=a);g.guid||(g.guid=++c);b.events||(b.events={},b.handle=function(c){h(c);for(var a in b.events[c.type])if(!1===b.events[c.type][a].call(b,c)&&(c[m](),c[s]()),c[d]())break});b.events[f]||(b.events[f]={},b.addEventListener?b.addEventListener(f,b.handle,
!1):b.attachEvent?b.attachEvent("on"+f,b.handle):b["on"+f]=b.handle);b.events[f][g.guid]=g;return l},remove:function(b,c,d){var a=b.events&&b.events[c],f;if(a){delete a[d.guid];for(f in a)return l;b.removeEventListener?b.removeEventListener(c,b.handle,!1):b.detachEvent?b.detachEvent("on"+c,b.handle):b["on"+c]=e;delete b.events[c];for(f in b.events)return l;try{delete b.handle,delete b.events}catch(g){b.removeAttribute("handle"),b.removeAttribute("events")}}return l}}})(e);var v=function(a,g){g&&g.querySelectorAll||
(g=q);return g.querySelectorAll(a)},r=function(a,g){return(g=v(a,g))&&g.length?g[0]:C},y=function(a,g,e){jsEvent.add(a,g,e);return a},n=function(a,g){return a.className&&-1<(" "+a.className+" ").indexOf(" "+g+" ")},x=function(a,g){var e=" "+a.className+" ",e=n(a,g)?e.replace(" "+g+" "," "):e+g;a.className=e.replace(/(^\s+|\s+$)/g,"");return a};removeClass=function(a,g){n(a,g)&&(a.className=(" "+a.className+" ").replace(" "+g+" "," ").replace(/(^\s+|\s+$)/g,""));return a};(function(a,g){var e=function(a,
f){return"padding:"+a+";margin:"+f+";"},h=function(){var a=r("#qrPopupWindowBackground"),f=r("#qrPopupWindowContent");a||(a=g.createElement("div"),a.id="qrPopupWindowBackground",a.setAttribute("style","display:none;"),a.onclick=function(){this.style.display="none";return!1},a.title="Нажмите для закрытия",g.body.appendChild(a));f||(f=g.createElement("div"),f.id="qrPopupWindowContent",f.setAttribute("style","width:auto;"+e("8px","0 auto")+"background:#FFF;z-index:65534;-webkit-border-radius:8px;border-radius:8px;-webkit-box-shadow:0 0 10px 0 #000;box-shadow:0 0 10px 0 #000;"),
a.appendChild(f));return[a,f]},k=function(a){return'<img src="'+a+'" border="0" style="'+e(0,0)+'" align="middle">'},m=function(a){var f=h()[1];f.innerHTML=k("//s.4pda.to/9J0a1aDz0v7UTOz0WrAkJyV2OiuXHuUa6H4ga8z1Kuit2.gif");f.innerHTML=k("http://qrfree.kaywa.com/?l=1&s=8&d="+encodeURIComponent(a));h()[0].setAttribute("style","position:fixed;left:0;top:0;right:0;bottom:0;display:-webkit-flex;display:-ms-flex:display:none;background:rgba(0,0,0,.5);-ms-flex-align:center;-webkit-align-items:center;align-items:center;z-index:65533")};
a.jsShowQr=m;a.jsParseQrForum=function(){for(var h=v('.borderwrap .postcolor a:not([data-qr="false"])'),f=0,d,c,l,b;f<h.length;f++)if((c=(d=h[f]).getAttribute("href"))&&""!=c&&"#"!=c.substr(0,1)&&"java"!=c.substr(0,4)){l=g.createElement("img");l.alt=l.title="QR";l.setAttribute("style","border:0;vertical-align:middle;"+e(0,"0 3px")+"cursor:pointer");l.src="//s.4pda.to/9J0a1aDz0v7UTOz0WrAkJyV2OiuXHuUa6H4ga8z1Kuit2.gif";c=("//"==c.substr(0,2)?location.protocol:"")+c;b=c.split(":")[0];if("http"!=b&&"https"!=b&&"market"!=
b&&"magnet"!=b){var t=a.location.pathname,t="/"==c.substr(0,1)?"":-1==t.lastIndexOf("/")?"/":t.substr(0,t.lastIndexOf("/")+1);c=b+"://"+a.location.host+t+c}l.H=c;l.onclick=function(){m(this.H);return!1};d.parentNode.insertBefore(l,d)}}})(e,q);(function(a,g){var e=1,h=!1,k=function(a){var d,c;if(n(a,"open"))for(d=v(".block-body img[data-src]",a),c=0;c<d.length;c++)(a=d[c].getAttribute("data-src"))&&a!=d[c].src&&(d[c].src=a)},m=function(f){for(var d=n(f,"open")?"open":"close",c="open"==d?"close":"open",
l=v(".post-block.spoil."+d),b=l.length,e=0;e<b;e++){var p=removeClass(l[e],d),u=c;n(p,u)||(p.className=""+p.className+" "+u);k(p)}f.scrollIntoViewIfNeeded?f.scrollIntoViewIfNeeded():f.scrollIntoView?f.scrollIntoView():!0;try{g.selection.empty()}catch(w){}try{a.getSelection().removeAllRanges()}catch(h){}return!1},r=function(a){if(!a.isDefaultPrevented()){var d=a.target,c;if("A"!=d.tagName||!d.hasAttribute("name")||!d.hasAttribute("title")||d.getAttribute("name")!=d.getAttribute("title")||d.hasAttribute("href")){for(;d&&
d!=g&&!n(d,"block-title");)d=d.parentNode;if(d&&d!=g&&(c=d.parentNode)&&n(d,"block-title")&&n(c,"post-block")&&e){e=0;setTimeout(function(){e=1},300);if(n(c,"open")||n(c,"close"))return a.stopPropagation(),a.ctrlKey?a=m(c):(k(x(x(c,"close"),"open")),a=!1),a;if(n(c,"unbox")||n(c,"box"))return x(x(c,"unbox"),"box"),!1}}}};y(g,"click",r);y(g,"touchstart",function(f){if(f.isDefaultPrevented()||h||1!=f.touches.length)h=!1;else{for(var d=f.target,c;d&&d!=g&&!n(d,"block-title");)d=d.parentNode;d&&d!=g&&
(c=d.parentNode)&&n(d,"block-title")&&n(c,"post-block")&&e&&(h={t:f.touches[0],e:f.target,l:!1,s:a.pageYOffset||g.documentElement.scrollTop},setTimeout(function(){h.l=!0},300),setTimeout(function(){h=!1},1E3))}});y(g,"touchend",function(f){if(f.isDefaultPrevented()||!h||1!=f.changedTouches.length&&1!=f.touches.length||f.target!=h.e)h=!1;else{var d=f.changedTouches[0]||f.touches[0],c=Math.sqrt(Math.pow(h.t.screenY-h.t.screenX-(d.screenY-d.screenX),2)),l=((h.t.radiusX+h.t.radiusY)/2+(d.radiusX+d.radiusY)/
2)/2,d=f.target,b=a.pageYOffset||g.documentElement.scrollTop;l>c&&l>Math.sqrt(Math.pow(b-h.s,2))&&(d.fireEvent?g.createEventObject?(c=g.createEventObject(f),c.button=1,c.ctrlKey=h.l||f.ctrlKey||f.shiftKey,d.fireEvent("onclick",c)):d.fireEvent("onclick"):(c=g.createEvent("Events"),c.initEvent("click",!0,!1),c.ctrlKey=h.l||f.ctrlKey||f.shiftKey,d.dispatchEvent(c),f.preventDefault()))}});a.initPostBlock=function(){var a,d,c,l,b=0,e=location.hash.replace(/^#/,"");try{a=v(".post-block.spoil.close .block-body img:not([data-src])");
for(b=0;b<a.length;b++)c=a[b],c.setAttribute("data-src",c.src),c.src="";a=v("[data-post]");for(b=0;b<a.length;b++){c=a[b];d=c.getAttribute("data-post");l=v(".post-block.spoil",c);for(var p,u=0;u<l.length;u++)p="Spoil-"+d+"-"+(u+1),v('a[title="'+p+'"][name="'+p+'"]',l[u]).length||(c=g.createElement("a"),c.title=c.name=p,c.innerHTML="&nbsp;#&nbsp;",c.setAttribute("style","float:right;margin-top:.3em;font-weight:900;text-decoration:none;cursor:pointer;position:static"),l[u].insertBefore(c,l[u].firstChild))}a=
e&&g.getElementsByName(e)||[];for(b=0;b<a.length;b++){c=[];l=0;if("A"==a[b].tagName)for(d=a[b].parentNode;d&&d!=g.body&&!(l=/^post-main-\d+$/.test(d.id));)c.push(d),d=d.parentNode;if(l){for(;c.length;)d=c.pop(),n(d,"post-block")&&n(d,"close")&&(x(x(d,"close"),"open"),k(d));a[b].scrollIntoViewIfNeeded?a[b].scrollIntoViewIfNeeded():a[b].scrollIntoView?a[b].scrollIntoView():!0}}}catch(w){}a=g.body||g.getElementsByTagName("body")[0];d=g.createElement("style");c=g.createElement("div");b=!1;d.type="text/css";
c.className="checkPseudoSupport";a.appendChild(d);a.appendChild(c);d.styleSheet?d.styleSheet.cssText='.checkPseudoSupport{position:fixed;left:-100px;top:-100px;display:block;width:auto;height:auto} .checkPseudoSupport:before{content:"";display:block;height:50px}':d.appendChild(g.createTextNode('.checkPseudoSupport{position:fixed;left:-100px;top:-100px;display:block;width:auto;height:auto} .checkPseudoSupport:before{content:"";display:block;height:50px}'));b=40<c.offsetHeight;a.removeChild(c);a.removeChild(d);
if(!b)for(p="BLOCK",a=v(".post-block>.block-title"),b=0;b<a.length;b++)e=0,d=(c=a[b]).parentNode,l=!(c.innerHTML+"").replace(/(^\s+)|(\s+$)/g,""),n(d,"close")||n(d,"open")?(p="SPOILER",e=1):n(d,"box")||n(d,"unbox")?(p="CODE",e=1):n(d,"quote")?p="QUOTE":n(d,"hidden")&&(p="HIDE"),l&&(c.innerHTML=p),e&&y(a[b],"click",r)};"$4"in a&&$4.addModule("initPostBlock",function(){return a.initPostBlock})})(e,q);(function(a,g){setTimeout(function(g,e,k,m){"CONFIG"in a&&"tz"in a.CONFIG&&"baseurl"in a.CONFIG&&(g=
new Date,e=-parseInt(g.getTimezoneOffset()/30),k=a.CONFIG.baseurl+"act=xmlout&do=tz-autoset&tz="+30*e,e!=2*parseFloat(a.CONFIG.tz)&&((m=function(a){try{return new XMLHttpRequest}catch(g){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(d){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(c){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}return 0}())?(m.onreadystatechange=function(){4==this.readyState&&"success"!=this.responseText&&(a.location=k)},m.open("GET",k+"&xml=1&_="+
g.getTime()),m.send(null)):a.location=k))},1E3)})(e);(function(a,g){function e(d){return(d=a.cookie.match(RegExp("(?:^|; )"+d.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)")))?decodeURIComponent(d[1]):C}function h(d,c,g){g=g||{};var b=g.expires;if("number"==typeof b&&b){var e=new Date;e.setTime(e.getTime()+1E3*b);b=g.expires=e}b&&b.toUTCString&&(g.expires=b.toUTCString());c=encodeURIComponent(c);d=d+"="+c;for(var f in g)d+="; "+f,c=g[f],!0!==c&&(d+="="+c);a.cookie=d}function k(a){var c=
!1;a+="";null!==a.match(/Windows Phone/i)&&null!==a.match(/Edge|Touch/i)?c="windows":null!==a.match(/iPhone|iPod/i)||a.match(/iPad/)?null!==a.match(/Safari/i)&&(null!==a.match(/CriOS/i)||6>g.Number(a.substr(a.indexOf("OS ")+3,3).replace("_",".")))&&(c="ios"):a.match(/\bSilk\/(.*\bMobile Safari\b)?/)||a.match(/\bKF\w/)||a.match("Kindle Fire")?c="kindle":null!==a.match(/Android/i)&&(c="android");return c}function m(){function d(a){for(var b=0;b<m;b++)if(w[b].getAttribute("name")==a)return w[b];return!1}
function c(b){var c="android"==b?"google-play-app":"ios"==b?"apple-itunes-app":"kindle"==b?"kindle-fire-app":"windows"==b?"msApplication-ID":!1,e={appId:!1,title:"",author:"",icon:"",price:"",type:!1};if(c){var f,l;if("windows"==b&&(p&&(f=d("msApplication-PackageEdgeName"))&&(e.appId=f.getAttribute("content")),!e.appId&&(f=d("msApplication-PackageEdgeName"))&&(e.appId=f.getAttribute("content")),!e.appId))return!1;if(f=d(c)){"windows"!=b&&(e.appId=/app-id=([^\s,]+)/.exec(f.getAttribute("content")))&&
(e.appId=e.appId[1]);if(!e.appId)return!1;e.title=f.getAttribute("data-title")||a.getElementsByTagName("title")[0].innerText.replace(/\s*[|\-·].*$/,"");e.author=f.getAttribute("data-author")||((l=d("author")).length?l.getAttribute("content"):g.location.hostname);e.icon=f.getAttribute("data-icon-url");e.price=f.getAttribute("data-price")}e.type=b}return e.appId?e:!1}function f(b){if(!a.getElementById("appbanner")){var c=b.icon,e,g;if(!c)for(e=a.getElementsByTagName("link"),g=0;g<e.length;g++)"apple-touch-icon-precomposed"==
e[g].getAttribute("rel")&&(c=e[g].getAttribute("href"));if(!c)for(g=0;g<e.length;g++)"apple-touch-icon"==e[g].getAttribute("rel")&&(c=e[g].getAttribute("href"));c||!(e=d("msApplication-TileImage"))&&!(e=d("msapplication-TileImage"))||(c=e.getAttribute("content"));e=function(){switch(this.type){case "android":return"market://details?id=";case "kindle":return"amzn://apps/android?asin=";case "windows":return p?"ms-windows-store://pdp/?productid=":"ms-windows-store:navigate?appid="}return"https://itunes.apple.com/ru/app/id"}.call(b)+
b.appId;g=(b.price?b.price:"FREE")+" - "+function(){switch(this.type){case "android":return"В Google Play";case "kindle":return"В Amazon Appstore";case "windows":return"В Windows Store"}return"В App Store"}.call(b);b='<div id="appbanner" class="'+B+(c?"":" no-icon")+'"><div class="ab-container"><a href="#" class="ab-close" data-ab-click="close">&times;</a><span class="ab-icon"'+(c?' style="background-image:url('+c+')"':"")+'></span><div class="ab-info"><strong>'+b.title+"</strong><span>"+b.author+
"</span><span>"+g+'</span></div><a href="'+e+'" class="ab-button" data-ab-click="view">Загрузить</a></div></div>';c=a.createElement("div");e=a.getElementsByTagName("body")[0];c.innerHTML=b;e.firstChild?e.insertBefore(c.firstChild,e.firstChild):e.appendChild(c.firstChild)}}function b(b){var c;!(b.isDefaultPrevented&&b.isDefaultPrevented()||b.isPropagationStopped&&b.isPropagationStopped())&&b.target&&(c=b.target.getAttribute("data-ab-click"))&&("view"==c&&h("ab-installed",1,{path:"/",expires:31536E3}),
"close"==c&&(h("ab-closed",1,{path:"/",expires:31536E3}),b.preventDefault(),b.stopPropagation()),c=a.getElementById("appbanner"))&&(c.style.display="none")}var t=navigator.userAgent+"",p=/Edge/i.test(t),u=navigator.standalone,w=a.getElementsByTagName("meta"),m=w.length,B=k(t);!B||u||e("ab-closed")||e("ab-installed")||e("sb-closed")||e("sb-installed")||(t=c(B))&&t.appId&&(f(t),n.add(a,"click",b))}var n=function(){function d(b){b=b||g.event;if(b.isFixed)return b;b.isFixed=!0;b.preventDefault=b.preventDefault||
function(){this.returnValue=!1};b.stopPropagation=b.stopPropagaton||function(){this.cancelBubble=!0};b.target||(b.target=b.srcElement);!b.relatedTarget&&b.fromElement&&(b.relatedTarget=b.fromElement==b.target?b.toElement:b.fromElement);if(null==b.pageX&&null!=b.clientX){var c=a.documentElement,d=a.body;b.pageX=b.clientX+(c&&c.scrollLeft||d&&d.scrollLeft||0)-(c.clientLeft||0);b.pageY=b.clientY+(c&&c.scrollTop||d&&d.scrollTop||0)-(c.clientTop||0)}!b.which&&b.button&&(b.which=b.button&1?1:b.button&2?
3:b.button&4?2:0);return b}function c(b){b=d(b);var a=this.events[b.type],c;for(c in a)!1===a[c].call(this,b)&&(b.preventDefault(),b.stopPropagation())}var e=0;return{add:function(b,a,d){b.setInterval&&b!=g&&!b.frameElement&&(b=g);d.guid||(d.guid="app"+ ++e);b.events||(b.events={},b.handle=function(a){if("undefined"!==typeof Event)return c.call(b,a)});b.events[a]||(b.events[a]={},b.addEventListener?b.addEventListener(a,b.handle,!1):b.attachEvent&&b.attachEvent("on"+a,b.handle));b.events[a][d.guid]=
d},remove:function(b,a,c){var d=b.events&&b.events[a];if(d){delete d[c.guid];for(var e in d)return;b.removeEventListener?b.removeEventListener(a,b.handle,!1):b.detachEvent&&b.detachEvent("on"+a,b.handle);delete b.events[a];for(e in b.events)return;try{delete b.handle,delete b.events}catch(g){b.removeAttribute("handle"),b.removeAttribute("events")}}}}}(),f=0,f=setInterval(function(){a.getElementsByTagName("body").length&&(clearInterval(f),m())},500)})(q,e);(function(){function a(a,d){return a.getAttribute("data-"+
d)}function g(a){var d=r('.borderwrap[data-post="'+a+'"]');d||(d=r('.borderwrap .ipbtable[data-post="'+a+'"]'))||(d=r('#ipbwrapper [data-post="'+a+'"]'));return d}function n(){f=ipb_var_base_url;var c=f+"act=zmod&auth_key="+ipb_md5_check+"&",d=q.getElementById("se-mod-frm"),b='<img src="'+k+'" alt="Закрепить пост" />',h='<img src="'+m+'" alt="Открепить пост" />',p=function(){alert("Ошибка на сервере")};d&&(d.setAttribute("method","POST"),d.setAttribute("action",c+"&st="+ipb_var_st));e["--seMODpin"]=
function(d,f,l){f=f||e.event;f.preventDefault&&f.preventDefault();f.returnValue=!1;var k=a(d,"pin");confirm("Вы действительно хотите "+("pinpost"==k?"поднять":"опустить")+" данный пост?")&&(f=new z,f.show_loading(),f.done(function(c){if("ok"!=c.responseText)alert("Ошибка");else{"pinpost"==k?(d.innerHTML=h,d.setAttribute("data-pin","unpinpost")):(d.innerHTML=b,d.setAttribute("data-pin","pinpost"));c=r("#topic-pin-content");var e=g(l),f,w=0;!c&&(f=r("#ipbwrapper > .borderwrap > .maintitle:first-child > table"))&&
(f=f.parentNode,c=q.createElement("div"),c.id="topic-pin-content",f.parentNode.insertBefore(c,f.nextSibling));if(e&&c&&"pinpost"==k){try{w=a(r("[data-post]:first-child",c),"post")}catch(m){}if(f=g(w)){e.parentNode.insertBefore(f,e.nextSibling);try{f=r('.pinlink[data-pin="unpinpost"]',f),f.setAttribute("data-pin","pinpost"),f.innerHTML=b}catch(p){}}c.appendChild(e)}}}).fail(p).complete(f.hide_loading),f.process(c+"p="+l+"&code="+a(d,"pin")))};e["--seMODhide"]=function(b,d,f){d=d||e.event;d.preventDefault&&
d.preventDefault();d.returnValue=!1;var l=a(b,"approve");d=new z;d.show_loading();d.done(function(a){if("ok"!=a.responseText)alert("Ошибка");else{l="approve"==l?"unapprove":"approve";b.setAttribute("data-approve",l);var c=g(f);c&&(c.className=(c.className+"").replace(/(^|\s+)hidepin(\s+|$)/g," ").replace(/^\s+|\s+$/gm,""),"approve"==l?(c.className+=" hidepin",b.innerHTML='<img src="'+s+'" atl="Опубликовать" title="Опубликовать пост"/>'):b.innerHTML='<img src="'+s+'" atl="Скрыть" title="Скрыть пост"/>');
if(c=q.getElementById("post-main-"+f)){a="post"+(/(^|\s+)post2/.test(c.className+"")?2:1);for(var d=c,c=c.className,e=a+"shaded2 "+a,c=(c+"").split(" "),e=(e+"").split(" "),h=[],k=0;k<c.length;k++)h.push(-1<e.indexOf(c[k])?"":c[k]);c=h.join(" ").replace(/\s\s+/gm," ");d.className=c+a+("approve"==l?"shaded2":"")}}}).fail(p).complete(d.hide_loading);d.process(c+"code=postchoice&selectedpids="+f+"&tact="+l)};e["--seMODdel"]=function(a,b,d){b=b||e.event;b.preventDefault&&b.preventDefault();b.returnValue=
!1;confirm("Вы действительно хотите удалить это сообщение?")&&(a=new z,a.show_loading(),a.done(function(a){"ok"!=a.responseText?alert("Ошибка"):(a=g(d))&&a.parentNode.removeChild(a)}).fail(p).complete(a.hide_loading),a.process(c+"code=postchoice&tact=delete&selectedpids="+d))}}function h(){var a=0,d=10,b=[],f,g=function(){("function"==typeof checkdelete||0<d)&&a&&clearInterval(a);d--;if("function"==typeof checkdelete){var b=checkdelete;checkdelete=function(){localStorage.removeItem("modpids-"+e.ipb_input_t);
localStorage.removeItem("modtids-"+e.ipb_input_f);return b.apply(this,arguments)}}},h=function(a,b){var c,d=((localStorage.getItem("mod"+a+"-"+parseInt(b))||"")+"").split(","),e=[];for(f=0;f<d.length;f++)d[f]&&(e.push(d[f]),c=r('input[value="'+d[f]+'"][data-field="selected'+a+'"]'))&&(c.checked=!0);return e},k=function(a,b){if(!parseInt(b)){for(var c=[],d=0,e="mod"+a+"-",f=e.length;d<localStorage.length;d++)(localStorage.key(d)+"").substr(0,f)==e&&c.push(localStorage.key(d));for(d=0;d<c.length;d++)localStorage.removeItem(c[d])}},
m=function(a,b){return r('form[name="modform"] [name="CODE"][value="'+a+'"]~[name="'+b+'"]')};try{var n=m("postchoice","selectedpids"),q=m("topicchoice","selectedtids");localStorage&&localStorage.setItem&&(k("pids",e.ipb_input_t),k("tids",e.ipb_input_f),b=h("pids",e.ipb_input_t),n&&(n.value=b.join(","),r('form[name="modform"] [name="gobutton"]').value=lang_gobutton+" ("+b.length+")"),b=h("tids",e.ipb_input_f),q&&(q.value=b.join(","),r('form[name="modform"] [name="gobutton"]').value=lang_gobutton+
" ("+b.length+")"),a=setInterval(g,500))}catch(s){}}var k="//s.4pda.to/9J0aA7naPrF8oTGD41okuRNeuhbidlmez1az1iz0FR.gif",m="//s.4pda.to/9J0aA7nae2H7buf2z1SEfU1z1pefbgpfxKjjeMDABIqa.gif",s="//s.4pda.to/9J0aJiz2PJkPXW7KmyEk9e5iVmcwHDKKbg6A725OM.gif",f="?";e.ipb||(e.ipb={});e.ipb.frmChkToggle=function(c,d){if(c){var b=r(a(c,"form")),f=r('[name="'+a(c,"field")+'"]',b),g=c.value+"",h=c.checked?1:0,k=a(c,"lskey"),m=a(c,"var");if(b&&f){var k=k?k+"":!1,m=m&&e[m]?m:!1,n=(f.value+"").split(","),q=[],s;for(s=0;s<n.length;s++)n[s]&&n[s]!=g&&q.push(n[s]);h&&
q.push(g);try{"undefined"!=typeof lang_gobutton&&(h=r('[name="gobutton"]',b))&&(h.value=lang_gobutton+" ("+q.length+")"),m&&k&&localStorage.setItem&&localStorage.setItem(k+"-"+e[m],q.join(","))}catch(v){}f.value=q.join(",")}else d=d||e.event,d.preventDefault&&d.preventDefault(),d.returnValue=!1}else d=d||e.event,d.preventDefault&&d.preventDefault(),d.returnValue=!1};var d=0,d=setInterval(function(){if(/int|com/.test(q.readyState)){if(!("SVGSVGElement"in e)){var a=q.getElementsByTagName("html");a.length&&
(a[0].className=(a[0].className+" no-svg ").replace(/(^\s+)|(\s\s+)|(\s+$)/g," "))}d&&clearInterval(d);n();h()}},300)})();e.jsEvent.add(q,"click",function(a){if("A"==a.target.tagName&&a.target.hasAttribute("name")&&a.target.hasAttribute("title")&&a.target.getAttribute("name")==a.target.getAttribute("title")&&!a.target.hasAttribute("href")){for(var e=a.target.parentNode;e&&e!=q&&!e.hasAttribute("data-post");)e=e.parentNode;if(e)return a.preventDefault(),prompt("Ссылка на якорь",location.protocol+"//4pda.ru/forum/index.php?act=findpost&pid="+
e.getAttribute("data-post")+"&anchor="+a.target.getAttribute("name")),!1}})})(window,document);
