$((jQuery, void jQuery(window).load(function () {
    var a = jQuery('.owl-carousel'), e = a.attr('data-timeout'), t = a.attr('data-navi-type'), o = a.attr('data-autoplay'), l = !1, d = !0;
    'dots' === t && (d = !(l = !0)), a.owlCarousel({
        items: 1,
        margin: 0,
        loop: !0,
        autoHeight: !0,
        autoplay: 'false' != o,
        autoplayTimeout: e,
        autoplayHoverPause: !0,
        autoplaySpeed: 1000,
        nav: d,
        dots: l,
        navSpeed: 1000,
        dragEndSpeed: 1000,
        dotsSpeed: 1000,
        navText: ['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>']
    });
})));
$((jQuery, void jQuery(window).load(function () {
    strstr(window.location.href, 'vc_editable=true') || jQuery('body').find('.clients_carousel').each(function () {
        var a = jQuery(this), t = a.attr('data-timeout'), e = a.attr('data-visible-items'), i = a.attr('data-autoplay'), o = a.attr('data-navigation'), r = a.attr('show-nav'), s = a.attr('data-0'), d = a.attr('data-480'), n = a.attr('data-768'), l = a.attr('data-992'), u = (u = a.attr('data-speed')) || 400, p = r && 'no' !== r ? (r = !0, ['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>']) : (r = !1, ''), i = 'true' === i, o = 'yes' === o, y = 'no' === (y = a.attr('data-items-margin')) ? 0 : 30;
        a.owlCarousel({
            items: parseInt(e),
            margin: y,
            loop: !0,
            nav: r,
            lazyLoad: !0,
            navText: p,
            autoplay: i,
            autoplayTimeout: t,
            autoplayHoverPause: !0,
            autoplaySpeed: 1000,
            dragEndSpeed: u,
            dotsSpeed: u,
            dots: o,
            navRewind: !0,
            responsive: {
                0: { items: Number(s) },
                480: { items: parseInt(d) },
                768: { items: parseInt(n) },
                992: { items: parseInt(l) },
                1200: { items: parseInt(e) }
            }
        });
    }), jQuery('body').find('.cr_owl_slideshow').each(function () {
        var a = jQuery(this), t = a.attr('data-timeout'), e = (a.attr('data-visible-items'), a.attr('data-autoplay'), a.attr('data-autoplay')), i = (a.attr('data-items-margin'), a.attr('data-autoplay-en')), e = e || 400;
        dotsNavigation = !1, a.owlCarousel({
            items: 1,
            margin: 0,
            loop: !0,
            nav: !0,
            autoHeight: !0,
            navText: ['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'],
            autoplay: i = 0 == t ? !1 : i,
            autoplayTimeout: t,
            autoplayHoverPause: !0,
            autoplaySpeed: e,
            navSpeed: e,
            dragEndSpeed: e,
            dots: !1,
            lazyLoad: !0,
            checkVisible: !0
        });
    });
})));
var stickyContent;
$('.magnific_video').magnificPopup({
    type: 'iframe',
    fixedContentPos: !1,
    mainClass: 'mfp-zoom-in',
    removalDelay: 400
}), 830 < window.innerWidth ? $.stellar({
    horizontalScrolling: !1,
    verticalOffset: 0,
    responsive: !0
}) : jQuery('.parallax_class').addClass('mobile-parallax'), 0 < jQuery('.cr-countdown').length && jQuery('.cr-countdown').each(function () {
    var t = jQuery(this), e = t.attr('data-date'), a = t.attr('data-offset');
    t.downCount({
        date: e,
        offset: a
    });
}), jQuery('body').hasClass('single-creativo_portfolio') && 'yes' == (stickyContent = jQuery('.portfolio-content-inner-wrap').attr('sticky-content')) && jQuery('.portfolio-content-inner-wrap').stick_in_parent({ offset_top: 150 }), jQuery('.gym_class_wrap').each(function () {
    var t = jQuery(this).attr('data-show-description');
    strstr(window.location.href, 'vc_editable=true') || 'yes' == t ? jQuery('.gym_class_wrap').addClass('always_visible') : jQuery(this).hover(function () {
        jQuery(this).find('.gym_class_description').slideDown(250);
    }, function () {
        jQuery(this).find('.gym_class_description').slideUp(250);
    });
});
function runCounter(n, t) {
    1 == t ? n.find('span').countTo({
        formatter: function (n, t) {
            return n = (n = n.toFixed(t.decimals)).replace(/\B(?=(\d{3})+(?!\d))/g, ',');
        }
    }) : n.find('span').countTo();
}
var $counterElement;
strstr(window.location.href, 'vc_editable=true') || 0 < ($counterElement = jQuery('.counter')).length && $counterElement.each(function () {
    var n = $(this), t = !(!(t = $(this).find('span').attr('data-comma')) || 'false' === t);
    n.appear(function () {
        runCounter(n, t);
    }, {
        accX: 0,
        accY: -120
    }, 'easeInCubic');
});
jQuery(window).load(function () {
    jQuery('.flexslider').each(function () {
        var e = jQuery(this), i = jQuery(this).find('ul.slides li').length, a = 1000 * parseInt(e.attr('data-interval')), t = e.attr('data-flex_fx'), l = (e.attr('data-smooth-height'), 0 != a && a ? !0 : !1);
        slidesNavi = 1 < i, e.flexslider({
            animation: t,
            slideshow: l,
            slideshowSpeed: a,
            sliderSpeed: 800,
            smoothHeight: !1,
            directionNav: slidesNavi,
            prevText: '<i class="fa fa-angle-left"></i>',
            nextText: '<i class="fa fa-angle-right"></i>',
            controlNav: !1
        });
    });
});
jQuery.fn.fl_boxes_height = function () {
    var i, n, t = jQuery(this), e = 0;
    t.find('.front').css('min-height', ''), t.find('.back').css('min-height', ''), t.find('.front_inner').css('margin-top', ''), t.find('.back_inner').css('margin-top', ''), t.css('min-height', ''), setTimeout(function () {
        (t.find('.front').outerHeight() > t.find('.back').outerHeight() ? (n = t.find('.front').height(), i = t.find('.front').outerHeight(), e = (n - t.find('.back_inner').outerHeight()) / 2, t.find('.back').css('min-height', i), t.css('min-height', i), t.find('.back_inner')) : (n = t.find('.back').height(), i = t.find('.back').outerHeight(), e = (n - t.find('.front_inner').outerHeight()) / 2, t.find('.front').css('min-height', i), t.css('min-height', i), t.find('.front_inner'))).css('margin-top', e);
    }, 100);
}, jQuery('.flip-container').each(function () {
    jQuery(this).fl_boxes_height();
}), $('.flip-container').each(function () {
    window.innerWidth < 1025 && 670 < window.innerWidth && $(this).bind('touchstart', function (i) {
        '' != ($find_back_link = $(this).find('.flip_box_link').attr('href')) && null != $find_back_link || i.preventDefault(), $(this).removeClass('remove_effect'), $(this).toggleClass('hover_effect'), $(this).bind('touchstart', function (i) {
            '' != $find_back_link && null != $find_back_link || (i.preventDefault(), $(this).toggleClass('remove_effect'));
        });
    });
});
strstr(window.location.href, 'vc_editable=true') || $('.googlemaps').each(function () {
    var l, a, r, e = $(this).attr('map-style'), i = $(this).attr('data-id'), o = $(this).attr('address'), y = $(this).attr('data-map'), p = $(this).attr('data-zoom'), n = $(this).attr('data-title'), f = 'true' === $(this).attr('data-popup'), m = 'true' === $(this).attr('data-scrollwheel'), T = 'true' === $(this).attr('data-pan'), u = 'true' === $(this).attr('data-zoom_control'), c = 'true' === $(this).attr('data-type_control'), d = 'true' === $(this).attr('data-streetview'), g = $(this).attr('pop-size'), h = $(this).attr('data-message'), b = $(this).attr('data-phone'), v = $(this).attr('data-email');
    if ('default' != e && 'custom' != e)
        switch (e) {
        case '1':
            r = [{featureType:"landscape",stylers:[{hue:"#FFBB00"},{saturation:43.400000000000006},{lightness:37.599999999999994},{gamma:1}]},{featureType:"road.highway",stylers:[{hue:"#FFC200"},{saturation:-61.8},{lightness:45.599999999999994},{gamma:1}]},{featureType:"road.arterial",stylers:[{hue:"#FF0300"},{saturation:-100},{lightness:51.19999999999999},{gamma:1}]},{featureType:"road.local",stylers:[{hue:"#FF0300"},{saturation:-100},{lightness:52},{gamma:1}]},{featureType:"water",stylers:[{hue:"#0078FF"},{saturation:-13.200000000000003},{lightness:2.4000000000000057},{gamma:1}]},{featureType:"poi",stylers:[{hue:"#00FF6A"},{saturation:-1.0989010989011234},{lightness:11.200000000000017},{gamma:1}]}];
            break;
        case '2':
            r = [{featureType:"administrative",elementType:"all",stylers:[{visibility:"on"},{lightness:33}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#f2e5d4"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#c5dac6"}]},{featureType:"poi.park",elementType:"labels",stylers:[{visibility:"on"},{lightness:20}]},{featureType:"road",elementType:"all",stylers:[{lightness:20}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#c5c6c6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#e4d7c6"}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#fbfaf7"}]},{featureType:"water",elementType:"all",stylers:[{visibility:"on"},{color:"#acbcc9"}]}];
            break;
        case '3':
            r = [{featureType:"landscape.man_made",elementType:"geometry",stylers:[{color:"#f7f1df"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#d0e3b4"}]},{featureType:"landscape.natural.terrain",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi.business",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.medical",elementType:"geometry",stylers:[{color:"#fbd3da"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#bde6ab"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffe15f"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#efd151"}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"road.local",elementType:"geometry.fill",stylers:[{color:"black"}]},{featureType:"transit.station.airport",elementType:"geometry.fill",stylers:[{color:"#cfb2db"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#a2daf2"}]}];
            break;
        case '4':
            r = [{featureType:"landscape.natural",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#e0efef"}]},{featureType:"poi",elementType:"geometry.fill",stylers:[{visibility:"on"},{hue:"#1900ff"},{color:"#c0e8e8"}]},{featureType:"road",elementType:"geometry",stylers:[{lightness:100},{visibility:"simplified"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{visibility:"on"},{lightness:700}]},{featureType:"water",elementType:"all",stylers:[{color:"#7dcdcd"}]}];
            break;
        case '5':
            r = [{featureType:"administrative",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"landscape",elementType:"all",stylers:[{visibility:"simplified"},{hue:"#0066ff"},{saturation:74},{lightness:100}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road.highway",elementType:"all",stylers:[{visibility:"off"},{weight:.6},{saturation:-85},{lightness:61}]},{featureType:"road.highway",elementType:"geometry",stylers:[{visibility:"on"}]},{featureType:"road.arterial",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"all",stylers:[{visibility:"on"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"water",elementType:"all",stylers:[{visibility:"simplified"},{color:"#5f94ff"},{lightness:26},{gamma:5.86}]}];
            break;
        case '6':
            r = [{featureType:"administrative.locality",elementType:"all",stylers:[{hue:"#2c2e33"},{saturation:7},{lightness:19},{visibility:"on"}]},{featureType:"landscape",elementType:"all",stylers:[{hue:"#ffffff"},{saturation:-100},{lightness:100},{visibility:"simplified"}]},{featureType:"poi",elementType:"all",stylers:[{hue:"#ffffff"},{saturation:-100},{lightness:100},{visibility:"off"}]},{featureType:"road",elementType:"geometry",stylers:[{hue:"#bbc0c4"},{saturation:-93},{lightness:31},{visibility:"simplified"}]},{featureType:"road",elementType:"labels",stylers:[{hue:"#bbc0c4"},{saturation:-93},{lightness:31},{visibility:"on"}]},{featureType:"road.arterial",elementType:"labels",stylers:[{hue:"#bbc0c4"},{saturation:-93},{lightness:-2},{visibility:"simplified"}]},{featureType:"road.local",elementType:"geometry",stylers:[{hue:"#e9ebed"},{saturation:-90},{lightness:-8},{visibility:"simplified"}]},{featureType:"transit",elementType:"all",stylers:[{hue:"#e9ebed"},{saturation:10},{lightness:69},{visibility:"on"}]},{featureType:"water",elementType:"all",stylers:[{hue:"#e9ebed"},{saturation:-78},{lightness:67},{visibility:"simplified"}]}];
            break;
        case '7':
            r = [{featureType:"water",elementType:"geometry",stylers:[{color:"#193341"}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#2c5a71"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#29768a"},{lightness:-37}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#406d80"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#406d80"}]},{elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#3e606f"},{weight:2},{gamma:.84}]},{elementType:"labels.text.fill",stylers:[{color:"#ffffff"}]},{featureType:"administrative",elementType:"geometry",stylers:[{weight:.6},{color:"#1a3541"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#2c5a71"}]}];
            break;
        case '8':
            r = [{featureType:"water",stylers:[{saturation:43},{lightness:-11},{hue:"#0088ff"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{hue:"#ff0000"},{saturation:-100},{lightness:99}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#808080"},{lightness:54}]},{featureType:"landscape.man_made",elementType:"geometry.fill",stylers:[{color:"#ece2d9"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#ccdca1"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#767676"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#ffffff"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"landscape.natural",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#b8cb93"}]},{featureType:"poi.park",stylers:[{visibility:"on"}]},{featureType:"poi.sports_complex",stylers:[{visibility:"on"}]},{featureType:"poi.medical",stylers:[{visibility:"on"}]},{featureType:"poi.business",stylers:[{visibility:"simplified"}]}];
        }
    'custom' == e && (r = $('.custom_map_style').html(), r = jQuery.parseJSON(r)), g = g && 'style="width:' + g + ';"', n = n && '<h3>' + n + '</h3>', h = (h = h && '<p>' + h + '</p>') && '<p>' + h + '</p>', b = b && '<p class="nobottommargin"><icon class="fa fa-phone"></icon>&nbsp;&nbsp;' + b + '</p>', v = v && '<p><icon class="fa fa-envelope"></icon>&nbsp;&nbsp;' + v + '</p>', google.maps.event.addDomListener(window, 'load', function () {
        var e = {
                zoom: parseInt(p),
                mapTypeId: google.maps.MapTypeId[y],
                scrollwheel: m,
                panControl: T,
                zoomControl: u,
                mapTypeControl: c,
                overviewMapControl: !1,
                streetViewControl: d,
                styles: r
            }, t = (l = new google.maps.Geocoder(), '<div ' + g + '>' + n + h + '<p class="nobottommargin"><icon class="fa fa-home"></icon>&nbsp;&nbsp;' + o + '</p>' + b + v + '</div>'), s = new google.maps.InfoWindow({
                content: t,
                maxWidth: 450
            });
        l.geocode({ address: o }, function (e, t) {
            var l;
            t == google.maps.GeocoderStatus.OK ? (a.setCenter(e[0].geometry.location), l = new google.maps.Marker({
                map: a,
                position: e[0].geometry.location
            }), google.maps.event.addListener(l, 'click', function () {
                s.open(a, l);
            }), f && google.maps.event.addListenerOnce(a, 'idle', function () {
                setTimeout(function () {
                    google.maps.event.trigger(l, 'click');
                }, 400);
            })) : alert('Geocode was not successful for the following reason: ' + t);
        }), a = new google.maps.Map(document.getElementById(i), e);
    });
});
function hotSpotHoverBind() {
    var i = [];
    jQuery('.cr_image_with_hotspots[data-tooltip-display="hover"] .cr_hotspot').each(function (e) {
        i[e] = '', jQuery(this).on('mouseover', function () {
            clearTimeout(i[e]), jQuery(this).parent().css({
                'z-index': '400',
                height: 'auto',
                width: 'auto'
            });
        }), jQuery(this).on('mouseleave', function () {
            var t = jQuery(this);
            t.parent().css({ 'z-index': 'auto' }), i[e] = setTimeout(function () {
                t.parent().css({
                    height: '20px',
                    width: '20px'
                });
            }, 300);
        });
    });
}
function responsiveTooltips() {
    jQuery('.cr_image_with_hotspots').each(function () {
        jQuery(this).find('.cr_hotspot_wrap').each(function (t) {
            var e;
            690 < window.innerWidth && (0 < jQuery(this).parents('.cr_image_with_hotspots[data-tooltip-display="hover"]').length && (jQuery(this).find('.cr_hotspot').removeClass('click'), jQuery(this).find('.nttip').removeClass('open')), jQuery(this).find('.nttip .inner a.tipclose').remove(), jQuery('.nttip').css('height', 'auto'), jQuery(this).css({
                width: 'auto',
                height: 'auto'
            }), jQuery(this).find('.nttip').removeClass('force-right').removeClass('force-left').removeClass('force-top').css('width', 'auto'), (e = jQuery(this).find('.nttip').offset()).left < 0 ? jQuery(this).find('.nttip').addClass('force-right') : e.left + jQuery(this).find('.nttip').outerWidth(!0) > window.innerWidth ? jQuery(this).find('.nttip').addClass('force-left').css('width', '250px') : e.top + jQuery(this).find('.nttip').height() + 35 > jQuery(window).height() && 0 < jQuery('#cr_fullscreen_rows').length && jQuery(this).find('.nttip').addClass('force-top'), 0 == jQuery(this).find('> .open').length && jQuery(this).css({
                width: 'auto',
                height: 'auto'
            }));
        });
    });
}
function imageWithHotspotClickEvents() {
    jQuery('body').on('click', '.cr_hotspot.click', function () {
        var t;
        return jQuery(this).parents('.cr_image_with_hotspots').find('.nttip').removeClass('open'), jQuery(this).parent().find('.nttip').addClass('open'), jQuery(this).parents('.cr_image_with_hotspots').find('.cr_hotspot').removeClass('open'), jQuery(this).parent().find('.cr_hotspot').addClass('open'), 690 < window.innerWidth && (jQuery(this).parent().css({
            'z-index': '120',
            height: 'auto',
            width: 'auto'
        }), t = jQuery(this), setTimeout(function () {
            t.parents('.cr_image_with_hotspots').find('.cr_hotspot_wrap').each(function () {
                0 == jQuery(this).find('> .open').length && jQuery(this).css({
                    height: '20px',
                    width: '20px',
                    'z-index': 'auto'
                });
            });
        }, 300)), window.innerWidth <= 690 && $(this).parents('.wpb_row, [class*="vc_col-"]').css('z-index', '200'), !1;
    }), jQuery('body').on('click', '.cr_hotspot.open', function () {
        return jQuery(this).parent().find('.nttip').removeClass('open'), jQuery(this).parent().find('.cr_hotspot').removeClass('open'), jQuery(this).parents('.wpb_row').css('z-index', 'auto'), !1;
    });
}
jQuery(document).ready(function (i) {
    i('.cr_image_with_hotspots[data-hotspot-icon="number"]').each(function () {
        i(this).find('.cr_hotspot_wrap').each(function (t) {
            var e = i(this);
            setTimeout(function () {
                e.find('.cr_hotspot').addClass('pulse');
            }, 300 * t);
        });
    }), hotSpotHoverBind(), responsiveTooltips(), imageWithHotspotClickEvents();
});
jQuery(window).load(function () {
    var e, o;
    strstr(window.location.href, 'vc_editable=true') || (e = jQuery('.portfolio-wrapper')) && ('yes' !== (o = jQuery('.portfolio-wrapper').attr('masonry-effect')) || null == o ? (console.log('render fitRows'), e.isotope({ layoutMode: 'fitRows' })) : (console.log('render masonry'), e.isotope({
        columnWidth: 'figure',
        masonry: {
            itemSelector: 'figure',
            isInitLayout: !0,
            isResizeBound: !0,
            percentPosition: !0
        }
    })), jQuery('.portfolio-tabs a').click(function () {
        jQuery('.portfolio-tabs li').removeClass('active'), jQuery(this).parent('li').addClass('active');
        var o = jQuery(this).attr('data-filter');
        return e.isotope({ filter: o }), !1;
    }), jQuery(window).resize(function () {
        e.isotope('reLayout');
    }));
});
jQuery('.magnific_popup_gallery').magnificPopup({
    type: 'image',
    callbacks: {
        imageLoadComplete: function () {
            var e = this;
            setTimeout(function () {
                e.wrap.addClass('mfp-image-loaded');
            }, 10);
        },
        beforeOpen: function () {
            this.st.image.markup = this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
        },
        open: function () {
            $.magnificPopup.instance.next = function () {
                var e = this;
                this.wrap.removeClass('mfp-image-loaded'), setTimeout(function () {
                    $.magnificPopup.proto.next.call(e);
                }, 100);
            }, $.magnificPopup.instance.prev = function () {
                var e = this;
                this.wrap.removeClass('mfp-image-loaded'), setTimeout(function () {
                    $.magnificPopup.proto.prev.call(e);
                }, 100);
            };
        }
    },
    fixedContentPos: !1,
    mainClass: 'mfp-zoom-in',
    removalDelay: 400,
    gallery: { enabled: !0 }
}), jQuery('.single_post_featured ul').magnificPopup({
    delegate: 'a.single-post-gallery',
    type: 'image',
    fixedContentPos: !1,
    mainClass: 'mfp-zoom-in',
    gallery: { enabled: !0 }
}), jQuery('.wpb_image_grid_ul').magnificPopup({
    delegate: 'a.prettyphoto',
    type: 'image',
    fixedContentPos: !1,
    mainClass: 'mfp-zoom-in',
    gallery: { enabled: !0 }
}), jQuery('.wpb_gallery_slides ul li').magnificPopup({
    delegate: 'a.prettyphoto',
    type: 'image',
    fixedContentPos: !1,
    mainClass: 'mfp-zoom-in',
    gallery: { enabled: !0 }
}), jQuery('.wpb_gallery_slides .nivoSlider').magnificPopup({
    delegate: 'a.prettyphoto',
    type: 'image',
    fixedContentPos: !1,
    mainClass: 'mfp-zoom-in',
    gallery: { enabled: !0 }
}), jQuery('.cr-instagram-widget .prettyphoto').magnificPopup({
    delegate: 'a.magnific_pop',
    type: 'image',
    fixedContentPos: !1,
    mainClass: 'mfp-zoom-in',
    gallery: { enabled: !0 }
}), jQuery('.fancybox').magnificPopup({
    delegate: 'a.fancy-popup',
    type: 'image',
    fixedContentPos: !1,
    mainClass: 'mfp-zoom-in',
    gallery: { enabled: !1 }
});
jQuery(window).load(function () {
    jQuery('.recent_posts_container, .home.blog, .archive').each(function () {
        jQuery('.grid-masonry').masonry({
            itemSelector: '.posts-grid-item',
            columnWidth: '.posts-grid-item',
            isInitLayout: !0,
            isResizeBound: !0,
            gutter: '.gutter-sizer',
            percentPosition: !0
        });
    }), jQuery('.grid-masonry-page-template').masonry({
        itemSelector: '.posts-grid-item',
        columnWidth: '.posts-grid-item',
        gutter: '.gutter-sizer',
        percentPosition: !0
    });
});
var sticky_sidebar = jQuery('body').attr('sticky-sidebar'), headerHeightArea = jQuery('.full_header').outerHeight() || 0, headerHeightAdmin = jQuery('#wpadminbar').outerHeight() || 0, secondNavi = jQuery('.second_navi').outerHeight() || 0, windowWidth = jQuery(window).width(), headerLayout = jQuery('.header').attr('header-version'), topOffset = 'style2' == headerLayout ? secondNavi + headerHeightAdmin + 48 : headerHeightArea + headerHeightAdmin + 48;
'true' == sticky_sidebar && 1024 < windowWidth && setTimeout(function () {
    jQuery('.sidebar-wrap').stick_in_parent({ offset_top: topOffset });
}, 500), 0 < jQuery('.vertical_sharing').length && 1024 < windowWidth && setTimeout(function () {
    jQuery('.vertical_sharing').stick_in_parent({ offset_top: topOffset });
}, 500);
$('.tabs-wrapper').each(function () {
    $(this).find('.tab_content').hide(), $(this).find('ul.tabs li:first').addClass('active').show(), $(this).find('.tab_content:first').show();
}), $('ul.tabs li').click(function (t) {
    $(this).parents('.tabs-wrapper').find('ul.tabs li').removeClass('active'), $(this).addClass('active'), $(this).parents('.tabs-wrapper').find('.tab_content').hide();
    var a = $(this).find('a').attr('href');
    $(this).parents('.tabs-wrapper').find(a).fadeIn(), t.preventDefault();
}), $('ul.tabs li a').click(function (t) {
    t.preventDefault();
});
jQuery(document).ready(function () {
    jQuery('body').hasClass('page-with-animation') && (jQuery('html').addClass('page-trans-loaded'), jQuery('#page_loading_effect').transition({ opacity: 0 }, 500, function () {
        jQuery(this).css({ display: 'none' });
    }), jQuery('#page_loading_effect .load_symbol').transition({ opacity: 0 }, 500));
});
jQuery('.mobile_shopping_cart').click(function (a) {
    var e = $('.mob_menu .shopping_cart_items');
    a.preventDefault(), e.hasClass('show-products') ? e.slideUp(100).removeClass('show-products').addClass('hide-products') : e.slideDown(100).removeClass('hide-products').addClass('show-products');
}), jQuery('a.add_to_cart_button.product_type_simple').click(function (a) {
    var e = this;
    jQuery(e).parents('.product').find('.cart-loading').find('i').removeClass('fa-check').addClass('fa-refresh'), jQuery(this).parents('.product').find('.cart-loading').fadeIn(), setTimeout(function () {
        jQuery(e).parents('.product').find('.cart-loading').find('i').hide().removeClass('fa-refresh').addClass('fa-check').fadeIn(), setTimeout(function () {
            jQuery(e).parents('.product').find('.cart-loading').fadeOut().parents('.product').find('.product-images img').animate({ opacity: 1 });
        }, 1500);
    }, 1500);
}), jQuery('li.product').mouseenter(function () {
    jQuery(this).find('.cart-loading').find('i').hasClass('fa fa-check') && jQuery(this).find('.cart-loading').fadeIn();
}).mouseleave(function () {
    jQuery(this).find('.cart-loading').find('i').hasClass('fa fa-check') && jQuery(this).find('.cart-loading').fadeOut();
});