var oCGR,cGR,_oGA={kody:["UA-969241-2"],transakcja:null,przedmioty:null,domena:".gratka.pl",zmienne:[]};var oG_OSA=oG_OSA||{};if("undefined"===typeof oG_OSA.debug){oG_OSA.debug=1}if(!oG_OSA.pobranePliki){oG_OSA.pobranePliki=[]}if(!oG_OSA.chmurki){oG_OSA.chmurki={}}var onloadLista=[],wykonajNaKoncuLista=[],sUrl=oG_OSA.sUrl||"";if(sUrl){if(-1===sUrl.indexOf("http://")){sUrl="http://"+sUrl}}window.onerror=function(c,b,a){if(1===oG_OSA.debug){return false}return true};Object.beget=function(b){var a=function(){};a.prototype=b;return new a()};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)});String.rozszerz("stripTags",function(){return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi,"")});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("contains",function(a){return this.indexOf(a)>-1});function czytajOnload(){for(var a=0;a<onloadLista.length;a+=1){onloadLista[a]()}}function GR(){var d=Array.prototype.slice.call(arguments),h=d.shift(),i,a,b,e="",f=h.match(/^(o|os|p|k)([A-Z][a-z0-9]+)([A-Z][a-z0-9]+)([A-Z][a-z0-9]+)*$/),c=h.split("_");try{if(!oCGR){oCGR=new cGR()}if(""!=h&&"function"===typeof oCGR[h]){return oCGR[h].apply(oCGR,d)}if(f){i=f[1];a=f[2];if("k"===i){e="/"+a.toLowerCase();a=f[3]}}else{i=c[0];a=c[1];if("k"===i){e="/"+a.toLowerCase();a=c[2]}}b=sUrl+("os"!==i?"/"+i:"")+e+"/js/cgr/"+a.toLowerCase()+".js";if(/o|os|p|k/.test(i)){GR("zaladujPlikJS",b,"head",function(){if(""!=h&&"function"===typeof oCGR[h]){return oCGR[h].apply(oCGR,d)}})}}catch(g){}}(function(){if(!jQuery){return}GR.DOM=jQuery})();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){if(GR("czyIE")){a=Zdarzenia.formatuj(a)}a.preventDefault();a.stopPropagation();return false};Zdarzenia.formatuj=function(a){if(GR("czyIE")){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(window.event){return this.formatuj(window.event)}else{return Zdarzenia.pobierz.caller.arguments[0]}};Zdarzenia.odpal=function(a,b){if("fireEvent" in a){a.fireEvent("on"+b)}else{var c=document.createEvent("HTMLEvents");c.initEvent(b,false,true);a.dispatchEvent(c)}};cGR=function(){this.wersja=(oG_OSA.debug===1?(Math.random()).toString().substring(2,11):"1.5.1c");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&&this.sPrzegladarka.indexOf("opera")===-1)},czyOpera:function(){return(this.sPrzegladarka.indexOf("opera")>-1)},czyWebKit:function(){return(this.sPrzegladarka.indexOf("applewebkit/")>-1)},czyGecko:function(){return(this.sPrzegladarka.indexOf("gecko")>-1&&this.sPrzegladarka.indexOf("khtml")===-1)},czyMobileSafari:function(){return !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)},czyMacOS:function(){if(this.sPrzegladarka.indexOf("mac")!==-1){return true}return false},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&&""!==f){return document.getElementById(f)}return null},$$:function(){var j=[],f,h=0,e=0,c=arguments,g=c[1]||document,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.zwrocObiekt()}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);if(b){return b&&b.className.match(new RegExp("(^|\\s)"+a+"(\\s|$)"))}},pobierzCssClass:function(b,a){b=this.$(b);if(b){if(a){return b.className.split(" ")}return b.className}},ustawCssClass:function(b,a){b=this.$(b);if(b&&a){return(b?b.className=a:null)}},dodajCssClass:function(b,a){b=this.$(b);if(b){if(!this.czyCssClass(b,a)){b.className=b.className.trim()!==""?b.className+" "+a:a}return b.className}},usunCssClass:function(c,a,b){c=this.$(c);b=b||" ";if(!c){return}if(this.czyCssClass(c,a)){c.className=(c.className.replace(new RegExp("(?:^|\\s+)"+a+"(?:\\s+|$)"),b)).trim()}if(""===c.className.trim()){c.removeAttribute("class")}return c.className},przelaczCssClass:function(b,a){b=this.$(b);if(!b){return}if(this.czyCssClass(b,a)){this.usunCssClass(b,a)}else{this.dodajCssClass(b,a)}},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(b,j,d,c,i){var a,e,g,f=(!document.documentElement.hasAttribute)?{"for":"htmlFor","class":"className"}:{htmlFor:"for",className:"class"};d=d||{};i=i||null;try{if("name" in d){a=document.createElement("<"+j+' name="'+d.name+'">');delete d.name}}catch(h){}if(!a||a.nodeName!==j.toUpperCase()){a=document.createElement(j)}for(e in d){if("function"!==typeof d[e]){if("style"===e){this.ustawReguleCss(a,d[e])}else{g=f[e]||e;a.setAttribute(g,d[e])}}}if(i){a.appendChild(document.createTextNode(i))}if(c!==-1){this.dolaczElement((this.$(b)||document.body),a,c)}return a},dolaczElement:function(b,a,c){c=c||"ostatni";switch(c){case"pierwszy":b.insertBefore(a,b.firstChild);break;case"przed":b.parentNode.insertBefore(a,b);break;case"po":b.parentNode.insertBefore(a,b.nextSibling);break;case"ostatni":b.appendChild(a);break}},usunElement:function(a){a=$(a);if(!a||!a.parentNode){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}}},dodajWykonajNaKoncu:function(a){wykonajNaKoncuLista[wykonajNaKoncuLista.length]=a},zaladujPlikJS:function(c,f,j,e,a){var i=document,b,g,k;f=f||"head";j=j||0;a=a||0;try{if(oG_OSA.pobranePliki[c]&&oG_OSA.pobranePliki[c]===1){if("function"===typeof j){j()}return}b=c;if(!e){b=c+(c.indexOf("?")+1?"&":"?")+this.pobierzWersje()}if(i.getElementsByTagName("head")&&f==="head"){k=document.createElement("script");if(typeof j==="function"){if(GR("czyIE")||k.onreadystatechange){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 f,c,a,e,g=[],d=document.getElementsByTagName("a"),h=GR("pobierzCookie","zakladki"),b=location.hash.replace("#",""),j=d.length,n={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"}},o=function(){return false};for(f=0;f<j;f+=1){e=d[f].getAttribute("rel")||0;if(e){for(c in n){if("function"!==typeof n[c]){if((new RegExp("(^|\\s+)"+c+"([\\s:-]+|$)")).test(e)){for(a in n[c]){switch(a){case"target":d[f].target=n[c][a];break;case"obiekt":var m=GR("relParam",e,1);if(!oG_OSA[n[c][a]]){oG_OSA[n[c][a]]={}}if(!oG_OSA[n[c][a]][m.id]){oG_OSA[n[c][a]][m.id]=d[f]}if(b===m.id||h===m.id){GR("o_zakladki_wykonaj",d[f])}break;default:if(GR("czyCssClass",d[f].parentNode,"wyszarzony")){d[f].onclick=o;break}d[f].onclick=n[c][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.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++){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(!GR("czyIE")&&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()}};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 gr$=cGR.prototype.$,$=cGR.prototype.$;function HTTPRequest(){this.czySync=false;this.zdarzenia=["start","open","send","load","end"];this.kodowanie="utf-8";this.czyNaglowek=true}HTTPRequest.prototype={czyObsluguje:function(){return !!this.polaczenie()},filtr:function(e){if("utf-8"===this.kodowanie){return encodeURIComponent(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("&")},ustawKodowanie:function(a){this.kodowanie=a.toLowerCase()},ustawCzyNaglowek:function(a){this.czyNaglowek=a},get:function(a,c,b){return this.request("GET",a+(a.indexOf("?")+1?"&":"?")+this.formatujParametry(c),null,b,null)},post:function(a,c,b){c=this.formatujParametry(c);return this.request("POST",a,c,b,{Connection:"close","Content-Length":c.length,Method:"POST "+a+" HTTP/1.1","Content-Type":"application/x-www-form-urlencoded; "+this.kodowanie})},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);if(!this.czySync){c.onreadystatechange=function(){m=j.zdarzenia[c.readyState];if(g&&m==="end"){i(c)}if(m in i){i[m](c)}}}if(true===this.czyNaglowek){c.setRequestHeader("X-Requested-With","XMLHttpRequest")}try{for(d in b){if("function"!==typeof b[d]){c.setRequestHeader(d,b[d])}}if("utf-8"!==this.kodowanie){c.overrideMimeType("text/html; charset="+this.kodowanie)}}catch(h){}c.send(n);if(this.czySync){if(g){i(c)}else{i.end(c)}}return true}catch(l){return false}}};var oAjax=new HTTPRequest();cGR.rozszerz("SWF",function(c,a,e,f,d){var b=GR("oSwfInicjalizuj");b.wstaw(c,a,e,f,d)});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"}};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){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,pobierzElement:function(i){return e[i]}}};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){f="object"===typeof f?f:{};if(true===f.esc){document.onkeydown=function(){var g=Zdarzenia.pobierz().keyCode;if(g===27){b.ukryj(f.fn)}}}else{document.onkeydown=function(){}}if(true===f.click){b.onclick=function(){b.ukryj(f.fn);return false}}else{b.onclick=function(){return false}}}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",b,"schowaj")}else{b.zIndex=e;b.style.zIndex=e;g=a[b.liczbaOdslon];if(g){b.style.backgroundColor=g}else{delete b.style.backgroundColor}f=d[b.liczbaOdslon];c(f)}if("function"===typeof i){i(this)}}catch(h){}};return b};(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(){(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(oG_OSA.debug){GR("o_okienka_inicjalizuj")}if(!/wg|centrala/.test(oG_OSA.serwis)){GR("GoogleAnalytics");(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){}})()}});
