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");}}});$("table#wp-table-reloaded-id-6-no-1 tr.table-uchwaly-subheader td").each(function(){var td_text = $(this).text();var new_td_text = td_text.slice(19);$(this).html(""+new_td_text+"");$(this).prepend("POSIEDZENIE W DNIU
");});$("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("
");$("#expresso-quick-contact-form-bottom input").addClass("box");$("#expresso-quick-contact-form-bottom textarea").addClass("box");$("div#expresso-quick-contact-form-email input").val("Tutaj wpisz swój adres e-mail").attr("alt","Tutaj wpisz swój adres e-mail");$("div#expresso-quick-contact-form-email input").addClass("unfocused");$("div#expresso-quick-contact-form-email input").focus(function(){var input_text = $(this).val();var input_alt = $(this).attr("alt");if(input_text == input_alt){$(this).removeClass("unfocused").val("");}});$("div#expresso-quick-contact-form-email input").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-quick-contact-form-content textarea").val("Tutaj napisz wiadomość jaką chcesz nam wysłać").attr("alt","Tutaj napisz wiadomość jaką chcesz nam wysłać");$("div#expresso-quick-contact-form-content textarea").addClass("unfocused");$("div#expresso-quick-contact-form-content textarea").focus(function(){var input_text = $(this).val();var input_alt = $(this).attr("alt");if(input_text == input_alt){$(this).removeClass("unfocused").val("");}});$("div#expresso-quick-contact-form-content textarea").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-quick-contact-form-captcha-input input").val("Przepisz kod").attr("alt","Przepisz kod");$("div#expresso-quick-contact-form-captcha-input input").addClass("unfocused");$("div#expresso-quick-contact-form-captcha-input input").focus(function(){var input_text = $(this).val();var input_alt = $(this).attr("alt");if(input_text == input_alt){$(this).removeClass("unfocused").val("");}});$("div#expresso-quick-contact-form-captcha-input input").blur(function(){var input_text = $(this).val();var input_alt = $(this).attr("alt");if(input_text == ''){$(this).val(input_alt);$(this).addClass("unfocused");};});$(window).load(function(){$("div#expresso-quick-contact-form-captcha-text img[alt=captcha]").attr("width","102").attr("height","35");});$("#expresso-quick-contact-form-captcha-input br").remove();$("a:has('img.aligncenter')").addClass("center");$("div.ngg-albumoverview div.galleryblock").append("
");$("div.ngg-albumoverview div.galleryblock:last").addClass("galleryblock-last");$("div.ngg-galleryoverview div:nth-child(3n) div.galleryblock").addClass("galleryblock-lastline");$(".contact-form-columns .contact-form-title:first").addClass("first-title");$(".contact-form-columns .contact-form-title").addClass("topradius");$(".contact-form-columns .contact-form-title").prev(".contact-form-row").addClass("bottomradius").addClass("last-row").wrap("
");$(".contact-form-columns .contact-form-row:last").addClass("bottomradius").addClass("last-row").wrap("
");$(".contact-form-columns .wpcf7-submit").addClass("box");$(".contact-form-row").hover(function(){$(this).addClass("row-hovered");},function(){$(this).removeClass("row-hovered");});$("div.contact-form-row div.contact-form-column-2:has('span.jaki')").parent().hide();$("select[name=rodzaj]").change(function(){if($(this).children("option:selected").is(":contains('inny')")){$("div.contact-form-row div.contact-form-column-2:has('span.jaki')").parent().slideDown(700);}else{$("div.contact-form-row div.contact-form-column-2:has('span.jaki')").parent().slideUp(500);};});$("#expresso-left-sidebar-container-wrap .shopp_categories li:has('ul')").prepend("");$("span.shopp-toggle-arrow,span.shopp-toggle-arrow-up").click(function(){$(this).parent().children("ul").slideToggle(500);$(this).toggleClass("shopp-toggle-arrow");$(this).toggleClass("shopp-toggle-arrow-up");});$(".shopp_categories li").each(function(){if($(this).is(".current")){$(this).children("span.shopp-toggle-arrow").toggleClass("shopp-toggle-arrow").toggleClass("shopp-toggle-arrow-up");}});$("ul#expresso-page-header-menu div").unwrap();$("div#expresso-page-header-menu-wrap div ul:first").attr('id','expresso-page-header-menu');$("ul#expresso-page-header-menu > li").hover(function(){$(this).children("ul").stop(true,true).fadeIn(300);},function(){$(this).children("ul").stop(true,true).fadeOut(100);});$("ul#expresso-page-header-menu li ul li").hover(function(){$(this).children("ul").stop(true,true).fadeIn(300);},function(){$(this).children("ul").stop(true,true).fadeOut(100);});$("ul#expresso-page-header-menu li").hover(function(){$(this).addClass("hovered");$(this).children("ul").addClass("ul-hovered");},function(){$(this).removeClass("hovered");$(this).children("ul").removeClass("ul-hovered");});$("ul#expresso-page-header-menu li").each(function(){$(this).children("ul").addClass("shadow").addClass("bottomradius");$(this).children("ul").children("li:last").addClass("bottomradius");$(this).children("ul").children("li:last").children("a").addClass("bottomradius");$("#expresso-page-header-menu-wrap-wrap").addClass("box");$("#expresso-page-header-menu-wrap-wrap-wrap li:first").addClass("leftradius");$("#expresso-page-header-menu-wrap-wrap-wrap li:first a:first").addClass("leftradius");});$("ul#expresso-page-header-menu li").hover(function(){$(this).addClass("currently-hovered");$(this).children("a").addClass("currently-hovered");},function(){$(this).removeClass("currently-hovered");$(this).children("a").removeClass("currently-hovered");});$("ul#expresso-page-header-menu li.current_page_item,ul#expresso-page-header-menu li.current_page_ancestor").each(function(){$(this).addClass("expresso-current-page");$(this).children("a").addClass("expresso-current-page");});$("#expresso-page-header-menu ul li:last-child").addClass("menu-last-li");$("#expresso-page-header-menu > li:has('ul') > a").append("");$("#expresso-page-header-menu li ul li:has('ul') > a").append("");$("#expresso-page-header-menu > li:last > ul:first").addClass("last-ul");$("div#expresso-second-menu-container ul div").unwrap();$("div#expresso-second-menu-container div ul:first").unwrap();$("div#expresso-second-menu-container > ul > li").hover(function(){$(this).children("ul").stop(true,true).slideDown(300);},function(){$(this).children("ul").stop(true,true).slideUp(100);});$("div#expresso-second-menu-container ul li ul li").hover(function(){$(this).children("ul").stop(true,true).show(200);},function(){$(this).children("ul").stop(true,true).hide(100);});$("div#expresso-second-menu-container ul li").each(function(){$(this).children("ul").addClass("shadow").addClass("bottomradius");$(this).children("ul").children("li:last").addClass("bottomradius");});$("div#expresso-second-menu-container ul li.current_page_item,div#expresso-second-menu-container ul li.current_page_ancestor").not("div#expresso-second-menu-container > ul > li.current_page_item").not("div#expresso-second-menu-container > ul > li.current_page_ancestor").each(function(){$(this).addClass("expresso-current-page");$(this).children("a").addClass("expresso-current-page");});$("div#expresso-second-menu-container > ul > li.current_page_item,div#expresso-second-menu-container > ul > li.current_page_ancestor").each(function(){$(this).addClass("expresso-current-page-first");$(this).children("a").addClass("expresso-current-page-first");});$("div#expresso-second-menu-container > ul > li").hover(function(){$(this).addClass("first-li-hover");$(this).children("a").addClass("first-a-hover");},function(){$(this).removeClass("first-li-hover");$(this).children("a").removeClass("first-a-hover");});$("div#expresso-second-menu-container ul li li").hover(function(){$(this).addClass("li-hover");$(this).children("a").addClass("a-hover");},function(){$(this).removeClass("li-hover");$(this).children("a").removeClass("a-hover");});$("div#expresso-second-menu-container > ul > li").addClass("first-level-li");$("div#expresso-second-menu-container > ul > li > a").addClass("first-level-a");$("div#expresso-second-menu-container > ul > li:has('ul') > a").append("");$("div#expresso-second-menu-container ul li ul li:has('ul') > a").append("");$("div#expresso-second-menu-container-wrap").addClass("box");$("div#expresso-second-menu-container > ul > li:first").addClass("leftradius");$("div#expresso-second-menu-container > ul > li:first > a").addClass("leftradius");$(window).load(function(){$('.nivoSlider').nivoSlider({effect:'boxRainGrow',pauseTime:6500,animSpeed:1500,directionNav:false});$("div.gallery-widget").hover(function(){$(this).children("a.gallery-link").stop(true,true).animate({opacity:0.7});},function(){$(this).children("a.gallery-link").stop(true,true).animate({opacity:0.0});});});$("h3.expresso-sidebar-widget-title").addClass("topradius");$("ul.shopp_categories").addClass("bottomrightradius");$("ul.shopp_categories > li:last-child").addClass("bottomrightradius");$("ul.shopp_categories > li:last-child > a").addClass("bottomrightradius");$(".expresso-sidebar-widget-container:has('.shopp_categories')").addClass("no-padding");$("ul.shopp_categories li ul li.current").parent().parent("li").addClass("current");$("h1.expresso-loop-title ").addClass("topradius").css("margin-top","-1px");$("div#expresso-loop-container-wrap").addClass("bottomradius");$("#expresso-breadcrumbs span:last").addClass("bold");$("div#expresso-animation-toggle").click(function(){$("div#expresso-show-animation").toggle();$("div#expresso-hide-animation").toggle();$("div#expresso-animation-container-wrap-wrap-wrap").slideToggle(500);});$("div.expresso-footer-widget-wrap:first").addClass("first-footer-widget-wrap");$("div.expresso-footer-widget:first").addClass("first-footer-widget");$("div.expresso-footer-widget-wrap:nth-child(2)").addClass("second-footer-widget-wrap").children("div.expresso-footer-widget").addClass("second-footer-widget");$("div.expresso-footer-widget-wrap:nth-child(3)").addClass("third-footer-widget-wrap").children("div.expresso-footer-widget").addClass("third-footer-widget");$("div.expresso-footer-widget-wrap:nth-child(4)").addClass("fourth-footer-widget-wrap").children("div.expresso-footer-widget").addClass("fourth-footer-widget");$("div.expresso-footer-widget-wrap:nth-child(5)").addClass("fifth-footer-widget-wrap").children("div.expresso-footer-widget").addClass("fifth-footer-widget");$("div#expresso-copyright-container ul li.current_page_item,div#expresso-copyright-container ul li.current_page_ancestor").each(function(){$(this).addClass("expresso-current-page");$(this).children("a").addClass("expresso-current-page");});$("div#expresso-copyright-container ul li").hover(function(){$(this).addClass("li-hover");$(this).children("a").addClass("a-hover");},function(){$(this).removeClass("li-hover");$(this).children("a").removeClass("a-hover");});$("div#expresso-copyright-container ul li:first").addClass("first-li");$("div#expresso-copyright-container ul li:first a").addClass("first-a");$("div#expresso-copyright-container ul li:first").hover(function(){$(this).addClass("first-li-hover");$(this).children("a").addClass("first-a-hover");},function(){$(this).removeClass("first-li-hover");$(this).children("a").removeClass("first-a-hover");});$("ul.expresso-simple-children li a").addClass("box");$("ul.expresso-simple-children li:nth-child(2n+1)").css("clear","left");$("ul.expresso-image-children li a").addClass("box");$("ul.expresso-side-children li a").addClass("box");$(window).load(function(){$("table#wp-table-reloaded-id-4-no-1 tbody tr td.column-2").each(function(){var tdText = $(this).text();var tdTextNew = tdText.replace("ę","ez_");tdTextNew = tdTextNew.replace("Ę","Ez_");tdTextNew = tdTextNew.replace("ó","oz_");tdTextNew = tdTextNew.replace("Ó","Oz_");tdTextNew = tdTextNew.replace("ą","az_");tdTextNew = tdTextNew.replace("Ą","Az_");tdTextNew = tdTextNew.replace("ś","sz_");tdTextNew = tdTextNew.replace("Ś","Sz_");tdTextNew = tdTextNew.replace("ł","lz_");tdTextNew = tdTextNew.replace("Ł","Lz_");tdTextNew = tdTextNew.replace("ż","zz__");tdTextNew = tdTextNew.replace("Ż","Zz__");tdTextNew = tdTextNew.replace("ź","zz_");tdTextNew = tdTextNew.replace("Ź","Zz_");tdTextNew = tdTextNew.replace("ń","nz_");tdTextNew = tdTextNew.replace("Ń","Nz_");$(this).text(tdTextNew);});$("table#wp-table-reloaded-id-4-no-1").tablesorter({sortList:[[1,0]]});function capitaliseFirstLetter(string){return string.charAt(0).toUpperCase() + string.slice(1);}$("table#wp-table-reloaded-id-4-no-1 tbody tr td.column-2").each(function(){var tdText = $(this).text();var tdTextNew = tdText.replace("ez_","ę");tdTextNew = tdTextNew.replace("Ez_","Ę");tdTextNew = tdTextNew.replace("oz_","ó");tdTextNew = tdTextNew.replace("Oz_","Ó");tdTextNew = tdTextNew.replace("az_","ą");tdTextNew = tdTextNew.replace("Az_","Ą");tdTextNew = tdTextNew.replace("sz_","ś");tdTextNew = tdTextNew.replace("Sz_","Ś");tdTextNew = tdTextNew.replace("lz_","ł");tdTextNew = tdTextNew.replace("Lz_","Ł");tdTextNew = tdTextNew.replace("zz__","ż");tdTextNew = tdTextNew.replace("Zz__","Ż");tdTextNew = tdTextNew.replace("zz_","ź");tdTextNew = tdTextNew.replace("Zz_","Ź");tdTextNew = tdTextNew.replace("nz_","ń");tdTextNew = tdTextNew.replace("Nz_","Ń");tdTextNew = capitaliseFirstLetter(tdTextNew.toLowerCase());$(this).text(tdTextNew);});$('#google_translate_element').hide();$('#expresso-languages img').live('click',function(){var language = $(this).attr('name');if(window.location.pathname == '/' && language == 'sv'){$('#sv-promotion').remove();$('#expresso-loop').prepend('

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('
' + title + '
');$('#expresso-languages').fadeIn(1500);window.clearInterval(translationCheck);}});}function triggerHtmlEvent(element,eventName){var event;if(document.createEvent){event = document.createEvent('HTMLEvents');event.initEvent(eventName,true,true);element.dispatchEvent(event);}else{event = document.createEventObject();event.eventType = eventName;element.fireEvent('on' + event.eventType,event);}}