if(typeof js_Config_parser_enabled!=="undefined"&&js_Config_parser_enabled){jQuery(window).on("load",function(){js_freeshipping_init();js_global_responsive_stuffs();js_ajax_cart_ver2()})}else{jQuery(function(){js_freeshipping_init();js_global_responsive_stuffs();js_ajax_cart_ver2()})}var js_shipp_free_title={sk:"Do dopravy zdarma zostáva nakúpiť za",s2:"Do dopravy zdarma zostáva nakúpiť za",s3:"Do dopravy zdarma zostáva nakúpiť za",cz:"Do dopravy zdarma zbývá nakoupit za",c2:"Do dopravy zdarma zbývá nakoupit za",en:"Transport remains free after purchase",de:"Um Gratis-Versand zu haben, bestellen Sie noch für Kauf",at:"Um Gratis-Versand zu haben, bestellen Sie noch für Kauf",hu:"Ingyenes kiszállításhoz vásárolj még az alábbi értékben",ro:"Pentru a beneficia de transport gratuit mai e nevoie de",pl:"W transporcie pozostaje wolny kupić dla",hr:"Ostaje plaćanje besplatne dostave",si:"Brezplačna dostava ostane še plačana"};var js_shipp_free_enabled={sk:"Máte dopravu zdarma.",s2:"Máte dopravu zdarma.",s3:"Máte dopravu zdarma.",cz:"Máte dopravu zdarma.",c2:"Máte dopravu zdarma.",en:"You have free shipping.",de:"Sie haben Gratis-Versand.",at:"Sie haben Gratis-Versand.",hu:"Ingyenes kiszállítás.",ro:"Aveți transport gratuit.",pl:"Trzeba bezpłatną wysyłkę.",hr:"Imate besplatan prijevoz.",si:"Imate brezplačno dostavo."};var free_shipping_flypage_info='<span class="free-shipping-flypage-info">'+cms_js_lang_you_have_free_shipping+"</span>";var js_prod_offers_vex_title={sk:"Špeciálna akciová ponuka",s2:"Špeciálna akciová ponuka",s3:"Špeciálna akciová ponuka",cz:"Speciální akční nabídka",c2:"Speciální akční nabídka",en:"Special offer",de:"Sonderangebot",at:"Sonderangebot",hu:"Különleges ajánlat"};var js_prod_offers_vex_content={sk:"Tento produkt obsahuje špeciálnu akciovú ponuku.",s2:"Tento produkt obsahuje špeciálnu akciovú ponuku.",s3:"Tento produkt obsahuje špeciálnu akciovú ponuku.",cz:"Tento produkt obsahuje speciální nabídku",c2:"Tento produkt obsahuje speciální nabídku",en:"This product contains a special offer",de:"Dieses Produkt enthält ein spezielles Angebot",at:"Dieses Produkt enthält ein spezielles Angebot",hu:"Ez a termék egy különleges ajánlatot tartalmaz"};var js_prod_offers_vex_show_offer={sk:"Zobraziť ponuku",s2:"Zobraziť ponuku",s3:"Zobraziť ponuku",cz:"Zobrazit nabídku",c2:"Zobrazit nabídku",en:"Show offer",de:"Angebot anzeigen",at:"Angebot anzeigen",hu:"Ajánlat megjelenítése"};var js_sphinx_extended_filter={sk:"Rozšírený filter",s2:"Rozšírený filter",s3:"Rozšírený filter",cz:"Rozšířený filtr",c2:"Rozšířený filtr",en:"Extended filter",de:"erweiterter Filter",at:"erweiterter Filter",hu:"kiterjesztett szűrő"};var js_info_mail_title={sk:"Zadajte e-mail, na ktorý Vám zašleme informácie o stave Vašej objednávky",cz:"Zadej e-mail, na který ti pošleme informace o stavu tvé objednávky",en:"Enter your e-mail to receive an information about the status of your order",de:"Geben Sie Ihre E-Mail-Adresse ein, um Informationen zum Status Ihrer Bestellung zu erhalten",at:"Geben Sie Ihre E-Mail-Adresse ein, um Informationen zum Status Ihrer Bestellung zu erhalten"};var js_sidebar_hider_text_cat={sk:"Kategórie",s2:"Kategórie",s3:"Kategórie",cz:"Kategorie",c2:"Kategorie",pl:"Kategorie",at:"Kategorie",de:"Kategorie",hu:"Kategória"};var js_cart_css_obj={top:0,left:"auto",right:0};var js_cart_css_scroll_obj={top:0,left:"auto",right:0};var deviceWidth=jQuery(window).width();var enableGloalEventSwitchSublevel=true;var deviceHeight=jQuery(window).height();var responsiveBreakpoint=1024;var ajax_cart_ver2=false;var hiderAlwaysActive=false;var hider_constant=0;var frontpage_left_modules=".module-kateg";function is_responsive(){return jQuery("body").hasClass("meta_viewport_scale_1")&&deviceWidth<=responsiveBreakpoint||jQuery("body").hasClass("is_touch_device")}function is_admin(){return jQuery("body").hasClass("admin_design")}function parsePrice(e){var i=shop_currency_info[shop_vendor_currency_code],s=e;if(typeof e=="object"){s=jQuery(e).text()}return parseFloat(s.replace(i.SYMBOL,"").replace(i["1000_SYMBOL"],"").replace(i.DEC_SYMBOL,".").trim())}function parseNumToPrice(e){var i=shop_currency_info[shop_vendor_currency_code];var s=e.toString();s=s.split(".");s[0]=s[0].replace(/\B(?=(\d{3})+(?!\d))/g,i["1000_SYMBOL"]);s=s.join(i.DEC_SYMBOL);switch(i.POSIT){case 0:s=s+i.SYMBOL;break;case 1:s=s+" "+i.SYMBOL;break;case 2:s=i.SYMBOL+s;break;case 3:s=i.SYMBOL+" "+s;break}return s}jQuery(window).on("resize",function(){deviceWidth=jQuery(window).width();deviceHeight=jQuery(window).height()});function js_freeshipping_init(){if(typeof js_freeshipping_value=="undefined"||js_freeshipping_value==0){return}if(typeof s=="undefined"){var e=jQuery("#m1").attr("class"),i=e.indexOf("div_m1_"),s=e.substring(i+7,i+9)}var a=jQuery(".cart_ajax_container_inner");var t=jQuery(".module-cart-price");var r=t.text()!=""?parseFloat(t.text().replace(js_freeshipping_currency.symbol,"").replace(js_freeshipping_currency.thousands,"").replace(js_freeshipping_currency.decimal,".").trim()):0;if(typeof js_vm_freeshipping_before_coupon_discount!="undefined"&&js_vm_freeshipping_before_coupon_discount){var o=a.find(".products_wrap").find(".product_cont");if(o.length){r=0}jQuery.each(o,function(e,i){var s=parseFloat(jQuery(i).find(".cajx_price").text().replace(js_freeshipping_currency.symbol,"").replace(js_freeshipping_currency.thousands,"").replace(js_freeshipping_currency.decimal,".").trim());var a=parseInt(jQuery(i).find(".quant_total").text());if(isNaN(s)){s=0}if(isNaN(a)){a=1}r=r+s*a})}var n=typeof js_freeshipping_value!="undefined"&&js_freeshipping_value!=""?js_freeshipping_value:200;var l=n-r;var _;if(!isDesignTools("free_shipping_bar")){jQuery(".module_cont-cart .shipp_free").remove();if(l>0){_='<div class="shipp_free"><span class="shipp_free_title">'+js_shipp_free_title[s]+'</span> <span class="shipp_free_amount">'+js_format_Money(l,2,js_freeshipping_currency.symbol)+"</span></div>";if(typeof js_free_shipping_remove_decimals_if_are_zero!="undefined"){_='<div class="shipp_free"><span class="shipp_free_title">'+js_shipp_free_title[s]+'</span> <span class="shipp_free_amount">'+js_format_Money(l,2,js_freeshipping_currency.symbol)+"</span></div>"}if(typeof js_freeshipping_false!="undefined"){js_freeshipping_false()}}else{_='<div class="shipp_free active"><span class="shipp_free_title">'+js_shipp_free_enabled[s]+"</span></div>";if(typeof js_freeshipping_true!="undefined"){js_freeshipping_true()}}}a.append(_);return{js_freeshipping_value:js_freeshipping_value,current_cart_price:r,price_difference:l}}function js_ajax_cart_ver2(){var e=jQuery(".module-cart");e.find(".moduleCartTop").on("click",function(){if(e.hasClass("empty")){return false}jQuery("body").addClass("open_ajax_cart");jQuery("body").removeClass("open_menu")});jQuery("body").on("click",".cajx_custom_button",function(){jQuery("body").removeClass("open_ajax_cart open_menu")})}function js_overflow_submenu(){if(is_responsive()||typeof js_Config_parser_enabled!=="undefined"&&js_Config_parser_enabled||is_cs_user()){return false}jQuery("ul.mainlevel-nav > li > ul").each(function(){if(jQuery(this).find(" > li").length>1){jQuery(this).addClass("move")}var e=jQuery("#menu_div-inner");jQuery(this).removeClass("full_width");if(e.outerWidth()<=jQuery(this).outerWidth()){jQuery(this).addClass("full_width")}else{jQuery(this).removeClass("full_width")}if(e.offset().left>jQuery(this).offset().left){jQuery(this).addClass("to_left")}else{jQuery(this).removeClass("to_left")}if(e.outerWidth()+e.offset().left<=jQuery(this).outerWidth()+jQuery(this).closest("li").offset().left){jQuery(this).addClass("to_right")}else{jQuery(this).removeClass("to_right")}})}function js_cart_image_animate_custom(e){js_cart_image_animate(e);if(jQuery(".module-cart").hasClass("empty")){jQuery("body").removeClass("open_ajax_cart")}}jQuery(window).on("popstate",function(e){jQuery("body").removeClass("open_search open_login open_topmenu open_menu open_ajax_cart");if(jQuery(".fancybox-container").length){jQuery.fancybox.close()}});function removeGetParam(e,i){var s=i.split("?")[0],a,t=[],r=i.indexOf("?")!==-1?i.split("?")[1]:"";if(r!==""){t=r.split("&");for(var o=t.length-1;o>=0;o-=1){a=t[o].split("=")[0];if(a===e){t.splice(o,1)}}if(t.length)s=s+"?"+t.join("&")}return s}function js_global_responsive_stuffs(){var e=jQuery("#bottom"),i=jQuery(".cart_ajax_container"),s=jQuery(".mp.module-cart"),t=jQuery("body"),r=jQuery(".mp.mp_id3").find(".module_name");n();l();_();d();a();u();c();if(window.location.href.indexOf("opened=yes")>0){history.replaceState({},"",window.location.href.replace("?opened=yes","").replace("&opened=yes",""))}jQuery(".switch-wrapper > *, .module-cart:not(.empty) .moduleCartTop").on("click",function(){var e;if(document.location.href.indexOf("opened=yes")<0){if(document.location.href.indexOf("?")>0){e="&opened=yes"}else{e="?opened=yes"}history.pushState({},"",window.location.href+e)}});jQuery(document).on("click",function(e){if(is_responsive()&&!t.hasClass("open_cart")&&!t.hasClass("open_ajax_cart")&&!t.hasClass("content_template8")&&!i.hasClass("empty")&&!t.hasClass("content_template8b")&&s.find(".cart_ajax_container:visible").length&&jQuery(".cart_ajax_container").css("visibility")!=="hidden"){if(!s.is(e.target)&&s.has(e.target).length===0){s.removeClass("scroll");s.find(".cart_ajax_container").removeClass("is_open");s.find(".cart_ajax_container").slideUp();return false}}});jQuery(window).on("scroll",function(){if(is_responsive()&&ajax_cart_ver2===false&&!t.hasClass("open_cart")&&!t.hasClass("open_ajax_cart")&&!t.hasClass("content_template8")&&!i.hasClass("empty")&&!t.hasClass("content_template8b")&&s.find(".cart_ajax_container:visible").length&&jQuery(".cart_ajax_container").css("visibility")!=="hidden"){s.removeClass("scroll");s.find(".cart_ajax_container").removeClass("is_open");s.find(".cart_ajax_container").slideUp()}});e.on("click",function(){if(r.length){t.removeClass("open_search open_login open_topmenu open_menu open_ajax_cart")}else{t.removeClass("open_search open_left open_login open_topmenu open_menu open_ajax_cart")}if(typeof js_custom_overlay_after_click!=="undefined"){js_custom_overlay_after_click()}o()});if(document.getElementById("bottom")!==null&&jQuery("body").hasClass("is_touch_device")){document.getElementById("bottom").addEventListener("touchmove",function(e){e.preventDefault()})}function o(){return false}function a(){if(!t.hasClass("admin_design")){return}var i=jQuery("#tab-menu-2010").outerHeight();if(js_get_page_scroll()[1]<=i){t.addClass("resp_move_header")}jQuery(window).on("scroll",function(){var e=js_get_page_scroll()[1];if(e>=i){t.removeClass("resp_move_header")}else{t.addClass("resp_move_header")}})}function n(){jQuery(".nav-mobile").on("click",function(){if(r.length){t.removeClass("open_search open_ajax_cart open_login open_topmenu").toggleClass("open_menu")}else{t.removeClass("open_search open_left open_ajax_cart open_login open_topmenu").toggleClass("open_menu")}o()});if(!jQuery("ul.mainlevel-nav.multilevel-nav").length){jQuery("ul.mainlevel-nav li").each(function(){if(jQuery(this).find("> ul").length){jQuery(this).addClass("has_sublevel")}})}if(enableGloalEventSwitchSublevel){jQuery("#menu_div-inner").on("click","li.has_sublevel .menu_item_desc, li.has_submenu .switch_sublevel",function(){var e=jQuery(this).closest("li");console.log("click sublevel switch");e.find(">ul").toggle();e.siblings().find("> ul").hide();e.toggleClass("open");e.siblings().removeClass("open")})}}function l(){if(typeof js_responsive_search_custom=="undefined"){jQuery(".search-switch").on("click",function(){if(r.length){t.removeClass("open_ajax_cart open_menu open_topmenu open_login").toggleClass("open_search")}else{t.removeClass("open_left open_ajax_cart open_menu open_topmenu open_login").toggleClass("open_search")}var e=jQuery("#luigi-ac-input");if(e.length){if(t.hasClass("open_search")){e.trigger("focus")}else{e.trigger("blur")}}else{if(t.hasClass("open_search")&&t.attr("class").indexOf("alltoys")<0){jQuery(".moduletable-search label").trigger("click")}}})}}function _(){jQuery(".topmenu-switch").on("click",function(){if(r.length){t.removeClass("open_menu open_search open_ajax_cart open_login").toggleClass("open_topmenu")}else{t.removeClass("open_left open_menu open_search open_ajax_cart open_login").toggleClass("open_topmenu")}o()})}function d(){jQuery(".login-switch").on("click",function(){if(r.length){t.removeClass("open_menu open_search open_ajax_cart open_topmenu").toggleClass("open_login")}else{t.removeClass("open_left open_menu open_search open_ajax_cart open_topmenu").toggleClass("open_login")}})}function u(){if(jQuery(".hamburger_menu").length){jQuery(".hamburger_menu_switch .category").on("click",function(){t.addClass("show_hamburger_category").removeClass("show_hamburger_menu show_hamburger_login");jQuery.cookie("hamburger_menu_item","show_hamburger_category")});jQuery(".hamburger_menu_switch .menu").on("click",function(){t.addClass("show_hamburger_menu").removeClass("show_hamburger_category show_hamburger_login");jQuery.cookie("hamburger_menu_item","show_hamburger_menu")});jQuery(".hamburger_menu_switch .menu-login-switch").on("click",function(){t.addClass("show_hamburger_login").removeClass("show_hamburger_category show_hamburger_menu");jQuery.cookie("hamburger_menu_item","show_hamburger_login")})}}function c(){var e,i;var s=jQuery(".hider");if(typeof js_Config_parser_enabled!=="undefined"&&js_Config_parser_enabled||is_cs_user("jaro")){e=jQuery("#subheader-inner").children(frontpage_left_modules);i=jQuery("#left");s.on("click",function(){if(jQuery(".itemid_1").length&&t.hasClass("custom_template5-custom_template5")&&e.length){e.wrapAll('<div id="left_wrapper"><div id="left" class="mp_container sidebar"></div></div>');jQuery("#mainmiddle").prepend(jQuery("#left_wrapper"))}if(typeof js_custom_hider_action!="undefined"){js_custom_hider_action()}else if(!r.length){t.removeClass("open_topmenu open_login open_ajax_cart open_menu open_search").toggleClass("open_left")}else{t.removeClass("open_topmenu open_login open_ajax_cart open_search").toggleClass("open_left")}o()});if(jQuery(".itemid_1").length&&t.hasClass("custom_template5-custom_template5")&&e.length||i.length&&i.find(".mp").length||t.hasClass("content_template8")||t.hasClass("content_template8b")||hiderAlwaysActive){if(!(typeof js_CS_Config_lighthouse6_opt!=="undefined"&&js_CS_Config_lighthouse6_opt)){s.removeClass("disabled")}}if(!r.length){if(!is_responsive()||typeof js_mobile_responsive_design==="undefined"||s.hasClass("disabled")||typeof js_CS_Config_disable_hider!=="undefined"&&js_CS_Config_disable_hider){return false}var a=function(){var e=s;if(jQuery("#pre_footer").offset().top<jQuery(window).scrollTop()+jQuery(e).outerHeight()+100+hider_constant&&!e.hasClass("bottom_stop")){e.addClass("bottom_stop");t.addClass("hide_hider")}else{e.removeClass("bottom_stop");t.removeClass("hide_hider")}};jQuery(window).on("scroll",a);a()}else{r.on("click",function(){t.removeClass("open_left");o()})}}else{i=jQuery("#left");if(jQuery(".itemid_1").length&&t.hasClass("custom_template5-custom_template5")){e=jQuery("#subheader").find(frontpage_left_modules);e.wrapAll('<div id="left" class="mp_container sidebar"></div>');i=jQuery("#left");jQuery("#mainmiddle").prepend(i)}if(i.length&&i.find(".mp").length||t.hasClass("content_template8")||t.hasClass("content_template8b")||hiderAlwaysActive){if(!jQuery("#left_wrapper").length){i.wrapAll('<div id="left_wrapper"></div>')}s.on("click",function(){if(typeof js_custom_hider_action!="undefined"){js_custom_hider_action()}else if(!r.length){t.removeClass("open_topmenu open_login open_ajax_cart open_menu open_search").toggleClass("open_left")}else{t.removeClass("open_topmenu open_login open_ajax_cart open_search").toggleClass("open_left")}o()});if(!r.length){if(!is_responsive()){return false}jQuery(window).on("scroll",function(){var e=jQuery(".hider");if(jQuery("#pre_footer").offset().top<jQuery(window).scrollTop()+jQuery(e).outerHeight()+100+hider_constant&&e.not("bottom_stop")){e.addClass("bottom_stop");t.addClass("hide_hider")}else{e.removeClass("bottom_stop");t.removeClass("hide_hider")}})}else{r.on("click",function(){t.removeClass("open_left");o()})}s.removeClass("disabled")}}}}function js_mino_administrator_debug(e){var i=jQuery("body");if(parseInt(i.css("padding-top"))>0){jQuery("#tab-menu-2010").hide();i.css("padding-top","0");if(e===undefined||e===false){i.removeClass("admin_design")}}else{jQuery("#tab-menu-2010").show();i.css("padding-top","82px");i.addClass("admin_design")}}var ignoreMoveComments=false;function addAttributeToUrl(e){if(e.includes("[")){e=e.split("[")[0]}if(e.includes("{")){e=e.split("{")[0]}e=e.split("-");if(e!=""){var a="";jQuery.each(e,function(e,i){if(i!=""){var s;if(i.includes("[")){s=i.split(":")[1].split("[")[0]}else if(i.includes("{")){s=i.split(":")[1].split("{")[0]}else{s=i.split(":")[1]}a+=(a!=""?"-":"")+s}})}window.location.hash=a}if(is_cs_user()){objWindowLoad["flypageGlobal"]=function(){var e=jQuery(".prod_adv_attrib_radio table");if(e.length){e.find('tr[class*="shop_addtocart_advanced"]').on("click",function(e){var i=typeof jQuery(this).find(".shop_addtocart_advanced_attribute_availability").attr("class")!="undefined"?jQuery(this).find(".shop_addtocart_advanced_attribute_availability").attr("class").split(" ")[1]:"";var s=jQuery(this).find('input[type="radio"]');if(typeof js_Config_product_attribute_settings!=="undefined"&&js_Config_product_attribute_settings.template==="radio"){var a=jQuery(this).find(".shop_addtocart_advanced_attribute_buy input").val();addAttributeToUrl(a)}jQuery(".flypage1 .shop_product_availability_value").each(function(){var e=jQuery(this);if(e.closest(".cs_product_item").length==0){e.attr("class","shop_product_availability_value "+i)}});jQuery(this).siblings().removeClass("active");jQuery(this).addClass("active");if(typeof e.srcElement==="undefined"||e.srcElement.type!=="radio"){s.prop("checked",true)}s.trigger("onclick").trigger("change");jQuery("body").trigger("jsChangeProductQuantity",[jQuery(".flypage1 input[data-quantity]"),null])})}}}else{jQuery(function(){js_template_flypage()});function js_template_flypage(){if(!jQuery("body").hasClass("shop_page_class_shop_product_details")){return false}var e=jQuery(".prod_adv_attrib_radio table");if(e.length){e.find('tr[class*="shop_addtocart_advanced"]').on("click",function(e){var i=typeof jQuery(this).find(".shop_addtocart_advanced_attribute_availability").attr("class")!="undefined"?jQuery(this).find(".shop_addtocart_advanced_attribute_availability").attr("class").split(" ")[1]:"";var s=jQuery(this).find('input[type="radio"]');if(typeof js_Config_product_attribute_settings!=="undefined"&&js_Config_product_attribute_settings.template==="radio"){var a=jQuery(this).find(".shop_addtocart_advanced_attribute_buy input").val();addAttributeToUrl(a)}jQuery(".flypage1 .shop_product_availability_value").each(function(){var e=jQuery(this);if(e.closest(".cs_product_item").length==0){e.attr("class","shop_product_availability_value "+i);return false}});jQuery(this).siblings().removeClass("active");jQuery(this).addClass("active");if(typeof e.srcElement==="undefined"||e.srcElement.type!=="radio"){s.prop("checked",true)}s.trigger("onclick").trigger("change");jQuery("body").trigger("jsChangeProductQuantity",[jQuery(".flypage1 input[data-quantity]"),null])})}if(!ignoreMoveComments){var i=jQuery(".comments_container");if(i.length){jQuery(".flypage-desc").first().after(i)}}}}if(is_cs_user()){objWindowLoad["responsiveSwitchDesktopButton"]=function(){jQuery("a.a_body_responsive_design").on("click",function(){var e=jQuery("body");if(jQuery.cookie("cs_cookie_non_responsive_design")=="1"){jQuery.cookie("cs_cookie_non_responsive_design","0",{path:"/"})}else{jQuery.cookie("cs_cookie_non_responsive_design","1",{path:"/"});jQuery("head").prepend('<meta name="viewport" content="width=device-width, target-densitydpi=device-dpi" />');e.removeClass("meta_viewport_scale_1")}location.reload()})}}else{jQuery(function(){jQuery("a.a_body_responsive_design").on("click",function(){var e=jQuery("body");if(jQuery.cookie("cs_cookie_non_responsive_design")=="1"){jQuery.cookie("cs_cookie_non_responsive_design","0",{path:"/"})}else{jQuery.cookie("cs_cookie_non_responsive_design","1",{path:"/"});jQuery("head").prepend('<meta name="viewport" content="width=device-width, target-densitydpi=device-dpi" />');e.removeClass("meta_viewport_scale_1")}location.reload()})})}var cs_config_shop_shopper_group_prices_for_variants=1;jQuery(function(){js_main_menu_overflow_hover()});function js_main_menu_overflow_hover(){if(1||typeof js_Config_parser_enabled!=="undefined"&&js_Config_parser_enabled||is_cs_user()){if(1||is_cs_user()){var i=jQuery("#menu_div-inner");var s;i.find("ul.mainlevel-nav").addClass("js_inicialized");i.find("ul.mainlevel-nav").on("mouseleave",function(){setTimeout(function(){jQuery(this).children("li.has_sublevel").children("ul").removeClass("full_width to_left to_right")},400)});function e(e){s=e.find("> ul");if(!s.length)return;if(is_responsive()){s.removeClass("full_width to_left to_right");return false}if(i.outerWidth()<=s.outerWidth()){s.addClass("full_width")}else{s.removeClass("full_width")}if(i.offset().left>s.offset().left){s.addClass("to_left")}else{s.removeClass("to_left")}if(i.outerWidth()+i.offset().left<=s.outerWidth()+s.closest("li").offset().left){s.addClass("to_right")}else{s.removeClass("to_right")}}i.find("ul.mainlevel-nav").find(">li:hover").each(function(){e(jQuery(this))});i.find("ul.mainlevel-nav").on("mouseenter",'li[class*="0_"]',function(){e(jQuery(this))})}else{var i=jQuery("#menu_div-inner");var s;i.find("ul.mainlevel-nav").on("mouseleave",function(){jQuery(this).find("> li.has_sublevel > ul").removeClass("full_width to_left to_right")});i.find("ul.mainlevel-nav > li.has_sublevel.active").each(function(){s=jQuery(this).find("> ul");if(!s.length)return;if(is_responsive()){s.removeClass("full_width to_left to_right");return false}if(i.outerWidth()<=s.outerWidth()){s.addClass("full_width")}else{s.removeClass("full_width")}if(i.offset().left>s.offset().left){s.addClass("to_left")}else{s.removeClass("to_left")}if(i.outerWidth()+i.offset().left<=s.outerWidth()+s.closest("li").offset().left){s.addClass("to_right")}else{s.removeClass("to_right")}});i.find("ul.mainlevel-nav > li.has_sublevel").on({mouseenter:function(){s=jQuery(this).find("> ul");if(!s.length)return;if(is_responsive()){s.removeClass("full_width to_left to_right");return false}if(i.outerWidth()<=s.outerWidth()){s.addClass("full_width")}else{s.removeClass("full_width")}if(i.offset().left>s.offset().left){s.addClass("to_left")}else{s.removeClass("to_left")}if(i.outerWidth()+i.offset().left<=s.outerWidth()+s.closest("li").offset().left){s.addClass("to_right")}else{s.removeClass("to_right")}},mouseleave:function(){s=jQuery(this).find("> ul");var e=jQuery(this);if(!s.length)return;return;setTimeout(function(){if(!e.is(":hover")){if(s.css("display")=="none"||s.css("visibility")=="hidden"){s.removeClass("full_width to_left to_right")}}},600)}})}}}var alwaysFixedHeader=false,fixedHeaderStart,enableFixedHeaderWhenIsVisibleAjaxSearch=true,fixedHeaderMaxWidthForHide=1920;if(is_cs_user()){objWindowLoad["globalFixedHeader"]=function(){js_global_fixed_header()}}else{jQuery(window).on("load",function(){js_global_fixed_header()})}function js_global_fixed_header(){var i=jQuery("body"),s=jQuery(window).scrollTop(),a=s;if(typeof fixedHeaderStart==="undefined"){fixedHeaderStart=jQuery("#subheader").offset().top}if(is_cs_user()){objScroll["globalFixedHeader"]=function(){if(is_responsive()||jQuery("#header_container").width()<responsiveBreakpoint){i.removeClass("g_fixed_header g_hide_header");return}if(enableFixedHeaderWhenIsVisibleAjaxSearch!==true){if(jQuery(".ac_results.ui-autocomplete").is(":visible")&&!jQuery("body").hasClass("g_fixed_header")){return false}}var e=jQuery(window).width();a=jQuery(window).scrollTop();if(a!==s||a===s&&a>fixedHeaderStart){if(a<s){if(e<fixedHeaderMaxWidthForHide){i.removeClass("g_hide_header")}if(a<fixedHeaderStart){i.removeClass("g_fixed_header g_hide_header");if(typeof js_custom_remove_class_fixed_header!=="undefined"){js_custom_remove_class_fixed_header()}}}else{if(jQuery(this).scrollTop()>fixedHeaderStart||a===s&&a>fixedHeaderStart){if(alwaysFixedHeader){i.removeClass("g_hide_header")}else{if(e<fixedHeaderMaxWidthForHide){i.addClass("g_hide_header")}else{i.removeClass("g_hide_header")}}i.addClass("g_fixed_header");if(typeof js_custom_add_class_fixed_header!=="undefined"){js_custom_add_class_fixed_header()}}}}s=a}}else{jQuery(window).on("scroll.global_fixed_header",function(){if(is_responsive()||jQuery("#header_container").width()<responsiveBreakpoint){i.removeClass("g_fixed_header g_hide_header");return}var e=jQuery(window).width();a=jQuery(window).scrollTop();if(enableFixedHeaderWhenIsVisibleAjaxSearch!==true){if(jQuery(".ac_results.ui-autocomplete").is(":visible")&&!jQuery("body").hasClass("g_fixed_header")){return false}}if(a<s){if(e<fixedHeaderMaxWidthForHide){i.removeClass("g_hide_header")}if(jQuery(this).scrollTop()<fixedHeaderStart){i.removeClass("g_fixed_header g_hide_header");if(typeof js_custom_remove_class_fixed_header!=="undefined"){js_custom_remove_class_fixed_header()}}}else{if(jQuery(this).scrollTop()>fixedHeaderStart){if(alwaysFixedHeader){i.removeClass("g_hide_header")}else{if(e<fixedHeaderMaxWidthForHide){i.addClass("g_hide_header")}else{i.removeClass("g_hide_header")}}i.addClass("g_fixed_header");if(typeof js_custom_add_class_fixed_header!=="undefined"){js_custom_add_class_fixed_header()}}}s=a}).trigger("scroll.global_fixed_header")}}alwaysFixedHeader=true;hiderAlwaysActive=true;var wishlist_count_el;var set_actual_variant_main_image="1";jQuery(function(){js_custom();js_wishlist_mod_count();js_list_banner(".mp.list_banner, table.faq");js_description_height();js_last_pieces_html_box();js_prod_detail_attr_active_images_init();js_module_cat();js_slick_related_init();js_slick_last_viewed(".module-navst");js_slick_activeimages();js_ajax_cart_update_after_init();js_top_ten(".module-topten");js_slide_categ_text();js_custom_tabs("#tabsContainer");js_flypage_replace_shipping_price()});jQuery(window).on("resize",function(){js_slide_categ_text()});function js_flypage_replace_shipping_price(){var e=jQuery(".shop_page_class_shop_product_details .banner_product_shipping_info .module_cont");var i=jQuery(".flypage_detail_info .type_shipping_price .text");if(!e.length||!i.length){return}i.html(e.html())}function js_custom_tabs(e){var i=jQuery(e),s=jQuery(".flypage-desc");jQuery("#tabsContainer").find(".tabContent:visible").each(function(){var e=jQuery(this)[0]["id"].replace("page","");if(e==="2"){s.addClass("show_comments")}else{s.removeClass("show_comments")}});i.on("click",".tabHeaders label",function(){if(jQuery(this).attr("for")==="tab2"){s.addClass("show_comments")}else{s.removeClass("show_comments")}})}function js_custom(){jQuery("input, select, textarea").attr("autocomplete","off");if(typeof sphf!=="undefined"){sphf.init({sortBtnsOrder:["t","p","c","n","o"]})}jQuery("body.shop_page_class_shop_browse .module_middle_category_name .module_bot").on("click",function(){jQuery(this).closest(".module").toggleClass("opened")});jQuery(".pre_footer_content").prependTo("#pre_footer")}function js_top_ten(e){var i=jQuery(e),s=i.find(".module_bot-topten"),a='<span class="txt_more">'+cms_js_lang_display+" "+cms_js_lang_more+"</span>",t='<span class="txt_less">'+cms_js_lang_display+" "+cms_js_lang_less+"</span>";if(!i.length){return false}i.find(".module-topten-item:nth-child(3) ~ .module-topten-item").wrapAll('<div class="other_top_ten"></div>');console.log("ide");var r=i.find(".other_top_ten");if(!i.find(".other_top_ten").length){return false}s.append(a+t);s.css("display","inline-block");s.on("click",function(){if(i.hasClass("open")){i.removeClass("open");r.slideUp()}else{i.addClass("open");r.slideDown()}})}function js_wishlist_mod_count(){wishlist_count_el=jQuery(".header_wishlist_count");js_wishlist_change()}function js_wishlist_change_count(e){if(wishlist_count_el===undefined){return}wishlist_count_el.html(wishlist_new_count?wishlist_new_count:"")}function js_ajax_cart_update_after_init(){js_ajax_cart_free_shipping_percentage()}function js_ajax_cart_free_shipping_percentage(){var e=parseFloat(js_cart_total).toFixed(2);var i=parseFloat(js_freeshipping_value).toFixed(2);var s;var a;var t=jQuery(".shipp_free");if(i>0){s=Math.min(e/i,1)*100}else{s=0}a='<div class="shipp_free_percentage_wrap">';a+='<div class="progress_bar"><div class="progress_current" style="width:'+s+'%"><div class="actual_value">'+js_price_parse_to_local(e)+" "+js_freeshipping_currency["symbol"]+'</div></div><div class="freeshipping_value">'+js_price_parse_to_local(i)+" "+js_freeshipping_currency["symbol"]+"</div></div>";a+="</div>";t.append(a)}function js_price_parse_to_local(e){var i=shop_currency_info[shop_vendor_currency_code];var s=e.toString();s=s.split(".");s[0]=s[0].replace(/\B(?=(\d{3})+(?!\d))/g,i["1000_SYMBOL"]);s=s.join(i["DEC_SYMBOL"]);return s}function js_description_height(){var e=jQuery("#middle_content").find(".flypage-desc");var i;if(e.length){i=e.find(".desc_content").innerHeight();if(i<parseInt(e.css("max-height"))){e.addClass("always_open");return}e.find(".read-more").on("click",function(){if(e.hasClass("open")){e.removeClass("open");e.removeAttr("style")}else{e.css("max-height",i+"px");e.addClass("open")}})}}function js_list_banner(e){var i=jQuery(e);if(!i.length){return false}i.each(function(){var e=jQuery(this).find("tr");e.on("click",function(){var e=jQuery(this),i=jQuery(this).find("td:last-child");if(e.hasClass("open")){e.removeClass("open");i.slideUp()}else{e.addClass("open");i.slideDown()}})})}function js_ajax_after_products_load_init(e){jQuery(".cstm_snapshot_module.mp_id"+e).find(".product-status_special_snapshot-image.cstm_snapshot").each(function(){jQuery(this).closest(".featured-prod").prepend(jQuery(this))});if(jQuery(".itemid_1, .shop_page_class_shop_cart").length){var i=jQuery("#middle, #pre_footer").find(".mp_id"+e+" .table_featured_prod");if(i.hasClass("slick-initialized")){return false}i.slick({slide:".featured-prod",autoplay:false,autoplaySpeed:4e3,slidesToShow:4,slidesToScroll:1,infinite:true,variableWidth:false,swipeToSlide:true,prevArrow:'<div class="previous_featured_arrow"></div>',nextArrow:'<div class="next_featured_arrow"></div>',responsive:[{breakpoint:801,settings:{slidesToShow:3}},{breakpoint:521,settings:{slidesToShow:2}}]})}}function js_slick_related_init(){if(jQuery(".flypage1").length){var e=jQuery(".related_products3_div");if(e.hasClass("slick-initialized")){return false}e.slick({slide:".related_product3",autoplay:false,autoplaySpeed:4e3,slidesToShow:4,slidesToScroll:1,infinite:true,variableWidth:false,swipeToSlide:true,prevArrow:'<div class="previous_featured_arrow"></div>',nextArrow:'<div class="next_featured_arrow"></div>',responsive:[{breakpoint:801,settings:{slidesToShow:3}},{breakpoint:521,settings:{slidesToShow:2}}]})}}function js_slick_last_viewed(e){var i=jQuery(e);if(i.hasClass("slick-initialized")||i.find(".module-latest-viewed-item").length<4){return}i.find(".module-navst-wrapper").slick({slide:".module-latest-viewed-item",autoplay:false,autoplaySpeed:4e3,slidesToShow:4,slidesToScroll:1,infinite:true,variableWidth:false,swipeToSlide:true,prevArrow:'<div class="previous_featured_arrow"></div>',nextArrow:'<div class="next_featured_arrow"></div>',responsive:[{breakpoint:801,settings:{slidesToShow:3}},{breakpoint:521,settings:{slidesToShow:2}}]})}function js_slick_activeimages(){if(jQuery("#product_activeimages").length&&!(jQuery("#product_activeimages").css("display")=="none")){var e=jQuery("#product_activeimages");if(e.hasClass("slick-initialized")){return false}e.slick({slide:".product_activeimages_image_div",autoplay:false,autoplaySpeed:4e3,slidesToShow:4,slidesToScroll:1,infinite:true,variableWidth:false,swipeToSlide:true,prevArrow:'<div class="previous_featured_arrow"></div>',nextArrow:'<div class="next_featured_arrow"></div>',responsive:[{breakpoint:801,settings:{slidesToShow:6}},{breakpoint:561,settings:{slidesToShow:5}},{breakpoint:481,settings:{slidesToShow:4}}]})}jQuery(".flypage-active").on("DOMNodeInserted",function(e){if(jQuery(e.target).hasClass("product_activeimages_attr")&&!jQuery(e.target).hasClass("slick-slider")){var i=jQuery(e.target);if(i.hasClass("slick-initialized")){return false}i.slick({slide:".product_activeimages_image_div",autoplay:false,autoplaySpeed:4e3,slidesToShow:4,slidesToScroll:1,infinite:true,variableWidth:false,swipeToSlide:true,prevArrow:'<div class="previous_featured_arrow"></div>',nextArrow:'<div class="next_featured_arrow"></div>',responsive:[{breakpoint:801,settings:{slidesToShow:6}},{breakpoint:561,settings:{slidesToShow:5}},{breakpoint:481,settings:{slidesToShow:4}}]})}})}function js_module_cat(){if(deviceWidth<1025){return false}jQuery(".switch_sublevel").each(function(){jQuery(this).on("click",function(){var e=jQuery(this).parent();var i=e.siblings();jQuery(this).closest("li").toggleClass("open");i.closest("li").removeClass("open")})})}function js_slide_categ_text(){var e=jQuery("body.shop_page_class_shop_browse .module_middle_category_name"),i=e.find(".module_bot"),s='<span class="txt_more">'+cms_js_lang_display+" "+cms_js_lang_more+"</span>",a='<span class="txt_less">'+cms_js_lang_display+" "+cms_js_lang_less+"</span>",t=50;if(!e.length){return}e.removeClass("slidable_content");if(e.find(".category_name_desc").outerHeight()>t){e.find(".category_name_desc").attr("style","--content_height: "+(e.find(".category_name_desc").outerHeight()+50)+"px;");e.addClass("slidable_content")}if(!i.find("span").length){i.append(s+a)}}var set_actual_variant_main_image="1";function js_prod_detail_attr_active_images_init(){if(typeof js_product_id=="undefined")return;if(!jQuery("#product_activeimages").length){jQuery(".flypage-active").append('<div id="product_activeimages" class="main_ai"/>')}jQuery("select.main_attr_select").bind("change",function(){var e=jQuery(this).val();var t=jQuery(this).find("option:selected").attr("id");if(is_cs_user("jaro")){var r=jQuery(".flypage-image");r.find("a").removeClass(function(e,i){return(i.match(/(^|\s)imagelightbox\S+/g)||[]).join(" ")});var o=parseInt(t.replace("attr_id_",""))+1}if(e==""){jQuery(".product_activeimages_attr").hide();jQuery("#product_activeimages").fadeIn(300);if(is_cs_user("jaro")){r.find("a").addClass("imagelightbox0")}}else{jQuery(".product_activeimages_attr").hide();if(jQuery(".product_activeimages_attr."+t).length){jQuery("#product_activeimages").hide();jQuery(".product_activeimages_attr."+t).fadeIn(300);if(is_cs_user("jaro")){r.find("a").addClass("imagelightbox"+o)}}else{var i={option:"com_shop",page:"shop.product_details",no_html:"1",no_vm_html:"1",no_menu:"1",no_css:"1",ajax_call:2,ajax_func:"get_attr_active_images",product_id:js_product_id,variant:e};jQuery("#product_activeimages").show().startAjaxLoader();jQuery.get("/index2.php",i,function(e){jQuery("#product_activeimages").stopAjaxLoader().hide();var e=JSON.parse(decodeURIComponent(e));if(typeof e["html"]!="undefined"&&e["html"]!=""){e["html"]=e["html"].replace(/lightbox_prod_act_imgs/gi,"lightbox_prod_act_imgs_"+t);var i=jQuery("<div>"+e["html"]+"</div>");i.find("#product_activeimages").removeAttr("id").attr("class","product_activeimages_attr "+t);jQuery("#product_activeimages").after(i.html());if(is_cs_user("jaro")){var s=jQuery(".product_activeimages_attr."+t);var a=[];s.each(function(e){e=e+1;var i=".imagelightbox"+o;jQuery(this).find("a").addClass("imagelightbox"+o);r.find("a").addClass("imagelightbox"+o);image=jQuery(this).find(".osvaldas_lightbox"+i);if(image.length!==0){a[o]=image.imageLightbox({animationSpeed:200,preloadNext:true,enableKeyboard:true,quitOnEnd:false,quitOnImgClick:false,quitOnDocClick:false,onLoadStart:false,onLoadEnd:false,onStart:function(){navigationOn(a[o],i);closeButtonOn(a[o])},onEnd:function(){navigationOff()}})}})}jQuery(".product_activeimages_attr."+t).fadeIn(300)}else{jQuery("#product_activeimages").fadeIn(300);if(is_cs_user("jaro")){r.find("a").addClass("imagelightbox0")}}if(jQuery(".product_activeimages_attr."+t).length>1){jQuery(".product_activeimages_attr."+t).not(":first").remove()}})}}});js_add_bind_data(jQuery("select.main_attr_select"),"js_prod_detail_attr_active_images_init","Fcia nacitania aktivnych obrazkov pre variant")}