


/* Price Tables */

jQuery(document).ready(function(a){function b(b){b.each(function(){var b=a(this),c=parseInt(b.children(".cd-pricing-features").width()),d=parseInt(b.width());b.scrollLeft()>=c-d-1?b.parent("li").addClass("is-ended"):b.parent("li").removeClass("is-ended")})}function c(b){b.each(function(){var b=a(this),c=b.children(".cd-pricing-switcher"),f=c.find('input[type="radio"]'),g=b.find(".cd-pricing-wrapper"),h={};f.each(function(){var b=a(this).val();h[b]=g.find('li[data-type="'+b+'"]')}),f.on("change",function(c){c.preventDefault();var f=a(c.target).val();d(h[f]),Modernizr.cssanimations?g.addClass("is-switched").eq(0).one("webkitAnimationEnd oanimationend msAnimationEnd animationend",function(){e(h,f),g.removeClass("is-switched"),b.find(".cd-pricing-list").hasClass("cd-bounce-invert")&&g.toggleClass("reverse-animation")}):(e(h,f),g.removeClass("is-switched"))})})}function d(a){a.addClass("is-selected")}function e(b,c){a.each(b,function(b,d){b!=c?a(this).removeClass("is-visible is-selected").addClass("is-hidden"):a(this).addClass("is-visible").removeClass("is-hidden is-selected")})}b(a(".cd-pricing-body")),a(window).on("resize",function(){window.requestAnimationFrame(function(){b(a(".cd-pricing-body"))})}),a(".cd-pricing-body").on("scroll",function(){var c=a(this);window.requestAnimationFrame(function(){b(c)})}),c(a(".cd-pricing-container"))});
