/************************************************************************** * jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider * @version: 5.3.1.6 (15.12.2016) * @requires jQuery v1.7 or later (tested on 1.9) * @author ThemePunch **************************************************************************/ ! function(jQuery, undefined) { "use strict"; var version = { core: "5.3.1.6", "revolution.extensions.actions.min.js": "2.0.4", "revolution.extensions.carousel.min.js": "1.2.1", "revolution.extensions.kenburn.min.js": "1.2.0", "revolution.extensions.layeranimation.min.js": "3.5.0", "revolution.extensions.navigation.min.js": "1.3.2", "revolution.extensions.parallax.min.js": "2.2.0", "revolution.extensions.slideanims.min.js": "1.6", "revolution.extensions.video.min.js": "2.0.2" }; jQuery.fn.extend({ revolution: function(a) { var b = { 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 }, 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", 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: .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", 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 a = jQuery.extend(!0, {}, b, a), this.each(function() { var b = jQuery(this); a.minHeight = a.minHeight != undefined ? parseInt(a.minHeight, 0) : a.minHeight, a.scrolleffect.on = "on" === a.scrolleffect.fade || "on" === a.scrolleffect.blur || "on" === a.scrolleffect.grayscale, "hero" == a.sliderType && b.find(">ul>li").each(function(a) { a > 0 && jQuery(this).remove() }), a.jsFileLocation = a.jsFileLocation || getScriptLocation("themepunch.revolution.min.html"), a.jsFileLocation = a.jsFileLocation + a.extensions, a.scriptsneeded = getNeededScripts(a, b), a.curWinRange = 0, a.rtl = !0, a.navigation != undefined && a.navigation.touch != undefined && (a.navigation.touch.swipe_min_touches = a.navigation.touch.swipe_min_touches > 5 ? 1 : a.navigation.touch.swipe_min_touches), jQuery(this).on("scriptsloaded", function() { return a.modulesfailing ? (b.html('
!! Error at loading Slider Revolution 5.0 Extrensions.' + a.errorm + "
").show(), !1) : (_R.migration != undefined && (a = _R.migration(b, a)), punchgs.force3D = !0, "on" !== a.simplifyAll && punchgs.TweenLite.lagSmoothing(1e3, 16), prepareOptions(b, a), void initSlider(b, a)) }), b[0].opt = a, waitForScripts(b, a) }) }, revremoveslide: function(a) { return this.each(function() { var b = jQuery(this), c = b[0].opt; if (!(a < 0 || a > c.slideamount) && b != undefined && b.length > 0 && jQuery("body").find("#" + b.attr("id")).length > 0 && c && c.li.length > 0 && (a > 0 || a <= c.li.length)) { var d = jQuery(c.li[a]), e = d.data("index"), f = !1; c.slideamount = c.slideamount - 1, c.realslideamount = c.realslideamount - 1, removeNavWithLiref(".tp-bullet", e, c), removeNavWithLiref(".tp-tab", e, c), removeNavWithLiref(".tp-thumb", e, c), d.hasClass("active-revslide") && (f = !0), d.remove(), c.li = removeArray(c.li, a), c.carousel && c.carousel.slides && (c.carousel.slides = removeArray(c.carousel.slides, a)), c.thumbs = removeArray(c.thumbs, a), _R.updateNavIndexes && _R.updateNavIndexes(c), f && b.revnext(), punchgs.TweenLite.set(c.li, { minWidth: "99%" }), punchgs.TweenLite.set(c.li, { minWidth: "100%" }) } }) }, revaddcallback: function(a) { return this.each(function() { this.opt && (this.opt.callBackArray === undefined && (this.opt.callBackArray = new Array), this.opt.callBackArray.push(a)) }) }, revgetparallaxproc: function() { return jQuery(this)[0].opt.scrollproc }, revdebugmode: function() { return this.each(function() { var a = jQuery(this); a[0].opt.debugMode = !0, containerResized(a, a[0].opt) }) }, revscroll: function(a) { return this.each(function() { var b = jQuery(this); jQuery("body,html").animate({ scrollTop: b.offset().top + b.height() - a + "px" }, { duration: 400 }) }) }, revredraw: function(a) { return this.each(function() { var a = jQuery(this); containerResized(a, a[0].opt) }) }, revkill: function(a) { var b = this, c = jQuery(this); if (punchgs.TweenLite.killDelayedCallsTo(_R.showHideNavElements), c != undefined && c.length > 0 && jQuery("body").find("#" + c.attr("id")).length > 0) { c.data("conthover", 1), c.data("conthover-changed", 1), c.trigger("revolution.slide.onpause"); var d = c.parent().find(".tp-bannertimer"), e = c[0].opt; e.tonpause = !0, c.trigger("stoptimer"), punchgs.TweenLite.killTweensOf(c.find("*"), !1), punchgs.TweenLite.killTweensOf(c, !1), c.unbind("hover, mouseover, mouseenter,mouseleave, resize"); var f = "resize.revslider-" + c.attr("id"); jQuery(window).off(f), c.find("*").each(function() { var a = jQuery(this); a.unbind("on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer"), a.off("on, hover, mouseenter,mouseleave,mouseover, resize"), a.data("mySplitText", null), a.data("ctl", null), a.data("tween") != undefined && a.data("tween").kill(), a.data("kenburn") != undefined && a.data("kenburn").kill(), a.data("timeline_out") != undefined && a.data("timeline_out").kill(), a.data("timeline") != undefined && a.data("timeline").kill(), a.remove(), a.empty(), a = null }), punchgs.TweenLite.killTweensOf(c.find("*"), !1), punchgs.TweenLite.killTweensOf(c, !1), d.remove(); try { c.closest(".forcefullwidth_wrapper_tp_banner").remove() } catch (a) {} try { c.closest(".rev_slider_wrapper").remove() } catch (a) {} try { c.remove() } catch (a) {} return c.empty(), c.html(), c = null, e = null, delete b.c, delete b.opt, !0 } return !1 }, revpause: function() { return this.each(function() { var a = jQuery(this); a != undefined && a.length > 0 && jQuery("body").find("#" + a.attr("id")).length > 0 && (a.data("conthover", 1), a.data("conthover-changed", 1), a.trigger("revolution.slide.onpause"), a[0].opt.tonpause = !0, a.trigger("stoptimer")) }) }, revresume: function() { return this.each(function() { var a = jQuery(this); a != undefined && a.length > 0 && jQuery("body").find("#" + a.attr("id")).length > 0 && (a.data("conthover", 0), a.data("conthover-changed", 1), a.trigger("revolution.slide.onresume"), a[0].opt.tonpause = !1, a.trigger("starttimer")) }) }, revstart: function() { var a = jQuery(this); if (a != undefined && a.length > 0 && jQuery("body").find("#" + a.attr("id")).length > 0 && a[0].opt !== undefined) return a[0].opt.sliderisrunning ? (console.log("Slider Is Running Already"), !1) : (runSlider(a, a[0].opt), !0) }, revnext: function() { return this.each(function() { var a = jQuery(this); a != undefined && a.length > 0 && jQuery("body").find("#" + a.attr("id")).length > 0 && _R.callingNewSlide(a, 1) }) }, revprev: function() { return this.each(function() { var a = jQuery(this); a != undefined && a.length > 0 && jQuery("body").find("#" + a.attr("id")).length > 0 && _R.callingNewSlide(a, -1) }) }, revmaxslide: function() { return jQuery(this).find(".tp-revslider-mainul >li").length }, revcurrentslide: function() { var a = jQuery(this); if (a != undefined && a.length > 0 && jQuery("body").find("#" + a.attr("id")).length > 0) return parseInt(a[0].opt.act, 0) + 1 }, revlastslide: function() { return jQuery(this).find(".tp-revslider-mainul >li").length }, revshowslide: function(a) { return this.each(function() { var b = jQuery(this); b != undefined && b.length > 0 && jQuery("body").find("#" + b.attr("id")).length > 0 && _R.callingNewSlide(b, "to" + (a - 1)) }) }, revcallslidewithid: function(a) { return this.each(function() { var b = jQuery(this); b != undefined && b.length > 0 && jQuery("body").find("#" + b.attr("id")).length > 0 && _R.callingNewSlide(b, a) }) } }); var _R = jQuery.fn.revolution; jQuery.extend(!0, _R, { getversion: function() { return version }, compare_version: function(a) { return "stop" != a.check && (_R.getversion().core < a.min_core ? (a.check === undefined && (console.log("%cSlider Revolution Warning (Core:" + _R.getversion().core + ")", "color:#c0392b;font-weight:bold;"), console.log("%c Core is older than expected (" + a.min_core + ") from " + a.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")), a.check = "stop") : _R.getversion()[a.name] != undefined && a.version < _R.getversion()[a.name] && (a.check === undefined && (console.log("%cSlider Revolution Warning (Core:" + _R.getversion().core + ")", "color:#c0392b;font-weight:bold;"), console.log("%c " + a.alias + " (" + a.version + ") is older than requiered (" + _R.getversion()[a.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")), a.check = "stop")), a }, currentSlideIndex: function(a) { var b = a.c.find(".active-revslide").index(); return b = b == -1 ? 0 : b }, simp: function(a, b, c) { var d = Math.abs(a) - Math.floor(Math.abs(a / b)) * b; return c ? d : a < 0 ? -1 * d : d }, iOSVersion: function() { var a = !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) && (a = !0) : a = !1, a }, isIE: function(a, b) { var c = jQuery('
').appendTo(jQuery("body")); c.html(""); var d = c.find("a").length; return c.remove(), d }, is_mobile: function() { var a = ["android", "webos", "iphone", "ipad", "blackberry", "Android", "webos", , "iPod", "iPhone", "iPad", "Blackberry", "BlackBerry"], b = !1; for (var c in a) navigator.userAgent.split(a[c]).length > 1 && (b = !0); return b }, callBackHandling: function(a, b, c) { try { a.callBackArray && jQuery.each(a.callBackArray, function(a, d) { d && d.inmodule && d.inmodule === b && d.atposition && d.atposition === c && d.callback && d.callback.call() }) } catch (a) { console.log("Call Back Failed") } }, get_browser: function() { var c, a = navigator.appName, b = navigator.userAgent, d = b.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); return d && null != (c = b.match(/version\/([\.\d]+)/i)) && (d[2] = c[1]), d = d ? [d[1], d[2]] : [a, navigator.appVersion, "-?"], d[0] }, get_browser_version: function() { var c, a = navigator.appName, b = navigator.userAgent, d = b.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); return d && null != (c = b.match(/version\/([\.\d]+)/i)) && (d[2] = c[1]), d = d ? [d[1], d[2]] : [a, navigator.appVersion, "-?"], d[1] }, getHorizontalOffset: function(a, b) { var c = gWiderOut(a, ".outer-left"), d = gWiderOut(a, ".outer-right"); switch (b) { case "left": return c; case "right": return d; case "both": return c + d } }, callingNewSlide: function(a, b) { var c = a.find(".next-revslide").length > 0 ? a.find(".next-revslide").index() : a.find(".processing-revslide").length > 0 ? a.find(".processing-revslide").index() : a.find(".active-revslide").index(), d = 0, e = a[0].opt; a.find(".next-revslide").removeClass("next-revslide"), a.find(".active-revslide").hasClass("tp-invisible-slide") && (c = e.last_shown_slide), b && jQuery.isNumeric(b) || b.match(/to/g) ? (1 === b || b === -1 ? (d = c + b, d = d < 0 ? e.slideamount - 1 : d >= e.slideamount ? 0 : d) : (b = jQuery.isNumeric(b) ? b : parseInt(b.split("to")[1], 0), d = b < 0 ? 0 : b > e.slideamount - 1 ? e.slideamount - 1 : b), a.find(".tp-revslider-slidesli:eq(" + d + ")").addClass("next-revslide")) : b && a.find(".tp-revslider-slidesli").each(function() { var a = jQuery(this); a.data("index") === b && a.addClass("next-revslide") }), d = a.find(".next-revslide").index(), a.trigger("revolution.nextslide.waiting"), c === d && c === e.last_shown_slide || d !== c && d != -1 ? swapSlide(a) : a.find(".next-revslide").removeClass("next-revslide") }, slotSize: function(a, b) { b.slotw = Math.ceil(b.width / b.slots), "fullscreen" == b.sliderLayout ? b.sloth = Math.ceil(jQuery(window).height() / b.slots) : b.sloth = Math.ceil(b.height / b.slots), "on" == b.autoHeight && a !== undefined && "" !== a && (b.sloth = Math.ceil(a.height() / b.slots)) }, setSize: function(a) { var b = (a.top_outer || 0) + (a.bottom_outer || 0), c = parseInt(a.carousel.padding_top || 0, 0), d = parseInt(a.carousel.padding_bottom || 0, 0), e = a.gridheight[a.curWinRange], f = 0, g = a.nextSlide === -1 || a.nextSlide === undefined ? 0 : a.nextSlide; if (a.paddings = a.paddings === undefined ? { top: parseInt(a.c.parent().css("paddingTop"), 0) || 0, bottom: parseInt(a.c.parent().css("paddingBottom"), 0) || 0 } : a.paddings, a.rowzones && a.rowzones.length > 0) for (var h = 0; h < a.rowzones[g].length; h++) f += a.rowzones[g][h][0].offsetHeight; if (e = e < a.minHeight ? a.minHeight : e, e = e < f ? f : e, "fullwidth" == a.sliderLayout && "off" == a.autoHeight && punchgs.TweenLite.set(a.c, { maxHeight: e + "px" }), a.c.css({ marginTop: c, marginBottom: d }), a.width = a.ul.width(), a.height = a.ul.height(), setScale(a), a.height = Math.round(a.gridheight[a.curWinRange] * (a.width / a.gridwidth[a.curWinRange])), a.height > a.gridheight[a.curWinRange] && "on" != a.autoHeight && (a.height = a.gridheight[a.curWinRange]), "fullscreen" == a.sliderLayout || a.infullscreenmode) { a.height = a.bw * a.gridheight[a.curWinRange]; var j = (a.c.parent().width(), jQuery(window).height()); if (a.fullScreenOffsetContainer != undefined) { try { var k = a.fullScreenOffsetContainer.split(","); k && jQuery.each(k, function(a, b) { j = jQuery(b).length > 0 ? j - jQuery(b).outerHeight(!0) : j }) } catch (a) {} try { a.fullScreenOffset.split("%").length > 1 && a.fullScreenOffset != undefined && a.fullScreenOffset.length > 0 ? j -= jQuery(window).height() * parseInt(a.fullScreenOffset, 0) / 100 : a.fullScreenOffset != undefined && a.fullScreenOffset.length > 0 && (j -= parseInt(a.fullScreenOffset, 0)) } catch (a) {} } j = j < a.minHeight ? a.minHeight : j, j -= b, a.c.parent().height(j), a.c.closest(".rev_slider_wrapper").height(j), a.c.css({ height: "100%" }), a.height = j, a.minHeight != undefined && a.height < a.minHeight && (a.height = a.minHeight), a.height = parseInt(f, 0) > parseInt(a.height, 0) ? f : a.height } else a.minHeight != undefined && a.height < a.minHeight && (a.height = a.minHeight), a.height = parseInt(f, 0) > parseInt(a.height, 0) ? f : a.height, a.c.height(a.height); var l = { height: c + d + b + a.height + a.paddings.top + a.paddings.bottom }; a.c.closest(".forcefullwidth_wrapper_tp_banner").find(".tp-fullwidth-forcer").css(l), a.c.closest(".rev_slider_wrapper").css(l), setScale(a) }, enterInViewPort: function(a) { a.waitForCountDown && (countDown(a.c, a), a.waitForCountDown = !1), a.waitForFirstSlide && (swapSlide(a.c), a.waitForFirstSlide = !1, setTimeout(function() { a.c.removeClass("tp-waitforfirststart") }, 500)), "playing" != a.sliderlaststatus && a.sliderlaststatus != undefined || a.c.trigger("starttimer"), a.lastplayedvideos != undefined && a.lastplayedvideos.length > 0 && jQuery.each(a.lastplayedvideos, function(b, c) { _R.playVideo(c, a) }) }, leaveViewPort: function(a) { a.sliderlaststatus = a.sliderstatus, a.c.trigger("stoptimer"), a.playingvideos != undefined && a.playingvideos.length > 0 && (a.lastplayedvideos = jQuery.extend(!0, [], a.playingvideos), a.playingvideos && jQuery.each(a.playingvideos, function(b, c) { a.leaveViewPortBasedStop = !0, _R.stopVideo && _R.stopVideo(c, a) })) }, unToggleState: function(a) { a != undefined && a.length > 0 && jQuery.each(a, function(a, b) { b.removeClass("rs-toggle-content-active") }) }, toggleState: function(a) { a != undefined && a.length > 0 && jQuery.each(a, function(a, b) { b.addClass("rs-toggle-content-active") }) }, swaptoggleState: function(a) { a != undefined && a.length > 0 && jQuery.each(a, function(a, b) { jQuery(b).hasClass("rs-toggle-content-active") ? jQuery(b).removeClass("rs-toggle-content-active") : jQuery(b).addClass("rs-toggle-content-active") }) }, lastToggleState: function(a) { var b = 0; return a != undefined && a.length > 0 && jQuery.each(a, function(a, c) { b = c.hasClass("rs-toggle-content-active") }), b } }); var _ISM = _R.is_mobile(), checkIDS = function(a, b) { a.anyid = a.anyid === undefined ? [] : a.anyid; var c = jQuery.inArray(b.attr("id"), a.anyid); if (c != -1) { var d = b.attr("id") + "_" + Math.round(9999 * Math.random()); b.attr("id", d) } a.anyid.push(b.attr("id")) }, removeArray = function(a, b) { var c = []; return jQuery.each(a, function(a, d) { a != b && c.push(d) }), c }, removeNavWithLiref = function(a, b, c) { c.c.find(a).each(function() { var a = jQuery(this); a.data("liref") === b && a.remove() }) }, lAjax = function(a, b) { return !jQuery("body").data(a) && (b.filesystem ? (b.errorm === undefined && (b.errorm = "
Local Filesystem Detected !
Put this to your header:"), console.warn("Local Filesystem detected !"), b.errorm = b.errorm + '
<script type="text/javascript" src="' + b.jsFileLocation + a + b.extensions_suffix + '"></script>', console.warn(b.jsFileLocation + a + b.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(" "), b.modulesfailing = !0, !1) : (jQuery.ajax({ url: b.jsFileLocation + a + b.extensions_suffix + "?version=" + version.core, dataType: "script", cache: !0, error: function(c) { console.warn("Slider Revolution 5.0 Error !"), console.error("Failure at Loading:" + a + b.extensions_suffix + " on Path:" + b.jsFileLocation), console.info(c) } }), void jQuery("body").data(a, !0))) }, getNeededScripts = function(a, b) { var c = new Object, d = a.navigation; return c.kenburns = !1, c.parallax = !1, c.carousel = !1, c.navigation = !1, c.videos = !1, c.actions = !1, c.layeranim = !1, c.migration = !1, b.data("version") && b.data("version").toString().match(/5./gi) ? (b.find("img").each(function() { "on" == jQuery(this).data("kenburns") && (c.kenburns = !0) }), ("carousel" == a.sliderType || "on" == d.keyboardNavigation || "on" == d.mouseScrollNavigation || "on" == d.touch.touchenabled || d.arrows.enable || d.bullets.enable || d.thumbnails.enable || d.tabs.enable) && (c.navigation = !0), b.find(".tp-caption, .tp-static-layer, .rs-background-video-layer").each(function() { var a = jQuery(this); (a.data("ytid") != undefined || a.find("iframe").length > 0 && a.find("iframe").attr("src").toLowerCase().indexOf("youtube") > 0) && (c.videos = !0), (a.data("vimeoid") != undefined || a.find("iframe").length > 0 && a.find("iframe").attr("src").toLowerCase().indexOf("vimeo") > 0) && (c.videos = !0), a.data("actions") !== undefined && (c.actions = !0), c.layeranim = !0 }), b.find("li").each(function() { jQuery(this).data("link") && jQuery(this).data("link") != undefined && (c.layeranim = !0, c.actions = !0) }), !c.videos && (b.find(".rs-background-video-layer").length > 0 || b.find(".tp-videolayer").length > 0 || b.find(".tp-audiolayer").length > 0 || b.find("iframe").length > 0 || b.find("video").length > 0) && (c.videos = !0), "carousel" == a.sliderType && (c.carousel = !0), ("off" !== a.parallax.type || a.viewPort.enable || "true" == a.viewPort.enable || "true" === a.scrolleffect.on || a.scrolleffect.on) && (c.parallax = !0)) : (c.kenburns = !0, c.parallax = !0, c.carousel = !1, c.navigation = !0, c.videos = !0, c.actions = !0, c.layeranim = !0, c.migration = !0), "hero" == a.sliderType && (c.carousel = !1, c.navigation = !1), window.location.href.match(/file:/gi) && (c.filesystem = !0, a.filesystem = !0), c.videos && "undefined" == typeof _R.isVideoPlaying && lAjax("revolution.extension.video", a), c.carousel && "undefined" == typeof _R.prepareCarousel && lAjax("revolution.extension.carousel", a), c.carousel || "undefined" != typeof _R.animateSlide || lAjax("revolution.extension.slideanims", a), c.actions && "undefined" == typeof _R.checkActions && lAjax("revolution.extension.actions", a), c.layeranim && "undefined" == typeof _R.handleStaticLayers && lAjax("revolution.extension.layeranimation", a), c.kenburns && "undefined" == typeof _R.stopKenBurn && lAjax("revolution.extension.kenburn", a), c.navigation && "undefined" == typeof _R.createNavigation && lAjax("revolution.extension.navigation", a), c.migration && "undefined" == typeof _R.migration && lAjax("revolution.extension.migration", a), c.parallax && "undefined" == typeof _R.checkForParallax && lAjax("revolution.extension.parallax", a), a.addons != undefined && a.addons.length > 0 && jQuery.each(a.addons, function(b, c) { "object" == typeof c && c.fileprefix != undefined && lAjax(c.fileprefix, a) }), c }, waitForScripts = function(a, b) { var c = !0, d = b.scriptsneeded; b.addons != undefined && b.addons.length > 0 && jQuery.each(b.addons, function(a, b) { "object" == typeof b && b.init != undefined && _R[b.init] === undefined && (c = !1) }), d.filesystem || "undefined" != typeof punchgs && c && (!d.kenburns || d.kenburns && "undefined" != typeof _R.stopKenBurn) && (!d.navigation || d.navigation && "undefined" != typeof _R.createNavigation) && (!d.carousel || d.carousel && "undefined" != typeof _R.prepareCarousel) && (!d.videos || d.videos && "undefined" != typeof _R.resetVideo) && (!d.actions || d.actions && "undefined" != typeof _R.checkActions) && (!d.layeranim || d.layeranim && "undefined" != typeof _R.handleStaticLayers) && (!d.migration || d.migration && "undefined" != typeof _R.migration) && (!d.parallax || d.parallax && "undefined" != typeof _R.checkForParallax) && (d.carousel || !d.carousel && "undefined" != typeof _R.animateSlide) ? a.trigger("scriptsloaded") : setTimeout(function() { waitForScripts(a, b) }, 50) }, getScriptLocation = function(a) { var b = new RegExp("themepunch.revolution.min.html", "gi"), c = ""; return jQuery("script").each(function() { var a = jQuery(this).attr("src"); a && a.match(b) && (c = a) }), c = c.replace("jquery.themepunch.revolution.min.html", ""), c = c.replace("jquery.themepunch.revolution.html", ""), c = c.split("?")[0] }, setCurWinRange = function(a, b) { var d = 9999, e = 0, f = 0, g = 0, h = jQuery(window).width(), i = b && 9999 == a.responsiveLevels ? a.visibilityLevels : a.responsiveLevels; i && i.length && jQuery.each(i, function(a, b) { h < b && (0 == e || e > b) && (d = b, g = a, e = b), h > b && e < b && (e = b, f = a) }), e < d && (g = f), b ? a.forcedWinRange = g : a.curWinRange = g }, prepareOptions = function(a, b) { b.carousel.maxVisibleItems = b.carousel.maxVisibleItems < 1 ? 999 : b.carousel.maxVisibleItems, b.carousel.vertical_align = "top" === b.carousel.vertical_align ? "0%" : "bottom" === b.carousel.vertical_align ? "100%" : "50%" }, gWiderOut = function(a, b) { var c = 0; return a.find(b).each(function() { var a = jQuery(this); !a.hasClass("tp-forcenotvisible") && c < a.outerWidth() && (c = a.outerWidth()) }), c }, initSlider = function(container, opt) { return container != undefined && (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(a) { var b = jQuery(this); "on" == b.data("hideslideonmobile") && _ISM && b.remove(), (b.data("invisible") || b.data("invisible") === !0) && (b.addClass("tp-invisible-slide"), b.appendTo(opt.ul)) }), opt.addons != undefined && opt.addons.length > 0 && 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"), void(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(a, b) { if (b.sliderisrunning = !0, b.ul.find(">li").each(function(a) { jQuery(this).data("originalindex", a) }), b.allli = b.ul.find(">li"), jQuery.each(b.allli, function(a, b) { var b = jQuery(b); b.data("origindex", b.index()) }), b.li = b.ul.find(">li").not(".tp-invisible-slide"), "on" == b.shuffle) { var c = new Object, d = b.ul.find(">li:first-child"); c.fstransition = d.data("fstransition"), c.fsmasterspeed = d.data("fsmasterspeed"), c.fsslotamount = d.data("fsslotamount"); for (var e = 0; e < b.slideamount; e++) { var f = Math.round(Math.random() * b.slideamount); b.ul.find(">li:eq(" + f + ")").prependTo(b.ul) } var g = b.ul.find(">li:first-child"); g.data("fstransition", c.fstransition), g.data("fsmasterspeed", c.fsmasterspeed), g.data("fsslotamount", c.fsslotamount), b.allli = b.ul.find(">li"), b.li = b.ul.find(">li").not(".tp-invisible-slide") } if (b.inli = b.ul.find(">li.tp-invisible-slide"), b.thumbs = new Array, b.slots = 4, b.act = -1, b.firststart = 1, b.loadqueue = new Array, b.syncload = 0, b.conw = a.width(), b.conh = a.height(), b.responsiveLevels.length > 1 ? b.responsiveLevels[0] = 9999 : b.responsiveLevels = 9999, jQuery.each(b.allli, function(a, c) { var c = jQuery(c), d = c.find(".rev-slidebg") || c.find("img").first(), e = 0; c.addClass("tp-revslider-slidesli"), c.data("index") === undefined && c.data("index", "rs-" + Math.round(999999 * Math.random())); var f = new Object; f.params = new Array, f.id = c.data("index"), f.src = c.data("thumb") !== undefined ? c.data("thumb") : d.data("lazyload") !== undefined ? d.data("lazyload") : d.attr("src"), c.data("title") !== undefined && f.params.push({ from: RegExp("\\{\\{title\\}\\}", "g"), to: c.data("title") }), c.data("description") !== undefined && f.params.push({ from: RegExp("\\{\\{description\\}\\}", "g"), to: c.data("description") }); for (var e = 1; e <= 10; e++) c.data("param" + e) !== undefined && f.params.push({ from: RegExp("\\{\\{param" + e + "\\}\\}", "g"), to: c.data("param" + e) }); if (b.thumbs.push(f), c.data("link") != undefined) { var g = c.data("link"), h = c.data("target") || "_self", i = "back" === c.data("slideindex") ? 0 : 60, j = c.data("linktoslide"), k = j; j != undefined && "next" != j && "prev" != j && b.allli.each(function() { var a = jQuery(this); a.data("origindex") + 1 == k && (j = a.data("index")) }), "slide" != g && (j = "no"); var l = '