!function(a){"use strict";window.jnews.ajax_cart_detail=window.jnews.ajax_cart_detail||{},window.jnews.cart=window.jnews.cart||{},window.jnews.ajax_cart_detail={init:function(){var n=this;a(document).bind("added_to_cart removed_from_cart wc_fragments_refreshed",(function(){n.ajaxCart()}))},ajaxCart:function(){a.ajax({url:jnews_ajax_url,type:"post",dataType:"json",data:{action:"jnews_ajax_cart_detail"},success:function(n){a(".cartlink").html(n)}})}},window.jnews.cart={init:function(n){void 0===n&&(n=a("body")),n.find(".jeg_cart").each((function(){a(this).hover((function(){a(this).addClass("open")}),(function(){a(this).removeClass("open")}))}))}},a(document).on("ready",(function(){jnews.cart.init(),jnews.ajax_cart_detail.init()}))}(jQuery);