var oCGR,cGR,_oGA={kody:["UA-969241-2"],transakcja:null,przedmioty:null,domena:".gratka.pl",zmienne:[]},oG_OSA=oG_OSA||{},onloadLista=[],sUrl=sUrl||oG_OSA.sUrl;(function(){var a=document.location;if(!oG_OSA.debug){oG_OSA.debug=0}if(!oG_OSA.pobranePliki){oG_OSA.pobranePliki=[]}if(!oG_OSA.chmurki){oG_OSA.chmurki={}}if(-1===sUrl.indexOf("http://")){sUrl="http://"+sUrl;oG_OSA.sUrl=sUrl}oG_OSA.Url=a.protocol+"//"+a.hostname})();window.onerror=function(c,b,a){if(1===oG_OSA.debug||true===oG_OSA.debug){return false}return true};Function.prototype.rozszerz=function(b,a){if(!this.prototype[b]){this.prototype[b]=a}};String.rozszerz("trim",function(){return this.replace(/(^[\s\xA0]+|[\s\xA0]+$)/g,"")});String.rozszerz("trimToSpace",function(){return this.replace(/(\s+)/g," ").trim()});String.rozszerz("toObject",function(){return eval("("+this+")")});String.rozszerz("ucfirst",function(){var a=this.charAt(0).toUpperCase();return a+this.substr(1)});Array.rozszerz("indexOf",function(d,a){var b=0,c=this.length;a=a||0;for(b=a;b<c;b+=1){if(this[b]===d){return b}}return -1});Array.rozszerz("lastIndexOf",function(c,a){if(a===null||a>=this.length){a=this.length-1}for(var b=a;b>=0;b-=1){if(this[b]===c){return b}}return -1});Array.rozszerz("copy",function(){return[].concat(this)});Array.rozszerz("contains",function(a){return this.indexOf(a)>-1});function czytajOnload(){for(var a=0;a<onloadLista.length;a+=1){onloadLista[a]()}}function GR(){var b=Array.prototype.slice.call(arguments),e=b.shift(),g,d,a=e.match(/(o|os|p)([A-Z][a-z0-9]+)/),f=e.split("_");try{if(!oCGR){oCGR=new cGR()}if(""!==e&&"function"===typeof oCGR[e]){return oCGR[e].apply(oCGR,b)}g=a?a[1]:f[0];d=a?a[2]:f[1];if(/o|os|p/.test(g)){GR("zaladujPlikJS",sUrl+("os"!==g?"/"+g:"")+"/js/cgr/"+d.toLowerCase()+".js","head",function(){if(""!==e&&"function"===typeof oCGR[e]){return oCGR[e].apply(oCGR,b)}})}}catch(c){}}var Zdarzenia={};Zdarzenia.zaczep=function(b,c,a){if(b.addEventListener){b.addEventListener(c,a,false)}else{if(b.attachEvent){b.attachEvent("on"+c,a)}else{b["on"+c]=a}}};Zdarzenia.odczep=function(b,c,a){if(b.removeEventListener){b.removeEventListener(c,a,false)}else{if(b.detachEvent){b.detachEvent("on"+c,a)}else{b["on"+c]=null}}};Zdarzenia.anuluj=function(a){a.preventDefault();a.stopPropagation();return false};Zdarzenia.formatuj=function(a){a.charCode=a.keyCode||0;a.eventPhase=2;a.isChar=(a.charCode>0);a.pageX=a.clientX+document.body.scrollLeft;a.pageY=a.clientY+document.body.scrollTop;a.preventDefault=function(){a.returnValue=false};a.stopPropagation=function(){a.cancelBubble=true};if(a.type==="mouseout"){a.relatedTarget=a.toElement}else{if(a.type==="mouseover"){a.relatedTarget=a.fromElement}}a.target=a.srcElement;a.timeStamp=(new Date()).getTime();return a};Zdarzenia.pobierz=function(){if(GR("czyIE")&&window.event){return this.formatuj(window.event)}else{return Zdarzenia.pobierz.caller.arguments[0]}};cGR=function(){this.wersja=(oG_OSA.debug===1?(Math.random()).toString().substring(2,11):"1.5.2a");this.sPrzegladarka=navigator.userAgent.toLowerCase();this.sS="%3Cscript%20type%3D%22text%2Fjavascript%22%3E";this.eS="%3C%2Fscript%3E"};cGR.prototype={czyIE:function(a){if(a){return(this.sPrzegladarka.indexOf("msie "+a)>-1)}return !!(window.attachEvent&&!/opera/.test(this.sPrzegladarka))},czyOpera:function(){return/opera/.test(this.sPrzegladarka)},czyWebKit:function(){return/webkit/.test(this.sPrzegladarka)},czyGecko:function(){return(/gecko/.test(this.sPrzegladarka)&&!/khtml/.test(this.sPrzegladarka))},czyMobileSafari:function(){return !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)},czyMacOS:function(){return/mac/.test(this.sPrzegladarka)},pobierzWersje:function(){return this.wersja},$:function(f){if(f&&(arguments.length>1||f instanceof Array)){var c=arguments.length>1?arguments:f,e=0,d=[],b=c.length;for(e=0;e<b;e+=1){d.push(GR("$",c[e]))}return d}if("object"===typeof f){return f}if("string"===typeof f){return document.getElementById(f)}return null},$$:function(){var j=[],f,h=0,e=0,c=arguments,g=c[1]||document.body,b=c[2]||"*",d=c[0]+":"+g+":"+b;if("undefined"!==typeof oG_OSA[d]&&"undefined"===typeof c[3]){return oG_OSA[d]}if(g.getElementsByClassName){f=g.getElementsByClassName(c[0])}else{f=g.getElementsByTagName(b)}h=f.length;for(e=0;e<h;e+=1){if(this.czyCssClass(f[e],c[0])&&((b!=="*"&&(new RegExp(f[e].tagName,"gi")).test(b))||b==="*")){j.push(f[e])}}oG_OSA[d]=j;return j},relParam:function(a,f){var d,b={},e,c=0;f=f||0;if(a.match(new RegExp("(^{.*}$)"))){return a.toObject()}e=a.split(" ");a=e[0].split("-");if(!f){a.shift()}for(c=0;c<a.length;c+=1){d=a[c].split(":");b[d[0]]=d[1]||false}return b},czyCssClass:function(b,a){b=this.$(b);return b&&new RegExp("(^|\\s)"+a+"(\\s|$)").test(b.className)},pobierzCssClass:function(b,a){b=this.$(b);if(a){return(b?b.className.split(" "):[])}return(b?b.className:null)},ustawCssClass:function(b,a){b=this.$(b);if(!b){return}b.className=a;return b},dodajCssClass:function(b,a){b=this.$(b);if(!this.czyCssClass(b,a)){b.className=([b.className,a].join(" ")).trim()}return b.className},usunCssClass:function(c,a,b){c=this.$(c);b=b||"";if(this.czyCssClass(c,a)){c.className=(c.className.replace(new RegExp("(?:^|\\s+)"+a),b)).trim()}if(""===c.className.trim()){c.removeAttribute("class")}return c.className},przelaczCssClass:function(b,a){if(this.czyCssClass(b,a)){this.usunCssClass(b,a,arguments[2])}else{if(this.czyCssClass(b,arguments[2])){this.usunCssClass(b,arguments[2],a)}else{this.dodajCssClass(b,a)}}return b},ustawReguleCss:function(b,a){b=this.$(b);if(!b){return}if(GR("czyIE")){b.style.setAttribute("cssText",a)}else{b.style.cssText=a}if(!a){b.removeAttribute("style")}},utworzElement:function(g,a,c,f,b){g=this.$(g)||document.body;var e=document.createElement(a),d;f=f||"def";b=b||null;for(d in c){if("function"!==typeof c[d]){switch(d){case"style":this.ustawReguleCss(e,c[d]);break;case"class":this.ustawCssClass(e,c[d]);break;default:e.setAttribute(d,c[d]);break}}}if(b){e.appendChild(document.createTextNode(b))}switch(f){case"pierwszy":g.insertBefore(e,g.firstChild);break;case"przed":g.parentNode.insertBefore(e,g);break;case"po":g.parentNode.insertBefore(e,g.nextSibling);break;default:g.appendChild(e);break}return e},usunElement:function(a){a=$(a);if(!a){return}a.parentNode.removeChild(a)},wstawHTML:function(b,a){this.$(b).innerHTML=a},wpisz:function(a){document.write(a)},wpiszSkrypt:function(c,b){b=b||"wpisz";var e=document,a;if(b==="wpisz"){e.write(unescape(this.sS)+c+unescape(this.eS))}else{if(b==="head"){a=e.createElement("script");a.setAttribute("type","text/javascript");this.utworzTekst(a,c);e.getElementsByTagName("head")[0].appendChild(a)}}},dodajOnload:function(a){if(this.czyIE){window.onload=czytajOnload;onloadLista[onloadLista.length]=a}else{if(window.onload){if(window.onload!==czytajOnload){onloadLista[0]=window.onload;window.onload=czytajOnload}onloadLista[onloadLista.length]=a}else{window.onload=a}}},zaladujPlikJS:function(c,f,j,e,a){var i=document,b,g,k;f=f||"head";a=a||0;if("function"!==typeof j){j=function(){}}try{if(oG_OSA.pobranePliki[c]&&oG_OSA.pobranePliki[c]===1){j();return}b=c;if(!e){b=c+(c.indexOf("?")+1?"&":"?")+this.pobierzWersje()}if(i.getElementsByTagName("head")&&f==="head"){k=document.createElement("script");if(GR("czyIE")){k.onreadystatechange=function(){if(/loaded|complete/.test(this.readyState)){j();oG_OSA.pobranePliki[c]=1}}}else{k.onload=function(){j();oG_OSA.pobranePliki[c]=1}}k.setAttribute("type","text/javascript");k.setAttribute("src",b);if(a){k.setAttribute("defer","true")}i.getElementsByTagName("head")[0].appendChild(k)}else{if(f==="plik"){g="%3Cscript%20type%3D%22text%2Fjavascript%22%20src%3D%22"+b+"%22%3E";i.write(unescape(g)+unescape(this.eS))}}}catch(h){}},zaladujPlikCSS:function(c){if(typeof oG_OSA.pobranePliki[c]!=="undefined"&&oG_OSA.pobranePliki[c]===1){return}var a=c+(c.indexOf("?")+1?"&":"?")+this.pobierzWersje(),b=document.createElement("link");b.setAttribute("type","text/css");b.setAttribute("rel","stylesheet");b.setAttribute("href",a);document.getElementsByTagName("head")[0].appendChild(b)},utworzTekst:function(b,a){b=typeof b==="object"?b:GR("$",b);if(null===b.canHaveChildren||b.canHaveChildren){b.appendChild(document.createTextNode(a))}else{b.text=a}}};cGR.prototype.zmienCssClass=cGR.prototype.usunCssClass;cGR.prototype.zaczepZdarzenie=function(c,b,a,d){Zdarzenia.zaczep(this.$(c),b,a)};cGR.prototype.odczepZdarzenie=function(c,b,a){Zdarzenia.odczep(this.$(c),b,a)};cGR.prototype.przetworzLinki=function(){var e,b,a,d,f=[],c=document.getElementsByTagName("a"),g=c.length,j={external:{target:"_blank"},popup:{click:function(){GR("pokazPopup",this);return false}},modul:{click:function(){GR("o_warstwaPrzykrywajaca_pokazModul",this);return false}},kadr_warstwa:{click:function(){GR("o_kadrowanie_inicjalizuj",this);return false}},zakladka:{click:function(){GR("o_zakladki_wykonaj",this);return false},obiekt:"zakladka"}},m=function(){return false};for(e=0;e<g;e+=1){d=c[e].getAttribute("rel")||0;if(d){for(b in j){if("function"!==typeof j[b]){if(d.indexOf(b)===0){for(a in j[b]){switch(a){case"target":c[e].target=j[b][a];break;case"obiekt":var h=GR("relParam",d,1);if(!oG_OSA[j[b][a]]){oG_OSA[j[b][a]]={}}if(!oG_OSA[j[b][a]][h.id]){oG_OSA[j[b][a]][h.id]=c[e]}break;default:if(GR("czyCssClass",c[e].parentNode,"wyszarzony")){c[e].onclick=m;break}c[e].onclick=j[b][a];break}}}}}}}};cGR.prototype.pobierzPozycjeScroll=function(){var a=document.documentElement,b=document.body;if(self.pageYOffset){return[self.pageXOffset,self.pageYOffset]}if(a&&a.scrollTop){return[a.scrollLeft,a.scrollTop]}if(b){return[b.scrollLeft,b.scrollTop]}return[0,0]};cGR.prototype.pobierzRozmiary=function(){var b,a,c,h,i,d,f=document.documentElement,g=document.body,e=window;if(e.innerHeight&&e.scrollMaxY){i=g.scrollWidth;d=e.innerHeight+e.scrollMaxY}else{if(g.scrollHeight>g.offsetHeight){i=g.scrollWidth;d=g.scrollHeight}else{i=g.offsetWidth;d=g.offsetHeight}}if(self.innerHeight){b=self.innerWidth;a=self.innerHeight}else{if(f&&f.clientHeight){b=f.clientWidth;a=f.clientHeight}else{if(g){b=g.clientWidth;a=g.clientHeight}}}c=(i<b)?b:i;h=(d<a)?a:d;return[c,h,b,a,screen.width,screen.height]};cGR.prototype.pobierzPozycje=function(c){c=this.$(c);var b=0,a=0;while(c.tagName!=="HTML"){b+=c.offsetTop||0;a+=c.offsetLeft||0;if(c.offsetParent){c=c.offsetParent}else{break}}b+=c.offsetTop||0;a+=c.offsetLeft||0;return{x:a,y:b}};cGR.prototype.pokazPopup=function(g){var e=[],d,b,a=g.getAttribute("rel"),f=GR("relParam",a),c={scrollbars:0,channelmode:0,directories:0,fullscreen:0,resizable:0,toolbar:0,location:0,menubar:0,status:0,titlebar:0,width:750,height:550,left:0,top:0};f.width=f.s||f.width;f.height=f.w||f.height;f.left=f.l||f.left||Math.floor((screen.width-f.width)/2);f.top=f.g||f.top||Math.floor((screen.height-f.height)/2);f.screenX=f.left;f.screenY=f.top;for(d in c){if("function"!==typeof f[d]){if(f[d]){e.push(d+"="+f[d])}else{e.push(d+"="+c[d])}}}b=window.open(g.href,(f.name||""),e.join());b.focus();if(f.fn&&"function"===typeof oG_OSA[f.fn]){oG_OSA[f.fn]()}};cGR.prototype.pokazUkryj=function(f,a,e){var c=this.$(f),d=c.length,b=0;a=a||[];e=e||"block";for(b=0;b<d;b+=1){if(!c[b]){continue}if("undefined"===typeof a[b]){a[b]=c[b].style.display==="none"?1:0}if(a[b]){c[b].style.display=e}else{c[b].style.display="none"}}return false};cGR.prototype.GAustawDomyslny=function(a,b){_oGA.kody[0]=a||_oGA.kody[0];_oGA.domena=b||_oGA.domena};cGR.prototype.GAdodajKodSledzacy=function(a){_oGA.kody.push(a)};cGR.prototype.GAdodajTransakcje=function(a,b){_oGA.transakcja=a;_oGA.przedmioty=b};cGR.prototype.GAustawZmienna=function(a){_oGA.zmienne.push(a)};cGR.prototype.GoogleAnalytics=function(){if(location.host.indexOf(_oGA.domena)===-1){return}try{var c,b=("https:"===document.location.protocol)?"https://ssl.":"http://www.";b+="google-analytics.com/ga.js";var d=function(){var k=[],g,j,h,e=_oGA.kody.length;for(g=0;g<e;g+=1){k[g]=_gat._getTracker(_oGA.kody[g]);k[g]._setDomainName(_oGA.domena);k[g]._trackPageview()}if(_oGA.transakcja){var f=_oGA.transakcja;k[0]._addTrans(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7]);for(g=0;g<_oGA.przedmioty.length;g+=1){var l=_oGA.przedmioty[g];k[0]._addItem(l[0],l[1],l[2],l[3],l[4],l[5])}k[0]._trackTrans()}if(_oGA.zmienne.length){for(g=0;g<_oGA.zmienne.length;g+=1){k[0]._setVar(_oGA.zmienne[g])}}if("undefined"===typeof oG_OSA.GAtracker){oG_OSA.GAtracker=k[0]}};GR("zaladujPlikJS",b,"",d,1)}catch(a){}};cGR.prototype.usunWezelTekstowy=function(c,a){a=a||"default";try{if(c&&3===c.nodeType){switch(a){case"previous":return c.previousSibling;case"next":return c.nextSibling;default:return c.parentNode}}}catch(b){}return c};cGR.prototype.DOM_pobierzListeDzieci=function(d){d=GR("$",d);if(!d){return[]}if(d.children){return Array.prototype.slice.call(d.children)}var a=[],c=d.childNodes.length,b,e;for(b=0;b<c;b+=1){e=d.childNodes[b];if(1===e.nodeType){a.push(e)}}return a};cGR.prototype.ustawCookie=function(a,g,h,e,c,d){var b=[a+"="+escape(g)],j,f;if(h instanceof Date){h=h.toGMTString()}else{if("number"===typeof h){h=(new Date(+(new Date())+(h*1000))).toGMTString()}}j={expires:h||0,path:e||0,domain:c||0,secure:d||0};for(f in j){if(j[f]&&"function"!==typeof j[f]){b.push(f+"="+j[f])}}document.cookie=b.join(";")};cGR.prototype.pobierzCookie=function(b){var a=new RegExp("(?:;)?"+b+"=([^;]*);?");if(a.test(document.cookie)){return decodeURIComponent(RegExp.$1)}return null};cGR.prototype.usunCookie=function(a,b){if(this.pobierzCookie(a.nazwa)){document.cookie=a.nazwa+"="+(a.sciezka?";path="+a.sciezka:"")+(a.domena?";domain="+a.domena:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}if("function"===typeof b){b()}};cGR.prototype.generujHTML=function(c){if("string"===typeof c){c=c.toObject()}if("object"!==typeof c){return}var h=c.length,g,b,e={},f,d=document.createDocumentFragment();function a(o,m){var j,l,p,n=0;try{if("TEKST"===m.tag){o.appendChild(document.createTextNode(m.wstawTekst));return}j=GR("utworzElement",o,m.tag,m.atrybuty,m.pozycja,m.wstawTekst);if(m.wstawHtml){j.innerHTML=m.wstawHtml}if(m.zmienna){e[m.zmienna]=j}if(m.zdarzenia){for(b in m.zdarzenia){if("function"===typeof m.zdarzenia[b]){Zdarzenia.zaczep(j,b,m.zdarzenia[b])}}}if(m.struktura){n=m.struktura.length;for(l=0;l<n;l+=1){a(j,m.struktura[l])}}}catch(k){}}for(g=0;g<h;g+=1){f=c[g];a(d,f)}return{fragment:d,zmienne:e}};cGR.prototype.kontenerLadowania=function(b){if(!b.kontener||!this.$(b.kontener)){return}var d,a=this.$(b.kontener),e,c=[];if(b.tloKolor){c.push("background-color: "+b.tloKolor)}if(b.tloImg){c.push("background-image: url("+b.tloImg+")")}d=GR("utworzElement",a,"div",{"class":"ladowanie schowaj",style:"height: "+a.offsetHeight+"px;"});d.pokaz=function(){var f=a.offsetHeight;c.push("height: "+f+"px");c.push("line-height: "+f+"px");GR("ustawReguleCss",d,c.join(";"));GR("usunCssClass",d,"schowaj")};d.ukryj=function(){clearTimeout(e);e=setTimeout(function(){GR("dodajCssClass",d,"schowaj")},100)};return d};cGR.prototype.utworzIframe=function(b,a,d){var e,c;a=a||{};d=d||{};if(!a.id){a.id="gt-ramka"}if(!a.name){a.name=a.id}if(a.src){e=a.src;delete a.src}c=this.utworzElement(b,"iframe",a);if("function"===typeof d.fnLoad){if(this.czyIE){c.onreadystatechange=function(){if(/loaded|complete/.test(this.readyState)){d.fnLoad(c)}}}else{c.onload=function(){d.fnLoad(c)}}}c.src=e;return c};cGR.prototype.dostawca=function(a){var c=a.typ,b={};if(!c){return}b.zmienna=function(e,d){var f;if(a.dane){f=a.dane}else{if(a.nazwa&&oG_OSA[a.nazwa]){f=oG_OSA[a.nazwa]}else{f={}}}if(!d||"function"!==typeof d){return f}d(f)};b.ajax=function(g,f){var e=new HTTPRequest(),d=a.metoda||"get";e[d](a.url,g,function(i){var h;if(i.responseText){h=i.responseText.toObject();f(h)}})};return{wykonaj:function(e,d){b[c](e,d)},dostarcz:function(d){return b[c](d)}}};cGR.prototype.zaslona=function(){var b=$("zaslona"),e=12000,a=[],d=[];if(b){return b}b=GR("utworzElement","","div",{id:"zaslona","class":"schowaj"},"pierwszy");b.liczbaOdslon=0;b.zIndex=e;function c(f){if(!f){Zdarzenia.zaczep(b,"click",function(){Zdarzenia.anuluj(Zdarzenia.pobierz())});return}f=f||{};if(true===f.esc){document.onkeydown=function(){var g=Zdarzenia.pobierz().keyCode;if(g===27){b.ukryj(f.fn)}}}if(true===f.click){Zdarzenia.zaczep(b,"click",function(){b.ukryj(f.fn);Zdarzenia.anuluj(Zdarzenia.pobierz())})}}b.pokaz=function(i,h,k){var j=GR("pobierzPozycjeScroll"),f=GR("pobierzRozmiary"),g=parseInt(f[1],10);i=i||"";if(GR("czyCssClass",b,"schowaj")){b.liczbaOdslon=0;e=12000}if(b.style.zIndex){e=parseInt(b.style.zIndex,10)}e+=(b.liczbaOdslon*2);b.zIndex=e;GR("ustawReguleCss",b,"height: "+g+"px; z-index: "+e+"; background-color: "+i);c(h);b.liczbaOdslon+=1;a[b.liczbaOdslon]=i;d[b.liczbaOdslon]=h;GR("usunCssClass",this,"schowaj");if("function"===typeof k){k(this)}};b.odswiez=function(){var h=GR("pobierzPozycjeScroll"),f=GR("pobierzRozmiary"),g=parseInt(GR("czyOpera")?f[1]+h[1]:f[1],10);b.style.height=g+"px"};b.ukryj=function(i){try{var g,f;b.liczbaOdslon-=1;if(b.liczbaOdslon<0){b.liczbaOdslon=0}e-=(b.liczbaOdslon*2);if(0===b.liczbaOdslon){GR("ustawReguleCss",b);GR("dodajCssClass",this,"schowaj")}else{b.zIndex=e;b.style.zIndex=e;g=a[b.liczbaOdslon];if(g){b.style.backgroundColor=g}f=d[b.liczbaOdslon];c(f)}if("function"===typeof i){i(this)}}catch(h){}};return b};try{document.execCommand("BackgroundImageCache",false,true)}catch(oB){}function fixPNG(b){if(/MSIE (5\.5|6).+Win/.test(navigator.userAgent)){var e,d,c,a;if(b.tagName==="IMG"){if(/\.png$/.test(b.src)){e=b.src;b.src="./i/e.gif"}}else{e=b.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i);if(e){e=e[1];b.runtimeStyle.backgroundImage="none"}}d=/iesizing\-(\w+)/;a=d.exec(b.className);c=(a)?a[1]:"crop";if(e){b.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+e+"',sizingMethod='"+c+"')"}}}var dodajOnload=cGR.prototype.dodajOnload,gr$=cGR.prototype.$,$=cGR.prototype.$;function HTTPRequest(){this.czySync=false;this.zdarzenia=["start","open","send","load","end"]}HTTPRequest.prototype={czyObsluguje:function(){return !!this.polaczenie()},filtr:function(e){var g,f=0,d=0,b=0,h="",a=["%u0104","%u0106","%u0118","%u0141","%u0143","%u015A","%u017B","%u0179","%u0105","%u0107","%u0119","%u0142","%u0144","%u015B","%u017C","%u017A"],c=["%A1","%C6","%CA","%A3","%D1","%A6","%AF","%AC","%B1","%E6","%EA","%B3","%F1","%B6","%BF","%BC"];e=escape(e);g=e.match(/%u[a-z0-9]{4}/gi);if(g){for(f=0,b=g.length;f<b;f+=1){h="";for(d=0;d<a.length;d+=1){if(a[d]===g[f]){h=c[d];break}}e=e.replace(g[f],h)}}return e},polaczenie:function(){var a=0,c=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];try{return new XMLHttpRequest()}catch(d){for(a=0;a<c.length;a+=1){try{return new ActiveXObject(c[a])}catch(b){}}}},formatujParametry:function(c){var b=[],a;for(a in c){if("function"!==typeof c[a]){b[b.length]=a+"="+(this.filtr?this.filtr(c[a]):c[a])}}return b.join("&")},get:function(a,c,b){return this.request("GET",a+(a.indexOf("?")+1?"&":"?")+this.formatujParametry(c),null,b,null)},post:function(a,c,b){return this.request("POST",a,c=this.formatujParametry(c),b,{Connection:"close","Content-Length":c.length,Method:"POST "+a+" HTTP/1.1","Content-Type":"application/x-www-form-urlencoded; charset=iso-8859-2"})},request:function(e,a,n,i,b){var j=this,c=this.polaczenie(),g=i instanceof Function,m,d;try{c.open(e,a,!this.czySync);this.czySync||(c.onreadystatechange=function(){m=j.zdarzenia[c.readyState];if(g&&m==="end"){i(c)}if(m in i){i[m](c)}});c.setRequestHeader("HTTP_USER_AGENT","XMLHttpRequest");try{for(d in b){if("function"!==typeof b[d]){c.setRequestHeader(d,b[d])}}c.overrideMimeType("text/html; charset=ISO-8859-2")}catch(h){}c.send(n);if(this.czySync){g?i(c):i.end&&i.end(c);return true}this.anuluj=function(){if("function"===typeof c.abort){c.abort()}};return true}catch(l){return false}},anuluj:function(){}};var oAjax=new HTTPRequest();cGR.rozszerz("SWF",function(b,a,d,e,c){if(!c){if(!this.flash){this.flash=0}this.flash+=1;c="flash-"+this.flash;GR("wpisz",'<div id="'+c+'"></div>')}GR("DOMReady",function(){GR("oSwfInicjalizuj",{src:b,szerokosc:a,wysokosc:d,param:e,oid:c})})});(function(){var g=false,e=false,f=[],b;function c(){if(e){return}var j=f.length,h=0;e=true;if(f){for(h=0;h<j;h+=1){f[h].call(window,[])}f=[]}}function a(){if(e){return}try{document.documentElement.doScroll("left")}catch(h){setTimeout(a,1);return}c()}if(document.addEventListener){b=function(){document.removeEventListener("DOMContentLoaded",b,false);c()}}else{if(document.attachEvent){b=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",b);c()}}}}function d(){if(g){return}g=true;if("complete"===document.readyState){return c()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",b,false);c()},false);window.addEventListener("load",c,false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",b);window.attachEvent("onload",c);var i=false;try{i=window.frameElement===null}catch(h){}if(document.documentElement.doScroll&&i){a()}}}}cGR.prototype.DOMReady=function(h){d();if(e){h.call(window,[])}else{f.push(function(){return h.call(window,[])})}};cGR.prototype.dodajWykonajNaKoncu=cGR.prototype.DOMReady})();function wykonajNaKoncu(){return}GR("DOMReady",function(){if(!/centrala|tm/.test(oG_OSA.serwis)){GR("GoogleAnalytics")}(function(){var a=GR("$$","chmurki");if(!a.length){return}setTimeout(function(){GR("o_chmurki_inicjalizuj",a)},10)})();(function(){GR("przetworzLinki");var c=GR("$$","external"),b=c.length,a=0;for(a=0;a<b;a+=1){if(/A|FORM/.test(c[a].tagName.toUpperCase())){c[a].target="_blank"}}})();if("centrala"!==oG_OSA.serwis){(function(){try{window.ghmxy_align="center";window.ghmxy_type="absolute";window.ghmxy_identifier="bOtLa5QakD3ll8BxlHcT6Je.rtEsAcMm2rn093IxryX.m7";GR("zaladujPlikJS","http://pro.hit.gemius.pl/hmapxy.js")}catch(a){}})()}if("undefined"===typeof JSON){window.JSON=undefined;GR("zaladujPlikJS",oG_OSA.sUrl+"/o/js/json.js")}});function Pozycja(a,b){this.X=a;this.Y=b}Pozycja.prototype.dodaj=function(b){var a=new Pozycja(this.X,this.Y);if(b!==null){if(!isNaN(b.X)){a.X+=b.X}if(!isNaN(b.Y)){a.Y+=b.Y}}return a};Pozycja.prototype.odejmij=function(b){var a=new Pozycja(this.X,this.Y);if(b!==null){if(!isNaN(b.X)){a.X-=b.X}if(!isNaN(b.Y)){a.Y-=b.Y}}return a};Pozycja.prototype.min=function(b){var a=new Pozycja(this.X,this.Y);if(b===null){return a}if(!isNaN(b.X)&&this.X>b.X){a.X=b.X}if(!isNaN(b.Y)&&this.Y>b.Y){a.Y=b.Y}return a};Pozycja.prototype.max=function(b){var a=new Pozycja(this.X,this.Y);if(b===null){return a}if(!isNaN(b.X)&&this.X<b.X){a.X=b.X}if(!isNaN(b.Y)&&this.Y<b.Y){a.Y=b.Y}return a};Pozycja.prototype.ograniczenie=function(b,c){var a=this.max(b);return a.min(c)};Pozycja.prototype.sprawdz=function(){var a=new Pozycja(this.X,this.Y);if(isNaN(a.X)){a.X=0}if(isNaN(a.Y)){a.Y=0}return a};Pozycja.prototype.zastosuj=function(a){a=$(a);if(a===null){return}if(!isNaN(this.X)){a.style.left=this.X+"px"}if(!isNaN(this.Y)){a.style.top=this.Y+"px"}};