(function (e) {
    function r(a, d) {
        var c = e(a),
            g = [];
        c.css("position") == "static" && c.css("position", "relative");
        c.css({
            overflow: "hidden",
            width: d.width,
            height: d.height
        });
        var f;
        c.children("img, a").each(function () {
            var n, o = e(this),
                p;
            n = o.is("a") ? o.children("img:first") : o;
            f = {
                elem: o,
                image: n,
                title: n.attr("title")
            };
            p = n.next();
            if (p.length > 0 && !p.is("a") && !p.is("img")) {
                f.caption = p.html();
                p.css("display", "none")
            } else f.caption = n.attr("title");
            g.push(f);
            n.css({
                border: "none"
            });
            o.css({
                outline: 0,
                display: "none",
                position: "absolute"
            })
        });
        c.data("ibslider:slides", g);
        c.append(e('<div class="ibslider-caption"></div>').css({
            display: "none"
        }));
        e('<div class="ibslider-control ibslider-prev">Back</div>').css("display", "none").click(function () {
            z(c)
        }).appendTo(c);
        e('<div class="ibslider-control ibslider-next">Next</div>').css("display", "none").click(function () {
            w(c)
        }).appendTo(c);
        for (var h = e('<div class="ibslider-selectors"></div>').css("display", "none").appendTo(c), i, m = 0; m < g.length; m++) {
            i = e('<div class="ibslider-selector"></div>').html(m).appendTo(h);
            i.data("ibslider:slide_number", m).click(function () {
                l(c, e(this).data("ibslider:slide_number"))
            })
        }
        c.data("ibslider:selector", h);
        var j = false;
        c.hover(function (n) {
            if (!(n.originalTarget != c && (e(n.originalTarget).hasClass("ibslider_light_right") || e(n.originalTarget).hasClass("ibslider_light_left")))) {
                if (d.pauseOnHover) {
                    q(c).paused = true;
                    clearTimeout(c.data("ibSlider:timer"))
                }
                if (d.showCaption == "hover") {
                    j = true;
                    d.showCaption = true;
                    J(c)
                }
                d.showSelectors == "hover" && K(c);
                d.showNavigation == "hover" && L(c)
            }
        }, function () {
            if (d.pauseOnHover) {
                q(c).paused =
                false;
                E(c)
            }
            if (j) {
                d.showCaption = "hover";
                j = false;
                M(c)
            }
            d.showSelectors == "hover" && N(c);
            d.showNavigation == "hover" && O(c)
        });
        l(c, 0, "fade");
        Q(c)
    }
    function z(a, d) {
        var c = a.data("ibslider:current-slide"),
            g = a.data("ibslider:slides"),
            f;
        if (d) f = d.transition;
        l(a, c > 0 ? c - 1 : g.length - 1, f)
    }
    function w(a, d) {
        var c = a.data("ibslider:current-slide"),
            g = a.data("ibslider:slides"),
            f;
        if (d) f = d.transition;
        l(a, c < g.length - 1 ? c + 1 : 0, f)
    }
    function l(a, d, c) {
        if (a.data("ibslider:current-slide") != d) if (!a.data("ibslider_showing")) if (!C(a)) {
            clearTimeout(a.data("ibSlider:timer"));
            C(a, true);
            M(a);
            a.data("ibslider_showing", true);
            if (!c) {
                c = q(a);
                var g = a.data("ibslider:transitions");
                if (!g) {
                    if (c.transitions && c.transitions != "all") g = c.transitions.replace(/ /g, "").split(",");
                    else {
                        g = [];
                        for (f in e.ibSlider.transitions) g.push(f)
                    }
                    a.data("ibslider:transitions", g)
                }
                if (c.randomTransitions) c = g[B(g.length)];
                else {
                    var f = a.data("ibslider:last_transition_index");
                    if (f == undefined || ++f >= g.length) f = 0;
                    a.data("ibslider:last_transition_index", f);
                    c = g[f]
                }
            }
            c || (c = "fade");
            (0, e.ibSlider.transitions[c])(a, d)
        }
    }

    function k(a, d) {
        var c = a.data("ibslider:slides");
        a.data("ibslider:current-slide") != undefined && c[a.data("ibslider:current-slide")].elem.hide();
        a.css("background", "url(" + e(c[d].image).attr("src") + ") no-repeat");
        a.data("ibslider:current-slide", d);
        c[d].elem.css({
            left: 0,
            top: 0,
            display: "block"
        });
        c[d].image.css({
            display: "block"
        });
        e(".ibslider_block", a).css("display", "none");
        a.data("ibslider_showing", false);
        c = a.data("ibslider:selector");
        e(".ibslider-current", c).removeClass("ibslider-current");
        e(c[0].childNodes[d]).addClass("ibslider-current");
        C(a, false);
        J(a);
        E(a)
    }
    function C(a, d) {
        if (d == undefined) return a.data("ibslider:inTransition");
        a.data("ibslider:inTransition", d)
    }
    function E(a) {
        var d = q(a);
        if (d.autoAdvance && !d.paused) {
            d = setTimeout(function () {
                w(a)
            }, d.delay);
            a.data("ibSlider:timer", d)
        }
    }
    function Q(a) {
        var d = q(a);
        d.showSelectors == true ? K(a) : N(a);
        d.showNavigation == true ? L(a) : O(a)
    }
    function M(a) {
        e(".ibslider-caption", a).fadeOut(300)
    }
    function J(a) {
        if (q(a).showCaption == true) if (!C(a)) {
            var d = a.data("ibslider:current-slide");
            d = a.data("ibslider:slides")[d].caption;
            d != "" && e(".ibslider-caption", a).html(d).fadeIn()
        }
    }
    function N(a) {
        e(".ibslider-selectors", a).fadeOut(300)
    }
    function K(a) {
        e(".ibslider-selectors", a).fadeIn()
    }
    function O(a) {
        e(".ibslider-prev, .ibslider-next", a).fadeOut(300)
    }
    function L(a) {
        e(".ibslider-prev, .ibslider-next", a).fadeIn(300)
    }
    function P(a, d) {
        var c = e(a.elem),
            g = c.data("ibslider:blocks");
        if (a.state == 0) {
            a.start = 0;
            a.end = 1;
            a.skew = 50;
            a.width = c.width();
            g.css("display", "block");
            d == "right" && g.css("left", "")
        }
        for (var f = (a.width + a.skew) * a.pos, h = Math.min(f, a.skew) / g.length, i = 0; i < g.length; i++) {
            e(g[i]).css(d, f + "px");
            f -= h
        }
        a.state == 1 && k(c, c.data("ibslider:showing"))
    }
    function B(a) {
        return Math.floor(Math.random() * a)
    }
    function q(a) {
        return a.data("ibSlider:options")
    }
    function A(a) {
        return a == "t" || a == "b"
    }
    function s(a, d) {
        var c = a.data("ibslider:slides");
        return e(c[d].image).attr("src")
    }
    function H(a, d, c) {
        return v(a, 1, c, {
            background: "url(" + s(a, d) + ") no-repeat",
            left: 0,
            width: a.width(),
            top: 0,
            height: a.height(),
            clip: "rect(0 0 0 0)",
            display: "block"
        })
    }
    function v(a, d, c, g) {
        d || (d = 1);
        c || (c = 1);
        g || (g = {});
        var f = c * d,
            h = Math.floor(a.width() / d),
            i = a.height() / c,
            m = e(".ibslider_block", a).slice(0, f),
            j = a.width(),
            n = a.height();
        if (m.length < f) {
            for (var o = 0; o <= f - m.length; o++) e('<div class="ibslider_block"></div>').css({
                left: "10px",
                width: "10px",
                position: "absolute",
                backgroundRepeat: "no-repeat"
            }).appendTo(a);
            m = e(".ibslider_block", a).slice(0, f)
        }
        f = [];
        var p = [];
        for (y = o = 0; y < c; y++) {
            p.push(Math.floor(o));
            o += i;
            if (y == c - 1) o = n;
            f.push(Math.floor(o - p[y]))
        }
        o = 0;
        var t;
        i = h;
        for (x = 0; x < d; x++) {
            if (x == d - 1) i = a.width() - h * x;
            for (y = 0; y < c; y++) {
                n = h * x;
                t = p[y];
                m[o].slider_x = x;
                m[o].slider_y = y;
                e(m[o]).css({
                    width: i,
                    height: f[y],
                    top: t,
                    left: n,
                    display: "none",
                    opacity: 1,
                    backgroundPosition: "-" + n + "px -" + t + "px",
                    clip: "rect(0px " + j + "px " + a.height() + "px 0px)"
                });
                o++
            }
        }
        m.css(g);
        return m
    }
    function F() {
        if (!I) {
            var a = e("script[src$=jawdropper_slider.js]").attr("src");
            if (a) a = a.substring(0, a.lastIndexOf("jawdropper_slider.js"));
            else if (a = e("script[src$=jawdropper_slider.min.js]").attr("src")) a = a.substring(0, a.lastIndexOf("jawdropper_slider.min.js"));
            I = a || ""
        }
        return I
    }
    e.ibSlider = function (a, d) {
        e.extend({}, e.ibSlider.defaults, d);
        return window
    };
    e.ibSlider.defaults = {
        autoAdvance: true,
        delay: 2E3,
        transitionDuration: 1E3,
        transitions: "all",
        randomTransitions: false,
        pauseOnHover: true,
        showCaption: "hover",
        showSelectors: "hover",
        showNavigation: "hover",
        width: 600,
        height: 300
    };
    var I = "";
    e.fn.ibSlider = function (a) {
        var d = e.extend({}, e.ibSlider.defaults, a);
        return this.each(function () {
            e(this).data("ibSlider:options", d);
            r(this, d)
        })
    };
    e.fn.ibSliderPrev = function (a) {
        e.extend({}, e.ibSlider.defaults, a);
        return this.each(function () {
            z(e(this), a)
        })
    };
    e.fn.ibSliderNext = function (a) {
        e.extend({}, e.ibSlider.defaults, a);
        return this.each(function () {
            w(e(this), a)
        })
    };
    e.fn.ibSliderStop = function (a) {
        e.extend({}, e.ibSlider.defaults, a);
        return this.each(function () {
            var d = e(this);
            q(d).autoAdvance = false;
            clearTimeout(d.data("ibSlider:timer"))
        })
    };
    e.fn.ibSliderPlay = function (a) {
        e.extend({}, e.ibSlider.defaults, a);
        return this.each(function () {
            var d = e(this);
            q(d).autoAdvance = true;
            q(d).paused = false;
            E(d)
        })
    };
    e.ibSlider.transitions = {
        blinds: function (a, d, c) {
            function g() {
                j++;
                j == h && k(a, d)
            }
            var f, h = 10,
                i = ["l", "r", "t", "b"];
            c || (c = i[B(4)]);
            i = A(c) ? 1 : h;
            var m = A(c) ? h : 1;
            f = v(a, i, m, {
                backgroundImage: "url(" + s(a, d) + ")"
            });
            var j = 0,
                n = c == "l" || c == "r" ? "width" : "height";
            if (c == "r" || c == "b") f = f.toArray().reverse();
            var o = q(a).transitionDuration;
            e.each(f, function (p, t) {
                var u = e(t),
                    D = {};
                D[n] = u[n]();
                u.css("display", "block").css(n, 0);
                setTimeout(function () {
                    u.animate(D, o * 0.75, g)
                }, p * o / f.length * 0.75)
            })
        },
        blocksDiagonalIn: function (a, d) {
            function c() {
                h++;
                h == f && k(a, d)
            }
            var g, f = 32;
            g = v(a, 8, 4, {
                backgroundImage: "url(" + s(a, d) + ")",
                opacity: 0,
                display: "block"
            });
            var h = 0,
                i = q(a).transitionDuration;
            e.each(g, function (m, j) {
                var n = e(j),
                    o = n.css("left"),
                    p = n.css("top");
                n.css({
                    left: n.height() * 1.5 + parseInt(o),
                    top: n.width() * 1.5 + parseInt(p)
                });
                setTimeout(function () {
                    n.animate({
                        left: o,
                        top: p,
                        opacity: 1
                    }, i * 0.5, c)
                }, (j.slider_x + j.slider_y) * i / 24)
            })
        },
        clock: function (a, d) {
            a = e(a);
            var c;
            c = Math.floor(a.height() / 5 + 0.5);
            c = H(a, d, c);
            a.data("ibslider:blocks", c);
            a.data("ibslider:showing", d);
            a.attr("ibslider:clock", 0);
            a.animate({
                "ibslider:clock": 1
            }, q(a).transitionDuration, "linear")
        },
        circle: function (a, d) {
            a = e(a);
            var c;
            c = Math.floor(a.height() / 5 + 0.5);
            c = H(a, d, c);
            a.data("ibslider:blocks", c);
            a.data("ibslider:showing", d);
            a.attr("ibslider:circle", 0);
            a.animate({
                "ibslider:circle": 1
            }, q(a).transitionDuration, "linear")
        },
        diamond: function (a, d) {
            a = e(a);
            var c;
            c = Math.floor(a.height() / 4);
            c = H(a, d, c);
            a.data("ibslider:blocks", c);
            a.data("ibslider:showing", d);
            a.attr("ibslider:diamond", 0);
            a.animate({
                "ibslider:diamond": 1
            }, q(a).transitionDuration, "linear")
        },
        exitStageLeft: function (a, d, c) {
            if (c != "left" && c != "right") c = "left";
            var g = a.data("ibslider:current-slide");
            a = e(a);
            var f = Math.floor(a.height() / 5 + 0.5);
            g = v(a, 1, f, {
                backgroundImage: "url(" + s(a, g) + ")",
                display: "block"
            });
            a.css("background", "url(" + s(a, d) + ") no-repeat");
            a.data("ibslider:slides")[a.data("ibslider:current-slide")].elem.hide();
            a.data("ibslider:blocks", g);
            a.data("ibslider:showing", d);
            a.attr("ibslider:exit_stage_" + c, 0);
            c == "left" && a.animate({
                "ibslider:exit_stage_left": 1
            }, q(a).transitionDuration, "easeInOutBack");
            c == "right" && a.animate({
                "ibslider:exit_stage_right": 1
            }, q(a).transitionDuration, "easeInOutBack")
        },
        exitStageRight: function (a, d) {
            e.ibSlider.transitions.exitStageLeft(a, d, "right")
        },
        fade: function (a, d) {
            v(a, 1, 1, {
                background: "url(" + s(a, d) + ") no-repeat",
                display: "none"
            }).fadeIn(q(a).transitionDuration, function () {
                k(a, d)
            })
        },
        fountain: function (a, d, c) {
            function g() {
                i++;
                i == h && k(a, d)
            }
            var f, h = 20;
            f = ["t", "b"];

            c || (c = f[B(2)]);
            f = h;
            rows = 1;
            f = v(a, f, rows, {
                backgroundImage: "url(" + s(a, d) + ")",
                opacity: 0
            });
            var i = 0,
                m = c == "t" ? -a.height() : a.height(),
                j = q(a).transitionDuration,
                n, o = Math.PI / f.length,
                p = j * 0.5;
            e.each(f, function (t, u) {
                var D = e(u),
                    G;
                G = "-" + D.css("left");
                D.css({
                    display: "block",
                    top: m,
                    backgroundPosition: G + " " + -m + "px"
                });
                n = Math.sin(t * o);
                setTimeout(function () {
                    D.animate({
                        top: 0,
                        opacity: 1,
                        backgroundPosition: G + " 0px"
                    }, j * 0.75, g)
                }, p - p * n)
            })
        },
        lightBeam: function (a, d) {
            a = e(a);
            var c;
            c = v(a, 1, 1, {
                background: "url(" + s(a, d) + ") no-repeat",
                display: "block"
            });
            a.data("ibslider:blocks", c);
            a.data("ibslider:showing", d);
            a.attr("ibslider:lightbeam", 0);
            a.animate({
                "ibslider:lightbeam": 1
            }, q(a).transitionDuration, "linear")
        },
        randomBlocks: function (a, d, c, g) {
            function f() {
                m++;
                m == i && k(a, d)
            }
            var h;
            c = c || 8;
            g = g || 4;
            var i = c * g;
            h = v(a, c, g, {
                backgroundImage: "url(" + s(a, d) + ")",
                opacity: 0,
                display: "block"
            });
            var m = 0;
            h = h.toArray();
            g = h.length * 2;
            for (var j, n; g--;) {
                j = B(i);
                n = B(i);
                c = h[j];
                h[j] = h[n];
                h[n] = c
            }
            var o = q(a).transitionDuration;
            e.each(h, function (p, t) {
                var u = e(t);
                setTimeout(function () {
                    u.animate({
                        opacity: 1
                    }, o * 0.4, f)
                }, p * o / h.length * 0.8)
            })
        },
        randomSlicesVertical: function (a, d) {
            e.ibSlider.transitions.randomBlocks(a, d, 10, 1)
        },
        randomSlicesHorizontal: function (a, d) {
            e.ibSlider.transitions.randomBlocks(a, d, 1, 5)
        },
        shrink: function (a, d) {
            var c = a.data("ibslider:current-slide"),
                g = a.width(),
                f = a.height(),
                h = e(".ibslider_img", a).first();
            if (h.length == 0) h = e('<img class="ibslider_img"/>').appendTo(a);
            h.attr("src", s(a, c));
            h.css({
                display: "block",
                width: g,
                height: f,
                left: 0,
                top: 0,
                opacity: 1,
                position: "absolute"
            });
            a.css("background", "url(" + s(a, d) + ") no-repeat");
            a.data("ibslider:slides")[a.data("ibslider:current-slide")].elem.hide();
            h.animate({
                width: 0,
                left: g / 2 + "px",
                height: 0,
                top: f / 2 + "px",
                opacity: 1
            }, q(a).transitionDuration, "easeInBack", function () {
                k(a, d)
            })
        },
        sliceFade: function (a, d, c) {
            function g() {
                j++;
                j == h && k(a, d)
            }
            var f, h = 10,
                i = ["l", "r", "t", "b"];
            c || (c = i[B(4)]);
            i = A(c) ? 1 : h;
            var m = A(c) ? h : 1;
            f = v(a, i, m, {
                backgroundImage: "url(" + s(a, d) + ")",
                display: "block",
                opacity: 0
            });
            var j = 0;
            if (c == "r" || c == "b") f = f.toArray().reverse();
            var n = q(a).transitionDuration;
            e.each(f, function (o, p) {
                var t = e(p);
                setTimeout(function () {
                    t.animate({
                        opacity: 1
                    }, n * 0.5, "linear", g)
                }, o * n / f.length * 0.9)
            })
        },
        sliceSlideVertical: function (a, d, c) {
            function g() {
                j++;
                j == h && k(a, d)
            }
            var f, h = 10,
                i = ["l", "r", "t", "b"];
            c || (c = i[B(4)]);
            i = A(c) ? 1 : h;
            var m = A(c) ? h : 1;
            i = 10;
            m = 1;
            f = v(a, i, m, {
                backgroundImage: "url(" + s(a, d) + ")",
                opacity: 0
            });
            var j = 0;
            if (c == "r" || c == "b") f = f.toArray().reverse();
            var n = c == "l" || c == "r" ? -a.height() : a.height(),
                o = q(a).transitionDuration;
            e.each(f, function (p, t) {
                var u = e(t);
                u.css("display", "block").css("top", n);
                setTimeout(function () {
                    u.animate({
                        top: 0,
                        opacity: 1
                    }, o * 0.5, g)
                }, p * o / f.length * 0.75)
            })
        },
        sliceSlideHorizontal: function (a, d, c) {
            function g() {
                j++;
                j == h && k(a, d)
            }
            var f, h = 10,
                i = ["l", "r", "t", "b"];
            c || (c = i[B(4)]);
            i = A(c) ? 1 : h;
            var m = A(c) ? h : 1;
            i = 10;
            i = m = 1;
            m = 10;
            f = v(a, i, m, {
                backgroundImage: "url(" + s(a, d) + ")",
                opacity: 0
            });
            var j = 0;
            if (c == "r" || c == "b") f = f.toArray().reverse();
            var n = c == "l" || c == "r" ? -a.height() : a.height();
            n = c == "l" || c == "r" ? -a.width() : a.width();
            var o = q(a).transitionDuration;
            e.each(f, function (p, t) {
                var u = e(t);
                u.css("display", "block").css("left", n);
                setTimeout(function () {
                    u.animate({
                        left: 0,
                        opacity: 1
                    }, o * 0.5, g)
                }, p * o / f.length * 0.75)
            })
        },
        slide: function (a, d, c) {
            DIRECTIONS = ["l", "r", "t", "b"];
            c || (c = DIRECTIONS[B(4)]);
            var g = a.data("ibslider:slides")[a.data("ibslider:current-slide")].elem,
                f = 0,
                h = 0,
                i = v(a, 1, 1, {
                    backgroundImage: "url(" + s(a, d) + ")",
                    display: "block"
                });
            if (c == "l") f = a.width();
            if (c == "r") f = -a.width();
            if (c == "t") h = a.height();
            if (c == "b") h = -a.height();
            i.css({
                left: -f,
                top: -h
            }).animate({
                left: 0,
                top: 0
            }, q(a).transitionDuration, function () {
                k(a, d)
            });
            g.animate({
                left: f,
                top: h
            }, q(a).transitionDuration)
        },
        slideOver: function (a, d, c) {
            DIRECTIONS = ["l", "r", "t", "b"];
            c || (c = DIRECTIONS[B(4)]);
            var g = v(a, 1, 1, {
                backgroundImage: "url(" + s(a, d) + ")",
                display: "block"
            });
            c == "l" && g.css("left", -a.width());
            c == "r" && g.css("left", a.width());
            c == "t" && g.css("top", -a.height());
            c == "b" && g.css("top", a.height());
            g.animate({
                left: 0,
                top: 0
            }, q(a).transitionDuration, function () {
                k(a, d)
            })
        },
        stretchOut: function (a, d) {
            var c = a.data("ibslider:current-slide"),
                g = a.width(),
                f = a.height(),
                h = e(".ibslider_img", a).first();
            if (h.length == 0) h = e('<img class="ibslider_img"/>').appendTo(a);
            h.attr("src", s(a, c));
            h.css({
                display: "block",
                width: g,
                height: f,
                left: 0,
                top: 0,
                opacity: 1,
                position: "absolute"
            });
            a.css("background", "url(" + s(a, d) + ") no-repeat");
            a.data("ibslider:slides")[a.data("ibslider:current-slide")].elem.hide();
            h.animate({
                width: "+=" + g * 2,
                left: "-" + g + "px",
                height: "+=" + f / 2,
                top: "-" + f / 4 + "px",
                opacity: 0
            }, q(a).transitionDuration, function () {
                k(a, d)
            })
        },
        wipe: function (a, d) {
            a = e(a);
            var c;
            c = H(a, d, 20);
            a.data("ibslider:blocks", c);
            a.data("ibslider:showing", d);
            a.attr("ibslider:wipe", 0);
            a.animate({
                "ibslider:wipe": 1
            }, 1E3, "linear")
        },
        zipper: function (a, d, c) {
            function g() {
                j++;
                j == h && k(a, d)
            }
            var f, h = 10,
                i = ["l", "r", "t", "b"];
            c || (c = i[B(4)]);
            i = A(c) ? 1 : h;
            var m = A(c) ? h : 1;
            f = v(a, i, m, {
                backgroundImage: "url(" + s(a, d) + ")"
            });
            var j = 0;
            if (c == "r" || c == "b") f = f.toArray().reverse();
            var n = A(c) ? a.width() : a.height(),
                o = A(c) ? "left" : "top",
                p = {};
            p[o] = 0;
            var t = q(a).transitionDuration;
            e.each(f, function (u, D) {
                var G = e(D);
                G.css("display", "block").css(o, n);
                n = -n;
                setTimeout(function () {
                    G.animate(p, t * 0.75, g)
                }, u * t / f.length)
            })
        }
    };
    e.fx.step["ibslider:clock"] = function (a) {
        var d = e(a.elem),
            c = d.data("ibslider:blocks");
        if (a.state == 0) {
            a.start = 0;
            a.end = 1;
            a.half_width = Math.round(d.width() / 2);
            a.half_height = Math.round(d.height() / 2);
            a.clock_blocks = e(".ibslider_clock", d);
            if (a.clock_blocks.length == 0) {
                for (j = 0; j < 4; j++) e('<div class="ibslider_clock" style="display:none"></div>').appendTo(d);
                a.clock_blocks = e(".ibslider_clock", d)
            }
            a.clock_blocks.css({
                background: c.css("background"),
                display: "none",
                width: a.half_width,
                height: a.half_height + 1,
                position: "absolute"
            });
            e(a.clock_blocks[0]).css({
                left: a.half_width + "px",
                top: 0
            });
            e(a.clock_blocks[1]).css({
                left: a.half_width + "px",
                top: a.half_height + "px"
            });
            e(a.clock_blocks[2]).css({
                left: 0,
                top: a.half_height + "px"
            });
            e(a.clock_blocks[3]).css({
                left: 0,
                top: 0
            });
            e(a.clock_blocks[0]).css("background-position", -a.half_width + "px 0px");
            e(a.clock_blocks[1]).css("background-position", -a.half_width + "px -" + a.half_height + "px");
            e(a.clock_blocks[2]).css("background-position", "0px -" + a.half_height + "px");
            e(a.clock_blocks[3]).css("background-position", "0px 0px");
            a.increment = a.half_height / c.length
        }
        var g = Math.tan(2 * Math.PI * a.pos),
            f;
        a.clock_blocks.css("display", "none");
        var h, i, m;
        if (a.pos < 0.25) {
            i = a.half_width;
            for (var j = f = 0; j < c.length; j++) {
                h = Math.round((j + 1) * a.increment);
                m = i + Math.round(g * h);
                f = "rect(" + (a.half_height - h) + "px " + m + "px " + (a.half_height - f) + "px " + i + "px)";
                c[j].style.clip = f;
                f = h
            }
        } else if (a.pos < 0.75) {
            e(a.clock_blocks[0]).css("display", "block");
            if (a.pos == 0.25) return;
            a.pos >= 0.5 && e(a.clock_blocks[1]).css("display", "block");
            if (a.pos == 0.5) return;
            m = a.half_width * 2;
            for (j = f = h = 0; j < c.length; j++) {
                h = -Math.round((j + 1) * a.increment);
                i = a.half_width + Math.round(g * h);
                f = "rect(" + (a.half_height - f) + "px " + m + "px " + (a.half_height - h) + "px " + i + "px)";
                c[j].style.clip = f;
                f = h
            }
        } else if (a.pos < 1) {
            e(a.clock_blocks[0]).css("display", "block");
            e(a.clock_blocks[1]).css("display", "block");
            e(a.clock_blocks[2]).css("display", "block");
            if (a.pos == 0.75) return;
            for (j = f = i = 0; j < c.length; j++) {
                h = Math.round((j + 1) * a.increment);
                m = a.half_width + Math.round(g * h);
                f = "rect(" + (a.half_height - h) + "px " + m + "px " + (a.half_height - f) + "px " + i + "px)";
                c[j].style.clip = f;
                f = h
            }
        } else a.pos == 1 && a.clock_blocks.css("display", "block");
        if (a.state == 1) {
            k(d, d.data("ibslider:showing"));
            a.clock_blocks.css("display", "none")
        }
    };
    e.fx.step["ibslider:circle"] = function (a) {
        var d = e(a.elem),
            c = d.data("ibslider:blocks");
        if (a.state == 0) {
            a.start = 0;
            a.end = 1;
            a.half_width = Math.round(d.width() / 2);
            a.half_height = Math.round(d.height() / 2);
            a.max_radius = Math.sqrt(a.half_width * a.half_width + a.half_height * a.half_height);
            a.increment = a.half_height / c.length
        }
        var g = a.max_radius * a.pos;
        g = g * g;
        for (var f, h, i, m = 0; m < c.length; m++) {
            f = Math.round((m + 1) * a.increment);
            h = Math.sqrt(g - f * f);
            if (isNaN(h)) break;
            i = a.half_width + h;
            h = a.half_width - h;
            f = "rect(" + (a.half_height - f) + "px " + i + "px " + (a.half_height + f) + "px " + h + "px)";
            c[m].style.clip = f
        }
        a.state == 1 && k(d, d.data("ibslider:showing"))
    };
    e.fx.step["ibslider:diamond"] = function (a) {
        var d = e(a.elem),
            c = d.data("ibslider:blocks");
        if (a.state == 0) {
            a.start = 0;
            a.end = 1;
            a.half_width = d.width() / 2;
            a.half_height = d.height() / 2;
            a.max_dimension = a.half_height + a.half_width;
            a.increment = a.half_height / c.length;
            var g = a.half_height,
                f = g;
            e.each(c, function (n, o) {
                o.rect_top =
                g + "px ";
                o.rect_bottom = f + "px ";
                g -= a.increment;
                f += a.increment
            });
            c[c.length - 1].rect_top = "0px ";
            c[c.length - 1].rect_bottom = d.height() + "px "
        }
        var h = a.increment,
            i = a.max_dimension * a.pos,
            m = a.half_width - i;
        i = a.half_width + i;
        for (var j = 0; j < c.length; j++) {
            c[j].style.clip = "rect(" + c[j].rect_top + i + "px " + c[j].rect_bottom + m + "px)";
            m += h;
            i -= h
        }
        a.state == 1 && k(d, d.data("ibslider:showing"))
    };
    e.fx.step["ibslider:exit_stage_left"] = function (a) {
        P(a, "left")
    };
    e.fx.step["ibslider:exit_stage_right"] = function (a) {
        P(a, "right")
    };
    e.fx.step["ibslider:lightbeam"] =

    function (a) {
        var d = e(a.elem),
            c = d.data("ibslider:blocks"),
            g = e(".ibslider_light_left", d).first();
        light_right = e(".ibslider_light_right", d).first();
        light = e(".ibslider_light", d).first();
        if (a.state == 0) {
            a.start = 0;
            a.end = 1;
            a.slider_width = d.width();
            a.slider_height = d.height();
            d.css("overflow", "visible");
            if (g.length == 0) {
                g = e('<img class="ibslider_light_left" src="' + F() + '"http://indiebelts.com/wp-content/themes/indiebelts/images/light_left.png"/>').appendTo(d);
                g.load(function () {
                    e(this).css("width", "");
                    this.original_width = e(this).width()
                }).attr("src", F() + "http://indiebelts.com/wp-content/themes/indiebelts/images/light_left.png");
                a.original_light_width = g.width()
            }
            if (light_right.length == 0) {
                light_right = e('<img class="ibslider_light_right" src="' + F() + 'http://indiebelts.com/wp-content/themes/indiebelts/images/light_right.png"/>').appendTo(d);
                light_right.load(function () {
                    this.original_width = e(this).width()
                }).attr("src", F() + "http://indiebelts.com/wp-content/themes/indiebelts/images/light_right.png")
            }
            if (light.length == 0) {
                light = e('<img class="ibslider_light" src="' + F() + 'http://indiebelts.com/wp-content/themes/indiebelts/images/light_v.png"/>').appendTo(d);
                light.load(function () {
                    e(this).css("width", "");
                    this.original_width = e(this).width();
                    a.light_width = e(this).width()
                }).attr("src", F() + "http://indiebelts.com/wp-content/themes/indiebelts/images/light_v.png");
                light.css({
                    position: "absolute",
                    width: light.width(),
                    top: "-13px",
                    height: 26 + d.height(),
                    display: "block"
                })
            }
            a.light_width = light.width();
            g.css({
                position: "absolute",
                right: -10 + d.width(),
                width: a.original_light_width,
                top: "-60px",
                height: 120 + d.height()
            });
            light_right.css({
                position: "absolute",
                width: 10,
                top: "-60px",
                height: 120 + d.height(),
                display: "none"
            });
            light.css({
                position: "absolute",
                left: -light.width() / 2,
                width: light.width(),
                top: "-13px",
                height: 26 + d.height(),
                display: "block"
            })
        }
        var f;
        a.original_light_width = g.attr("original_width") || 74;
        light.css("left", a.slider_width * a.pos - a.light_width / 2);
        c.css("width", a.slider_width * a.pos);
        if (a.pos <= 0.5) {
            light_right.css("display", "none");
            c = a.original_light_width - (a.original_light_width - 10) * a.pos * 2;
            f = -10 + a.slider_width;
            f -= (f - a.slider_width / 2) * a.pos * 2;
            g.css({
                right: f,
                width: c,
                display: "block"
            })
        } else {
            g.css("display", "none");
            a.pos = (a.pos - 0.5) * 2;
            c = 10 - (10 - a.original_light_width) * a.pos;
            f = a.slider_width / 2;
            f -= (f - (a.slider_width - 10)) * a.pos;
            light_right.css({
                left: f + "px",
                width: c,
                display: "block"
            })
        }
        if (a.state == 1) {
            g.css("display", "none");
            light_right.css("display", "none");
            light.css("display", "none");
            setTimeout(function () {
                d.css("overflow", "hidden")
            }, 10);
            k(d, d.data("ibslider:showing"))
        }
    };
    e.fx.step["ibslider:wipe"] = function (a) {
        var d = e(a.elem),
            c = d.data("ibslider:blocks");
        if (a.state == 0) {
            a.start = 0;
            a.end = 1;
            a.gradient_width = 10;
            a.slider_width = d.width();
            a.slider_height = d.height();
            e.each(c, function (i, m) {
                e(m).css("opacity", 1 - i / c.length)
            })
        }
        var g = a.slider_height + "px ",
            f = -a.gradient_width + (a.gradient_width + a.slider_width) * a.pos;
        c[0].style.clip = "rect(0px " + (f + 1) + "px " + g + "0px)";
        f++;
        for (var h = 1; h < c.length; h++) {
            c[h].style.clip = "rect(0px " + (f + 1) + "px " + g + f + "px)";
            f += 1
        }
        a.state == 1 && k(d, d.data("ibslider:showing"))
    }
})(jQuery);
(function (e) {
    function r(l) {
        l = l.replace(/left|top/g, "0px");
        l = l.replace(/right|bottom/g, "100%");
        l = l.replace(/([0-9\.]+)(\s|\)|$)/g, "$1px$2");
        l = l.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);
        return [parseFloat(l[1], 10), l[2], parseFloat(l[3], 10), l[4]]
    }
    if (!document.defaultView || !document.defaultView.getComputedStyle) {
        var z = jQuery.curCSS;
        jQuery.curCSS = function (l, k, C) {
            if (k === "background-position") k = "backgroundPosition";
            if (k !== "backgroundPosition" || !l.currentStyle || l.currentStyle[k]) return z.apply(this, arguments);
            var E = l.style;
            if (!C && E && E[k]) return E[k];
            return z(l, "backgroundPositionX", C) + " " + z(l, "backgroundPositionY", C)
        }
    }
    var w = e.fn.animate;
    e.fn.animate = function (l) {
        if ("background-position" in l) {
            l.backgroundPosition = l["background-position"];
            delete l["background-position"]
        }
        if ("backgroundPosition" in l) l.backgroundPosition = "(" + l.backgroundPosition;
        return w.apply(this, arguments)
    };
    e.fx.step.backgroundPosition = function (l) {
        if (!l.bgPosReady) {
            var k = e.curCSS(l.elem, "backgroundPosition");
            k || (k = "0px 0px");
            k =
            r(k);
            l.start = [k[0], k[2]];
            k = r(l.options.curAnim.backgroundPosition);
            l.end = [k[0], k[2]];
            l.unit = [k[1], k[3]];
            l.bgPosReady = true
        }
        k = [];
        k[0] = (l.end[0] - l.start[0]) * l.pos + l.start[0] + l.unit[0];
        k[1] = (l.end[1] - l.start[1]) * l.pos + l.start[1] + l.unit[1];
        l.elem.style.backgroundPosition = k[0] + " " + k[1]
    }
})(jQuery);
jQuery.easing.jswing = jQuery.easing.swing;
jQuery.extend(jQuery.easing, {
    easeInBack: function (e, r, z, w, l, k) {
        if (k == undefined) k = 1.70158;
        return w * (r /= l) * r * ((k + 1) * r - k) + z
    },
    easeInOutBack: function (e, r, z, w, l, k) {
        if (k == undefined) k = 1.70158;
        if ((r /= l / 2) < 1) return w / 2 * r * r * (((k *= 1.525) + 1) * r - k) + z;
        return w / 2 * ((r -= 2) * r * (((k *= 1.525) + 1) * r + k) + 2) + z
    }
});
$(document).ready(function () {
    $("#slider").ibSlider({
		delay:4500,
		showCaption:true,
        pauseOnHover: true,		
        transitions: "lightBeam",
        width: 940,
        height: 320
    });
    
});
