window.onload=function(){self.name="mainContainer";acompleteOff();blurFocus();targetBlank();try{if(navigator.appVersion.match(/MSIE 6/)){document.execCommand("BackgroundImageCache",false,true)}}catch(b){}if(window.inNugg){inNugg()}if(window.Rate){var a=new Rate();a.changeStars()}if(window.SI&&window.SI.Files&&window.SI.Files.stylizeAll){SI.Files.stylizeAll()}};function getObjId(id){var obj=eval("document.getElementById ? document.getElementById('"+id+"') : document.all."+id);return obj}function hideObj(b){var a=typeof b=="string"?getObjId(b):b;a.style.display="none"}function showObj(b){var a=typeof b=="string"?getObjId(b):b;if(a.tagName=="DIV"){a.style.display="block"}else{if(navigator.appName=="Microsoft Internet Explorer"){a.style.display="inline"}else{switch(a.tagName){case"TR":a.style.display="table-row";break;case"TD":a.style.display="table-cell";break;case"SPAN":a.style.display="inline";break;case"IMG":a.style.display="inline";break;default:a.style.display="block";break}}}}function selectRegion(){var a=getObjId("selReg");document.location.href=a.value}function acompleteOff(){if(document.getElementById("gdzie")){var a=getObjId("gdzie");a.setAttribute("autocomplete","off")}}function targetBlank(e){if(!document.getElementsByTagName){return}var b,d=document.getElementsByTagName("a");for(var c=0;c<d.length;c++){b=d[c];if(b.getAttribute("href")&&(b.getAttribute("rel")=="blank"||(b.className!=""&&(" "+b.className+" ").match(/ blank /)))){b.target="_blank"}}}function blurFocus(){if(document.getElementsByTagName){for(var a=0;document.getElementsByTagName("a")[a];a++){document.getElementsByTagName("a")[a].onfocus=document.getElementsByTagName("a")[a].blur}}}function clearInput(b){var a=getObjId(b);a.value=""}function drawCard(b,c,a){if(c!=0){document.write('<a href="'+b+'" title="'+a+'"><img src="'+c+'/gfx/businessCard.png" width="112" height="35" alt="'+a+'" /></a>')}else{document.write('<a href="'+b+'" title="'+a+'">'+a+"</a>")}}function rating(d,c){var e=getObjId("rev_"+d+"_S");var f=getObjId("review_"+d);if(e.className=="rev_"+d+"_S"+c){if(d>1){e.className="rev_"+d+"_S0"}else{e.className="rev_"+d+"_S"+c}}else{e.className="rev_"+d+"_S"+c}f.value=c}function showRateStatus(e,c,b){if(getObjId("recDev_"+e)){var a=getObjId("recDev_"+e);var d="";if(b=="show"){switch(c){case 1:d="bardzo słaba";break;case 2:d="słaba";break;case 3:d="dostateczna";break;case 4:d="dobra";break;case 5:d="bardzo dobra";break;case 6:d="wspaniała";break}a.innerHTML=d}else{a.innerHTML="&nbsp;"}}}function randomString(){var d="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";var e=8;var c="";for(var b=0;b<e;b++){var a=Math.floor(Math.random()*d.length);c+=d.substring(a,a+1)}return c}function gotoUpPage(d,e,b,a,c){d.action=e+"/moje-konto/zmiana-pakietu.html?";if(a!=""){d.action+=a+"&"}if(c!=""){d.action+=c}d.s.value="up";d.bS.value=b;d.bL.value=self.location.href;d.uType.value=c;setTimeout(function(){d.submit()},0);return true}function setUpgrade(form,sN,prS,uT){var fN="cardType";var sT="";var lg=0;if(uT!=""){fN+="_"+uT}iN=eval("form."+fN);if(iN.length){lg=iN.length;for(var i=0;i<iN.length;i++){if(iN[i].checked==true){sT=iN[i].value}}}else{lg=1;if(iN.checked==true){sT=iN.value}}if(lg>0&&sT!=""){form.action=sN+"/moje-konto/zmiana-pakietu.html?";if(sT!=""){form.action+=sT+"&"}if(uT!=""){form.action+=uT}form.s.value="up";form.bS.value=prS;form.bL.value=self.location.href;form.uType.value=uT;form.submit();return true}else{window.alert("Wybierz rodzaj pakietu.")}return false}function setClass(b,a){b.className=a}function getScrollXY(){var a=new Array();a.x=0;a.y=0;if(typeof(window.pageYOffset)=="number"){a.y=window.pageYOffset;a.x=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a.y=document.body.scrollTop;a.x=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a.y=document.documentElement.scrollTop;a.x=document.documentElement.scrollLeft}}}return a}function showHideDiv(c){var b=document.getElementById("news_more_"+c);var a=document.getElementById("lnk_more_"+c);if(b.style.display==""){b.style.display="none";a.innerHTML="czytaj więcej"}else{b.style.display="";a.innerHTML="powrót"}}function PIGET_XMLHTTPRequest(){var c;try{c=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){try{c=new ActiveXObject("Msxml2.XMLHTTP")}catch(a){c=null}}if(!c&&typeof XMLHttpRequest!="undefined"){c=new XMLHttpRequest()}return c}function getContent(b){if(document.getElementById("news"+b).innerHTML==""){var a=PIGET_XMLHTTPRequest();if(a){a.open("GET","informacje-prasowe-wiecej.html?pi="+b,true);a.onreadystatechange=function(c){if(a.readyState==4){getObjId("news"+b).innerHTML=a.responseText;getObjId("cp"+b).innerHTML="zwiń";getObjId("cp"+b).className="go_back"}};a.send(null)}else{}}else{document.getElementById("news"+b).innerHTML="";getObjId("cp"+b).innerHTML="czytaj więcej";getObjId("cp"+b).className="read_more"}}function swfMap(a){var b='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="235" height="225" id="polska_darkblue" align="middle">\n<param name="movie" value="http://www.'+a+"/polska_darkblue.swf?host="+a+'" />\n<param name="quality" value="high" />\n<param name="bgcolor" value="#ffffff" />\n<param name="wmode" value="transparent"><param name="flashvars" value="host='+a+'" />\n<embed src="http://www.'+a+"/polska_darkblue.swf?host="+a+'" quality="high" bgcolor="#ffffff" width="235" height="225" name="polska_darkblue" wmode="transparent" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n</object>\n';document.write(b)}function swfKonkurs(a){var b='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="285" height="120" id="oferta300x190" align="middle">\n<param name="movie" value="http://static.'+a+"/gfx/300x120_5.swf?host="+a+'"  />\n<param name="quality" value="high" />\n<param name="bgcolor" value="#ffffff" />\n<embed   src="http://static.'+a+"/gfx/300x120_5.swf?host="+a+'" quality="high" bgcolor="#ffffff" width="285" height="120" name="300x120" wmode="transparent" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n</object>\n';document.write(b)}function getNotopSubtrades(a,b){requestTrades(a,b)}function requestTrades(idPT,rCont){try{var rq="./?tradesRequest";fadeIn("tLinkContainer"+idPT,getObjId("tTMPLoaderContainer"+idPT).innerHTML);if(window.XMLHttpRequest){var request=new XMLHttpRequest()}else{if(window.ActiveXObject){var request=new ActiveXObject("Microsoft.XMLHTTP")}}var newC="";request.onreadystatechange=function(){if(request.readyState==4){if(request.status==200){var resultTEXT=request.responseText;if(resultTEXT.length>0){var result=eval("("+resultTEXT+")");for(var i=0;i<result.length;i++){newC+='<a href="'+result[i]["tradeURL"]+'">'+result[i]["tradeName"]+"</a>";if(i<result.length-1){newC+=", "}}if(newC!=""){getObjId("tLinkContainer"+idPT).innerHTML="&nbsp;";fillObject("tOtherContainer"+idPT,newC,5,rCont)}}}}};request.open("POST",rq,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var postRq="pt="+idPT;request.send(postRq)}catch(e){}}function fillObject(g,c,h,j){try{var f=getObjId(g);var a=f.offsetHeight;f.innerHTML=unescape(c);var b=f.offsetHeight;f.innerHTML="";f.style.height=a+"px";if(b<=a){fadeIn(g,c)}else{resizeVert(g,c,h,b,j)}return true}catch(d){}}function resizeVert(c,k,b,h,d){try{var f=getObjId(c);var g=parseInt(f.style.height);if(g>25){b=parseInt(b)+1}var l=g+b*1;f.style.height=l+"px";if(l>=parseInt(h)){if(d=="true"){var a=getObjId("tOtherTargetContainer");var g=a.style.height;a.style.height=parseInt(g)+parseInt(h)+"px"}f.style.height=h+"px";fadeIn(c,k);return true}var m=setTimeout("resizeVert('"+c+"', '"+k+"', '"+b+"', '"+h+"', '"+d+"')",1)}catch(j){}}function fadeIn(d,b){try{var a=getObjId(d);setOpacity(d,"in",0,10);a.innerHTML=unescape(b);return true}catch(c){}}function setOpacity(c,f,a,g){try{var d=getObjId(c);var j;a*=1;if(f=="out"){a-=0.05;if(a<0){a=0}}else{if(f=="in"){a+=0.05;if(a>1){a=1}}}if(d.style.MozOpacity!=null){d.style.MozOpacity=a}else{if(d.style.opacity!=null&&d.style.filter==null){d.style.opacity=a}else{if(d.style.filter!=null){j=100*a;d.style.filter="Alpha(opacity="+j+")"}}}if(a==0||a==1){if(a==0){d.style.display="none"}return true}var b=setTimeout("setOpacity('"+c+"', '"+f+"', '"+a+"', '"+g+"')",g)}catch(h){}}function showOtherTrades(){try{hideObj("tOtherAllLink");var b=getObjId("tOtherTMPContainer");fillObject("tOtherTargetContainer",escape(b.innerHTML),80,false);b.innerHTML="";return true}catch(a){}}function showOtherTrades2(){try{hideObj("tOtherAllLink");var d=getImgHost();var a=getObjId("tOtherTargetContainer");var g="";g+='<div style="font-size: 16px; font-weight: bold; height: 35px; color: #fb6b0b">Pozostałe branże</div>';for(var c=0;c<otherT.length;c++){g+='<div style="border-bottom: 1px solid #d3d3d3; margin-bottom: 5px;"><b><a href="'+otherT[c].tradeURL+'" class="tringle">'+otherT[c].tradeName+'</a></b><div id="tTopContainer'+otherT[c].idTrade+'">';for(var b=0;b<otherT[c].subtrades.length;b++){g+='<a href="'+otherT[c].subtrades[b].tradeURL+'">'+otherT[c].subtrades[b].tradeName+"</a>";if(b<otherT[c].subtrades.length-1){g+=", "}}g+="</div>";if(otherT[c].totalSubradesCounter>otherT[c].subtrades.length){g+='<div id="tOtherContainer'+otherT[c].idTrade+'"></div><div id="tLinkContainer'+otherT[c].idTrade+'" style="text-align: right; height: 20px; margin-bottom: 4px;"><a href="javascript:void(0)" onclick="getNotopSubtrades('+otherT[c].idTrade+', true);">więcej &raquo;</a></div><div id="tTMPLoaderContainer'+otherT[c].idTrade+'" style="display: none"><img src="'+d+'/gfx/loaderBlue.gif" style="vertical-align: middle" alt="" /> wczytywanie branż</div>'}else{g+='<div style="height: 20px; margin-top: 20px;"></div>'}g+="</div>"}fillObject("tOtherTargetContainer",escape(g),80,false);return true}catch(f){}}function getImgHost(){return"http://"+self.location.host.replace(/^[a-z0-9-]+\./,"img.")}sD=0;function cityTip(j,b,f,g,l,m,a,c,d){try{var k="";if(b.keyCode=="40"){k="down"}else{if(b.keyCode=="38"){k="up"}else{if(b.keyCode=="8"){k="back";cFV=null}else{if(b.keyCode=="13"){k="enter"}else{if(b.keyCode=="9"){closeCityTip(m);return false}}}}}cities=new Array();setTimeout("getCities('"+j+"', '"+k+"', '"+f+"', '"+g+"', '"+l+"', '"+m+"', '"+a+"', '"+c+"', '"+d+"')",5)}catch(h){}}function cityTipControl(ev,fId,cId,cObN,rObId,dObId,cObId){if(!cities){cities=new Array}var form=eval("document.forms."+fId);if(cities.length==0){closeCityTip(cObN);return false}else{var cTOb=getObjId(cObN);cTOb.innerHTML="";cTOb.style.display="block"}for(i=0;i<cities.length;i++){cTOb.innerHTML+='<div class="singleCityTip" onclick="setCityTip('+i+", '"+fId+"', '"+cId+"', '"+cObN+"', '"+rObId+"', '"+dObId+"', '"+cObId+'\');" onmouseover="setCityTipHover('+i+", '', '"+fId+"', '"+cId+"', '"+cObN+"', 'mouse', '"+rObId+"', '"+dObId+"', '"+cObId+'\');" onmouseout="unsetCityTip(this, \'mouse\');" id="c'+i+'">'+cities[i]["cityDispName"]+"</div>"}var setC=true;if(ev=="down"){sD++}else{if(ev=="up"){if(sD<0){sD=0}else{sD--}}else{if(ev=="enter"&&sD>-1){setC=true}else{sD=-1;setC=false}}}if(setC==true){if(sD>cities.length-1){sD=0}else{if(sD<0){sD=cities.length-1}}setCityTipHover(sD,ev,fId,cId,cObN,"",rObId,dObId,cObId)}if(ev=="enter"&&sD==-1){closeCityTip(cObN)}}function closeCityTip(c){try{if(sD==-1){cFV=null;var b=getObjId(c);b.style.display="none";return true}}catch(a){}}function setCityTipHover(cIdx,ev,fId,cId,cObN,type,rObId,dObId,cObId){try{sD=cIdx;var type;var form=eval("document.forms."+fId);var cFl=eval("document.forms."+fId+"."+cId);if(type!="mouse"){if(!window.cFV||ev=="back"){cFV=cFl.value.toLowerCase()}var cCV=cities[cIdx]["cityName"].toLowerCase();cFl.value=cities[cIdx]["cityName"];setSelection(cFl,cFV.length,cFl.value.length)}for(var i=0;i<cities.length;i++){var cOb=getObjId("c"+i);unsetCityTip(cOb);if(i==cIdx){var cCOb=cOb}}cCOb.className="singleCityTipMarked";if(ev=="enter"){setCityTip(cIdx,fId,cId,cObN,rObId,dObId,cObId)}}catch(e){}}function setCityTip(cIdx,fId,cId,cObN,rObId,dObId,cObId){try{sD=cIdx;var form=eval("document.forms."+fId);var cFl=eval("document.forms."+fId+"."+cId);setSelection(cFl,cFl.value.length,cFl.value.length);cCObj=getObjId("c"+cIdx);cCObj.className="singleCityTipMarked";cFl.value=cities[cIdx]["cityName"];if(document.getElementById(rObId)){var rFl=eval("document.forms."+fId+"."+rObId);rFl.value=cities[cIdx]["idRegion"];if(cities[cIdx]["isGlobal"]==1){setDistricts(rObId,dObId,cObId,null,cities[cIdx]["idDistrict"],null)}else{setDistricts(rObId,dObId,cObId,null,cities[cIdx]["idDistrict"],cities[cIdx]["idCommune"])}}sD=-1;closeCityTip(cObN)}catch(e){}}function unsetCityTip(a,b){if(b=="mouse"){sD=-1}a.className="singleCityTip"}function getCities(type,ev,domain,fId,cId,cObN,rObId,dObId,cObId){try{var cFl=eval("document.forms."+fId+"."+cId);var cV=cFl.value;if(cV.length==0){sD=-1;closeCityTip(cObN);return true}var cURL=self.location.href.substr(0,self.location.href.lastIndexOf("/"))+"/?cityTip";if(window.XMLHttpRequest){var request=new XMLHttpRequest()}else{if(window.ActiveXObject){var request=new ActiveXObject("Microsoft.XMLHTTP")}}request.onreadystatechange=function(){if(request.readyState==4){if(request.status==200){if(cFl.value.length==0){sD=-1;closeCityTip(cObN);return true}var resultTEXT=request.responseText;if(resultTEXT.length>0){var result=new Array;result=eval("("+resultTEXT+")");cities=result.cities;cityTipControl(ev,fId,cId,cObN,rObId,dObId,cObId);lCts=cities;lCt=cV}}}};if(!window.lCts){lCts=new Array}if(!window.lCt){lCt=""}if((ev=="enter"||ev=="up"||ev=="down")&&lCts.length>0&&lCt!=cV){cities=lCts;cityTipControl(ev,fId,cId,cObN,rObId,dObId,cObId)}else{request.open("POST",cURL,true);request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var pRq="type="+type+"&c="+cV;request.send(pRq)}}catch(e){}}function setSelection(b,d,a){if(b.setSelectionRange){b.setSelectionRange(d,a)}else{if(b.createTextRange){b.focus();var c=b.createTextRange();c.collapse(true);c.moveEnd("character",a);c.moveStart("character",d);c.select()}}}function closePCMBox(f){if(f>0&&f<5){var c="cpt"+f;hideObj(c);try{if(window.XMLHttpRequest){var b=new XMLHttpRequest()}else{if(window.ActiveXObject){var b=new ActiveXObject("Microsoft.XMLHTTP")}}b.onreadystatechange=function(){if(b.readyState==4){if(b.status==200){return true}}return false};b.open("POST",location.protocol+"//"+location.host+"/?delPCM",true);b.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var a="val="+f;b.send(a)}catch(d){}}}function slideroll(b){var a=getObjId("slide"+b).getElementsByTagName("ul")[0].offsetHeight;if(a>0){getObjId("slide"+b).className="noroll"}else{getObjId("slide"+b).className="isroll"}}function wo(c,b,e,d,a,g){if(!g){g="no"}else{g="yes"}var j=window.open(c,"","width="+b+",height="+e+",top="+d+",left="+a+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+g+",resizable=no,fullscreen=no,channelmode=no")}function setHightLido(){var a=getObjId("lido").offsetHeight;getObjId("lidoside").style.height=a+"px"}function google_afs_request_done(c){var d=c.length;if(d<=0){return}var b="";var a="";for(i=0;i<d;i++){if(c[i].type=="text/wide"){b+='<a style="text-decoration:none" onmouseover="javascript:window.status=\''+c[i].url+'\';return true;" onmouseout="javascript:window.status=\'\';return true;" href="'+c[i].url+'"><span class="afsad_line1">'+c[i].line1+'</span></a> - <span class="afsad_text">'+c[i].line2+'</span><br><a style="text-decoration:none" onmouseover="javascript:window.status=\''+c[i].url+'\';return true;" onmouseout="javascript:window.status=\'\';return true;" href="'+c[i].url+'"><span class="afsad_url">'+c[i].visible_url+"</span><br><br></a>"}else{a+='<a style="text-decoration:none" onmouseover="javascript:window.status=\''+c[i].url+'\';return true;" onmouseout="javascript:window.status=\'\';return true;" href="'+c[i].url+'"><span class="afsad_line1">'+c[i].line1+'</span></a> - <span class="afsad_text">'+c[i].line2+'</span> <span class="afsad_text">'+c[i].line3+'</span><br><a style="text-decoration:none" onmouseover="javascript:window.status=\''+c[i].url+'\';return true;" onmouseout="javascript:window.status=\'\';return true;" href="'+c[i].url+'"><span class="afsad_url">'+c[i].visible_url+"</span><br><br></a>"}}if(a!=""){a='<a style="text-decoration:none" href="http://services.google.com/feedback/online_hws_feedback"><span class="afsad_header" style="text-align:left"> Reklamy Google</span><br><br></a>'+a}if(b!=""){b='<a style="text-decoration:none" href="http://services.google.com/feedback/online_hws_feedback"><span class="afsad_header" style="text-align:left"> Reklamy Google</span><br><br></a>'+b}document.getElementById("wide_ad_unit").innerHTML=b}function idSwitch(a){a=getObjId(a);if(a.offsetHeight>0){hideObj(a)}else{showObj(a)}}function showSelect(a){a.getElementsByTagName("ul")[0].style.display="block";a.parentNode.style.zIndex="100";a.onmouseout=function(){this.getElementsByTagName("ul")[0].style.display="none";a.parentNode.style.zIndex="1";this.getElementsByTagName("ul")[0].onmouseover=function(){a.parentNode.style.zIndex="100";a.getElementsByTagName("ul")[0].style.display="block"}}};