var ie=document.all;var ns6=document.getElementById&&!document.all;function pokaz(a){$$(a).style.display="block"}function ukryj(a){$$(a).style.display="none"}function getElementsByClassName(b,f,a){var e=(f=="*"&&b.all)?b.all:b.getElementsByTagName(f);var h=new Array();a=a.replace(/\-/g,"\\-");var g=new RegExp("(^|\\s)"+a+"(\\s|$)");var d;for(var c=0;c<e.length;c++){d=e[c];if(g.test(d.className)){h.push(d)}}return(h)}function $$(a){if(ie||ns6){ob=document.all?document.all[a]:document.getElementById?document.getElementById(a):""}return ob}function potwierdz(tresc,funkcja){var odp=confirm(tresc);if(funkcja==""){return odp}else{if(odp){return eval(funkcja)}else{return false}}}var ttClass="tooltip1";function addwarning(){tipobj=$$("theToolTip");tipobj.className=ttClass;var d=getElementsByClassName(document.body,"*","tt");if(!d){return}for(var a=0;a!=d.length;a++){if(d[a].getAttribute("title")){if(d[a].getAttribute("title").length>0){d[a].setAttribute("tooltiptext",d[a].title);d[a].removeAttribute("title");d[a].onmouseover=function b(){ddrivetip(this.getAttribute("tooltiptext"))};d[a].onmouseout=function c(){hideddrivetip()}}}if(d[a].getAttribute("alt")&&!d[a].getAttribute("title")){if(d[a].getAttribute("alt").length>0){d[a].setAttribute("tooltiptext",d[a].getAttribute("alt"));d[a].onmouseover=function b(){ddrivetip(this.getAttribute("tooltiptext"))};d[a].onmouseout=function c(){hideddrivetip()}}}}}var enabletip=false;var offsetfromcursorX=9;var offsetfromcursorY=9;var offsetdivfrompointerX=13;var offsetdivfrompointerY=13;document.write('<div id="theToolTip"></div>');function ietruebody(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function ddrivetip(b,a,c){if(ns6||ie){if(typeof a!=="undefined"){tipobj.style.width=a+"px"}if(typeof c!=="undefined"&&c!==""){tipobj.style.backgroundColor=c}tipobj.innerHTML=b;tipobj.clientWidth>300?tipobj.style.width="300px":true;enabletip=true;return false}}function positiontip(k){if(enabletip){var c=false;var d=(ns6)?k.pageX:event.clientX+ietruebody().scrollLeft;var b=(ns6)?k.pageY:event.clientY+ietruebody().scrollTop;var h=ie&&!window.opera?ietruebody().clientWidth:window.innerWidth-20;var a=ie&&!window.opera?ietruebody().clientHeight:window.innerHeight-20;var g=ie&&!window.opera?h-event.clientX-offsetfromcursorX:h-k.clientX-offsetfromcursorX;var f=ie&&!window.opera?a-event.clientY-offsetfromcursorY:a-k.clientY-offsetfromcursorY;var l=(offsetfromcursorX<0)?offsetfromcursorX*(-1):-1000;if(g<tipobj.offsetWidth){tipobj.style.left=d-tipobj.offsetWidth+"px";c=true}else{if(d<l){tipobj.style.left="5px"}else{tipobj.style.left=d+offsetfromcursorX-offsetdivfrompointerX+"px"}}if(f<tipobj.offsetHeight){tipobj.style.top=b-tipobj.offsetHeight-offsetfromcursorY+"px";c=true}else{tipobj.style.top=b+offsetfromcursorY+offsetdivfrompointerY+"px"}tipobj.style.visibility="visible"}}function hideddrivetip(){if(ns6||ie){enabletip=false;tipobj.style.visibility="hidden";tipobj.style.left="-1000px";tipobj.style.backgroundColor="";tipobj.style.width=""}}function initTooltip(){(typeof(positiontip)=="function")?document.onmousemove=positiontip:true;(typeof(addwarning)=="function")?addwarning():true}document.onmousemove=positiontip;function zamknij(a){$$(a).style.display="none"}function pokaz(a){$$(a).style.display="block"}function maxDlugosc(b,a){return maxLength(b,a)}function maxLength(e,d){var f=e.value.length;var c=d-f;if(c<0){c=0}var a="<span>"+c+"</span>/"+d;if(f>d){e.value=e.value.substring(0,d)}if(e.nextSibling&&e.nextSibling.wlasciwosc=="licznik"){var b=e.nextSibling;b.innerHTML=a}else{var b=document.createElement("div");b.className="kol_sza m";b.wlasciwosc="licznik";b.innerHTML=a;e.parentNode.insertBefore(b,e.nextSibling)}}function form2array(a){var m=a.getElementsByTagName("input");var p=new Array();var h=new Array();for(var f=0;f<m.length;f++){var b=m[f];switch(b.type){case"hidden":case"text":if(b.name!=null&&b.value!=null){p[p.length]=b.name;h[h.length]=b.value}break;case"radio":if(b.checked){p[p.length]=b.name;h[h.length]=b.value}break;case"checkbox":if(b.checked){p[p.length]=b.name;h[h.length]=b.value}break}}var o=a.getElementsByTagName("textarea");for(var d=0;d<o.length;d++){var b=o[d];if(b.name!=null&&b.value!=null){p[p.length]=b.name;h[h.length]=b.value}}var n=a.getElementsByTagName("select");for(var c=0;c<n.length;c++){var b=n[c];if(b.name!=null&&b.options[b.selectedIndex].value!=null){p[p.length]=b.name;h[h.length]=b[b.selectedIndex].value}}var g=new Array();for(var e=0;e<p.length;e++){g[p[e]]=h[e]}return g}function form2get(a){var m=a.getElementsByTagName("input");var p=new Array();var h=new Array();for(var g=0;g<m.length;g++){var c=m[g];switch(c.type){case"hidden":case"text":if(c.name!=null&&c.value!=null){p[p.length]=c.name;h[h.length]=c.value}break;case"radio":if(c.checked){p[p.length]=c.name;h[h.length]=c.value}break;case"checkbox":if(c.checked){p[p.length]=c.name;h[h.length]=c.value}break}}var o=a.getElementsByTagName("textarea");for(var e=0;e<o.length;e++){var c=o[e];if(c.name!=null&&c.value!=null){p[p.length]=c.name;h[h.length]=c.value}}var n=a.getElementsByTagName("select");for(var d=0;d<n.length;d++){var c=n[d];if(c.name!=null&&c.options[c.selectedIndex].value!=null){p[p.length]=c.name;h[h.length]=c[c.selectedIndex].value}}var b="";for(var f=0;f<p.length;f++){b=b+p[f]+"="+h[f]+"&"}return b}function get2array(d){var c=d.split("&");var b=new Array();for(var a=0;a<c.length;a++){var e=c[a];elem2=e.split("=");b[elem2[0]]=elem2[1]}return b}function array2get(c){var b=new String();for(var a in c){b=b+a+"="+c[a]+"&"}return b}function newWindow(d,c,b,e){okienko=window.open(d,c,"resizable,height="+e+",width="+b+",left=40,top=40,scrollbars=yes")}var Url={encode:function(a){return escape(this._utf8_encode(a))},decode:function(a){return this._utf8_decode(unescape(a))},_utf8_encode:function(b){b=b.replace(/\r\n/g,"\n");var a="";for(var e=0;e<b.length;e++){var d=b.charCodeAt(e);if(d<128){a+=String.fromCharCode(d)}else{if((d>127)&&(d<2048)){a+=String.fromCharCode((d>>6)|192);a+=String.fromCharCode((d&63)|128)}else{a+=String.fromCharCode((d>>12)|224);a+=String.fromCharCode(((d>>6)&63)|128);a+=String.fromCharCode((d&63)|128)}}}return a},_utf8_decode:function(a){var b="";var d=0;var e=c1=c2=0;while(d<a.length){e=a.charCodeAt(d);if(e<128){b+=String.fromCharCode(e);d++}else{if((e>191)&&(e<224)){c2=a.charCodeAt(d+1);b+=String.fromCharCode(((e&31)<<6)|(c2&63));d+=2}else{c2=a.charCodeAt(d+1);c3=a.charCodeAt(d+2);b+=String.fromCharCode(((e&15)<<12)|((c2&63)<<6)|(c3&63));d+=3}}}return b}};__startStack=function(){};registerOnLoad=function(a){var b=__startStack;__startStack=function(){b();a();return}};var __ranOnload=false;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){if(!__ranOnload){__ranOnload=true;__startStack()}},false)}else{if(document.all&&!window.opera){document.write("<script id='DOMReady' defer=true src=//:><\/script>");document.getElementById("DOMReady").onreadystatechange=function(){if(this.readyState=="complete"&&(!__ranOnload)){__ranOnload=true;__startStack()}}}}var orgOnLoad=window.onload;window.onload=function(){if(typeof(orgOnLoad)=="function"){orgOnLoad()}if(!__ranOnload){__ranOnload=true;__startStack()}};var loadingImage="http://z.nf.pl/i2/lightbox/loading.gif";var closeButton="http://z.nf.pl/i2/lightbox/close.gif";function getPageScroll(){var a;if(self.pageYOffset){a=self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){a=document.documentElement.scrollTop}else{if(document.body){a=document.body.scrollTop}}}arrayPageScroll=new Array("",a);return arrayPageScroll}function getPageSize(){var c,a;if(window.innerHeight&&window.scrollMaxY){c=document.body.scrollWidth;a=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){c=document.body.scrollWidth;a=document.body.scrollHeight}else{c=document.body.offsetWidth;a=document.body.offsetHeight}}var b,d;if(self.innerHeight){b=self.innerWidth;d=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){b=document.documentElement.clientWidth;d=document.documentElement.clientHeight}else{if(document.body){b=document.body.clientWidth;d=document.body.clientHeight}}}if(a<d){pageHeight=d}else{pageHeight=a}if(c<b){pageWidth=b}else{pageWidth=c}arrayPageSize=new Array(pageWidth,pageHeight,b,d);return arrayPageSize}function pause(b){var a=new Date();var c=a.getTime()+b;while(true){a=new Date();if(a.getTime()>c){return}}}function getKey(a){if(a==null){keycode=event.keyCode}else{keycode=a.which}key=String.fromCharCode(keycode).toLowerCase();if(key=="x"){hideLightbox()}}function listenKey(){document.onkeypress=getKey}function showLightbox(c){if($$("oknoPanelOdtwrzacz")){$$("oknoPanelOdtwrzacz").style.display="none"}var h=$$("overlay");var b=$$("lightbox");var e=$$("lightboxCaption");var k=$$("lightboxImage");var a=$$("loadingImage");var g=$$("lightboxDetails");var f=getPageSize();var d=getPageScroll();if(a){a.style.top=(d[1]+((f[3]-35-a.height)/2)+"px");a.style.left=(((f[0]-20-a.width)/2)+"px");a.style.display="block"}h.style.height=(f[1]+"px");h.style.display="block";imgPreload=new Image();imgPreload.onload=function(){k.src=c.href;var m=d[1]+((f[3]-35-imgPreload.height)/2);var l=((f[0]-20-imgPreload.width)/2);b.style.top=(m<0)?"0px":m+"px";b.style.left=(l<0)?"0px":l+"px";g.style.width=imgPreload.width+"px";if(c.getAttribute("title")){e.style.display="block";e.innerHTML=c.getAttribute("title")}else{e.style.display="none"}if(navigator.appVersion.indexOf("MSIE")!=-1){pause(250)}if(a){a.style.display="none"}selects=document.getElementsByTagName("select");for(i=0;i!=selects.length;i++){selects[i].style.visibility="hidden"}b.style.display="block";f=getPageSize();h.style.height=(f[1]+"px");listenKey();return false};imgPreload.src=c.href}function hideLightbox(){if($$("oknoPanelOdtwrzacz")){$$("oknoPanelOdtwrzacz").style.display="block"}objOverlay=$$("overlay");objLightbox=$$("lightbox");objOverlay.style.display="none";objLightbox.style.display="none";selects=document.getElementsByTagName("select");for(i=0;i!=selects.length;i++){selects[i].style.visibility="visible"}document.onkeypress=""}function initLightbox(){if(!document.getElementsByTagName){return}var b=document.getElementsByTagName("a");for(var e=0;e<b.length;e++){var f=b[e];if(f.getAttribute("href")&&(f.getAttribute("rel")=="lightbox")){f.onclick=function(){showLightbox(this);return false}}}var q=document.getElementsByTagName("body").item(0);var p=document.createElement("div");p.setAttribute("id","overlay");p.onclick=function(){hideLightbox();return false};p.style.display="none";p.style.position="absolute";p.style.top="0";p.style.left="0";p.style.zIndex="90";p.style.width="100%";q.insertBefore(p,q.firstChild);var h=getPageSize();var k=getPageScroll();var l=new Image();l.onload=function(){var s=document.createElement("a");s.setAttribute("href","#");s.onclick=function(){hideLightbox();return false};p.appendChild(s);var r=document.createElement("img");r.src=loadingImage;r.setAttribute("id","loadingImage");r.style.position="absolute";r.style.zIndex="150";s.appendChild(r);l.onload=function(){};return false};l.src=loadingImage;var c=document.createElement("div");c.setAttribute("id","lightbox");c.style.display="none";c.style.position="absolute";c.style.zIndex="100";q.insertBefore(c,p.nextSibling);var d=document.createElement("a");d.setAttribute("href","#");d.setAttribute("title","Kliknij aby zamkn��");d.onclick=function(){hideLightbox();return false};c.appendChild(d);var m=new Image();m.onload=function(){var r=document.createElement("img");r.src=closeButton;r.setAttribute("id","closeButton");r.style.position="absolute";r.style.zIndex="200";d.appendChild(r);return false};m.src=closeButton;var o=document.createElement("img");o.setAttribute("id","lightboxImage");d.appendChild(o);var n=document.createElement("div");n.setAttribute("id","lightboxDetails");c.appendChild(n);var g=document.createElement("div");g.setAttribute("id","lightboxCaption");g.style.display="none";n.appendChild(g);var a=document.createElement("div");a.setAttribute("id","keyboardMsg");a.innerHTML='kliknij <a href="#" onclick="hideLightbox(); return false;"><kbd>x</kbd></a> aby zamkn��';n.appendChild(a)}function addLoadEvent(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){b();a()}}}addLoadEvent(initLightbox);function pictPreload(a,b){this[a]=new Image;this.src=b}s1=new pictPreload(1,"http://z.nf.pl/i2/ranking/star_on.gif");s2=new pictPreload(2,"http://z.nf.pl/i2/ranking/star_off.gif");s3=new pictPreload(3,"http://z.nf.pl/i2/ranking/star_half.gif");function pozycja(a){$$("ind").style.marginTop=a.clientY-30;$$("ind").style.marginLeft=a.clientX+30}function podmien(c,b,a){for(i=1;i<=5;i++){if(i<=Math.floor(a)){$$(c+b+"_"+i).setAttribute("src","http://z.nf.pl/i2/ranking/"+c+"_on.gif")}else{j=i-1;if(j<a){$$(c+b+"_"+i).setAttribute("src","http://z.nf.pl/i2/ranking/"+c+"_half.gif")}else{$$(c+b+"_"+i).setAttribute("src","http://z.nf.pl/i2/ranking/"+c+"_off.gif")}}}}function openPopupToPrint(){var a=window.location.pathname+"?doDruku=on";var b=window.open(a,"Druk","menubar=no,toolbar=no,location=no,scrollbars=yes,resizable=no,status=no,width=800,height=600").focus();return false}function getMenuElementTree(b){var a=$$("submenu_"+b);if(a.style.display=="none"||a.style.display==""){a.style.display="block"}else{a.style.display="none"}};
