PageSourceSearch

https://www.andover.bank/WebResource.axd?d=CON4WpTji6FN545yP4UCCiN…&t=637632597860000000&cdv=236

js andover.bank collected 2026-10-01 16:41:47 UTC 90,050 bytes, 1 lines download raw bytes

1function lsShowNotice(t, e, i) { var a; "string" == typeof t ? a = jQuery("#" + t) : "object" == typeof t && (a = t); var s, o; switch (e) { case "jquery": s = "multiple jQuery issue", o = 'It looks like that another plugin or your theme loads an extra copy of the jQuery library causing problems for LayerSlider to show your sliders. <strong>Please navigate on your WordPress admin area to the main page of LayerSlider and enable the "Put JS includes to body" option within the Troubleshooting & Advanced Settings box.</strong>'; break; case "oldjquery": s = "old jQuery issue", o = "It looks like you are using an old version (" + i + ') of the jQuery library. LayerSlider requires at least version 1.7.0 or newer. Please update jQuery to 1.10.x or higher. Important: Please do not use the jQuery Updater plugin on WordPress and do not update to 2.x version of jQuery because it is not compatible with older browsers like IE 7 & 8. <a href="http://support.kreaturamedia.com/faq/4/layerslider-for-wordpress/#group-13&entry-60">You can read more about updating jQuery by clicking here.</a>' } a.addClass("ls-error"), a.append('<p class="ls-exclam">!</p>'), a.append('<p class="ls-error-title">LayerSlider: ' + s + "</p>"), a.append('<p class="ls-error-text">' + o + "</p>") } !function (t) { if ("undefined" != typeof kmGS) for (var e in kmGS) this[e] = kmGS[e]; t.fn.layerSlider = function (e) { var a = t.fn.jquery, s = t(this), o = function (t, e) { for (var i = t.split("."), a = e.split("."), s = 0; s < i.length; ++s) { if (a.length == s) return !1; if (parseInt(i[s]) != parseInt(a[s])) return !(parseInt(i[s]) > parseInt(a[s])) } return i.length, a.length, !0 }; if (o("1.8.0", a) || s.addClass("ls-norotate"), o("1.7.0", a)) { if ((typeof e).match("object|undefined")) return this.each(function (t) { new i(this, e) }); if ("data" === e) { var r = t(this).data("LayerSlider").g; if (r) return r } else if ("userInitData" === e) { if (n = t(this).data("LayerSlider").o) return n } else { if ("defaultInitData" !== e) return this.each(function (i) { var a = t(this).data("LayerSlider"); if (a) { if (!a.g.isAnimating && !a.g.isLoading) if ("number" == typeof e) e > 0 && e < a.g.layersNum + 1 && e != a.g.curLayerIndex && a.change(e); else switch (e) { case "prev": a.o.cbPrev(a.g), a.prev("clicked"); break; case "next": a.o.cbNext(a.g), a.next("clicked"); break; case "start": a.g.autoSlideshow || (a.o.cbStart(a.g), a.g.originalAutoSlideshow = !0, a.start()) } "redraw" === e && a.resize(), (a.g.autoSlideshow || !a.g.autoSlideshow && a.g.originalAutoSlideshow) && "stop" == e && (a.o.cbStop(a.g), a.g.originalAutoSlideshow = !1, a.g.curLayer.find('iframe[src*="youtube.com"], iframe[src*="youtu.be"], iframe[src*="youtube-nocookie.com"], iframe[src*="player.vimeo"]').each(function () { clearTimeout(t(this).data("videoTimer")) }), a.stop()), "forceStop" == e && a.forcestop() } }); var n = t(this).data("LayerSlider").defaults; if (n) return n } } else lsShowNotice(s, "oldjquery", a) }; var i = function (e, d) { var l = this; l.$el = t(e).addClass("ls-container"), l.$el.data("LayerSlider", l), l.load = function () { if (l.defaults = i.options, l.o = t.extend({}, l.defaults, d), l.g = t.extend({}, i.global), l.lt = t.extend({}, i.layerTransitions), l.st = t.extend({}, i.slideTransitions), l.g.enableCSS3 = !t(e).hasClass("ls-norotate"), l.g.originalMarkup = t(e).html(), l.g.ie78 && (l.o.lazyLoad = !1), "enabled" === l.o.autoPauseSlideshow && (l.o.autoPauseSlideshow = !0), "disabled" === l.o.autoPauseSlideshow && (l.o.autoPauseSlideshow = !1), "undefined" != typeof layerSliderTransitions && (l.t = t.extend({}, layerSliderTransitions)), "undefined" != typeof layerSliderCustomTransitions && (l.ct = t.extend({}, layerSliderCustomTransitions)), !l.g.initialized) if (l.g.initialized = !0, t("html").find('meta[content*="WordPress"]').length && (l.g.wpVersion = t("html").find('meta[content*="WordPress"]').attr("content").split("WordPress")[1]), t("html").find('script[src*="layerslider"]').length && -1 != t("html").find('script[src*="layerslider"]').attr("src").indexOf("?") && (l.g.lswpVersion = t("html").find('script[src*="layerslider"]').attr("src").split("?")[1].split("=")[1]), l.o.skin && "" != l.o.skin && l.o.skinsPath && "" != l.o.skinsPath) { t(e).addClass("ls-" + l.o.skin); var a = l.o.skinsPath + l.o.skin + "/skin.css", s = t("head"); if (t("head").length || (s = t("body")), t('link[href="' + a + '"]').length) o = t('link[href="' + a + '"]'), l.g.loaded || (l.g.loaded = !0, l.g.t1 = setTimeout(function () { l.init(
1) }, 150)); else if (document.createStyleSheet) { document.createStyleSheet(a); o = t('link[href="' + a + '"]') } else var o = t('<link rel="stylesheet" href="' + a + '" type="text/css" />').appendTo(s); o.load(function () { l.g.loaded || (l.g.loaded = !0, l.g.t2 = setTimeout(function () { l.init() }, 150)) }), t(window).load(function () { l.g.loaded || (l.g.loaded = !0, l.g.t3 = setTimeout(function () { l.init() }, 150)) }), l.g.t4 = setTimeout(function () { l.g.loaded || (l.g.loaded = !0, l.init()) }, 1e3) } else l.init() }, l.init = function () { t(e).prependTo(t(l.o.prependTo)), t("html").attr("id") ? t("body").attr("id") || t("body").attr("id", "ls-global") : t("html").attr("id", "ls-global"), !0 === l.g.isMobile() && !0 === l.o.hideOnMobile && (t(e).addClass("ls-forcehide"), t(e).closest(".ls-wp-fullwidth-container").addClass("ls-forcehide")); var i = function () { !0 === l.o.hideOnMobile && !0 === l.g.isMobile() ? (t(e).addClass("ls-forcehide"), t(e).closest(".ls-wp-fullwidth-container").addClass("ls-forcehide"), l.o.autoStart = !1) : t(window).width() < l.o.hideUnder || t(window).width() > l.o.hideOver ? (t(e).addClass("ls-forcehide"), t(e).closest(".ls-wp-fullwidth-container").addClass("ls-forcehide")) : (t(e).removeClass("ls-forcehide"), t(e).closest(".ls-wp-fullwidth-container").removeClass("ls-forcehide")) }; if (t(window).resize(function () { i() }), i(), l.g.sliderWidth = function () { return t(e).width() }, l.g.sliderHeight = function () { return t(e).height() }, t(e).find(".ls-layer").removeClass("ls-layer").addClass("ls-slide"), t(e).find('.ls-slide > *[class*="ls-s"]').each(function () { var e = t(this).attr("class").split("ls-s")[1].split(" ")[0]; t(this).removeClass("ls-s" + e).addClass("ls-l" + e) }), l.o.firstLayer && (l.o.firstSlide = l.o.firstLayer), !1 === l.o.animateFirstLayer && (l.o.animateFirstSlide = !1), 1 == t(e).find(".ls-slide").length && (l.o.autoStart = !1, l.o.navPrevNext = !1, l.o.navStartStop = !1, l.o.navButtons = !1, l.o.loops = 0, l.o.forceLoopNum = !1, l.o.autoPauseSlideshow = !0, l.o.firstSlide = 1, l.o.thumbnailNavigation = "disabled"), t(e).parent().hasClass("ls-wp-fullwidth-helper") && 0 !== l.o.responsiveUnder && (t(e)[0].style.width = "100%"), l.o.width ? l.g.sliderOriginalWidthRU = l.g.sliderOriginalWidth = "" + l.o.width : l.g.sliderOriginalWidthRU = l.g.sliderOriginalWidth = t(e)[0].style.width, l.o.height ? l.g.sliderOriginalHeight = "" + l.o.height : l.g.sliderOriginalHeight = t(e)[0].style.height, -1 == l.g.sliderOriginalWidth.indexOf("%") && -1 == l.g.sliderOriginalWidth.indexOf("px") && (l.g.sliderOriginalWidth += "px"), -1 == l.g.sliderOriginalHeight.indexOf("%") && -1 == l.g.sliderOriginalHeight.indexOf("px") && (l.g.sliderOriginalHeight += "px"), l.o.responsive && -1 != l.g.sliderOriginalWidth.indexOf("px") && -1 != l.g.sliderOriginalHeight.indexOf("px") ? l.g.responsiveMode = !0 : l.g.responsiveMode = !1, !0 === l.o.fullScreen && (l.o.responsiveUnder = 0, l.g.responsiveMode = !0, -1 != l.g.sliderOriginalWidth.indexOf("%") && (l.g.sliderOriginalWidth = parseInt(l.g.sliderOriginalWidth) + "px"), -1 != l.g.sliderOriginalHeight.indexOf("%") && (l.g.sliderOriginalHeight = parseInt(l.g.sliderOriginalHeight) + "px")), t(e).find('*[class*="ls-l"], *[class*="ls-bg"]').each(function () { t(this).parent().hasClass("ls-slide") || t(this).insertBefore(t(this).parent()) }), t(e).find(".ls-slide").each(function () { t(this).data("index", t(this).index() + 1).addClass("ls-slide-" + (t(this).index() + 1)), t(this).children(':not([class*="ls-"])').each(function () { t(this).remove() }); var e = t("<div>").addClass("ls-gpuhack"); t(this).find(".ls-bg").length ? e.insertAfter(t(this).find(".ls-bg").eq("0")) : e.prependTo(t(this)) }), t(e).find('.ls-slide, *[class*="ls-l"]').each(function () { if (t(this).data("ls") || t(this).attr("rel") || t(this).attr("style")) { if (t(this).data("ls")) e = t(this).data("ls").toLowerCase().split(";"); else if (t(this).attr("rel") && -1 != t(this).attr("rel").indexOf(":") && -1 != t(this).attr("rel").indexOf(";")) e = t(this).attr("rel").toLowerCase().split(";"); else var e = t(this).attr("style").toLowerCase().split(";"); for (x = 0; x < e.length; x++) { param = e[x].split(":"), -1 != param[0].indexOf("easing") && (param[1] = l.ieEasing(param[1])); var i = ""; param[2] && (i = ":" + t.trim(param[2])), " " != param[0] && "" != param[0] && t(this).data(t.trim(param[0]), t.trim(param[1]) + i) } } !0 === l.o.startInViewport && !0 === l.o.autoStart && (l.o.autoStart = !1, l.g.originalAutoStart = !0); var a = t(this); a.data("originalLeft", a[0].style.left), a.data("originalTop", a[0].style.top), t(this).is("a") && t(this).children().length > 0 && (a = t(this).children()); var s = a.width(), o = a.height(); a[0].style.width && -1 != a[0].style.width.indexOf("%") && (s = a[0].style.width), a[0].style.height && -1 != a[0].style.height.indexOf("%") && (
1o = a[0].style.height), a.data("originalWidth", s), a.data("originalHeight", o), a.data("originalPaddingLeft", a.css("padding-left")), a.data("originalPaddingRight", a.css("padding-right")), a.data("originalPaddingTop", a.css("padding-top")), a.data("originalPaddingBottom", a.css("padding-bottom")); var r = "number" == typeof parseFloat(a.css("opacity")) ? Math.round(100 * parseFloat(a.css("opacity"))) / 100 : 1; t(this).data("originalOpacity", r), -1 == a.css("border-left-width").indexOf("px") ? a.data("originalBorderLeft", a[0].style.borderLeftWidth) : a.data("originalBorderLeft", a.css("border-left-width")), -1 == a.css("border-right-width").indexOf("px") ? a.data("originalBorderRight", a[0].style.borderRightWidth) : a.data("originalBorderRight", a.css("border-right-width")), -1 == a.css("border-top-width").indexOf("px") ? a.data("originalBorderTop", a[0].style.borderTopWidth) : a.data("originalBorderTop", a.css("border-top-width")), -1 == a.css("border-bottom-width").indexOf("px") ? a.data("originalBorderBottom", a[0].style.borderBottomWidth) : a.data("originalBorderBottom", a.css("border-bottom-width")), a.data("originalFontSize", a.css("font-size")), a.data("originalLineHeight", a.css("line-height")) }), document.location.hash) for (var a = 0; a < t(e).find(".ls-slide").length; a++) t(e).find(".ls-slide").eq(a).data("deeplink") == document.location.hash.split("#")[1] && (l.o.firstSlide = a + 1); t(e).find('*[class*="ls-linkto-"]').each(function () { for (var i = t(this).attr("class").split(" "), a = 0; a < i.length; a++) if (-1 != i[a].indexOf("ls-linkto-")) { var s = parseInt(i[a].split("ls-linkto-")[1]); t(this).css({ cursor: "pointer" }).click(function (i) { i.preventDefault(), t(e).layerSlider(s) }) } }), l.g.layersNum = t(e).find(".ls-slide").length, l.o.randomSlideshow && l.g.layersNum > 2 ? (l.o.firstSlide, l.o.twoWaySlideshow = !1) : l.o.randomSlideshow = !1, "random" == l.o.firstSlide && (l.o.firstSlide = Math.floor(Math.random() * l.g.layersNum + 1)), l.o.fisrtSlide = l.o.fisrtSlide < l.g.layersNum + 1 ? l.o.fisrtSlide : 1, l.o.fisrtSlide = l.o.fisrtSlide < 1 ? 1 : l.o.fisrtSlide, l.g.nextLoop = 1, l.o.animateFirstSlide && (l.g.nextLoop = 0), l.media.youtube.init(), l.media.vimeo.init(), l.media.html5.init(), l.o.animateFirstSlide && (l.o.firstSlide = l.o.firstSlide - 1 == 0 ? l.g.layersNum : l.o.firstSlide - 1), l.g.curLayerIndex = l.o.firstSlide, l.g.curLayer = t(e).find(".ls-slide:eq(" + (l.g.curLayerIndex - 1) + ")"), t(e).find(".ls-slide").wrapAll('<div class="ls-inner"></div>'), l.g.i = t(e).find(".ls-inner"), l.o.showBarTimer && (l.g.barTimer = t("<div>").addClass("ls-bar-timer").appendTo(l.g.i)), l.o.showCircleTimer && !l.g.ie78 && (l.g.circleTimer = t("<div>").addClass("ls-circle-timer").appendTo(l.g.i), l.g.circleTimer.append(t('<div class="ls-ct-left"><div class="ls-ct-rotate"><div class="ls-ct-hider"><div class="ls-ct-half"></div></div></div></div><div class="ls-ct-right"><div class="ls-ct-rotate"><div class="ls-ct-hider"><div class="ls-ct-half"></div></div></div></div><div class="ls-ct-center"></div>'))), l.g.li = t("<div>").css({ zIndex: -1, display: "none" }).addClass("ls-loading-container").appendTo(t(e)), t("<div>").addClass("ls-loading-indicator").appendTo(l.g.li), "static" == t(e).css("position") && t(e).css("position", "relative"), l.o.globalBGImage ? l.g.i.css({ backgroundImage: "url(" + l.o.globalBGImage + ")" }) : l.g.i.css({ backgroundColor: l.o.globalBGColor }), "transparent" == l.o.globalBGColor && 0 == l.o.globalBGImage && l.g.i.css({ background: "none transparent !important" }), t(e).find(".ls-slide img").each(function () { if (t(this).removeAttr("width").removeAttr("height"), !0 === l.o.imgPreload && !0 === l.o.lazyLoad) { if ("string" != typeof t(this).data("src")) { t(this).data("src", t(this).attr("src")); var e = l.o.skinsPath + "../Resources/LayerSlider/css/blank.gif"; t(this).attr("src", e) } } else "string" == typeof t(this).data("src") && (t(this).attr("src", t(this).data("src")), t(this).removeAttr("data-src")) }); var s = t([]); if (t(e).find("*:not(.ls-bg)").each(function () { void 0 !== t(this).data("parallaxlevel") && 0 !== parseInt(t(this).data("parallaxlevel")) && (s = s.add(t(this))) }), l.g.i.on("mouseenter", function (e) { l.g.parallaxStartX = e.pageX - t(this).parent().offset().left, l.g.parallaxStartY = e.pageY - t(this).parent().offset().top }), l.g.i.on("mousemove", function (e) { var i = t(this).parent().offset().left + l.g.parallaxStartX, a = t(this).parent().offset().top + l.g.parallaxStartY, o = e.pageX - i, r = e.pageY - a; s.each(function () { t(this).css({ marginLeft: -o / 100 * parseInt(t(this).data("parallaxlevel")), marginTop: -r / 100 * parseInt(t(this).data("parallaxlevel")) }) }) }), l.g.i.on("mouseleave", function () { s.each(function () { TweenLite.to(this, .4, { css: { marginLeft: 0, marginTop: 0 } }) }) }), l.o.navPrevNext && (t('<a class="ls-nav-prev" href="#" />').text("prev").click(function (i) { i.preventDefault(), t(e).layerSlider("prev") }).appendTo(t(e)), t('<a class="ls-nav-next" href="#" />').text("next").click(function (i) { i.preventDefault(), t(e).layerSlider("next") }).appendTo(t(e)), l.o.hoverPrevNext && (t(e).find(".ls-nav-prev, .ls-nav-next").
1css({ display: "none" }), t(e).hover(function () { l.g.forceHideControls || (l.g.ie78 ? t(e).find(".ls-nav-prev, .ls-nav-next").css("display", "block") : t(e).find(".ls-nav-prev, .ls-nav-next").stop(!0, !0).fadeIn(300)) }, function () { l.g.ie78 ? t(e).find(".ls-nav-prev, .ls-nav-next").css("display", "none") : t(e).find(".ls-nav-prev, .ls-nav-next").stop(!0, !0).fadeOut(300) }))), l.o.navStartStop || l.o.navButtons) { var o = t('<div class="ls-bottom-nav-wrapper" />').appendTo(t(e)); if (l.g.bottomWrapper = o, "always" == l.o.thumbnailNavigation && o.addClass("ls-above-thumbnails"), l.o.navButtons && "always" != l.o.thumbnailNavigation) { if (t('<span class="ls-bottom-slidebuttons" />').appendTo(t(e).find(".ls-bottom-nav-wrapper")), "hover" == l.o.thumbnailNavigation) u = t('<div class="ls-thumbnail-hover"><div class="ls-thumbnail-hover-inner"><div class="ls-thumbnail-hover-bg"></div><div class="ls-thumbnail-hover-img"><img></div><span></span></div></div>').appendTo(t(e).find(".ls-bottom-slidebuttons")); for (x = 1; x < l.g.layersNum + 1; x++) { var r = t('<a href="#" />').text(x).appendTo(t(e).find(".ls-bottom-slidebuttons")).click(function (i) { i.preventDefault(), t(e).layerSlider(t(this).index() + 1) }); if ("hover" == l.o.thumbnailNavigation) { t(e).find(".ls-thumbnail-hover, .ls-thumbnail-hover-img").css({ width: l.o.tnWidth, height: l.o.tnHeight }); var n = t(e).find(".ls-thumbnail-hover"), d = n.find("img").css({ height: l.o.tnHeight }).attr("alt", "thumb"), g = t(e).find(".ls-thumbnail-hover-inner").css({ visibility: "hidden", display: "block" }); r.hover(function () { var i, a = t(e).find(".ls-slide").eq(t(this).index()); i = !0 === l.o.imgPreload && !0 === l.o.lazyLoad ? a.find(".ls-tn").length ? a.find(".ls-tn").data("src") : a.find(".ls-videopreview").length ? a.find(".ls-videopreview").attr("src") : a.find(".ls-bg").length ? a.find(".ls-bg").data("src") : l.o.skinsPath + l.o.skin + "/nothumb.png" : a.find(".ls-tn").length ? a.find(".ls-tn").attr("src") : a.find(".ls-videopreview").length ? a.find(".ls-videopreview").attr("src") : a.find(".ls-bg").length ? a.find(".ls-bg").attr("src") : l.o.skinsPath + l.o.skin + "/nothumb.png", t(e).find(".ls-thumbnail-hover-img").css({ left: parseInt(n.css("padding-left")), top: parseInt(n.css("padding-top")) }), d.load(function () { 0 == t(this).width() ? d.css({ position: "relative", margin: "0 auto", left: "auto" }) : d.css({ position: "absolute", marginLeft: -t(this).width() / 2, left: "50%" }) }).attr("src", i), n.css({ display: "block" }).stop().animate({ left: t(this).position().left + (t(this).width() - n.outerWidth()) / 2 }, 250), g.css({ display: "none", visibility: "visible" }).stop().fadeIn(250) }, function () { g.stop().fadeOut(250, function () { n.css({ visibility: "hidden", display: "block" }) }) }) } } "hover" == l.o.thumbnailNavigation && u.appendTo(t(e).find(".ls-bottom-slidebuttons")), t(e).find(".ls-bottom-slidebuttons a:eq(" + (l.o.firstSlide - 1) + ")").addClass("ls-nav-active") } if (l.o.navStartStop) var h = t('<a class="ls-nav-start" href="#" />').text("start").click(function (i) { i.preventDefault(), t(e).layerSlider("start") }).prependTo(t(e).find(".ls-bottom-nav-wrapper")), c = t('<a class="ls-nav-stop" href="#" />').text("stop").click(function (i) { i.preventDefault(), t(e).layerSlider("stop") }).appendTo(t(e).find(".ls-bottom-nav-wrapper")); else "always" != l.o.thumbnailNavigation && (t('<span class="ls-nav-sides ls-nav-sideleft" />').prependTo(t(e).find(".ls-bottom-nav-wrapper")), t('<span class="ls-nav-sides ls-nav-sideright" />').appendTo(t(e).find(".ls-bottom-nav-wrapper"))); l.o.hoverBottomNav && "always" != l.o.thumbnailNavigation && (o.css({ display: "none" }), t(e).hover(function () { l.g.forceHideControls || (l.g.ie78 ? o.css("display", "block") : o.stop(!0, !0).fadeIn(300)) }, function () { l.g.ie78 ? o.css("display", "none") : o.stop(!0, !0).fadeOut(300) })) } if ("always" == l.o.thumbnailNavigation) { l.g.thumbsWrapper = t('<div class="ls-thumbnail-wrapper"></div>').appendTo(t(e)); var u = t('<div class="ls-thumbnail">
1<div class="ls-thumbnail-inner"><div class="ls-thumbnail-slide-container"><div class="ls-thumbnail-slide"></div></div></div></div>').appendTo(l.g.thumbsWrapper); if (l.g.thumbnails = t(e).find(".ls-thumbnail-slide-container"), "ontouchstart" in window ? l.g.thumbnails.addClass("ls-touchscroll") : l.g.thumbnails.hover(function () { t(this).addClass("ls-thumbnail-slide-hover") }, function () { t(this).removeClass("ls-thumbnail-slide-hover"), l.scrollThumb() }).mousemove(function (e) { var i = parseInt(e.pageX - t(this).offset().left) / t(this).width() * (t(this).width() - t(this).find(".ls-thumbnail-slide").width()); t(this).find(".ls-thumbnail-slide").stop().css({ marginLeft: i }) }), t(e).find(".ls-slide").each(function () { var i, a = t(this).index() + 1; i = !0 === l.o.imgPreload && !0 === l.o.lazyLoad ? t(this).find(".ls-tn").length ? t(this).find(".ls-tn").data("src") : t(this).find(".ls-videopreview").length ? t(this).find(".ls-videopreview").attr("src") : t(this).find(".ls-bg").length ? t(this).find(".ls-bg").data("src") : l.o.skinsPath + l.o.skin + "/nothumb.png" : t(this).find(".ls-tn").length ? t(this).find(".ls-tn").attr("src") : t(this).find(".ls-videopreview").length ? t(this).find(".ls-videopreview").attr("src") : t(this).find(".ls-bg").length ? t(this).find(".ls-bg").attr("src") : l.o.skinsPath + l.o.skin + "/nothumb.png"; var s = t('<a href="#" class="ls-thumb-' + a + '"><img src="' + i + '"></a>'); s.appendTo(t(e).find(".ls-thumbnail-slide")), "ontouchstart" in window || s.hover(function () { t(this).children().stop().fadeTo(300, l.o.tnActiveOpacity / 100) }, function () { t(this).children().hasClass("ls-thumb-active") || t(this).children().stop().fadeTo(300, l.o.tnInactiveOpacity / 100) }), s.click(function (i) { i.preventDefault(), t(e).layerSlider(a) }) }), h && c) { var f = l.g.bottomWrapper = t('<div class="ls-bottom-nav-wrapper ls-below-thumbnails"></div>').appendTo(t(e)); h.clone().click(function (i) { i.preventDefault(), t(e).layerSlider("start") }).appendTo(f), c.clone().click(function (i) { i.preventDefault(), t(e).layerSlider("stop") }).appendTo(f) } l.o.hoverBottomNav && (l.g.thumbsWrapper.css("display", "none"), f && (l.g.bottomWrapper = "block" == f.css("display") ? f : t(e).find(".ls-above-thumbnails"), l.g.bottomWrapper.css("display", "none")), t(e).hover(function () { t(e).addClass("ls-hover"), l.g.forceHideControls || (l.g.ie78 ? (l.g.thumbsWrapper.css("display", "block"), l.g.bottomWrapper && l.g.bottomWrapper.css("display", "block")) : (l.g.thumbsWrapper.stop(!0, !0).fadeIn(300), l.g.bottomWrapper && l.g.bottomWrapper.stop(!0, !0).fadeIn(300))) }, function () { t(e).removeClass("ls-hover"), l.g.ie78 ? (l.g.thumbsWrapper.css("display", "none"), l.g.bottomWrapper && l.g.bottomWrapper.css("display", "none")) : (l.g.thumbsWrapper.stop(!0, !0).fadeOut(300), l.g.bottomWrapper && l.g.bottomWrapper.stop(!0, !0).fadeOut(300)) })) } l.g.shadow = t('<div class="ls-shadow"></div>').appendTo(t(e)), "block" != l.g.shadow.css("display") || l.g.shadow.find("img").length || (l.g.showShadow = function () { l.g.shadow.css({ display: "none", visibility: "visible" }).fadeIn(500, function () { l.g.showShadow = !1 }) }, l.g.shadowImg = t("<img>").attr("alt", "shadow").attr("src", l.o.skinsPath + l.o.skin + "/shadow.png").appendTo(l.g.shadow), l.g.shadowBtmMod = "number" == typeof parseInt(t(e).css("padding-bottom")) ? parseInt(t(e).css("padding-bottom")) : 0), l.resizeShadow(), l.o.keybNav && t(e).find(".ls-slide").length > 1 && t("body").bind("keydown", function (t) { l.g.isAnimating || l.g.isLoading || (37 == t.which ? (l.o.cbPrev(l.g), l.prev("clicked")) : 39 == t.which && (l.o.cbNext(l.g), l.next("clicked"))) }), "ontouchstart" in window && t(e).find(".ls-slide").length > 1 && l.o.touchNav && (l.g.i.bind("touchstart", function (t) { var e = t.touches ? t.touches : t.originalEvent.touches; 1 == e.length && (l.g.touchStartX = l.g.touchEndX = e[0].clientX) }), l.g.i.bind("touchmove", function (t) { var e = t.touches ? t.touches : t.originalEvent.touches; 1 == e.length && (l.g.touchEndX = e[0].clientX), Math.abs(l.g.touchStartX - l.g.touchEndX) > 45 && t.preventDefault() }), l.g.i.bind("touchend", function (i) { Math.abs(l.g.touchStartX - l.g.touchEndX) > 45 && (l.g.touchStartX - l.g.touchEndX > 0 ? (l.o.cbNext(l.g), t(e).layerSlider("next")) : (l.o.cbPrev(l.g), t(e).layerSlider("prev"))) })), 1 == l.o.pauseOnHover && t(e).find(".ls-slide").length > 1 && l.g.i.hover(function () { l.o.cbPause(l.g), l.g.autoSlideshow && (l.g.paused = !0, l.stop(), l.g.barTimer && l.g.barTimer.stop(), l.g.circleTimer && l.g.cttl && l.g.cttl.pause(), l.g.pausedSlideTime = (new Date).getTime()) }, function () { 1 == l.g.paused && (l.start(), l.g.paused = !1) }), l.resizeSlider(), l.o.yourLogo && (l.g.yourLogo = t("<img>").addClass("ls-yourlogo").appendTo(t(e)).attr("style", l.o.yourLogoStyle).css({ visibility: "hidden", display: "bock" }).load(function () { var i = 0;
1 l.g.yourLogo || (i = 1e3), setTimeout(function () { l.g.yourLogo.data("originalWidth", l.g.yourLogo.width()), l.g.yourLogo.data("originalHeight", l.g.yourLogo.height()), "auto" != l.g.yourLogo.css("left") && l.g.yourLogo.data("originalLeft", l.g.yourLogo[0].style.left), "auto" != l.g.yourLogo.css("right") && l.g.yourLogo.data("originalRight", l.g.yourLogo[0].style.right), "auto" != l.g.yourLogo.css("top") && l.g.yourLogo.data("originalTop", l.g.yourLogo[0].style.top), "auto" != l.g.yourLogo.css("bottom") && l.g.yourLogo.data("originalBottom", l.g.yourLogo[0].style.bottom), 0 != l.o.yourLogoLink && t("<a>").appendTo(t(e)).attr("href", l.o.yourLogoLink).attr("target", l.o.yourLogoTarget).css({ textDecoration: "none", outline: "none" }).append(l.g.yourLogo), l.g.yourLogo.css({ display: "none", visibility: "visible" }), l.resizeYourLogo() }, i) }).attr("src", l.o.yourLogo)), t(window).resize(function () { l.resize() }), t(window).on("orientationchange", function () { t(window).resize() }), l.g.showSlider = !0, 1 == l.o.animateFirstSlide ? (l.o.autoStart ? (l.g.autoSlideshow = !0, t(e).find(".ls-nav-start").addClass("ls-nav-start-active")) : t(e).find(".ls-nav-stop").addClass("ls-nav-stop-active"), l.next()) : void 0 !== l.g.curLayer[0] && l.imgPreload(l.g.curLayer, function () { l.g.curLayer.fadeIn(l.o.sliderFadeInDuration, function () { l.g.isLoading = !1, t(this).addClass("ls-active"), l.o.autoPlayVideos && t(this).delay(t(this).data("delayin") + 25).queue(function () { t(this).find(".ls-videopreview").click(), t(this).find("video, audio").each(function () { 0 !== typeof t(this)[0].currentTime && (t(this)[0].currentTime = 0), t(this).click() }), t(this).dequeue() }), l.g.curLayer.find(' > *[class*="ls-l"]').each(function () { var e = t(this); (!e.hasClass("ls-video-layer") || e.hasClass("ls-video-layer") && !1 === l.o.autoPlayVideos) && e.data("showuntil") > 0 && e.data("showUntilTimer", setTimeout(function () { l.sublayerShowUntil(e) }, e.data("showuntil"))) }) }), l.changeThumb(l.g.curLayerIndex), l.o.autoStart ? (l.g.isLoading = !1, l.start()) : t(e).find(".ls-nav-stop").addClass("ls-nav-stop-active") }), l.o.cbInit(t(e)) }, l.resize = function () { l.g.resize = !0, l.g.isAnimating || (l.makeResponsive(l.g.curLayer, function () { l.g.ltContainer && l.g.ltContainer.empty(), l.g.resize = !1 }), l.g.yourLogo && l.resizeYourLogo()) }, l.start = function () { l.g.autoSlideshow ? "prev" == l.g.prevNext && l.o.twoWaySlideshow ? l.prev() : l.next() : (l.g.autoSlideshow = !0, l.g.isAnimating || l.g.isLoading || l.timer()), t(e).find(".ls-nav-start").addClass("ls-nav-start-active"), t(e).find(".ls-nav-stop").removeClass("ls-nav-stop-active") }, l.timer = function () { if (t(e).find(".ls-active").data("ls")) i = l.st.slideDelay; else var i = l.o.slideDelay; var a = t(e).find(".ls-active").data("slidedelay") ? parseInt(t(e).find(".ls-active").data("slidedelay")) : i; if (!l.o.animateFirstSlide && !t(e).find(".ls-active").data("slidedelay")) { var s = t(e).find(".ls-slide:eq(" + (l.o.firstSlide - 1) + ")").data("slidedelay"); a = s || i } if (clearTimeout(l.g.slideTimer), l.g.pausedSlideTime ? (l.g.startSlideTime || (l.g.startSlideTime = (new Date).getTime()), l.g.startSlideTime > l.g.pausedSlideTime && (l.g.pausedSlideTime = (new Date).getTime()), l.g.curSlideTime || (l.g.curSlideTime = a), l.g.curSlideTime -= l.g.pausedSlideTime - l.g.startSlideTime, l.g.pausedSlideTime = !1, l.g.startSlideTime = (new Date).getTime()) : (l.g.curSlideTime = a, l.g.startSlideTime = (new Date).getTime()), l.g.curSlideTime = parseInt(l.g.curSlideTime), l.g.slideTimer = setTimeout(function () { l.g.startSlideTime = l.g.pausedSlideTime = l.g.curSlideTime = !1, l.start() }, l.g.curSlideTime), l.g.barTimer && l.g.barTimer.animate({ width: l.g.sliderWidth() }, l.g.curSlideTime, "linear", function () { t(this).css({ width: 0 }) }), l.g.circleTimer) { var o = l.g.circleTimer.find(".ls-ct-right .ls-ct-rotate"), r = l.g.circleTimer.find(".ls-ct-left .ls-ct-rotate"); "none" == l.g.circleTimer.css("display") && (o.css({ rotate: 0 }), r.css({ rotate: 0 }), l.g.circleTimer.fadeIn(350)), l.g.cttl ? l.g.cttl.resume() : (l.g.cttl = new TimelineLite, l.g.cttl.add(TweenLite.fromTo(o[0], a / 2e3, { rotation: 0 }, { ease: Linear.easeNone, rotation: 180, onReverseComplete: function () { l.g.cttl = !1 } })), l.g.cttl.add(TweenLite.fromTo(r[0], a / 2e3, { rotation: 0 }, { ease: Linear.easeNone, rotation: 180 }))) } }, l.stop = function () { l.g.pausedSlideTime = (new Date).getTime(), l.g.barTimer && l.g.barTimer.stop(), l.g.circleTimer && l.g.cttl && l.g.cttl.pause(), l.g.paused || l.g.originalAutoSlideshow || (t(e).find(".ls-nav-stop").addClass("ls-nav-stop-active"), t(e).find(".ls-nav-start").removeClass("ls-nav-start-active")), clearTimeout(l.g.slideTimer), l.g.autoSlideshow = !1 }, l.forcestop = function () { clearTimeout(l.g.slideTimer), l.g.autoSlideshow = !1, clearTimeout(l.g.t1), clearTimeout(l.g.t2), clearTimeout(l.g.t3), clearTimeout(l.g.t4), clearTimeout(l.g.t5), l.g.barTimer && l.g.barTimer.stop(), l.g.circleTimer && l.g.cttl && l.g.cttl.pause(), t(e).find("*").stop(!0, !1).dequeue(), t(e).find(".ls-slide >").each(function () { t(this).data("tr") && t(this).data("tr").pause() }), l.g.paused || l.g.originalAutoSlideshow || (t(e).find(".ls-nav-stop").addClass("ls-nav-stop-active"), t(e).find(".ls-nav-start").removeClass("ls-nav-start-active")) }, l.restart = function () { t(e).find("*").stop(), clearTimeout(l.g.slideTimer), l.change(l.g.curLayerIndex, l.g.prevNext) }
1, l.ieEasing = function (e) { return "swing" == t.trim(e.toLowerCase()) || "linear" == t.trim(e.toLowerCase()) ? e.toLowerCase() : e.replace("easeinout", "easeInOut").replace("easein", "easeIn").replace("easeout", "easeOut").replace("quad", "Quad").replace("quart", "Quart").replace("cubic", "Cubic").replace("quint", "Quint").replace("sine", "Sine").replace("expo", "Expo").replace("circ", "Circ").replace("elastic", "Elastic").replace("back", "Back").replace("bounce", "Bounce") }, l.prev = function (t) { if (l.g.curLayerIndex < 2 && (l.g.nextLoop += 1), l.g.nextLoop > l.o.loops && l.o.loops > 0 && !t) l.g.nextLoop = 0, l.stop(), 0 == l.o.forceLoopNum && (l.o.loops = 0); else { var e = l.g.curLayerIndex < 2 ? l.g.layersNum : l.g.curLayerIndex - 1; l.g.prevNext = "prev", l.change(e, l.g.prevNext) } }, l.next = function (t) { if (l.o.randomSlideshow) if (t) { if (t) { e = l.g.curLayerIndex < l.g.layersNum ? l.g.curLayerIndex + 1 : 1; l.g.prevNext = "next", l.change(e, l.g.prevNext) } } else { var e = l.g.curLayerIndex, i = function () { (e = Math.floor(Math.random() * l.g.layersNum) + 1) == l.g.curLayerIndex ? i() : (l.g.prevNext = "next", l.change(e, l.g.prevNext)) }; i() } else if (l.g.curLayerIndex < l.g.layersNum || (l.g.nextLoop += 1), l.g.nextLoop > l.o.loops && l.o.loops > 0 && !t) l.g.nextLoop = 0, l.stop(), 0 == l.o.forceLoopNum && (l.o.loops = 0); else { e = l.g.curLayerIndex < l.g.layersNum ? l.g.curLayerIndex + 1 : 1; l.g.prevNext = "next", l.change(e, l.g.prevNext) } }, l.media = { youtube: { init: function () { var i = -1 === document.location.href.indexOf("file:") ? "" : "http:", a = t(e).find('iframe[src*="youtube.com"], iframe[src*="youtu.be"], iframe[src*="youtube-nocookie.com"]'); if (a.length) { t("<script>").attr({ src: i + "//www.youtube.com/iframe_api", type: "text/javascript" }).appendTo("head"); a.length; window.onYouTubeIframeAPIReady = function () { a.each(function () { if (t(this).parent().addClass("ls-video-layer"), t(this).parent('[class*="ls-l"]')) { var e = i, a = t("<div>").addClass("ls-vpcontainer").appendTo(t(this).parent()); t("<img>").appendTo(a).addClass("ls-videopreview").attr("alt", "Play video").attr("src", e + "//img.youtube.com/vi/" + t(this).attr("src").split("embed/")[1].split("?")[0] + "/" + l.o.youtubePreview), t("<div>").appendTo(a).addClass("ls-playvideo"), t(this).parent().css({ width: t(this).width(), height: t(this).height() }).click(function () { var e = t(this).find("iframe"); if (e.css("display", "block"), t(this).data("showuntil") > 0 && t(this).data("showUntilTimer") && clearTimeout(t(this).data("showUntilTimer")), l.g.pausedByVideo || (l.g.isAnimating = !0, l.g.paused ? (0 != l.o.autoPauseSlideshow && (l.g.paused = !1), l.g.originalAutoSlideshow = !0) : l.g.originalAutoSlideshow = l.g.autoSlideshow, 0 != l.o.autoPauseSlideshow && l.stop(), l.g.pausedByVideo = !0), void 0 === e.data("ytplayer")) { e.attr("src", s); e.data("ytplayer", new YT.Player(e[0], { events: { onReady: function (t) { t.target.playVideo() }, onStateChange: function (t) { 0 === t.data && (l.g.numYouTubeCurSlide += 1, "auto" == l.o.autoPauseSlideshow && 1 == l.g.originalAutoSlideshow && l.g.numYouTubeCurSlide == l.g.curLayer.find('iframe[src*="youtube.com"], iframe[src*="youtu.be"], iframe[src*="youtube-nocookie.com"]').length && (l.g.curSlideTime = 1, l.start())) } } })) } else e.data("ytplayer").seekTo(0).playVideo(); t(this).find(".ls-vpcontainer").delay(l.g.v.d).fadeOut(l.g.v.fo, function () { l.g.isAnimating = !1, 1 == l.g.resize && l.makeResponsive(l.g.curLayer, function () { l.g.resize = !1 }) }) }); var s = (e = -1 === t(this).attr("src").indexOf("http") ? i : "") + t(this).attr("src"), o = "&"; -1 == s.indexOf("?") && (o = "?"), -1 == s.indexOf("autoplay") ? s += o : s.replace("autoplay=1", "autoplay=0"), s += "&wmode=opaque&html5=1&enablejsapi=1&version=3", t(this).data("videoSrc", s), t(this).data("originalWidth", t(this).attr("width")), t(this).data("originalHeight", t(this).attr("height")), t(this).attr("src", "") } }) } } }, play: function (t) { }, stop: function (t) { t.parent().find(".ls-vpcontainer").fadeIn(l.g.v.fi, function () { t.parent().find("iframe").data("ytplayer").stopVideo(), t.parent().find("iframe").css("display", "none") }) } }, vimeo: { init: function () { var i = -1 === document.location.href.indexOf("file:") ? "" : "http:"; t(e).find('iframe[src*="player.vimeo"]').each(function () { if (t(this).parent().addClass("ls-video-layer"), t(this).parent('[class*="ls-l"]')) { var e = t(this), a = i, s = t("<div>").addClass("ls-vpcontainer").appendTo(t(this).parent()); t.getJSON(a + "//vimeo.com/api/v2/video/" + t(this).attr("src").split("video/")[1].split("?")[0] + ".json?callback=?", function (i) { t("<img>").appendTo(s).addClass("ls-videopreview").attr("alt", "Play video").attr("src", i[0].thumbnail_large), e.data("videoDuration", 1e3 * parseInt(i[0].duration)), t("<div>").appendTo(s).addClass("ls-playvideo") }), t(this).parent().css({ width: t(this).width(), height: t(this).height() }).click(function () { t(this).data("showuntil") > 0 && t(this).data("showUntilTimer") && clearTimeout(t(this).data("showUntilTimer")), l.g.isAnimating = !0, l.g.paused ? (0 != l.o.autoPauseSlideshow && (l.g.paused = !1), l.g.originalAutoSlideshow = !0) : l.g.originalAutoSlideshow = l.g.autoSlideshow, 0 != l.o.autoPauseSlideshow && l.stop(), l.g.pausedByVideo = !0, a = -1 === t(this).find("iframe").data("videoSrc").indexOf("http") ? i : "", t(this).find("iframe").attr("src", a + t(this).find("iframe").data("videoSrc")), t(this).find(".ls-vpcontainer").delay(l.g.v.d).fadeOut(l.g.v.fo, function () { if ("auto" == l.o.autoPauseSlideshow && 1 == l.g.originalAutoSlideshow) { var t = setTimeout(function () { l.start() }, e.data("videoDuration") - l.g.v.d); e.data("videoTimer", t) } l.g.isAnimating = !1, 1 == l.g.resize && l.makeResponsive(l.g.curLayer, function () { l.g.resize = !1 }) }) }); var o = "&"; -1 == t(this).attr("src").indexOf("?") && (o = "?"); -1 == t(this).attr("src").indexOf("autoplay") ? t(this).data("videoSrc", t(this).attr("src") + o + "autoplay=1&wmode=opaque") : t(this).data("videoSrc", t(this).attr("src").replace("autoplay=0", "autoplay=1") + "&wmode=opaque"), t(this).data("originalWidth", t(this).attr("width")), t(this).data("originalHeight", t(this).attr("height")), t(this).attr("src", "") } }) }, play: function (t) { }, stop: function (t) { t.parent().find(".ls-vpcontainer").fadeIn(l.g.v.fi, function () { t.parent().find("iframe").attr("src", "") }) } }, html5: { init: function () { t(e).find("video, audio").each(function () { var e = void 0 !== t(this).attr("width") ? t(this).attr("width") : "640", i = void 0 !== t(this).attr("height") ? t(this).attr("height") : "" + t(this).height(); -1 === e.indexOf("%") && (e = parseInt(e)), -1 === i.indexOf("%") && (i = parseInt(i)), "100%" !== e || 0 !== i && "0" !== i && "100%" !== i || (t(this).attr("height", "100%"), i = "auto"), t(this).parent().addClass("ls-video-layer").css({ width: e, height: i }).data({ originalWidth: e, originalHeight: i }); t(this); t(this).on("ended", function () { "auto" === l.o.autoPauseSlideshow && !0 === l.g.originalAutoSlideshow && l.start() }), t(this).removeAttr("width").removeAttr("height").css({ width: "100%", height: "100%" }).click(function (t) { l.g.pausedByVideo || (this.paused && t.preventDefault(), this.play(), l.g.isAnimating = !0, l.g.paused ? (!1 !== l.o.autoPauseSlideshow && (l.g.paused = !1), l.g.originalAutoSlideshow = !0) : l.g.originalAutoSlideshow = l.g.autoSlideshow, !1 !== l.o.autoPauseSlideshow && l.stop(), l.g.pausedByVideo = !0, l.g.isAnimating = !1, !0 === l.g.resize && l.makeResponsive(l.g.curLayer, function () { l.g.resize = !1 })) }) }) }, play: function (t) { }, stop: function (t) { t[0].pause() } } }, l.change = function (i, a) { l.g.startSlideTime = l.g.pausedSlideTime = l.g.curSlideTime = !1, l.g.barTimer && l.g.barTimer.stop().delay(300).animate({ width: 0 }, 450), l.g.circleTimer && (l.g.circleTimer.fadeOut(500), l.g.cttl && l.g.cttl.reverse().duration(.35)), 1 == l.g.pausedByVideo && (l.g.pausedByVideo = !1, l.g.autoSlideshow = l.g.originalAutoSlideshow, l.g.curLayer.find('iframe[src*="youtube.com"], iframe[src*="youtu.be"], iframe[src*="youtube-nocookie.com"]').each(function () { l.media.youtube.stop(t(this)) }), l.g.curLayer.find('iframe[src*="player.vimeo"]').each(function () { l.media.vimeo.stop(t(this)) }), l.g.curLayer.find("video, audio").each(function () { l.media.html5.stop(t(this)) })), t(e).find('iframe[src*="youtube.com"], iframe[src*="youtu.be"], iframe[src*="youtube-nocookie.com"], iframe[src*="player.vimeo"]').each(function () { clearTimeout(t(this).data("videoTimer")) }), clearTimeout(l.g.slideTimer), l.g.nextLayerIndex = i, l.g.nextLayer = t(e).find(".ls-slide:eq(" + (l.g.nextLayerIndex - 1) + ")"), a || (l.g.curLayerIndex < l.g.nextLayerIndex ? l.g.prevNext = "next" : l.g.prevNext = "prev"); t(e).find('iframe[src*="youtube.com"], iframe[src*="youtu.be"], iframe[src*="youtube-nocookie.com"], iframe[src*="player.vimeo"]').length > 0 && l.g.v.fi, void 0 !== l.g.nextLayer[0] && l.imgPreload(l.g.nextLayer, function () { l.animate() }) }, l.imgPreload = function (i, a) { if (l.g.isLoading = !0, l.g.showSlider && t(e).css({ visibility: "visible" }), l.o.imgPreload) { var s = [], o = 0; if ("none" != i.css("background-image") && -1 != i.css("background-image").indexOf("url") && !i.hasClass("ls-preloaded") && !i.hasClass("ls-not-preloaded")) { var r = i.css("background-image"); r = r.match(/url\((.*)\)/)[1].replace(/"/gi, ""), s[s.length] = [r, i] } if (i.find("img:not(.ls-preloaded, .ls-not-preloaded)").each(function () { !0 === l.o.lazyLoad && t(this).attr("src", t(this).data("src")), s[s.length] = [t(this).attr("src"), t(this)] }), i.find("*").each(function () { if ("none" != t(this).css("background-image") && -1 != t(this).css("background-image").indexOf("url") && !t(this).hasClass("ls-preloaded") && !t(this).hasClass("ls-not-preloaded")) { var e = t(this).css("background-image"); e = e.match(/url\((.*)\)/)[1].replace(/"/gi, ""), s[s.length] = [e, t(this)] } }
1), 0 == s.length) t(".ls-thumbnail-wrapper, .ls-nav-next, .ls-nav-prev, .ls-bottom-nav-wrapper").css({ visibility: "visible" }), l.makeResponsive(i, a); else { l.g.ie78 ? l.g.li.css("display", "block") : l.g.li.delay(400).fadeIn(300); var n = function () { l.g.li.stop(!0, !0).css({ display: "none" }), t(".ls-thumbnail-wrapper, .ls-nav-next, .ls-nav-prev, .ls-bottom-nav-wrapper").css({ visibility: "visible" }), -1 !== navigator.userAgent.indexOf("Trident/7") || l.g.ie78 ? setTimeout(function () { l.makeResponsive(i, a) }, 50) : l.makeResponsive(i, a) }; for (x = 0; x < s.length; x++) t("<img>").data("el", s[x]).load(function () { t(this).data("el")[1].addClass("ls-preloaded"), ++o == s.length && n() }).error(function () { var e = t(this).data("el")[0].substring(t(this).data("el")[0].lastIndexOf("/") + 1, t(this).data("el")[0].length); window.console ? console.log('LayerSlider error:\r\n\r\nIt seems like the URL of the image or background image "' + e + '" is pointing to a wrong location and it cannot be loaded. Please check the URLs of all your images used in the slider.') : alert('LayerSlider error:\r\n\r\nIt seems like the URL of the image or background image "' + e + '" is pointing to a wrong location and it cannot be loaded. Please check the URLs of all your images used in the slider.'), t(this).addClass("ls-not-preloaded"), ++o == s.length && n() }).attr("src", s[x][0]) } } else t(".ls-thumbnail-wrapper, .ls-nav-next, .ls-nav-prev, .ls-bottom-nav-wrapper").css({ visibility: "visible" }), l.makeResponsive(i, a) }, l.makeResponsive = function (e, i) { e.css({ visibility: "hidden", display: "block" }), l.g.showShadow && l.g.showShadow(), l.resizeSlider(), "always" == l.o.thumbnailNavigation && l.resizeThumb(), e.children().each(function () { var e = t(this), i = e.data("originalLeft") ? e.data("originalLeft") : "0", a = e.data("originalTop") ? e.data("originalTop") : "0"; e.is("a") && e.children().length > 0 && (e.css({ display: "block" }), e = e.children()); var s = "auto", o = "auto"; e.data("originalWidth") && ("number" == typeof e.data("originalWidth") ? s = parseInt(e.data("originalWidth")) * l.g.ratio : -1 != e.data("originalWidth").indexOf("%") && (s = e.data("originalWidth"))), e.data("originalHeight") && ("number" == typeof e.data("originalHeight") ? o = parseInt(e.data("originalHeight")) * l.g.ratio : -1 != e.data("originalHeight").indexOf("%") && (o = e.data("originalHeight"))); var r = e.data("originalPaddingLeft") ? parseInt(e.data("originalPaddingLeft")) * l.g.ratio : 0, n = e.data("originalPaddingRight") ? parseInt(e.data("originalPaddingRight")) * l.g.ratio : 0, d = e.data("originalPaddingTop") ? parseInt(e.data("originalPaddingTop")) * l.g.ratio : 0, g = e.data("originalPaddingBottom") ? parseInt(e.data("originalPaddingBottom")) * l.g.ratio : 0, h = e.data("originalBorderLeft") ? parseInt(e.data("originalBorderLeft")) * l.g.ratio : 0, c = e.data("originalBorderRight") ? parseInt(e.data("originalBorderRight")) * l.g.ratio : 0, u = e.data("originalBorderTop") ? parseInt(e.data("originalBorderTop")) * l.g.ratio : 0, f = e.data("originalBorderBottom") ? parseInt(e.data("originalBorderBottom")) * l.g.ratio : 0, p = e.data("originalFontSize"), m = e.data("originalLineHeight"); if (l.g.responsiveMode || l.o.responsiveUnder > 0) { if (e.is("img") && !e.hasClass("ls-bg") && e.attr("src") && (e.css({ width: "auto", height: "auto" }), 0 != s && "auto" != s || "number" != typeof o || 0 == o || (s = o / e.height() * e.width()), 0 != o && "auto" != o || "number" != typeof s || 0 == s || (o = s / e.width() * e.height()), "auto" == s && (s = e.width() * l.g.ratio), "auto" == o && (o = e.height() * l.g.ratio), e.css({ width: s, height: o })), e.is("img") || e.css({ width: s, height: o, "font-size": parseInt(p) * l.g.ratio + "px", "line-height": parseInt(m) * l.g.ratio + "px" }), e.is("div") && e.find("iframe").data("videoSrc")) { var y = e.find("iframe"); y.attr("width", parseInt(y.data("originalWidth")) * l.g.ratio).attr("height", parseInt(y.data("originalHeight")) * l.g.ratio), e.css({ width: parseInt(y.data("originalWidth")) * l.g.ratio, height: parseInt(y.data("originalHeight")) * l.g.ratio }) } e.css({ padding: d + "px " + n + "px " + g + "px " + r + "px ", borderLeftWidth: h + "px", borderRightWidth: c + "px", borderTopWidth: u + "px", borderBottomWidth: f + "px" }) } if (e.hasClass("ls-bg")) { var v = l.g.i; e.css({ width: "auto", height: "auto" }), s = e.width(), o = e.height(); var b = l.g.ratio; -1 != l.g.sliderOriginalWidth.indexOf("%") && (l.g.sliderWidth() > s ? (b = l.g.sliderWidth() / s, l.g.sliderHeight() > o * b && (b = l.g.sliderHeight() / o)) : l.g.sliderHeight() > o && (b = l.g.sliderHeight() / o, l.g.sliderWidth() > s * b && (b = l.g.sliderWidth() / s))), e.css({ width: s * b, height: o * b, marginLeft: v.width() / 2 - s * b / 2, marginTop: v.height() / 2 - o * b / 2 }) } else { var w = e; e.parent().is("a") && (e = e.parent()); var x = 0; l.o.layersContainer ? x = l.o.layersContainer > 0 ? (l.g.sliderWidth() - l.o.layersContainer) / 2 : 0 : l.o.sublayerContainer && (x = l.o.sublayerContainer > 0 ? (l.g.sliderWidth() - l.o.sublayerContainer) / 2 : 0), x = x < 0 ? 0 : x, -1 != i.indexOf("%") ? e.css({ left: l.g.sliderWidth() / 100 * parseInt(i) - w.width() / 2 - r - h }) : (x > 0 || l.g.responsiveMode || l.o.responsiveUnder > 0) && e.css({ left: x + parseInt(i) * l.g.ratio }), -1 != a.indexOf("%") ? e.css({ top: l.g.sliderHeight() / 100 * parseInt(a) - w.height() / 2 - d - u }) : (l.g.responsiveMode || l.o.responsiveUnder > 0) && e.css({ top: parseInt(a) * l.g.ratio }) } }), e.css({ display: "none", visibility: "visible" }), l.resizeShadow(), i(), t(this).dequeue() }, l.resizeShadow = function () { if (l.g.shadowImg) { var t = function () { l.g.shadowImg.height() > 0 ? l.g.shadowBtmMod > 0 ? l.g.shadow.css({ height: l.g.shadowImg.height() / 2 }) : l.g.shadow.css({ height: l.g.shadowImg.height(), marginTop: -l.g.shadowImg.height() / 2 }) : setTimeout(function () { t() }, 50) }; t() } }, l.resizeSlider = function () { if (l.o.responsiveUnder > 0 && (t(window).width() < l.o.responsiveUnder ? (l.g.responsiveMode = !0, l.g.sliderOriginalWidth = l.o.responsiveUnder + "px") : (l.g.responsiveMode = !1, l.g.sliderOriginalWidth = l.g.sliderOriginalWidthRU, l.g.ratio = 1)), t(e).closest(".ls-wp-fullwidth-container").length && t(e).closest(".ls-wp-fullwidth-helper").css({ width: t(window).width() }), l.g.responsiveMode) { var i = t(e).parent(); !0 === l.o.fullScreen ? t(e).css({ width: "100%", height: t(window).height() }) : (t(e).css({ width: i.width() - parseInt(t(e).css("padding-left")) - parseInt(t(e).css("padding-right")) }), l.g.ratio = t(e).width() / parseInt(l.g.sliderOriginalWidth), t(e).css({ height: l.g.ratio * parseInt(l.g.sliderOriginalHeight) })) } else l.g.ratio = 1, t(e).css({ width: l.g.sliderOriginalWidth, height: l.g.sliderOriginalHeight }); if (t(e).closest(".ls-wp-fullwidth-container").length && (t(e).closest(".ls-wp-fullwidth-helper").css({ height: t(e).outerHeight(!0) }), t(e).closest(".ls-wp-fullwidth-container").css({ height: t(e).outerHeight(!0) }), t(e).closest(".ls-wp-fullwidth-helper").css({ width: t(window).width(), left: -t(e).closest(".ls-wp-fullwidth-container").offset().left }), -1 != l.g.sliderOriginalWidth.indexOf("%"))) { var a = parseInt(l.g.sliderOriginalWidth), s = t("body").width() / 100 * a - (t(e).outerWidth() - t(e).width()); t(e).width(s) } t(e).find(".ls-inner, .ls-lt-container").css({ width: l.g.sliderWidth(), height: l.g.sliderHeight() }), l.g.curLayer && l.g.nextLayer ? (l.g.curLayer.css({ width: l.g.sliderWidth(), height: l.g.sliderHeight() }), l.g.nextLayer.css({ width: l.g.sliderWidth(), height: l.g.sliderHeight() })) : t(e).find(".ls-slide").css({ width: l.g.sliderWidth(), height: l.g.sliderHeight() }) }, l.resizeYourLogo = function () { l.g.yourLogo.css({ width: l.g.yourLogo.data("originalWidth") * l.g.ratio, height: l.g.yourLogo.data("originalHeight") * l.g.ratio }), l.g.ie78 ? l.g.yourLogo.css("display", "block") : l.g.yourLogo.fadeIn(300); var i = oR = oT = oB = "auto"; i = l.g.yourLogo.data("originalLeft") && -1 != l.g.yourLogo.data("originalLeft").indexOf("%") ? l.g.sliderWidth() / 100 * parseInt(l.g.yourLogo.data("originalLeft")) - l.g.yourLogo.width() / 2 + parseInt(t(e).css("padding-left")) : parseInt(l.g.yourLogo.data("originalLeft")) * l.g.ratio, l.g.yourLogo.data("originalRight") && -1 != l.g.yourLogo.data("originalRight").indexOf("%") ? oR = l.g.sliderWidth() / 100 * parseInt(l.g.yourLogo.data("originalRight")) - l.g.yourLogo.width() / 2 + parseInt(t(e).css("padding-right")) : oR = parseInt(l.g.yourLogo.data("originalRight")) * l.g.ratio, l.g.yourLogo.data("originalTop") && -1 != l.g.yourLogo.data("originalTop").indexOf("%") ? oT = l.g.sliderHeight() / 100 * parseInt(l.g.yourLogo.data("originalTop")) - l.g.yourLogo.height() / 2 + parseInt(t(e).css("padding-top")) : oT = parseInt(l.g.yourLogo.data("originalTop")) * l.g.ratio, l.g.yourLogo.data("originalBottom") && -1 != l.g.yourLogo.data("originalBottom").indexOf("%") ? oB = l.g.sliderHeight() / 100 * parseInt(l.g.yourLogo.data("originalBottom")) - l.g.yourLogo.height() / 2 + parseInt(t(e).css("padding-bottom")) : oB = parseInt(l.g.yourLogo.data("originalBottom")) * l.g.ratio, l.g.yourLogo.css({ left: i, right: oR, top: oT, bottom: oB }) }, l.resizeThumb = function () { l.bottomNavSizeHelper("on"); var i = -1 == l.g.sliderOriginalWidth.indexOf("%") ? parseInt(l.g.sliderOriginalWidth) : l.g.sliderWidth();
1 t(e).find(".ls-thumbnail-slide a").css({ width: parseInt(l.o.tnWidth * l.g.ratio), height: parseInt(l.o.tnHeight * l.g.ratio) }), t(e).find(".ls-thumbnail-slide a:last").css({ margin: 0 }), t(e).find(".ls-thumbnail-slide").css({ height: parseInt(l.o.tnHeight * l.g.ratio) }); var a = t(e).find(".ls-thumbnail"), s = -1 == l.o.tnContainerWidth.indexOf("%") ? parseInt(l.o.tnContainerWidth) : parseInt(i / 100 * parseInt(l.o.tnContainerWidth)); a.css({ width: s * Math.floor(100 * l.g.ratio) / 100 }), a.width() > t(e).find(".ls-thumbnail-slide").width() && a.css({ width: t(e).find(".ls-thumbnail-slide").width() }), l.bottomNavSizeHelper("off") }, l.changeThumb = function (i) { var a = i || l.g.nextLayerIndex; t(e).find(".ls-thumbnail-slide a:not(.ls-thumb-" + a + ")").children().each(function () { t(this).removeClass("ls-thumb-active").stop().fadeTo(750, l.o.tnInactiveOpacity / 100) }), t(e).find(".ls-thumbnail-slide a.ls-thumb-" + a).children().addClass("ls-thumb-active").stop().fadeTo(750, l.o.tnActiveOpacity / 100) }, l.scrollThumb = function () { if (!t(e).find(".ls-thumbnail-slide-container").hasClass("ls-thumbn
1ail-slide-hover")) { var i = !!t(e).find(".ls-thumb-active").length && t(e).find(".ls-thumb-active").parent(); if (i) { var a = i.position().left + i.width() / 2, s = t(e).find(".ls-thumbnail-slide-container").width() / 2 - a; s = (s = s < t(e).find(".ls-thumbnail-slide-container").width() - t(e).find(".ls-thumbnail-slide").width() ? t(e).find(".ls-thumbnail-slide-container").width() - t(e).find(".ls-thumbnail-slide").width() : s) > 0 ? 0 : s, t(e).find(".ls-thumbnail-slide").animate({ marginLeft: s }, 600) } } }, l.bottomNavSizeHelper = function (i) { if (l.o.hoverBottomNav && !t(e).hasClass("ls-hover")) switch (i) { case "on": l.g.thumbsWrapper.css({ visibility: "hidden", display: "block" }); break; case "off": l.g.thumbsWrapper.css({ visibility: "visible", display: "none" }) } }, l.animate = function () { l.g.numYouTubeCurSlide = 0, t(e).find(".ls-slide").length > 1 && (l.g.isAnimating = !0), l.g.isLoading = !1, clearTimeout(l.g.slideTimer), clearTimeout(l.g.changeTimer), l.g.stopLayer = l.g.curLayer, l.o.cbAnimStart(l.g), "always" == l.o.thumbnailNavigation && (l.changeThumb(), "ontouchstart" in window || l.scrollThumb()), l.g.nextLayer.addClass("ls-animating"); var i = curLayerRight = curLayerTop = curLayerBottom = nextLayerLeft = nextLayerRight = nextLayerTop = nextLayerBottom = layerMarginLeft = layerMarginRight = layerMarginTop = layerMarginBottom = "auto", d = nextLayerWidth = l.g.sliderWidth(), g = nextLayerHeight = l.g.sliderHeight(), h = "prev" == l.g.prevNext ? l.g.curLayer : l.g.nextLayer, c = h.data("slidedirection") ? h.data("slidedirection") : l.o.slideDirection, u = l.g.slideDirections[l.g.prevNext][c]; switch ("left" != u && "right" != u || (d = curLayerTop = nextLayerWidth = nextLayerTop = 0, layerMarginTop = 0), "top" != u && "bottom" != u || (g = i = nextLayerHeight = nextLayerLeft = 0, layerMarginLeft = 0), u) { case "left": curLayerRight = nextLayerLeft = 0, layerMarginLeft = -l.g.sliderWidth(); break; case "right": i = nextLayerRight = 0, layerMarginLeft = l.g.sliderWidth(); break; case "top": curLayerBottom = nextLayerTop = 0, layerMarginTop = -l.g.sliderHeight(); break; case "bottom": curLayerTop = nextLayerBottom = 0, layerMarginTop = l.g.sliderHeight() } l.g.curLayer.css({ left: i, right: curLayerRight, top: curLayerTop, bottom: curLayerBottom }), l.g.nextLayer.css({ width: nextLayerWidth, height: nextLayerHeight, left: nextLayerLeft, right: nextLayerRight, top: nextLayerTop, bottom: nextLayerBottom }); var f = l.g.curLayer.data("delayout") ? parseInt(l.g.curLayer.data("delayout")) : l.o.delayOut, p = l.g.curLayer.data("durationout") ? parseInt(l.g.curLayer.data("durationout")) : l.o.durationOut, m = l.g.curLayer.data("easingout") ? l.g.curLayer.data("easingout") : l.o.easingOut, y = l.g.nextLayer.data("delayin") ? parseInt(l.g.nextLayer.data("delayin")) : l.o.delayIn, v = l.g.nextLayer.data("durationin") ? parseInt(l.g.nextLayer.data("durationin")) : l.o.durationIn; 0 === v && (v = 1); var b = l.g.nextLayer.data("easingin") ? l.g.nextLayer.data("easingin") : l.o.easingIn, w = function () { if (l.g.stopLayer.find(' > *[class*="ls-l"]').each(function () { t(this).data("tr") && t(this).data("tr").kill(), t(this).css({ filter: "none" }) }), l.g.curLayer = l.g.nextLayer, l.g.prevLayerIndex = l.g.curLayerIndex, l.g.curLayerIndex = l.g.nextLayerIndex, l.o.cbAnimStop(l.g), l.o.imgPreload && l.o.lazyLoad) { var i = l.g.curLayerIndex == l.g.layersNum ? 1 : l.g.curLayerIndex + 1; t(e).find(".ls-slide").eq(i - 1).find("img:not(.ls-preloaded)").each(function () { t(this).load(function () { t(this).addClass("ls-preloaded") }).error(function () { var e = t(this).data("src").substring(t(this).data("src").lastIndexOf("/") + 1, t(this).data("src").length); window.console ? console.log('LayerSlider error:\r\n\r\nIt seems like the URL of the image or background image "' + e + '" is pointing to a wrong location and it cannot be loaded. Please check the URLs of all your images used in the slider.') : alert('LayerSlider error:\r\n\r\nIt seems like the URL of the image or background image "' + e + '" is pointing to a wrong location and it cannot be loaded. Please check the URLs of all your images used in the slider.'), t(this).addClass("ls-not-preloaded") }).attr("src", t(this).data("src")) }) } t(e).find(".ls-slide").removeClass("ls-active"), t(e).find(".ls-slide:eq(" + (l.g.curLayerIndex - 1) + ")").addClass("ls-active").removeClass("ls-animating"), t(e).find(".ls-bottom-slidebuttons a").removeClass("ls-nav-active"), t(e).find(".ls-bottom-slidebuttons a:eq(" + (l.g.curLayerIndex - 1) + ")").addClass("ls-nav-active"), l.g.autoSlideshow && l.timer(), l.g.isAnimating = !1, 1 == l.g.resize && l.makeResponsive(l.g.curLayer, function () { l.g.resize = !1 }) }, x = function (e) { l.g.curLayer.find(' > *[class*="ls-l"]').each(function () { if (void 0 === t(this).data("originalSlide") || void 0 !== t(this).data("originalSlide") && t(this).data("originalSlide") !== l.g.curLayerIndex) { t(this).data("transitiontype") || l.transitionType(t(this)), t(this).removeClass("ls-videohack"); var i, s, o = t(this).data("slidedirection") ? t(this).data("slidedirection") : u;
1 switch (o) { case "left": i = -l.g.sliderWidth(), s = 0; break; case "right": i = l.g.sliderWidth(), s = 0; break; case "top": s = -l.g.sliderHeight(), i = 0; break; case "bottom": s = l.g.sliderHeight(), i = 0; break; case "fade": s = 0, i = 0 } if ("new" === t(this).data("transitiontype")) r = "new"; else var r = !!t(this).data("slideoutdirection") && t(this).data("slideoutdirection"); switch (r) { case "left": i = l.g.sliderWidth(), s = 0; break; case "right": i = -l.g.sliderWidth(), s = 0; break; case "top": s = l.g.sliderHeight(), i = 0; break; case "bottom": s = -l.g.sliderHeight(), i = 0; break; case "fade": s = 0, i = 0; break; case "new": i = t(this).data("offsetxout") ? "left" === t(this).data("offsetxout") ? l.g.sliderWidth() : "right" === t(this).data("offsetxout") ? -l.g.sliderWidth() : -parseInt(t(this).data("offsetxout")) : -l.lt.offsetXOut, s = t(this).data("offsetyout") ? "top" === t(this).data("offsetyout") ? l.g.sliderHeight() : "bottom" === t(this).data("offsetyout") ? -l.g.sliderHeight() : -parseInt(t(this).data("offsetyout")) : -l.lt.offsetYOut } var n = curSubRotateX = curSubRotateY = curSubScale = curSubSkewX = curSubSkewY = curSubScaleX = curSubScaleY = "none"; n = t(this).data("rotateout") ? t(this).data("rotateout") : l.lt.rotateOut, curSubRotateX = t(this).data("rotatexout") ? t(this).data("rotatexout") : l.lt.rotateXOut, curSubRotateY = t(this).data("rotateyout") ? t(this).data("rotateyout") : l.lt.rotateYOut, curSubScale = t(this).data("scaleout") ? t(this).data("scaleout") 
1: l.lt.scaleOut, curSubSkewX = t(this).data("skewxout") ? t(this).data("skewxout") : l.lt.skewXOut, curSubSkewY = t(this).data("skewyout") ? t(this).data("skewyout") : l.lt.skewYOut, 1 === curSubScale ? (curSubScaleX = t(this).data("scalexout") ? t(this).data("scalexout") : l.lt.scaleXOut, curSubScaleY = t(this).data("scaleyout") ? t(this).data("scaleyout") : l.lt.scaleYOut) : curSubScaleX = curSubScaleY = curSubScale; for (var d = t(this).data("transformoriginout") ? t(this).data("transformoriginout").split(" ") : l.lt.transformOriginOut, g = 0; g < d.length; g++) -1 === d[g].indexOf("%") && -1 !== d[g].indexOf("left") && -1 !== d[g].indexOf("right") && -1 !== d[g].indexOf("top") && -1 !== d[g].indexOf("bottom") && (d[g] = parseInt(d[g]) * l.g.ratio + "px"); var h = d.join(" "), c = t(this).data("perspectiveout") ? t(this).data("perspectiveout") : l.lt.perspectiveOut, f = parseInt(t(this).css("left")), p = parseInt(t(this).css("top")), m = parseInt(t(this).attr("class").split("ls-l")[1]), y = t(this).outerWidth() > t(this).outerHeight() ? t(this).outerWidth() : t(this).outerHeight(), v = 0 === parseInt(n) ? t(this).outerWidth() : y, b = 0 === parseInt(n) ? t(this).outerHeight() : y; if (-1 === m && "new" !== r || "left" === t(this).data("offsetxout") || "right" === t(this).data("offsetxout") ? i < 0 ? i = -(l.g.sliderWidth() - f + (curSubScaleX / 2 - .5) * v + 100) : i > 0 && (i = f + (curSubScaleX / 2 + .5) * v + 100) : i *= l.g.ratio, -1 === m && "new" !== r || "top" === t(this).data("offsetyout") || "bottom" === t(this).data("offsetyout") ? s < 0 ? s = -(l.g.sliderHeight() - p + (curSubScaleY / 2 - .5) * b + 100) : s > 0 && (s = p + (curSubScaleY / 2 + .5) * b + 100) : s *= l.g.ratio, -1 === m || "new" === r) w = 1; else var w = m * (l.g.curLayer.data("parallaxout") ? parseInt(l.g.curLayer.data("parallaxout")) : l.o.parallaxOut); if ("new" === t(this).data("transitiontype")) var x = l.lt.delayOut, S = l.lt.durationOut, L = l.lt.easingOut; else var x = l.o.delayOut, S = l.o.durationOut, L = l.o.easingOut; var T = t(this).data("delayout") ? parseInt(t(this).data("delayout")) : x, k = t(this).data("durationout") ? parseInt(t(this).data("durationout")) : S; 0 === k && (k = 1); var I = t(this).data("easingout") ? t(this).data("easingout") : L; e && (T = 0, k = e), t(this).data("showUntilTimer") && clearTimeout(t(this).data("showUntilTimer")); var O = { visibility: "hidden" }, C = t(this), W = { rotation: n, rotationX: curSubRotateX, rotationY: curSubRotateY, skewX: curSubSkewX, skewY: curSubSkewY, scaleX: curSubScaleX, scaleY: curSubScaleY, x: -i * w, y: -s * w, delay: T / 1e3, ease: a(I), onComplete: function () { C.css(O) } }; ("fade" == r || !r && "fade" === o || "false" !== t(this).data("fadeout") && "new" === t(this).data("transitiontype")) && (W.opacity = 0, O.opacity = t(this).data("originalOpacity")), t(this).data("tr") && t(this).data("tr").kill(), TweenLite.set(t(this)[0], { transformOrigin: h, transformPerspective: c }), t(this).data("tr", TweenLite.to(t(this)[0], k / 1e3, W)) } }) }, S = function () { l.g.totalDuration && (f = 0), "function" == typeof l.o.cbTimeLineStart && l.o.cbTimeLineStart(l.g, f + y), l.g.nextLayer.find(' > *[class*="ls-l"]').each(function () { if (t(this).data("transitiontype") || l.transitionType(t(this)), "new" === t(this).data("transitiontype")) e = "new"; else var e = t(this).data("slidedirection") ? t(this).data("slidedirection") : u; var i, s; switch (e) { case "left": i = -l.g.sliderWidth(), s = 0; break; case "right": i = l.g.sliderWidth(), s = 0; break; case "top": s = -l.g.sliderHeight(), i = 0; break; case "bottom": s = l.g.sliderHeight(), i = 0; break; case "fade": s = 0, i = 0; break; case "new": i = t(this).data("offsetxin") ? "left" === t(this).data("offsetxin") ? -l.g.sliderWidth() : "right" === t(this).data("offsetxin") ? l.g.sliderWidth() : parseInt(t(this).data("offsetxin")) : l.lt.offsetXIn, s = t(this).data("offsetyin") ? "top" === t(this).data("offsetyin") ? -l.g.sliderHeight() : "bottom" === t(this).data("offsetyin") ? l.g.sliderHeight() : parseInt(t(this).data("offsetyin")) : l.lt.offsetYIn } var o = nextSubRotateX = nextSubRotateY = nextSubScale = nextSubSkewX 
1= nextSubSkewY = nextSubScaleX = nextSubScaleY = "none"; o = t(this).data("rotatein") ? t(this).data("rotatein") : l.lt.rotateIn, nextSubRotateX = t(this).data("rotatexin") ? t(this).data("rotatexin") : l.lt.rotateXIn, nextSubRotateY = t(this).data("rotateyin") ? t(this).data("rotateyin") : l.lt.rotateYIn, nextSubScale = t(this).data("scalein") ? t(this).data("scalein") : l.lt.scaleIn, nextSubSkewX = t(this).data("skewxin") ? t(this).data("skewxin") : l.lt.skewXIn, nextSubSkewY = t(this).data("skewyin") ? t(this).data("skewyin") : l.lt.skewYIn, 1 === nextSubScale ? (nextSubScaleX = t(this).data("scalexin") ? t(this).data("scalexin") : l.lt.scaleXIn, nextSubScaleY = t(this).data("scaleyin") ? t(this).data("scaleyin") : l.lt.scaleYIn) : nextSubScaleX = nextSubScaleY = nextSubScale; for (var r = t(this).data("transformoriginin") ? t(this).data("transformoriginin").split(" ") : l.lt.transformOriginIn, n = 0; n < r.length; n++) -1 === r[n].indexOf("%") && -1 !== r[n].indexOf("left") && -1 !== r[n].indexOf("right") && -1 !== r[n].indexOf("top") && -1 !== r[n].indexOf("bottom") && (r[n] = parseInt(r[n]) * l.g.ratio + "px"); var d = r.join(" "), g = t(this).data("perspectivein") ? t(this).data("perspectivein") : l.lt.perspectiveIn, h = parseInt(t(this).css("left")), c = parseInt(t(this).css("top")), f = parseInt(t(this).attr("class").split("ls-l")[1]); -1 !== t(this)[0].style.width.indexOf("%") && t(this).css({ width: l.g.sliderWidth() / 100 * parseInt(t(this)[0].style.width) }); var p = t(this).outerWidth() > t(this).outerHeight() ? t(this).outerWidth() : t(this).outerHeight(), m = 0 === parseInt(o) ? t(this).outerWidth() : p, y = 0 === parseInt(o) ? t(this).outerHeight() : p; if (-1 === f && "new" !== e || "left" === t(this).data("offsetxin") || "right" === t(this).data("offsetxin") ? i < 0 ? i = -(h + (nextSubScaleX / 2 + .5) * m + 100) : i > 0 && (i = l.g.sliderWidth() - h + (nextSubScaleX / 2 - .5) * m + 100) : i *= l.g.ratio, -1 === f && "new" !== e || "top" === t(this).data("offsetyin") || "bottom" === t(this).data("offsetyin") ? s < 0 ? s = -(c + (nextSubScaleY / 2 + .5) * y + 100) : s > 0 && (s = l.g.sliderHeight() - c + (nextSubScaleY / 2 - .5) * y + 100) : s *= l.g.ratio, -1 === f || "new" === e) v = 1; else var v = f * (l.g.nextLayer.data("parallaxin") ? parseInt(l.g.nextLayer.data("parallaxin")) : l.o.parallaxIn); if ("new" === t(this).data("transitiontype")) var b = l.lt.delayIn, w = l.lt.durationIn, x = l.lt.easingIn; else var b = l.o.delayIn, w = l.o.durationIn, x = l.o.easingIn; var S = t(this).data("delayin") ? parseInt(t(this).data("delayin")) : b, L = t(this).data("durationin") ? parseInt(t(this).data("durationin")) : w, T = t(this).data("easingin") ? t(this).data("easingin") : x, k = t(this), I = function () { k.hasClass("ls-video-layer") && k.addClass("ls-videohack"), 1 == l.o.autoPlayVideos && (k.find(".ls-videopreview").click(), k.find("video, audio").each(function () { 0 !== typeof t(this)[0].currentTime && (t(this)[0].currentTime = 0), t(this).click() })), (!k.hasClass("ls-video-layer") || k.hasClass("ls-video-layer") && !1 === l.o.autoPlayVideos) && k.data("showuntil") > 0 && k.data("showUntilTimer", setTimeout(function () { l.sublayerShowUntil(k) }, k.data("showuntil"))) }; t(this).css({ marginLeft: 0, marginTop: 0 }); var O = { scaleX: nextSubScaleX, scaleY: nextSubScaleY, skewX: nextSubSkewX, skewY: nextSubSkewY, rotation: o, rotationX: nextSubRotateX, rotationY: nextSubRotateY, visibility: "visible", x: i * v, y: s * v }, C = { rotation: 0, rotationX: 0, rotationY: 0, skewX: 0, skewY: 0, scaleX: 1, scaleY: 1, ease: a(T), delay: S / 1e3, x: 0, y: 0, onComplete: function () { I() } }; (-1 != e.indexOf("fade") || "false" !== t(this).data("fadein") && "new" === t(this).data("transitiontype")) && (O.opacity = 0, C.opacity = t(this).data("originalOpacity")), t(this).data("tr") && t(this).data("tr").kill(), TweenLite.set(t(this)[0], { transformPerspective: g, transformOrigin: d }), t(this).data("tr", TweenLite.fromTo(t(this)[0], L / 1e3, O, C)) }) }, L = function (t, e) { var i, a = -1 == t.indexOf("custom") ? l.t : l.ct, s = "3d"; if (-1 != t.indexOf("2d") && (s = "2d"), -1 != e.indexOf("last")) i = a["t" + s].length - 1, "last"; else if (-1 != e.indexOf("all")) i = Math.floor(Math.random() * n(a["t" + s])), "random from all"; else { var o = e.split(","), r = o.length; i = parseInt(o[Math.floor(Math.random() * r)]) - 1, "random from specified" } T(s, a["t" + s][i]) }, T = function (e, i) { var o = l.g.i, n = l.g.curLayer.find('*[class*="ls-l"]').length > 0 ? 1e3 : 0, d = -1 != i.name.toLowerCase().indexOf("carousel"), g = -1 != i.name.toLowerCase().indexOf("crossfad"), h = typeof i.cols, c = typeof i.rows; switch (h) { case "number": h = i.cols; break; case "string": h = Math.floor(Math.random() * (parseInt(i.cols.split(",")[1]) 
1- parseInt(i.cols.split(",")[0]) + 1)) + parseInt(i.cols.split(",")[0]); break; default: h = Math.floor(Math.random() * (i.cols[1] - i.cols[0] + 1)) + i.cols[0] } switch (c) { case "number": c = i.rows; break; case "string": c = Math.floor(Math.random() * (parseInt(i.rows.split(",")[1]) - parseInt(i.rows.split(",")[0]) + 1)) + parseInt(i.rows.split(",")[0]); break; default: c = Math.floor(Math.random() * (i.rows[1] - i.rows[0] + 1)) + i.rows[0] } (1 == l.g.isMobile() && 1 == l.o.optimizeForMobile || l.g.ie78 && 1 == l.o.optimizeForIE78) && (h >= 15 ? h = 7 : h >= 5 ? h = 4 : h >= 4 ? h = 3 : h > 2 && (h = 2), c >= 15 ? c = 7 : c >= 5 ? c = 4 : c >= 4 ? c = 3 : c > 2 && (c = 2), c > 2 && h > 2 && (c = 2, h > 4 && (h = 4))); var u = l.g.i.width() / h, f = l.g.i.height() / c; l.g.ltContainer ? l.g.ltContainer.stop(!0, !0).empty().css({ display: "block", width: o.width(), height: o.height() }) : l.g.ltContainer = t("<div>").addClass("ls-lt-container").addClass("ls-overflow-hidden").css({ width: o.width(), height: o.height() }).prependTo(o); var p = o.width() - Math.floor(u) * h, m = o.height() - Math.floor(f) * c, y = []; y.randomize = function () { var t, e, i, a = this.length; if (0 == a) return !1; for (; --a;) t = Math.floor(Math.random() * (a + 1)), e = this[a], i = this[t], this[a] = i, this[t] = e; return this }; for (var v = 0; v < h * c; v++) y.push(v); switch (i.tile.sequence) { case "reverse": y.reverse(); break; case "col-forward": y = r(c, h, "forward"); break; case "col-reverse": y = r(c, h, "reverse"); break; case "random": y.randomize() } var b = l.g.curLayer.find(".ls-bg"), L = l.g.nextLayer.find(".ls-bg"); if (0 == b.length && 0 == L.length && (e = "2d", (i = t.extend(!0, {}, l.t.t2d[0])).transition.duration = 1, i.tile.delay = 0), "3d" == e) { l.g.totalDuration = (h * c - 1) * i.tile.delay; var T = 0; i.before && i.before.duration && (T += i.before.duration), i.animation && i.animation.duration && (T += i.animation.duration), i.after && i.after.duration && (T += i.after.duration), l.g.totalDuration += T; var k = 0; i.before && i.before.delay && (k += i.before.delay), i.animation && i.animation.delay && (k += i.animation.delay), i.after && i.after.delay && (k += i.after.delay), l.g.totalDuration += k } else l.g.totalDuration = (h * c - 1) * i.tile.delay + i.transition.duration, l.g.curTiles = t("<div>").addClass("ls-curtiles").appendTo(l.g.ltContainer), l.g.nextTiles = t("<div>").addClass("ls-nexttiles").appendTo(l.g.ltContainer); for (var I = l.g.prevNext, O = 0; O < h * c; O++) { var C, W, X = O % h == 0 ? p : 0, Y = O > (c - 1) * h - 1 ? m : 0, H = t("<div>").addClass("ls-lt-tile").css({ width: Math.floor(u) + X, height: Math.floor(f) + Y }).appendTo(l.g.ltContainer); if ("3d" == e) { H.addClass("ls-3d-container"); var P, M = Math.floor(u) + X, N = Math.floor(f) + Y, B = M / 2, R = N / 2, A = (P = "horizontal" == i.animation.direction ? Math.abs(i.animation.transition.rotateY) > 90 && "large" != i.tile.depth ? Math.floor(M / 7) + X : M : Math.abs(i.animation.transition.rotateX) > 90 && "large" != i.tile.depth ? Math.floor(N / 7) + Y : N) / 2, z = function (e, i, a, s, o, r, n, d, l) { t("<div>").addClass(e).css({ width: a, height: s, "-o-transform": "translate3d(" + o + "px, " + r + "px, " + n + "px) rotateX(" + d + "deg) rotateY(" + l + "deg) rotateZ(0deg) scale3d(1, 1, 1)", "-ms-transform": "translate3d(" + o + "px, " + r + "px, " + n + "px) rotateX(" + d + "deg) rotateY(" + l + "deg) rotateZ(0deg) scale3d(1, 1, 1)", "-moz-transform": "translate3d(" + o + "px, " + r + "px, " + n + "px) rotateX(" + d + "deg) rotateY(" + l + "deg) rotateZ(0deg) scale3d(1, 1, 1)", "-webkit-transform": "translate3d(" + o + "px, " + r + "px, " + n + "px) rotateX(" + d + "deg) rotateY(" + l + "deg) rotateZ(0deg) scale3d(1, 1, 1)", transform: "translate3d(" + o + "px, " + r + "px, " + n + "px) rotateX(" + d + "deg) rotateY(" + l + "deg) rotateZ(0deg) scale3d(1, 1, 1)" }).appendTo(i) }; z("ls-3d-box", H, 0, 0, 0, 0, -A, 0, 0); "vertical" == i.animation.direction && Math.abs(i.animation.transition.rotateX) > 90 ? z("ls-3d-back", H.find(".ls-3d-box"), M, N, -B, -R, -A, 180, 0) : z("ls-3d-back", H.find(".ls-3d-box"), M, N, -B, -R, -A, 0, 180), z("ls-3d-bottom", H.find(".ls-3d-box"), M, P, -B, R - A, 0, -90, 0), z("ls-3d-top", H.find(".ls-3d-box"), M, P, -B, -R - A, 0, 90, 0
1), z("ls-3d-front", H.find(".ls-3d-box"), M, N, -B, -R, A, 0, 0), z("ls-3d-left", H.find(".ls-3d-box"), P, N, -B - A, -R, 0, 0, -90), z("ls-3d-right", H.find(".ls-3d-box"), P, N, B - A, -R, 0, 0, 90), C = H.find(".ls-3d-front"), W = "horizontal" == i.animation.direction ? Math.abs(i.animation.transition.rotateY) > 90 ? H.find(".ls-3d-back") : H.find(".ls-3d-left, .ls-3d-right") : Math.abs(i.animation.transition.rotateX) > 90 ? H.find(".ls-3d-back") : H.find(".ls-3d-top, .ls-3d-bottom"); var D = y[O] * i.tile.delay, U = l.g.ltContainer.find(".ls-3d-container:eq(" + O + ") .ls-3d-box"), F = new TimelineLite; i.before && i.before.transition ? (i.before.transition.delay = i.before.transition.delay ? (i.before.transition.delay + D) / 1e3 : D / 1e3, F.to(U[0], i.before.duration / 1e3, s(i.before.transition, i.before.easing))) : i.animation.transition.delay = i.animation.transition.delay ? (i.animation.transition.delay + D) / 1e3 : D / 1e3, F.to(U[0], i.animation.duration / 1e3, s(i.animation.transition, i.animation.easing)), i.after && (i.after.transition || (i.after.transition = {}), F.to(U[0], i.after.duration / 1e3, s(i.after.transition, i.after.easing, "after"))) } else { var q = L1 = T2 = L2 = "auto", j = O2 = 1; if ("random" == i.transition.direction) var V = ["top", "bottom", "right", "left"], Q = V[Math.floor(Math.random() * V.length)]; else Q = i.transition.direction; if (-1 != i.name.toLowerCase().indexOf("mirror") && O % 2 == 0 && (I = "prev" == I ? "next" : "prev"), "prev" == I) switch (Q) { case "top": Q = "bottom"; break; case "bottom": Q = "top"; break; case "left": Q = "right"; break; case "right": Q = "left"; break; case "topleft": Q = "bottomright"; break; case "topright": Q = "bottomleft"; break; case "bottomleft": Q = "topright"; break; case "bottomright": Q = "topleft" } switch (Q) { case "top": q = T2 = -H.height(), L1 = L2 = 0; break; case "bottom": q = T2 = H.height(), L1 = L2 = 0; break; case "left": q = T2 = 0, L1 = L2 = -H.width(); break; case "right": q = T2 = 0, L1 = L2 = H.width(); break; case "topleft": q = H.height(), T2 = 0, L1 = H.width(), L2 = 0; break; case "topright": q = H.height(), T2 = 0, L1 = -H.width(), L2 = 0; break; case "bottomleft": q = -H.height(), T2 = 0, L1 = H.width(), L2 = 0; break; case "bottomright": q = -H.height(), T2 = 0, L1 = -H.width(), L2 = 0 } switch (l.g.scale2D = i.transition.scale ? i.transition.scale : 1, 1 == d && 1 != l.g.scale2D && (q /= 2, T2 /= 2, L1 /= 2, L2 /= 2), i.transition.type) { case "fade": q = T2 = L1 = L2 = 0, j = 0, O2 = 1; break; case "mixed": j = 0, O2 = 1, 1 == l.g.scale2D && (T2 = L2 = 0) } if ((i.transition.rotate || i.transition.rotateX || i.transition.rotateY || 1 != l.g.scale2D) && !l.g.ie78 && "slide" != i.transition.type ? H.css({ overflow: "visible" }) : H.css({ overflow: "hidden" }), 1 == d ? l.g.curTiles.css({ overflow: "visible" }) : l.g.curTiles.css({ overflow: "hidden" }), 1 == g || "slide" == i.transition.type || 1 == d) { var E = H.appendTo(l.g.curTiles), G = H.clone().appendTo(l.g.nextTiles); C = t("<div>").addClass("ls-curtile").appendTo(E) } else G = H.appendTo(l.g.nextTiles); W = t("<div>").addClass("ls-nexttile").appendTo(G).css({ top: -q, left: -L1, dispay: "block", opacity: j }); var Z = y[O] * i.tile.delay, _ = i.transition.rotate ? i.transition.rotate : 0, J = i.transition.rotateX ? i.transition.rotateX : 0, $ = i.transition.rotateY ? i.transition.rotateY : 0; if ("prev" == I && (_ = -_, J = -J, $ = -$), TweenLite.fromTo(W[0], i.transition.duration / 1e3, { rotation: _, rotationX: J, rotationY: $, scale: l.g.scale2D }, { delay: Z / 1e3, top: 0, left: 0, opacity: O2, rotation: 0, rotationX: 0, rotationY: 0, scale: 1, ease: a(i.transition.easing) }), 1 == g && (L.length < 1 || L.length > 0 && (-1 != L.attr("src").toLowerCase().indexOf("png") || L.width() < l.g.sliderWidth() || L.height() < l.g.sliderHeight())) && TweenLite.to(C[0], i.transition.duration / 1e3, { delay: Z / 1e3, opacity: 0, ease: a(i.transition.easing) }), ("slide" == i.transition.type || 1 == d) && -1 == i.name.toLowerCase().indexOf("mirror")) { var K = 0; 0 != _ && (K = -_), TweenLite.to(C[0], i.transition.duration / 1e3, { delay: Z / 1e3, top: T2, left: L2, rotation: K, scale: l.g.scale2D, opacity: j, ease: a(i.transition.easing) }) } } b.length && ("3d" == e || "2d" == e && (1 == g || "slide" == i.transition.type || 1 == d) ? C.append(t("<img>").attr("alt", b.attr("alt")).attr("src", b.attr("src")).css({ width: b[0].style.width, height: b[0].style.height, marginLeft: parseFloat(b.css("margin-left")) - parseFloat(H.position().left), marginTop: parseFloat(b.css("margin-top")) - parseFloat(H.position().top) })) : 0 == l.g.curTiles.children().length && l.g.curTiles.append(t("<img>").attr("alt", b.attr("alt")).attr("src", b.attr("src")).css({ width: b[0].style.width, height: b[0].style.height, marginLeft: parseFloat(b.css("margin-left")), marginTop: parseFloat(b.css("margin-top")) }))), L.length && W.append(t("<img>").attr("alt", L.attr("alt")).attr("src", L.attr("src")).css({ width: L[0].style.width, height: L[0].style.height, marginLeft: parseFloat(L.css("margin-left")) - parseFloat(H.position().left), marginTop: parseFloat(L.css("margin-top")) - parseFloat(H.position().top) })) } var tt = l.g.curLayer, et = l.g.nextLayer; setTimeout(function () { tt.find(".ls-bg").css({ visibility: "hidden" }) }, 50), et.find(".ls-bg").css({ visibility: "hidden" }), l.g.ltContainer.removeClass("ls-overflow-hidden"), x(n), 0 === n && (n = 10), setTimeout(function () { tt.css({ width: 0 }) }, n); var it = parseInt(et.data("timeshift")) ? parseInt(et.data("timeshift")) : 0, at = l.g.totalDuration + it > 0 ? l.g.totalDuration + it : 0; setTimeout(function () { 1 == l.g.resize && (l.g.ltContainer.empty(), tt.removeClass("ls-active"), l.makeResponsive(et, function () { l.g.resize = !1 })), S(), (et.find(".ls-bg").length < 1 || et.find(".ls-bg").length > 0 && -1 != et.find(".ls-bg").attr("src").toLowerCase().indexOf("png")) && l.g.ltContainer.delay(350).fadeOut(300, function () { t(this).empty().show() }), et.css({ width: l.g.sliderWidth(), height: l.g.sliderHeight() }) }, at), l.g.totalDuration < 300 && (l.g.totalDuration = 1e3), setTimeout(function () { l.g.ltContainer.addClass("ls-overflow-hidden"), et.find(".ls-bg").length ? (et.find(".ls-bg").css({ display: "none", visibility: "visible" }), l.g.ie78 ? (et.find(".ls-bg").css("display", "block"), setTimeout(function () { w() }, 500)) : et.find(".ls-bg").fadeIn(500, function () { w() })) : w() }, l.g.totalDuration) }, k = (l.g.nextLayer.data("transition3d") || l.g.nextLayer.data("transition2d")) && l.t || (l.g.nextLayer.data("customtransition3d") || l.g.nextLayer.data("customtransition2d")) && l.ct ? "new" : "old"; if (l.g.nextLayer.data("transitiontype") || l.transitionType(l.g.nextLayer), "new" === l.g.nextLayer.data("transitiontype") && (k = "new"), l.o.slideTransition && (k = "forced"), l.o.animateFirstSlide && !l.g.firstSlideAnimated) { if (1 == l.g.layersNum) { f = 0; l.o.cbAnimStop(l.g) } else { var I = parseInt(l.g.nextLayer.data("timeshift")) ? parseInt(l.g.nextLayer.data("timeshift")) : 0, O = "new" == k ? 0 : p; l.g.t5 = setTimeout(function () { w() }, O + Math.abs(I)) } l.g.totalDuration = !0, !0 === l.o.startInViewport ? function () { l.g.nextLayer.find(' > *[class*="ls-l"]').each(function () { t(this).css({ visibility: "hidden" }) }), l.g.sliderTop = t(e).offset().top, t(window).load(function () { setTimeout(function () { l.g.sliderTop = t(e).offset().top }, 20) }); var i = function () { t(window).scrollTop() + t(window).height() - l.g.sliderHeight() / 2 > l.g.sliderTop && (l.g.firstSlideAnimated = !0, !0 === l.g.originalAutoStart && (l.o.autoStart = !0, l.start()), S()) }; t(window).scroll(function () { l.g.firstSlideAnimated || i() }), i() }
1() : (l.g.firstSlideAnimated = !0, S()), l.g.nextLayer.css({ width: l.g.sliderWidth(), height: l.g.sliderHeight() }), l.g.ie78 || l.g.nextLayer.find(".ls-bg").css({ display: "none" }).fadeIn(l.o.sliderFadeInDuration), l.g.isLoading = !1 } else switch (k) { case "old": l.g.totalDuration = !1, l.g.ltContainer && l.g.ltContainer.empty(), l.g.curLayer.delay(f + p / 15).animate({ width: d, height: g }, p, m, function () { w() }), x(), l.g.nextLayer.delay(f + y).animate({ width: l.g.sliderWidth(), height: l.g.sliderHeight() }, v, b), S(); break; case "new": "undefined" != typeof LSCustomTransition ? o(t(e)) && -1 != LSCustomTransition.indexOf("3d") ? L("3d", LSCustomTransition.split(":")[1]) : -1 != LSCustomTransition.indexOf("3d") ? L("2d", "all") : L("2d", LSCustomTransition.split(":")[1]) : function () { if (o(t(e)) && (l.g.nextLayer.data("transition3d") || l.g.nextLayer.data("customtransition3d"))) if (l.g.nextLayer.data("transition3d") && l.g.nextLayer.data("customtransition3d")) { var i = Math.floor(2 * Math.random()), a = [["3d", l.g.nextLayer.data("transition3d")], ["custom3d", l.g.nextLayer.data("customtransition3d")]]; L(a[i][0], a[i][1]) } else l.g.nextLayer.data("transition3d") ? L("3d", l.g.nextLayer.data("transition3d")) : L("custom3d", l.g.nextLayer.data("customtransition3d")); else if (l.g.nextLayer.data("transition2d") && l.g.nextLayer.data("customtransition2d")) { var i = Math.floor(2 * Math.random()), a = [["2d", l.g.nextLayer.data("transition2d")], ["custom2d", l.g.nextLayer.data("customtransition2d")]]; L(a[i][0], a[i][1]) } else l.g.nextLayer.data("transition2d") ? L("2d", l.g.nextLayer.data("transition2d")) : l.g.nextLayer.data("customtransition2d") ? L("custom2d", l.g.nextLayer.data("customtransition2d")) : L("2d", "1") }(); break; case "forced": T(l.o.slideTransition.type, l.o.slideTransition.obj) } }, l.transitionType = function (t) { var e = !t.data("ls") && (t.data("ls") || t.data("slidedelay") || t.data("slidedirection") || t.data("slideoutdirection") || t.data("delayin") || t.data("delayout") || t.data("durationin") || t.data("durationout") || t.data("showuntil") || t.data("easingin") || t.data("easingout") || t.data("scalein") || t.data("scaleout") || t.data("rotatein") || t.data("rotateout")) ? "old" : "new"; t.data("transitiontype", e) }, l.sublayerShowUntil = function (t) { t.data("transitiontype") || l.transitionType(t), t.removeClass("ls-videohack"); var e = l.g.curLayer; "prev" != l.g.prevNext && l.g.nextLayer && (e = l.g.nextLayer); var i, s, o = e.data("slidedirection") ? e.data("slidedirection") : l.o.slideDirection, r = l.g.slideDirections[l.g.prevNext][o], n = t.data("slidedirection") ? t.data("slidedirection") : r; switch (n) { case "left": i = -l.g.sliderWidth(), s = 0; break; case "right": i = l.g.sliderWidth(), s = 0; break; case "top": s = -l.g.sliderHeight(), i = 0; break; case "bottom": s = l.g.sliderHeight(), i = 0; break; case "fade": s = 0, i = 0 } if ("new" === t.data("transitiontype")) d = "new"; else var d = !!t.data("slideoutdirection") && t.data("slideoutdirection"); switch (d) { case "left": i = l.g.sliderWidth(), s = 0; break; case "right": i = -l.g.sliderWidth(), s = 0; break; case "top": s = l.g.sliderHeight(), i = 0; break; case "bottom": s = -l.g.sliderHeight(), i = 0; break; case "fade": s = 0, i = 0; break; case "new": i = t.data("offsetxout") ? "left" === t.data("offsetxout") ? l.g.sliderWidth() : "right" === t.data("offsetxout") ? -l.g.sliderWidth() : -parseInt(t.data("offsetxout")) : -l.lt.offsetXOut, s = t.data("offsetyout") ? "top" === t.data("offsetyout") ? l.g.sliderHeight() : "bottom" === t.data("offsetyout") ? -l.g.sliderHeight() : -parseInt(t.data("offsetyout")) : -l.lt.offsetYOut } var g = curSubRotateX = curSubRotateY = curSubScale = curSubSkewX = curSubSkewY = curSubScaleX = curSubScaleY = "none"; g = t.data("rotateout") ? t.data("rotateout") : l.lt.rotateOut, curSubRotateX = t.data("rotatexout") ? t.data("rotatexout") : l.lt.rotateXOut, curSubRotateY = t.data("rotateyout") ? t.data("rotateyout") : l.lt.rotateYOut, curSubScale = t.data("scaleout") ? t.data("scaleout") 
1: l.lt.scaleOut, curSubSkewX = t.data("skewxout") ? t.data("skewxout") : l.lt.skewXOut, curSubSkewY = t.data("skewyout") ? t.data("skewyout") : l.lt.skewYOut, 1 === curSubScale ? (curSubScaleX = t.data("scalexout") ? t.data("scalexout") : l.lt.scaleXOut, curSubScaleY = t.data("scaleyout") ? t.data("scaleyout") : l.lt.scaleYOut) : curSubScaleX = curSubScaleY = curSubScale; for (var h = t.data("transformoriginout") ? t.data("transformoriginout").split(" ") : l.lt.transformOriginOut, c = 0; c < h.length; c++) -1 === h[c].indexOf("%") && -1 !== h[c].indexOf("left") && -1 !== h[c].indexOf("right") && -1 !== h[c].indexOf("top") && -1 !== h[c].indexOf("bottom") && (h[c] = parseInt(h[c]) * l.g.ratio + "px"); var u = h.join(" "), f = t.data("perspectiveout") ? t.data("perspectiveout") : l.lt.perspectiveOut, p = parseInt(t.css("left")), m = parseInt(t.css("top")), y = parseInt(t.attr("class").split("ls-l")[1]), v = t.outerWidth() > t.outerHeight() ? t.outerWidth() : t.outerHeight(), b = 0 === parseInt(g) ? t.outerWidth() : v, w = 0 === parseInt(g) ? t.outerHeight() : v; if (-1 === y && "new" !== d || "left" === t.data("offsetxout") || "right" === t.data("offsetxout") ? i < 0 ? i = -(l.g.sliderWidth() - p + (curSubScaleX / 2 - .5) * b + 100) : i > 0 && (i = p + (curSubScaleX / 2 + .5) * b + 100) : i *= l.g.ratio, -1 === y && "new" !== d || "top" === t.data("offsetyout") || "bottom" === t.data("offsetyout") ? s < 0 ? s = -(l.g.sliderHeight() - m + (curSubScaleY / 2 - .5) * w + 100) : s > 0 && (s = m + (curSubScaleY / 2 + .5) * w + 100) : s *= l.g.ratio, -1 === y || "new" === d) x = 1; else var x = y * (l.g.curLayer.data("parallaxout") ? parseInt(l.g.curLayer.data("parallaxout")) : l.o.parallaxOut); if ("new" === t.data("transitiontype")) var S = l.lt.durationOut, L = l.lt.easingOut; else var S = l.o.durationOut, L = l.o.easingOut; var T = t.data("durationout") ? parseInt(t.data("durationout")) : S; 0 === T && (T = 1); var k = t.data("easingout") ? t.data("easingout") : L, I = { visibility: "hidden" }, O = { rotation: g, rotationX: curSubRotateX, rotationY: curSubRotateY, skewX: curSubSkewX, skewY: curSubSkewY, scaleX: curSubScaleX, scaleY: curSubScaleY, x: -i * x, y: -s * x, ease: a(k), onComplete: function () { t.css(I) } }; ("fade" == d || !d && "fade" == n || "false" !== t.data("fadeout") && "new" === t.data("transitiontype")) && (O.opacity = 0, I.opacity = t.data("originalOpacity")), TweenLite.set(t[0], { transformPerspective: f, transformOrigin: u }), TweenLite.to(t[0], T / 1e3, O) }, l.load() }, a = function (t) { var e; if (-1 !== t.toLowerCase().indexOf("swing") || -1 !== t.toLowerCase().indexOf("linear")) e = Linear.easeNone; else if (-1 !== t.toLowerCase().indexOf("easeinout")) { i = t.toLowerCase().split("easeinout")[1]; e = window[i.charAt(0).toUpperCase() + i.slice(1)].easeInOut } else if (-1 !== t.toLowerCase().indexOf("easeout")) { i = t.toLowerCase().split("easeout")[1]; e = window[i.charAt(0).toUpperCase() + i.slice(1)].easeOut } else if (-1 !== t.toLowerCase().indexOf("easein")) { var i = t.toLowerCase().split("easein")[1]; e = window[i.charAt(0).toUpperCase() + i.slice(1)].easeIn } return e }, s = function (t, e, i, s) { if (void 0 === e) var e = "easeInOutQuart"; var o = {}; return t.rotate !== s && (o.rotation = t.rotate), t.rotateY !== s && (o.rotationY = t.rotateY), t.rotateX !== s && (o.rotationX = t.rotateX), "after" === i ? o.scaleX = o.scaleY = o.scaleZ = 1 : t.scale3d !== s && (o.scaleX = o.scaleY = o.scaleZ = t.scale3d), t.delay && (o.delay = "after" === i ? t.delay / 1e3 : t.delay), o.ease = a(e), o }, o = function (e) { var i = t("<div>"), a = !1, s = !1, o = ["perspective", "OPerspective", "msPerspective", "MozPerspective", "WebkitPerspective"]; transform = ["transformStyle", "OTransformStyle", "msTransformStyle", "MozTransformStyle", "WebkitTransformStyle"]; for (r = o.length - 1; r >= 0; r--) a = a || void 0 != i[0].style[o[r]]; for (var r = transform.length - 1; r >= 0; r--) i.css("transform-style", "preserve-3d"), s = s || "preserve-3d" == i[0].style[transform[r]]; return a && void 0 != i[0].style[o[4]] && (i.attr("id", "ls-test3d").appendTo(e), a = 3 === i[0].offsetHeight && 9 === i[0].offsetLeft, i.remove()), a && s }, r = function (t, e, i) { var a = []; if ("forward" == i) for (s = 0; s < t; s++) for (o = 0; o < e; o++) a.push(s + o * t); else for (var s = t - 1; s > -1; s--) for (var o = e - 1; o > -1; o--) a.push(s + o * t); return a }, n = function (t) { var e = 0; for (var i in t) t.hasOwnProperty(i) && ++e; return e }, d = function () { uaMatch = function (t) { t = t.toLowerCase(); var e = /(chrome)[ \/]([\w.]+)/.exec(t) || /(webkit)[ \/]([\w.]+)/.exec(t) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t) || /(msie) ([\w.]+)/.exec(t) || t.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t) || []; return { browser: e[1] || "", version: e[2] || "0" } }; var t = uaMatch(navigator.userAgent), e = {}; return t.browser && (e[t.browser] = !0, e.version = t.version), e.chrome ? e.webkit = !0 : e.webkit && (e.safari = !0), e }; i.global = { version: "5.6.3", isMobile: function () { return !!(navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Windows Phone/i)) }, isHideOn3D: function (t) { return "auto" == t.css("padding-bottom") || "none" == t.css("padding-bottom") || 0 == t.css("padding-bottom") || "0px" == t.css("padding-bottom") }, ie78: !!(d().msie && d().version < 9), originalAutoStart: !1, paused: !1, pausedByVideo: !1, autoSlideshow: !1, isAnimating: !1, layersNum: null, prevNext: "next", slideTimer: null, sliderWidth: null, sliderHeight: null, numYouTubeCurslide: 0, slideDirections: { prev: { left: "right", right: "left", top: "bottom", bottom: "top" }, next: { left: "left", right: "right", top: "top", bottom: "bottom" } }, v: { d: 500, fo: 750, fi: 500 } }, i.layerTransitions = { offsetXIn: 80, offsetYIn: 0, durationIn: 1e3, delayIn: 0, easingIn: "easeInOutQuint", fadeIn: !0, rotateIn: 0, rotateXIn: 0, rotateYIn: 0, scaleIn: 1, scaleXIn: 1, scaleYIn: 1, skewXIn: 0, skewYIn: 0, transformOriginIn: ["50%", "50%", "0"], perspectiveIn: 500, offsetXOut: -80, offsetYOut: 0, durationOut: 400, showUntil: 0, easingOut: "easeInOutQuint", fadeOut: !0, rotateOut: 0, rotateXOut: 0, rotateYOut: 0, scaleOut: 1, scaleXOut: 1, scaleYOut: 1, skewXOut: 0, skewYOut: 0, transformOriginOut: ["50%", "50%", "0"], perspectiveOut: 500 }, i.slideTransitions = { slideDelay: 4e3 }, i.options = { responsive: !0, responsiveUnder: 0, layersContainer: 0, fullScreen: !1, prependTo: "", autoStart: !0, startInViewport: !0, pauseOnHover: !0, firstSlide: 1, animateFirstSlide: !0, sliderFadeInDuration: 350, loops: 0, forceLoopNum: !0, twoWaySlideshow: !1, randomSlideshow: !1, skin: "v5", skinsPath: "/layerslider/skins/", globalBGColor: "transparent", globalBGImage: !1, navPrevNext: !0, navStartStop: !0, navButtons: !0, keybNav: !0, touchNav: !0, hoverPrevNext: !0, hoverBottomNav: !1, showBarTimer: !1, showCircleTimer: !0, thumbnailNavigation: "hover", tnContainerWidth: "60%", tnWidth: 100, tnHeight: 60, tnActiveOpacity: 35, tnInactiveOpacity: 100, autoPlayVideos: !0, autoPauseSlideshow: "auto", youtubePreview: "maxresdefault.jpg", imgPreload: !0, lazyLoad: !0, yourLogo: !1, yourLogoStyle: "left: -10px; top: -10px;", yourLogoLink: !1, yourLogoTarget: "_self", optimizeForMobile: !0, optimizeForIE78: !0, hideOnMobile: !1, hideUnder: 0, hideOver: 1e6, staticImage: "", cbInit: function (t) { }, cbStart: function (t) { }, cbStop: function (t) { }, cbPause: function (t) { }, cbAnimStart: function (t) { }, cbAnimStop: function (t) { }, cbPrev: function (t) { }, cbNext: function (t) { }, slideDelay: 4e3, slideDirection: "right", parallaxIn: .45, parallaxOut: .45, durationIn: 1e3, durationOut: 1e3, easingIn: "easeInOutQuint", easingOut: "easeInOutQuint", delayIn: 0, delayOut: 0 } }(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.