(function($, window, document, undefined) { 'use strict'; var NAME = 'parallax'; var MAGIC_NUMBER = 30; var DEFAULTS = { relativeInput: !1, clipRelativeInput: !1, calibrationThreshold: 100, calibrationDelay: 500, supportDelay: 500, calibrateX: !1, calibrateY: !0, invertX: !0, invertY: !0, limitX: !1, limitY: !1, scalarX: 10.0, scalarY: 10.0, frictionX: 0.1, frictionY: 0.1, originX: 0.5, originY: 0.5 }; function Plugin(element, options) { this.element = element; this.$context = $(element).data('api', this); this.$layers = this.$context.find('.layer'); var data = { calibrateX: this.$context.data('calibrate-x') || null, calibrateY: this.$context.data('calibrate-y') || null, invertX: this.$context.data('invert-x') || null, invertY: this.$context.data('invert-y') || null, limitX: parseFloat(this.$context.data('limit-x')) || null, limitY: parseFloat(this.$context.data('limit-y')) || null, scalarX: parseFloat(this.$context.data('scalar-x')) || null, scalarY: parseFloat(this.$context.data('scalar-y')) || null, frictionX: parseFloat(this.$context.data('friction-x')) || null, frictionY: parseFloat(this.$context.data('friction-y')) || null, originX: parseFloat(this.$context.data('origin-x')) || null, originY: parseFloat(this.$context.data('origin-y')) || null }; for (var key in data) { if (data[key] === null) delete data[key] } $.extend(this, DEFAULTS, options, data); this.calibrationTimer = null; this.calibrationFlag = !0; this.enabled = !1; this.depths = []; this.raf = null; this.bounds = null; this.ex = 0; this.ey = 0; this.ew = 0; this.eh = 0; this.ecx = 0; this.ecy = 0; this.erx = 0; this.ery = 0; this.cx = 0; this.cy = 0; this.ix = 0; this.iy = 0; this.mx = 0; this.my = 0; this.vx = 0; this.vy = 0; this.onMouseMove = this.onMouseMove.bind(this); this.onDeviceOrientation = this.onDeviceOrientation.bind(this); this.onOrientationTimer = this.onOrientationTimer.bind(this); this.onCalibrationTimer = this.onCalibrationTimer.bind(this); this.onAnimationFrame = this.onAnimationFrame.bind(this); this.onWindowResize = this.onWindowResize.bind(this); this.initialise() } Plugin.prototype.transformSupport = function(value) { var element = document.createElement('div'); var propertySupport = !1; var propertyValue = null; var featureSupport = !1; var cssProperty = null; var jsProperty = null; for (var i = 0, l = this.vendors.length; i < l; i++) { if (this.vendors[i] !== null) { cssProperty = this.vendors[i][0] + 'transform'; jsProperty = this.vendors[i][1] + 'Transform' } else { cssProperty = 'transform'; jsProperty = 'transform' } if (element.style[jsProperty] !== undefined) { propertySupport = !0; break } } switch (value) { case '2D': featureSupport = propertySupport; break; case '3D': if (propertySupport) { var body = document.body || document.createElement('body'); var documentElement = document.documentElement; var documentOverflow = documentElement.style.overflow; if (!document.body) { documentElement.style.overflow = 'hidden'; documentElement.appendChild(body); body.style.overflow = 'hidden'; body.style.background = '' } body.appendChild(element); element.style[jsProperty] = 'translate3d(1px,1px,1px)'; propertyValue = window.getComputedStyle(element).getPropertyValue(cssProperty); featureSupport = propertyValue !== undefined && propertyValue.length > 0 && propertyValue !== "none"; documentElement.style.overflow = documentOverflow; body.removeChild(element) } break } return featureSupport }; Plugin.prototype.ww = null; Plugin.prototype.wh = null; Plugin.prototype.wcx = null; Plugin.prototype.wcy = null; Plugin.prototype.wrx = null; Plugin.prototype.wry = null; Plugin.prototype.portrait = null; Plugin.prototype.desktop = !navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i); Plugin.prototype.vendors = [null, ['-webkit-', 'webkit'], ['-moz-', 'Moz'], ['-o-', 'O'], ['-ms-', 'ms'] ]; Plugin.prototype.motionSupport = !!window.DeviceMotionEvent; Plugin.prototype.orientationSupport = !!window.DeviceOrientationEvent; Plugin.prototype.orientationStatus = 0; Plugin.prototype.transform2DSupport = Plugin.prototype.transformSupport('2D'); Plugin.prototype.transform3DSupport = Plugin.prototype.transformSupport('3D'); Plugin.prototype.propertyCache = {}; Plugin.prototype.initialise = function() { if (this.$context.css('position') === 'static') { this.$context.css({ position: 'relative' }) } this.accelerate(this.$context); this.updateLayers(); this.updateDimensions(); this.enable(); this.queueCalibration(this.calibrationDelay) }; Plugin.prototype.updateLayers = function() { this.$layers = this.$context.find('.layer'); this.depths = []; this.$layers.css({ position: 'absolute', display: 'block', left: 0, top: 0 }); this.$layers.first().css({ position: 'relative' }); this.accelerate(this.$layers); this.$layers.each($.proxy(function(index, element) { this.depths.push($(element).data('depth') || 0) }, this)) }; Plugin.prototype.updateDimensions = function() { this.ww = window.innerWidth; this.wh = window.innerHeight; this.wcx = this.ww * this.originX; this.wcy = this.wh * this.originY; this.wrx = Math.max(this.wcx, this.ww - this.wcx); this.wry = Math.max(this.wcy, this.wh - this.wcy) }; Plugin.prototype.updateBounds = function() { this.bounds = this.element.getBoundingClientRect(); this.ex = this.bounds.left; this.ey = this.bounds.top; this.ew = this.bounds.width; this.eh = this.bounds.height; this.ecx = this.ew * this.originX; this.ecy = this.eh * this.originY; this.erx = Math.max(this.ecx, this.ew - this.ecx); this.ery = Math.max(this.ecy, this.eh - this.ecy) }; Plugin.prototype.queueCalibration = function(delay) { clearTimeout(this.calibrationTimer); this.calibrationTimer = setTimeout(this.onCalibrationTimer, delay) }; Plugin.prototype.enable = function() { if (!this.enabled) { this.enabled = !0; if (this.orientationSupport) { this.portrait = null; window.addEventListener('deviceorientation', this.onDeviceOrientation); setTimeout(this.onOrientationTimer, this.supportDelay) } else { this.cx = 0; this.cy = 0; this.portrait = !1; window.addEventListener('mousemove', this.onMouseMove) } window.addEventListener('resize', this.onWindowResize); this.raf = requestAnimationFrame(this.onAnimationFrame) } }; Plugin.prototype.disable = function() { if (this.enabled) { this.enabled = !1; if (this.orientationSupport) { window.removeEventListener('deviceorientation', this.onDeviceOrientation) } else { window.removeEventListener('mousemove', this.onMouseMove) } window.removeEventListener('resize', this.onWindowResize); cancelAnimationFrame(this.raf) } }; Plugin.prototype.calibrate = function(x, y) { this.calibrateX = x === undefined ? this.calibrateX : x; this.calibrateY = y === undefined ? this.calibrateY : y }; Plugin.prototype.invert = function(x, y) { this.invertX = x === undefined ? this.invertX : x; this.invertY = y === undefined ? this.invertY : y }; Plugin.prototype.friction = function(x, y) { this.frictionX = x === undefined ? this.frictionX : x; this.frictionY = y === undefined ? this.frictionY : y }; Plugin.prototype.scalar = function(x, y) { this.scalarX = x === undefined ? this.scalarX : x; this.scalarY = y === undefined ? this.scalarY : y }; Plugin.prototype.limit = function(x, y) { this.limitX = x === undefined ? this.limitX : x; this.limitY = y === undefined ? this.limitY : y }; Plugin.prototype.origin = function(x, y) { this.originX = x === undefined ? this.originX : x; this.originY = y === undefined ? this.originY : y }; Plugin.prototype.clamp = function(value, min, max) { value = Math.max(value, min); value = Math.min(value, max); return value }; Plugin.prototype.css = function(element, property, value) { var jsProperty = this.propertyCache[property]; if (!jsProperty) { for (var i = 0, l = this.vendors.length; i < l; i++) { if (this.vendors[i] !== null) { jsProperty = $.camelCase(this.vendors[i][1] + '-' + property) } else { jsProperty = property } if (element.style[jsProperty] !== undefined) { this.propertyCache[property] = jsProperty; break } } } element.style[jsProperty] = value }; Plugin.prototype.accelerate = function($element) { for (var i = 0, l = $element.length; i < l; i++) { var element = $element[i]; this.css(element, 'transform', 'translate3d(0,0,0)'); this.css(element, 'transform-style', 'preserve-3d'); this.css(element, 'backface-visibility', 'hidden') } }; Plugin.prototype.setPosition = function(element, x, y) { x += 'px'; y += 'px'; if (this.transform3DSupport) { this.css(element, 'transform', 'translate3d(' + x + ',' + y + ',0)') } else if (this.transform2DSupport) { this.css(element, 'transform', 'translate(' + x + ',' + y + ')') } else { element.style.left = x; element.style.top = y } }; Plugin.prototype.onOrientationTimer = function(event) { if (this.orientationSupport && this.orientationStatus === 0) { this.disable(); this.orientationSupport = !1; this.enable() } }; Plugin.prototype.onCalibrationTimer = function(event) { this.calibrationFlag = !0 }; Plugin.prototype.onWindowResize = function(event) { this.updateDimensions() }; Plugin.prototype.onAnimationFrame = function() { this.updateBounds(); var dx = this.ix - this.cx; var dy = this.iy - this.cy; if ((Math.abs(dx) > this.calibrationThreshold) || (Math.abs(dy) > this.calibrationThreshold)) { this.queueCalibration(0) } if (this.portrait) { this.mx = this.calibrateX ? dy : this.iy; this.my = this.calibrateY ? dx : this.ix } else { this.mx = this.calibrateX ? dx : this.ix; this.my = this.calibrateY ? dy : this.iy } this.mx *= this.ew * (this.scalarX / 100); this.my *= this.eh * (this.scalarY / 100); if (!isNaN(parseFloat(this.limitX))) { this.mx = this.clamp(this.mx, -this.limitX, this.limitX) } if (!isNaN(parseFloat(this.limitY))) { this.my = this.clamp(this.my, -this.limitY, this.limitY) } this.vx += (this.mx - this.vx) * this.frictionX; this.vy += (this.my - this.vy) * this.frictionY; for (var i = 0, l = this.$layers.length; i < l; i++) { var depth = this.depths[i]; var layer = this.$layers[i]; var xOffset = this.vx * depth * (this.invertX ? -1 : 1); var yOffset = this.vy * depth * (this.invertY ? -1 : 1); this.setPosition(layer, xOffset, yOffset) } this.raf = requestAnimationFrame(this.onAnimationFrame) }; Plugin.prototype.onDeviceOrientation = function(event) { if (!this.desktop && event.beta !== null && event.gamma !== null) { this.orientationStatus = 1; var x = (event.beta || 0) / MAGIC_NUMBER; var y = (event.gamma || 0) / MAGIC_NUMBER; var portrait = window.innerHeight > window.innerWidth; if (this.portrait !== portrait) { this.portrait = portrait; this.calibrationFlag = !0 } if (this.calibrationFlag) { this.calibrationFlag = !1; this.cx = x; this.cy = y } this.ix = x; this.iy = y } }; Plugin.prototype.onMouseMove = function(event) { var clientX = event.clientX; var clientY = event.clientY; if (!this.orientationSupport && this.relativeInput) { if (this.clipRelativeInput) { clientX = Math.max(clientX, this.ex); clientX = Math.min(clientX, this.ex + this.ew); clientY = Math.max(clientY, this.ey); clientY = Math.min(clientY, this.ey + this.eh) } this.ix = (clientX - this.ex - this.ecx) / this.erx; this.iy = (clientY - this.ey - this.ecy) / this.ery } else { this.ix = (clientX - this.wcx) / this.wrx; this.iy = (clientY - this.wcy) / this.wry } }; var API = { enable: Plugin.prototype.enable, disable: Plugin.prototype.disable, updateLayers: Plugin.prototype.updateLayers, calibrate: Plugin.prototype.calibrate, friction: Plugin.prototype.friction, invert: Plugin.prototype.invert, scalar: Plugin.prototype.scalar, limit: Plugin.prototype.limit, origin: Plugin.prototype.origin }; $.fn[NAME] = function(value) { var args = arguments; return this.each(function() { var $this = $(this); var plugin = $this.data(NAME); if (!plugin) { plugin = new Plugin(this, value); $this.data(NAME, plugin) } if (API[value]) { plugin[value].apply(plugin, Array.prototype.slice.call(args, 1)) } }) } })(window.jQuery || window.Zepto, window, document); (function() { var lastTime = 0; var vendors = ['ms', 'moz', 'webkit', 'o']; for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame']; window.cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'] || window[vendors[x] + 'CancelRequestAnimationFrame'] } if (!window.requestAnimationFrame) { window.requestAnimationFrame = function(callback, element) { var currTime = new Date().getTime(); var timeToCall = Math.max(0, 16 - (currTime - lastTime)); var id = window.setTimeout(function() { callback(currTime + timeToCall) }, timeToCall); lastTime = currTime + timeToCall; return id } } if (!window.cancelAnimationFrame) { window.cancelAnimationFrame = function(id) { clearTimeout(id) } } }()); /*!/wp-content/themes/salient/js/init.js*/ (function(e, t, a) { "use strict"; function n() { Ie(), _e(), ba(), kt(), m() } function i() { ve(), Ie(), g(), ct(), ki.usingMobileBrowser || _e() } function s() { e(".flex-gallery").each(function() { if (e().flexslider) { var t = e(this); imagesLoaded(e(this), function() { t.flexslider({ animation: "fade", smoothHeight: !1, animationSpeed: 500, useCSS: !1, touch: !0 }), e(".flex-gallery .flex-direction-nav li a.flex-next").html(''), e(".flex-gallery .flex-direction-nav li a.flex-prev").html('') }) } }) } function r(e, t) { this.lastX = ki.clientX, this.lastY = ki.clientY, this.$el = e, this.iconType = t, this.timeout = !1, this.overEl = !1, this.$dragEl = "", this.$viewEl = "", this.$closeEl = "", this.lerpDamp = .18, this.createMarkup(), this.mouseBind() } function o() { e('.wpb_gallery_slidesflickity_static_height_style .cell[data-lazy="true"]').each(function() { e(this).css({ height: "", width: "" }); var t = parseInt(e(this).find("img").attr("height")), a = parseInt(e(this).find("img").attr("width")), n = A(a, t, 2e3, parseInt(e(this).find("img").height())); e(this).css({ height: n.height + "px", width: n.width + "px" }) }) } function l() { e('.wpb_gallery_slidesflickity_static_height_style .cell[data-lazy="true"]').length > 0 && (o(), En.on("smartresize", o)) } function d() { if (0 == e(".nectar-flickity:not(.masonry)").length) return !1; ai = [], ni = [], e(".nectar-flickity:not(.masonry)").each(function(t) { e(this).removeClass(function(e, t) { return (t.match(/(^|\s)instance-\S+/g) || []).join(" ") }), e(this).addClass("instance-" + t); var a = !(!e(this).is("[data-free-scroll]") || "true" != e(this).attr("data-free-scroll")), n = !0, i = !0, s = .025, o = !1, l = !0, d = "center"; e(this).is('[data-format="fixed_text_content_fullwidth"]') && (d = "left", n = !1, i = !1, s = .02, e(this).parent().is('[data-alignment="right"]') && (d = "right")), 1 == a && (n = !1), e(this).attr("data-controls").length > 0 && "next_prev_arrows" == e(this).attr("data-controls") || e(this).attr("data-controls").length > 0 && "next_prev_arrows_overlaid" == e(this).attr("data-controls") ? (o = !1, l = !0) : (o = !0, l = !1), e(this).attr("data-controls").length > 0 && "none" == e(this).attr("data-controls") && (o = !1, l = !1); var c = !1; e(this).is("[data-autoplay]") && "true" == e(this).attr("data-autoplay") && (c = !0, e(this).is("[data-autoplay-dur]") && e(this).attr("data-autoplay-dur").length > 0 && parseInt(e(this).attr("data-autoplay-dur")) > 100 && parseInt(e(this).attr("data-autoplay-dur")) < 3e4 && (c = parseInt(e(this).attr("data-autoplay-dur")))); var u = e(this), p = !(e("body.vc_editor").length > 0), f = e("body.vc_editor").length > 0, g = "", m = !e(this).is("[data-wrap]") || "no-wrap" != e(this).attr("data-wrap"), v = !1; e(this).is('[data-adaptive-height="true"]') && (v = !0); var b = !!e(this).find("img[data-flickity-lazyload]") && 1; e(this).find("img[data-flickity-lazyload]") && e(this).is('[data-overflow="visible"]') && e(this).is('[data-wrap="no-wrap"]') && (b = 2); var w, y, _ = !!Hn.hasClass("rtl"); if (g = e(this).attr("data-controls").length > 0 && "next_prev_arrows_overlaid" == e(this).attr("data-controls") || e(this).attr("data-controls").length > 0 && "touch_total" == e(this).attr("data-controls") ? { x0: 10, x1: 60, y1: 50, x2: 70, y2: 40, x3: 30 } : { x0: 20, x1: 70, y1: 30, x2: 70, y2: 25, x3: 70 }, ai[t] = new Flickity(".nectar-flickity.instance-" + t, { contain: i, draggable: p, lazyLoad: b, imagesLoaded: !0, percentPosition: !0, adaptiveHeight: v, cellAlign: d, groupCells: n, prevNextButtons: l, freeScroll: a, pageDots: o, resize: !0, selectedAttraction: s, autoPlay: c, rightToLeft: _, pauseAutoPlayOnHover: f, setGallerySize: !0, wrapAround: m, accessibility: !1, arrowShape: g }), e(this).is('[data-controls="touch_total"]')) { 0 == e(this).find(".visualized-total").length && (e(this).parents(".full-width-content").length > 0 && e(this).parents(".vc_col-sm-12").length > 0 ? e(this).append('
') : e(this).append('
')), ki.usingMobileBrowser || (ni[t] = new r(e(this), "horizontal-movement"), ai[t].on("dragMove", function(e, t) { ki.clientY = t.clientY, ki.clientX = t.clientX }), ai[t].on("pointerDown", function(t, a) { e(".nectar-drag-indicator").addClass("pointer-down") }), ai[t].on("pointerUp", function(t, a) { e(".nectar-drag-indicator").removeClass("pointer-down") })); var C = e(this).find(".flickity-page-dots li").length, x = e(this).find(".visualized-total span"), k = 1, T = e(this).find(".visualized-total").width(); En.on("smartresize", function() { setTimeout(function() { C = u.find(".flickity-page-dots li").length, T = u.find(".visualized-total").width(), k = T / C * u.find(".flickity-page-dots .is-selected").index(), x.css("width", 100 / C + "%"), x.css({ x: k + "px" }) }, 200) }), setTimeout(function() { C = u.find(".flickity-page-dots li").length, T = u.find(".visualized-total").width(), x.css("width", 100 / C + "%") }, 200), ai[t].on("change", function(e, t) { k = T / C * u.find(".flickity-page-dots .is-selected").index(), x.css({ x: k + "px" }) }) } if (e(this).is('[data-format="fixed_text_content_fullwidth"]') && !ki.usingFrontEndEditor) { var I = ki.usingMobileBrowser; ai[t].on("scroll", function() { if (!I) { var a = u.find(".cell").outerWidth() + 25, n = e('body[data-header-format="left-header"]').length > 0 && En.width() > 1e3 ? 275 : 0, i = (En.width() + n - u.parents(".main-content").width()) / 2; i += parseInt(u.css("margin-left")) + 2, ai[t].slides.forEach(function(n, s) { var r = 1, o = 0, l = 0, d = 10, c = 1, h = e(n.cells[0].element).offset().left, u = e(".nectar-flickity.instance-" + t + " .cell:nth-child(" + (s + 1) + ")"); h - i < 0 && h - i > -1 * a ? (r = 1 + (h - i) / 1500, c = 1 + (h - i + 70) / 550, o = -1 * (h - i), l = (h - i) / 25 * -1) : (r = 1, c = 1, o = 0, l = 0), d = h + 5 - i < 0 && h - i > -1 * a ? 5 : 10, u.css({ "z-index": d }), u.find(".inner-wrap-outer").css({ transform: "perspective(800px) translateX(" + o + "px) rotateY(" + l + "deg) translateZ(0)", opacity: c }), u.find(".inner-wrap").css({ transform: "scale(" + r + ") translateZ(0)" }) }) } }) } ai[t].on("dragStart", function() { clearTimeout(w), clearTimeout(y), u.addClass("is-dragging"), u.addClass("is-moving"), u.find(".flickity-prev-next-button").addClass("hidden") }), ai[t].on("dragEnd", function() { u.removeClass("is-dragging"), w = setTimeout(function() { u.removeClass("is-moving"), u.find(".flickity-prev-next-button").removeClass("hidden") }, 600), y = setTimeout(function() { u.removeClass("is-moving") }, 300) }), e(".flickity-prev-next-button").on("click", function() { clearTimeout(w), e(this).parents(".nectar-flickity").find(".flickity-prev-next-button").addClass("hidden"), w = setTimeout(function() { u.find(".flickity-prev-next-button").removeClass("hidden") }, 600) }), u.hasClass("nectar-carousel") && imagesLoaded(u, function() { h(u) }) }); var t = e(".nectar-carousel.nectar-flickity:not(.masonry)").length > 0; t && En.on("resize", c) } function c() { e(".nectar-carousel.nectar-flickity:not(.masonry)").each(function() { h(e(this)) }) } function h(t) { var a = 0; t.find(".flickity-slider > .cell").css("height", "auto"), t.find(".flickity-slider > .cell").each(function() { e(this).height() > a && (a = e(this).height()) }), a < 10 && (a = "auto"), t.find(".flickity-slider > .cell").css("height", a + "px") } function u() { e(".twentytwenty-container").each(function() { var t = e(this); 0 == t.find(".twentytwenty-handle").length && e(this).imagesLoaded(function() { t.twentytwenty() }) }) } function p() { } function f() { var t = En.width(), a = e("header#top > .container").width(); e("header#top nav > ul > li.megamenu > .sub-menu").css({ "padding-left": (t - a) / 2 + "px", "padding-right": (t + 2 - a) / 2 + "px", width: a, left: "-" + (t - a) / 2 + "px" }) } function g() { ki.winW < 1e3 && "1" == Hn.attr("data-responsive") ? (Hn.addClass("mobile"), e("header#top nav").css("display", "none")) : (Hn.removeClass("mobile"), e("header#top nav").css("display", ""), e(".slide-out-widget-area-toggle #toggle-nav .lines-button").removeClass("close")) } function m() { e("#header-outer .sf-menu > li:not(.megamenu) > ul > li > ul").each(function() { e(this).removeClass("on-left-side"), e(this).offset().left + e(this).outerWidth() > En.width() ? (e(this).addClass("on-left-side"), e(this).find("ul").addClass("on-left-side")) : (e(this).removeClass("on-left-side"), e(this).find("ul").removeClass("on-left-side")) }) } function v() { 0 != e(".carousel").length && ("undefined" != typeof SalientRecentProjectsCarousel && e("ul.carousel.portfolio-items").each(function(t) { gi[t] = new SalientRecentProjectsCarousel(e(this)) }), e('ul.carousel:not(".clients"):not(.portfolio-items)').each(function() { var a, n, i = e(this), s = "true" == e(this).parents(".carousel-wrap").attr("data-full-width") ? "auto" : 3, r = "true" == e(this).parents(".carousel-wrap").attr("data-full-width") ? "auto" : "", o = "true" == e(this).parents(".carousel-wrap").attr("data-full-width") ? 500 : 453, l = "true" == e(this).attr("data-autorotate"), d = !0, c = !0; e("body.ascend").length > 0 && "true" != e(this).parents(".carousel-wrap").attr("data-full-width") || e("body.material").length > 0 && "true" != e(this).parents(".carousel-wrap").attr("data-full-width") ? e(this).find("li").length % 3 == 0 ? (d = !0, c = !0) : (d = !1, c = !0) : (d = !0, c = !0), a = parseInt(e(this).attr("data-scroll-speed")) ? parseInt(e(this).attr("data-scroll-speed")) : 700, n = e(this).is("[data-easing]") ? e(this).attr("data-easing") : "linear"; var h = i; 0 == i.find("img").length && (h = Hn), imagesLoaded(h, function() { i.carouFredSel({ circular: d, infinite: c, height: "auto", responsive: !0, items: { width: o, visible: { min: 1, max: s } }, swipe: { onTouch: !0, onMouse: !0, options: { excludedElements: "button, input, select, textarea, .noSwipe", tap: function(a, n) { !e(n).attr("href") || e(n).is('[target="_blank"]') || e(n).is('[rel^="prettyPhoto"]') || e(n).is(".magnific-popup") || e(n).is(".magnific") || t.open(e(n).attr("href"), "_self") } }, onBefore: function() { i.find(".work-item").trigger("mouseleave"), i.find(".work-item .work-info a").trigger("mouseup") } }, scroll: { items: r, easing: n, duration: a, onBefore: function() { (e("body.ascend").length > 0 && "true" != i.parents(".carousel-wrap").attr("data-full-width") || e("body.material").length > 0 && "true" != i.parents(".carousel-wrap").attr("data-full-width")) && i.parents(".carousel-wrap").find(".item-count .total").html(Math.ceil(i.find("> li").length / i.triggerHandler("currentVisible").length)) }, onAfter: function() { (e("body.ascend").length > 0 && "true" != i.parents(".carousel-wrap").attr("data-full-width") || e("body.material").length > 0 && "true" != i.parents(".carousel-wrap").attr("data-full-width")) && (i.parents(".carousel-wrap").find(".item-count .current").html(i.triggerHandler("currentPage") + 1), i.parents(".carousel-wrap").find(".item-count .total").html(Math.ceil(i.find("> li").length / i.triggerHandler("currentVisible").length))) } }, prev: { button: function() { return i.parents(".carousel-wrap").find(".carousel-prev") } }, next: { button: function() { return i.parents(".carousel-wrap").find(".carousel-next") } }, auto: { play: l } }, { transition: !0 }).animate({ opacity: 1 }, 1300), i.parents(".carousel-wrap").wrap('