jQuery(function(f){f.fn.mnShowFrame=function(){var i=f(this);return i.css({right:f(document).width()}).show().animate({right:0},"fast",function(){f(window).trigger("resize")}),i},f.fn.mnHideFrame=function(){f(this).add(".mobile-nav-frame").css({right:0}).animate({right:f(document).width()},"fast",function(){f(this).hide(),f(window).trigger("resize")}),f("body").animate({"padding-left":0},"fast")};var t=[];f(".so-mobilenav-standard").each(function(){var i=f(this).data("id");if(void 0!==t[i])return!0;t[i]=!0;var c,e=f(this).next();f("#so-mobilenav-mobile-"+i).next();f(document).on("click",'a.mobilenav-main-link[data-id="'+i+'"]',function(i){if(i.preventDefault(),null==c){(c=f('

'+mobileNav.text.navigate+'

').appendTo("body")).find(".title").prepend(''+mobileNav.mobileMenuClose+""),mobileNav.search&&f("").insertAfter(c.find(".title")),c.find(".close").on("click",function(i){i.preventDefault(),c.mnHideFrame()}),f(window).on("resize",function(){c.is(":visible")&&(c.hide(),c.width(f(window).width()),c.show())}),f("body").on("orientationchange",function(){f(window).trigger("resize")}),activeSlide=null,showSlide=function(i){c.find(".slides-container .slide").hide(),activeSlide=c.find(".slides-container .slide").eq(i).show(),0==i?c.find("a.back").hide():c.find("a.back").show(),0!=i?c.find(".title h3").html(activeSlide.data("title")):c.find(".title h3").html(mobileNav.text.navigate)},c.find("a.back").on("click",function(){var i=activeSlide.data("parent-slide");return null!=i&&showSlide(i),!1});var o=function(i){var d,s=f('
').appendTo(c.find(".slides-container"));return i.find("> li").each(function(){var i=f(this),e=i.find("> a").html();if(e){d=i.find("> a");var t=f("").html(d.html()).attr("href",d.attr("href")).addClass("link");d.attr("target")&&t.attr({target:d.attr("target"),rel:d.attr("rel")})}else t=i.html();var a=f("
  • ").append(t).addClass(i.attr("class"));if(e&&(a.find("a").not(".next").on("click",function(i){"undefined"===f(this).attr("href")&&c.mnHideFrame()}),0 ul").length)){var n=f('');a.prepend(n);var l=i.find("> ul").eq(0),r=o(l);r.data("parent-slide",s.index()),r.data("title",t.html()),a.find("a.next").on("click",function(){return showSlide(r.index()),!1})}s.find("ul").append(a)}),s};o(e.find("ul").eq(0)),showSlide(0)}return f('.mobile-nav-frame .mobile a[href*="#"].link, .mobile-nav-frame .mobile a:not([href])').on("click",function(){f(this).prev(".next").length?f(this).prev(".next").trigger("click"):c.mnHideFrame()}),f(window).trigger("resize"),c.mnShowFrame(),showSlide(0),!1})})}); ;jQuery(function(e){var t;e("body").on("submit","#commentform",function(){if(e(this).closest(".pp_woocommerce").length)return!0;var r={};return e("#commentform :input").each(function(){r[this.name]=e(this).val()}),r.is_ajax=!0,e('#commentform input[type="submit"]').prop("disabled",!0),e.ajax(e("#commentform").attr("action"),{data:r,success:function(r){if(void 0==r.status)return!1;if("error"===r.status){if(e(".commentform-error").length&&e("
    ").html(r.error).text()==e(".commentform-error").html()){var o=e(".commentform-error");clearTimeout(t)}else{var o=e('
    ');o.html(r.error).insertBefore("#commentform").hide().slideDown()}t=setTimeout(function(){o.slideUp(function(){o.remove()})},2e3)}else"success"===r.status&&(e("#cancel-comment-reply-link").click(),e("#single-comments-wrapper").html(r.html))},type:"POST",dataType:"json"}),!1})}); ;/* * jQuery.bind-first library v0.2.3 * Copyright (c) 2013 Vladimir Zhuravlev * * Released under MIT License * @license * * Date: Thu Feb 6 10:13:59 ICT 2014 **/ (function(t){function e(e){return u?e.data("events"):t._data(e[0]).events}function n(t,n,r){var i=e(t),a=i[n];if(!u){var s=r?a.splice(a.delegateCount-1,1)[0]:a.pop();return a.splice(r?0:a.delegateCount||0,0,s),void 0}r?i.live.unshift(i.live.pop()):a.unshift(a.pop())}function r(e,r,i){var a=r.split(/\s+/);e.each(function(){for(var e=0;a.length>e;++e){var r=a[e].trim().match(/[^\.]+/i)[0];n(t(this),r,i)}})}function i(e){t.fn[e+"First"]=function(){var n=t.makeArray(arguments),i=n.shift();return i&&(t.fn[e].apply(this,arguments),r(this,i)),this}}var a=t.fn.jquery.split("."),s=parseInt(a[0]),f=parseInt(a[1]),u=1>s||1==s&&7>f;i("bind"),i("one"),t.fn.delegateFirst=function(){var e=t.makeArray(arguments),n=e[1];return n&&(e.splice(0,2),t.fn.delegate.apply(this,arguments),r(this,n,!0)),this},t.fn.liveFirst=function(){var e=t.makeArray(arguments);return e.unshift(this.selector),t.fn.delegateFirst.apply(t(document),e),this},u||(t.fn.onFirst=function(e,n){var i=t(this),a="string"==typeof n;if(t.fn.on.apply(i,arguments),"object"==typeof e)for(type in e)e.hasOwnProperty(type)&&r(i,type,a);else"string"==typeof e&&r(i,e,a);return i})})(jQuery);