/* ------- 820c9eff881e30b5374185dfaf40317c -------- */ function onload_html(){navHover();ajaxPost();adBlock();searchInputClear();inputBot();onNewsBox();cursorProgress();addHtml();}function shere(title,url){document.write('<p id="shere">'+ '<b>Podziel się:</b>'+ '<span><a href="http://www.facebook.com/sharer.php?u='+ url +'&amp;t='+ title +'" target="_blank" title="na Facebook" class="icon-facebook">'+ 'na Facebook</a></span>'+ '<span><a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk='+ url +'&amp;title='+ title +'" target="_blank" title="na Google" class="icon-google">'+ 'na Google</a></span>'+ '<span><a href="http://blip.pl/dashboard?body='+ title +' '+ url +'" target="_blank" title="na Blip" class="icon-blip">'+ 'na Blip</a></span>'+ '<span><a href="http://www.wykop.pl/dodaj?url='+ url +'&amp;title='+ title +'&amp;desc=" target="_blank" title="na Wykop" class="icon-wykop">'+ 'na Wykop</a></span>'+ '<span><a href="http://nasza-klasa.pl/sledzik?shout='+ url +'" target="_blank" title="na Śledzik" class="icon-sledzik">'+ 'na Śledzik</a></span>'+ '<span><a href="http://grono.net/pub/popup/link/urlfetch/?url='+ url +'" target="_blank" title="na Grono" class="icon-grono">'+ 'na Grono</a></span>'+ '<span><a href="gg:/set_status?description='+ url +'" target="_blank" title="na Gadu-Gadu(od wersji 8.0)" class="icon-gg">'+ 'na Gadu-Gadu(od wersji 8.0)</a></span>'+ '<span><a href="http://delicious.com/save?jump=yes&amp;partner=addthis&amp;url='+ url +'&amp;notes=&amp;title='+ title +'" target="_blank" title="na Del.ico.us" class="icon-delicious">'+ 'na Del.ico.us</a></span>'+ '<span><a href="http://twitter.com/home/?status='+ title +' '+ url +'" target="_blank" title="na Twitter" class="icon-twitter">'+ 'na Twitter</a></span>'+ '<span><a href="http://flaker.pl/add2flaker.php?url='+ url +'&amp;title='+ title +'" target="_blank" title="na Flaker" class="icon-flaker">'+ 'na Flaker</a></span>'+ '<span><a href="http://www.myspace.com/Modules/PostTo/Pages/?u='+ url +'&amp;t='+ title +'" target="_blank" title="na Myspace" class="icon-myspace">'+ 'na Myspace</a></span>'+ '</p>');}function addHtml(){htmlFooter = function (){var divLinksFooter = document.getElementById("main-footer");if(divLinksFooter){var linksFooter = '<ul>'+'<li class="copy">&copy;LOL24</li>'+'<li><a href="/info/zglos-blad">Zgłoś błąd</a></li>'+'<li><a href="/info/pomoc">Pomoc</a></li>'+'<li><a href="/info/polityka-prywatnosci">Polityka prywatności</a></li>'+'<li><a href="/info/promuj" title="kod linka i banery serwisu">Webmaster</a></li>'+'<li><a href="/info/kontakt">Kontakt</a></li>'+'</ul>';divLinksFooter.innerHTML += linksFooter;}};htmlFooter();}function cursorProgress(){window.onbeforeunload = function(){var html = document.getElementById('lol24');if(html)html.style.cursor = 'progress';var imgAll = document.getElementsByTagName('img');if(imgAll){for(var i=0;i<imgAll.length;i++)imgAll[i].style.cursor = 'progress';}var aAll = document.getElementsByTagName('a');if(aAll){for(var i=0;i<aAll.length;i++)aAll[i].style.cursor = 'progress';}}}function prevContent(){myExplode = function(item,delimiter){tempArray = new Array(1);var Count = 0;var tempString = new String(item);while(tempString.indexOf(delimiter)>0){tempArray[Count]=tempString.substr(0,tempString.indexOf(delimiter));tempString=tempString.substr(tempString.indexOf(delimiter)+1,tempString.length-tempString.indexOf(delimiter)+1);Count=Count+1;}tempArray[Count]=tempString;return tempArray;};prevWords = function(text){text.replace('<br />','<br/>');words = '';word = ''; word = myExplode(text," "); for(i=0;i < word.length;i++)if(word[i])words =  word[i] + ' '  + words;words = words.replace('<i>','</i>');words = words.replace('</i>','<i>');words = words.replace('<b>','</b>');words = words.replace('</b>','<b>');words = words.replace('<string>','</string>');words = words.replace('</string>','<string>');words = words.replace('<u>','</u>');words = words.replace('</u>','<u>');return words.replace("<br/>","<br />");};var elements = document.getElementsByTagName('p');for(i=0;i<elements.length;i++){if(elements[i].className == "pcpmpta"){elements[i].innerHTML = prevWords(elements[i].innerHTML);}}}function onNewsBox(){showSection = function(id){var navSection = document.getElementById('box-news').getElementsByTagName('section');if(navSection)for(var i=0;i<navSection.length;i++)navSection[i].style.display = 'none';if(id)document.getElementById(id).style.display = 'block';};onLi = function(id){var navLi = document.getElementById('list-news').getElementsByTagName('li');for(var i=0;i<navLi.length;i++){navLi[i].className = navLi[i].className.replace(new RegExp(" on"),"");if(navLi[i].className == id)navLi[i].className += ' on';}};animation = function(proc){var box = document.getElementById('box-news');if(box && proc < 10){box.style.opacity = proc/10;setTimeout("animation("+(proc+1)+");", 20);}};onBox = function(id){onLi("news-" + id);showSection("news-" + id);};nextBox = function(current,status,all){var next = parseInt(current);if(status == 'on'){if(all >= current){onBox(current);next += 1;timeNextBox = setTimeout("nextBox("+next+",'"+status+"',"+all+");", 3000);}else{onBox(1);timeNextBox = setTimeout("nextBox(2,'"+status+"',"+all+");", 3000);}}else timeNextBox = null;};var navUl = document.getElementById('list-news');if(navUl)var navLi = navUl.getElementsByTagName('li');if(navLi){for(var i=0;i<navLi.length;i++){navLi[i].onmouseover = function(){this.className = this.className.replace(new RegExp(" on"),"");clearInterval(timeNextBox);showSection(this.className);onLi(this.className);return false;};}var boxNews= document.getElementById('box-news');if(boxNews)var boxNewsSection = boxNews.getElementsByTagName('section');if(boxNewsSection){for(var i=0;i<boxNewsSection.length;i++){boxNewsSection[i].onmouseover = function(){ clearInterval(timeNextBox);}; boxNewsSection[i].onmouseout = function(){   clearInterval(timeNextBox);  var id = this.id.replace(new RegExp("news-"),""); nextBox(id,'on',i); };}}nextBox(1,'on',i);}}function searchInputClear(){var input_sbi = document.getElementById("sbi");if(input_sbi){input_sbi.onfocus = function(){if(input_sbi.value == 'szukaj'){input_sbi.value = '';input_sbi.className = 'on';}};input_sbi.onblur = function(){if(input_sbi.value == ''){input_sbi.value = 'szukaj';input_sbi.className = 'off';}};}}function inputBot(){var botId = document.getElementById('bot');if(botId){botId.value = 'mKSVRR';}}function size_text(id,size){var idText = document.getElementById(id);if(idText)idText.style.fontSize = size+'px';}function ajaxPost(){var dev_null = document.getElementById("dev-null");if(dev_null){var iframe = document.createElement("iframe");iframe.id = "lol24";iframe.name = "lol24";iframe.style.display = 'none';dev_null. appendChild(iframe);var confirmed = document.createElement("div");confirmed.id = "confirmed_ajax";dev_null. appendChild(confirmed);}}function zxcSV(obj,par){if(obj.currentStyle)return obj.currentStyle[par.replace(/-/g,'')];return document.defaultView.getComputedStyle(obj,null).getPropertyValue(par.toLowerCase());}function adBlock(){isAdBlock = function(){var advertising = document.getElementById("advertising");if(advertising && zxcSV(advertising,'display')== 'none'){var divPromo160x90  = document.getElementById("google-links-160x90");var divPromo160x600 = document.getElementById("promo-160-600");var divPromo250x250 = document.getElementById("promo-250-250");var codPromo160x600 = '<div id="promo-160-600" class="promotion promotion promo-160-600"><iframe src="http://www.facebook.com/plugins/recommendations.php?header=false&border_color=%23fff&height=700&locale=pl_PL&sdk=joey&site=lol24.com&width=160" scrolling="no" frameborder="0" allowtransparency="true" style=" border:none;overflow:hidden;width:160px; height:700px;"></iframe></div>';var codPromo250x250 = '<a href="http://www.koszulki.com/?id=2529" target="blank"><img src="http://bannery.fanshop.pl/bannery/popup1.gif" height="250" width="250" alt=""></a>';if(divPromo160x90) divPromo160x90.style.display = 'none';if(divPromo160x600)divPromo160x600.innerHTML = codPromo160x600;if(divPromo250x250)divPromo250x250.innerHTML = codPromo250x250;}};var dev_null = document.getElementById("dev-null");if(dev_null){var advertising = document.createElement("div");advertising.id = "advertising";dev_null.appendChild(advertising);}setTimeout("isAdBlock()",1000);}function navHover(){if(!document.getElementsByTagName)return false;var more = document.getElementsByTagName("a");var nav = document.getElementById("main-nav"). getElementsByTagName("li");var user = document.getElementById("bar"). getElementsByTagName("li");for(var i=0;i<more.length;i++){if(more[i].className=="false")more[i].onclick=function(){return false;};}for(var i=0;i<nav.length;i++){nav[i].onmouseover=function(){this.className+=" sub-main-nav";};nav[i].onmouseout=function(){this.className=this.className. replace(new RegExp(" sub-main-nav\\b"),"");};}var user = document.getElementById("bar"). getElementsByTagName("li");for(var i=0;i<user.length;i++){user[i].onmouseover=function(){this.className+=" sub-user-nav";};user[i].onmouseout=function(){this.className=this.className. replace(new RegExp(" sub-user-nav\\b"),"");}}}function objectFlash(width,height,src){document.write('<object class="object" width="'+width+'" height="'+height+'">'+ '<param name="movie" value="'+src+'" />'+ '<param name="allowFullScreen" value="true" />'+ '<param name="allowscriptaccess" value="always" />'+ '<param name="wmode" value="transparent" />'+ '<embed width="'+width+'" height="'+height+'" src="'+src+'" type="application/x-shockwave-flash" '+ 'pluginspage="http://www.macromedia.com/go/getflashplaye" allownetworking="internal" allowscriptaccess="always" wmode="transparent" allowfullscreen="true" />'+ '</object>');}function like_fb(request_url){document.write('<iframe'+ ' class="like-fb"'+ ' allowtransparency="true"'+ ' src="http://www.facebook.com/plugins/like.php?href='+ ' http://lol24.com'+request_url+'&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light"'+ ' frameborder="0" scrolling="no">'+ '</iframe>');}function hide(id){var hideId = document.getElementById(id);if(hideId)hideId.style.display = 'none';}function show(id){var schowId = document.getElementById(id);if(schowId)schowId.style.display = 'block';}function lengthcheck(f,maxlen){var lengthId = document.getElementById('liczba_znakow');if(f && lengthId){if(f.value.length>maxlen)f.value = f.value.substring(0,maxlen);ile = maxlen - f.value.length;lengthId.innerHTML = ile;}}function clik(url,target){if(target){var blank = window.open('','_blank');blank.location.href=url;}else{location.href=url;}}function commentsStarming(url){lol24.location.href='/ajax/comments-stream?in=' + url;var idCommentsStream = document.getElementById('comments-stream');if(idCommentsStream){idCommentsStream.className = 'comments-stream-load';}}function rating(url){lol24.location.href='/ajax/rating?in=' + url;}function smilies(id){var textareaId = document.getElementById('comment');if(textareaId){textareaId.focus();textareaId.value = textareaId.value + ' ' + id;}}function cite(who,contents){var textareaId = document.getElementById('comment');if(textareaId){textareaId.focus();textareaId.value = textareaId.value +('[quote='+who+']'+contents+'[/quote]\n');}}function onSubmit(id){var submitBottomId = document.getElementById('submit_'+id);if(submitBottomId){submitBottomId.className ='submit-load';submitBottomId.disabled = true;}}function confirmUrl(url,title,msg){if(strpos(url,'comment'))var getTarget = 'target="lol24"';var CofirmDivId = document.getElementById('confirmed_ajax');if(CofirmDivId){var CofirmHtml = '<div id="confirmed-wrapper">'+ '<div id="confirmed-box">'+ '<div id="confirmed-all">'+ '<h1 class="confirmed-title"><span>'+(title ? title: 'info')+'</span></h1>'+ '<div class="confirmed-content">'+ '<div class="confirmed-content-msg">'+msg+'</div>'+ '<div class="confirmed-content-button">'+ '<a class="confirmed-button confirmed-button-to" href="#" onclick="hide(\'confirmed-wrapper\');return false;">anuluj</a>'+ '<a class="confirmed-button" href="'+url+'" '+getTarget+' onclick="hide(\'confirmed-wrapper\');">Tak</a>'+ '</div>'+ '</div>'+ '</div>'+ '<div id="confirmed-bg"></div>'+ '</div>'+ '<div id="confirmed-background"></div>'+ '</div>';CofirmDivId.innerHTML = CofirmHtml;}}(function(){if(!/*@cc_on!@*/0)return;var e = "abbr,article,aside,audio,bb,canvas,datagrid,datalist,details,dialog,eventsource,figure,footer,header,mark,menu,meter,nav,output,progress,section,time,video".split(','),i=0,length=e.length;while(i<length){document.createElement(e[i++])}})();   function decodeSrcObject(input){var keyStr = "ABCDEFGHIJKLMNOP"+ "QRSTUVWXYZabcdef"+ "ghijklmnopqrstuv"+ "wxyz0123456789+/"+ "=";   var output = "";var chr1,chr2,chr3 = "";var enc1,enc2,enc3,enc4 = "";var i = 0;var base64test = /[^A-Za-z0-9\+\/\=]/g;input = input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1 = keyStr.indexOf(input.charAt(i++));enc2 = keyStr.indexOf(input.charAt(i++));enc3 = keyStr.indexOf(input.charAt(i++));enc4 = keyStr.indexOf(input.charAt(i++));chr1 =(enc1 << 2)|(enc2 >> 4);chr2 =((enc2 & 15)<< 4)|(enc3 >> 2);chr3 =((enc3 & 3)<< 6)| enc4;output = output + String.fromCharCode(chr1);if(enc3 != 64){   output = output + String.fromCharCode(chr2);};if(enc4 != 64){   output = output + String.fromCharCode(chr3);};chr1 = chr2 = chr3 = "";enc1 = enc2 = enc3 = enc4 = "";}while(i < input.length)return unescape(output);}function strpos(str,search){str+='';search+='';var w=str.indexOf(search);if(w==-1)return false;return w;}function checkAdult(){var ihaaBox = document.getElementById('ihaa');var checkResult = myReadCookie('adult_settings');if(checkResult == 'ok'){ihaaBox.style.display = 'block';}else{boxAdult();ihaaBox.style.display = 'none';}} function boxAdult(){yesAdult = function(){var ihaaBox = document.getElementById('ihaa');var adultBox = document.getElementById('adultChack');var remind = document.getElementById('overlay_adult_remember');if(adultBox)adultBox.style.display = 'none';if(ihaaBox)ihaaBox.style.display = 'block';if(remind.checked ? mySetCookie('adult_settings','ok',30):null);};noAdult = function(){location.href = '/';};var html = '<div id="adultChack">'+'<div class="content">'+'<h1>(+18)</h1>'+'<strong>'+'Uwaga,materiał może zawierać treści uważane powszechnie za obraźliwe,obrzydliwe lub zbyt seksi.'+'</strong>'+ '<br />'+ '<br />'+ '<input type="checkbox" id="overlay_adult_remember" />'+ '<label for="overlay_adult_remember"> Zapamiętaj moją decyzję</label>'+'<br />'+'<br />'+'<button onclick="yesAdult();">OK,pokaż!</button>'+'</div>'+'</div>';document.write(html);} function myAddCookie(id,value){var to = new Date(); to.setMonth(to.getDay()+1);mySetCookie(id,value,1);}function mySetCookie(cookieName,cookieValue,nDays){var today = new Date();var expire = new Date();if(nDays==null || nDays==0)nDays=1;expire.setTime(today.getTime()+ 3600000*24*nDays);document.cookie = cookieName+"="+escape(cookieValue)+ ";expires="+expire.toGMTString()+ ";path=/;";}function myReadCookie(cookieName){var theCookie=" "+document.cookie;var ind=theCookie.indexOf(" "+cookieName+"=");if(ind==-1)ind=theCookie.indexOf(";"+cookieName+"=");if(ind==-1 || cookieName=="")return "";var ind1=theCookie.indexOf(";",ind+1);if(ind1==-1)ind1=theCookie.length;return unescape(theCookie.substring(ind+cookieName.length+2,ind1));}if(self!=top)top.location=self.document.location;
