/************************************************************************** * jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider * @version: 5.4.8 (10.06.2018) * @requires jQuery v1.7 or later (tested on 1.9) * @author ThemePunch **************************************************************************/ !(function (jQuery, undefined) { "use strict"; var version = { core: "5.4.8", "revolution.extensions.actions.min.js": "2.1.0", "revolution.extensions.carousel.min.js": "1.2.1", "revolution.extensions.kenburn.min.js": "1.3.1", "revolution.extensions.layeranimation.min.js": "3.6.5", "revolution.extensions.navigation.min.js": "1.3.5", "revolution.extensions.parallax.min.js": "2.2.3", "revolution.extensions.slideanims.min.js": "1.8", "revolution.extensions.video.min.js": "2.2.2", }; jQuery.fn.extend({ revolution: function (i) { var e = { delay: 9e3, responsiveLevels: 4064, visibilityLevels: [2048, 1024, 778, 480], gridwidth: 960, gridheight: 500, minHeight: 0, autoHeight: "off", sliderType: "standard", sliderLayout: "auto", fullScreenAutoWidth: "off", fullScreenAlignForce: "off", fullScreenOffsetContainer: "", fullScreenOffset: "0", hideCaptionAtLimit: 0, hideAllCaptionAtLimit: 0, hideSliderAtLimit: 0, disableProgressBar: "off", stopAtSlide: -1, stopAfterLoops: -1, shadow: 0, dottedOverlay: "none", startDelay: 0, lazyType: "smart", spinner: "spinner0", shuffle: "off", viewPort: { enable: !1, outof: "wait", visible_area: "60%", presize: !1, }, fallbacks: { isJoomla: !1, panZoomDisableOnMobile: "off", simplifyAll: "on", nextSlideOnWindowFocus: "off", disableFocusListener: !0, ignoreHeightChanges: "off", ignoreHeightChangesSize: 0, allowHTML5AutoPlayOnAndroid: !0, }, parallax: { type: "off", levels: [ 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, ], origo: "enterpoint", speed: 400, bgparallax: "off", opacity: "on", disable_onmobile: "off", ddd_shadow: "on", ddd_bgfreeze: "off", ddd_overflow: "visible", ddd_layer_overflow: "visible", ddd_z_correction: 65, ddd_path: "mouse", }, scrolleffect: { fade: "off", blur: "off", scale: "off", grayscale: "off", maxblur: 10, on_layers: "off", on_slidebg: "off", on_static_layers: "off", on_parallax_layers: "off", on_parallax_static_layers: "off", direction: "both", multiplicator: 1.35, multiplicator_layers: 0.5, tilt: 30, disable_on_mobile: "on", }, carousel: { easing: punchgs.Power3.easeInOut, speed: 800, showLayersAllTime: "off", horizontal_align: "center", vertical_align: "center", infinity: "on", space: 0, maxVisibleItems: 3, stretch: "off", fadeout: "on", maxRotation: 0, minScale: 0, vary_fade: "off", vary_rotation: "on", vary_scale: "off", border_radius: "0px", padding_top: 0, padding_bottom: 0, }, navigation: { keyboardNavigation: "off", keyboard_direction: "horizontal", mouseScrollNavigation: "off", onHoverStop: "on", touch: { touchenabled: "off", touchOnDesktop: "off", swipe_treshold: 75, swipe_min_touches: 1, drag_block_vertical: !1, swipe_direction: "horizontal", }, arrows: { style: "", enable: !1, hide_onmobile: !1, hide_onleave: !0, hide_delay: 200, hide_delay_mobile: 1200, hide_under: 0, hide_over: 9999, tmp: "", rtl: !1, left: { h_align: "left", v_align: "center", h_offset: 20, v_offset: 0, container: "slider", }, right: { h_align: "right", v_align: "center", h_offset: 20, v_offset: 0, container: "slider", }, }, bullets: { container: "slider", rtl: !1, style: "", enable: !1, hide_onmobile: !1, hide_onleave: !0, hide_delay: 200, hide_delay_mobile: 1200, hide_under: 0, hide_over: 9999, direction: "horizontal", h_align: "left", v_align: "center", space: 0, h_offset: 20, v_offset: 0, tmp: '', }, thumbnails: { container: "slider", rtl: !1, style: "", enable: !1, width: 100, height: 50, min_width: 100, wrapper_padding: 2, wrapper_color: "#f5f5f5", wrapper_opacity: 1, tmp: '', visibleAmount: 5, hide_onmobile: !1, hide_onleave: !0, hide_delay: 200, hide_delay_mobile: 1200, hide_under: 0, hide_over: 9999, direction: "horizontal", span: !1, position: "inner", space: 2, h_align: "left", v_align: "center", h_offset: 20, v_offset: 0, }, tabs: { container: "slider", rtl: !1, style: "", enable: !1, width: 100, min_width: 100, height: 50, wrapper_padding: 10, wrapper_color: "#f5f5f5", wrapper_opacity: 1, tmp: '', visibleAmount: 5, hide_onmobile: !1, hide_onleave: !0, hide_delay: 200, hide_delay_mobile: 1200, hide_under: 0, hide_over: 9999, direction: "horizontal", span: !1, space: 0, position: "inner", h_align: "left", v_align: "center", h_offset: 20, v_offset: 0, }, }, extensions: "extensions/", extensions_suffix: ".min.js", debugMode: !1, }; return ( (i = jQuery.extend(!0, {}, e, i)), this.each(function () { var e = jQuery(this); (i.minHeight = i.minHeight != undefined ? parseInt(i.minHeight, 0) : i.minHeight), (i.scrolleffect.on = "on" === i.scrolleffect.fade || "on" === i.scrolleffect.scale || "on" === i.scrolleffect.blur || "on" === i.scrolleffect.grayscale), "hero" == i.sliderType && e.find(">ul>li").each(function (e) { 0 < e && jQuery(this).remove(); }), (i.jsFileLocation = i.jsFileLocation || getScriptLocation("themepunch.revolution.min.js")), (i.jsFileLocation = i.jsFileLocation + i.extensions), (i.scriptsneeded = getNeededScripts(i, e)), (i.curWinRange = 0), (i.rtl = !0), i.navigation != undefined && i.navigation.touch != undefined && (i.navigation.touch.swipe_min_touches = 5 < i.navigation.touch.swipe_min_touches ? 1 : i.navigation.touch.swipe_min_touches), jQuery(this).on("scriptsloaded", function () { if (i.modulesfailing) return ( e .html( '
!! Error at loading Slider Revolution 5.0 Extrensions.' + i.errorm + "
" ) .show(), !1 ); _R.migration != undefined && (i = _R.migration(e, i)), (punchgs.force3D = !0), "on" !== i.simplifyAll && punchgs.TweenLite.lagSmoothing(1e3, 16), prepareOptions(e, i), initSlider(e, i); }), (e[0].opt = i), waitForScripts(e, i); }) ); }, getRSVersion: function (e) { if (!0 === e) return jQuery("body").data("tp_rs_version"); var i = jQuery("body").data("tp_rs_version"), t = ""; for (var a in ((t += "---------------------------------------------------------\n"), (t += " Currently Loaded Slider Revolution & SR Modules :\n"), (t += "---------------------------------------------------------\n"), i)) t += i[a].alias + ": " + i[a].ver + "\n"; return (t += "---------------------------------------------------------\n"); }, revremoveslide: function (r) { return this.each(function () { var e = jQuery(this), i = e[0].opt; if ( !(r < 0 || r > i.slideamount) && e != undefined && 0 < e.length && 0 < jQuery("body").find("#" + e.attr("id")).length && i && 0 < i.li.length && (0 < r || r <= i.li.length) ) { var t = jQuery(i.li[r]), a = t.data("index"), n = !1; (i.slideamount = i.slideamount - 1), (i.realslideamount = i.realslideamount - 1), removeNavWithLiref(".tp-bullet", a, i), removeNavWithLiref(".tp-tab", a, i), removeNavWithLiref(".tp-thumb", a, i), t.hasClass("active-revslide") && (n = !0), t.remove(), (i.li = removeArray(i.li, r)), i.carousel && i.carousel.slides && (i.carousel.slides = removeArray(i.carousel.slides, r)), (i.thumbs = removeArray(i.thumbs, r)), _R.updateNavIndexes && _R.updateNavIndexes(i), n && e.revnext(), punchgs.TweenLite.set(i.li, { minWidth: "99%" }), punchgs.TweenLite.set(i.li, { minWidth: "100%" }); } }); }, revaddcallback: function (e) { return this.each(function () { this.opt && (this.opt.callBackArray === undefined && (this.opt.callBackArray = new Array()), this.opt.callBackArray.push(e)); }); }, revgetparallaxproc: function () { return jQuery(this)[0].opt.scrollproc; }, revdebugmode: function () { return this.each(function () { var e = jQuery(this); (e[0].opt.debugMode = !0), containerResized(e, e[0].opt); }); }, revscroll: function (i) { return this.each(function () { var e = jQuery(this); jQuery("body,html").animate( { scrollTop: e.offset().top + e.height() - i + "px" }, { duration: 400 } ); }); }, revredraw: function (e) { return this.each(function () { var e = jQuery(this); containerResized(e, e[0].opt); }); }, revkill: function (e) { var i = this, t = jQuery(this); if ( (punchgs.TweenLite.killDelayedCallsTo(_R.showHideNavElements), t != undefined && 0 < t.length && 0 < jQuery("body").find("#" + t.attr("id")).length) ) { t.data("conthover", 1), t.data("conthover-changed", 1), t.trigger("revolution.slide.onpause"); var a = t.parent().find(".tp-bannertimer"), n = t[0].opt; (n.tonpause = !0), t.trigger("stoptimer"); var r = "resize.revslider-" + t.attr("id"); jQuery(window).unbind(r), punchgs.TweenLite.killTweensOf(t.find("*"), !1), punchgs.TweenLite.killTweensOf(t, !1), t.unbind("hover, mouseover, mouseenter,mouseleave, resize"); r = "resize.revslider-" + t.attr("id"); jQuery(window).off(r), t.find("*").each(function () { var e = jQuery(this); e.unbind( "on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer" ), e.off("on, hover, mouseenter,mouseleave,mouseover, resize"), e.data("mySplitText", null), e.data("ctl", null), e.data("tween") != undefined && e.data("tween").kill(), e.data("kenburn") != undefined && e.data("kenburn").kill(), e.data("timeline_out") != undefined && e.data("timeline_out").kill(), e.data("timeline") != undefined && e.data("timeline").kill(), e.remove(), e.empty(), (e = null); }), punchgs.TweenLite.killTweensOf(t.find("*"), !1), punchgs.TweenLite.killTweensOf(t, !1), a.remove(); try { t.closest(".forcefullwidth_wrapper_tp_banner").remove(); } catch (e) {} try { t.closest(".rev_slider_wrapper").remove(); } catch (e) {} try { t.remove(); } catch (e) {} return ( t.empty(), t.html(), (n = t = null), delete i.c, delete i.opt, delete i.container, !0 ); } return !1; }, revpause: function () { return this.each(function () { var e = jQuery(this); e != undefined && 0 < e.length && 0 < jQuery("body").find("#" + e.attr("id")).length && (e.data("conthover", 1), e.data("conthover-changed", 1), e.trigger("revolution.slide.onpause"), (e[0].opt.tonpause = !0), e.trigger("stoptimer")); }); }, revresume: function () { return this.each(function () { var e = jQuery(this); e != undefined && 0 < e.length && 0 < jQuery("body").find("#" + e.attr("id")).length && (e.data("conthover", 0), e.data("conthover-changed", 1), e.trigger("revolution.slide.onresume"), (e[0].opt.tonpause = !1), e.trigger("starttimer")); }); }, revstart: function () { var e = jQuery(this); if ( e != undefined && 0 < e.length && 0 < jQuery("body").find("#" + e.attr("id")).length && e[0].opt !== undefined ) return e[0].opt.sliderisrunning ? (console.log("Slider Is Running Already"), !1) : (((e[0].opt.c = e)[0].opt.ul = e.find(">ul")), runSlider(e, e[0].opt), !0); }, revnext: function () { return this.each(function () { var e = jQuery(this); e != undefined && 0 < e.length && 0 < jQuery("body").find("#" + e.attr("id")).length && _R.callingNewSlide(e, 1); }); }, revprev: function () { return this.each(function () { var e = jQuery(this); e != undefined && 0 < e.length && 0 < jQuery("body").find("#" + e.attr("id")).length && _R.callingNewSlide(e, -1); }); }, revmaxslide: function () { return jQuery(this).find(".tp-revslider-mainul >li").length; }, revcurrentslide: function () { var e = jQuery(this); if ( e != undefined && 0 < e.length && 0 < jQuery("body").find("#" + e.attr("id")).length ) return parseInt(e[0].opt.act, 0) + 1; }, revlastslide: function () { return jQuery(this).find(".tp-revslider-mainul >li").length; }, revshowslide: function (i) { return this.each(function () { var e = jQuery(this); e != undefined && 0 < e.length && 0 < jQuery("body").find("#" + e.attr("id")).length && _R.callingNewSlide(e, "to" + (i - 1)); }); }, revcallslidewithid: function (i) { return this.each(function () { var e = jQuery(this); e != undefined && 0 < e.length && 0 < jQuery("body").find("#" + e.attr("id")).length && _R.callingNewSlide(e, i); }); }, }); var _R = jQuery.fn.revolution; jQuery.extend(!0, _R, { getversion: function () { return version; }, compare_version: function (e) { var i = jQuery("body").data("tp_rs_version"); return ( (i = i === undefined ? new Object() : i).Core === undefined && ((i.Core = new Object()), (i.Core.alias = "Slider Revolution Core"), (i.Core.name = "jquery.themepunch.revolution.min.js"), (i.Core.ver = _R.getversion().core)), "stop" != e.check && (_R.getversion().core < e.min_core ? (e.check === undefined && (console.log( "%cSlider Revolution Warning (Core:" + _R.getversion().core + ")", "color:#c0392b;font-weight:bold;" ), console.log( "%c Core is older than expected (" + e.min_core + ") from " + e.alias, "color:#333" ), console.log( "%c Please update Slider Revolution to the latest version.", "color:#333" ), console.log( "%c It might be required to purge and clear Server/Client side Caches.", "color:#333" )), (e.check = "stop")) : _R.getversion()[e.name] != undefined && e.version < _R.getversion()[e.name] && (e.check === undefined && (console.log( "%cSlider Revolution Warning (Core:" + _R.getversion().core + ")", "color:#c0392b;font-weight:bold;" ), console.log( "%c " + e.alias + " (" + e.version + ") is older than requiered (" + _R.getversion()[e.name] + ")", "color:#333" ), console.log( "%c Please update Slider Revolution to the latest version.", "color:#333" ), console.log( "%c It might be required to purge and clear Server/Client side Caches.", "color:#333" )), (e.check = "stop"))), i[e.alias] === undefined && ((i[e.alias] = new Object()), (i[e.alias].alias = e.alias), (i[e.alias].ver = e.version), (i[e.alias].name = e.name)), jQuery("body").data("tp_rs_version", i), e ); }, currentSlideIndex: function (e) { var i = e.c.find(".active-revslide").index(); return (i = -1 == i ? 0 : i); }, simp: function (e, i, t) { var a = Math.abs(e) - Math.floor(Math.abs(e / i)) * i; return t ? a : e < 0 ? -1 * a : a; }, iOSVersion: function () { var e = !1; return ( navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/iPad/i) ? navigator.userAgent.match(/OS 4_\d like Mac OS X/i) && (e = !0) : (e = !1), e ); }, isIE: function (e, i) { var t = jQuery('
').appendTo(jQuery("body")); t.html( "\x3c!--[if " + (i || "") + " IE " + (e || "") + "]> = n.slideamount ? 0 : a : (i = jQuery.isNumeric(i) ? i : parseInt(i.split("to")[1], 0)) < 0 ? 0 : i > n.slideamount - 1 ? n.slideamount - 1 : i), e .find(".tp-revslider-slidesli:eq(" + a + ")") .addClass("next-revslide")) : i && e.find(".tp-revslider-slidesli").each(function () { var e = jQuery(this); e.data("index") === i && e.addClass("next-revslide"); }), (a = e.find(".next-revslide").index()), e.trigger("revolution.nextslide.waiting"), (t === a && t === n.last_shown_slide) || (a !== t && -1 != a) ? swapSlide(e) : e.find(".next-revslide").removeClass("next-revslide"); }, slotSize: function (e, i) { (i.slotw = Math.ceil(i.width / i.slots)), "fullscreen" == i.sliderLayout ? (i.sloth = Math.ceil(jQuery(window).height() / i.slots)) : (i.sloth = Math.ceil(i.height / i.slots)), "on" == i.autoHeight && e !== undefined && "" !== e && (i.sloth = Math.ceil(e.height() / i.slots)); }, setSize: function (e) { var i = (e.top_outer || 0) + (e.bottom_outer || 0), t = parseInt(e.carousel.padding_top || 0, 0), a = parseInt(e.carousel.padding_bottom || 0, 0), n = e.gridheight[e.curWinRange], r = 0, o = -1 === e.nextSlide || e.nextSlide === undefined ? 0 : e.nextSlide; if ( ((e.paddings = e.paddings === undefined ? { top: parseInt(e.c.parent().css("paddingTop"), 0) || 0, bottom: parseInt(e.c.parent().css("paddingBottom"), 0) || 0, } : e.paddings), e.rowzones && 0 < e.rowzones.length) ) for (var s = 0; s < e.rowzones[o].length; s++) r += e.rowzones[o][s][0].offsetHeight; if ( ((n = (n = n < e.minHeight ? e.minHeight : n) < r ? r : n), "fullwidth" == e.sliderLayout && "off" == e.autoHeight && punchgs.TweenLite.set(e.c, { maxHeight: n + "px" }), e.c.css({ marginTop: t, marginBottom: a }), (e.width = e.ul.width()), (e.height = e.ul.height()), setScale(e), (e.height = Math.round( e.gridheight[e.curWinRange] * (e.width / e.gridwidth[e.curWinRange]) )), e.height > e.gridheight[e.curWinRange] && "on" != e.autoHeight && (e.height = e.gridheight[e.curWinRange]), "fullscreen" == e.sliderLayout || e.infullscreenmode) ) { e.height = e.bw * e.gridheight[e.curWinRange]; e.c.parent().width(); var l = jQuery(window).height(); if (e.fullScreenOffsetContainer != undefined) { try { var d = e.fullScreenOffsetContainer.split(","); d && jQuery.each(d, function (e, i) { l = 0 < jQuery(i).length ? l - jQuery(i).outerHeight(!0) : l; }); } catch (e) {} try { 1 < e.fullScreenOffset.split("%").length && e.fullScreenOffset != undefined && 0 < e.fullScreenOffset.length ? (l -= (jQuery(window).height() * parseInt(e.fullScreenOffset, 0)) / 100) : e.fullScreenOffset != undefined && 0 < e.fullScreenOffset.length && (l -= parseInt(e.fullScreenOffset, 0)); } catch (e) {} } (l = l < e.minHeight ? e.minHeight : l), (l -= i), e.c.parent().height(l), e.c.closest(".rev_slider_wrapper").height(l), e.c.css({ height: "100%" }), (e.height = l), e.minHeight != undefined && e.height < e.minHeight && (e.height = e.minHeight), (e.height = parseInt(r, 0) > parseInt(e.height, 0) ? r : e.height); } else e.minHeight != undefined && e.height < e.minHeight && (e.height = e.minHeight), (e.height = parseInt(r, 0) > parseInt(e.height, 0) ? r : e.height), e.c.height(e.height); var c = { height: t + a + i + e.height + e.paddings.top + e.paddings.bottom, }; e.c .closest(".forcefullwidth_wrapper_tp_banner") .find(".tp-fullwidth-forcer") .css(c), e.c.closest(".rev_slider_wrapper").css(c), setScale(e); }, enterInViewPort: function (t) { t.waitForCountDown && (countDown(t.c, t), (t.waitForCountDown = !1)), t.waitForFirstSlide && (swapSlide(t.c), (t.waitForFirstSlide = !1), setTimeout(function () { t.c.removeClass("tp-waitforfirststart"); }, 500)), ("playing" != t.sliderlaststatus && t.sliderlaststatus != undefined) || t.c.trigger("starttimer"), t.lastplayedvideos != undefined && 0 < t.lastplayedvideos.length && jQuery.each(t.lastplayedvideos, function (e, i) { _R.playVideo(i, t); }); }, leaveViewPort: function (t) { (t.sliderlaststatus = t.sliderstatus), t.c.trigger("stoptimer"), t.playingvideos != undefined && 0 < t.playingvideos.length && ((t.lastplayedvideos = jQuery.extend(!0, [], t.playingvideos)), t.playingvideos && jQuery.each(t.playingvideos, function (e, i) { (t.leaveViewPortBasedStop = !0), _R.stopVideo && _R.stopVideo(i, t); })); }, unToggleState: function (e) { e != undefined && 0 < e.length && jQuery.each(e, function (e, i) { i.removeClass("rs-toggle-content-active"); }); }, toggleState: function (e) { e != undefined && 0 < e.length && jQuery.each(e, function (e, i) { i.addClass("rs-toggle-content-active"); }); }, swaptoggleState: function (e) { e != undefined && 0 < e.length && jQuery.each(e, function (e, i) { jQuery(i).hasClass("rs-toggle-content-active") ? jQuery(i).removeClass("rs-toggle-content-active") : jQuery(i).addClass("rs-toggle-content-active"); }); }, lastToggleState: function (e) { var t = 0; return ( e != undefined && 0 < e.length && jQuery.each(e, function (e, i) { t = i.hasClass("rs-toggle-content-active"); }), t ); }, }); var _ISM = _R.is_mobile(), _ANDROID = _R.is_android(), checkIDS = function (e, i) { if ( ((e.anyid = e.anyid === undefined ? [] : e.anyid), -1 != jQuery.inArray(i.attr("id"), e.anyid)) ) { var t = i.attr("id") + "_" + Math.round(9999 * Math.random()); i.attr("id", t); } e.anyid.push(i.attr("id")); }, removeArray = function (e, t) { var a = []; return ( jQuery.each(e, function (e, i) { e != t && a.push(i); }), a ); }, removeNavWithLiref = function (e, i, t) { t.c.find(e).each(function () { var e = jQuery(this); e.data("liref") === i && e.remove(); }); }, lAjax = function (i, t) { return ( !jQuery("body").data(i) && (t.filesystem ? (t.errorm === undefined && (t.errorm = "
Local Filesystem Detected !
Put this to your header:"), console.warn("Local Filesystem detected !"), (t.errorm = t.errorm + '
<script type="text/javascript" src="' + t.jsFileLocation + i + t.extensions_suffix + '"></script>'), console.warn( t.jsFileLocation + i + t.extensions_suffix + " could not be loaded !" ), console.warn( "Please use a local Server or work online or make sure that you load all needed Libraries manually in your Document." ), console.log(" "), !(t.modulesfailing = !0)) : (jQuery.ajax({ url: t.jsFileLocation + i + t.extensions_suffix + "?version=" + version.core, dataType: "script", cache: !0, error: function (e) { console.warn("Slider Revolution 5.0 Error !"), console.error( "Failure at Loading:" + i + t.extensions_suffix + " on Path:" + t.jsFileLocation ), console.info(e); }, }), void jQuery("body").data(i, !0))) ); }, getNeededScripts = function (t, e) { var i = new Object(), a = t.navigation; return ( (i.kenburns = !1), (i.parallax = !1), (i.carousel = !1), (i.navigation = !1), (i.videos = !1), (i.actions = !1), (i.layeranim = !1), (i.migration = !1), e.data("version") && e.data("version").toString().match(/5./gi) ? (e.find("img").each(function () { "on" == jQuery(this).data("kenburns") && (i.kenburns = !0); }), ("carousel" == t.sliderType || "on" == a.keyboardNavigation || "on" == a.mouseScrollNavigation || "on" == a.touch.touchenabled || a.arrows.enable || a.bullets.enable || a.thumbnails.enable || a.tabs.enable) && (i.navigation = !0), e .find(".tp-caption, .tp-static-layer, .rs-background-video-layer") .each(function () { var e = jQuery(this); (e.data("ytid") != undefined || (0 < e.find("iframe").length && 0 < e .find("iframe") .attr("src") .toLowerCase() .indexOf("youtube"))) && (i.videos = !0), (e.data("vimeoid") != undefined || (0 < e.find("iframe").length && 0 < e .find("iframe") .attr("src") .toLowerCase() .indexOf("vimeo"))) && (i.videos = !0), e.data("actions") !== undefined && (i.actions = !0), (i.layeranim = !0); }), e.find("li").each(function () { jQuery(this).data("link") && jQuery(this).data("link") != undefined && ((i.layeranim = !0), (i.actions = !0)); }), !i.videos && (0 < e.find(".rs-background-video-layer").length || 0 < e.find(".tp-videolayer").length || 0 < e.find(".tp-audiolayer").length || 0 < e.find("iframe").length || 0 < e.find("video").length) && (i.videos = !0), "carousel" == t.sliderType && (i.carousel = !0), ("off" !== t.parallax.type || t.viewPort.enable || "true" == t.viewPort.enable || "true" === t.scrolleffect.on || t.scrolleffect.on) && (i.parallax = !0)) : ((i.kenburns = !0), (i.parallax = !0), (i.carousel = !1), (i.navigation = !0), (i.videos = !0), (i.actions = !0), (i.layeranim = !0), (i.migration = !0)), "hero" == t.sliderType && ((i.carousel = !1), (i.navigation = !1)), window.location.href.match(/file:/gi) && ((i.filesystem = !0), (t.filesystem = !0)), i.videos && void 0 === _R.isVideoPlaying && lAjax("revolution.extension.video", t), i.carousel && void 0 === _R.prepareCarousel && lAjax("revolution.extension.carousel", t), i.carousel || void 0 !== _R.animateSlide || lAjax("revolution.extension.slideanims", t), i.actions && void 0 === _R.checkActions && lAjax("revolution.extension.actions", t), i.layeranim && void 0 === _R.handleStaticLayers && lAjax("revolution.extension.layeranimation", t), i.kenburns && void 0 === _R.stopKenBurn && lAjax("revolution.extension.kenburn", t), i.navigation && void 0 === _R.createNavigation && lAjax("revolution.extension.navigation", t), i.migration && void 0 === _R.migration && lAjax("revolution.extension.migration", t), i.parallax && void 0 === _R.checkForParallax && lAjax("revolution.extension.parallax", t), t.addons != undefined && 0 < t.addons.length && jQuery.each(t.addons, function (e, i) { "object" == typeof i && i.fileprefix != undefined && lAjax(i.fileprefix, t); }), i ); }, waitForScripts = function (e, i) { var t = !0, a = i.scriptsneeded; i.addons != undefined && 0 < i.addons.length && jQuery.each(i.addons, function (e, i) { "object" == typeof i && i.init != undefined && _R[i.init] === undefined && (t = !1); }), a.filesystem || ("undefined" != typeof punchgs && t && (!a.kenburns || (a.kenburns && void 0 !== _R.stopKenBurn)) && (!a.navigation || (a.navigation && void 0 !== _R.createNavigation)) && (!a.carousel || (a.carousel && void 0 !== _R.prepareCarousel)) && (!a.videos || (a.videos && void 0 !== _R.resetVideo)) && (!a.actions || (a.actions && void 0 !== _R.checkActions)) && (!a.layeranim || (a.layeranim && void 0 !== _R.handleStaticLayers)) && (!a.migration || (a.migration && void 0 !== _R.migration)) && (!a.parallax || (a.parallax && void 0 !== _R.checkForParallax)) && (a.carousel || (!a.carousel && void 0 !== _R.animateSlide))) ? e.trigger("scriptsloaded") : setTimeout(function () { waitForScripts(e, i); }, 50); }, getScriptLocation = function (e) { var i = new RegExp("themepunch.revolution.min.js", "gi"), t = ""; return ( jQuery("script").each(function () { var e = jQuery(this).attr("src"); e && e.match(i) && (t = e); }), (t = (t = (t = t.replace( "jquery.themepunch.revolution.min.js", "" )).replace("jquery.themepunch.revolution.js", "")).split("?")[0]) ); }, setCurWinRange = function (e, i) { var t = 9999, a = 0, n = 0, r = 0, o = jQuery(window).width(), s = i && 9999 == e.responsiveLevels ? e.visibilityLevels : e.responsiveLevels; s && s.length && jQuery.each(s, function (e, i) { o < i && (0 == a || i < a) && ((r = e), (a = t = i)), i < o && a < i && ((a = i), (n = e)); }), a < t && (r = n), i ? (e.forcedWinRange = r) : (e.curWinRange = r); }, prepareOptions = function (e, i) { (i.carousel.maxVisibleItems = i.carousel.maxVisibleItems < 1 ? 999 : i.carousel.maxVisibleItems), (i.carousel.vertical_align = "top" === i.carousel.vertical_align ? "0%" : "bottom" === i.carousel.vertical_align ? "100%" : "50%"); }, gWiderOut = function (e, i) { var t = 0; return ( e.find(i).each(function () { var e = jQuery(this); !e.hasClass("tp-forcenotvisible") && t < e.outerWidth() && (t = e.outerWidth()); }), t ); }, initSlider = function (container, opt) { if (container == undefined) return !1; container.data("aimg") != undefined && (("enabled" == container.data("aie8") && _R.isIE(8)) || ("enabled" == container.data("amobile") && _ISM)) && container.html( '' ), container.find(">ul").addClass("tp-revslider-mainul"), (opt.c = container), (opt.ul = container.find(".tp-revslider-mainul")), opt.ul.find(">li").each(function (e) { var i = jQuery(this); "on" == i.data("hideslideonmobile") && _ISM && i.remove(), (i.data("invisible") || !0 === i.data("invisible")) && (i.addClass("tp-invisible-slide"), i.appendTo(opt.ul)); }), opt.addons != undefined && 0 < opt.addons.length && jQuery.each(opt.addons, function (i, obj) { "object" == typeof obj && obj.init != undefined && _R[obj.init](eval(obj.params)); }), (opt.cid = container.attr("id")), opt.ul.css({ visibility: "visible" }), (opt.slideamount = opt.ul .find(">li") .not(".tp-invisible-slide").length), (opt.realslideamount = opt.ul.find(">li").length), (opt.slayers = container.find(".tp-static-layers")), opt.slayers.data("index", "staticlayers"), 1 != opt.waitForInit && ((container[0].opt = opt), runSlider(container, opt)); }, onFullScreenChange = function () { jQuery("body").data( "rs-fullScreenMode", !jQuery("body").data("rs-fullScreenMode") ), jQuery("body").data("rs-fullScreenMode") && setTimeout(function () { jQuery(window).trigger("resize"); }, 200); }, runSlider = function (t, x) { if ( ((x.sliderisrunning = !0), x.ul.find(">li").each(function (e) { jQuery(this).data("originalindex", e); }), (x.allli = x.ul.find(">li")), jQuery.each(x.allli, function (e, i) { (i = jQuery(i)).data("origindex", i.index()); }), (x.li = x.ul.find(">li").not(".tp-invisible-slide")), "on" == x.shuffle) ) { var e = new Object(), i = x.ul.find(">li:first-child"); (e.fstransition = i.data("fstransition")), (e.fsmasterspeed = i.data("fsmasterspeed")), (e.fsslotamount = i.data("fsslotamount")); for (var a = 0; a < x.slideamount; a++) { var n = Math.round(Math.random() * x.slideamount); x.ul.find(">li:eq(" + n + ")").prependTo(x.ul); } var r = x.ul.find(">li:first-child"); r.data("fstransition", e.fstransition), r.data("fsmasterspeed", e.fsmasterspeed), r.data("fsslotamount", e.fsslotamount), (x.allli = x.ul.find(">li")), (x.li = x.ul.find(">li").not(".tp-invisible-slide")); } if ( ((x.inli = x.ul.find(">li.tp-invisible-slide")), (x.thumbs = new Array()), (x.slots = 4), (x.act = -1), (x.firststart = 1), (x.loadqueue = new Array()), (x.syncload = 0), (x.conw = t.width()), (x.conh = t.height()), 1 < x.responsiveLevels.length ? (x.responsiveLevels[0] = 9999) : (x.responsiveLevels = 9999), jQuery.each(x.allli, function (e, i) { var t = (i = jQuery(i)).find(".rev-slidebg") || i.find("img").first(), a = 0; i.addClass("tp-revslider-slidesli"), i.data("index") === undefined && i.data("index", "rs-" + Math.round(999999 * Math.random())); var n = new Object(); (n.params = new Array()), (n.id = i.data("index")), (n.src = i.data("thumb") !== undefined ? i.data("thumb") : t.data("lazyload") !== undefined ? t.data("lazyload") : t.attr("src")), i.data("title") !== undefined && n.params.push({ from: RegExp("\\{\\{title\\}\\}", "g"), to: i.data("title"), }), i.data("description") !== undefined && n.params.push({ from: RegExp("\\{\\{description\\}\\}", "g"), to: i.data("description"), }); for (a = 1; a <= 10; a++) i.data("param" + a) !== undefined && n.params.push({ from: RegExp("\\{\\{param" + a + "\\}\\}", "g"), to: i.data("param" + a), }); if ((x.thumbs.push(n), i.data("link") != undefined)) { var r = i.data("link"), o = i.data("target") || "_self", s = "back" === i.data("slideindex") ? 0 : 60, l = i.data("linktoslide"), d = l; l != undefined && "next" != l && "prev" != l && x.allli.each(function () { var e = jQuery(this); e.data("origindex") + 1 == d && (l = e.data("index")); }), "slide" != r && (l = "no"); var c = '