PageSourceSearch

https://mtgdolphin.bg/wp-content/plugins/slideshow-jquery-image-gallery/js/min/all.frontend.min.js?ver=2.3.1

js mtgdolphin.bg collected 2026-10-09 17:57:12 UTC 31,190 bytes, 243 lines download raw bytes

1function onYouTubeIframeAPIReady() { slideshow_jquery_image_gallery_script.youTubeAPIReady = !0 }
2slideshow_jquery_image_gallery_backend_script_scriptsloadedFlag = !1, slideshow_jquery_image_gallery_script = function() {
3    var e = jQuery,
4        i = {};
5    return i.slideshowInstances = {}, i.initialized = !1, i.youTubeAPIReady = !1, i.sessionIDCounter = 0, i.init = function() { slideshow_jquery_image_gallery_backend_script_scriptsloadedFlag !== !0 || i.initialized || (i.initialized = !0, e(document).trigger("slideshow_jquery_image_gallery_script_ready"), i.repairStylesheetURLs(), i.activateSlideshows(), i.enableLazyLoading(), e(document).trigger("slideshow_jquery_image_gallery_slideshows_ready")) }, i.getSlideshowInstance = function(t) {
6        if (isNaN(parseInt(t, 10))) {
7            if (t instanceof e && t.length > 0)
8                for (var s in i.slideshowInstances)
9                    if (i.slideshowInstances.hasOwnProperty(s)) { var n = i.slideshowInstances[s]; if (n instanceof i.Slideshow && n.$container.get(0) === t.get(0)) return n }
10        } else if (i.slideshowInstances[t] instanceof i.Slideshow) return i.slideshowInstances[t];
11        return new i.Slideshow
12    }, i.activateSlideshows = function() { e.each(e(".slideshow_container"), function(t, s) { i.activateSlideshow(e(s)) }) }, i.activateSlideshow = function(e) { e.hasClass("slideshow_container") && "1" != e.attr("data-slideshow-active") && (e.attr("data-slideshow-active", "1"), i.slideshowInstances[i.sessionIDCounter] = new i.Slideshow(e), i.sessionIDCounter++) }, i.enableLazyLoading = function() {
13        var t;
14        "function" == typeof MutationObserver ? (t = new MutationObserver(function(t) {
15            t.forEach(function(t) {
16                var s;
17                if (t.addedNodes)
18                    for (s = 0; s < t.addedNodes.length; s++) e.each(e(t.addedNodes[s]).find(".slideshow_container").addBack(".slideshow_container"), function(t, s) { i.activateSlideshow(e(s)) })
19            })
20        }), t.observe(document.body, { childList: !0, subtree: !0, attributes: !1, characterData: !1 })) : setInterval(function() { e.each(e(".slideshow_container:not([data-slideshow-active])"), function(t, s) { i.activateSlideshow(e(s)) }) }, 2e3)
21    }, i.loadYouTubeAPI = function() {
22        if (!i.loadYouTubeAPICalled) {
23            i.loadYouTubeAPICalled = !0;
24            var e = document.createElement("script"),
25                t = document.getElementsByTagName("script")[0];
26            e.src = "//www.youtube.com/iframe_api", t.parentNode.insertBefore(e, t)
27        }
28    }, i.repairStylesheetURLs = function() {
29        var i = e('[id*="slideshow-jquery-image-gallery-ajax-stylesheet_"]');
30        e.each(i, function(i, t) {
31            var s, n, a, o = e(t),
32                r = e(t).attr("href");
33            void 0 !== r && "" !== r && (s = o.attr("id").split("_"), n = s.splice(1, s.length - 1).join("_").slice(0, -4), a = r.split("?"), (void 0 === a[1] || "" === a[1] || a[1].toLowerCase().indexOf("style=") < 0) && (a[1] = "action=slideshow_jquery_image_gallery_load_stylesheet&style=" + n + "&ver=" + Math.round((new Date).getTime() / 1e3), r = a.join("?"), o.attr("href", r)))
34        })
35    }, i.log = function(e) { "object" == typeof console && console.log("slideshow-jquery-image-gallery", e) }, e(document).ready(function() { i.init() }), e(window).load(function() { i.init() }), e.fn.getSlideshowInstance = function() { return i.getSlideshowInstance(this) }, i
36}();
37
38! function() {
39    var i = jQuery,
40        t = slideshow_jquery_image_gallery_script;
41    t.Slideshow = function(s) {
42        if (s instanceof i && (this.$container = s, this.$content = this.$container.find(".slideshow_content"), this.$views = this.$container.find(".slideshow_view"), this.$slides = this.$container.find(".slideshow_slide"), this.$controlPanel = this.$container.find(".slideshow_controlPanel"), this.$togglePlayButton = this.$controlPanel.find(".slideshow_togglePlay"), this.$nextButton = this.$container.find(".slideshow_next"), this.$previousButton = this.$container.find(".slideshow_previous"), this.$pagination = this.$container.find(".slideshow_pagination"), this.$loadingIcon = this.$container.find(".slideshow_loading_icon"), this.ID = this.get
42SlideshowID(), !isNaN(parseInt(this.ID, 10)))) {
43            if (this.settings = window["SlideshowPluginSettings_" + this.ID], !this.settings) try { if (this.settings = JSON.parse(this.$container.attr("data-settings")), "object" != typeof this.settings) throw "" } catch (e) { return t.log("Slideshow (ID: " + this.ID + ") could not find its settings."), void 0 }
44            i.each(this.settings, i.proxy(function(i, t) { "true" == t ? this.settings[i] = !0 : "false" == t && (this.settings[i] = !1) }, this)), this.$parentElement = this.$container.parent(), this.viewData = [], this.viewIDs = [], this.currentlyAnimating = !1, this.currentViewID = void 0, this.currentWidth = 0, this.visibleViews = [], this.videoPlayers = [], this.PlayStates = { UNSTARTED: -2, PAUSED: -1, TEMPORARILY_PAUSED: 0, PLAYING: 1 }, this.playState = this.PlayStates.UNSTARTED, this.interval = !1, this.pauseOnHoverTimer = !1, this.descriptionTimer = !1, this.randomNextHistoryViewIDs = [], this.randomPreviousHistoryViewIDs = [], this.randomAvailableViewIDs = [], i.each(this.$views, i.proxy(function(i) { this.viewIDs.push(i) }, this)), this.currentViewID = this.getNextViewID(), this.visibleViews = [this.currentViewID], this.recalculate(!1);
45            var n = i.proxy(function(t) {
46                (this.$container.width() <= 0 || this.$container.height() <= 0) && setTimeout(i.proxy(function() { t(t) }, this), 500), i.each(this.$views, i.proxy(function(t, s) {
47                    var e = i(s);
48                    t != this.visibleViews[0] ? e.css("top", this.$container.outerHeight(!0)).find("a").attr("tabindex", "-1") : e.addClass("slideshow_currentView")
49                }, this))
50            }, this);
51            n(n);
52            var h = !0;
53            i.each(this.$views, i.proxy(function(t, s) {
54                var e = i(s);
55                this.viewData[t] = [], i.each(e.find(".slideshow_slide"), i.proxy(function(s, e) {
56                    var n = i(e);
57                    if (this.viewData[t][s] = {}, n.hasClass("slideshow_slide_image")) {
58                        var a = n.find("img");
59                        a.length > 0 ? a.get(0).complete ? this.viewData[t][s].loaded = 1 : (t === this.currentViewID && (h = !1), this.viewData[t][s].loaded = 0, this.onImageLoad(a, i.proxy(function(i) { this.viewData[t][s].loaded = i ? 1 : 2, this.settings.waitUntilLoaded && t === this.currentViewID && this.isViewLoaded(t) && this.start() }, this))) : this.viewData[t][s].loaded = -1
60                    } else this.viewData[t][s].loaded = -1;
61                    n.hasClass("slideshow_slide_video") && slideshow_jquery_image_gallery_script.loadYouTubeAPI()
62                }, this))
63            }, this)), i(window).load(i.proxy(function() { this.recalculate(!0) }, this)), parseFloat(this.settings.intervalSpeed) < parseFloat(this.settings.slideSpeed) + .1 && (this.settings.intervalSpeed = parseFloat(this.settings.slideSpeed) + .1), (!this.settings.waitUntilLoaded || this.settings.waitUntilLoaded && h) && this.start()
64        }
65    }
66}();
67! function() {
68    var t = jQuery,
69        i = slideshow_jquery_image_gallery_script;
70    i.Slideshow.prototype.start = function() { this.activateDescriptions(), this.activateControlPanel(), this.activateNavigationButtons(), this.activatePagination(), this.activatePauseOnHover(), this.$loadingIcon.length > 0 && this.$loadingIcon.remove(), this.$content.show(), this.recalculateViews(), this.settings.enableResponsiveness && t(window).resize(t.proxy(function() { this.recalculate(!0) }, this)), this.playState = this.PlayStates.PAUSED, this.$container.trigger("slideshowPlayStateChange", [this.playState]), this.settings.play && this.play() }, i.Slideshow.prototype.play = function() { this.interval || (this.playState = this.PlayStates.PLAYING, this.$container.trigger("slideshowPlayStateChange", [this.playState]), this.interval = setInterval(t.proxy(function i(e, s) { void 0 === s && (s = this), void 0 === e && (e = s.getNextViewID()), s.isViewLoaded(e) ? (s.animateTo(e, 1), s.play()) : (s.pause(this.PlayStates.TEMPORARILY_PAUSED), setTimeout(t.proxy(function() { i(e, s) }, s), 100)) }, this), 1e3 * this.settings.intervalSpeed)) }, i.Slideshow.prototype.pause = function(t) { clearInterval(this.interval), this.interval = !1, t !== this.PlayStates.PAUSED && t !== this.PlayStates.TEMPORARILY_PAUSED && (t = this.PlayStates.PAUSED), this.playState = t, this.$container.trigger("slideshowPlayStateChange", [this.playState]) }, i.Slideshow.prototype.next = function() { this.playState === this.PlayStates.PLAYING && (this.pause(this.PlayStates.TEMPORARILY_PAUSED), this.play()), this.animateTo(this.getNextViewID(), 1) }, i.Slideshow.prototype.previous = function() { this.playState === this.PlayStates.PLAYING && (this.pause(this.PlayStates.TEMPORARILY_PAUSED), this.play()), this.animateTo(this.getPreviousViewID(), -1) }, i.Slideshow.prototype.isVideoPlaying = function() {
71        for (var t in this.videoPlayers)
72            if (this.videoPlayers.hasOwnProperty(t)) { var i = this.videoPlayers[t].state; if (1 == i || 3 == i) return !0 }
73        return !1
74    }, i.Slideshow.prototype.pauseAllVideos = function() {
75        for (var t in this.videoPlayers)
76            if (this.videoPlayers.hasOwnProperty(t)) {
77                var i = this.videoPlayers[t].player;
78                null != i && "function" == typeof i.pauseVideo && -1 != this.videoPlayers[t].state && (this.videoPlayers[t].state = 2, i.pauseVideo())
79            }
80    }, i.Slideshow.prototype.isViewLoaded = function(i) { var e = !0; return isNaN(parseInt(i, 10)) ? !1 : (t.each(this.viewData[i], t.proxy(function(t, i) { 0 == i.loaded && (e = !1) }, this)), e) }, i.Slideshow.prototype.getNaturalImageSize = function(i, e, s) { return i.length <= 0 || !(i instanceof t) || "string" != typeof i.attr("src") ? (e(-1, -1, s), void 0) : (this.onImageLoad(i, t.proxy(function(t, i) { e(i.width, i.height, s) }, this)), void 0) }, i.Slideshow.prototype.onImageLoad = function(i, e, s) { var a = new Image; return i.length <= 0 || !(i instanceof t) || "string" != typeof i.attr("src") ? (e(!1, a, s), void 0) : (a.onload = t.proxy(function() { e(!0, a, s) }, this), a.src = i.attr("src"), void 0) }, i.Slideshow.prototype.getNextViewID = function() { var t = this.currentViewID; if (this.settings.random) { var i = t; if (t = this.getNextRandomViewID(), t != i) return t } return isNaN(parseInt(t, 10)) ? 0 : t >= this.$views.length - 1 ? this.settings.loop ? 0 : this.currentViewID : t + 1 }, i.Slideshow.prototype.getPreviousViewID = function() { var t = this.currentViewID; if (isNaN(parseInt(t, 10)) && (t = 0), this.settings.random) { var i = t; if (t = this.getPreviousRandomViewID(), t != i) return t } return 0 >= t ? this.settings.loop ? t = this.$views.length - 1 : this.currentViewID : t -= 1 }, i.Slideshow.prototype.getNextRandomViewID = function() {
81        if (isNaN(parseInt(this.currentViewID, 10)) || this.randomPreviousHistoryViewIDs.push(this.currentViewID), this.randomPreviousHistoryViewIDs.length > 2 * this.viewIDs.length && this.randomPreviousHistoryViewIDs.shift(), this.randomNextHistoryViewIDs.length > 0) return this.randomNextHistoryViewIDs.pop();
82        if (void 0 === this.randomAvailableViewIDs || this.randomAvailableViewIDs.length <= 0) {
83            this.randomAvailableViewIDs = t.extend(!0, [], this.viewIDs);
84            var i = t.inArray(this.currentViewID, this.randomAvailableViewIDs);
85            i >= 0 && this.randomAvailableViewIDs.splice(i, 1)
86        }
87        return this.randomAvailableViewIDs.splice(Math.floor(Math.random() * this.randomAvailableViewIDs.length), 1).pop()
88    }, i.Slideshow.prototype.getPreviousRandomViewID = function() { return isNaN(parseInt(this.currentViewID, 10)) || this.randomNextHistoryViewIDs.push(this.currentViewID), this.randomNextHistoryViewIDs.length > 2 * this.viewIDs.length && this.randomNextHistoryViewIDs.shift(), this.randomPreviousHistoryViewIDs.length > 0 ? this.randomPreviousHistoryViewIDs.pop() : this.viewIDs[Math.floor(Math.random() * this.viewIDs.length)] }, i.Slideshow.prototype.getSlideshowID = function() { var t = this.$container.data("slideshowId"); return isNaN(parseInt(t, 10)) && (t = this.$container.attr("data-sli
88deshow-id")), t }, i.Slideshow.prototype.bindSubmitListener = function(i) {
89        i.keypress(t.proxy(function(i) {
90            var e = i.keyCode || i.which;
91            13 === e && (i.preventDefault(), t(i.currentTarget).click())
92        }, this))
93    }
94}();
95! function() {
96    var e = jQuery,
97        t = slideshow_jquery_image_gallery_script;
98    t.Slideshow.prototype.animateTo = function(t, s) {
99        if (!(this.isVideoPlaying() || 0 > t || t >= this.$views.length || t == this.currentViewID)) {
100            if (this.currentlyAnimating === !0) return this.$container.one("slideshowAnimationEnd", e.proxy(function() { this.playState === this.PlayStates.PLAYING && (this.pause(this.PlayStates.TEMPORARILY_PAUSED), this.play()), this.animateTo(t, s) }, this)), void 0;
101            this.currentlyAnimating = !0, (isNaN(parseInt(s, 10)) || 0 == s) && (s = t < this.currentViewID ? -1 : 1), this.visibleViews = [this.currentViewID, t];
102            var i = this.settings.animation,
103                n = ["slide", "slideRight", "slideUp", "slideDown", "fade", "directFade"];
104            "random" == i && (i = n[Math.floor(Math.random() * n.length)]);
105            var o = { slide: "slideRight", slideRight: "slide", slideUp: "slideDown", slideDown: "
105slideUp", fade: "fade", directFade: "directFade", crossFade: "crossFade" };
106            0 > s && (i = o[i]);
107            var d = e(this.$views[this.currentViewID]),
108                a = e(this.$views[t]);
109            switch (d.stop(!0, !0), a.stop(!0, !0), a.addClass("slideshow_nextView"), this.recalculateVisibleViews(), this.currentViewID = t, this.$container.trigger("slideshowAnimationStart", [t, i, s]), i) {
110                case "slide":
111                    a.css({ top: 0, left: this.$content.width() }), d.animate({ left: -d.outerWidth(!0) }, 1e3 * this.settings.slideSpeed), a.animate({ left: 0 }, 1e3 * this.settings.slideSpeed), setTimeout(e.proxy(function() { d.stop(!0, !0).css("top", this.$container.outerHeight(!0)) }, this), 1e3 * this.settings.slideSpeed);
112                    break;
113                case "slideRight":
114                    a.css({ top: 0, left: -this.$content.width() }), d.animate({ left: d.outerWidth(!0) }, 1e3 * this.settings.slideSpeed), a.animate({ left: 0 }, 1e3 * this.settings.slideSpeed), setTimeout(e.proxy(function() { d.stop(!0, !0).css("top", this.$container.outerHeight(!0)) }, this), 1e3 * this.settings.slideSpeed);
115                    break;
116                case "slideUp":
117                    a.css({ top: this.$content.height(), left: 0 }), d.animate({ top: -d.outerHeight(!0) }, 1e3 * this.settings.slideSpeed), a.animate({ top: 0 }, 1e3 * this.settings.slideSpeed), setTimeout(e.proxy(function() { d.stop(!0, !0).css("top", this.$container.outerHeight(!0)) }, this), 1e3 * this.settings.slideSpeed);
118                    break;
119                case "slideDown":
120                    a.css({ top: -this.$content.height(), left: 0 }), d.animate({ top: d.outerHeight(!0) }, 1e3 * this.settings.slideSpeed), a.animate({ top: 0 }, 1e3 * this.settings.slideSpeed), setTimeout(e.proxy(function() { d.stop(!0, !0).css("top", this.$container.outerHeight(!0)) }, this), 1e3 * this.settings.slideSpeed);
121                    break;
122                case "fade":
123                    a.css({ top: 0, left: 0, display: "none" }), d.fadeOut(1e3 * this.settings.slideSpeed / 2), setTimeout(e.proxy(function() { a.fadeIn(1e3 * this.settings.slideSpeed / 2), d.stop(!0, !0).css({ top: this.$container.outerHeight(!0), display: "block" }) }, this), 1e3 * this.settings.slideSpeed / 2);
124                    break;
125                case "directFade":
126                    a.css({ top: 0, left: 0, "z-index": 0, display: "none" }), d.css({ "z-index": 1 }), a.stop(!0, !0).fadeIn(1e3 * this.settings.slideSpeed), d.stop(!0, !0).fadeOut(1e3 * this.settings.slideSpeed), setTimeout(e.proxy(function() { a.stop(!0, !0).css({ "z-index": 0 }), d.stop(!0, !0).css({ top: this.$container.outerHeight(!0), display: "block", "z-index": 0 }) }, this), 1e3 * this.settings.slideSpeed);
127                    break;
128                case "crossFade":
129                    a.css({ top: 0, left: 0, "z-index": 1, display: "none" }), d.css({ "z-index": 0 }), a.stop(!0, !0).fadeIn(1e3 * this.settings.slideSpeed), setTimeout(e.proxy(function() { d.css({ top: this.$container.outerHeight(!0) }), a.css({ "z-index": 1 }) }, this), 1e3 * this.settings.slideSpeed)
130            }
131            setTimeout(e.proxy(function() { d.removeClass("slideshow_currentView").find("a").attr("tabindex", "-1"), a.removeClass("slideshow_nextView"), a.addClass("slideshow_currentView").find("a").attr("tabindex", "0"), this.visibleViews = [t], this.currentlyAnimating = !1, this.$container.trigger("slideshowAnimationEnd") }, this), 1e3 * this.settings.slideSpeed)
132        }
133    }
134}();
135! function() {
136    var t = jQuery,
137        i = slideshow_jquery_image_gallery_script;
138    i.Slideshow.prototype.recalculate = function(i) {
139        if (!this.$container.is(":visible")) return setTimeout(t.proxy(function() { this.recalculate(i) }, this), 500), void 0;
140        for (var e = this.$parentElement, h = 0; e.width() <= 0 && (e = e.parent(), !(h > 50)); h++);
141        if (this.currentWidth != e.width()) {
142            this.currentWidth = e.width();
143            var s = e.width() - (this.$container.outerWidth() - this.$container.width());
144            if (parseInt(this.settings.maxWidth, 10) > 0 && parseInt(this.settings.maxWidth, 10) < s && (s = parseInt(this.settings.maxWidth, 10)), this.$container.css("width", Math.round(s)), this.$content.css("width", Math.round(s) - (this.$content.outerWidth(!0) - this.$content.width())), this.settings.preserveSlideshowDimensions) {
145                var r = s * this.settings.dimensionHeight / this.settings.dimensionWidth;
146                this.$container.css("height", Math.round(r)), this.$content.css("height", Math.round(r) - (this.$content.outerHeight(!0) - this.$content.height()))
147            } else this.$container.css("height", Math.round(this.settings.height)), this.$content.css("height", Math.round(this.settings.height));
148            this.$views.each(t.proxy(function(i, e) { t.inArray(i, this.visibleViews) < 0 && t(e).css("top", this.$container.outerHeight(!0)) }, this)), this.$container.trigger("slideshowResize"), (i || "boolean" != typeof i) && this.recalculateVisibleViews()
149        }
150    }, i.Slideshow.prototype.recalculateViews = function() { t.each(this.$views, t.proxy(function(t) { this.recalculateView(t, !1) }, this)) }, i.Slideshow.prototype.recalculateVisibleViews = function() { t.each(this.visibleViews, t.proxy(function(t, i) { this.recalculateView(i, !1) }, this)) }, i.Slideshow.prototype.recalculateView = function(e, h) {
151        if (this.$content.width() <= 0 || this.$content.height() <= 0) return setTimeout(t.proxy(function() { this.recalculateView(e, h) }, this), 500), void 0;
152        var s = t(this.$views[e]);
153        if ("boolean" == typeof h && h || this.$content.width() != s.outerWidth(!0)) {
154            var r = s.find(".slideshow_slide");
155            if (!(r.length <= 0)) {
156                var a = this.$content.width() - (s.outerWidth(!0) - s.width()),
157                    o = this.$content.height() - (s.outerHeight(!0) - s.height()),
158                    n = Math.floor(a / r.length),
159                    d = o,
160                    l = a % r.length,
161                    c = 0;
162                t(r[0]).css("margin-left", 0), t(r[r.length - 1]).css("margin-right", 0), t.each(r, t.proxy(function(h, s) {
163                    var a = t(s),
164                        o = a.outerWidth(!0) - a.width(),
165                        g = a.outerHeight(!0) - a.height();
166                    if (h == r.length - 1 ? a.width(n - o + l) : a.width(n - o), a.height(d - g), a.hasClass("slideshow_slide_text")) {
167                        var u = a.find(".slideshow_background_anchor");
168                        if (u.length <= 0) return;
169                        var w = a.width() - (u.outerWidth(!0) - u.width()),
170                            f = a.height() - (u.outerHeight(!0) - u.height());
171                        u.css({ width: w, height: f })
172                    } else if (a.hasClass("slideshow_slide_image")) {
173                        var v = a.find("img");
174                        if (v.length <= 0) return;
175                        var p, m, y = v.outerWidth(),
176                            $ = v.outerHeight();
177                        p = isNaN(parseInt(y, 10)) ? 0 : y - v.width(), m = isNaN(parseInt($, 10)) ? 0 : $ - v.height();
178                        var _ = a.width() - p,
179                            x = a.height() - m;
180                        "stretch" === this.settings.imageBehaviour ? (v.css({ width: _, height: x }), v.attr({ width: _, height: x })) : this.getNaturalImageSize(v, t.proxy(function(i, h) { var s, r; return 0 >= i || 0 >= h ? (setTimeout(t.proxy(function() { this.recalculateView(e, !0) }, this), 500), void 0) : (s = a.width() / a.height(), r = (i + p) / (h + m), r >= s ? "natural" === this.settings.imageBehaviour ? (v.css({ margin: "0px", width: _, height: Math.round(_ / r) }), v.attr({ width: _, height: Math.round(_ / r) })) : "crop" === this.settings.imageBehaviour && (v.css({ "margin-top": "0p
180x", "margin-left": -Math.floor((x * r - _) / 2), height: x, width: Math.floor(x * r) }), v.attr({ width: Math.floor(x * r), height: x })) : "natural" === this.settings.imageBehaviour ? (v.css({ "margin-left": "auto", "margin-right": "auto", display: "block", width: Math.round(x * r), height: x }), v.attr({ width: Math.round(x * r), height: x })) : "crop" === this.settings.imageBehaviour && (v.css({ "margin-top": -Math.floor((_ / r - x) / 2), "margin-left": "0px", width: _, height: Math.floor(_ / r) }), v.attr({ width: _, height: Math.floor(_ / r) })), void 0) }, this))
181                    } else if (a.hasClass("slideshow_slide_video")) {
182                        var M = a.find("iframe");
183                        if (M.length > 0) M.attr({ width: a.width(), height: a.height() });
184                        else var W = setInterval(t.proxy(function() {
185                            if (i.youTubeAPIReady) {
186                                clearInterval(W);
187                                var e = a.find(".slideshow_slide_video_id");
188                                e.attr("id", "slideshow_slide_video_" + Math.floor(1e6 * Math.random()) + "_" + e.text());
189                                var h = e.attr("data-show-related-videos"),
190                                    s = new YT.Player(e.attr("id"), { width: a.width(), height: a.height(), videoId: e.text(), playerVars: { wmode: "opaque", rel: h }, events: { onReady: function() {}, onStateChange: t.proxy(function(t) { this.videoPlayers[e.attr("id")].state = t.data }, this) } }),
191                                    r = t("#" + e.attr("id"));
192                                r.show(), r.attr("src", r.attr("src") + "&wmode=opaque"), this.videoPlayers[e.attr("id")] = { player: s, state: -1 }
193                            }
194                        }, this), 500)
195                    }
196                    c += a.outerWidth(!0)
197                }, this)), s.css({ width: a, height: o })
198            }
199        }
200    }
201}();
202! function() {
203    var t = jQuery,
204        i = slideshow_jquery_image_gallery_script;
205    i.Slideshow.prototype.activateDescriptions = function() {
206        this.settings.showDescription && (t.each(this.$slides.find(".slideshow_description_box"), t.proxy(function(i, s) {
207            var e = t(s);
208            e.show(), this.settings.hideDescription ? e.css({ position: "absolute", top: this.$container.outerHeight(!0) }) : e.css({ position: "absolute" }).addClass('container')
209        }, this)), this.settings.hideDescription && (this.$container.bind("slideshowResize", t.proxy(function() { t.each(this.$container.find(".slideshow_description_box"), t.proxy(function(i, s) { t(s).css("top", this.$container.outerHeight(!0)) }, this)) }, this)), this.$container.bind("slideshowAnimationStart", t.proxy(function() { void 0 != this.visibleViews[1] && t.each(t(this.$views[this.visibleViews[1]]).find(".slideshow_description_box"), t.proxy(function(i, s) { t(s).css("top", this.$container.outerHeight(!0)) }, this)) }, this)), this.$slides.mouseenter(t.proxy(function(i) {
210            var s = t(i.currentTarget).find(".slideshow_description_box");
211            this.descriptionTimer = setTimeout(t.proxy(function() { this.descriptionTimer = "", s.stop(!0, !1).animate({ top: this.$container.outerHeight(!0) - s.outerHeight(!0) }, parseInt(1e3 * this.settings.descriptionSpeed, 10)) }, this), 200)
212        }, this)), this.$slides.mouseleave(t.proxy(function(i) { this.descriptionTimer !== !1 && (clearInterval(this.descriptionTimer), this.descriptionTimer = !1), t(i.currentTarget).find(".slideshow_description_box").stop(!0, !1).animate({ top: this.$container.outerHeight(!0) }, parseInt(1e3 * this.settings.descriptionSpeed, 10)) }, this))))
213    }, i.Slideshow.prototype.activateNavigationButtons = function() {
214        var i, s;
215        this.settings.controllable && (i = this.$nextButton.data("nextText"), s = this.$previousButton.data("previousText"), ("string" != typeof i || "string" != typeof s || i.length <= 0 || s.length <= 0) && (i = this.$nextButton.attr("data-next-text"), s = this.$previousButton.attr("data-previous-text")), this.$nextButton.html('<span class="assistive-text hide-text">' + i + "</span>").attr({ tabindex: "0", title: i }), this.$previousButton.html('<span class="assistive-text hide-text">' + s + "</span>").attr({ tabindex: "0", title: s }), this.$nextButton.click(t.proxy(function() { this.currentlyAnimating || (this.pauseAllVideos(), this.playState === this.PlayStates.PLAYING && (this.pause(this.PlayStates.TEMPORARILY_PAUSED), this.play()), this.animateTo(this.getNextViewID(), 1)) }, this)), this.$previousButton.click(t.proxy(function() { this.currentlyAnimating || (this.pauseAllVideos(), this.playState === this.PlayStates.PLAYING && (this.pause(this.PlayStates.TEMPORARILY_PAUSED), this.play()), this.animateTo(this.getPreviousViewID(), -1)) }, this)), this.bindSubmitListener(this.$nextButton), this.bindSubmitListener(this.$previousButton), this.settings.hideNavigationButtons ? (this.$container.mouseenter(t.proxy(function() { this.$nextButton.stop(!0, !0).fadeIn(100) }, this)), this.$container.mouseleave(t.proxy(function() { this.$nextButton.stop(!0, !0).fadeOut(500) }, this)), this.$container.mouseenter(t.proxy(function() { this.$previousButton.stop(!0, !0).fadeIn(100) }, this)), this.$container.mouseleave(t.proxy(function() { this.$previousButton.stop(!0, !0).fadeOut(500) }, this))) : (this.$nextButton.show(), this.$previousButton.show()))
216    }, i.Slideshow.prototype.activateControlPanel = function() {
217        this.settings.controlPanel && (this.$togglePlayButton.attr("tabindex", "0"), this.$container.bind("slideshowPlayStateChange", t.proxy(function(t, i) {
218            var s, e;
219            this.$togglePlayButton.attr("role", "button"), s = this.$togglePlayButton.data("playText"), e = this.$togglePlayButton.data("pauseText"), ("string" != typeof s || "string" != typeof e || s.length <= 0 || e.length <= 0) && (s = this.$nextButton.attr("data-play-text"), e = this.$previousButton.attr("data-pause-text")), i === this.PlayStates.PLAYING ? this.$togglePlayButton.html('<span class="assistive-text hide-text">' + e + "</span>").attr({ "class": "slideshow_pause", title: e }) : i === this.PlayStates.PAUSED && this.$togglePlayButton.html('<span class="assistive-text hide-text">' + s + "</span>").attr({ "class": "slideshow_play", title: s })
220        }, this)), this.$togglePlayButton.click(t.proxy(function(i) {
221            var s = t(i.currentTarget);
222            s.hasClass("slideshow_play") ? this.play() : this.pause(this.PlayStates.PAUSED)
223        }, this)), this.bindSubmitListener(this.$togglePlayButton), this.settings.hideControlPanel ? (this.$container.mouseenter(t.proxy(function() { this.$controlPanel.stop(!0, !0).fadeIn(100) }, this)), this.$container.mouseleave(t.proxy(function() { this.$controlPanel.stop(!0, !0).fadeOut(500) }, this))) : this.$controlPanel.show())
224    }, i.Slideshow.prototype.activatePagination = function() {
225        if (this.settings.showPagination) {
226            this.$pagination.find(".slideshow_pagination_center").html("<ul></ul>");
227            var i = this.$pagination.find("ul");
228            i.html(""), this.$views.each(t.proxy(function(t) {
229                var s = "",
230                    e = parseInt(t, 10) + 1,
231                    n = this.$pagination.data("goToText");
232                ("string" != typeof n || n.length <= 0) && (n = this.$pagination.attr("data-go-to-text")), t == this.currentViewID && (s = "slideshow_currentView"), i.append('<li class="slideshow_transparent ' + s + '" data-view-id="' + t + '" role="button" title="' + n + " " + e + '"><span class="assistive-text hide-text">' + n + " " + e + "</span></li>")
233            }, this)), this.$pagination.find("li").attr("tabindex", "0").click(t.proxy(function(i) {
234                var s, e = t(i.currentTarget);
235                this.currentlyAnimating || (s = e.data("viewId"), isNaN(parseInt(s, 10)) && (s = e.attr("data-view-id"), isNaN(parseInt(s, 10))) || (this.pauseAllVideos(), this.playState === this.PlayStates.PLAYING && (this.pause(this.PlayStates.TEMPORARILY_PAUSED), this.play()), this.animateTo(parseInt(s, 10), 0)))
236            }, this)), this.bindSubmitListener(this.$pagination.find("li")), this.$container.bind("slideshowAnimationStart", t.proxy(function() {
237                var i = this.$pagination.find("li");
238                i.each(t.proxy(function(i, s) { t(s).removeClass("slideshow_currentView") }, this)), t(i[this.currentViewID]).addClass("slideshow_currentView")
239            }, this)), this.settings.hidePagination ? (this.$container.mouseenter(t.proxy(function() { this.$pagination.stop(!0, !0).fadeIn(100) }, this)), this.$container.mouseleave(t.proxy(function() { this.$pagination.stop(!0, !0).fadeOut(500) }, this))) : this.$pagination.show()
240        }
241    }, i.Slideshow.prototype.activatePauseOnHover = function() { this.settings.pauseOnHover && (this.$container.mouseenter(t.proxy(function() { clearTimeout(this.pauseOnHoverTimer), this.playState !== this.PlayStates.PAUSED && (this.pauseOnHoverTimer = setTimeout(t.proxy(function() { this.pause(this.PlayStates.TEMPORARILY_PAUSED) }, this), 500)) }, this)), this.$container.mouseleave(t.proxy(function() { clearTimeout(this.pauseOnHoverTimer), this.playState !== this.PlayStates.PAUSED && this.interval === !1 && this.play() }, this))) }
242}();
243slideshow_jquery_image_gallery_backend_script_scriptsloadedFlag = !0;

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.