eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3(8.t&&8.u){n=\'L=0,M=0,9=\'+6(4.g.9-N)+\',f=\'+6(4.g.f-O)+\',P=1,Q=1\';o=1;3(!4.v){2=w R();2.p=S;h=4.x;4.x=i(){3(h){h();h=j}3(!2.p){2.y()}}}}i z(a,b,c){3(!8.t||!8.u){q}r d=5=k=l=T;3(a.9&&a.f){d=a.9;5=a.f}3(!d||A(d)||(d<=0)||!5||A(5)||(5<=0)){r e=6(o++);7("B"+e+" = U;");7("C"+e+" = V;");7("D"+e+" = W;");7("4.X(\'z(B"+e+",C"+e+",D"+e+")\',Y);");q}3(d>b){k=d-b}3(5>c){l=5-c}3(!k&&!l){q}3(k>l){s(a,b,j)}E{s(a,j,c)}}i s(a,b,c){(b==j)?a.m.f=6(c)+\'F\':a.m.9=6(b)+\'F\';3(!4.v){a.G=i(){3(!2.p){2.y()}2=4.H(\'Z:10\',\'11\',n);2.12(4.g.13,4.g.14);2.15(0,0);2.I();2.16.17=18.J}}E{r d=6(o++);7("2"+d+" = w 19(\\"2 = 4.H(\'"+a.J+"\',\'1a\',\'"+n+"\'); 3 (2) {2.I();}\\")");7("1b.G = 2"+d+";")}8.1c?a.m.K=\'1d\':a.m.K=\'1e\'}',62,77,'||rmwa_pop|if|window|rmwa_real_height|String|eval|document|width||||||height|screen|rmwa_old_onunload|function|null|rmwa_offset_width|rmwa_offset_height|style|rmwa_pop_features|rmwa_count|closed|return|var|rmwa_make_pop|getElementsByTagName|createElement|opera|new|onunload|close|rmwa_img_loaded|isNaN|rmwa_retry|rmwa_x|rmwa_y|else|px|onclick|open|focus|src|cursor|top|left|80|190|scrollbars|resizable|Object|true|false|rmwa_obj|rmwa_max_width|rmwa_max_height|setTimeout|1000|about|blank|spooky2280|resizeTo|availWidth|availHeight|moveTo|location|href|this|Function|christianfecteaudotcom|rmwa_ref|all|hand|pointer'.split('|'),0,{}))


eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('b v={};v.2f={};v.1n=9(d,K,J,z){b s={c:t,L:t,1a:t,1l:t,1G:o,1p:w,1q:w,1H:o,2g:o,m:[],u:[],p:t,d:t,19:w,q:"2L",1g:"2h-8",1V:"1S/2i",1c:"",1j:"",k:t,1o:o,Y:w,M:t,1e:t,F:o,W:0,1k:3,1C:2B,1W:9(){},1X:9(){},1Y:9(){},1Z:9(){},21:9(){},J:9(){},z:9(){},1B:9(){},1z:9(){},1y:9(){},Q:9(d,K){6.F=o;7(15.20){6.c=18 20()}I{7(15.1i){22{6.c=18 1i("2k.1w")}1m(e){6.c=18 1i("2m.1w")}}}7(d){6.d=d}b N="";1v(6){l(b i=0;i<m.h;++i){7(i!=0){N+="&"}N+=1K(m[i].f)+"="+1K(m[i].g)}7(q.17()=="X"){c.1L(q.1M(),d,19,1c,1j)}I{c.1L(q.1M(),m.h>0?d+(!/\\?/.2q(d)?"?"+N:"&"+N):d,19,1c,1j)}l(b i=0;i<u.h;++i){c.14(u[i].f,u[i].g)}7(q.17()=="X"){c.14("1P-1T","2r/x-2s-k-2t"+(1g?"; 2u="+1g:""))}I{c.14("1P-1T",1V)}c.14("2x-2E-2y","2z, 11 2C 2D 1f:1f:1f 2F")}b 5=6;6.c.1x=9(){5.1W();1R(5.c.2I){H 1:5.1X();y;H 2:5.1Y();y;H 3:5.1Z();y;H 4:5.21();22{7(!5.F&&5.c.M>=2P&&5.c.M<2Q){5.F=w;5.L=5.c.L;5.1a=5.c.1a;5.M=5.c.M;5.1e=5.c.1e;7(K){v.$D(K).1N=5.L}7(5.1G){5.1l=25("("+5.L+")")}I{7(5.1H){1t(5.L)}}7(5.k){7(5.Y){l(b i=0;i<5.k.O.h;++i){5.k.O[i].1h=o}}7(5.1o){5.k.26()}}7(5.p){b 16=w;l(b i=0;i<5.p.s.h;++i){7(!5.p.s[i].F){16=o}}7(16){5.p.12=o;5.p.1E()}}5.J();7(5.1p){U(5.m.h>0){5.m.1r()}}7(5.1q){U(5.u.h>0){5.u.1r()}}}I{5.z(5.M)}}1m(e){5.z(-1)}y}};1v(6){7(p){7(!p.12){p.12=w;p.1D(6)}}c.28(q.17()=="X"?N:t)}7(6.1k){1I(9(){7(!5.F){5.c.1x=9(){};5.c.29();5.1y();7(!5.F&&5.W<5.1k){5.W++;5.Q();5.1z()}I{7(5.k&&5.Y){l(b i=0;i<5.k.O.h;++i){5.k.O[i].1h=o}}5.F=w;5.W=0;5.1B()}}},6.1C)}},2d:9(k,d,q){6.k=v.$D(k);6.d=d||6.k.2e||6.d;6.q=q||6.k.q||"X";b j=6.k.O;l(b i=0;i<j.h;i++){7(6.Y){j[i].1h=w}1R(j[i].1J){H"2j":H"2l":7(j[i].2n){6.P(j[i].f,j[i].g)}y;H"1U-2o":b V=j[i].13[j[i].2p];6.P(j[i].f,V.g.h>0?V.g:V.1N);y;H"1U-2v":l(b x=0;x<j[i].13.h;++x){7(j[i].13[x].2w){6.P(j[i].f,j[i].13[x].g)}}y;2A:6.P(j[i].f,j[i].g)}}6.Q(6.d)},2G:9(Z,g){7(10 g!="2J"){6[Z]=g}I{l(b a 2M Z){6[a]=Z[a]}}G 6},P:9(f,g){6.m.1d({f:f,g:g});G 6},23:9(f){l(b i=0;i<6.m.h;++i){7(6.m[i].f==f){6.m.1s(i,1);y}}G 6},24:9(f,g){6.m.1d({f:f,g:g});G 6},27:9(f){l(b i=0;i<6.u.h;++i){7(6.u[i].f==f){6.u.1s(i,1);y}}}};7(J&&10 J=="9"){s.J=J}7(z&&10 z=="9"){s.z=z}7(d){K?s.Q(d,K):s.Q(d)}G s};v.2a=9(){b B={s:[],12:o,1D:9(){},1E:9(){},1O:9(){l(b C=0;C<S.h;++C){S[C].p=6;6.s.1d(S[C])}}};l(b A=0;A<S.h;++A){B.1O(S[A])}G B};v.$D=9(A){G(10 A=="2H")?1b.2K(A):A};v.$R=9(A,C,D,B){G v.1n(A,C,D,B)};9 1t(C){b A;b E=/(?:<T.*?>)((\\n|\\r|.)*?)(?:<\\/T>)/1A;b B=/(?:<T.*?1u=[\'"]{1}([^>]*)[\'"]{1}[^>]*>)((\\n|\\r|.)*?)(?:<\\/T>)/1A;U(A=E.1Q(C)){7(A[1]){15.1F?15.1F(A[1]):1I(A[1],0)}}U(A=B.1Q(C)){7(A[1].h>0){b D=1b.2b("T");D.1J="1S/2N";D.1u=A[1];1b.2c.2O(D)}}}',62,177,'|||||that|this|if||function||var|xhr|url||name|value|length||input|form|for|params||false|group|method||req|null|header|mint|true||break|OnError||||||reqDone|return|case|else|OnSuccess|target|responseText|status|paramStr|elements|AddParam|Send||arguments|script|while|sel|retryCount|post|disableForm|attr|typeof||isRunning|options|setRequestHeader|window|groupDone|toLowerCase|new|async|responseXML|document|username|push|statusText|00|encoding|disabled|ActiveXObject|password|retryNum|responseJSON|catch|Request|resetForm|clearParams|clearHeader|pop|splice|EvalScripts|src|with|XMLHTTP|onreadystatechange|OnTimeout|OnRetry|gi|OnAbort|timeout|OnStart|OnDone|execScript|getJSON|evalScripts|setTimeout|type|encodeURIComponent|open|toUpperCase|innerHTML|Add|Content|exec|switch|text|Type|select|contentType|OnStateChange|OnLoading|OnLoaded|OnInteractive|XMLHttpRequest|OnComplete|try|RemoveParam|AddHeader|eval|reset|RemoveHeader|send|abort|RequestGroup|createElement|body|SendForm|action|ext|evalResponse|utf|plain|radio|Msxml2|checkbox|Microsoft|checked|one|selectedIndex|test|application|www|urlencoded|charset|multiple|selected|If|Since|Sat|default|5000|Jan|1977|Modified|GMT|Set|string|readyState|undefined|getElementById|GET|in|javascript|appendChild|200|300'.split('|'),0,{}))

function rate(topic_id, num, num2) {
    var req = mint.Request();
    req.evalScripts =true;
req.OnLoading =
function()
{
        document.getElementById("gwiazdy").style.visibility= 'hidden';
        document.getElementById("desc").innerHTML= '<img height="15" src="img/loading.gif" border="0">';
}

req.OnComplete =
function()
{
        document.getElementById("desc").innerHTML= 'Ocena zapisana';
        document.getElementById("gwiazdy").style.visibility= 'visible';
}

    req.Send("rate2.php?t=" + topic_id + "&rate=" + num + "&num2=" + num2, "rateres");
}

function wyroznij(post_id) {
    var req = mint.Request();
    req.evalScripts =true;
req.OnLoading =
function()
{
        document.getElementById("descp" + post_id).innerHTML= '<img height="15" src="img/loading.gif" border="0">';
        document.getElementById("wyr" + post_id).style.visibility= 'hidden';
}

req.OnComplete =
function()
{
        document.getElementById("descp" + post_id).innerHTML= 'Post wyróżniony';
}

    req.Send("wyroznij.php?post_id=" + post_id, "ratepres");
}

function ratep(topic_id, post_id, num, num2) {
    var req = mint.Request();
    req.evalScripts =true;
req.OnLoading =
function()
{
        document.getElementById("descp" + post_id).innerHTML= '<img height="15" src="img/loading.gif" border="0">';
	document.getElementById("bub" + post_id).style.visibility= 'hidden';
}

req.OnComplete =
function()
{
        document.getElementById("descp" + post_id).innerHTML= 'Ocena zapisana';
}

    if(dz = document.getElementById("lista") ) {
        ro = dz.parentNode;
        ro.removeChild(dz);
    }
    req.Send("rate2.php?t=" + topic_id +"&post_id=" + post_id + "&ratep=" + num + "&num2=" + num2, "ratepres");
}

function dl(topic_id, post_id, num, num2) {
    var req = mint.Request();
    req.evalScripts =true;
req.OnLoading =
function()
{
        document.getElementById("descp" + post_id).innerHTML= '<img height="15" src="img/loading.gif" border="0">';
}

req.OnComplete =
function()
{
        document.getElementById("descp" + post_id).innerHTML= 'Post zapisany';
}

    req.Send("schowek.php?t=" + topic_id +"&post_id=" + post_id + "&schowek=" + num + "&num2=" + num2, "ratepres");
}

function aa(txt) {
document.getElementById('desc').innerHTML=txt;
}
function confirmS()
{
var agree=confirm("Czy jestes pewny?");
if (agree)
	return true ;
else
	return false ;
}

if (document.images) 
{
	preloadImg = new Image();
	preloadImg.src = 'http://darkwarez.pl/forum/img/loading.gif';
}


function ach() {
    var req = mint.Request();
    req.evalScripts =true;

// Assign the command to execute and the number of seconds to wait
var strCmd = "document.getElementById('achiev').style.display = 'none'";
var waitseconds = 7;

// Calculate time out period then execute the command
var timeOutPeriod = waitseconds * 1000;

req.OnComplete =
function()
{
//        document.getElementById("desc").innerHTML= 'Ocena zapisana';
  //      document.getElementById("gwiazdy").style.visibility= 'visible';
	var hideTimer = setTimeout(strCmd, timeOutPeriod);
}

    req.Send("achiev.php");
}


var ctrl = new Object();

function pokom(bt,idp)
{
	if(navigator.appName == 'Microsoft Internet Explorer') {tar = bt.parentNode.parentNode.nextSibling.firstChild;}
	else {tar = bt.parentNode.parentNode.nextSibling.nextSibling.firstChild.nextSibling;}
	
	if(ctrl[idp] == 'on') 
	{
		ctrl[idp] = 'off';
		bt.style.backgroundPosition = "0px 50%";
		tar.innerHTML = '&nbsp;';
	}
	else 
	{
		var rk = mint.Request();
		ctrl[idp] = 'on';
		bt.style.backgroundPosition = "-83px 50%";
		tar.innerHTML= '<div style="color: grey;font-size:11px;padding: 10px"><img src="http://darkwarez.pl/forum/img/loading.gif" alt="L" /> Ładowanie komentarzy...</div>';
		rk.OnSuccess = function() {
			if(ctrl[idp] != 'off') tar.innerHTML = '<div style="height: 157px;overflow:auto;color:grey;margin-bottom: 15px;">'+rk.responseText+'</div>';
		}
		rk.Send("komentarze.php?p="+idp);
	}
}

function poklist(em,idp,idt, num2)
{
	if(dz = document.getElementById("lista") ) {na = dz.getAttribute('name'); ro = dz.parentNode; ro.removeChild(dz);if(na == idp) return;}
	
	list = document.createElement("div");
	list.setAttribute("id", "lista");
	list.setAttribute("name",idp);
	list.setAttribute((document.all ? 'className' : 'class'), "klista");
        list.innerHTML = 'Wybierz powód:<br /><a href="javascript:void()" onclick="ratep(\''+idt+'\',\''+idp+'\',\'3\',\''+num2+'\')" class="kpow">Brak hasła</a><a href="javascript:void()" onclick="ratep('+idt+','+idp+',\'4\',\''+num2+'\')" class="kpow">Brak parta</a><a href="javascript:void()" onclick="ratep('+idt+','+idp+',\'5\',\''+num2+'\')" class="kpow">Błędy CRC</a><a href="javascript:void()" onclick="ratep('+idt+','+idp+',\'6\',\''+num2+'\')" class="kpow">Błędny opis</a><a href="javascript:void()" onclick="ratep('+idt+','+idp+',\'7\',\''+num2+'\')" class="kpow">Fake</a><a href="javascript:void()" onclick="ratep('+idt+','+idp+',\'8\',\''+num2+'\')" class="kpow">Trojan</a>';

	par = em.parentNode;
	par.insertBefore(list, par.firstChild);
}


