jQuery(document).ready(function($){$("body.isMobile ul.products li:not(.category)").on("styleswitch elastiautoslide",function(){var $this_item=$(this),to;$this_item.on({mouseenter:function(){if($this_item.hasClass("grid")){$this_item.height($this_item.height()-1);$this_item.find(".product-actions-wrapper").height($this_item.find(".product-actions").height()+20);if($("html").attr("id")=="ie8"||$("html").attr("id")=="ie9")$this_item.addClass("js_hover");clearTimeout(to)}},mouseleave:function(){if($this_item.hasClass("grid")){if($("html").attr("id")== "ie8"||$("html").attr("id")=="ie9")$this_item.removeClass("js_hover");$this_item.find(".product-actions-wrapper").height(0);to=setTimeout(function(){$this_item.css("height","auto")},700)}}})}).trigger("styleswitch");$(".list-or-grid a").on("click",function(){var actual_view=$(this).attr("class").replace("-view","");if(YIT_Browser.isIE8())actual_view=actual_view.replace(" last-child","");$("ul.products li").removeClass("list grid").addClass(actual_view);$(this).parent().find("a").removeClass("active"); $(this).addClass("active");$.cookie(yit_shop_view_cookie,actual_view);$("ul.products li").trigger("styleswitch");return false});var product;$("ul.products li.product .add_to_cart_button").on("click",function(){product=$(this).parents("li.product");product.find(".product-thumbnail").block({message:null,overlayCSS:{background:"#fff url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:0.3,cursor:"none"}});$(".widget.woocommerce.widget_shopping_cart a.cart_control").show(); $(".widget.woocommerce.widget_shopping_cart a.cart_control.cart_control_empty").remove()});$("body").on("added_to_cart",function(){if(product.find(".thumbnail-wrapper .added").length==0){product.find(".thumbnail-wrapper").append('added');product.find(".added").fadeIn(500)}product.find(".product-thumbnail").unblock()});if($.fn.selectbox!==undefined){var form=$("form.variations_form");var select=form.find("select");form.find("select").selectbox({effect:"fade",onOpen:function(){}}); var update_select=function(event){form.find("select").selectbox("detach");form.find("select").selectbox("attach")};form.on("woocommerce_update_variation_values",update_select);form.find(".reset_variations").on("click",update_select)}var wishlist_clicked;$(document).on("click",".yith-wcwl-add-button a",function(){wishlist_clicked=$(this);wishlist_clicked.block({message:null,overlayCSS:{background:"#fff url("+woocommerce_params.plugin_url+"/assets/images/ajax-loader.gif) no-repeat center",opacity:0.6, cursor:"none"}})});var apply_tiptip=function(){if($(this).parent().find(".feedback").length!=0)$(this).tipTip({defaultPosition:"top",maxWidth:"auto",edgeOffset:20,content:$(this).parent().find(".feedback").text()})};$(".yith-wcwl-add-to-wishlist a").each(apply_tiptip).on("mouseenter",apply_tiptip);if($.fn.carouFredSel){$(".products-slider-wrapper").each(function(){$(this).imagesLoaded(function(){var t=$(this);var items=$(this).find(".products-slider").data("items");if($(this).parents(".border-box").length== 0){var carouFredSel;var prev=$(this).find(".es-nav-prev").show();var next=$(this).find(".es-nav-next").show();carouFredSelOptions_defaults.prev=prev;carouFredSelOptions_defaults.next=next;if($("body").outerWidth()<=767){t.find("li").each(function(){$(this).width(t.width())});carouFredSelOptions_defaults.items=1}else{t.find("li").each(function(){$(this).attr("style","")});carouFredSelOptions_defaults.items=items}carouFredSel=$(this).find(".products").carouFredSel(carouFredSelOptions_defaults);if($("body").hasClass("responsive"))$(window).resize(function(){carouFredSel.trigger("destroy", false).attr("style","");if($("body").outerWidth()<=767){t.find("li").each(function(){$(this).width(t.width())});carouFredSelOptions_defaults.items=1}else{t.find("li").each(function(){$(this).attr("style","")});carouFredSelOptions_defaults.items=items}carouFredSel.carouFredSel(carouFredSelOptions_defaults);$(".es-nav-prev, .es-nav-next").removeClass("hidden").show()});$(document).on("feature_tab_opened",function(){$(window).trigger("resize")})}})});$(".es-nav-prev, .es-nav-next").removeClass("hidden").show()}$(".responsive ul.products li.product.grid.force-classic-on-mobile").on("force_classic", function(){if($(window).width()<768)$(this).addClass("classic").removeClass("with-hover");else $(this).addClass("with-hover").removeClass("classic")}).trigger("force_classic");$(window).resize(function(){$(".responsive ul.products li.product.grid.force-classic-on-mobile").trigger("force_classic")});$("#sidebar-shop-sidebar .widget h3").prepend('
');$("#sidebar-shop-sidebar .widget").on("click","h3",function(){$(this).parent().find("> *:not(h3)").slideToggle();if($(this).find("div").hasClass("minus"))$(this).find("div").removeClass("minus").addClass("plus"); else $(this).find("div").removeClass("plus").addClass("minus")});$(document).on("click",".yit_share",function(e){e.preventDefault();var share=$(this).parents(".product-actions-wrapper, .product-box").siblings(".product-share");var template=''+'