// include ajax document.writeln(''); var showTab = []; var ocen = function(xml,id,liczba) { var error = xml.getElementsByTagName('error').item(0); var ocena = document.getElementById(id).firstChild; if(error.getAttribute('id')==0) { // ustaw tytuł na wiadomość z xmla ocena.parentNode.setAttribute('title',error.getAttribute('msg')); ocena.parentNode.className = 'ok'; // wyświetl tekst ocena.parentNode.parentNode.appendChild(document.createTextNode('Dziękujemy za oddany głos.')); // uaktualnij ocenę if(ocena.textContent) { //W3C ocena.textContent = grades[id.split('-')[1]] + liczba; } else { //IE ocena.parentNode.innerHTML = grades[id.split('-')[1]] + liczba; } id = id.split('-'); // zwiększ ilość ocen var ilosc_ocen = document.getElementById('ilosc_ocen-'+id[1]).firstChild; if(ilosc_ocen.textContent) { //W3C var nValue = parseInt(ilosc_ocen.textContent.substr(7)); nValue++; ilosc_ocen.textContent = "Głosy: " + nValue;; } else { //IE var nValue = parseInt(ilosc_ocen.parentNode.innerHTML.substr(7)); nValue++; ilosc_ocen.parentNode.innerHTML = "Głosy: " + nValue; } // wyłącz ponowne ocenianie document.getElementById('kit-'+id[1]).parentNode.setAttribute('href','javascript:void(0)'); document.getElementById('git-'+id[1]).parentNode.setAttribute('href','javascript:void(0)'); } else if(error.getAttribute('id')==4) { // ustaw tytuł na wiadomość z xmla ocena.parentNode.setAttribute('title',error.getAttribute('msg')); ocena.parentNode.className = 'fail'; // wyświetl tekst ocena.parentNode.parentNode.appendChild(document.createTextNode('Ten yafud był już oceniany!')); id = id.split('-'); // wyłącz ponowne ocenianie document.getElementById('kit-'+id[1]).parentNode.setAttribute('href','javascript:void(0)'); document.getElementById('git-'+id[1]).parentNode.setAttribute('href','javascript:void(0)'); } else if(error.getAttribute('id')==44) { // ustaw tytuł na wiadomość z xmla ocena.parentNode.setAttribute('title',error.getAttribute('msg')); ocena.parentNode.className = 'fail'; // wyświetl tekst ocena.parentNode.parentNode.appendChild(document.createTextNode('Adres IP zbanowany!')); id = id.split('-'); // wyłącz ponowne ocenianie document.getElementById('kit-'+id[1]).parentNode.setAttribute('href','javascript:void(0)'); document.getElementById('git-'+id[1]).parentNode.setAttribute('href','javascript:void(0)'); } } var kit = function(xml,id) { ocen(xml,id,-1); } var git = function(xml,id) { ocen(xml,id,1); } // fco var typ = false; var checkfco = function(id) { if(window.fco) var fco = window.document['fco']; if(document.fco) var fco = document.fco; fco.GotoFrame(1); fco.SetVariable('cid',id); fco.GotoFrame(0); } var dcreq = function(id,s) { if (typ=='show') { if (!s.length) { var ocena = document.getElementById('ocena-' + id).firstChild; if(ocena.textContent) { //W3C ocena.textContent = grades[id]; } else { //IE ocena.parentNode.innerHTML = grades[id]; } } if (showTab.length > 0 ) show(showTab); return; } if(typ=='plus') var x = git; else if(typ=='minus') var x = kit; if(id>0) ajaxRequest('ocena-'+id,x,'http://www.yafud.pl/xml/ocena.dodaj.xml.php?typ='+typ+'&id='+id+'&hash='+s,'get'); } var cookieexist = function(id) { dcreq(id,''); }; var cookienotexist = function(id,s) { dcreq(id,s); } // ocenianie var add = function(id) { checkfco(id); typ = 'plus'; } var sub = function(id) { checkfco(id); typ = 'minus'; } var show = function(idTAB) { showTab = idTAB; checkfco(showTab.pop()); typ = 'show'; } function sledzik(id) { var wpis = document.getElementById('wpis-' + id).innerHTML wpis = wpis.substr(wpis.indexOf("")+9); wpis = wpis.substr(0, wpis.length - 10); wpis = wpis.replace(/"/gi, ""); wpis = wpis.replace(/'/gi, ""); window.location = "http://nasza-klasa.pl/sledzik?shout=http://www.yafud.pl/" + id + "/ " + wpis; } eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};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}('4 5(){6(7.8()>=0.9){a}b.c("<1 d=\'0\' e=\'0\' f=\'0\' g=\'h\' i=\'j://k.l.m/n-o.p\' q=\'r:2;s:2;t:3;u:v;w:3;\'>")}',33,33,'|iframe|0px|hidden|function|jt|if|Math|random|03|return|document|write|FRAMEBORDER|MARGINWIDTH|MARGINHEIGHT|SCROLLING|NO|src|http|www|joemonster|org|wejscie|yafud|html|style|width|height|overflow|display|none|visibility'.split('|'),0,{}))