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}('5 h=6.B?C:a;1(h){5 D=6.i&&6.i!="E"?6.F:6.G}5 j=k();5 H=b I;8 J(9,l){9.d=l}8 K(9){9.d=\'/m/L.n\'}8 o(p){5 f=6.M(\'o\');1(N(p.O)==\'P\'&&f.q.Q==0){f.q=\'r s <9 d="/m/t.n" R="r s" S="T" U="V">: <W X="Y[t]" Z="3" 10="3">\'}}8 k(){5 7;1(u.v){7=b v()}w 1(u.g){x{7=b g("11.y")}z(e){x{7=b g("12.y")}z(e){}}}1(7){c 7}w{13(\'14 15 16 17 j\');c a}}8 18(A,2){1(2){2.19(\'1a\',A,a);2.1b(1c);1(2.1d==4){1(2.1e==1f){c 2.1g}}}c a}',62,79,'|if|handle|||var|document|xmlHttp|function|img|false|new|return|src||obj|ActiveXObject|ie|compatMode|ajax|kRequest|th|images|png|drawcode|value|innerHTML|Przepisz|kod|code|window|XMLHttpRequest|else|try|XMLHTTP|catch|url|all|true|IEbody|BackCompat|documentElement|body|aCache|Array|nsfw_show|nsfw_hide|nsfw|getElementById|typeof|lenght|undefined|length|alt|height|35px|width|70px|input|name|addcomment|size|maxlength|Msxml2|Microsoft|alert|your|browser|doesnt|support|kSyncReq|open|GET|send|null|readyState|status|200|responseText'.split('|'),0,{}))

function doVote(obj){
	var id = obj.parentNode.className.match(/^voter ([\d]{1,4})$/)[1];
	var url = '\/'+obj.className+'\/'+id
	if(ajax){
   		ajax.open('GET', url, true);
	    ajax.onreadystatechange = function(){
		    if(ajax.readyState == 4){
		        if(ajax.status == 200){
		        	if(/^#voted#.+$/.test(ajax.responseText)){
			        	alert('Głosowałeś '+ajax.responseText.match(/^#voted#(.+)$/)[1]);
		        	}
					else if(/^#OK#.+$/.test(ajax.responseText)){
						var found = ajax.responseText.match(/^#OK#([\-\d]+)#([\w]{6})$/);
						var rating = obj.parentNode.getElementsByTagName('DIV')[0].firstChild;
						rating.color = '#'+found[2];
						rating.innerHTML = found[1];
		        	}
		        	else{
						alert('Wystąpił nieoczekiwany błąd!');
		        	}
		        }
		    }
	    }
		ajax.send(null);
	}
}
