var object=false;function getAjaxData(c,a){if(window.XMLHttpRequest){object=new XMLHttpRequest()}else{if(window.ActiveXObject){object=new ActiveXObject("Microsoft.XMLHTTP")}}if(object.readyState==4||object.readyState==0){var b=document.getElementById(a);object.open("GET",c);object.onreadystatechange=function(){if(object.readyState==4&&object.status==200){b.innerHTML=object.responseText}};object.send(null)}}function OdswiezajID(c,a,b){getAjaxData(c,a);if(b>0){setTimeout("OdswiezajID('"+c+"', '"+a+"', '"+b+")",b*1000)}}function ZaladujBlokForum(c,a,b){setTimeout("OdswiezajID('"+c+"', '"+a+"', '"+0+")",b*1000)}function makeScrollbar(d,g,e,a,f){var b=(a?(d.getScrollSize().x-d.getSize().x):(d.getScrollSize().y-d.getSize().y));var c=new Slider(g,e,{steps:b,mode:(a?"horizontal":"vertical"),onChange:function(i){var h=(a?i:0);var j=(a?0:i);d.scrollTo(h,j)}}).set(0);if(!(f)){$$(d,g).addEvent("mousewheel",function(i){i=new Event(i).stop();var h=c.step-i.wheel*30;c.set(h)})}$(document.body).addEvent("mouseleave",function(){c.drag.stop()})}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_reloadPage(init){if(init==true){with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage}}}else{if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH){location.reload()}}}function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}}function MM_openBrWindow(c,a,b){window.open(c,a,b)}function HideObject(a){if(document.getElementById(a).style.display=="none"){document.getElementById(a).style.display=""}else{document.getElementById(a).style.display="none"}}function countdown(g,c,e,b,a,f,d){Today=new Date();Todays_Year=Today.getFullYear()-2000;Todays_Month=Today.getMonth();Todays_Date=(new Date(Todays_Year,Todays_Month,Today.getDate(),Today.getHours(),Today.getMinutes(),Today.getSeconds())).getTime();Target_Date=(new Date(c,e-1,b,a,f,0)).getTime();Time_Left=Math.round((Target_Date-Todays_Date)/1000);if(Time_Left<0){Time_Left=0}switch(d){case 0:$(g).innerHTML=Time_Left+" seconds";break;case 1:days=Math.floor(Time_Left/(60*60*24));Time_Left%=(60*60*24);hours=Math.floor(Time_Left/(60*60));Time_Left%=(60*60);minutes=Math.floor(Time_Left/60);Time_Left%=60;seconds=Time_Left;dps="s";hps="s";mps="s";sps="s";if(days==1){dps=""}if(hours==1){hps=""}if(minutes==1){mps=""}if(seconds==1){sps=""}$(g).innerHTML=days+" day"+dps+" ";$(g).innerHTML+=hours+" hour"+hps+" ";$(g).innerHTML+=minutes+" minute"+mps+" and ";$(g).innerHTML+=seconds+" second"+sps;break;case 2:days=Math.floor(Time_Left/(60*60*24));Time_Left%=(60*60*24);hours=Math.floor(Time_Left/(60*60));Time_Left%=(60*60);minutes=Math.floor(Time_Left/60);Time_Left%=60;seconds=Time_Left;$(g).innerHTML=days+"d ";$(g).innerHTML+=hours+"h ";$(g).innerHTML+=minutes+"m";break;default:$(g)=Time_Left+" seconds"}}function ControlSiteSize(){obiekt=document.getElementById("footer");obecna_szer=obiekt.style.width;obecna_wys=obiekt.style.height;lewy_centralny=document.getElementById("lewy_centralny");prawypanel=document.getElementById("prawypanel");centralny=document.getElementById("centralny");strona=document.getElementById("strona");lewy_centralny=document.getElementById("lewy_centralny");menu2_float=document.getElementById("menu2_float");if(strona<lewy_centralny+prawypanel){strona.style.width=lewy_centralny}document.cookie="width_cookie="+obecna_szer}function ResizeImages(a,g,f,c){var i=document.getElementsByTagName("img");for(var e=0;e<i.length;e++){if(f==""||i[e].getAttribute("alt")==f){var b=parseInt(i[e].width);var d=parseInt(i[e].height);if(b>a){if(c==1){i[e].style.cursor="pointer";i[e].onclick=function(){var h=window.open(this.src,"ImageViewer","resizable=1");h.focus()}}d=(a/b)*d;b=a;i[e].height=d;i[e].width=b}if(d>g){if(c==1){i[e].style.cursor="pointer";i[e].onclick=function(){var h=window.open(this.src,"ImageViewer","resizable=1");h.focus()}}i[e].width=(g/d)*b;i[e].height=g}}}};