function explodeArray(item,delimiter){tempArray=new Array(1);var Count=0;var tempString=new String(item);while (tempString.indexOf(delimiter)>0){tempArray[Count]=tempString.substr(0,tempString.indexOf(delimiter));tempString=tempString.substr(tempString.indexOf(delimiter)+1,tempString.length-tempString.indexOf(delimiter)+1);Count=Count+1;}tempArray[Count]=tempString;return tempArray;}function array_intersect (arr1){var retArr ={},argl = arguments.length,arglm1 = argl - 1,k1 = '',arr ={},i = 0,k = '';arr1keys:for (k1 in arr1){arrs:for (i = 1;i < argl;i++){arr = arguments[i];for (k in arr){if (arr[k] === arr1[k1]){if (i === arglm1){retArr[k1] = arr1[k1];}continue arrs;}}continue arr1keys;}}return retArr;}function countBR(str){var count = 0;var lastIndex = 0;while ((lastIndex = str.indexOf('
',lastIndex)) != -1){lastIndex ++;count ++;if(count==1){var firstIndex=lastIndex;}}var tab=new Array();tab.push(count);tab.push(firstIndex);return tab;}function countNL(str){var count = 0;var lastIndex = 0;var indexes=new Array();while ((lastIndex = str.indexOf("\n",lastIndex)) != -1){lastIndex ++;count ++;indexes[count]=lastIndex;}indexes[0]=0;indexes[count+1]=str.length;return indexes;}(function($){$(document).ready(function(){$(".wpb_image_grid_ul a").removeClass("prettyphoto");var windowHeight = parseFloat($(window).height());windowHeight = windowHeight;$("div#xpressoFB").append('');$("div#xpressoFBTrigger").click(function(){var currentClass = $("div#xpressoFBWrapWrapWrap").attr("class");if(currentClass == 'notvisible'){$("div#xpressoFBWrapWrapWrap").animate({right:'-15px'},500);if($("body").hasClass("home")){$("body").animate({paddingRight:'250px'},1);$("div#header-secondary-outer").animate({paddingRight:'250px'},1);$("div#header-outer").animate({paddingRight:'250px'},1);}else{$("body").animate({paddingRight:'250px'},500);$("div#header-secondary-outer").animate({paddingRight:'250px'},500);$("div#header-outer").animate({paddingRight:'250px'},500);}$("div#expresso-cookies.expresso-cookies-compact").animate({paddingRight:'250px'},500);}else if (currentClass == 'visible'){$("div#xpressoFBWrapWrapWrap").animate({right:'-278px'},500);$("div#header-secondary-outer").animate({right:'-278px'},500);$("div#header-outer").animate({right:'-278px'},500);if($("body").hasClass("home")){$("body").animate({paddingRight:'0px'},1);$("div#header-secondary-outer").animate({paddingRight:'0px'},1);$("div#header-outer").animate({paddingRight:'0px'},1);}else{$("body").animate({paddingRight:'0px'},500);$("div#header-secondary-outer").animate({paddingRight:'0px'},500);$("div#header-outer").animate({paddingRight:'0px'},500);}$("div#expresso-cookies.expresso-cookies-compact").animate({paddingRight:'0px'},500);}$("div#xpressoFBWrapWrapWrap").toggleClass("notvisible").toggleClass("visible");});$("div#polishText").append("
");$("div#englishText").append("
");$("div#germanText").append("
");$("table#wp-calendar").hover(function(){$(this).children("tbody").children("tr").children("td").children("a").removeAttr("title");},function(){});$("div.expresso-loop-title a:contains('Kondolencje')").parent().addClass("expresso-loop-title-kondolencje");$("h1.expresso-loop-title:contains('Kondolencje')").addClass("expresso-loop-title-kondolencje");$("h2.entry-title:contains('Kondolencje')").parent().find("div.entry-meta").remove();$("h2.entry-title:contains('Kondolencje')").remove();$.each($("table#wp-table-reloaded-id-4-no-1 tbody tr td.column-4"),function(key,value){tekst=$(value).html();tab_sprawdzajaca=countBR(tekst);if(tab_sprawdzajaca[0]>2){poczatek=tekst.slice(0,tab_sprawdzajaca[1]-1);if(!(poczatek.toLowerCase().match(/ul./g))){koniec=tekst.slice(tab_sprawdzajaca[1]+3,tekst.length);tekst=""+poczatek+"
"+koniec;$(value).html(tekst);}}else if(tab_sprawdzajaca[0]==2){poczatek=tekst.slice(0,tab_sprawdzajaca[1]-1);if(poczatek.toLowerCase().match(/kancelaria/g) && !(poczatek.toLowerCase().match(/ul./g))){koniec=tekst.slice(tab_sprawdzajaca[1]+3,tekst.length);tekst=""+poczatek+"
"+koniec;$(value).html(tekst);}}});var wzor_email=/[0-9a-zA-Z_.-]+@[0-9a-zA-Z.-]+\.[a-zA-Z]{2,3}/;var wzor_www=/www\.[0-9a-zA-Z_.-]+\.[a-zA-Z]{2,3}/;var zamieniony;$.each($("table#wp-table-reloaded-id-4-no-1 tbody tr td.column-4:contains(www)"),function(key,value){tekst=$(value).html();zamieniony = tekst.replace(wzor_www,function(match){return ""+match+"";});$(value).html(zamieniony);});$.each($("table#wp-table-reloaded-id-4-no-1 tbody tr td.column-4:contains(@)"),function(key,value){tekst=$(value).html();zamieniony = tekst.replace(wzor_email,function(match){return ""+match+"";});$(value).html(zamieniony);});$("input#imie_nazwisko_input").keypress(function(e){if(e.keyCode == 13){$("input#lista_radcow_submit").click();}});$("input#lista_radcow_submit").click(function(){var imie_nazwisko=$("input#imie_nazwisko_input").val();var miasto=$('select#miasto_select').val();var zawieszony=$('select#zawieszony_select').val();var pokaz_imie_nazwisko=new Array();$("table#wp-table-reloaded-id-4-no-1 tbody tr").hide();if(imie_nazwisko){var rozdzielone=(explodeArray(imie_nazwisko," "));imie_nazwisko=imie_nazwisko[0].toUpperCase() + imie_nazwisko.slice(1);if(rozdzielone[1]){rozdzielone[0]=rozdzielone[0][0].toUpperCase() + rozdzielone[0].slice(1);rozdzielone[1]=rozdzielone[1][0].toUpperCase() + rozdzielone[1].slice(1);}$.each($("table#wp-table-reloaded-id-4-no-1 tbody tr td.column-2:contains("+imie_nazwisko+")").parent(),function(key,value){pokaz_imie_nazwisko.push(value);});$.each($("table#wp-table-reloaded-id-4-no-1 tbody tr td.column-3:contains("+imie_nazwisko+")").parent(),function(key,value){pokaz_imie_nazwisko.push(value);});var tmp1=new Array();var tmp2=new Array();$.each($("table#wp-table-reloaded-id-4-no-1 tbody tr td.column-2:contains("+rozdzielone[0]+")").parent(),function(key,value){tmp1.push(value);});$.each($("table#wp-table-reloaded-id-4-no-1 tbody tr td.column-3:contains("+rozdzielone[1]+")").parent(),function(key,value){tmp2.push(value);});$.each(array_intersect(tmp1,tmp2),function(index,value){pokaz_imie_nazwisko.push(value);});var tmp3=new Array();var tmp4=new Array();$.each($("table#wp-table-reloaded-id-4-no-1 tbody tr td.column-2:contains("+rozdzielone[1]+")").parent(),function(key,value){tmp3.push(value);});$.each($("table#wp-table-reloaded-id-4-no-1 tbody tr td.column-3:contains("+rozdzielone[0]+")").parent(),function(key,value){tmp4.push(value);});$.each(array_intersect(tmp3,tmp4),function(index,value){pokaz_imie_nazwisko.push(value);});}var pokaz_miasto=new Array();if (miasto){$.each($("table#wp-table-reloaded-id-4-no-1 tbody tr td.column-4:contains("+miasto+")"),function(index,value){pokaz_miasto.push($(value).parent('tr')[0]);});}var pokaz_zawieszony=new Array();if (zawieszony){if (zawieszony=='tak'){$.each($("table#wp-table-reloaded-id-4-no-1 tbody tr td.column-4:contains(zawieszony)").parent(),function(index,value){pokaz_zawieszony.push(value);});$.each($("table#wp-table-reloaded-id-4-no-1 tbody tr td.column-4:contains(Zawieszony)").parent(),function(index,value){pokaz_zawieszony.push(value);});$.each($("table#wp-table-reloaded-id-4-no-1 tbody tr td.column-4:contains(zawieszona)").parent(),function(index,value){pokaz_zawieszony.push(value);});$.each($("table#wp-table-reloaded-id-4-no-1 tbody tr td.column-4:contains(Zawieszona)").parent(),function(index,value){pokaz_zawieszony.push(value);});}if (zawieszony=='nie'){$.each($("table#wp-table-reloaded-id-4-no-1 tbody tr:not(\":contains('awiesz')\")"),function(index,value){pokaz_zawieszony.push(value);});}}if($(pokaz_imie_nazwisko[0]).html() && $(pokaz_zawieszony[0]).html() && $(pokaz_miasto[0]).html() ){$.each(array_intersect(pokaz_zawieszony,pokaz_miasto,pokaz_imie_nazwisko),function(index,value){$(value).show();});}else if($(pokaz_zawieszony[0]).html() && $(pokaz_miasto[0]).html() ){$.each(array_intersect(pokaz_zawieszony,pokaz_miasto),function(index,value){$(value).show();});}else if($(pokaz_zawieszony[0]).html() && $(pokaz_imie_nazwisko[0]).html() ){$.each(array_intersect(pokaz_zawieszony,pokaz_imie_nazwisko),function(index,value){$(value).show();});}else if($(pokaz_imie_nazwisko[0]).html() && $(pokaz_miasto[0]).html() ){$.each(array_intersect(pokaz_miasto,pokaz_imie_nazwisko),function(index,value){$(value).show();});}else if($(pokaz_zawieszony[0]).html()){$.each(pokaz_zawieszony,function(index,value){$(value).show();});}else if($(pokaz_miasto[0]).html()){$.each(pokaz_miasto,function(index,value){$(value).show();});}else if($(pokaz_imie_nazwisko[0]).html()){$.each(pokaz_imie_nazwisko,function(index,value){$(value).show();});}if((imie_nazwisko==0) && (zawieszony==0) && (miasto==0)){$("table#wp-table-reloaded-id-4-no-1 tbody tr").show();}});$("div.expresso-loop-content ul blockquote li:last").addClass("last-li");$("a.expresso-thumbnail").not("a.expresso-thumbnail:has('img')").parent().parent().children("div.entry-content").removeClass("entry-content-narrow").parent().children("div.expresso-thumbnail-container").remove();$("div.entry-content div.standard-news-loop a span.news-content-span").parent("a").addClass("news-content-read-more").addClass("box");$("div.entry-content a[href$='.pdf']").not("div.wpb_wrapper a").addClass("loop-pdf-icon").addClass("loop-file-icon");$("div.entry-content a[href$='.zip']").not("div.wpb_wrapper a").addClass("loop-zip-icon").addClass("loop-file-icon");$("div.entry-content a[href$='.doc']").not("div.wpb_wrapper a").addClass("loop-doc-icon").addClass("loop-file-icon");$("div.entry-content a[href$='.docx']").not("div.wpb_wrapper a").addClass("loop-doc-icon").addClass("loop-file-icon");$("div.entry-content a[href$='.xls']").not("div.wpb_wrapper a").addClass("loop-xls-icon").addClass("loop-file-icon");$("div.entry-content a[href$='.xlsx']").not("div.wpb_wrapper a").addClass("loop-xls-icon").addClass("loop-file-icon");$("table#wp-table-reloaded-id-6-no-1 tbody tr td[colspan='3']").parent().addClass("table-uchwaly-subheader");$("table#wp-table-reloaded-id-6-no-1 tbody tr").not("tr.table-uchwaly-subheader").hide();$("table#wp-table-reloaded-id-6-no-1 tbody tr.table-uchwaly-subheader td").click(function(){$("table#wp-table-reloaded-id-6-no-1 tbody tr").not("tr.table-uchwaly-subheader").hide();$(this).parent().nextAll().each(function(){var siblingID= $(this).hasClass("table-uchwaly-subheader");var siblingClass = $(this).hasClass("visible-row");if (siblingID != true){if(siblingClass != true){$(this).show().addClass("visible-row");}else{$(this).hide().removeClass("visible-row");}}else if (siblingID == true){return false;}});});$("table#wp-table-reloaded-id-6-no-1 tbody tr td.column-1").not("tr.table-uchwaly-subheader td").each(function(){tab_nl=countNL($(this).text());var obecnie;var calosc=$(this).text();$(this).empty();var href_text;for (var x=0;x
");});$("div.expresso-sidebar-widget-container form#searchform input#s").addClass("box");$("div.expresso-sidebar-widget-container form#searchform input#searchsubmit").addClass("box");$("div.expresso-sidebar-widget-container form#searchform input#s").val("Wpisz frazę do wyszukania...").attr("alt","Wpisz frazę do wyszukania...");$("div.expresso-sidebar-widget-container form#searchform input#s").addClass("unfocused");$("div.expresso-sidebar-widget-container form#searchform input#s").focus(function(){var input_text = $(this).val();var input_alt = $(this).attr("alt");if(input_text == input_alt){$(this).removeClass("unfocused").val("");}});$("div.expresso-sidebar-widget-container form#searchform input#s").blur(function(){var input_text = $(this).val();var input_alt = $(this).attr("alt");if(input_text == ''){$(this).val(input_alt);$(this).addClass("unfocused");};});$("div.expresso-sidebar-widget-container ul li:last").addClass("last-side-li");$("div.ngg-albumoverview div.galleryblock a:nth-child(3)").addClass("gallery-title");$("div.ngg-albumoverview div.galleryblock br").remove();$("#slider-menu a").mouseenter(function(){var image = $(this).attr('href');$('#animations-thumbnails-wrap').fadeIn(500);$('#animations-thumbnails').fadeOut(500,function(){});$('#animations-thumbnails-wrap').addClass('animation-hovered');$('#animations-thumbnails').load("/?thumbnail=" + image,function(){$('#animations-thumbnails').fadeIn(500,function(){});});return false;});$("div.expresso-loop-content ul li").each(function(){var li_text = $(this).html();$(this).html(""+li_text+"");});$("div.expresso-sidebar-widget-container").addClass("bottomradius");$("div.expresso-sidebar-widget").addClass("box");$(window).load(function(){$("a#expresso-allegro-icon").animate({right:'-5px'},600);$("a#expresso-youtube-icon").delay(300).animate({right:'-5px'},600);$("a#expresso-facebook-icon").delay(900).animate({right:'-5px'},600);});$("a.rightsidelink").hover(function(){$(this).stop(true,true).animate({right:'0px'});},function(){$(this).stop(true,true).animate({right:'-5px'});});if($("#expresso-animation-container-wrap-wrap-wrap").length == 0){$("div#expresso-animation-toggle").hide();};$("#gallery-widgets div.gallery-widget-wrapper div.gallery-widget img").each(function(){var link = $(this).attr("src");$(this).parent().append("");$(this).remove();});$("#gallery-widgets div.gallery-widget-wrapper div.gallery-widget a").addClass("box");$("#gallery-widgets div.gallery-widget-wrapper div.gallery-widget div.gallery-widget-description").addClass("bottomradius");$("#gallery-widgets div.gallery-widget-wrapper").hover(function(){$(this).stop(true,true).animate({marginLeft:'0px'});},function(){$(this).stop(true,true).animate({marginLeft:'0px'});});$("div#expresso-header-widget form div label.screen-reader-text").hide();$("div#expresso-header-widget input").addClass("box");$("div#expresso-header-widget input#s").val("Szukaj tutaj...");$("div#expresso-header-widget input#s").focus(function(){var search_input_lenght = $(this).val();if(search_input_lenght == 'Szukaj tutaj...'){$(this).val("");$(this).addClass("expresso-search-focused");}});$("div#expresso-header-widget input#searchsubmit").click(function(){var search_input_lenght = $("div#expresso-header-widget input#s").val();if(search_input_lenght == 'Szukaj tutaj...'){$("div#expresso-header-widget input#s").val("");}});$("div#expresso-header-widget input#s").blur(function(){var search_input_lenght = $(this).val();if(search_input_lenght == ''){$(this).val("Szukaj tutaj...");$(this).removeClass("expresso-search-focused");};});$("div.post-list-view p img").not("div.post-list-view .expresso-thumbnail img").remove();$("div.expresso-post-container:first").removeClass("expresso-post-container-separator");$("div.mapp-container div.mapp-canvas").wrap("");$("table.wp-table-reloaded tbody tr").not("table.wp-table-reloaded tbody tr.intable-header").hover(function(){$(this).addClass("hovered");},function(){$(this).removeClass("hovered");});$("table.wp-table-reloaded").wrap("");$("table.wp-table-reloaded tbody tr td[colspan=3]:first-child strong").parent().parent().addClass("intable-header");$("table.wp-table-reloaded tbody tr td[colspan=2]:first-child strong").parent().parent().addClass("intable-header");$("table.wp-table-reloaded tbody tr td:first-child strong").parent().parent().addClass("intable-header");$(window).load(function(){$("div.wp-table-reloaded-container").show();$("table.wp-table-reloaded").show();});$(".contact-form-columns .wpcf7-submit").wrap("Gratis transport för alla inköp i Skandinavien.
');}if(language != 'sv'){$('#sv-promotion').remove();}$('#expresso-languages option[value="' + language + '"]').attr('selected','selected');$('#expresso-languages select').attr('id','google-translate-select');triggerHtmlEvent(document.getElementById('google-translate-select'),'change');});$("#expresso-languages img").live('mousemove',function(e){var language = $(this).attr('name');$(this).parent().find('span').fadeIn();});$('#expresso-languages img').live('mouseleave',function(){var language = $(this).attr('name');$('#expresso-languages span[name="' + language + '"]').fadeOut();});$("#expresso-loader").hide();translationCheck = window.setInterval(function(){loadGoogleTranslationImages()},300);});});})(jQuery);function loadGoogleTranslationImages(){var dir = $('#expresso-languages').attr('data-dir');$('#expresso-languages option').each(function(){var lang = $(this).attr('value');var title = $(this).text();if(lang != ''){$('#expresso-languages').append('