").hide().insertBefore(c),ae.one(he,function(){r.replaceWith(c)}),h(c)}else _.get("iframe")?h(" "):_.get("html")?h(_.get("html")):s(_,e)?(e=l(_,e),U=new Image,t(U).addClass(Z+"Photo").bind("error",function(){h(n(se,"Error").html(_.get("imgError")))}).one("load",function(){d===le&&setTimeout(function(){var e;t.each(["alt","longdesc","aria-describedby"],function(e,i){var n=t(_.el).attr(i)||t(_.el).attr("data-"+i);n&&U.setAttribute(i,n)}),_.get("retinaImage")&&i.devicePixelRatio>1&&(U.height=U.height/i.devicePixelRatio,U.width=U.width/i.devicePixelRatio),_.get("scalePhotos")&&(o=function(){U.height-=U.height*e,U.width-=U.width*e},_.mw&&U.width>_.mw&&(e=(U.width-_.mw)/U.width,o()),_.mh&&U.height>_.mh&&(e=(U.height-_.mh)/U.height,o())),_.h&&(U.style.marginTop=Math.max(_.mh-U.height,0)/2+"px"),W[1]&&(_.get("loop")||W[z+1])&&(U.style.cursor="pointer",U.onclick=function(){J.next()}),U.style.width=U.width+"px",U.style.height=U.height+"px",h(U)},1)}),U.src=e):e&&M.load(e,_.get("data"),function(e,i){d===le&&h("error"===i?n(se,"Error").html(_.get("xhrError")):t(this).contents())})}var v,y,x,b,T,C,H,k,W,E,L,M,S,F,I,R,K,P,B,O,_,D,j,A,N,z,U,$,q,G,Q,J,V,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title}},Y="colorbox",Z="cbox",te=Z+"Element",ee=Z+"_open",ie=Z+"_load",ne=Z+"_complete",oe=Z+"_cleanup",re=Z+"_closed",he=Z+"_purge",ae=t("
"),se="div",le=0,de={},ce=function(){function t(){clearTimeout(h)}function e(){(_.get("loop")||W[z+1])&&(t(),h=setTimeout(J.next,_.get("slideshowSpeed")))}function i(){R.html(_.get("slideshowStop")).unbind(s).one(s,n),ae.bind(ne,e).bind(ie,t),y.removeClass(a+"off").addClass(a+"on")}function n(){t(),ae.unbind(ne,e).unbind(ie,t),R.html(_.get("slideshowStart")).unbind(s).one(s,function(){J.next(),i()}),y.removeClass(a+"on").addClass(a+"off")}function o(){r=!1,R.hide(),t(),ae.unbind(ne,e).unbind(ie,t),y.removeClass(a+"off "+a+"on")}var r,h,a=Z+"Slideshow_",s="click."+Z;return function(){r?_.get("slideshow")||(ae.unbind(oe,o),o()):_.get("slideshow")&&W[1]&&(r=!0,ae.one(oe,o),_.get("slideshowAuto")?i():n(),R.show())}}();t[Y]||(t(p),J=t.fn[Y]=t[Y]=function(e,i){var n,o=this;if(e=e||{},t.isFunction(o))o=t("
"),e.open=!0;else if(!o[0])return o;return o[0]?(p(),m()&&(i&&(e.onComplete=i),o.each(function(){var i=t.data(this,Y)||{};t.data(this,Y,t.extend(i,e))}).addClass(te),n=new r(o[0],e),n.get("open")&&f(o[0])),o):o},J.position=function(e,i){function n(){T[0].style.width=k[0].style.width=b[0].style.width=parseInt(y[0].style.width,10)-j+"px",b[0].style.height=C[0].style.height=H[0].style.height=parseInt(y[0].style.height,10)-D+"px"}var r,h,s,l=0,d=0,c=y.offset();if(E.unbind("resize."+Z),y.css({top:-9e4,left:-9e4}),h=E.scrollTop(),s=E.scrollLeft(),_.get("fixed")?(c.top-=h,c.left-=s,y.css({position:"fixed"})):(l=h,d=s,y.css({position:"absolute"})),d+=_.get("right")!==!1?Math.max(E.width()-_.w-N-j-a(_.get("right"),"x"),0):_.get("left")!==!1?a(_.get("left"),"x"):Math.round(Math.max(E.width()-_.w-N-j,0)/2),l+=_.get("bottom")!==!1?Math.max(o()-_.h-A-D-a(_.get("bottom"),"y"),0):_.get("top")!==!1?a(_.get("top"),"y"):Math.round(Math.max(o()-_.h-A-D,0)/2),y.css({top:c.top,left:c.left,visibility:"visible"}),x[0].style.width=x[0].style.height="9999px",r={width:_.w+N+j,height:_.h+A+D,top:l,left:d},e){var g=0;t.each(r,function(t){return r[t]!==de[t]?(g=e,void 0):void 0}),e=g}de=r,e||y.css(r),y.dequeue().animate(r,{duration:e||0,complete:function(){n(),q=!1,x[0].style.width=_.w+N+j+"px",x[0].style.height=_.h+A+D+"px",_.get("reposition")&&setTimeout(function(){E.bind("resize."+Z,J.position)},1),t.isFunction(i)&&i()},step:n})},J.resize=function(t){var e;$&&(t=t||{},t.width&&(_.w=a(t.width,"x")-N-j),t.innerWidth&&(_.w=a(t.innerWidth,"x")),L.css({width:_.w}),t.height&&(_.h=a(t.height,"y")-A-D),t.innerHeight&&(_.h=a(t.innerHeight,"y")),t.innerHeight||t.height||(e=L.scrollTop(),L.css({height:"auto"}),_.h=L.height()),L.css({height:_.h}),e&&L.scrollTop(e),J.position("none"===_.get("transition")?0:_.get("speed")))},J.prep=function(i){function o(){return _.w=_.w||L.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w}function a(){return _.h=_.h||L.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h}if($){var d,g="none"===_.get("transition")?0:_.get("speed");L.remove(),L=n(se,"LoadedContent").append(i),L.hide().appendTo(M.show()).css({width:o(),overflow:_.get("scrolling")?"auto":"hidden"}).css({height:a()}).prependTo(b),M.hide(),t(U).css({"float":"none"}),c(_.get("className")),d=function(){function i(){t.support.opacity===!1&&y[0].style.removeAttribute("filter")}var n,o,a=W.length;$&&(o=function(){clearTimeout(Q),S.hide(),u(ne),_.get("onComplete")},F.html(_.get("title")).show(),L.show(),a>1?("string"==typeof _.get("current")&&I.html(_.get("current").replace("{current}",z+1).replace("{total}",a)).show(),K[_.get("loop")||a-1>z?"show":"hide"]().html(_.get("next")),P[_.get("loop")||z?"show":"hide"]().html(_.get("previous")),ce(),_.get("preloading")&&t.each([h(-1),h(1)],function(){var i,n=W[this],o=new r(n,t.data(n,Y)),h=o.get("href");h&&s(o,h)&&(h=l(o,h),i=e.createElement("img"),i.src=h)})):O.hide(),_.get("iframe")?(n=e.createElement("iframe"),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),_.get("scrolling")||(n.scrolling="no"),t(n).attr({src:_.get("href"),name:(new Date).getTime(),"class":Z+"Iframe",allowFullScreen:!0}).one("load",o).appendTo(L),ae.one(he,function(){n.src="//about:blank"}),_.get("fastIframe")&&t(n).trigger("load")):o(),"fade"===_.get("transition")?y.fadeTo(g,1,i):i())},"fade"===_.get("transition")?y.fadeTo(g,0,function(){J.position(0,d)}):J.position(g,d)}},J.next=function(){!q&&W[1]&&(_.get("loop")||W[z+1])&&(z=h(1),f(W[z]))},J.prev=function(){!q&&W[1]&&(_.get("loop")||z)&&(z=h(-1),f(W[z]))},J.close=function(){$&&!G&&(G=!0,$=!1,u(oe),_.get("onCleanup"),E.unbind("."+Z),v.fadeTo(_.get("fadeOut")||0,0),y.stop().fadeTo(_.get("fadeOut")||0,0,function(){y.hide(),v.hide(),u(he),L.remove(),setTimeout(function(){G=!1,u(re),_.get("onClosed")},1)}))},J.remove=function(){y&&(y.stop(),t[Y].close(),y.stop(!1,!0).remove(),v.remove(),G=!1,y=null,t("."+te).removeData(Y).removeClass(te),t(e).unbind("click."+Z).unbind("keydown."+Z))},J.element=function(){return t(_.el)},J.settings=X)})(jQuery,document,window);var czasNewsletter=setTimeout('NewsletterCzas()',1000);function sprNewsletter(formularz,tryb){var blad=false;if(($('#zgoda_newsletter_marketing_box').length&&$('#zgoda_newsletter_info_handlowa_box').length)&&tryb=='box'){if(!$('#zgoda_newsletter_marketing_box').prop('checked')||!$('#zgoda_newsletter_info_handlowa_box').prop('checked')){$('#BladDanychNewsletterBox').fadeIn();clearTimeout(czasNewsletter);czasNewsletter=setTimeout('zamknijNewsletterBladBox()',4000);blad=true;}} if(($('#zgoda_newsletter_marketing_modul').length&&$('#zgoda_newsletter_info_handlowa_modul').length)&&tryb=='modul'){if(!$('#zgoda_newsletter_marketing_modul').prop('checked')||!$('#zgoda_newsletter_info_handlowa_modul').prop('checked')){$('#BladDanychNewsletterModul').fadeIn();clearTimeout(czasNewsletter);czasNewsletter=setTimeout('zamknijNewsletterBladModul()',4000);blad=true;}} if(blad==false){Form=$(formularz);PreloadWlacz();var sear=$(Form).serialize();$.post("inne/do_newslettera.php?tok=poooeldpiqg53i",{data:sear},function(data){PreloadWylaczSzybko();$.colorbox({html:data,maxWidth:'90%',maxHeight:'90%',open:true,initialWidth:50,initialHeight:50,overlayClose:false,escKey:false,onLoad:function(){$('#cboxClose').hide();}});});} return false;} function wypiszNewsletter(formularz){Form=$('#'+formularz);if(formularz==undefined){Form=$('#newsletter');} PreloadWlacz();var sear=$(Form).serialize();$.post("inne/do_newslettera.php?tok=poooeldpiqg53i",{data:sear,wypisz:'tak'},function(data){PreloadWylaczSzybko();$.colorbox({html:data,maxWidth:'90%',maxHeight:'90%',open:true,initialWidth:50,initialHeight:50,overlayClose:false,escKey:false,onLoad:function(){$('#cboxClose').hide();}});});return false;} $(document).ready(function(){$('#submitNewsletter').removeAttr('disabled');$("#submitNewsletter").attr('class','przycisk');$('#submitUnsubscribeNewsletter').removeAttr('disabled');$("#submitUnsubscribeNewsletter").attr('class','przycisk');$('#submitNewsletterModul').removeAttr('disabled');$("#submitNewsletterModul").attr('class','przycisk');$('#submitUnsubscribeNewsletterModul').removeAttr('disabled');$("#submitUnsubscribeNewsletterModul").attr('class','przycisk');zakladkaNewsletterPopup();});function zakladkaNewsletterPopup(){$('#ZakladkaNewsletterOkno').click(function(){$('#InfoNewsletter').remove();$('#InfoNewsletterOkno').remove();$('#ZakladkaNewsletterOkno').remove();PreloadWlacz();$.post("moduly_stale/newsletter_popup.php",{data:'link'},function(data){PreloadWylaczSzybko();BylModulStaly=false;$('body').append(data);$.NewsletterPopup('ajax');PokazNewsPop();zakladkaNewsletterPopup();});});} function sprNewsletterPopup(formularz){Form=$(formularz);var sear=$(Form).serialize();$.post("inne/do_newslettera.php?tok=poooeldpiqg53i",{data:sear},function(data){$('#BladDanych').html(data);$('#BladDanych').fadeIn();if($('#BladDanych').html().indexOf('DodanyNewsletter')>0){$('.UkryjPopUpNewsletter').hide();$('#ZakonczNewsletter').fadeIn();clearTimeout(czasNewsletter);}else{clearTimeout(czasNewsletter);czasNewsletter=setTimeout('zamknijNewsletterBlad()',4000);}});return false;} function zamknijNewsletter(rezygnacja){$('#InfoNewsletter').fadeOut('fast');$('#InfoNewsletterOkno').fadeOut('fast');if($('#ZakladkaNewsletterOkno').length){if(rezygnacja==1){document.cookie="newsletterPopup=zwin; path=/";} if($('#edrone_kod').length){window.location.reload();}else{$('#ZakladkaNewsletterOkno').fadeIn('fast');$('#ZakladkaNewsletterOkno').remove();}}else{if(rezygnacja==1){document.cookie="newsletterPopup=tak; path=/";}}} function zamknijNewsletterBlad(){$('#BladDanych').fadeOut('fast');} function zamknijNewsletterBladBox(){$('#BladDanychNewsletterBox').fadeOut('fast');} function zamknijNewsletterBladModul(){$('#BladDanychNewsletterModul').fadeOut('fast');} function NewsletterCzas(){} (function($){$.NewsletterPopup=function(tryb){$(document).ready(function(){$('#submitNewsletterPopup').removeAttr('disabled');$("#submitNewsletterPopup").attr('class','przycisk');textZastap($('#emailNewsletterPopup'));$('#NewsletterZamknij span').click(function(){zamknijNewsletter(1);});$(document).keyup(function(e){if(e.keyCode==27){zamknijNewsletter(1);}});if(BylModulStaly==true&&tryb!='ajax'){$('#InfoNewsletter').remove();$('#InfoNewsletterOkno').remove();} BylModulStaly=true;});}})(jQuery);function PokazNewsPop(){$('#InfoNewsletter').fadeIn('fast');$('#InfoNewsletterOkno').fadeIn('fast');if($('#ZakladkaNewsletterOkno').length){$('#ZakladkaNewsletterOkno').fadeOut('fast');}}$(document).ready(function(){$('.Pytania input:radio').click(function(){$('#BladAnkiety').hide();});$("#ankietaBox").validate({rules:{ankieta:{required:true}},errorPlacement:function(){$('#BladAnkiety').show();},submitHandler:function(){PreloadWlacz();var sear=$('#ankietaBox').serialize();$.post("inne/do_ankiety.php?tok=sl8ptqu58iu53t1q",{data:sear},function(data){PreloadWylaczSzybko();$.colorbox({html:data,maxWidth:'90%',maxHeight:'90%',open:true,initialWidth:50,initialHeight:50,overlayClose:false,escKey:false,onLoad:function(){$('#cboxClose').hide();}});});return false;}});$('#submitAnkieta').removeAttr('disabled');$("#submitAnkieta").attr('class','przycisk');});$(document).ready(function(){var marginesGora=60;var iloscZakladekLewa=0;var iloscZakladekPrawa=0;var wysokoscLewa=0;var wysokoscPrawa=0;var szerokoscZakladek=80;if(parseInt($('#doGory').css('top'))>marginesGora){marginesGora=parseInt($('#doGory').css('top'))+$('#doGory').height()+15;} $("body").append('
');var stronaLewa=new Array();var stronaPrawa=new Array();var fb_tryb='nie';if(fb_tryb=='tak'){var fb_strona='lewa';var fb_sort='1';if(parseInt(fb_sort)<10){fb_sort='0'+fb_sort;} if(fb_strona=='lewa'){stronaLewa.push(fb_sort+'_facebook');}else{stronaPrawa.push(fb_sort+'_facebook');}} var gg_tryb='nie';if(gg_tryb=='tak'){var gg_strona='lewa';var gg_sort='1';if(parseInt(gg_sort)<10){gg_sort='0'+gg_sort;} if(gg_strona=='lewa'){stronaLewa.push(gg_sort+'_gg');}else{stronaPrawa.push(gg_sort+'_gg');}} var nk_tryb='nie';var ssl_wl='tak';if(nk_tryb=='tak'&&ssl_wl=='nie'){var nk_strona='prawa';var nk_nr='xxxxxx';var nk_sort='4';if(parseInt(nk_sort)<10){nk_sort='0'+nk_sort;} if(nk_strona=='lewa'){stronaLewa.push(nk_sort+'_nk');}else{stronaPrawa.push(nk_sort+'_nk');}} var yt_tryb='nie';if(yt_tryb=='tak'){var yt_strona='prawa';var yt_sort='2';if(parseInt(yt_sort)<10){yt_sort='0'+yt_sort;} if(yt_strona=='lewa'){stronaLewa.push(yt_sort+'_youtube');}else{stronaPrawa.push(yt_sort+'_youtube');}} var go_tryb='nie';if(go_tryb=='tak'){var go_strona='lewa';var go_sort='1';if(parseInt(go_sort)<10){go_sort='0'+go_sort;} if(go_strona=='lewa'){stronaLewa.push(go_sort+'_google');}else{stronaPrawa.push(go_sort+'_google');}} var tw_tryb='nie';if(tw_tryb=='tak'){var tw_strona='lewa';var tw_sort='1';if(parseInt(tw_sort)<10){tw_sort='0'+tw_sort;} if(tw_strona=='lewa'){stronaLewa.push(tw_sort+'_twitter');}else{stronaPrawa.push(tw_sort+'_twitter');}} var in_tryb='nie';if(in_tryb=='tak'){var in_strona='prawa';var in_sort='1';if(parseInt(in_sort)<10){in_sort='0'+in_sort;} if(in_strona=='lewa'){stronaLewa.push(in_sort+'_instagram');}else{stronaPrawa.push(in_sort+'_instagram');}} var allegro_tryb='tak';if(allegro_tryb=='tak'){var allegro_strona='prawa';var allegro_sort='2';if(parseInt(allegro_sort)<10){allegro_sort='0'+allegro_sort;} if(allegro_strona=='lewa'){stronaLewa.push(allegro_sort+'_allegro');}else{stronaPrawa.push(allegro_sort+'_allegro');}} var pierwsza_tryb='nie';if(pierwsza_tryb=='tak'&&('1'=='0'||'0'==0)){var pierwsza_strona='lewa';var pierwsza_ikona='
';var pierwsza_tresc='';var pierwsza_szerokosc='';var pierwsza_sort='1';if(parseInt(pierwsza_sort)<10){pierwsza_sort='0'+pierwsza_sort;} if(pierwsza_strona=='lewa'){stronaLewa.push(pierwsza_sort+'_pierwsza');}else{stronaPrawa.push(pierwsza_sort+'_pierwsza');}} var druga_tryb='nie';if(druga_tryb=='tak'&&('1'=='0'||'0'==0)){var druga_strona='lewa';var druga_ikona='
';var druga_tresc='';var druga_szerokosc='';var druga_sort='1';if(parseInt(druga_sort)<10){druga_sort='0'+druga_sort;} if(druga_strona=='lewa'){stronaLewa.push(druga_sort+'_druga');}else{stronaPrawa.push(druga_sort+'_druga');}} var trzecia_tryb='nie';if(trzecia_tryb=='tak'&&('1'=='0'||'0'==0)){var trzecia_strona='lewa';var trzecia_ikona='
';var trzecia_tresc='';var trzecia_szerokosc='';var trzecia_sort='1';if(parseInt(trzecia_sort)<10){trzecia_sort='0'+trzecia_sort;} if(trzecia_strona=='lewa'){stronaLewa.push(trzecia_sort+'_trzecia');}else{stronaPrawa.push(trzecia_sort+'_trzecia');}} var opinie_tryb='nie';var opinie_status='nie';if(opinie_tryb=='tak'&&opinie_status=='tak'){var opinie_strona='prawa';var opinie_sort='1';if(parseInt(opinie_sort)<10){opinie_sort='0'+opinie_sort;} if(opinie_strona=='lewa'){stronaLewa.push(opinie_sort+'_opinie');}else{stronaPrawa.push(opinie_sort+'_opinie');}} stronaLewa.sort();stronaPrawa.sort();if(stronaLewa.length>0){for(c=0;c0){for(c=0;cszerokoscZakladek){szerokoscZakladek=$('#'+idWys+'_ikona').width();} szerokoscZakladek=szerokoscZakladek;delete idWys;});if(pokazujZakladki=='nie'){if($(window).width()>$('#Strona').width()+(szerokoscZakladek*2)+20){$('#wysZakladki').show();}else{$('#wysZakladki').hide();}} var pokazujZakladki='tak';if(pokazujZakladki=='nie'){if($(window).width()>$('#Strona').width()+(szerokoscZakladek*2)+20){$('#wysZakladki').show();}else{$('#wysZakladki').hide();} $(window).resize(function(){if($(window).width()>$('#Strona').width()+(szerokoscZakladek*2)+20){$('#wysZakladki').show();}else{$('#wysZakladki').hide();}});} if(pokazujZakladki=='mobile'){if($('#Strona').width()<900){$('#wysZakladki').hide();}else{$('#wysZakladki').show();} $(window).resize(function(){if($('#Strona').width()<900){$('#wysZakladki').hide();}else{$('#wysZakladki').show();}});} function zakladka_facebook(){var fb_kod='
';$("#wysZakladki").append('
');$("#fb").html('
'+fb_kod);konfig_zakladki("#fb","#fb_ikona",fb_strona);} function zakladka_gg(){var gg_kod='
';$("#wysZakladki").append('
');$("#gg").html('
'+gg_kod);konfig_zakladki("#gg","#gg_ikona",gg_strona);} function zakladka_nk(){(function(){var id='nk-widget-sdk';var js,first_js=document.getElementsByTagName('script')[0];if(document.getElementById(id))return;js=document.createElement('script');js.id=id;js.async=true;js.type='text/javascript';js.src='https://nk.pl/script/packs/nk_widgets_all.js';first_js.parentNode.insertBefore(js,first_js);}());var nk_kod='
';$("#wysZakladki").append('
');$("#nk").html('
'+nk_kod);konfig_zakladki("#nk","#nk_ikona",nk_strona);} function zakladka_youtube(){var youtube_kod='
';$("#wysZakladki").append('
');$("#yt").html('
'+youtube_kod);konfig_zakladki("#yt","#yt_ikona",yt_strona);} function zakladka_google(){var google_kod='
';$("#wysZakladki").append('
');$("#gp").html('
'+google_kod);konfig_zakladki("#gp","#gp_ikona",go_strona);} function zakladka_twitter(){var twitter_kod='
';$("#wysZakladki").append('
');$("#tw").html('
'+twitter_kod);konfig_zakladki("#tw","#tw_ikona",tw_strona);} function zakladka_instagram(){var instagram_kod='
';$("#wysZakladki").append('
');$("#in").html('
'+instagram_kod);konfig_zakladki("#in","#in_ikona",in_strona);} function zakladka_allegro(){var allegro_kod='
Brak połączenia ...
';$("#wysZakladki").append('
');$("#allegro").html('
'+allegro_kod);konfig_zakladki("#allegro","#allegro_ikona",allegro_strona);var idAl='20154215';if(idAl==''){idAl=0;} var ileAl='7';if(ileAl==''){ileAl=10;} $.post("inne/allegro_komentarze.php",{limit:ileAl,id:idAl},function(data){$('#ramkaAg').html(data);});} function zakladka_pierwsza(){$("#wysZakladki").append('
');$("#pierwsza").html('
'+pierwsza_ikona+'
'+pierwsza_tresc+'
');konfig_zakladki("#pierwsza","#pierwsza_ikona",pierwsza_strona);} function zakladka_druga(){$("#wysZakladki").append('
');$("#druga").html('
'+druga_ikona+'
'+druga_tresc+'
');konfig_zakladki("#druga","#druga_ikona",druga_strona);} function zakladka_trzecia(){$("#wysZakladki").append('
');$("#trzecia").html('
'+trzecia_ikona+'
'+trzecia_tresc+'
');konfig_zakladki("#trzecia","#trzecia_ikona",trzecia_strona);} function zakladka_opinie(){var opinie_kod='
';$("#wysZakladki").append('
');$("#opinie").html('
Opinie o sklepie
'+opinie_kod);konfig_zakladki("#opinie","#opinieIkona",opinie_strona);$.post("inne/opinie_sklepu.php?tok=wlmp8qr5hi",function(data){$('#opinieSklepu').html(data);});} function konfig_zakladki(idElementu,idIkony,strona){if(strona=='lewa'){var wysokoscZakladek=wysokoscLewa;var iloscZakladek=iloscZakladekLewa;}else{var wysokoscZakladek=wysokoscPrawa;var iloscZakladek=iloscZakladekPrawa;} var wysZakladki=parseInt($(idIkony).height());var szeZakladki=parseInt($(idIkony).width());$(idElementu).css({'top':(marginesGora+wysokoscZakladek)});if(strona=='lewa'){var szerElementu=$(idElementu).width();$(idElementu).css({'left':'-'+szerElementu+'px'});$(idIkony).css({'margin-left':szerElementu+'px','background-position':'left bottom'});$(idElementu).hover(function(){$(this).animate({left:"0px"},600);var data_zakladki=$(this).attr('data-zakladka');if(typeof data_zakladki!==typeof undefined&&data_zakladki!==false){if(!$('#'+data_zakladki).hasClass('PobranyAjax')&&data_zakladki!='ramkaNk'){$.post("inne/zakladki.php",{zakladka:data_zakladki},function(data){$('#'+data_zakladki).html(data);$('#'+data_zakladki).addClass('PobranyAjax');});}}},function(){$(this).stop(true,false).animate({left:'-'+szerElementu+'px'},600);});wysokoscLewa+=wysZakladki;iloscZakladekLewa++;}else{var szerElementu=$(idElementu).width();$(idElementu).css({'right':'-'+szerElementu+'px'});$(idIkony).css({'margin-left':'-'+szeZakladki+'px','background-position':'left top'});$(idElementu).hover(function(){$(this).animate({right:"0px"},600);var data_zakladki=$(this).attr('data-zakladka');if(typeof data_zakladki!==typeof undefined&&data_zakladki!==false){if(!$('#'+data_zakladki).hasClass('PobranyAjax')&&data_zakladki!='ramkaNk'){$.post("inne/zakladki.php",{zakladka:data_zakladki},function(data){$('#'+data_zakladki).html(data);$('#'+data_zakladki).addClass('PobranyAjax');});}}},function(){$(this).stop(true,false).animate({right:'-'+szerElementu+'px'},600);});wysokoscPrawa+=wysZakladki;iloscZakladekPrawa++;} $(idElementu).css({'z-index':10000-(iloscZakladek*1000)});$(idIkony).css({'z-index':10001-(iloscZakladek*1000)});}});