File: /var/www/lipovac/wp-content/themes/senior/assets/js/wheels-main.min.js
/*! 13-03-2015 by aislin.themes@gmail.com */
jQuery(function(a){!function(){a(".wh-has-embellishment").each(function(){var b=a(this),c=b.attr("class").split(" "),d=[];a.each(c,function(a,b){var c=/^wh-embellishment-type\-(.+)/.exec(b);null!==c&&d.push(c[1])}),a.each(d,function(a,c){-1!==c.search("top")?b.prepend('<div class="wh-embellishment-'+c+'"/>'):-1!==c.search("bottom")&&b.append('<div class="wh-embellishment-'+c+'"/>')})})}(),function(){var b="iconsmind-minus",c="iconsmind-plus";a(".wpb_accordion_header").on("click",function(){var d=a(this);d.find(".ui-icon").addClass(b),d.find(".ui-icon").removeClass(c),d.parent().siblings().find(".wpb_accordion_header .ui-icon").removeClass(b).addClass(c)}),setTimeout(function(){a(".wpb_accordion_header").each(function(){var d=a(this);d.find(".ui-icon").addClass(d.hasClass("ui-state-active")?b:c)})},500)}(),function(){a(".sf-menu ul").superfish(),a(".cbp-row:not(.wpb_layerslider_element)").fitVids(),wheels.data.respmenu&&a("#"+wheels.data.respmenu.id+" ul").first().respmenu(wheels.data.respmenu.options),wheels.data.useScrollToTop&&a.scrollUp({scrollText:wheels.data.scrollToTopText});var b=0;if(wheels.data.isAdminBarShowing&&(b=a("#wpadminbar").height()),a(".wh-sticky-header-enabled").sticky({topSpacing:b,className:"wh-sticky-header",getWidthFrom:"body",responsiveWidth:!0}),wheels.data.useStickyMenu){var c,d,e;a(window).load(function(){c=a(".wh-logo img"),c.length&&(d=c.naturalWidth(),e=c.naturalHeight(),c.height(e))}),a(window).resize(function(){if("undefined"!=typeof c&&c.length){var a=c.parents(".wh-logo").width(),b=e*(a/d);b>0&&e>=b&&c.height(b)}})}a('header a[href^="#"]').on("click",function(b){var c,d=a(this),e=a(".wh-main-menu-bar-wrapper"),f=e.height(),g=a(d.attr("href"));g.length&&(b.preventDefault(),c=a(".wh-sticky-header").length?g.offset().top-f:g.offset().top-wheels.data.initialWaypointScrollCompensation||120,a("body, html").animate({scrollTop:c},1e3))})}()});