PageSourceSearch

https://www.madness.co.uk/wp-content/themes/madness/js/plugins.min.js?ver=1769518343

js madness.co.uk collected 2026-09-24 18:49:29 UTC 171,778 bytes, 4,041 lines download raw bytes

1/*!
2 * jQuery Tools v1.2.7 - The missing UI library for the Web
3 */
4/* jQuery.browser polyfill for jQuery 3.x compatibility */
5if (!jQuery.browser) {
6    jQuery.browser = {};
7    jQuery.browser.msie = false;
8    jQuery.browser.version = 0;
9    if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) {
10        jQuery.browser.msie = true;
11        jQuery.browser.version = parseInt(RegExp.$1);
12    }
13}
14(function(f) {
15    f.browser = f.browser || jQuery.browser;
16    f.tools = f.tools || {
17        version: "v1.2.7"
18    }, f.tools.tooltip = {
19        conf: {
20            effect: "toggle",
21            fadeOutSpeed: "fast",
22            predelay: 0,
23            delay: 30,
24            opacity: 1,
25            tip: 0,
26            fadeIE: !1,
27            position: ["top", "center"],
28            offset: [0, 0],
29            relative: !1,
30            cancelDefault: !0,
31            events: {
32                def: "mouseenter,mouseleave",
33                input: "focus,blur",
34                widget: "focus mouseenter,blur mouseleave",
35                tooltip: "mouseenter,mouseleave"
36            },
37            layout: "<div/>",
38            tipClass: "tooltip"
39        },
40        addEffect: function(b, k, j) {
41            e[b] = [k, j];
42        }
43    };
44    var e = {
45        toggle: [function(k) {
46            var j = this.getConf(),
47                m = this.getTip(),
48                l = j.opacity;
49            l < 1 && m.css({
50                opacity: l
51            }), m.show(), k.call();
52        }, function(b) {
53            this.getTip().hide(), b.call();
54        }],
55        fade: [function(a) {
56            var d = this.getConf();
57            !f.browser.msie || d.fadeIE ? this.getTip().fadeTo(d.fadeInSpeed, d.opacity, a) : (this.getTip().show(), a());
58        }, function(a) {
59            var d = this.getConf();
60            !f.browser.msie || d.fadeIE ? this.getTip().fadeOut(d.fadeOutSpeed, a) : (this.getTip().hide(), a());
61        }]
62    };
63
64    function h(a, p, o) {
65        var n = o.relative ? a.position().top : a.offset().top,
66            m = o.relative ? a.position().left : a.offset().left,
67            l = o.position[0];
68        n -= p.outerHeight() - o.offset[0], m += a.outerWidth() + o.offset[1], /iPad/i.test(navigator.userAgent) && (n -= f(window).scrollTop());
69        var k = p.outerHeight() + a.outerHeight();
70        l == "center" && (n += k / 2), l == "bottom" && (n += k), l = o.position[1];
71        var j = p.outerWidth() + a.outerWidth();
72        l == "center" && (m -= j / 2), l == "left" && (m -= j);
73        return {
74            top: n,
75            left: m
76        };
77    }
78
79    function g(F, E) {
80        var D = this,
81            C = F.add(D),
82            B, A = 0,
83            z = 0,
84            y = F.attr("title"),
85            w = F.attr("data-tooltip"),
86            v = e[E.effect],
87            u, s = F.is(":input"),
88            c = s && F.is(":checkbox, :radio, select, :button, :submit"),
89            b = F.attr("type"),
90            a = E.events[b] || E.events[s ? c ? "widget" : "input" : "def"];
91        if (!v) {
92            throw 'Nonexistent effect "' + E.effect + '"';
93        }
94        a = a.split(/,\s*/);
95        if (a.length != 2) {
96            throw "Tooltip: bad events configuration for " + b;
97        }
98        F.on(a[0], function(d) {
99            clearTimeout(A), E.predelay ? z = setTimeout(function() {
100                D.show(d);
101            }, E.predelay) : D.show(d);
102        }).on(a[1], function(d) {
103            clearTimeout(z), E.delay ? A = setTimeout(function() {
104                D.hide(d);
105            }, E.delay) : D.hide(d);
106        }), y && E.cancelDefault && (F.removeAttr("title"), F.data("title", y)), f.extend(D, {
107            show: function(d) {
108                if (!B) {
109                    w ? B = f(w) : E.tip ? B = f(E.tip).eq(0) : y ? B = f(E.layout).addClass(E.tipClass).appendTo(document.body).hide().append(y) : (B = F.next(), B.length || (B = F.parent().next()));
110                    if (!B.length) {
111                        throw "Cannot find tooltip for " + F;
112                    }
113                }
114                if (D.isShown()) {
115                    return D;
116                }
117                B.stop(!0, !0);
118                var k = h(F, B, E);
119                E.tip && B.html(F.data("title")), d = f.Event(), d.type = "onBeforeShow", C.trigger(d, [k]);
120                if (d.isDefaultPrevented()) {
121                    return D;
122                }
123                k = h(F, B, E), B.css({
124                    position: "absolute",
125                    top: k.top,
126                    left: k.left
127                }), u = !0, v[0].call(D, function() {
128                    d.type = "onShow", u = "full", C.trigger(d);
129                });
130                var j = E.events.tooltip.split(/,\s*/);
131                B.data("__set") || (B.off(j[0]).on(j[0], function() {
132                    clearTimeout(A), clearTimeout(z);
133                }
133), j[1] && !F.is("input:not(:checkbox, :radio), textarea") && B.off(j[1]).on(j[1], function(l) {
134                    l.relatedTarget != F[0] && F.trigger(a[1].split(" ")[0]);
135                }), E.tip || B.data("__set", !0));
136                return D;
137            },
138            hide: function(d) {
139                if (!B || !D.isShown()) {
140                    return D;
141                }
142                d = f.Event(), d.type = "onBeforeHide", C.trigger(d);
143                if (!d.isDefaultPrevented()) {
144                    u = !1, e[E.effect][1].call(D, function() {
145                        d.type = "onHide", C.trigger(d);
146                    });
147                    return D;
148                }
149            },
150            isShown: function(d) {
151                return d ? u == "full" : u;
152            },
153            getConf: function() {
154                return E;
155            },
156            getTip: function() {
157                return B;
158            },
159            getTrigger: function() {
160                return F;
161            }
162        }), f.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","), function(d, j) {
163            f.isFunction(E[j]) && f(D).on(j, E[j]), D[j] = function(k) {
164                k && f(D).on(j, k);
165                return D;
166            };
167        });
168    }
169    f.fn.tooltip = function(a) {
170        var d = this.data("tooltip");
171        if (d) {
172            return d;
173        }
174        a = f.extend(!0, {}, f.tools.tooltip.conf, a), typeof a.position == "string" && (a.position = a.position.split(/,?\s/)), this.each(function() {
175            d = new g(f(this), a), f(this).data("tooltip", d);
176        });
177        return a.api ? d : this;
178    };
179})(jQuery);
180(function(f) {
181    var e = f.tools.tooltip;
182    e.dynamic = {
183        conf: {
184            classNames: "top right bottom left"
185        }
186    };
187
188    function h(a) {
189        var l = f(window),
190            k = l.width() + l.scrollLeft(),
191            j = l.height() + l.scrollTop();
192        return [a.offset().top <= l.scrollTop(), k <= a.offset().left + a.width(), j <= a.offset().top + a.height(), l.scrollLeft() >= a.offset().left];
193    }
194
195    function g(d) {
196        var c = d.length;
197        while (c--) {
198            if (d[c]) {
199                return !1;
200            }
201        }
202        return !0;
203    }
204    f.fn.dynamic = function(d) {
205        typeof d == "number" && (d = {
206            speed: d
207        }), d = f.extend({}, e.dynamic.conf, d);
208        var c = f.extend(!0, {}, d),
209            b = d.classNames.split(/\s/),
210            a;
211        this.each(function() {
212            var j = f(this).tooltip().onBeforeShow(function(m, r) {
213                var q = this.getTip(),
214                    p = this.getConf();
215                a || (a = [p.position[0], p.position[1], p.offset[0], p.offset[1], f.extend({}, p)]), f.extend(p, a[4]), p.position = [a[0], a[1]], p.offset = [a[2], a[3]], q.css({
216                    visibility: "hidden",
217                    position: "absolute",
218                    top: r.top,
219                    left: r.left
220                }).show();
221                var o = f.extend(!0, {}, c),
222                    n = h(q);
223                if (!g(n)) {
224                    n[2] && (f.extend(p, o.top), p.position[0] = "top", q.addClass(b[0])), n[3] && (f.extend(p, o.right), p.position[1] = "right", q.addClass(b[1])), n[0] && (f.extend(p, o.bottom), p.position[0] = "bottom", q.addClass(b[2])), n[1] && (f.extend(p, o.left), p.position[1] = "left", q.addClass(b[3]));
225                    if (n[0] || n[2]) {
226                        p.offset[0] *= -1;
227                    }
228                    if (n[1] || n[3]) {
229                        p.offset[1] *= -1;
230                    }
231                }
232                q.css({
233                    visibility: "visible"
234                }).hide();
235            });
236            j.onBeforeShow(function() {
237                var l = this.getConf(),
238                    k = this.getTip();
239                setTimeout(function() {
240                    l.position = [a[0], a[1]], l.offset = [a[2], a[3]];
241                }, 0);
242            }), j.onHide(function() {
243                var k = this.getTip();
244                k.removeClass(d.classNames);
245            }), ret = j;
246        });
247        return d.api ? ret : this;
248    };
249})(jQuery);
250(function(e) {
251    e.browser = e.browser || jQuery.browser;
252    var d = e.tools.tooltip;
253    e.extend(d.conf, {
254        direction: "up",
255        bounce: !1,
256        slideOffset: 10,
257        slideInSpeed: 200,
258        slideOutSpeed: 200,
259        slideFade: !e.browser.msie
260    });
261    var f = {
262        up: ["-", "top"],
263        down: ["+", "top"],
264        left: ["-", "left"],
265        right: ["+", "left"]
266    };
267    d.addEffect("slide", function(g) {
268        var c = this.getConf(),
269            k = this.getTip(),
270            j = c.slideFade ? {
271                opacity: c.opacity
272            } : {},
273            h = f[c.direction] || f.up;
274        j[h[1]] = h[0] + "=" + c.slideOffset, c.slideFade && k.css({
275            opacity: 0
276        }), k.show().animate(j, c.slideInSpeed, g);
277    }, function(a) {
278        var m = this.getConf(),
279            l = m.slideOffset,
280            k = m.slideFade ? {
281                opacity: 0
282            } : {},
283            j = f[m.direction] || f.up,
284            c = "" + j[0];
285        m.bounce && (c = c == "+" ? "-" : "+"), k[j[1]] = c + "=" + l, this.getTip().animate(k, m.slideOutSpeed, function() {
286            e(this).hide(), a.call();
287        });
288    });
289})(jQuery);
290(function(a) {
291    a.flexslider = function(o, k) {
292        var y = a(o),
293            w = a.extend({}, a.flexslider.defaults, k),
294            v = w.namespace,
295            b = "ontouchstart" in window || window.DocumentTouch && document instanceof DocumentTouch,
296            z = b ? "touchend" : "click",
297            g = "vertical" === w.direction,
298            d = w.reverse,
299            p = 0 < w.itemWidth,
300            B = "fade" === w.animation,
301            A = "" !== w.asNavFor,
302            r = {};
303        a.data(o, "flexslider", y);
304        r = {
305            init: function() {
306                y.animating = !1;
307                y.currentSlide = w.startAt;
308                y.animatingTo = y.currentSlide;
309                y.atEnd = 0 === y.currentSlide || y.currentSlide === y.last;
310                y.containerSelector = w.selector.substr(0, w.selector.search(" "));
311                y.slides = a(w.selector, y);
312                y.container = a(y.containerSelector, y);
313                y.count = y.slides.length;
314                y.syncExists = 0 < a(w.sync).length;
315                "slide" === w.animation && (w.animation = "swing");
316                y.prop = g ? "top" : "marginLeft";
317                y.args = {};
318                y.manualPause = !1;
319                var c = y,
320                    f;
321                if (f = !w.video) {
322                    if (f = !B) {
323                        if (f = w.useCSS) {
324                            y: {
325                                f = document.createElement("div");
326                                var j = ["perspectiveProperty", "WebkitPerspective", "MozPerspective", "OPerspective", "msPerspective"],
327                                    h;
328                                for (h in j) {
329                                    if (void 0 !== f.style[j[h]]) {
330                                        y.pfx = j[h].replace("Perspective", "").toLowerCase();
331                                        y.prop = "-" + y.pfx + "-transform";
332                                        f = !0;
333                                        break y;
334                                    }
335                                }
336                                f = !1;
337                            }
338                        }
339                    }
340                }
341                c.transitions = f;
342                "" !== w.controlsContainer && (y.controlsContainer = 0 < a(w.controlsContainer).length && a(w.controlsContainer));
343                "" !== w.manualControls && (y.manualControls = 0 < a(w.manualControls).length && a(w.manualControls));
344                w.randomize && (y.slides.sort(function() {
345                    return Math.round(Math.random()) - 0.5;
346                }), y.container.empty().append(y.slides));
347                y.doMath();
348                A && r.asNav.setup();
349                y.setup("init");
350                w.controlNav && r.controlNav.setup();
351                w.directionNav && r.directionNav.setup();
352                w.keyboard && (1 === a(y.containerSelector).length || w.multipleKeyboard) && a(document).bind("keyup", function(e) {
353                    e = e.keyCode;
354                    if (!y.animating && (39 === e || 37 === e)) {
355                        e = 39 === e ? y.getTarget("next") : 37 === e ? y.getTarget("prev") : !1, y.flexAnimate(e, w.pauseOnAction);
356                    }
357                });
358                w.mousewheel && y.bind("mousewheel", function(e, l) {
359                    e.preventDefault();
360                    var m = 0 > l ? y.getTarget("next") : y.getTarget("prev");
361                    y.flexAnimate(m, w.pauseOnAction);
362                });
363                w.pausePlay && r.pausePlay.setup();
364                w.slideshow && (w.pauseOnHover && y.hover(function() {
365                    !y.manualPlay && !y.manualPause && y.pause();
366                }, function() {
367                    !y.manualPause && !y.manualPlay && y.play();
368                }), 0 < w.initDelay ? setTimeout(y.play, w.initDelay) : y.play());
369                b && w.touch && r.touch();
370                (!B || B && w.smoothHeight) && a(window).bind("resize focus", r.resize);
371                setTimeout(function() {
372                    w.start(y);
373                }, 200);
374            },
375            asNav: {
376                setup: function() {
377                    y.asNav = !0;
378                    y.animatingTo = Math.floor(y.currentSlide / y.move);
379                    y.currentItem = y.currentSlide;
380                    y.slides.removeClass(v + "active-slide").eq(y.currentItem).addClass(v + "active-slide");
381                    y.slides.click(function(c) {
382                        c.preventDefault();
383                        c = a(this);
384                        var e = c.index();
385                        !a(w.asNavFor).data("flexslider").animating && !c.hasClass("active") && (y.direction = y.currentItem < e ? "next" : "prev", y.flexAnimate(e, w.pauseOnAction, !1, !0, !0));
386                    });
387                }
388            },
389            controlNav: {
390                setup: function() {
391                    y.manualControls ? r.controlNav.setupManual() : r.controlNav.setupPaging(
391);
392                },
393                setupPaging: function() {
394                    var c = 1,
395                        e;
396                    y.controlNavScaffold = a('<ol class="' + v + "control-nav " + v + ("thumbnails" === w.controlNav ? "control-thumbs" : "control-paging") + '"></ol>');
397                    if (1 < y.pagingCount) {
398                        for (var f = 0; f < y.pagingCount; f++) {
399                            e = "thumbnails" === w.controlNav ? '<img src="' + y.slides.eq(f).attr("data-thumb") + '"/>' : "<a>" + c + "</a>", y.controlNavScaffold.append("<li>" + e + "</li>"), c++;
400                        }
401                    }
402                    y.controlsContainer ? a(y.controlsContainer).append(y.controlNavScaffold) : y.append(y.controlNavScaffold);
403                    r.controlNav.set();
404                    r.controlNav.active();
405                    y.controlNavScaffold.delegate("a, img", z, function(h) {
406                        h.preventDefault();
407                        h = a(this);
408                        var j = y.controlNav.index(h);
409                        h.hasClass(v + "active") || (y.direction = j > y.currentSlide ? "next" : "prev", y.flexAnimate(j, w.pauseOnAction));
410                    });
411                    b && y.controlNavScaffold.delegate("a", "click touchstart", function(h) {
412                        h.preventDefault();
413                    });
414                },
415                setupManual: function() {
416                    y.controlNav = y.manualControls;
417                    r.controlNav.active();
418                    y.controlNav.on(z, function(c) {
419                        c.preventDefault();
420                        c = a(this);
421                        var e = y.controlNav.index(c);
422                        c.hasClass(v + "active") || (e > y.currentSlide ? y.direction = "next" : y.direction = "prev", y.flexAnimate(e, w.pauseOnAction));
423                    });
424                    b && y.controlNav.on("click touchstart", function(c) {
425                        c.preventDefault();
426                    });
427                },
428                set: function() {
429                    y.controlNav = a("." + v + "control-nav li " + ("thumbnails" === w.controlNav ? "img" : "a"), y.controlsContainer ? y.controlsContainer : y);
430                },
431                active: function() {
432                    y.controlNav.removeClass(v + "active").eq(y.animatingTo).addClass(v + "active");
433                },
434                update: function(e, f) {
435                    1 < y.pagingCount && "add" === e ? y.controlNavScaffold.append(a("<li><a>" + y.count + "</a></li>")) : 1 === y.pagingCount ? y.controlNavScaffold.find("li").remove() : y.controlNav.eq(f).closest("li").remove();
436                    r.controlNav.set();
437                    1 < y.pagingCount && y.pagingCount !== y.controlNav.length ? y.update(f, e) : r.controlNav.active();
438                }
439            },
440            directionNav: {
441                setup: function() {
442                    var c = a('<ul class="' + v + 'direction-nav"><li><a class="' + v + 'prev" href="#">' + w.prevText + '</a></li><li><a class="' + v + 'next" href="#">' + w.nextText + "</a></li></ul>");
443                    y.controlsContainer ? (a(y.controlsContainer).append(c), y.directionNav = a("." + v + "direction-nav li a", y.controlsContainer)) : (y.append(c), y.directionNav = a("." + v + "direction-nav li a", y));
444                    r.directionNav.update();
445                    y.directionNav.bind(z, function(e) {
446                        e.preventDefault();
447                        e = a(this).hasClass(v + "next") ? y.getTarget("next") : y.getTarget("prev");
448                        y.flexAnimate(e, w.pauseOnAction);
449                    });
450                    b && y.directionNav.bind("click touchstart", function(e) {
451                        e.preventDefault();
452                    });
453                },
454                update: function() {
455                    var c = v + "disabled";
456                    1 === y.pagingCount ? y.directionNav.addClass(c) : w.animationLoop ? y.directionNav.removeClass(c) : 0 === y.animatingTo ? y.directionNav.removeClass(c).filter("." + v + "prev").addClass(c) : y.animatingTo === y.last ? y.directionNav.removeClass(c).filter("." + v + "next").addClass(c) : y.directionNav.removeClass(c);
457                }
458            },
459            pausePlay: {
460                setup: function() {
461                    var c = a('<div class="' + v + 'pauseplay"><a></a></div>');
462                    y.controlsContainer ? (y.controlsContainer.append(c), y.pausePlay = a("." + v + "pauseplay a", y.controlsContainer)) : (y.append(c), y.pausePlay = a("." + v + "pauseplay a", y));
463                    r.pausePlay.update(w.slideshow ? v + "pause" : v + "play");
464                    y.pausePlay.bind(z, function(e) {
465                        e.preventDefault();
466                        a(this).hasClass(v + "pause") ? (y.manualPause = !0, y.manualPlay 
466= !1, y.pause()) : (y.manualPause = !1, y.manualPlay = !0, y.play());
467                    });
468                    b && y.pausePlay.bind("click touchstart", function(e) {
469                        e.preventDefault();
470                    });
471                },
472                update: function(c) {
473                    "play" === c ? y.pausePlay.removeClass(v + "pause").addClass(v + "play").text(w.playText) : y.pausePlay.removeClass(v + "play").addClass(v + "pause").text(w.pauseText);
474                }
475            },
476            touch: function() {
477                function D(e) {
478                    m = g ? C - e.touches[0].pageY : C - e.touches[0].pageX;
479                    h = g ? Math.abs(m) < Math.abs(e.touches[0].pageX - u) : Math.abs(m) < Math.abs(e.touches[0].pageY - u);
480                    if (!h || 500 < Number(new Date) - j) {
481                        e.preventDefault(), !B && y.transitions && (w.animationLoop || (m /= 0 === y.currentSlide && 0 > m || y.currentSlide === y.last && 0 < m ? Math.abs(m) / c + 2 : 1), y.setProps(s + m, "setTouch"));
482                    }
483                }
484
485                function n() {
486                    o.removeEventListener("touchmove", D, !1);
487                    if (y.animatingTo === y.currentSlide && !h && null !== m) {
488                        var f = d ? -m : m,
489                            e = 0 < f ? y.getTarget("next") : y.getTarget("prev");
490                        y.canAdvance(e) && (550 > Number(new Date) - j && 50 < Math.abs(f) || Math.abs(f) > c / 2) ? y.flexAnimate(e, w.pauseOnAction) : B || y.flexAnimate(y.currentSlide, w.pauseOnAction, !0);
491                    }
492                    o.removeEventListener("touchend", n, !1);
493                    s = m = u = C = null;
494                }
495                var C, u, s, c, m, j, h = !1;
496                o.addEventListener("touchstart", function(e) {
497                    y.animating ? e.preventDefault() : 1 === e.touches.length && (y.pause(), c = g ? y.h : y.w, j = Number(new Date), s = p && d && y.animatingTo === y.last ? 0 : p && d ? y.limit - (y.itemW + w.itemMargin) * y.move * y.animatingTo : p && y.currentSlide === y.last ? y.limit : p ? (y.itemW + w.itemMargin) * y.move * y.currentSlide : d ? (y.last - y.currentSlide + y.cloneOffset) * c : (y.currentSlide + y.cloneOffset) * c, C = g ? e.touches[0].pageY : e.touches[0].pageX, u = g ? e.touches[0].pageX : e.touches[0].pageY, o.addEventListener("touchmove", D, !1), o.addEventListener("touchend", n, !1));
498                }, !1);
499            },
500            resize: function() {
501                !y.animating && y.is(":visible") && (p || y.doMath(), B ? r.smoothHeight() : p ? (y.slides.width(y.computedW), y.update(y.pagingCount), y.setProps()) : g ? (y.viewport.height(y.h), y.setProps(y.h, "setTotal")) : (w.smoothHeight && r.smoothHeight(), y.newSlides.width(y.computedW), y.setProps(y.computedW, "setTotal")));
502            },
503            smoothHeight: function(e) {
504                if (!g || B) {
505                    var f = B ? y : y.viewport;
506                    e ? f.animate({
507                        height: y.slides.eq(y.animatingTo).height()
508                    }, e) : f.height(y.slides.eq(y.animatingTo).height());
509                }
510            },
511            sync: function(c) {
512                var f = a(w.sync).data("flexslider"),
513                    h = y.animatingTo;
514                switch (c) {
515                    case "animate":
516                        f.flexAnimate(h, w.pauseOnAction, !1, !0);
517                        break;
518                    case "play":
519                        !f.playing && !f.asNav && f.play();
520                        break;
521                    case "pause":
522                        f.pause();
523                }
524            }
525        };
526        y.flexAnimate = function(c, m, n, f, e) {
527            A && 1 === y.pagingCount && (y.direction = y.currentItem < c ? "next" : "prev");
528            if (!y.animating && (y.canAdvance(c, e) || n) && y.is(":visible")) {
529                if (A && f) {
530                    if (n = a(w.asNavFor).data("flexslider"), y.atEnd = 0 === c || c === y.count - 1, n.flexAnimate(c, !0, !1, !0, e), y.direction = y.currentItem < c ? "next" : "prev", n.direction = y.direction, Math.ceil((c + 1) / y.visible) - 1 !== y.currentSlide && 0 !== c) {
531                        y.currentItem = c, y.slides.removeClass(v + "active-slide").eq(c).addClass(v + "active-slide"), c = Math.floor(c / y.visible);
532                    } else {
533                        return y.currentItem = c, y.slides.removeClass(v + "active-slide").eq(c).addClass(v + "active-slide"), !1;
534                    }
535                }
536                y.animating = !0;
537                y.animatingTo = c;
538                w.before(y);
539                m && y.pause();
540                y.syncExists && !e && r.sync("animate");
541                w.controlNav && r.controlNav.active();
542                p || y.slides.removeClass(v + "active-slide").eq(c).addClass(v + "active-slide");
543                y.atEnd = 0 === c || c === y.last;
544                w.directionNav && r.directionNav.update();
545                c === y.last && (w.end(y), w.animationLoop || y.pause());
546                if (B) {
547                    b ? (y.slides.eq(y.currentSlide).css({
548                        opacity: 0,
549                        zIndex: 1
550                    }), y.slides.eq(c).css({
551                        opacity: 1,
552                        zIndex: 2
553                    }), y.slides.unbind("webkitTransitionEnd transitionend"), y.slides.eq(y.currentSlide).bind("webkitTransitionEnd transitionend", function() {
554                        w.after(y);
555                    }), y.animating = !1, y.currentSlide = y.animatingTo) : (y.slides.eq(y.currentSlide).fadeOut(w.animationSpeed, w.easing), y.slides.eq(c).fadeIn(w.animationSpeed, w.easing, y.wrapup));
556                } else {
557                    var h = g ? y.slides.filter(":first").height() : y.computedW;
558                    p ? (c = w.itemWidth > y.w ? 2 * w.itemMargin : w.itemMargin, c = (y.itemW + c) * y.move * y.animatingTo, c = c > y.limit && 1 !== y.visible ? y.limit : c) : c = 0 === y.currentSlide && c === y.count - 1 && w.animationLoop && "next" !== y.direction ? d ? (y.count + y.cloneOffset) * h : 0 : y.currentSlide === y.last && 0 === c && w.animationLoop && "prev" !== y.direction ? d ? 0 : (y.count + 1) * h : d ? (y.count - 1 - c + y.cloneOffset) * h : (c + y.cloneOffset) * h;
559                    y.setProps(c, "", w.animationSpeed);
560                    if (y.transitions) {
561                        if (!w.animationLoop || !y.atEnd) {
562                            y.animating = !1, y.currentSlide = y.animatingTo;
563                        }
564                        y.container.unbind("webkitTransitionEnd transitionend");
565                        y.container.bind("webkitTransitionEnd transitionend", function() {
566                            y.wrapup(h);
567                        });
568                    } else {
569                        y.container.animate(y.args, w.animationSpeed, w.easing, function() {
570                            y.wrapup(h);
571                        });
572                    }
573                }
574                w.smoothHeight && r.smoothHeight(w.animationSpeed);
575            }
576        };
577        y.wrapup = function(c) {
578            !B && !p && (0 === y.currentSlide && y.animatingTo === y.last && w.animationLoop ? y.setProps(c, "jumpEnd") : y.currentSlide === y.last && (0 === y.animatingTo && w.animationLoop) && y.setProps(c, "jumpStart"));
579            y.animating = !1;
580            y.currentSlide = y.animatingTo;
581            w.after(y);
582        };
583        y.animateSlides = function() {
584            y.animating || y.flexAnimate(y.getTarget("next"));
585        };
586        y.pause = function() {
587            clearInterval(y.animatedSlides);
588            y.playing = !1;
589            w.pausePlay && r.pausePlay.update("play");
590            y.syncExists && r.sync("pause");
591        };
592        y.play = function() {
593            y.animatedSlides = setInterval(y.animateSlides, w.slideshowSpeed);
594            y.playing = !0;
595            w.pausePlay && r.pausePlay.update("pause");
596            y.syncExists && r.sync("play");
597        };
598        y.canAdvance = function(c, e) {
599            var f = A ? y.pagingCount - 1 : y.last;
600            return e ? !0 : A && y.currentItem === y.count - 1 && 0 === c && "prev" === y.direction ? !0 : A && 0 === y.currentItem && c === y.pagingCount - 1 && "next" !== y.direction ? !1 : c === y.currentSlide && !A ? !1 : w.animationLoop ? !0 : y.atEnd && 0 === y.currentSlide && c === f && "next" !== y.direction ? !1 : y.atEnd && y.currentSlide === f && 0 === c && "next" === y.direction ? !1 : !0;
601        };
602        y.getTarget = function(c) {
603            y.direction = c;
604            return "next" === c ? y.currentSlide === y.last ? 0 : y.currentSlide + 1 : 0 === y.currentSlide ? y.last : y.currentSlide - 1;
605        };
606        y.setProps = function(c, h, m) {
607            var l, j = c ? c : (y.itemW + w.itemMargin) * y.move * y.animatingTo;
608            l = -1 * function() {
609                if (p) {
610                    return "setTouch" === h ? c : d && y.animatingTo === y.last ? 0 : d ? y.limit - (y.itemW + w.itemMargin) * y.move * y.animatingTo : y.animatingTo === y.last ? y.limit : j;
611                }
612                switch (h) {
613                    case "setTotal":
614                        return d ? (y.count - 1 - y.currentSlide + y.cloneOffset) * c : (y.currentSlide + y.cloneOffset) * c;
615                    case "setTouch":
616                        return c;
617                    case "jumpEnd":
618                        return d ? c : y.count * c;
619                    case "jumpStart":
620                        return d ? y.count * c : c;
621                    default:
622                        return c;
623                }
624            }() + "px";
625            y.transitions && (l = g ? "translate3d(0," + l + ",0)" : "translate3d(" + l + ",0,0)", m = void 0 !== m ? m / 1000 + "s" : "0s", y.container.css("-" + y.pfx + "-transition-duration", m));
626            y.args[y.prop] = l;
627            (y.transitions || void 0 === m) && y.container.css(y.args);
628        };
629        y.setup = function(c) {
630            if (B) {
631                y.slides.css({
632                    width: "100%",
633                    "float": "left",
634                    marginRight: "-100%",
635                    position: "relative"
636                }), "init" === c && (b ? y.slides.css({
637                    opacity: 0,
638                    display: "block",
639                    webkitTransition: "opacity " + w.animationSpeed / 1000 + "s ease",
640                    zIndex: 1
641                }).eq(y.currentSlide).css({
642                    opacity: 1,
643                    zIndex: 2
644                }) : y.slides.eq(y.currentSlide).fadeIn(w.animationSpeed, w.easing)), w.smoothHeight && r.smoothHeight();
645            } else {
646                var e, f;
647                "init" === c && (y.viewport = a('<div class="' + v + 'viewport"></div>').css({
648                    overflow: "hidden",
649                    position: "relative"
650                }).appendTo(y).append(y.container), y.cloneCount = 0, y.cloneOffset = 0, d && (f = a.makeArray(y.slides).reverse(), y.slides = a(f), y.container.empty().append(y.slides)));
651                w.animationLoop && !p && (y.cloneCount = 2, y.cloneOffset = 1, "init" !== c && y.container.find(".clone").remove(), y.container.append(y.slides.first().clone().addClass("clone")).prepend(y.slides.last().clone().addClass("clone")));
652                y.newSlides = a(w.selector, y);
653                e = d ? y.count - 1 - y.currentSlide + y.cloneOffset : y.currentSlide + y.cloneOffset;
654                g && !p ? (y.container.height(200 * (y.count + y.cloneCount) + "%").css("position", "absolute").width("100%"), setTimeout(function() {
655                    y.newSlides.css({
656                        display: "block"
657                    });
658                    y.doMath();
659                    y.viewport.height(y.h);
660                    y.setProps(e * y.h, "init");
661                }, "init" === c ? 100 : 0)) : (y.container.width(200 * (y.count + y.cloneCount) + "%"), y.setProps(e * y.computedW, "init"), setTimeout(function() {
662                    y.doMath();
663                    y.newSlides.css({
664                        width: y.computedW,
665                        "float": "left",
666                        display: "block"
667                    });
668                    w.smoothHeight && r.smoothHeight();
669                }, "init" === c ? 100 : 0));
670            }
671            p || y.slides.removeClass(v + "active-slide").eq(y.currentSlide).addClass(v + "active-slide");
672        };
673        y.doMath = function() {
674            var c = y.slides.first(),
675                l = w.itemMargin,
676                j = w.minItems,
677                h = w.maxItems;
678            y.w = y.width();
679            y.h = c.height();
680            y.boxPadding = c.outerWidth() - c.width();
681            p ? (y.itemT = w.itemWidth + l, y.minW = j ? j * y.itemT : y.w, y.maxW = h ? h * y.itemT : y.w, y.itemW = y.minW > y.w ? (y.w - l * j) / j : y.maxW < y.w ? (y.w - l * h) / h : w.itemWidth > y.w ? y.w : w.itemWidth, y.visible = Math.floor(y.w / (y.itemW + l)), y.move = 0 < w.move && w.move < y.visible ? w.move : y.visible, y.pagingCount = Math.ceil((y.count - y.visible) / y.move + 1), y.last = y.pagingCount - 1, y.limit = 1 === y.pagingCount ? 0 : w.itemWidth > y.w ? (y.itemW + 2 * l) * y.count - y.w - l : (y.itemW + l) * y.count - y.w - l) : (y.itemW = y.w, y.pagingCount = y.count, y.last = y.count - 1);
682            y.computedW = y.itemW - y.boxPadding;
683        };
684        y.update = function(c, e) {
685            y.doMath();
686            p || (c < y.currentSlide ? y.currentSlide += 1 : c <= y.currentSlide && 0 !== c && (y.currentSlide -= 1), y.animatingTo = y.currentSlide);
687            if (w.controlNav && !y.manualControls) {
688                if ("add" === e && !p || y.pagingCount > y.controlNav.length) {
689                    r.controlNav.update("add");
690                } else {
691                    if ("remove" === e && !p || y.pagingCount < y.controlNav.length) {
692                        p && y.currentSlide > y.last && (y.currentSlide -= 1, y.animatingTo -= 1), r.controlNav.update("remove", y.last);
693                    }
694                }
695            }
696            w.directionNav && r.directionNav.update();
697        };
698        y.addSlide = function(c, j) {
699            var h = a(c);
700            y.count += 1;
701            y.last = y.count - 1;
702            g && d ? void 0 !== j ? y.slides.eq(y.count - j).after(h) : y.container.prepend(h) : void 0 !== j ? y.slides.eq(j).before(h) : y.container.append(h);
703            y.update(j, "add");
704            y.slides = a(w.selector + ":not(.clone)", y);
705            y.setup();
706            w.added(y);
707        };
708        y.removeSlide = function(c) {
709            var f = isNaN(c) ? y.slides.index(a(c)) : c;
710            y.count -= 1;
711            y.last = y.count - 1;
712            isNaN(c) ? a(c, y.slides).remove() : g && d ? y.slides.eq(y.last).remove() : y.slides.eq(c).remove();
713            y.doMath();
714            y.update(f, "remove");
715            y.slides = a(w.selector + ":not(.clone)", y);
716            y.setup();
717            w.removed(y);
718        };
719        r.init();
720    };
721    a.flexslider.defaults = {
722        namespace: "flex-",
723        selector: ".slides > li",
724        animation: "fade",
725        easing: "swing",
726        direction: "horizontal",
727        reverse: !1,
728        animationLoop: !0,
729        smoothHeight: !1,
730        startAt: 0,
731        slideshow: !0,
732        slideshowSpeed: 7000,
733        animationSpeed: 600,
734        initDelay: 0,
735        randomize: !1,
736        pauseOnAction: !0,
737        pauseOnHover: !1,
738        useCSS: !0,
739        touch: !0,
740        video: !1,
741        controlNav: !0,
742        directionNav: !0,
743        prevText: "Previous",
744        nextText: "Next",
745        keyboard: !0,
746        multipleKeyboard: !1,
747        mousewheel: !1,
748        pausePlay: !1,
749        pauseText: "Pause",
750        playText: "Play",
751        controlsContainer: "",
752        manualControls: "",
753        sync: "",
754        asNavFor: "",
755        itemWidth: 0,
756        itemMargin: 0,
757        minItems: 0,
758        maxItems: 0,
759        move: 0,
760        start: function() {},
761        before: function() {},
762        after: function() {},
763        end: function() {},
764        added: function() {},
765        removed: function() {}
766    };
767    a.fn.flexslider = function(c) {
768        void 0 === c && (c = {});
769        if ("object" === typeof c) {
770            return this.each(function() {
771                var d = a(this),
772                    e = d.find(c.selector ? c.selector : ".slides > li");
773                1 === e.length ? (e.fadeIn(400), c.start && c.start(d)) : void 0 == d.data("flexslider") && new a.flexslider(this, c);
774            });
775        }
776        var b = a(this).data("flexslider");
777        switch (c) {
778            case "play":
779                b.play();
780                break;
781            case "pause":
782                b.pause();
783                break;
784            case "next":
785                b.flexAnimate(b.getTarget("next"), !0);
786                break;
787            case "prev":
788            case "previous":
789                b.flexAnimate(b.getTarget("prev"), !0);
790                break;
791            default:
792                "number" === typeof c && b.flexAnimate(c, !0);
793        }
794    };
795})(jQuery);
796/*!
797 * FitVids 1.0
798 */
799(function(a) {
800    a.fn.fitVids = function(b) {
801        var c = {
802            customSelector: null
803        };
804        if (!document.getElementById("fit-vids-style")) {
805            var e = document.createElement("div"),
806                d = document.getElementsByTagName("base")[0] || document.getElementsByTagName("script")[0];
807            e.className = "fit-vids-style";
808            e.id = "fit-vids-style";
809            e.style.display = "none";
810            e.innerHTML = "&shy;<style>                 .fluid-width-video-wrapper {                   width: 100%;                                position: relative;                         padding: 0;                              }                                                                                       .fluid-width-video-wrapper iframe,          .fluid-width-video-wrapper object,          .fluid-width-video-wrapper embed {             position: absolute;                         top: 0;                                     left: 0;                                    width: 100%;                                height: 100%;                            }                                         </style>";
811            d.parentNode.insertBefore(e, d);
812        }
813        if (b) {
814            a.extend(c, b);
815        }
816        return this.each(function() {
817            var f = ["iframe[src*='player.vimeo.com']", "iframe[src*='youtube.com']", "iframe[src*='youtube-nocookie.com']", "iframe[src*='kickstarter.com'][src*='video.html']", "object", "embed"];
818            if (c.customSelector) {
819                f.push(c.customSelector);
820            }
821            var g = a(this).find(f.join(","));
822            g = g.not("object object");
823            g.each(function() {
824                var m = a(this);
825                if (this.tagName.toLowerCase() === "embed" && m.parent("object").length || m.parent(".fluid-width-video-wrapper").length) {
826                    return;
827                }
828                var h = (this.tagName.toLowerCase() === "object" || (m.attr("height") && !isNaN(parseInt(m.attr("height"), 10)))) ? parseInt(m.attr("height"), 10) : m.height(),
829                    j = !isNaN(parseInt(m.attr("width"), 10)) ? parseInt(m.attr("width"), 10) : m.width(),
830                    k = h / j;
831                if (!m.attr("id")) {
832                    var l = "fitvid" + Math.floor(Math.random() * 999999);
833                    m.attr("id", l);
834                }
835                m.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top", (k * 100) + "%");
836                m.removeAttr("height").removeAttr("width");
837            });
838        });
839    };
840})(jQuery);
841/*!
842 * FitText
843 */
844(function(a) {
845    a.fn.fitText = function(c, e) {
846        var d = c || 1,
847            b = a.extend({
848                minFontSize: Number.NEGATIVE_INFINITY,
849                maxFontSize: Number.POSITIVE_INFINITY
850            }, e);
851        return this.each(function() {
852            var f = a(this);
853            var g = function() {
854                f.css("font-size", Math.max(Math.min(f.width() / (d * 10), parseFloat(b.maxFontSize)), parseFloat(b.minFontSize)));
855            };
856            g();
857            a(window).on("resize.fittext orientationchange.fittext", g);
858        });
859    };
860})(jQuery);
861/*!
862 * Socialite v2.0
863 * http://socialitejs.com
864 * Copyright (c) 2011 David Bushell
865 * Dual-licensed under the BSD or MIT licenses: http://socialitejs.com/license.txt
866 */
867window.Socialite = function(j, m, d) {
868        var b = 0,
869            g = [],
870            p = {},
871            c = {},
872            l = /^($|loaded|complete)/,
873            k = j.encodeURIComponent,
874            h = {
875                settings: {},
876                trim: function(a) {
877                    return a.trim ? a.trim() : a.replace(/^\s+|\s+$/g, "");
878                },
879                hasClass: function(f, a) {
880                    return -1 !== (" " + f.className + " ").indexOf(" " + a + " ");
881                },
882                addClass: function(f, a) {
883                    h.hasClass(f, a) || (f.className = "" === f.className ? a : f.className + " " + a);
884                },
885                removeClass: function(f, a) {
886                    f.className = h.trim(" " + f.className + " ".replace(" " + a + " ", " "));
887                },
888                extendObject: function(q, f, o) {
889                    for (var a in f) {
890                        var n = q[a] !== d;
891                        n && "object" == typeof f[a] ? h.extendObject(q[a], f[a], o) : (o || !n) && (q[a] = f[a]);
892                    }
893                },
894                getElements: function(u, f) {
895                    for (var v = 0, q = [], a = !!u.getElementsByClassName, o = a ? u.getElementsByClassName(f) : u.getElementsByTagName("*"); o.length > v; v++) {
896                        (a || h.hasClass(o[v], f)) && q.push(o[v]);
897                    }
898                    return q;
899                },
900                getDataAttributes: function(z, B, v) {
901                    for (var a = 0, w = "", C = {}, q = z.attributes; q.length > a; a++) {
902                        var A = q[a].name,
903                            y = q[a].value;
904                        y.length && 0 === A.indexOf("data-") && (B && (A = A.substring(5)), v ? C[A] = y : w += k(A) + "=" + k(y) + "&");
905                    }
906                    return v ? C : w;
907                },
908                copyDataAttributes: function(u, f, v, q) {
909                    var a = h.getDataAttributes(u, v, !0);
910                    for (var o in a) {
911                        f.setAttribute(q ? o.replace(/-/g, "_") : o, a[o]);
912                    }
913                },
914                createIframe: function(f, o) {
915                    var a = m.createElement("iframe");
916                    return a.style.cssText = "overflow: hidden; border: none;", h.extendObject(a, {
917                        src: f,
918                        allowtransparency: "true",
919                        frameborder: "0",
920                        scrolling: "no"
921                    }, !0), o && (a.onload = a.onreadystatechange = function() {
922                        l.test(a.readyState || "") && (a.onload = a.onreadystatechange = null, h.activateInstance(o));
923                    }), a;
924                },
925                networkReady: function(a) {
926                    return p[a] ? p[a].loaded : d;
927                },
928                appendNetwork: function(a) {
929                    if (a && !a.appended) {
930                        if ("function" == typeof a.append && a.append(a) === !1) {
931                            return a.appended = a.loaded = !0, h.activateAll(a), d;
932                        }
933                        a.script && (a.el = m.createElement("script"), h.extendObject(a.el, a.script, !0), a.el.async = !0, a.el.onload = a.el.onreadystatechange = function() {
934                            if (l.test(a.el.readyState || "")) {
935                                if (a.el.onload = a.el.onreadystatechange = null, a.loaded = !0, "function" == typeof a.onload && a.onload(a) === !1) {
936                                    return;
937                                }
938                                h.activateAll(a);
939                            }
940                        }, m.body.appendChild(a.el)), a.appended = !0;
941                    }
942                },
943                removeNetwork: function(a) {
944                    return h.networkReady(a.name) ? (a.el.parentNode && a.el.parentNode.removeChild(a.el), !(a.appended = a.loaded = !1)) : !1;
945                },
946                reloadNetwork: function(f) {
947                    var a = p[f];
948                    a && h.removeNetwork(a) && h.appendNetwork(a);
949                },
950                createInstance: function(n, a) {
951                    var f = !0,
952                        q = {
953                            el: n,
954                            uid: b++,
955                            widget: a
956                        };
957                    return g.push(q), a.process !== d && (f = "function" == typeof a.process ? a.process(q) : !1), f && h.processInstance(q), q.el.setAttribute("data-socialite", q.uid), q.el.className = "socialite " + a.name + " socialite-instance", q;
958                },
959                processInstance: function(f) {
960                    var o = f.el;
961                    f.el = m.createElement("div"), f.el.className = o.className, h.copyDataAttributes(o, f.el), "a" !== o.nodeName.toLowerCase() || o.getAttribute("data-default-href") || f.el.setAttribute("data-default-href", o.getAttribute("href"));
962                    var a = o.parentNode;
963                    a.insertBefore(f.el, o), a.removeChild(o);
964                },
965                activateInstance: function(a) {
966                    return a && !a.loaded ? (a.loaded = !0, "function" == typeof a.widget.activate && a.widget.activate(a), h.addClass(a.el, "socialite-loaded"), a.onload ? a.onload(a.el) : null) : d;
967                },
968                activateAll: function(f) {
969                    "string" == typeof f && (f = p[f]);
970                    for (var a = 0; g.length > a; a++) {
971                        var o = g[a];
972                        o.init && o.widget.network === f && h.activateInstance(o);
973                    }
974                },
975                load: function(w, f, C, B, z) {
976                    if (w = w && "object" == typeof w && 1 === w.nodeType ? w : m, !f || "object" != typeof f) {
977                        return h.load(w, h.getElements(w, "socialite"), C, B, z), d;
978                    }
979                    var o;
980                    if (/Array/.test(Object.prototype.toString.call(f))) {
981                        for (o = 0; f.length > o; o++) {
982                            h.load(w, f[o], C, B, z);
983                        }
984                    } else {
985                        if (1 === f.nodeType) {
986                            if (!C || !c[C]) {
987                                C = null;
988                                var q = f.className.split(" ");
989                                for (o = 0; q.length > o; o++) {
990                                    if (c[q[o]]) {
991                                        C = q[o];
992                                        break;
993                                    }
994                                }
995                                if (!C) {
996                                    return;
997                                }
998                            }
999                            var n, y = c[C],
1000                                A = parseInt(f.getAttribute("data-socialite"), 10);
1001                            if (isNaN(A)) {
1002                                n = h.createInstance(f, y);
1003                            } else {
1004                                for (o = 0; g.length > o; o++) {
1005                                    if (g[o].uid === A) {
1006                                        n = g[o];
1007                                        break;
1008                                    }
1009                                }
1010                            }!z && n && (n.init || (n.init = !0, n.onload = "function" == typeof B ? B : null, y.init(n)), y.network.appended ? h.networkReady(y.network.name) && h.activateInstance(n) : h.appendNetwork(y.network));
1011                        }
1012                    }
1013                },
1014                activate: function(a, f, e) {
1015                    j.Socialite.load(null, a, f, e);
1016                },
1017                process: function(a, f, e) {
1018                    j.Socialite.load(a, f, e, null, !0);
1019                },
1020                network: function(f, a) {
1021                    p[f] = {
1022                        name: f,
1023                        el: null,
1024                        appended: !1,
1025                        loaded: !1,
1026                        widgets: {}
1027                    }, a && h.extendObject(p[f], a);
1028                },
1029                widget: function(f, a, o) {
1030                    o.name = f + "-" + a, p[f] && !c[o.name] && (o.network = p[f], p[f].widgets[a] = c[o.name] = o);
1031                },
1032                setup: function(a) {
1033                    h.extendObject(h.settings, a, !0);
1034                }
1035            };
1036        return h;
1037    }(window, window.document),
1038    function(j, d, b) {
1039        b.setup({
1040            facebook: {
1041                lang: "en_GB",
1042                appId: null
1043            },
1044            twitter: {
1045                lang: "en"
1046            },
1047            googleplus: {
1048                lang: "en-GB"
1049            }
1050        }), b.network("facebook", {
1051            script: {
1052                src: "//connect.facebook.net/{{language}}/all.js",
1053                id: "facebook-jssdk"
1054            },
1055            append: function(e) {
1056                var a = d.createElement("div"),
1057                    f = b.settings.facebook,
1058                    n = {
1059                        onlike: "edge.create",
1060                        onunlike: "edge.remove",
1061                        onsend: "message.send"
1062                    };
1063                a.id = "fb-root", d.body.appendChild(a), e.script.src = e.script.src.replace("{{language}}", f.lang), j.fbAsyncInit = function() {
1064                    j.FB.init({
1065                        appId: f.appId,
1066                        xfbml: !0
1067                    });
1068                    for (var o in n) {
1069                        "function" == typeof f[o] && j.FB.Event.subscribe(n[o], f[o]);
1070                    }
1071                };
1072            }
1073        }), b.widget("facebook", "like", {
1074            init: function(e) {
1075                var a = d.createElement("div");
1076                a.className = "fb-like", b.copyDataAttributes(e.el, a), e.el.appendChild(a), j.FB && j.FB.XF
1076BML && j.FB.XFBML.parse(e.el);
1077            }
1078        }), b.network("twitter", {
1079            script: {
1080                src: "//platform.twitter.com/widgets.js",
1081                id: "twitter-wjs",
1082                charset: "utf-8"
1083            },
1084            append: function() {
1085                var f = "object" != typeof j.twttr,
1086                    a = b.settings.twitter,
1087                    e = ["click", "tweet", "retweet", "favorite", "follow"];
1088                return f && (j.twttr = t = {
1089                    _e: [],
1090                    ready: function(n) {
1091                        t._e.push(n);
1092                    }
1093                }), j.twttr.ready(function(p) {
1094                    for (var o = 0; e.length > o; o++) {
1095                        var q = e[o];
1096                        "function" == typeof a["on" + q] && p.events.bind(q, a["on" + q]);
1097                    }
1098                    b.activateAll("twitter");
1099                }), f;
1100            }
1101        });
1102        var g = function(f) {
1103                var a = d.createElement("a");
1104                a.className = f.widget.name + "-button", b.copyDataAttributes(f.el, a), a.setAttribute("href", f.el.getAttribute("data-default-href")), a.setAttribute("data-lang", f.el.getAttribute("data-lang") || b.settings.twitter.lang), f.el.appendChild(a);
1105            },
1106            m = function() {
1107                j.twttr && "object" == typeof j.twttr.widgets && "function" == typeof j.twttr.widgets.load && j.twttr.widgets.load();
1108            };
1109        b.widget("twitter", "share", {
1110            init: g,
1111            activate: m
1112        }), b.widget("twitter", "follow", {
1113            init: g,
1114            activate: m
1115        }), b.widget("twitter", "hashtag", {
1116            init: g,
1117            activate: m
1118        }), b.widget("twitter", "mention", {
1119            init: g,
1120            activate: m
1121        }), b.widget("twitter", "embed", {
1122            process: function(a) {
1123                a.innerEl = a.el, a.innerEl.getAttribute("data-lang") || a.innerEl.setAttribute("data-lang", b.settings.twitter.lang), a.el = d.createElement("div"), a.el.className = a.innerEl.className, a.innerEl.className = "", a.innerEl.parentNode.insertBefore(a.el, a.innerEl), a.el.appendChild(a.innerEl);
1124            },
1125            init: function(a) {
1126                a.innerEl.className = "twitter-tweet";
1127            },
1128            activate: m
1129        }), b.network("googleplus", {
1130            script: {
1131                src: "//apis.google.com/js/plusone.js"
1132            },
1133            append: function() {
1134                return j.gapi ? !1 : (j.___gcfg = {
1135                    lang: b.settings.googleplus.lang,
1136                    parsetags: "explicit"
1137                }, undefined);
1138            }
1139        });
1140        var c = function(f) {
1141                var a = d.createElement("div");
1142                a.className = "g-" + f.widget.gtype, b.copyDataAttributes(f.el, a), f.el.a
1142ppendChild(a), f.gplusEl = a;
1143            },
1144            l = function(f, a) {
1145                return "function" != typeof a ? null : function(e) {
1146                    a(f.el, e);
1147                };
1148            },
1149            k = function(p) {
1150                var u = p.widget.gtype;
1151                if (j.gapi && j.gapi[u]) {
1152                    for (var f = b.settings.googleplus, q = b.getDataAttributes(p.el, !0, !0), r = ["onstartinteraction", "onendinteraction", "callback"], e = 0; r.length > e; e++) {
1153                        q[r[e]] = l(p, f[r[e]]);
1154                    }
1155                    j.gapi[u].render(p.gplusEl, q);
1156                }
1157            };
1158        b.widget("googleplus", "one", {
1159            init: c,
1160            activate: k,
1161            gtype: "plusone"
1162        }), b.widget("googleplus", "share", {
1163            init: c,
1164            activate: k,
1165            gtype: "plus"
1166        }), b.widget("googleplus", "badge", {
1167            init: c,
1168            activate: k,
1169            gtype: "plus"
1170        }), b.network("linkedin", {
1171            script: {
1172                src: "//platform.linkedin.com/in.js"
1173            }
1174        });
1175        var h = function(e) {
1176            var a = d.createElement("script");
1177            a.type = "IN/" + e.widget.intype, b.copyDataAttributes(e.el, a), e.el.appendChild(a), "object" == typeof j.IN && "function" == typeof j.IN.parse && (j.IN.parse(e.el), b.activateInstance(e));
1178        };
1179        b.widget("linkedin", "share", {
1180            init: h,
1181            intype: "Share"
1182        }), b.widget("linkedin", "recommend", {
1183            init: h,
1184            intype: "RecommendProduct"
1185        });
1186    }(window, window.document, window.Socialite),
1187    function() {
1188        var b = window._socialite;
1189        if (/Array/.test(Object.prototype.toString.call(b))) {
1190            for (var a = 0, c = b.length; c > a; a++) {
1191                "function" == typeof b[a] && b[a]();
1192            }
1193        }
1194    }();
1195(function(c, a, d, b) {
1196    c.fn.doubleTapToGo = function(e) {
1197        if (!("ontouchstart" in a) && !navigator.msMaxTouchPoints && !navigator.userAgent.toLowerCase().match(/windows phone os 7/i)) {
1198            return false;
1199        }
1200        this.each(function() {
1201            var f = false;
1202            c(this).on("click", function(h) {
1203                var g = c(this);
1204                if (g[0] != f[0]) {
1205                    h.preventDefault();
1206                    f = g;
1207                }
1208            });
1209            c(d).on("click touchstart MSPointerDown", function(k) {
1210                var j = true,
1211                    g = c(k.target).parents();
1212                for (var h = 0; h < g.length; h++) {
1213                    if (g[h] == f[0]) {
1214                        j = false;
1215                    }
1216                }
1217                if (j) {
1218                    f = false;
1219                }
1220            });
1221        });
1222        return this;
1223    };
1224})(jQuery, window, document);
1225/*!
1226 * jQuery - Spectragram by Adrian Quevedo
1227 */
1228if (typeof Object.create !== "function") {
1229    Object.create = function(obj) {
1230        function F() {}
1231        F.prototype = obj;
1232        return new F
1233    }
1234}(function($, window, document, undefined) {
1235    var Instagram = {
1236        API_URL: "https://api.instagram.com/v1",
1237        initialize: function(options, elem) {
1238            this.elem = elem;
1239            this.$elem = $(elem);
1240            this.accessData = $.fn.spectragram.accessData, this.accessToken = this.accessData.accessToken, this.clientID = this.accessData.clientID, this.userCredentials = this.clientID + "&access_token=" + this.accessToken + "", this.options = $.extend({}, $.fn.spectragram.options, options);
1241            this.messages = {
1242                defaultImageAltText: "Instagram Photo related with " + this.options.query,
1243                notFound: "This user account is private or doesn't have any photos."
1244            }
1245        },
1246        getRecentMedia: function(userID) {
1247            var self = this,
1248                getData = "/users/" + userID + "/media/recent/?" + self.userCredentials;
1249            self.fetch(getData).done(function(results) {
1250                self.display(results)
1251            })
1252        },
1253        getUserFeed: function() {
1254            var self = this,
1255                getData = "/users/search?q=" + self.options.query + "&count=" + self.options.max + "&access_token=" + self.accessToken + "",
1256                isUsernameValid = false;
1257            self.fetch(getData).done(function(results) {
1258                if (results.data.length) {
1259                    for (var length = results.data.length, i = 0; i < length; i++) {
1260                        if (results.data[i].username === self.options.query) {
1261                            self.getRecentMedia(results.data[i].id);
1262                            isUsernameValid = true
1263                        }
1264                    }
1265                }
1266                if (isUsernameValid === false) {
1267                    $.error("Spectragram.js - Error: the username " + self.options.query + " does not exist.")
1268                }
1269            })
1270        },
1271        getPopular: function() {
1272            var self = this,
1273                getData = "/media/popular?client_id=" + self.userCredentials;
1274            self.fetch(getData).done(function(results) {
1275                self.display(results)
1276            })
1277        },
1278        getRecentTagged: function() {
1279            var self = this,
1280                getData = "/tags/" + self.options.query + "/media/recent?client_id=" + self.userCredentials;
1281            self.fetch(getData).done(function(results) {
1282                if (results.data.length) {
1283                    self.display(results)
1284                } else {
1285                    $.error("Spectragram.js - Error: the tag " + self.options.query + " does not have results.")
1286                }
1287            })
1288        },
1289        fetch: function(getData) {
1290            var getUrl = this.API_URL + getData;
1291            return $.ajax({
1292                type: "GET",
1293                dataType: "jsonp",
1294                cache: false,
1295                url: getUrl
1296            })
1297        },
1298        display: function(results) {
1299            var $element, $image, isWrapperEmpty, imageGroup = [],
1300                imageCaption, imageHeight, imageWidth, max, setSize, size;
1301            isWrapperEmpty = $(this.options.wrapEachWith).length === 0;
1302            if (results.data === undefined || results.meta.code !== 200 || results.data.length === 0) {
1303                if (isWrapperEmpty) {
1304                    this.$elem.append(this.messages.notFound)
1305                } else {
1306                    this.$elem.append($(this.options.wrapEachWith).append(this.messages.notFound))
1307                }
1308            } else {
1309                max = this.options.max >= results.data.length ? results.data.length : this.options.max;
1310                setSize = this.options.size;
1311                for (var i = 0; i < max; i++) {
1312                    if (setSize === "small") {
1313                        size = results.data[i].images.thumbnail.url;
1314                        imageHeight = results.data[i].images.thumbnail.height;
1315                        imageWidth = results.data[i].images.thumbnail.width
1316                    } else if (setSize === "medium") {
1317                        size = results.data[i].images.low_resolution.url;
1318                        imageHeight = results.data[i].images.low_resolution.height;
1319                        imageWidth = results.data[i].images.low_resolution.width
1320                    } else {
1321                        size = results.data[i].images.standard_resolution.url;
1322                        imageHeight = results.data[i].images.standard_resolution.height;
1323                        imageWidth = results.data[i].images.standard_resolution.width
1324                    }
1325                    imageCaption = results.data[i].caption !== null ? $("<span>").text(results.data[i].caption.text).html() : this.messages.defaultImageAltText;
1326                    $image = $("<img>", {
1327                        alt: imageCaption,
1328                        attr: {
1329                            height: imageHeight,
1330                            width: imageWidth
1331                        },
1332                        src: size
1333                    });
1334                    $element = $("<a>", {
1335                        href: results.data[i].link,
1336                        target: "_blank",
1337                        title: imageCaption
1338                    }).append($image);
1339                    if (isWrapperEmpty) {
1340                        imageGroup.push($element)
1341                    } else {
1342                        imageGroup.push($(this.options.wrapEachWith).append($element))
1343                    }
1344                }
1345                this.$elem.append(imageGroup)
1346            }
1347            if (typeof this.options.complete === "function") {
1348                this.options.complete.call(this)
1349            }
1350        }
1351    };
1352    jQuery.fn.spectragram = function(method, options) {
1353        if (jQuery.fn.spectragram.accessData.clientID) {
1354            this.each(function() {
1355                var instagram = Object.create(Instagram);
1356                instagram.initialize(options, this);
1357                if (instagram[method]) {
1358                    return instagram[method](this)
1359                } else {
1360                    $.error("Method " + method + " does not exist on jQuery.spectragram")
1361                }
1362            })
1363        } else {
1364            $.error("You must define an accessToken and a clientID on jQuery.spectragram")
1365        }
1366    };
1367    jQuery.fn.spectragram.options = {
1368        complete: null,
1369        max: 10,
1370        query: "instagram",
1371        size: "medium",
1372        wrapEachWith: "<li></li>"
1373    };
1374    jQuery.fn.spectragram.accessData = {
1375        accessToken: null,
1376        clientID: null
1377    }
1378})(jQuery, window, document);
1379(function(b) {
1380    var c = function() {
1381        if (typeof c.x == "undefined") {
1382            c.x = window.pageXOffset;
1383            c.y = window.pageYOffset;
1384        }
1385        if (typeof c.distanceX == "undefined") {
1386            c.distanceX = window.pageXOffset;
1387            c.distanceY = window.pageYOffset;
1388        } else {
1389            c.distanceX = window.pageXOffset - c.x;
1390            c.distanceY = window.pageYOffset - c.y;
1391        }
1392        var e = c.x - window.pageXOffset,
1393            d = c.y - window.pageYOffset;
1394        c.direction = e < 0 ? "right" : e > 0 ? "left" : d <= 0 ? "down" : d > 0 ? "up" : "first";
1395        c.x = window.pageXOffset;
1396        c.y = window.pageYOffset;
1397    };
1398    b(window).on("scroll", c);
1399    var a = function(e, d) {
1400        if (typeof e.cssClone == "undefined") {
1401            e.cssClone = e.clone().css("display", "none");
1402            e.cssClone.find("input:radio").attr("name", "sfd4fgdf");
1403            e.after(e.cssClone);
1404        }
1405        var g = e.cssClone[0];
1406        if (typeof d != "undefined") {
1407            var f;
1408            if (g.currentStyle) {
1409                f = g.currentStyle[d.replace(/-\w/g, function(h) {
1410                    return h.toUpperCase().replace("-", "");
1411                })];
1412            } else {
1413                if (window.getComputedStyle) {
1414                    f = document.defaultView.getComputedStyle(g, null).getPropertyValue(d);
1415                }
1416            }
1417            f = (/margin/g.test(d)) ? ((parseInt(f) === e[0].offsetLeft) ? f : "auto") : f;
1418        }
1419        return {
1420            value: f || null,
1421            remove: function() {
1422                e.cssClone.remove();
1423            }
1424        };
1425    };
1426    b.fn.extend({
1427        hcSticky: function(e, h) {
1428            if (this.length == 0) {
1429                return this;
1430            }
1431            var f = e || {},
1432                d = (this.data("hcSticky")) ? true : false,
1433                k = b(window),
1434                j = b(document);
1435            if (typeof f == "string") {
1436                switch (f) {
1437                    case "reinit":
1438                        k.off("scroll", this.data("hcSticky").f);
1439                        return this.hcSticky({}, true);
1440                        break;
1441                    case "off":
1442                        this.data("hcSticky", b.extend(this.data("hcSticky"), {
1443                            on: false
1444                        }));
1445                        break;
1446                    case "on":
1447                        this.data("hcSticky", b.extend(this.data("hcSticky"), {
1448                            on: true
1449                        }));
1450                        break;
1451                }
1452                return this;
1453            } else {
1454                if (typeof f == "object") {
1455                    if (!d) {
1456                        this.data("hcSticky", b.extend({
1457                            top: 0,
1458                            bottom: 0,
1459                            bottomEnd: 0,
1460                            bottomLimiter: null,
1461                            innerTop: 0,
1462                            innerSticker: null,
1463                            className: "sticky",
1464                            wrapperClassName: "wrapper-sticky",
1465                            noContainer: false,
1466                            responsive: false,
1467                            followScroll: true,
1468                            onStart: function() {},
1469                            onStop: function() {},
1470                            on: true
1471                        }, f));
1472                        var g = this.data("hcSticky").bottomLimiter;
1473                        if (g !== null && this.data("hcSticky").noContainer) {
1474                            this.data("hcSticky", b.extend(this.data("hcSticky"), {
1475                                bottomEnd: j.height() - b(g).offset().top
1476                            }));
1477                        }
1478                    } else {
1479                        this.data("hcSticky", b.extend(this.data("hcSticky"), f));
1480                    }
1481                    if (d && !h) {
1482                        return this;
1483                    }
1484                }
1485            }
1486            return this.each(function() {
1487                var r = b(this),
1488                    m = r.parent(),
1489                    n = (function() {
1490                        var v = r.parent("." + r.data("hcSticky").wrapperClassName);
1491                        if (v.length > 0) {
1492                            v.css({
1493                                height: r.outerHeight(true),
1494                                width: (function() {
1495                                    var w = a(v, "width").value;
1496                                    a(v).remove();
1497                                    if (w.indexOf("%") >= 0 || w == "auto") {
1498                                        r.css("width", v.width());
1499                                        return w;
1500                                    } else {
1501                                        return r.outerWidth(true);
1502                                    }
1503                                })()
1504                            });
1505                            return v;
1506                        } else {
1507                            return false;
1508                        }
1509                    })() || (function() {
1510                        var v = b("<div>", {
1511                            "class": r.data("hcSticky").wrapperClassName
1512                        }).css({
1513                            height: r.outerHeight(true),
1514                            width: (function() {
1515                                var w = a(r, "width").value;
1516                                if (w.indexOf("%") >= 0 || w == "auto") {
1517                                    r.css("width", parseFloat(r.css("width")));
1518                                    return w;
1519                                } else {
1520                                    var y = a(r, "margin-left").value;
1521                                    return (y == "auto") ? r.outerWidth() : r.outerWidth(true);
1522                                }
1523                            })(),
1524                            margin: (a(r, "margin-left").value) ? "auto" : null,
1525                            position: (function() {
1526                                var w = r.css("position");
1527                                return w == "static" ? "relative" : w;
1528                            })(),
1529                            "float": r.css("float") || null,
1530                            left: a(r, "left").value,
1531                            right: a(r, "right").value,
1532                            top: a(r, "top").value,
1533                            bottom: a(r, "bottom").value
1534                        });
1535                        r.wrap(v);
1536                        return r.parent();
1537                    })(),
1538                    u = function(v) {
1539                        if (r.hasClass(r.data("hcSticky").className)) {
1540                            return;
1541                        }
1542                        v = v || {};
1543                        r.css({
1544                            position: "fixed",
1545                            top: v.top || 0,
1546                            left: v.left || n.offset().left
1547                        }).addClass(r.data("hcSticky").className);
1548                        r.data("hcSticky").onStart.apply(this);
1549                    },
1550                    p = function(v) {
1551                        v = v || {};
1552                        r.css({
1553                            position: v.position || "absolute",
1554                            top: v.top || 0,
1555                            left: v.left || 0
1556                        }).removeClass(r.data("hcSticky").className);
1557                        r.data("hcSticky").onStop.apply(this);
1558                    };
1559                a(r).remove();
1560                r.css({
1561                    top: "auto",
1562                    bottom: "auto",
1563                    left: "auto",
1564                    right: "auto"
1565                });
1566                if (r.outerHeight(true) > m.height()) {
1567                    return this;
1568                }
1569                b(window).load(function() {
1570                    if (r.outerHeight(true) > m.height()) {
1571                        n.css("height", r.outerHeight(true));
1572                        r.hcSticky("reinit");
1573                    }
1574                });
1575                var o = function(E) {
1576                    $referrer = (r.data("hcSticky").noContainer) ? j : n.parent();
1577                    if (!r.data("hcSticky").on || r.outerHeight(true) >= $referrer.height()) {
1578                        return;
1579                    }
1580                    var v = (r.data("hcSticky").innerSticker) ? b(r.data("hcSticky").innerSticker).position().top : ((r.data("hcSticky").innerTop) ? r.data("hcSticky").innerTop : 0),
1581                        z = n.offset().top,
1582                        A = $referrer.height() - r.data("hcSticky").bottomEnd + (r.data("hcSticky").noContainer ? 0 : z),
1583                        B = n.offset().top - r.data("hcSticky").top + v,
1584                        D = r.outerHeight(true) + r.data("hcSticky").bottom,
1585                        F = k.height(),
1586                        C = k.scrollTop(),
1587                        y = r.offset().top,
1588                        w = y - C,
1589                        G;
1590                    if (C >= B) {
1591                        if (A + r.data("hcSticky").bottom - (r.data("hcSticky").followScroll ? 0 : r.data("hcSticky").top) <= C + D - v - ((D - v > F - (B - v) && r.data("hcSticky").followScroll) ? (((G = D - F - v) > 0) ? G : 0) : 0)) {
1592                            p({
1593                                top: A - D + r.data("hcSticky").bottom - z
1594                            });
1595                        } else {
1596                            if (D - v > F && r.data("hcSticky").followScroll) {
1597                                if (w + D <= F) {
1598                                    if (c.direction == "down") {
1599                                        u({
1600                                            top: F - D
1601                                        });
1602                                    } else {
1603                                        if (w < 0 && r.css("position") == "fixed") {
1604                                            p({
1605                                                top: y - (B + r.data("hcSticky").top - v) - c.distanceY
1606                                            });
1607                                        }
1608                                    }
1609                                } else {
1610                                    if (c.direction == "up" && y >= C + r.data("hcSticky").top - v) {
1611                                        u({
1612                                            top: r.data("hcSticky").top - v
1613                                        });
1614                                    } else {
1615                                        if (c.direction == "down" && y + D > F && r.css("position") == "fixed") {
1616                                            p({
1617                                                top: y - (B + r.data("hcSticky").top - v) - c.distanceY
1618                                            });
1619                                        }
1620                                    }
1621                                }
1622                            } else {
1623                                u({
1624                                    top: r.data("hcSticky").top - v
1625                                });
1626                            }
1627                        }
1628                    } else {
1629                        p();
1630                    }
1631                    if (E === true) {
1632                        r.css("top", (r.css("position") == "fixed") ? r.data("hcSticky").top - v : 0);
1633                    }
1634                };
1635                var q = false,
1636                    s = false;
1637
1638                function l() {
1639                    if (r.data("hcSticky").responsive) {
1640                        if (!s) {
1641                            s = r.clone().attr("style", "").css({
1642                                visibility: "hidden",
1643                                height: 0,
1644                                overflow: "hidden",
1645                                paddingTop: 0,
1646                                paddingBottom: 0,
1647                                marginTop: 0,
1648                                marginBottom: 0
1649                            });
1650                            n.after(s);
1651                        }
1652                        if (a(s, "width").value != a(n, "width").value) {
1653                            n.width(a(s, "width").value);
1654                        }
1655                        a(n).remove();
1656                        if (q) {
1657                            clearTimeout(q);
1658                        }
1659                        q = setTimeout(function() {
1660                            q = false;
1661                            a(s).remove();
1662                            s.remove();
1663                            s = false;
1664                        }, 100);
1665                    }
1666                    if (r.css("position") == "fixed") {
1667                        r.css("left", n.offset().left);
1668                    } else {
1669                        r.css("left", 0);
1670                    }
1671                    if (r.width() != n.width()) {
1672                        r.css("width", n.width());
1673                    }
1674                }
1675                k.on("resize", l);
1676                r.data("hcSticky", b.extend(r.data("hcSticky"), {
1677                    f: function() {}
1678                }));
1679                r.data("hcSticky", b.extend(r.data("hcSticky"), {
1680                    f: o
1681                }));
1682                r.data("hcSticky").f(true);
1683                k.on("scroll", r.data("hcSticky").f);
1684            });
1685        }
1686    });
1687})(jQuery);
1688(function(a) {
1689    a.fn.dpSocialFeedr = function(aG) {
1690        function aN(c) {
1691            if (e[c].name != "") {
1692                for (var b = 0; b < e[c].url.length; b++) {
1693                    aF(e[c].url[b], b, function(f, g) {
1694                        if (!f) {
1695                            return false;
1696                        }
1697                        for (var d = 0; d < f.entries.length; d++) {
1698                            f.entries[d].favicon = e[c].favicon;
1699                            aU.push(f.entries[d]);
1700                        }
1701                        if (g == e[c].url.length - 1) {
1702                            if (parseInt(c, 10) == e.length - 1) {
1703                                aM();
1704                            } else {
1705                                aN(c + 1);
1706                            }
1707                        }
1708                    }, al);
1709                }
1710            } else {
1711                if (parseInt(c, 10) == e.length - 1) {
1712                    aM();
1713                } else {
1714                    aN(c + 1);
1715                }
1716            }
1717        }
1718
1719        function aI() {
1720            aN(0);
1721        }
1722
1723        function aH(d, b) {
1724            b = (((b || "") + "").toLowerCase().match(/<[a-z][a-z0-9]*>/g) || []).join("");
1725            var f = /<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,
1726                c = /<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi;
1727            return d.replace(c, "").replace(f, function(g, h) {
1728                return b.indexOf("<" + h.toLowerCase() + ">") > -1 ? g : "";
1729            });
1730        }
1731
1732        function aM() {
1733            var A = false,
1734                h = false,
1735                b, k, f, z, c, q, w, j, l, s;
1736            a(aK).removeClass("dpSocialFeedrLoading");
1737            k = a("<ul>").addClass("dpSocialFeedr");
1738            aU.sort(function(g, d) {
1739                g = (new Date(g.publishedDate)).getTime();
1740                d = (new Date(d.publishedDate)).getTime();
1741                return g == d ? 0 : g > d ? -1 : 1;
1742            });
1743            for (x in aU) {
1744                if (x >= al) {
1745                    break;
1746                }
1747                if (aQ) {
1748                    z = a("<img />").attr({
1749                        alt: "",
1750                        src: aU[x].favicon,
1751                        width: "16",
1752                        height: "16"
1753                    }).addClass("icon");
1754                } else {
1755                    z = "";
1756                }
1757                q = a("<span />").addClass("time").html(aZ((new Date(aU[x].publishedDate)).getTime()));
1758                w = a("<a />").addClass("permalink").attr({
1759                    href: aU[x].link,
1760                    target: "_blank"
1761                }).html("<i class='small-icon-bubble'></i>");
1762                if (aU[x].link.substr(0, 28) == "http://www.youtube.com/watch") {
1763                    A = true;
1764                    h = false;
1765                    j = a("<div />").addClass("video_icon");
1766                } else {
1767                    if (aU[x].link.substr(0, 16) == "http://vimeo.com") {
1768                        A = false;
1769                        h = true;
1770                        j = a("<div />").addClass("video_icon");
1771                    } else {
1772                        A = false;
1773                        h = false;
1774                        j = "";
1775                    }
1776                }
1777                if (aU[x].link.substr(0, 23) == "http://www.facebook.com") {
1778                    b = aS(aH(aU[x].content.substr(0, aU[x].content.indexOf("<br") > 0 ? aU[x].content.indexOf("<br") : aU[x].content.length)));
1779                    if (b == "") {
1780                        b = aS(aU[x].title);
1781                    }
1782                } else {
1783                    b = aS(aU[x].title);
1784                }
1785                c = a("<div />").addClass("dpSocialFeedrContent").append(a(q)).append(a(w)).append(a("<br />")).append(b);
1786                if (aV(aU[x].content, aU[x].title, false) != "") {
1787                    l = aV(aU[x].content, aU[x].title, false);
1788                    s = a("<a />").attr({
1789                        href: aU[x].link,
1790                        target: "_blank"
1791                    }).addClass("img_link" + (A || h ? " youtube" : ""));
1792                    a(s).append(l).append(j);
1793                    if (a0) {
1794                        a(s).addClass("dpSocialFeedrColorbox");
1795                        if (A) {
1796                            a(s).attr({
1797                                href: aP(aU[x].link)
1798                            });
1799                        } else {
1800                            if (h) {
1801                                a(s).attr({
1802                                    href: aX(aU[x].link)
1803                                });
1804                            } else {
1805                                a(s).attr({
1806                                    href: aV(aU[x].content, aU[x].title, true)
1807                                });
1808                            }
1809                        }
1810                    }
1811                    c.append(a("<br />")).append(s);
1812                }
1813                c.append("<div style='clear: both;'></div>");
1814                f = a("<li>").append(a(z)).append(a(c));
1815                a(k).append(f);
1816            }
1817            a(aK).append(k);
1818            if (ax == "fade") {
1819                if (am) {
1820                    a(k).bxSlider({
1821                        auto: true,
1822                        mode: "fade",
1823                        controls: false,
1824                        speed: an,
1825                        pause: az,
1826                        autoHover: ak
1827                    });
1828                } else {
1829                    a(k).bxSlider({
1830                        auto: true,
1831                        mode: "fade",
1832                        controls: false,
1833                        speed: an,
1834                        pause: az,
1835                        autoHover: ak
1836                    });
1837                }
1838            }
1839            if (a0) {
1840                a(k).find(".dpSocialFeedrColorbox").colorbox();
1841                a(k).find(".dpSocialFeedrColorbox.youtube").colorbox({
1842                    iframe: true,
1843                    innerWidth: 425,
1844                    innerHeight: 344
1845                });
1846            }
1847        }
1848
1849        function aF(c, g, f, b) {
1850            if (c == null) {
1851                return false;
1852            }
1853            var d = "http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&callback=?&q=" + encodeURIComponent(c);
1854            if (b != null) {
1855                d += "&num=" + b;
1856            }
1857            a.getJSON(d, function(h) {
1858                if (typeof f == "function") {
1859                    f.call(this, h.responseData.feed, g);
1860                } else {
1861                    return false;
1862                }
1863            });
1864        }
1865
1866        function aZ(f) {
1867            var c = f;
1868            var g = arguments.length > 1 ? arguments[1] : new Date;
1869            var d = parseInt((g.getTime() - c) / 1000);
1870            var b = "";
1871            if (d < 60) {
1872                b = "less than minute ago";
1873            } else {
1874                if (d < 120) {
1875                    b = "about a minute ago";
1876                } else {
1877                    if (d < 60 * 60) {
1878                        b = "about " + parseInt(d / 60).toString() + " minutes ago";
1879                    } else {
1880                        if (d < 120 * 60) {
1881                            b = "about an hour ago";
1882                        } else {
1883                            if (d < 24 * 60 * 60) {
1884                                b = "about " + parseInt(d / 3600).toString() + " hours ago";
1885                            } else {
1886                                if (d < 48 * 60 * 60) {
1887                                    b = "1 day ago";
1888                                } else {
1889                                    b = parseInt(d / 86400).toString() + " days ago";
1890                                }
1891                            }
1892                        }
1893                    }
1894                }
1895            }
1896            return b;
1897        }
1898
1899        function aV(g, c, j) {
1900            var f = new Array;
1901            var b = /<img .*src=["\']([^ ^"^\']*)["\']/gi;
1902            var d;
1903            while (d = b.exec(g)) {
1904                f.push(d[1]);
1905            }
1906            if (f.length > 0) {
1907                var h = f[0];
1908                h = h.replace("_m.jpg", ".jpg");
1909                h = h.replace("_s.jpg", "_b.jpg");
1910                if (h.indexOf("safe_image.php") != -1) {
1911                    h = unescape(h.match(/url=([^&]+)/)[1]);
1912                }
1913                if (j) {
1914                    return h;
1915                } else {
1916                    return '<img src="' + h + '" alt="' + c + '" height="100" />';
1917                }
1918            } else {
1919                return false;
1920            }
1921        }
1922
1923        function aP(b) {
1924            return b.replace(/http:\/\/(www.)?(youtu.be\/|youtube.com\/watch\?v=)([a-zA-Z0-9?%.;:\\/=+_-]+)([&]*([a-zA-Z0-9?&%.;:\\/=+_-]*))/i, "http://www.youtube.com/v/$3?fs=1&hl=en_US");
1925        }
1926
1927        function aX(b) {
1928            return b.replace(/http:\/\/(www.)?(vimeo.com\/)([a-zA-Z0-9?%.;:\\/=+_-]+)([&]*([a-zA-Z0-9?&%.;:\\/=+_-]*))/i, "http://player.vimeo.com/video/$3");
1929        }
1930
1931        function aS(b) {
1932            return b.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/, function(c) {
1933                return "<a href='" + c + "' target='_blank'>" + c + "</a>";
1934            });
1935        }
1936        var aL;
1937        aL = a.extend({}, a.fn.dpSocialFeedr.defaults, aG);
1938        var aW = aL.twitter,
1939            aE = aL.facebook_page,
1940            aO = aL.delicious,
1941            aT = aL.flickr,
1942            aC = aL.tumblr,
1943            aY = aL.youtube,
1944            aD = aL.dribbble,
1945            av = aL.digg,
1946            ag = aL.pinterest,
1947            af = aL.vimeo,
1948            al = aL.total,
1949            ax = aL.displayStyle,
1950            aQ = aL.showIcons,
1951            an = aL.fadeSpeed,
1952            az = aL.feedPause,
1953            ak = aL.fadeAutohover,
1954            am = aL.fadeAutoheight,
1955            a0 = aL.addColorbox,
1956            aw = aW.split(","),
1957            aj = new Array,
1958            ar = aE.split(","),
1959            ay = new Array,
1960            aR = aO.split(","),
1961            au = new Array,
1962            aq = aT.split(","),
1963            aJ = new Array,
1964            ah = aC.split(","),
1965            ae = new Array,
1966            aB = aY.split(","),
1967            ac = new Array,
1968            ab = aD.split(","),
1969            ad = new Array,
1970            aA = av.split(","),
1971            ap = new Array,
1972            ao = ag.split(","),
1973            ai = new Array,
1974            at = af.split(","),
1975            aa = new Array,
1976            e = new Array,
1977            aK = a(this),
1978            aU = new Array;
1979        for (i = 0; i < aw.length; i++) {
1980            aj[i] = "http://tw2rss.com/user_timeline.rss?screen_name=" + a.trim(aw[i]);
1981        }
1982        for (i = 0; i < ar.length; i++) {
1983            ay[i] = "http://www.facebook.com/feeds/page.php?id=" + a.trim(ar[i]) + "&format=atom10";
1984        }
1985        for (i = 0; i < aR.length; i++) {
1986            au[i] = "http://feeds.delicious.com/v2/rss/" + a.trim(aR[i]);
1987        }
1988        for (i = 0; i < aq.length; i++) {
1989            aJ[i] = "http://api.flickr.com/services/feeds/photos_public.gne?id=" + a.trim(aq[i]) + "&format=rss_200";
1990        }
1991        for (i = 0; i < ah.length; i++) {
1992            ae[i] = "http://" + a.trim(ah[i]) + ".tumblr.com/rss";
1993        }
1994        for (i = 0; i < aB.length; i++) {
1995            ac[i] = "http://gdata.youtube.com/feeds/base/users/" + a.trim(aB[i]) + "/uploads";
1996        }
1997        for (i = 0; i < ab.length; i++) {
1998            ad[i] = "http://dribbble.com/players/" + a.trim(ab[i]) + "/shots.rss";
1999        }
2000        for (i = 0; i < aA.length; i++) {
2001            ap[i] = "http://digg.com/users/" + a.trim(aA[i]) + "/history.rss";
2002        }
2003        for (i = 0; i < ao.length; i++) {
2004            ai[i] = "http://www.pinterest.com/" + a.trim(ao[i]) + "/feed.rss";
2005        }
2006        for (i = 0; i < at.length; i++) {
2007            aa[i] = "http://vimeo.com/" + a.trim(at[i]) + "/videos/rss";
2008        }
2009        e[0] = {
2010            name: aW,
2011            url: aj,
2012            favicon: "http://www.twitter.com/favicon.ico"
2013        };
2014        e[1] = {
2015            name: aE,
2016            url: ay,
2017            favicon: "http://www.facebook.com/favicon.ico"
2018        };
2019        e[2] = {
2020            name: aO,
2021            url: au,
2022            favicon: "http://www.delicious.com/favicon.ico"
2023        };
2024        e[3] = {
2025            name: aT,
2026            url: aJ,
2027            favicon: "http://www.flickr.com/favicon.ico"
2028        };
2029        e[4] = {
2030            name: aC,
2031            url: ae,
2032            favicon: "http://www.tumblr.com/favicon.ico"
2033        };
2034        e[5] = {
2035            name: aY,
2036            url: ac,
2037            favicon: "http://www.youtube.com/favicon.ico"
2038        };
2039        e[6] = {
2040            name: aD,
2041            url: ad,
2042            favicon: "http://www.dribbble.com/favicon.ico"
2043        };
2044        e[7] = {
2045            name: av,
2046            url: ap,
2047            favicon: "http://www.digg.com/favicon.ico"
2048        };
2049        e[8] = {
2050            name: ag,
2051            url: ai,
2052            favicon: "http://www.pinterest.com/favicon.ico"
2053        };
2054        e[9] = {
2055            name: af,
2056            url: aa,
2057            favicon: "http://www.vimeo.com/favicon.ico"
2058        };
2059        this.addClass("dpSocialFeedrLoading");
2060        aI();
2061    };
2062    a.fn.dpSocialFeedr.defaults = {
2063        twitter: "",
2064        facebook_page: "",
2065        delicious: "",
2066        flickr: "",
2067        tumblr: "",
2068        youtube: "",
2069        dribbble: "",
2070        digg: "",
2071        pinterest: "",
2072        vimeo: "",
2073        displayStyle: "list",
2074        showIcons: true,
2075        fadeSpeed: 600,
2076        feedPause: 5000,
2077        fadeAutohover: false,
2078        fadeAutoheight: true,
2079        addColorbox: false,
2080        total: 10
2081    };
2082})(jQuery);
2083(function(a) {
2084    a.fn.bxSlider = function(aF) {
2085        function aL(d, j, g, c) {
2086            var f = [];
2087            var h = g;
2088            var b = false;
2089            if (c == "backward") {
2090                d = a.makeArray(d);
2091                d.reverse();
2092            }
2093            while (h > 0) {
2094                a.each(d, function(k, l) {
2095                    if (h > 0) {
2096                        if (!b) {
2097                            if (k == j) {
2098                                b = true;
2099                                f.push(a(this).clone());
2100                                h--;
2101                            }
2102                        } else {
2103                            f.push(a(this).clone());
2104                            h--;
2105                        }
2106                    } else {
2107                        return false;
2108                    }
2109                });
2110            }
2111            return f;
2112        }
2113
2114        function aH() {
2115            var b = al.outerHeight() * aF.displaySlideQty;
2116            return b;
2117        }
2118
2119        function aQ() {
2120            var b = al.outerWidth() * aF.displaySlideQty;
2121            return b;
2122        }
2123
2124        function aG(b, d) {
2125            if (d == "left") {
2126                var c = a(".pager", aO).eq(b).position().left;
2127            } else {
2128                if (d == "top") {
2129                    var c = a(".pager", aO).eq(b).position().top;
2130                }
2131            }
2132            return c;
2133        }
2134
2135        function aK() {
2136            if (!aF.infiniteLoop && aF.hideControlOnEnd) {
2137                if (az == aq) {
2138                    a(".bx-prev", aO).hide();
2139                } else {
2140                    a(".bx-prev", aO).show();
2141                }
2142                if (az == e) {
2143                    a(".bx-next", aO).hide();
2144                } else {
2145                    a(".bx-next", aO).show();
2146                }
2147            }
2148        }
2149
2150        function aE(f, d, b, c) {
2151            ap = a('<a href="" class="bx-start"></a>');
2152            if (f == "text") {
2153                aP = d;
2154            } else {
2155                aP = '<img src="' + d + '" />';
2156            }
2157            if (b == "text") {
2158                ar = c;
2159            } else {
2160                ar = '<img src="' + c + '" />';
2161            }
2162            if (aF.autoControlsSelector) {
2163                a(aF.autoControlsSelector).append(ap);
2164            } else {
2165                aO.append('<div class="bx-auto"></div>');
2166                a(".bx-auto", aO).html(ap);
2167            }
2168            ap.click(function() {
2169                if (aF.ticker) {
2170                    if (a(this).hasClass("stop")) {
2171                        aB.stopTicker();
2172                    } else {
2173                        if (a(this).hasClass("start")) {
2174                            aB.startTicker();
2175                        }
2176                    }
2177                } else {
2178                    if (a(this).hasClass("stop")) {
2179                        aB.stopShow(true);
2180                    } else {
2181                        if (a(this).hasClass("start")) {
2182                            aB.startShow(true);
2183                        }
2184                    }
2185                }
2186                return false;
2187            });
2188        }
2189
2190        function aT() {
2191            var b = a("img", av.eq(az)).attr("title");
2192            if (b != "") {
2193                if (aF.captionsSelector) {
2194                    a(aF.captionsSelector).html(b);
2195                } else {
2196                    a(".bx-captions", aO).html(b);
2197                }
2198            } else {
2199                if (aF.captionsSelector) {
2200                    a(aF.captionsSelector).html(" ");
2201                } else {
2202                    a(".bx-captions", aO).html(" ");
2203                }
2204            }
2205        }
2206
2207        function aN(g) {
2208            var d = av.length;
2209            if (aF.moveSlideQty > 1) {
2210                if (av.length % aF.moveSlideQty != 0) {
2211                    d = Math.ceil(av.length / aF.moveSlideQty);
2212                } else {
2213                    d = av.length / aF.moveSlideQty;
2214                }
2215            }
2216            var b = "";
2217            if (aF.buildPager) {
2218                for (var c = 0; c < d; c++) {
2219                    b += aF.buildPager(c, av.eq(c * aF.moveSlideQty));
2220                }
2221            } else {
2222                if (g == "full") {
2223                    for (var c = 1; c <= d; c++) {
2224                        b += '<a href="" class="pager-link pager-' + c + '">' + c + "</a>";
2225                    }
2226                } else {
2227                    if (g == "short") {
2228                        b = '<span class="bx-pager-current">' + (aF.startingSlide + 1) + "</span> " + aF.pagerShortSeparator + ' <span class="bx-pager-total">
2228' + av.length + "</span>";
2229                    }
2230                }
2231            }
2232            if (aF.pagerSelector) {
2233                a(aF.pagerSelector).append(b);
2234                au = a(aF.pagerSelector);
2235            } else {
2236                var f = a('<div class="bx-pager"></div>');
2237                f.append(b);
2238                if (aF.pagerLocation == "top") {
2239                    aO.prepend(f);
2240                } else {
2241                    if (aF.pagerLocation == "bottom") {
2242                        aO.append(f);
2243                    }
2244                }
2245                au = a(".bx-pager", aO);
2246            }
2247            au.children().click(function() {
2248                if (aF.pagerType == "full") {
2249                    var h = au.children().index(this);
2250                    if (aF.moveSlideQty > 1) {
2251                        h *= aF.moveSlideQty;
2252                    }
2253                    aB.goToSlide(h);
2254                }
2255                return false;
2256            });
2257        }
2258
2259        function aV(h, f, c, d) {
2260            var g = a('<a href="" class="bx-next"></a>');
2261            var b = a('<a href="" class="bx-prev"></a>');
2262            if (h == "text") {
2263                g.html(f);
2264            } else {
2265                g.html('<img src="' + f + '" />');
2266            }
2267            if (c == "text") {
2268                b.html(d);
2269            } else {
2270                b.html('<img src="' + d + '" />');
2271            }
2272            if (aF.prevSelector) {
2273                a(aF.prevSelector).append(b);
2274            } else {
2275                aO.append(b);
2276            }
2277            if (aF.nextSelector) {
2278                a(aF.nextSelector).append(g);
2279            } else {
2280                aO.append(g);
2281            }
2282            g.click(function() {
2283                aB.goToNextSlide();
2284                return false;
2285            });
2286            b.click(function() {
2287                aB.goToPreviousSlide();
2288                return false;
2289            });
2290        }
2291
2292        function aR(b) {
2293            if (aF.pagerType == "full" && aF.pager) {
2294                a("a", au).removeClass(aF.pagerActiveClass);
2295                a("a", au).eq(b).addClass(aF.pagerActiveClass);
2296            } else {
2297                if (aF.pagerType == "short" && aF.pager) {
2298                    a(".bx-pager-current", au).html(az + 1);
2299                }
2300            }
2301        }
2302
2303        function aJ() {
2304            av.not(":eq(" + az + ")").fadeTo(aF.speed, 0).css("zIndex", 98);
2305            av.eq(az).css("zIndex", 99).fadeTo(aF.speed, 1, function() {
2306                ag = false;
2307                if (jQuery.browser.msie) {
2308                    av.eq(az).get(0).style.removeAttribute("filter");
2309                }
2310                aF.onAfterSlide(az, av.length, av.eq(az));
2311            });
2312        }
2313
2314        function aU() {
2315            ad.hover(function() {
2316                if (ao) {
2317                    aB.stopTicker(false);
2318                }
2319            }, function() {
2320                if (ao) {
2321                    aB.startTicker(false);
2322                }
2323            });
2324        }
2325
2326        function aD() {
2327            aO.find(".bx-window").hover(function() {
2328                if (ao) {
2329                    aB.stopShow(false);
2330                }
2331            }, function() {
2332                if (ao) {
2333                    aB.startShow(false);
2334                }
2335            });
2336        }
2337
2338        function aM() {
2339            if (aF.startImage != "") {
2340                startContent = aF.startImage;
2341                startType = "image";
2342            } else {
2343                startContent = aF.startText;
2344                startType = "text";
2345            }
2346            if (aF.stopImage != "") {
2347                stopContent = aF.stopImage;
2348                stopType = "image";
2349            } else {
2350                stopContent = aF.stopText;
2351                stopType = "text";
2352            }
2353            aE(startType, startContent, stopType, stopContent);
2354        }
2355
2356        function aS(c, d, b) {
2357            if (aF.mode == "horizontal") {
2358                if (aF.tickerDirection == "next") {
2359                    ad.animate({
2360                        left: "-=" + d + "px"
2361                    }, b, "linear", function() {
2362                        ad.css("left", c);
2363                        aS(c, ab, aF.tickerSpeed);
2364                    });
2365                } else {
2366                    if (aF.tickerDirection == "prev") {
2367                        ad.animate({
2368                            left: "+=" + d + "px"
2369                        }, b, "linear", function() {
2370                            ad.css("left", c);
2371                            aS(c, ab, aF.tickerSpeed);
2372                        });
2373                    }
2374                }
2375            } else {
2376                if (aF.mode == "vertical") {
2377                    if (aF.tickerDirection == "next") {
2378                        ad.animate({
2379                            top: "-=" + d + "px"
2380                        }, b, "linear", function() {
2381                            ad.css("top", c);
2382                            aS(c, ay, aF.tickerSpeed);
2383                        });
2384                    } else {
2385                        if (aF.tickerDirection == "prev") {
2386                            ad.animate({
2387                                top: "+=" + d + "px"
2388                            }, b, "linear", function() {
2389                                ad.css("top", c);
2390                                aS(c, ay, aF.tickerSpeed);
2391                            });
2392                        }
2393                    }
2394                }
2395            }
2396        }
2397
2398        function aA() {
2399            if (aF.auto) {
2400                if (!aF.infiniteLoop) {
2401                    if (aF.autoDirection == "next") {
2402                        ah = setInterval(function() {
2403                            az += aF.moveSlideQty;
2404                            if (az > e) {
2405                                az = az % av.length;
2406                            }
2407                            aB.goToSlide(az, false);
2408                        }, aF.pause);
2409                    } else {
2410                        if (aF.autoDirection == "prev") {
2411                            ah = setInterval(function() {
2412                                az -= aF.moveSlideQty;
2413                                if (az < 0) {
2414                                    negativeOffset = az % av.length;
2415                                    if (negativeOffset == 0) {
2416                                        az = 0;
2417                                    } else {
2418                                        az = av.length + negativeOffset;
2419                                    }
2420                                }
2421                                aB.goToSlide(az, false);
2422                            }, aF.pause);
2423                        }
2424                    }
2425                } else {
2426                    if (aF.autoDirection == "next") {
2427                        ah = setInterval(function() {
2428                            aB.goToNextSlide(false);
2429                        }, aF.pause);
2430                    } else {
2431                        if (aF.autoDirection == "prev") {
2432                            ah = setInterval(function() {
2433                                aB.goToPreviousSlide(false);
2434                            }, aF.pause);
2435                        }
2436                    }
2437                }
2438            } else {
2439                if (aF.ticker) {
2440                    aF.tickerSpeed *= 10;
2441                    a(".pager", aO).each(function(b) {
2442                        ab += a(this).width();
2443                        ay += a(this).height();
2444                    });
2445                    if (aF.tickerDirection == "prev" && aF.mode == "horizontal") {
2446                        ad.css("left", "-" + (ab + aa) + "px");
2447                    } else {
2448                        if (aF.tickerDirection == "prev" && aF.mode == "vertical") {
2449                            ad.css("top", "-" + (ay + Z) + "px");
2450                        }
2451                    }
2452                    if (aF.mode == "horizontal") {
2453                        an = parseInt(ad.css("left"));
2454                        aS(an, ab, aF.tickerSpeed);
2455                    } else {
2456                        if (aF.mode == "vertical") {
2457                            am = parseInt(ad.css("top"));
2458                            aS(am, ay, aF.tickerSpeed);
2459                        }
2460                    }
2461                    if (aF.tickerHover) {
2462                        aU();
2463                    }
2464                }
2465            }
2466        }
2467
2468        function aW() {
2469            if (aF.nextImage != "") {
2470                nextContent = aF.nextImage;
2471                nextType = "image";
2472            } else {
2473                nextContent = aF.nextText;
2474                nextType = "text";
2475            }
2476            if (aF.prevImage != "") {
2477                prevContent = aF.prevImage;
2478                prevType = "image";
2479            } else {
2480                prevContent = aF.prevText;
2481                prevType = "text";
2482            }
2483            aV(nextType, nextContent, prevType, prevContent);
2484        }
2485
2486        function aC() {
2487            if (aF.mode == "horizontal" || aF.mode == "vertical") {
2488                var f = aL(av, 0, aF.moveSlideQty, "backward");
2489                a.each(f, function(h) {
2490                    ad.prepend(a(this));
2491                });
2492                var c = av.length + aF.moveSlideQty - 1;
2493                var d = av.length - aF.displaySlideQty;
2494                var g = c - d;
2495                var b = aL(av, 0, g, "forward");
2496                if (aF.infiniteLoop) {
2497                    a.each(b, function(h) {
2498                        ad.append(a(this));
2499                    });
2500                }
2501            }
2502        }
2503
2504        function at() {
2505            aC(aF.startingSlide);
2506            if (aF.mode == "horizontal") {
2507                ad.wrap('<div class="' + aF.wrapperClass + '" style="width:' + ak + 'px; position:relative;"></div>').wrap('<div class="bx-window" style="position:relative; overflow:hidden; width:' + ak + 'px;"></div>').css({
2508                    width: "999999px",
2509                    position: "relative",
2510                    left: "-" + aa + "px"
2511                });
2512                ad.children().css({
2513                    width: ax,
2514                    "float": "left",
2515                    listStyle: "none"
2516                });
2517                aO = ad.parent().parent();
2518                av.addClass("pager");
2519            } else {
2520                if (aF.mode == "vertical") {
2521                    ad.wrap('<div class="' + aF.wrapperClass + '" style="width:' + af + 'px; position:relative;"></div>').wrap('<div class="bx-window" style="width:' + af + "px; height:" + aX + 'px; position:relative; overflow:hidden;"></div>').css({
2522                        height: "999999px",
2523                        position: "relative",
2524                        top: "-" + Z + "px"
2525                    });
2526                    ad.children().css({
2527                        listStyle: "none",
2528                        height: ac
2529                    });
2530                    aO = ad.parent().parent();
2531                    av.addClass("pager");
2532                } else {
2533                    if (aF.mode == "fade") {
2534                        ad.wrap('<div class="' + aF.wrapperClass + '" style="width:' + af + 'px; position:relative;"></div>').wrap('<div class="bx-window" style="height:' + ac + "px;
2534 width:" + af + 'px; position:relative; overflow:hidden;"></div>');
2535                        ad.children().css({
2536                            listStyle: "none",
2537                            position: "absolute",
2538                            top: 0,
2539                            left: 0,
2540                            zIndex: 98
2541                        });
2542                        aO = ad.parent().parent();
2543                        av.not(":eq(" + az + ")").fadeTo(0, 0);
2544                        av.eq(az).css("zIndex", 99);
2545                    }
2546                }
2547            }
2548            if (aF.captions && aF.captionsSelector == null) {
2549                aO.append('<div class="bx-captions"></div>');
2550            }
2551        }
2552        var ae = {
2553            mode: "horizontal",
2554            infiniteLoop: true,
2555            hideControlOnEnd: false,
2556            controls: true,
2557            speed: 500,
2558            easing: "swing",
2559            pager: false,
2560            pagerSelector: null,
2561            pagerType: "full",
2562            pagerLocation: "bottom",
2563            pagerShortSeparator: "/",
2564            pagerActiveClass: "pager-active",
2565            nextText: "next",
2566            nextImage: "",
2567            nextSelector: null,
2568            prevText: "prev",
2569            prevImage: "",
2570            prevSelector: null,
2571            captions: false,
2572            captionsSelector: null,
2573            auto: false,
2574            autoDirection: "next",
2575            autoControls: false,
2576            autoControlsSelector: null,
2577            autoStart: true,
2578            autoHover: false,
2579            autoDelay: 0,
2580            pause: 3000,
2581            startText: "start",
2582            startImage: "",
2583            stopText: "stop",
2584            stopImage: "",
2585            ticker: false,
2586            tickerSpeed: 5000,
2587            tickerDirection: "next",
2588            tickerHover: false,
2589            wrapperClass: "bx-wrapper",
2590            startingSlide: 0,
2591            displaySlideQty: 1,
2592            moveSlideQty: 1,
2593            randomStart: false,
2594            onBeforeSlide: function() {},
2595            onAfterSlide: function() {},
2596            onLastSlide: function() {},
2597            onFirstSlide: function() {},
2598            onNextSlide: function() {},
2599            onPrevSlide: function() {},
2600            buildPager: null
2601        };
2602        var aF = a.extend(ae, aF);
2603        var aB = this;
2604        var ad = "";
2605        var aj = "";
2606        var av = "";
2607        var aO = "";
2608        var al = "";
2609        var ax = "";
2610        var ai = "";
2611        var ak = "";
2612        var aX = "";
2613        var au = "";
2614        var ah = "";
2615        var ap = "";
2616        var aw = "";
2617        var aP = "";
2618        var ar = "";
2619        var ao = true;
2620        var aI = false;
2621        var af = 0;
2622        var ac = 0;
2623        var az = 0;
2624        var aa = 0;
2625        var Z = 0;
2626        var ab = 0;
2627        var ay = 0;
2628        var an = 0;
2629        var am = 0;
2630        var ag = false;
2631        var aq = 0;
2632        var e = av.length - 1;
2633        this.goToSlide = function(b, c) {
2634            if (!ag) {
2635                ag = true;
2636                az = b;
2637                aF.onBeforeSlide(az, av.length, av.eq(az));
2638                if (typeof c == "undefined") {
2639                    var c = true;
2640                }
2641                if (c) {
2642                    if (aF.auto) {
2643                        aB.stopShow(true);
2644                    }
2645                }
2646                slide = b;
2647                if (slide == aq) {
2648                    aF.onFirstSlide(az, av.length, av.eq(az));
2649                }
2650                if (slide == e) {
2651                    aF.onLastSlide(az, av.length, av.eq(az));
2652                }
2653                if (aF.mode == "horizontal") {
2654                    ad.animate({
2655                        left: "-" + aG(slide, "left") + "px"
2656                    }, aF.speed, aF.easing, function() {
2657                        ag = false;
2658                        aF.onAfterSlide(az, av.length, av.eq(az));
2659                    });
2660                } else {
2661                    if (aF.mode == "vertical") {
2662                        ad.animate({
2663                            top: "-" + aG(slide, "top") + "px"
2664                        }, aF.speed, aF.easing, function() {
2665                            ag = false;
2666                            aF.onAfterSlide(az, av.length, av.eq(az));
2667                        });
2668                    } else {
2669                        if (aF.mode == "fade") {
2670                            aJ();
2671                        }
2672                    }
2673                }
2674                aK();
2675                if (aF.moveSlideQty > 1) {
2676                    b = Math.floor(b / aF.moveSlideQty);
2677                }
2678                aR(b);
2679                aT();
2680            }
2681        };
2682        this.goToNextSlide = function(d) {
2683            if (typeof d == "undefined") {
2684                var d = true;
2685            }
2686            if (d) {
2687                if (aF.auto) {
2688                    aB.stopShow(true);
2689                }
2690            }
2691            if (!aF.infiniteLoop) {
2692                if (!ag) {
2693                    var f = false;
2694                    az = az + aF.moveSlideQty;
2695                    if (az <= e) {
2696                        aK();
2697                        aF.onNextSlide(az, av.length, av.eq(az));
2698                        aB.goToSlide(az);
2699                    } else {
2700                        az -= aF.moveSlideQty;
2701                    }
2702                }
2703            } else {
2704                if (!ag) {
2705                    ag = true;
2706                    var f = false;
2707                    az = az + aF.moveSlideQty;
2708                    if (az > e) {
2709                        az = az % av.length;
2710                        f = true;
2711                    }
2712                    aF.onNextSlide(az, av.length, av.eq(az));
2713                    aF.onBeforeSlide(az, av.length, av.eq(az));
2714                    if (aF.mode == "horizontal") {
2715                        var c = aF.moveSlideQty * ai;
2716                        ad.animate({
2717                            left: "-=" + c + "px"
2718                        }, aF.speed, aF.easing, function() {
2719                            ag = false;
2720                            if (f) {
2721                                ad.css("left", "-" + aG(az, "left") + "px");
2722                            }
2723                            aF.onAfterSlide(az, av.length, av.eq(az));
2724                        });
2725                    } else {
2726                        if (aF.mode == "vertical") {
2727                            var b = aF.moveSlideQty * ac;
2728                            ad.animate({
2729                                top: "-=" + b + "px"
2730                            }, aF.speed, aF.easing, function() {
2731                                ag = false;
2732                                if (f) {
2733                                    ad.css("top", "-" + aG(az, "top") + "px");
2734                                }
2735                                aF.onAfterSlide(az, av.length, av.eq(az));
2736                            });
2737                        } else {
2738                            if (aF.mode == "fade") {
2739                                aJ();
2740                            }
2741                        }
2742                    }
2743                    if (aF.moveSlideQty > 1) {
2744                        aR(Math.ceil(az / aF.moveSlideQty));
2745                    } else {
2746                        aR(az);
2747                    }
2748                    aT();
2749                }
2750            }
2751        };
2752        this.goToPreviousSlide = function(f) {
2753            if (typeof f == "undefined") {
2754                var f = true;
2755            }
2756            if (f) {
2757                if (aF.auto) {
2758                    aB.stopShow(true);
2759                }
2760            }
2761            if (!aF.infiniteLoop) {
2762                if (!ag) {
2763                    var d = false;
2764                    az = az - aF.moveSlideQty;
2765                    if (az < 0) {
2766                        az = 0;
2767                        if (aF.hideControlOnEnd) {
2768                            a(".bx-prev", aO).hide();
2769                        }
2770                    }
2771                    aK();
2772                    aF.onPrevSlide(az, av.length, av.eq(az));
2773                    aB.goToSlide(az);
2774                }
2775            } else {
2776                if (!ag) {
2777                    ag = true;
2778                    var d = false;
2779                    az = az - aF.moveSlideQty;
2780                    if (az < 0) {
2781                        negativeOffset = az % av.length;
2782                        if (negativeOffset == 0) {
2783                            az = 0;
2784                        } else {
2785                            az = av.length + negativeOffset;
2786                        }
2787                        d = true;
2788                    }
2789                    aF.onPrevSlide(az, av.length, av.eq(az));
2790                    aF.onBeforeSlide(az, av.length, av.eq(az));
2791                    if (aF.mode == "horizontal") {
2792                        var c = aF.moveSlideQty * ai;
2793                        ad.animate({
2794                            left: "+=" + c + "px"
2795                        }, aF.speed, aF.easing, function() {
2796                            ag = false;
2797                            if (d) {
2798                                ad.css("left", "-" + aG(az, "left") + "px");
2799                            }
2800                            aF.onAfterSlide(az, av.length, av.eq(az));
2801                        });
2802                    } else {
2803                        if (aF.mode == "vertical") {
2804                            var b = aF.moveSlideQty * ac;
2805                            ad.animate({
2806                                top: "+=" + b + "px"
2807                            }, aF.speed, aF.easing, function() {
2808                                ag = false;
2809                                if (d) {
2810                                    ad.css("top", "-" + aG(az, "top") + "px");
2811                                }
2812                                aF.onAfterSlide(az, av.length, av.eq(az));
2813                            });
2814                        } else {
2815                            if (aF.mode == "fade") {
2816                                aJ();
2817                            }
2818                        }
2819                    }
2820                    if (aF.moveSlideQty > 1) {
2821                        aR(Math.ceil(az / aF.moveSlideQty));
2822                    } else {
2823                        aR(az);
2824                    }
2825                    aT();
2826                }
2827            }
2828        };
2829        this.goToFirstSlide = function(b) {
2830            if (typeof b == "undefined") {
2831                var b = true;
2832            }
2833            aB.goToSlide(aq, b);
2834        };
2835        this.goToLastSlide = function() {
2836            if (typeof b == "undefined") {
2837                var b = true;
2838            }
2839            aB.goToSlide(e, b);
2840        };
2841        this.getCurrentSlide = function() {
2842            return az;
2843        };
2844        this.getSlideCount = function() {
2845            return av.length;
2846        };
2847        this.stopShow = function(b) {
2848            clearInterval(ah);
2849            if (typeof b == "undefined") {
2850                var b = true;
2851            }
2852            if (b && aF.autoControls) {
2853                ap.html(aP).removeClass("stop").addClass("start");
2854                ao = false;
2855            }
2856        };
2857        this.startShow = function(b) {
2858            if (typeof b == "undefined") {
2859                var b = true;
2860            }
2861            aA();
2862            if (b && aF.autoControls) {
2863                ap.html(ar).removeClass("start").addClass("stop");
2864                ao = true;
2865            }
2866        };
2867        this.stopTicker = function(b) {
2868            ad.stop();
2869            if (typeof b == "undefined") {
2870                var b = true;
2871            }
2872            if (b && aF.ticker) {
2873                ap.html(aP).removeClass("stop").addClass("start");
2874                ao = false;
2875            }
2876        };
2877        this.startTicker = function(f) {
2878            if (aF.mode == "horizontal") {
2879                if (aF.tickerDirection == "next") {
2880                    var g = parseInt(ad.css("left"));
2881                    var d = ab + g + av.eq(0).width();
2882                } else {
2883                    if (aF.tickerDirection == "prev") {
2884                        var g = -parseInt(ad.css("left"));
2885                        var d = g - av.eq(0).width();
2886                    }
2887                }
2888                var b = d * aF.tickerSpeed / ab;
2889                aS(an, d, b);
2890            } else {
2891                if (aF.mode == "vertical") {
2892                    if (aF.tickerDirection == "next") {
2893                        var c = parseInt(ad.css("top"));
2894                        var d = ay + c + av.eq(0).height();
2895                    } else {
2896                        if (aF.tickerDirection == "prev") {
2897                            var c = -parseInt(ad.css("top"));
2898                            var d = c - av.eq(0).height();
2899                        }
2900                    }
2901                    var b = d * aF.tickerSpeed / ay;
2902                    aS(am, d, b);
2903                    if (typeof f == "undefined") {
2904                        var f = true;
2905                    }
2906                    if (f && aF.ticker) {
2907                        ap.html(ar).removeClass("start").addClass("stop");
2908                        ao = true;
2909                    }
2910                }
2911            }
2912        };
2913        this.initShow = function() {
2914            ad = a(this);
2915            aj = ad.clone();
2916            av = ad.children();
2917            aO = "";
2918            al = ad.children(":first");
2919            ax = al.width();
2920            af = 0;
2921            ai = al.outerWidth();
2922            ac = 0;
2923            ak = aQ();
2924            aX = aH();
2925            ag = false;
2926            au = "";
2927            az = 0;
2928            aa = 0;
2929            Z = 0;
2930            ah = "";
2931            ap = "";
2932            aw = "";
2933            aP = "";
2934            ar = "";
2935            ao = true;
2936            aI = false;
2937            ab = 0;
2938            ay = 0;
2939            an = 0;
2940            am = 0;
2941            aq = 0;
2942            e = av.length - 1;
2943            av.each(function(c) {
2944                if (a(this).outerHeight() > ac) {
2945                    ac = a(this).outerHeight();
2946                }
2947                if (a(this).outerWidth() > af) {
2948                    af = a(this).outerWidth();
2949                }
2950            });
2951            if (aF.randomStart) {
2952                var b = Math.floor(Math.random() * av.length);
2953                az = b;
2954                aa = ai * (aF.moveSlideQty + b);
2955                Z = ac * (aF.moveSlideQty + b);
2956            } else {
2957                az = aF.startingSlide;
2958                aa = ai * (aF.moveSlideQty + aF.startingSlide);
2959                Z = ac * (aF.moveSlideQty + aF.startingSlide);
2960            }
2961            at();
2962            if (aF.pager && !aF.ticker) {
2963                if (aF.pagerType == "full") {
2964                    aN("full");
2965                } else {
2966                    if (aF.pagerType == "short") {
2967                        aN("short");
2968                    }
2969                }
2970            }
2971            if (aF.controls && !aF.ticker) {
2972                aW();
2973            }
2974            if (aF.auto || aF.ticker) {
2975                if (aF.autoControls) {
2976                    aM();
2977                }
2978                if (aF.autoStart) {
2979                    setTimeout(function() {
2980                        aB.startShow(true);
2981                    }, aF.autoDelay);
2982                } else {
2983                    aB.stopShow(true);
2984                }
2985                if (aF.autoHover && !aF.ticker) {
2986                    aD();
2987                }
2988            }
2989            if (aF.moveSlideQty > 1) {
2990                aR(Math.ceil(az / aF.moveSlideQty));
2991            } else {
2992                aR(az);
2993            }
2994            aK();
2995            if (aF.captions) {
2996                aT();
2997            }
2998            aF.onAfterSlide(az, av.length, av.eq(az));
2999        };
3000        this.destroyShow = function() {
3001            clearInterval(ah);
3002            a(".bx-next, .bx-prev, .bx-pager, .bx-auto", aO).remove();
3003            ad.unwrap().unwrap().removeAttr("style");
3004            ad.children().removeAttr("style").not(".pager").remove();
3005            av.removeClass("pager");
3006        };
3007        this.reloadShow = function() {
3008            aB.destroyShow();
3009            aB.initShow();
3010        };
3011        this.each(function() {
3012            if (a(this).children().length > 0) {
3013                aB.initShow();
3014            }
3015        });
3016        return this;
3017    };
3018    jQuery.fx.prototype.cur = function() {
3019        if (this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null)) {
3020            return this.elem[this.prop];
3021        }
3022        var b = parseFloat(jQuery.css(this.elem, this.prop));
3023        return b;
3024    };
3025})(jQuery);
3026(function(ab) {
3027    function R(a) {
3028        if ("string" == typeof a) {
3029            switch (a) {
3030                case "top":
3031                case "right":
3032                case "bottom":
3033                case "left":
3034                    a = {
3035                        position: a
3036                    };
3037            }
3038        }
3039        return "object" != typeof a && (a = {}), a.addCounters !== void 0 && (ab.fn.mmenu.deprecated("addCounters-option", "counters.add-option"), a.counters = {
3040            add: a.addCounters
3041        }), a.closeOnClick !== void 0 && (ab.fn.mmenu.deprecated("closeOnClick-option", "onClick.close-option"), a.onClick = {
3042            close: a.closeOnClick
3043        }), "boolean" == typeof a.onClick ? a.onClick = {
3044            close: a.onClick
3045        } : "object" != typeof a.onClick && (a.onClick = {}), a;
3046    }
3047
3048    function Q(a) {
3049        if ("boolean" == typeof a.onClick.delayPageload && (a.onClick.delayPageload = a.onClick.delayPageload ? a.configuration.slideDuration : 0), ab.fn.mmenu.useOverflowScrollingFallback()) {
3050            switch (a.position) {
3051                case "top":
3052                case "bottom":
3053                    ab.fn.mmenu.debug('position: "' + a.position + '" not possible when using the overflowScrolling-fallback.'), a.position = "left";
3054            }
3055        }
3056        return a;
3057    }
3058
3059    function P(a, d) {
3060        return a || (a = ab("> " + d.pageNodetype, Y), a.length > 1 && (a = a.wrapAll("<" + d.pageNodetype + " />").parent()), a.addClass(C("page"))), a;
3061    }
3062
3063    function O(a, f, e) {
3064        return a.is(e.menuNodetype) || (a = ab("<" + e.menuNodetype + " />").append(a)), a.prependTo("body").addClass(C("").slice(0, -1)).addClass(C(f)), ab("li." + e.selectedClass, a).removeClass(e.selectedClass).addClass(C("selected")), ab("li." + e.labelClass, a).removeClass(e.labelClass).addClass(C("label")), a;
3065    }
3066
3067    function N(a, f, e) {
3068        a.addClass(C(f)), ab("ul ul", a).addClass(C("submenu")).each(function(c) {
3069            var o = ab(this),
3070                n = o.parent(),
3071                m = n.find("> a, > span"),
3072                l = n.parent(),
3073                k = o.attr("id") || C("s" + e + "-" + c);
3074            o.data(B("parent"), l), n.data(B("sub"), o), o.attr("id", k);
3075            var d = ab('<a class="' + C("subopen") + '" href="#' + k + '" />').insertBefore(m);
3076            if (m.is("a") || d.addClass(C("fullsubopen")), "horizontal" == f) {
3077                var k = l.attr("id") || C("p" + e + "-" + c);
3078                l.attr("id", k), o.prepend('<li class="' + C("subtitle") + '"><a class="' + C("subclose") + '" href="#' + k + '">' + m.text() + "</a></li>");
3079            }
3080        }), "horizontal" == f ? (ab("li." + C("selected"), a).parents("li." + C("selected")).removeClass(C("selected")).end().each(function() {
3081            var d = ab(this),
3082                g = d.find("> ul");
3083            g.length && (d.parent().addClass(C("subopened")).addClass(C("subopening")), g.addClass(C("opened")));
3084        }).parent().addClass(C("opened")).parents("ul").addClass(C("subopened")).addClass(C("subopening")), ab("ul." + C("opened"), a).length || ab("ul", a).not("." + C("submenu")).addClass(C("opened")), ab("ul ul", a).appendTo(a)) : ab("li." + C("selected"), a).addClass(C("opened")).parents("." + C("selected")).removeClass(C("selected"));
3085    }
3086
3087    function M(a, d) {
3088        return a || (a = ab('<div id="' + C("blocker") + '" />').appendTo(Y)), D(a, function() {
3089            d.trigger(L("close"));
3090        }, !0), a;
3091    }
3092
3093    function K(a, e) {
3094        if (e.close) {
3095            var c = ab("a", a).not("." + C("subopen")).not("." + C("subclose"));
3096            D(c, function() {
3097                var d = ab(this),
3098                    b = d.attr("href");
3099                a.trigger(L("close")), c.parent().removeClass(C("selected")), d.parent().addClass(C("selected")), e.blockUI && "#" != b.slice(0, 1) && Z.addClass(C("blocking")), "#" != b && setTimeout(function() {
3100                    window.location.href = b;
3101                }, e.delayPageload);
3102            });
3103        }
3104    }
3105
3106    function J(a, h, g) {
3107        var f = a.attr("id");
3108        f && f.length && D('a[href="#' + f + '"]', function() {
3109            a.trigger(L("toggle"));
3110        });
3111        var f = h.attr("id");
3112        f && f.length && D('a[href="#' + f + '"]', function() {
3113            a.trigger(L("close"));
3114        }), g ? (D(ab("a." + C("subopen"), a), function() {
3115            var c = ab(this).parent().data(B("sub"));
3116            c && c.trigger(L("open"));
3117        }), D(ab("a." + C("subclose"), a), function() {
3118            ab(this).parent().parent().trigger(L("close"));
3119        })) : D(ab("a." + C("subopen"), a), function() {
3120            var c = ab(this).parent().data(B("sub"));
3121            c && c.trigger(L("toggle"));
3122        });
3123    }
3124
3125    function I(b, g) {
3126        var e = E();
3127        V.not(b).trigger(L("close")), g.configuration.hardwareAcceleration && Z.addClass(C("accelerated")), X.data(B("style"), X.attr("style") || "").data(B("scrollTop"), e);
3128        var c = 0;
3129        return aa.bind(L("resize"), function() {
3130            var a = aa.width();
3131            a != c && (c = a, X.width(a));
3132        }).trigger(L("resize")), b.addClass(C("opened")), Z.addClass(C("opened")).addClass(C(g.position)), X.scrollTop(e), setTimeout(function() {
3133            b.trigger(L("opening")), Z.addClass(C("opening")), setTimeout(function() {
3134                b.trigger(L("opened"));
3135            }, g.configuration.slideDuration);
3136        }, 25), "open";
3137    }
3138
3139    function H(b, c) {
3140        return b.trigger(L("closing")), Z.removeClass(C("opening")), setTimeout(function() {
3141            b.trigger(L("closed")).removeClass(C("opened")), Z.removeClass(C("opened")).removeClass(C(c.position)).removeClass(C("accelerated")), X.attr("style", X.data(B("style"))), aa.unbind(L("resize")), U && U.scrollTop(X.data(B("scrollTop")));
3142        }, c.configuration.slideDuration + 25), "close";
3143    }
3144
3145    function G(b) {
3146        Y.scrollTop(0), Z.scrollTop(0), b.removeClass(C("subopening")).addClass(C("opened"));
3147        var c = b.data(B("parent"));
3148        return c && c.addClass(C("subopening")), "open";
3149    }
3150
3151    function F(e, d) {
3152        var f = e.data(B("parent"));
3153        return f && f.removeClass(C("subopening")), setTimeout(function() {
3154            e.removeClass(C("opened"));
3155        }, d.configuration.slideDuration + 25), "close";
3156    }
3157
3158    function E() {
3159        return U || (0 != Z.scrollTop() ? U = Z : 0 != Y.scrollTop() && (U = Y)), U ? U.scrollTop() : 0;
3160    }
3161
3162    function D(a, h, g) {
3163        "string" == typeof a && (a = ab(a));
3164        var f = g ? ab.fn.mmenu.support.touch ? L("touchstart") : L("mousedown") : L("click");
3165        a.bind(f, function(b) {
3166            b.preventDefault(), b.stopPropagation(), h.call(this, b);
3167        });
3168    }
3169
3170    function C(b) {
3171        return "mmenu-" + b;
3172    }
3173
3174    function B(b) {
3175        return "mmenu-" + b;
3176    }
3177
3178    function L(b) {
3179        return b + ".mmenu";
3180    }
3181    var aa = null,
3182        Z = null,
3183        Y = null,
3184        X = null,
3185        W = null,
3186        V = ab(),
3187        U = null;
3188    ab.fn.mmenu = function(a) {
3189        return aa || (aa = ab(window), Z = ab("html"), Y = ab("body"), ab.fn.mmenu.useOverflowScrollingFallback(S)), a = R(a), a = ab.extend(!0, {}, ab.fn.mmenu.defaults, a), a = Q(a), this.each(function() {
3190            var e = ab(this),
3191                h = !1,
3192                g = a.slidingSubmenus ? "horizontal" : "vertical";
3193            V = V.add(e), T++, X = P(X, a.configuration), W = M(W, e, a.configuration), e = O(e, a.position, a.configuration), N(e, g, T), K(e, a.onClick, a.configuration), J(e, X, a.slidingSubmenus), ab.fn.mmenu.counters(e, a.counters, a.configuration), ab.fn.mmenu.search(e, a.searchfield);
3194            var f = e.find("ul");
3195            e.add(f).bind(L("toggle") + " " + L("open") + " " + L("close"), function(b) {
3196                b.preventDefault(), b.stopPropagation();
3197            }), e.bind(L("toggle"), function() {
3198                return e.triggerHandler(L(h ? "close" : "open"));
3199            }).bind(L("open"), function() {
3200                return h ? !1 : (h = !0, I(e, a));
3201            }).bind(L("close"), function() {
3202                return h ? (h = !1, H(e, a)) : !1;
3203            }), "horizontal" == g ? f.bind(L("toggle"), function() {
3204                return ab(this).triggerHandler(L("open"));
3205            }).bind(L("open"), function() {
3206                return G(ab(this), a);
3207            }).bind(L("close"), function() {
3208                return F(ab(this), a);
3209            }) : f.bind(L("toggle"), function() {
3210                var b = ab(this);
3211                return b.triggerHandler(L(b.parent().hasClass(C("opened")) ? "close" : "open"));
3212            }).bind(L("open"), function() {
3213                return ab(this).parent().addClass(C("opened")), "open";
3214            }).bind(L("close"), function() {
3215                return ab(this).parent().removeClass(C("opened")), "close";
3216            });
3217        });
3218    }, ab.fn.mmenu.defaults = {
3219        position: "left",
3220        slidingSubmenus: !0,
3221        onClick: {
3222            close: !0,
3223            delayPageload: !0,
3224            blockUI: !1
3225        },
3226        configuration: {
3227            hardwareAcceleration: !0,
3228            selectedClass: "Selected",
3229            labelClass: "Label",
3230            counterClass: "Counter",
3231            pageNodetype: "div",
3232            menuNodetype: "nav",
3233            slideDuration: 500
3234        }
3235    }, ab.fn.mmenu.search = function(a, p) {
3236        if ("boolean" == typeof p ? p = {
3237                add: p,
3238                search: p
3239            } : "string" == typeof search && (p = {
3240                add: !0,
3241                search: !0,
3242                placeholder: p
3243            }), "object" != typeof p && (p = {}), p = ab.extend(!0, {}, ab.fn.mmenu.search.defaults, p), p.add) {
3244            var o = ab('<div class="' + C("search") + '" />').prependTo(a);
3245            o.append('<input placeholder="' + p.placeholder + '" type="text" autocomplete="off" />'), p.noResults && ab("ul", a).not("." + C("submenu")).append('<li class="' + C("noresults") + '">' + p.noResults + "</li>");
3246        }
3247        if (p.search) {
3248            var o = ab("div." + C("search"), a),
3249                n = ab("input", o),
3250                m = ab("li." + C("label"), a),
3251                l = ab("em." + C("counter"), a),
3252                k = ab("li", a).not("." + C("subtitle")).not("." + C("label")).not("." + C("noresults")),
3253                j = "> a";
3254            p.showLinksOnly || (j += ", > span"), n.bind(L("keyup"), function() {
3255                n.trigger(L("search"));
3256            }), a.bind(L("reset") + " " + L("search"), function(b) {
3257                b.preventDefault(), b.stopPropagation();
3258            }), a.bind(L("reset"), function() {
3259                n.val(""), a.trigger(L("search"));
3260            }), a.bind(L("search"), function(e, b) {
3261                "string" == typeof b ? n.val(b) : b = n.val().toLowerCase(), k.add(m).addClass(C("noresult")), k.each(function() {
3262                    var c = ab(this);
3263                    ab(j, c).text().toLowerCase().indexOf(b) > -1 && c.add(c.prevAll("." + C("label")).first()).removeClass(C("noresult"));
3264                }), ab(ab("ul." + C("submenu"), a).get().reverse()).each(function() {
3265                    var r = ab(this),
3266                        q = null,
3267                        h = r.attr("id"),
3268                        g = r.find("li").not("." + C("subtitle")).not("." + C("label")).not("." + C("noresult"));
3269                    h && h.length && (q = ab("a." + C("subopen"), a).filter('[href="#' + h + '"]').parent()), g.length ? q && (q.removeClass(C("noresult")), q.removeClass(C("nosubresult"))) : (r.trigger(L("close")), q && q.addClass(C("nosubresult")));
3270                }), a[k.not("." + C("noresult")).length ? "removeClass" : "addClass"](C("noresults")), l.trigger(L("count"));
3271            });
3272        }
3273    }, ab.fn.mmenu.search.defaults = {
3274        add: !1,
3275        search: !0,
3276        showLinksOnly: !0,
3277        placeholder: "Search",
3278        noResults: "No results found."
3279    }, ab.fn.mmenu.counters = function(a, f, e) {
3280        "boolean" == typeof f && (f = {
3281            add: f,
3282            count: f
3283        }), "object" != typeof f && (f = {}), f = ab.extend(!0, {}, ab.fn.mmenu.counters.defaults, f), ab("em." + e.counterClass, a).removeClass(e.counterClass).addClass(C("counter")), f.add && ab("." + C("submenu"), a).each(function() {
3284            var j = ab(this),
3285                h = j.attr("id");
3286            if (h && h.length) {
3287                var g = ab('<em class="' + C("counter") + '" />'),
3288                    b = ab("a." + C("subopen"), a).filter('[href="#' + h + '"]');
3289                b.parent().find("em." + C("counter")).length || b.before(g);
3290            }
3291        }), f.count && ab("em." + C("counter"), a).each(function() {
3292            var g = ab(this),
3293                b = ab("ul" + g.next().attr("href"), a);
3294            g.bind(L("count"), function(d) {
3295                d.preventDefault(), d.stopPropagation();
3296                var c = b.children().not("." + C("label")).not("." + C("subtitle")).not("." + C("noresult")).not("." + C("noresults"));
3297                g.html(c.length);
3298            });
3299        }).trigger(L("count"));
3300    }, ab.fn.mmenu.counters.defaults = {
3301        add: !1,
3302        count: !0
3303    }, ab.fn.mmenu.useOverflowScrollingFallback = function(b) {
3304        return Z ? ("boolean" == typeof b && Z[b ? "addClass" : "removeClass"](C("no-overflowscrolling")), Z.hasClass(C("no-overflowscrolling"))) : (S = b, b);
3305    }, ab.fn.mmenu.support = {
3306        touch: function() {
3307            return "ontouchstart" in window.document;
3308        }(),
3309        overflowscrolling: function() {
3310            return "WebkitOverflowScrolling" in window.document.documentElement.style;
3311        }(),
3312        oldAndroid: function() {
3313            var b = navigator.userAgent;
3314            return b.indexOf("Android") >= 0 ? 2.4 > parseFloat(b.slice(b.indexOf("Android") + 8)) : !1;
3315        }()
3316    }, ab.fn.mmenu.debug = function(b) {
3317        "undefined" != typeof console && console.log !== void 0 && console.log("MMENU: " + b);
3318    }, ab.fn.mmenu.deprecated = function(d, c) {
3319        "undefined" != typeof console && console.warn !== void 0 && console.warn("MMENU: " + d + " is deprecated, use " + c + " instead.");
3320    };
3321    var T = 0,
3322        S = ab.fn.mmenu.support.touch && !ab.fn.mmenu.support.overflowscrolling;
3323})(jQuery);
3324(function(a) {
3325    a.browser = a.browser || jQuery.browser;
3326    a.fn.openPopup = function(b) {
3327        a.fn.openPopup.defaultSettings = {
3328            centerBrowser: 0,
3329            centerScreen: 0,
3330            height: 500,
3331            left: 0,
3332            location: 0,
3333            menubar: 0,
3334            resizable: 0,
3335            scrollbars: 0,
3336            status: 0,
3337            width: 500,
3338            windowName: null,
3339            windowURL: null,
3340            top: 0,
3341            toolbar: 0
3342        };
3343        return this.each(function() {
3344            var g, e, c, d, f;
3345            d = a.extend({}, a.fn.openPopup.defaultSettings, b || {});
3346            g = "height=" + d.height + ",width=" + d.width + ",toolbar=" + d.toolbar + ",scrollbars=" + d.scrollbars + ",status=" + d.status + ",resizable=" + d.resizable + ",location=" + d.location + ",menuBar=" + d.menubar;
3347            d.windowName = this.name || d.windowName;
3348            d.windowURL = this.href || d.windowURL;
3349            if (d.centerBrowser) {
3350                if (a.browser.msie) {
3351                    e = window.screenTop - 120 + ((document.documentElement.clientHeight + 120) / 2 - d.height / 2);
3352                    c = window.screenLeft + ((document.body.offsetWidth + 20) / 2 - d.width / 2);
3353                } else {
3354                    e = window.screenY + (window.outerHeight / 2 - d.height / 2);
3355                    c = window.screenX + (window.outerWidth / 2 - d.width / 2);
3356                }
3357                f = window.open(d.windowURL, d.windowName, g + ",left=" + c + ",top=" + e);
3358            } else {
3359                if (d.centerScreen) {
3360                    e = (screen.height - d.height) / 2;
3361                    c = (screen.width - d.width) / 2;
3362                    f = window.open(d.windowURL, d.windowName, g + ",left=" + c + ",top=" + e);
3363                } else {
3364                    f = window.open(d.windowURL, d.windowName, g + ",left=" + d.left + ",top=" + d.top);
3365                }
3366            }
3367            if (f) {
3368                f.focus();
3369            }
3370            return false;
3371        });
3372    };
3373})(jQuery);
3374(function(d) {
3375    function f(c, h) {
3376        h = h || {};
3377        var a = this,
3378            b = h.query || "> :even";
3379        d.extend(a, {
3380            $el: c,
3381            options: h,
3382            sections: [],
3383            isAccordion: h.accordion || false,
3384            db: h.persist ? jQueryCollapseStorage(c[0].id) : false
3385        });
3386        a.states = a.db ? a.db.read() : [];
3387        a.$el.find(b).each(function() {
3388            var g = new e(d(this), a);
3389            a.sections.push(g);
3390            var j = a.states[g._index()];
3391            if (j === 0) {
3392                g.$summary.removeClass("open");
3393            }
3394            if (j === 1) {
3395                g.$summary.addClass("open");
3396            }
3397            if (g.$summary.hasClass("open")) {
3398                g.open(true);
3399            } else {
3400                g.close(true);
3401            }
3402        });
3403        (function(g) {
3404            a.$el.on("click", "[data-collapse-summary]", d.proxy(a.handleClick, g));
3405        }(a));
3406    }
3407    f.prototype = {
3408        handleClick: function(b) {
3409            b.preventDefault();
3410            var a = this.sections,
3411                c = a.length;
3412            while (c--) {
3413                if (d.contains(a[c].$summary[0], b.target)) {
3414                    a[c].toggle();
3415                    break;
3416                }
3417            }
3418        },
3419        open: function(a) {
3420            if (isFinite(a)) {
3421                return this.sections[a].open();
3422            }
3423            d.each(this.sections, function() {
3424                this.open();
3425            });
3426        },
3427        close: function(a) {
3428            if (isFinite(a)) {
3429                return this.sections[a].close();
3430            }
3431            d.each(this.sections, function() {
3432                this.close();
3433            });
3434        }
3435    };
3436
3437    function e(b, a) {
3438        d.extend(this, {
3439            isOpen: false,
3440            $summary: b.attr("data-collapse-summary", "").wrapInner('<a href="#"/>'),
3441            $details: b.next(),
3442            options: a.options,
3443            parent: a
3444        });
3445    }
3446    e.prototype = {
3447        toggle: function() {
3448            if (this.isOpen) {
3449                this.close();
3450            } else {
3451                this.open();
3452            }
3453        },
3454        close: function(a) {
3455            this._changeState("close", a);
3456        },
3457        open: function(b) {
3458            var a = this;
3459            if (a.options.accordion && !b) {
3460                d.each(a.parent.sections, function() {
3461                    this.close();
3462                });
3463            }
3464            a._changeState("open", b);
3465        },
3466        _index: function() {
3467            return d.inArray(this, this.parent.sections);
3468        },
3469        _changeState: function(c, b) {
3470            var a = this;
3471            a.isOpen = c == "open";
3472            if (d.isFunction(a.options[c]) && !b) {
3473                a.options[c].apply(a.$details);
3474            } else {
3475                if (a.isOpen) {
3476                    a.$details.show();
3477                } else {
3478                    a.$details.hide();
3479                }
3480            }
3481            a.$summary.removeClass("open close").addClass(c);
3482            a.$details.attr("aria-hidden", c == "close");
3483            a.parent.$el.trigger(c, a);
3484            if (a.parent.db) {
3485                a.parent.db.write(a._index(), a.isOpen);
3486            }
3487        }
3488    };
3489    d.fn.extend({
3490        collapse: function(a, b) {
3491            var c = (b) ? d("body").find("[data-collapse]") : d(this);
3492            return c.each(function() {
3493                var j = (b) ? {} : a,
3494                    k = d(this).attr("data-collapse") || "";
3495                d.each(k.split(" "), function(g, h) {
3496                    if (h) {
3497                        j[h] = true;
3498                    }
3499                });
3500                new jQueryCollapse(d(this), j);
3501            });
3502        }
3503    });
3504    d(function() {
3505        d.fn.collapse(false, true);
3506    });
3507    jQueryCollapse = f;
3508})(window.jQuery);
3509(function(al) {
3510    var ak = "Close",
3511        aj = "BeforeAppend",
3512        ai = "MarkupParse",
3513        ah = "Open",
3514        ag = "Change",
3515        af = "mfp",
3516        ae = "." + af,
3517        ad = "mfp-ready",
3518        ac = "mfp-removing",
3519        ab = "mfp-prevent-close",
3520        aa, Z = function() {},
3521        Y = !!window.jQuery,
3522        X, W = al(window),
3523        U, S, Q, O, M, K = function(d, c) {
3524            aa.ev.on(af + d + ae, c);
3525        },
3526        J = function(a, k, j, h) {
3527            var g = document.createElement("div");
3528            return g.className = "mfp-" + a, j && (g.innerHTML = j), h ? k && k.appendChild(g) : (g = al(g), k && g.appendTo(k)), g;
3529        },
3530        I = function(a, d) {
3531            aa.ev.triggerHandler(af + a, d), aa.st.callbacks && (a = a.charAt(0).toLowerCase() + a.slice(1), aa.st.callbacks[a] && aa.st.callbacks[a].apply(aa, al.isArray(d) ? d : [d]));
3532        },
3533        H = function() {
3534            (aa.st.focus ? aa.content.find(aa.st.focus).eq(0) : aa.wrap).focus();
3535        },
3536        G = function(a) {
3537            if (a !== M || !aa.currTemplate.closeBtn) {
3538                aa.currTemplate.closeBtn = al(aa.st.closeMarkup.replace("%title%", aa.st.tClose)), M = a;
3539            }
3540            return aa.currTemplate.closeBtn;
3541        },
3542        V = function() {
3543            al.magnificPopup.instance || (aa = new Z, aa.init(), al.magnificPopup.instance = aa);
3544        },
3545        T = function(a) {
3546            if (al(a).hasClass(ab)) {
3547                return;
3548            }
3549            var f = aa.st.closeOnContentClick,
3550                e = aa.st.closeOnBgClick;
3551            if (f && e) {
3552                return !0;
3553            }
3554            if (!aa.content || al(a).hasClass("mfp-close") || aa.preloader && a === aa.preloader[0]) {
3555                return !0;
3556            }
3557            if (a !== aa.content[0] && !al.contains(aa.content[0], a)) {
3558                if (e) {
3559                    return !0;
3560                }
3561            } else {
3562                if (f) {
3563                    return !0;
3564                }
3565            }
3566            return !1;
3567        };
3568    Z.prototype = {
3569        constructor: Z,
3570        init: function() {
3571            var a = navigator.appVersion;
3572            aa.isIE7 = a.indexOf("MSIE 7.") !== -1, aa.isIE8 = a.indexOf("MSIE 8.") !== -1, aa.isLowIE = aa.isIE7 || aa.isIE8, aa.isAndroid = /android/gi.test(a), aa.isIOS = /iphone|ipad|ipod/gi.test(a), aa.probablyMobile = aa.isAndroid || aa.isIOS || /(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent), U = al(document.body), S = al(document), aa.popupsCache = {};
3573        },
3574        open: function(u) {
3575            var r;
3576            if (u.isObj === !1) {
3577                aa.items = u.items.toArray(), aa.index = 0;
3578                var q = u.items,
3579                    p;
3580                for (r = 0; r < q.length; r++) {
3581                    p = q[r], p.parsed && (p = p.el[0]);
3582                    if (p === u.el[0]) {
3583                        aa.index = r;
3584                        break;
3585                    }
3586                }
3587            } else {
3588                aa.items = al.isArray(u.items) ? u.items : [u.items], aa.index = u.index || 0;
3589            }
3590            if (aa.isOpen) {
3591                aa.updateItemHTML();
3592                return;
3593            }
3594            aa.types = [], O = "", aa.ev = u.mainEl || S, u.key ? (aa.popupsCache[u.key] || (aa.popupsCache[u.key] = {}), aa.currTemplate = aa.popupsCache[u.key]) : aa.currTemplate = {}, aa.st = al.extend(!0, {}, al.magnificPopup.defaults, u), aa.fixedContentPos = aa.st.fixedContentPos === "auto" ? !aa.probablyMobile : aa.st.fixedContentPos, aa.bgOverlay || (aa.bgOverlay = J("bg").on("click" + ae, function() {
3595                aa.close();
3596            }), aa.wrap = J("wrap").attr("tabindex", -1).on("click" + ae, function(b) {
3597                T(b.target) && aa.close();
3598            }), aa.container = J("container", aa.wrap)), aa.contentContainer = J("content"), aa.st.preloader && (aa.preloader = J("preloader", aa.container, aa.st.tLoading));
3599            var l = al.magnificPopup.modules;
3600            for (r = 0; r < l.length; r++) {
3601                var h = l[r];
3602                h = h.charAt(0).toUpperCase() + h.slice(1), aa["init" + h].call(aa);
3603            }
3604            I("BeforeOpen"), aa.st.closeBtnInside ? (K(ai, function(g, f, k, j) {
3605                k.close_replaceWith = G(j.type);
3606            }), O += " mfp-close-btn-in") : aa.wrap.append(G()), aa.st.alignTop && (O += " mfp-align-top"), aa.fixedContentPos ? aa.wrap.css({
3607                overflow: aa.st.overflowY,
3608                overflowX: "hidden",
3609                overflowY: aa.st.overflowY
3610            }) : aa.wrap.css({
3611                top: W.scrollTop(),
3612                position: "absolute"
3613            }), (aa.st.fixedBgPos === !1 || aa.st.fixedBgPos === "auto" && !aa.fixedContentPos) && aa.bgOverlay.css({
3614                height: S.height(),
3615                position: "absolute"
3616            }), S.on("keyup" + ae, function(b) {
3617                b.keyCode === 27 && aa.close();
3618            }), W.on("resize" + ae, function() {
3619                aa.updateSize();
3620            }), aa.st.closeOnContentClick || (O += " mfp-auto-cursor"), O && aa.wrap.addClass(O);
3621            var e = aa.wH = W.height(),
3622                d = {};
3623            if (aa.fixedContentPos) {
3624                var a = aa._getScrollbarSize();
3625                a && (d.paddingRight = a);
3626            }
3627            aa.fixedContentPos && (aa.isIE7 ? al("body, html").css("overflow", "hidden") : d.overflow = "hidden");
3628            var v = aa.st.mainClass;
3629            aa.isIE7 && (v += " mfp-ie7"), v && aa._addClassToMFP(v), aa.updateItemHTML(), I("BuildControls"), U.css(d), aa.bgOverlay.add(aa.wrap).prependTo(document.body), aa._lastFocusedEl = document.activeElement, setTimeout(function() {
3630                aa.content ? (aa._addClassToMFP(ad), H()) : aa.bgOverlay.addClass(ad), S.on("focusin" + ae, function(c) {
3631                    if (c.target !== aa.wrap[0] && !al.contains(aa.wrap[0], c.target)) {
3632                        return H(), !1;
3633                    }
3634                });
3635            }, 16), aa.isOpen = !0, aa.updateSize(e), I(ah);
3636        },
3637        close: function() {
3638            if (!aa.isOpen) {
3639                return;
3640            }
3641            aa.isOpen = !1, aa.st.removalDelay && !aa.isLowIE ? (aa._addClassToMFP(ac), setTimeout(function() {
3642                aa._close();
3643            }, aa.st.removalDelay)) : aa._close();
3644        },
3645        _close: function() {
3646            I(ak);
3647            var b = ac + " " + ad + " ";
3648            aa.bgOverlay.detach(), aa.wrap.detach(), aa.container.empty(), aa.st.mainClass && (b += aa.st.mainClass + " "), aa._removeClassFromMFP(b);
3649            if (aa.fixedContentPos) {
3650                var a = {
3651                    paddingRight: 0
3652                };
3653                aa.isIE7 ? al("body, html").css("overflow", "auto") : a.overflow = "visible", U.css(a);
3654            }
3655            S.off("keyup" + ae + " focusin" + ae), aa.ev.off(ae), aa.wrap.attr("class", "mfp-wrap").removeAttr("style"), aa.bgOverlay.attr("class", "mfp-bg"), aa.container.attr("class", "mfp-container"), (!aa.st.closeBtnInside || aa.currTemplate[aa.currItem.type] === !0) && aa.currTemplate.closeBtn && aa.currTemplate.closeBtn.detach(), aa._lastFocusedEl && al(aa._lastFocusedEl).focus(), aa.currItem = null, aa.content = null, aa.currTemplate = null, aa.prevHeight = 0;
3656        },
3657        updateSize: function(e) {
3658            if (aa.isIOS) {
3659                var d = document.documentElement.clientWidth / window.innerWidth,
3660                    f = window.innerHeight * d;
3661                aa.wrap.css("height", f), aa.wH = f;
3662            } else {
3663                aa.wH = e || W.height();
3664            }
3665            I("Resize");
3666        },
3667        updateItemHTML: function() {
3668            var a = aa.items[aa.index];
3669            aa.contentContainer.detach(), aa.content && aa.content.detach(), a.parsed || (a = aa.parseEl(aa.index));
3670            var h = a.type;
3671            I("BeforeChange", [aa.currItem ? aa.currItem.type : "", h]), aa.currItem = a;
3672            if (!aa.currTemplate[h]) {
3673                var g = aa.st[h] ? aa.st[h].markup : !1;
3674                I("FirstMarkupParse", g), g ? aa.currTemplate[h] = al(g) : aa.currTemplate[h] = !0;
3675            }
3676            Q && Q !== a.type && aa.container.removeClass("mfp-" + Q + "-holder");
3677            var f = aa["get" + h.charAt(0).toUpperCase() + h.slice(1)](a, aa.currTemplate[h]);
3678            aa.appendContent(f, h), a.preloaded = !0, I(ag, a), Q = a.type, aa.container.prepend(aa.contentContainer), I("AfterChange");
3679        },
3680        appendContent: function(d, c) {
3681            aa.content = d, d ? aa.st.closeBtnInside && aa.currTemplate[c] === !0 ? aa.content.find(".mfp-close").length || aa.content.append(G()) : aa.content = d : aa.content = "", I(aj), aa.container.addClass("mfp-" + c + "-holder"), aa.contentContainer.append(aa.content);
3682        },
3683        parseEl: function(a) {
3684            var k = aa.items[a],
3685                j = k.type;
3686            k.tagName ? k = {
3687                el: al(k)
3688            } : k = {
3689                data: k,
3690                src: k.src
3691            };
3692            if (k.el) {
3693                var h = aa.types;
3694                for (var g = 0; g < h.length; g++) {
3695                    if (k.el.hasClass("mfp-" + h[g])) {
3696                        j = h[g];
3697                        break;
3698                    }
3699                }
3700                k.src = k.el.attr("data-mfp-src"), k.src || (k.src = k.el.attr("href"));
3701            }
3702            return k
3702.type = j || aa.st.type || "inline", k.index = a, k.parsed = !0, aa.items[a] = k, I("ElementParse", k), aa.items[a];
3703        },
3704        addGroup: function(f, e) {
3705            var h = function(a) {
3706                a.mfpEl = this, aa._openClick(a, f, e);
3707            };
3708            e || (e = {});
3709            var g = "click.magnificPopup";
3710            e.mainEl = f, e.items ? (e.isObj = !0, f.off(g).on(g, h)) : (e.isObj = !1, e.delegate ? f.off(g).on(g, e.delegate, h) : (e.items = f, f.off(g).on(g, h)));
3711        },
3712        _openClick: function(a, k, j) {
3713            var h = j.midClick !== undefined ? j.midClick : al.magnificPopup.defaults.midClick;
3714            if (h || a.which !== 2) {
3715                var g = j.disableOn !== undefined ? j.disableOn : al.magnificPopup.defaults.disableOn;
3716                if (g) {
3717                    if (al.isFunction(g)) {
3718                        if (!g.call(aa)) {
3719                            return !0;
3720                        }
3721                    } else {
3722                        if (W.width() < g) {
3723                            return !0;
3724                        }
3725                    }
3726                }
3727                a.type && (a.preventDefault(), aa.isOpen && a.stopPropagation()), j.el = al(a.mfpEl), j.delegate && (j.items = k.find(j.delegate)), aa.open(j);
3728            }
3729        },
3730        updateStatus: function(e, d) {
3731            if (aa.preloader) {
3732                X !== e && aa.container.removeClass("mfp-s-" + X), !d && e === "loading" && (d = aa.st.tLoading);
3733                var f = {
3734                    status: e,
3735                    text: d
3736                };
3737                I("UpdateStatus", f), e = f.status, d = f.text, aa.preloader.html(d), aa.preloader.find("a").click(function(b) {
3738                    b.stopImmediatePropagation();
3739                }), aa.container.addClass("mfp-s-" + e), X = e;
3740            }
3741        },
3742        _addClassToMFP: function(b) {
3743            aa.bgOverlay.addClass(b), aa.wrap.addClass(b);
3744        },
3745        _removeClassFromMFP: function(b) {
3746            this.bgOverlay.removeClass(b), aa.wrap.removeClass(b);
3747        },
3748        _hasScrollBar: function(b) {
3749            return document.body.clientHeight > (b || W.height()) ? !0 : !1;
3750        },
3751        _parseMarkup: function(a, h, g) {
3752            var d;
3753            g.data && (h = al.extend(g.data, h)), I(ai, [a, h, g]), al.each(h, function(b, k) {
3754                if (k === undefined || k === !1) {
3755                    return !0;
3756                }
3757                d = b.split("_");
3758                if (d.length > 1) {
3759                    var j = a.find(ae + "-" + d[0]);
3760                    if (j.length > 0) {
3761                        var f = d[1];
3762                        f === "replaceWith" ? j[0] !== k[0] && j.replaceWith(k) : f === "img" ? j.is("img") ? j.attr("src", k) : j.replaceWith('<img src="' + k + '" class="' + j.attr("class") + '" />') : j.attr(d[1], k);
3763                    }
3764                } else {
3765                    a.find(ae + "-" + b).html(k);
3766                }
3767            });
3768        },
3769        _getScrollbarSize: function() {
3770            if (aa.scrollbarSize === undefined) {
3771                var b = document.createElement("div");
3772                b.id = "mfp-sbm", b.style.cssText = "width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;", document.body.appendChild(b), aa.scrollbarSize = b.offsetWidth - b.clientWidth, document.body.removeChild(b);
3773            }
3774            return aa.scrollbarSize;
3775        }
3776    }, al.magnificPopup = {
3777        instance: null,
3778        proto: Z.prototype,
3779        modules: [],
3780        open: function(d, c) {
3781            return V(), d || (d = {}), d.isObj = !0, d.index = c || 0, this.instance.open(d);
3782        },
3783        close: function() {
3784            return al.magnificPopup.instance.close();
3785        },
3786        registerModule: function(a, d) {
3787            d.options && (al.magnificPopup.defaults[a] = d.options), al.extend(this.proto, d.proto), this.modules.push(a);
3788        },
3789        defaults: {
3790            disableOn: 0,
3791            key: null,
3792            midClick: !1,
3793            mainClass: "",
3794            preloader: !0,
3795            focus: "",
3796            closeOnContentClick: !1,
3797            closeOnBgClick: !0,
3798            closeBtnInside: !0,
3799            alignTop: !1,
3800            removalDelay: 0,
3801            fixedContentPos: "auto",
3802            fixedBgPos: "auto",
3803            overflowY: "auto",
3804            closeMarkup: '<button title="%title%" type="button" class="mfp-close">&times;</button>',
3805            tClose: "Close (Esc)",
3806            tLoading: "Loading..."
3807        }
3808    }, al.fn.magnificPopup = function(a) {
3809        V();
3810        var k = al(this);
3811        if (typeof a == "string") {
3812            if (a === "open") {
3813                var j, h = Y ? k.data("magnificPopup") : k[0].magnificPopup,
3814                    g = parseInt(arguments[1], 10) || 0;
3815                h.items ? j = h.items[g] : (j = k, h.delegate && (j = j.find(h.delegate)), j = j.eq(g)), aa._openClick({
3816                    mfpEl: j
3817                }, k, h);
3818            } else {
3819                aa.isOpen && aa[a].apply(aa, Array.prototype.slice.call(arguments, 1));
3820            }
3821        } else {
3822            Y ? k.data("magnificPopup", a) : k[0].magnificPopup = a, aa.addGroup(k, a);
3823        }
3824        return k;
3825    };
3826    var R, P = function(a) {
3827        if (a.data && a.data.title !== undefined) {
3828            return a.data.title;
3829        }
3830        var d = aa.st.image.titleSrc;
3831        if (d) {
3832            if (al.isFunction(d)) {
3833                return d.call(aa, a);
3834            }
3835            if (a.el) {
3836                return a.el.attr(d) || "";
3837            }
3838        }
3839        return "";
3840    };
3841    al.magnificPopup.registerModule("image", {
3842        options: {
3843            markup: '<div class="mfp-figure"><div class="mfp-close"></div><div class="mfp-img"></div><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>',
3844            cursor: "mfp-zoom-out-cur",
3845            titleSrc: "title",
3846            verticalFit: !0,
3847            tError: '<a href="%url%">The image</a> could not be loaded.'
3848        },
3849        proto: {
3850            initImage: function() {
3851                var b = aa.st.image,
3852                    d = ".image";
3853                aa.types.push("image"), K(ah + d, function() {
3854                    aa.currItem.type === "image" && b.cursor && U.addClass(b.cursor);
3855                }), K(ak + d, function() {
3856                    b.cursor && U.removeClass(b.cursor), W.off("resize" + ae);
3857                }), K("Resize" + d, aa.resizeImage), aa.isLowIE && K("AfterChange", aa.resizeImage);
3858            },
3859            resizeImage: function() {
3860                var d = aa.currItem;
3861                if (!d.img) {
3862                    return;
3863                }
3864                if (aa.st.image.verticalFit) {
3865                    var c = 0;
3866                    aa.isLowIE && (c = parseInt(d.img.css("padding-top"), 10) + parseInt(d.img.css("padding-bottom"), 10)), d.img.css("max-height", aa.wH - c);
3867                }
3868            },
3869            _onImageHasSize: function(b) {
3870                b.img && (b.hasSize = !0, R && clearInterval(R), b.isCheckingImgSize = !1, I("ImageHasSize", b), b.imgHidden && (aa.content && aa.content.removeClass("mfp-loading"), b.imgHidden = !1));
3871            },
3872            findImageSize: function(f) {
3873                var e = 0,
3874                    h = f.img[0],
3875                    g = function(a) {
3876                        R && clearInterval(R), R = setInterval(function() {
3877                            if (h.naturalWidth > 0) {
3878                                aa._onImageHasSize(f);
3879                                return;
3880                            }
3881                            e > 200 && clearInterval(R), e++, e === 3 ? g(10) : e === 40 ? g(50) : e === 100 && g(500);
3882                        }, a);
3883                    };
3884                g(1);
3885            },
3886            getImage: function(a, p) {
3887                var o = 0,
3888                    n = function() {
3889                        a && (a.img[0].complete ? (a.img.off(".mfploader"), a === aa.currItem && (aa._onImageHasSize(a), aa.updateStatus("ready")), a.hasSize = !0, a.loaded = !0) : (o++, o < 200 ? setTimeout(n, 100) : m()));
3890                    },
3891                    m = function() {
3892                        a && (a.img.off(".mfploader"), a === aa.currItem && (aa._onImageHasSize(a), aa.updateStatus("error", l.tError.replace("%url%", a.src))), a.hasSize = !0, a.loaded = !0, a.loadError = !0);
3893                    },
3894                    l = aa.st.image,
3895                    k = p.find(".mfp-img");
3896                if (k.length) {
3897                    var j = new Image;
3898                    j.className = "mfp-img", a.img = al(j).on("load.mfploader", n).on("error.mfploader", m), j.src = a.src, k.is("img") && (a.img = a.img.clone());
3899                }
3900                return aa._parseMarkup(p, {
3901                    title: P(a),
3902                    img_replaceWith: a.img
3903                }, a), aa.resizeImage(), a.hasSize ? (R && clearInterval(R), a.loadError ? (p.addClass("mfp-loading"), aa.updateStatus("error", l.tError.replace("%url%", a.src))) : (p.removeClass("mfp-loading"), aa.updateStatus("ready")), p) : (aa.updateStatus("loading"), a.loading = !0, a.hasSize || (a.imgHidden = !0, p.addClass("mfp-loading"), aa.findImageSize(a)), p);
3904            }
3905        }
3906    });
3907    var N = function(d) {
3908            var c = aa.items.length;
3909            return d > c - 1 ? d - c : d < 0 ? c + d : d;
3910        },
3911        L = function(e, d, f) {
3912            return e.replace("%curr%", d + 1).replace("%total%", f);
3913        };
3914    al.magnificPopup.registerModule("gallery", {
3915            options: {
3916                enabled: !1,
3917                arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',
3918                preload: [0, 2],
3919                navigateByImgClick: !0,
3920                arrows: !0,
3921                tPrev: "Previous (Left arrow key)",
3922                tNext: "Next (Right arrow key)",
3923                tCounter: "%curr% of %total%"
3924            },
3925            proto: {
3926                initGallery: function() {
3927                    var d = aa.st.gallery,
3928                        b = ".mfp-gallery",
3929                        a = Boolean(al.fn.mfpFastClick);
3930                    aa.direction = !0;
3931                    if (!d || !d.enabled) {
3932                        return !1;
3933                    }
3934                    O += " mfp-gallery", K(ah + b, function() {
3935                        d.navigateByImgClick && aa.wrap.on("click" + b, ".mfp-img", function() {
3936                            if (aa.items.length > 1) {
3937                                return aa.next(), !1;
3938                            }
3939                        }), S.on("keydown" + b, function(c) {
3940                            c.keyCode === 37 ? aa.prev() : c.keyCode === 39 && aa.next();
3941                        });
3942                    }
3942), K("UpdateStatus" + b, function(e, c) {
3943                        c.text && (c.text = L(c.text, aa.currItem.index, aa.items.length));
3944                    }), K(ai + b, function(g, c, k, j) {
3945                        var h = aa.items.length;
3946                        k.counter = h > 1 ? L(d.tCounter, j.index, h) : "";
3947                    }), K("BuildControls" + b, function() {
3948                        if (aa.items.length > 1 && d.arrows && !aa.arrowLeft) {
3949                            var c = d.arrowMarkup,
3950                                j = aa.arrowLeft = al(c.replace("%title%", d.tPrev).replace("%dir%", "left")).addClass(ab),
3951                                h = aa.arrowRight = al(c.replace("%title%", d.tNext).replace("%dir%", "right")).addClass(ab),
3952                                g = a ? "mfpFastClick" : "click";
3953                            j[g](function() {
3954                                aa.prev();
3955                            }), h[g](function() {
3956                                aa.next();
3957                            }), aa.isIE7 && (J("b", j[0], !1, !0), J("a", j[0], !1, !0), J("b", h[0], !1, !0), J("a", h[0], !1, !0)), aa.container.append(j.add(h));
3958                        }
3959                    }), K(ag + b, function() {
3960                        aa._preloadTimeout && clearTimeout(aa._preloadTimeout), aa._preloadTimeout = setTimeout(function() {
3961                            aa.preloadNearbyImages(), aa._preloadTimeout = null;
3962                        }, 16);
3963                    }), K(ak + b, function() {
3964                        S.off(b), aa.wrap.off("click" + b), aa.arrowLeft && a && aa.arrowLeft.add(aa.arrowRight).destroyMfpFastClick(), aa.arrowRight = aa.arrowLeft = null;
3965                    });
3966                },
3967                next: function() {
3968                    aa.direction = !0, aa.index = N(aa.index + 1), aa.updateItemHTML();
3969                },
3970                prev: function() {
3971                    aa.direction = !1, aa.index = N(aa.index - 1), aa.updateItemHTML();
3972                },
3973                goTo: function(b) {
3974                    aa.direction = b >= aa.index, aa.index = b, aa.updateItemHTML();
3975                },
3976                preloadNearbyImages: function() {
3977                    var f = aa.st.gallery.preload,
3978                        e = Math.min(f[0], aa.items.length),
3979                        h = Math.min(f[1], aa.items.length),
3980                        g;
3981                    for (g = 1; g <= (aa.direction ? h : e); g++) {
3982                        aa._preloadItem(aa.index + g);
3983                    }
3984                    for (g = 1; g <= (aa.direction ? e : h); g++) {
3985                        aa._preloadItem(aa.index - g);
3986                    }
3987                },
3988                _preloadItem: function(a) {
3989                    a = N(a);
3990                    if (aa.items[a].preloaded) {
3991                        return;
3992                    }
3993                    var d = aa.items[a];
3994                    d.parsed || (d = aa.parseEl(a)), I("LazyLoad", d), d.type === "image" && (d.img = al('<img class="mfp-img" />').on("load.mfploader", function() {
3995                        d.hasSize = !0;
3996                    }).on("error.mfploader", function() {
3997                        d.hasSize = !0, d.loadError = !0;
3998                    }).attr("src", d.src)), d.preloaded = !0;
3999                }
4000            }
4001        }),
4002        function() {
4003            var a = 1000,
4004                k = "ontouchstart" in window,
4005                j = function() {
4006                    W.off("touchmove" + g + " touchend" + g);
4007                },
4008                h = "mfpFastClick",
4009                g = "." + h;
4010            al.fn.mfpFastClick = function(b) {
4011                return al(this).each(function() {
4012                    var q = al(this),
4013                        p;
4014                    if (k) {
4015                        var o, f, e, d, c, r;
4016                        q.on("touchstart" + g, function(l) {
4017                            d = !1, r = 1, c = l.originalEvent ? l.originalEvent.touches[0] : l.touches[0], f = c.clientX, e = c.clientY, W.on("touchmove" + g, function(m) {
4018                                c = m.originalEvent ? m.originalEvent.touches : m.touches, r = c.length, c = c[0];
4019                                if (Math.abs(c.clientX - f) > 10 || Math.abs(c.clientY - e) > 10) {
4020                                    d = !0, j();
4021                                }
4022                            }).on("touchend" + g, function(m) {
4023                                j();
4024                                if (d || r > 1) {
4025                                    return;
4026                                }
4027                                p = !0, m.preventDefault(), clearTimeout(o), o = setTimeout(function() {
4028                                    p = !1;
4029                                }, a), b();
4030                            });
4031                        });
4032                    }
4033                    q.on("click" + g, function() {
4034                        p || b();
4035                    });
4036                });
4037            }, al.fn.destroyMfpFastClick = function() {
4038                al(this).off("touchstart" + g + " click" + g), k && W.off("touchmove" + g + " touchend" + g);
4039            };
4040        }();
4041})(window.jQuery || window.Zepto);

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.