$(document).ready(function() {
    function a() {
        var a = $(window).width(),
        b = (768 - a) / 768 + 1,
        c = 1;
        fmhPara = $(".feature-mi").height() < 641 || $(".feature-ai").height() < 641 || $(".feature-bi").height() < 641 ? 0 : 1,
        764 > a ? ($(".mi-headline-bg").css("height", $(".feature-mi").height() + 28 * b * c + "px"), $(".ai-headline-bg").css("height", $(".feature-ai").height() + 28 * b * c + "px"), $(".bi-headline-bg").css("height", $(".feature-bi").height() + 28 * b * c + "px"), $(".ee-headline-bg").css("height", $(".feature-ee").height() + parseInt($(".feature-ee").css("padding-top")) + 20 * b + "px"), $(".railsgirls-headline-bg").css("height", $(".feature-railsgirls").height() / 1.06 + 10 * b + "px")) : ($(".mi-headline-bg").removeAttr("style"), $(".ai-headline-bg").removeAttr("style"), $(".bi-headline-bg").removeAttr("style"), $(".ee-headline-bg").removeAttr("style"), $(".railsgirls-headline-bg").removeAttr("style"))
    }
    setTimeout(function() {
        a()
    },
    100),
    $(window).resize(function() {
        a()
    })
}),
function(a, b) {
    "use strict";
    "function" == typeof define && "object" == typeof define.amd ? define([],
    function() {
        return b(a)
    }) : a.SineWaves = b(a)
} (this,
function() {
    "use strict";
    function a(a) {
        if (this.options = i.defaults(this.options, a), this.el = this.options.el, delete this.options.el, !this.el) throw "No Canvas Selected";
        if (this.ctx = this.el.getContext("2d"), this.waves = this.options.waves, delete this.options.waves, !this.waves || !this.waves.length) throw "No waves specified";
        this.dpr = window.devicePixelRatio || 1,
        this.updateDimensions(),
        window.addEventListener("resize", this.updateDimensions.bind(this)),
        this.setupUserFunctions(),
        this.easeFn = i.getFn(n, this.options.ease, "linear"),
        this.rotation = i.degreesToRadians(this.options.rotate),
        i.isType(this.options.running, "boolean") && (this.running = this.options.running),
        this.setupWaveFns(),
        this.loop()
    }
    function b(a, b) {
        return i.isType(a, "number") ? a: (a = a.toString(), a.indexOf("%") > -1 ? (a = parseFloat(a), a > 1 && (a /= 100), b * a) : a.indexOf("px") > -1 ? parseInt(a, 10) : void 0)
    }
    Function.prototype.bind || (Function.prototype.bind = function(a) {
        if ("function" != typeof this) throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
        var b = Array.prototype.slice.call(arguments, 1),
        c = this,
        d = function() {},
        e = function() {
            return c.apply(this instanceof d && a ? this: a, b.concat(Array.prototype.slice.call(arguments)))
        };
        return d.prototype = this.prototype,
        e.prototype = new d,
        e
    });
    for (var c = ["ms", "moz", "webkit", "o"], d = 0; d < c.length && !window.requestAnimationFrame; ++d) window.requestAnimationFrame = window[c[d] + "RequestAnimationFrame"],
    window.cancelAnimationFrame = window[c[d] + "CancelAnimationFrame"] || window[c[d] + "CancelRequestAnimationFrame"];
    if (!window.requestAnimationFrame) {
        var e = 0;
        window.requestAnimationFrame = function(a) {
            var b = (new Date).getTime(),
            c = Math.max(0, 16 - (b - e)),
            d = window.setTimeout(function() {
                a(b + c)
            },
            c);
            return e = b + c,
            d
        }
    }
    window.cancelAnimationFrame || (window.cancelAnimationFrame = function(a) {
        clearTimeout(a)
    });
    var f = Math.PI / 180,
    g = 2 * Math.PI,
    h = Math.PI / 2,
    i = {},
    j = i.isType = function(a, b) {
        var c = {}.toString.call(a).toLowerCase();
        return c === "[object " + b.toLowerCase() + "]"
    },
    k = i.isFunction = function(a) {
        return j(a, "function")
    },
    l = i.isString = function(a) {
        return j(a, "string")
    },
    m = (i.isNumber = function(a) {
        return j(a, "number")
    },
    i.shallowClone = function(a) {
        var b = {};
        for (var c in a) a.hasOwnProperty(c) && (b[c] = a[c]);
        return b
    }),
    n = (i.defaults = function(a, b) {
        j(b, "object") || (b = {});
        var c = m(a);
        for (var d in b) b.hasOwnProperty(d) && (c[d] = b[d]);
        return c
    },
    i.degreesToRadians = function(a) {
        if (!j(a, "number")) throw new TypeError("Degrees is not a number");
        return a * f
    },
    i.getFn = function(a, b, c) {
        return k(b) ? b: l(b) && k(a[b.toLowerCase()]) ? a[b.toLowerCase()] : a[c]
    },
    {});
    n.linear = function(a, b) {
        return b
    },
    n.sinein = function(a, b) {
        return b * (Math.sin(a * Math.PI - h) + 1) * .5
    },
    n.sineout = function(a, b) {
        return b * (Math.sin(a * Math.PI + h) + 1) * .5
    },
    n.sineinout = function(a, b) {
        return b * (Math.sin(a * g - h) + 1) * .5
    };
    var o = {};
    o.sine = function(a) {
        return Math.sin(a)
    },
    o.sin = o.sine,
    o.sign = function(a) {
        return a = +a,
        0 === a || isNaN(a) ? a: a > 0 ? 1 : -1
    },
    o.square = function(a) {
        return o.sign(Math.sin(a * g))
    },
    o.sawtooth = function(a) {
        return 2 * (a - Math.floor(a + .5))
    },
    o.triangle = function(a) {
        return Math.abs(o.sawtooth(a))
    },
    a.prototype.options = {
        speed: 10,
        rotate: 0,
        ease: "Linear",
        wavesWidth: "95%"
    },
    a.prototype.setupWaveFns = function() {
        for (var a = -1,
        b = this.waves.length; ++a < b;) this.waves[a].waveFn = i.getFn(o, this.waves[a].type, "sine")
    },
    a.prototype.setupUserFunctions = function() {
        i.isFunction(this.options.resizeEvent) && (this.options.resizeEvent.call(this), window.addEventListener("resize", this.options.resizeEvent.bind(this))),
        i.isFunction(this.options.initialize) && this.options.initialize.call(this)
    };
    var p = {
        timeModifier: 1,
        amplitude: 50,
        wavelength: 50,
        segmentLength: 10,
        lineWidth: 1,
        strokeStyle: "rgba(255, 255, 255, 0.2)",
        type: "Sine"
    };
    return a.prototype.getDimension = function(a) {
        return i.isNumber(this.options[a]) ? this.options[a] : i.isFunction(this.options[a]) ? this.options[a].call(this, this.el) : "width" === a ? this.el.clientWidth: "height" === a ? this.el.clientHeight: void 0
    },
    a.prototype.updateDimensions = function() {
        var a = this.getDimension("width"),
        c = this.getDimension("height");
        this.width = this.el.width = a * this.dpr,
        this.height = this.el.height = c * this.dpr,
        this.el.style.width = a + "px",
        this.el.style.height = c + "px",
        this.waveWidth = b(this.options.wavesWidth, this.width),
        this.waveLeft = (this.width - this.waveWidth) / 2,
        this.yAxis = this.height / 2
    },
    a.prototype.clear = function() {
        this.ctx.clearRect(0, 0, this.width, this.height)
    },
    a.prototype.time = 0,
    a.prototype.update = function(a) {
        this.time = this.time - .007,
        "undefined" == typeof a && (a = this.time);
        var b = -1,
        c = this.waves.length;
        for (this.clear(), this.ctx.save(), this.rotation > 0 && (this.ctx.translate(this.width / 2, this.height / 2), this.ctx.rotate(this.rotation), this.ctx.translate( - this.width / 2, -this.height / 2)); ++b < c;) {
            var d = this.waves[b].timeModifier || 1;
            this.drawWave(a * d, this.waves[b])
        }
        this.ctx.restore(),
        b = void 0,
        c = void 0
    },
    a.prototype.getPoint = function(a, b, c) {
        var d = a * this.options.speed + ( - this.yAxis + b) / c.wavelength,
        e = c.waveFn.call(this, d, o),
        f = this.easeFn.call(this, b / this.waveWidth, c.amplitude);
        return d = b + this.waveLeft,
        e = f * e + this.yAxis,
        {
            x: d,
            y: e
        }
    },
    a.prototype.drawWave = function(a, b) {
        b = i.defaults(p, b),
        this.ctx.lineWidth = b.lineWidth * this.dpr,
        this.ctx.strokeStyle = b.strokeStyle,
        this.ctx.lineCap = "butt",
        this.ctx.lineJoin = "round",
        this.ctx.beginPath(),
        this.ctx.moveTo(0, this.yAxis),
        this.ctx.lineTo(this.waveLeft, this.yAxis);
        var c, d;
        for (c = 0; c < this.waveWidth; c += b.segmentLength) d = this.getPoint(a, c, b),
        this.ctx.lineTo(d.x, d.y),
        d = void 0;
        c = void 0,
        b = void 0,
        this.ctx.lineTo(this.width, this.yAxis),
        this.ctx.stroke()
    },
    a.prototype.running = !0,
    a.prototype.loop = function() {
        this.running === !0 && this.update(),
        window.requestAnimationFrame(this.loop.bind(this))
    },
    a.prototype.Waves = o,
    a.prototype.Ease = n,
    a
}),
$(function() {
    var a = new SineWaves({
        el: document.getElementById("waves"),
        speed: 4,
        width: function() {
            var a = $(document).width();
            return 768 > a ? 3 * $("#waves").parent().width() : 1.4 * $("#waves").parent().width()
        },
        height: function() {
            return $("#waves").parent().height()
        },
        wavesWidth: "100%",
        ease: "SineInOut",
        waves: [{
            timeModifier: .25,
            lineWidth: 2,
            amplitude: 150,
            wavelength: 200,
            segmentLength: 1
        },
        {
            timeModifier: .25,
            lineWidth: 2,
            amplitude: 100,
            wavelength: 150,
            segmentLength: 1
        },
        {
            timeModifier: .25,
            lineWidth: 2,
            amplitude: 50,
            wavelength: 80,
            segmentLength: 1
        }],
        initialize: function() {},
        resizeEvent: function() {
            var a = this.ctx.createLinearGradient(0, 0, this.width, 0);
            a.addColorStop(0, "rgba(255, 255, 255, 0)"),
            a.addColorStop(.5, "rgba(255, 255, 255, 0.2)"),
            a.addColorStop(1, "rgba(255, 255, 255, 0)");
            for (var b = -1,
            c = this.waves.length; ++b < c;) this.waves[b].strokeStyle = a;
            b = void 0,
            c = void 0,
            a = void 0
        }
    }),
    b = $("#waves"),
    c = $(document).scrollTop(),
    d = $(document).scrollTop() + $(window).height(),
    e = b.offset().top + b.height(),
    f = b.offset().top; (c > e || f > d) && (a.running = !1, a.update()),
    $(window).bind("scroll",
    function() {
        c = $(document).scrollTop(),
        d = $(document).scrollTop() + $(window).height(),
        e = b.offset().top + b.height(),
        f = b.offset().top,
        c > e || f > d ? (a.running = !1, a.update()) : (a.running = !0, a.update())
    })
}),
$(function() {
    var a = new SineWaves({
        el: document.getElementById("waves21"),
        speed: 4,
        width: function() {
            var a = $(document).width();
            return 768 > a ? 3 * $("#waves").parent().width() : 1.4 * $("#waves").parent().width()
        },
        height: function() {
            return $("#waves").parent().height()
        },
        wavesWidth: "100%",
        ease: "SineInOut",
        waves: [{
            timeModifier: .25,
            lineWidth: 2,
            amplitude: 150,
            wavelength: 200,
            segmentLength: 1
        },
        {
            timeModifier: .25,
            lineWidth: 2,
            amplitude: 100,
            wavelength: 150,
            segmentLength: 1
        }],
        initialize: function() {},
        resizeEvent: function() {
            var a = this.ctx.createLinearGradient(0, 0, this.width, 0);
            a.addColorStop(0, "rgba(255, 255, 255, 0)"),
            a.addColorStop(.5, "rgba(255, 255, 255, 0.2)"),
            a.addColorStop(1, "rgba(255, 255, 255, 0)");
            for (var b = -1,
            c = this.waves.length; ++b < c;) this.waves[b].strokeStyle = a;
            b = void 0,
            c = void 0,
            a = void 0
        }
    }),
    b = $("#waves21"),
    c = $(document).scrollTop(),
    d = $(document).scrollTop() + $(window).height(),
    e = b.offset().top + b.height(),
    f = b.offset().top; (c > e || f > d) && (a.running = !1, a.update()),
    $(window).bind("scroll",
    function() {
        c = $(document).scrollTop(),
        d = $(document).scrollTop() + $(window).height(),
        e = b.offset().top + b.height(),
        f = b.offset().top,
        c > e || f > d ? (a.running = !1, a.update()) : (a.running = !0, a.update())
    })
}),
$(function() {
    var a = new SineWaves({
        el: document.getElementById("waves2"),
        speed: 4,
        width: function() {
            var a = $(document).width();
            return 768 > a ? 3 * $("#waves2").parent().width() : 1.4 * $("#waves2").parent().width()
        },
        height: function() {
            return $("#waves2").parent().height()
        },
        wavesWidth: "100%",
        ease: "SineInOut",
        waves: [{
            timeModifier: .25,
            lineWidth: 2,
            amplitude: 100,
            wavelength: 150,
            segmentLength: 1
        },
        {
            timeModifier: .5,
            lineWidth: 2,
            amplitude: 50,
            wavelength: 80,
            segmentLength: 1
        }],
        initialize: function() {},
        resizeEvent: function() {
            var a = this.ctx.createLinearGradient(0, 0, this.width, 0);
            a.addColorStop(0, "rgba(255, 255, 255, 0)"),
            a.addColorStop(.5, "rgba(255, 255, 255, 0.2)"),
            a.addColorStop(1, "rgba(255, 255, 255, 0)");
            for (var b = -1,
            c = this.waves.length; ++b < c;) this.waves[b].strokeStyle = a;
            b = void 0,
            c = void 0,
            a = void 0
        }
    }),
    b = $("#waves2"),
    c = $(document).scrollTop(),
    d = $(document).scrollTop() + $(window).height(),
    e = b.offset().top + b.height(),
    f = b.offset().top; (c > e || f > d) && (a.running = !1, a.update()),
    $(window).bind("scroll",
    function() {
        c = $(document).scrollTop(),
        d = $(document).scrollTop() + $(window).height(),
        e = b.offset().top + b.height(),
        f = b.offset().top,
        c > e || f > d ? (a.running = !1, a.update()) : (a.running = !0, a.update())
    })
}),
$(document).ready(function() {
    function a() {
        u[r] = "L",
        v[r] = "next_img",
        r++
    }
    function b() {
        u[r] = "R",
        v[r] = "pre_img",
        r++
    }
    function c() {
        w[r] = k.attr("idc");
        var a = $(".indicator").find(".cur"),
        b = $(a).attr("idc");
        return b < w[r] && (u[r] = "L", v[r] = "next_", r++),
        b > w[r] && (u[r] = "R", v[r] = "pre_", r++),
        b == w[r] ? !1 : void 0
    }
    function d() {
        var a = {
            width: 2849,
            height: 2777,
            max_height: 439,
            param: 30,
            max_width_rate: .85
        },
        b = 205,
        c = a.height / a.width,
        d = b + c * $(window).width() * a.max_width_rate + a.param,
        e = $(".carousel-img");
        e.hasClass("index") ? $(window).width() < 750 && $("#middle").height(.57 * $(window).width() + 200) : $(window).width() <= a.max_height * c / a.max_width_rate + 30 && $(window).width() < 768 ? $(".feature-index").css("height", d) : $(window).width() < 768 && $(".feature-index").css("height", 670)
    }
    function e() {
        $(".right-button").unbind(),
        $(".left-button").unbind(),
        $(".indicator li").unbind(),
        l = x.find(".carousel-img"),
        p = z.find(".carousel-bg"),
        n = y.find(".cur"),
        m = function() {
            return l.next().get(0) ? l.next() : x.children().first()
        } (),
        o = function() {
            return n.next().get(0) ? n.next() : y.children().first()
        } (),
        q = function() {
            return p.next().get(0) ? p.next() : z.children().first()
        } (),
        m.addClass("next-container"),
        q.addClass("next-container")
    }
    function f() {
        $(".right-button").unbind(),
        $(".left-button").unbind(),
        $(".indicator li").unbind(),
        l = x.find(".carousel-img"),
        p = z.find(".carousel-bg"),
        n = y.find(".cur"),
        o = y.children().first();
        for (var a = 1; a < w[s]; a++) o = o.next();
        switch (w[s]) {
        case "1":
            m = x.find(".index"),
            q = z.find(".index");
            break;
        case "2":
            m = x.find(".ai"),
            q = z.find(".ai");
            break;
        case "3":
            m = x.find(".bi"),
            q = z.find(".bi");
            break;
        case "4":
            m = x.find(".ci"),
            q = z.find(".ci");
            break;
        case "5":
            m = x.find(".ct"),
            q = z.find(".ct");
            break;
        case "6":
            m = x.find(".mi"),
            q = z.find(".mi")
        }
        m.addClass("next-container"),
        q.addClass("next-container")
    }
    function g() {
        $(".right-button").unbind(),
        $(".left-button").unbind(),
        $(".indicator li").unbind(),
        l = x.find(".carousel-img"),
        p = z.find(".carousel-bg"),
        n = y.find(".cur"),
        o = y.children().first();
        for (var a = 1; a < w[s]; a++) o = o.next();
        switch (w[s]) {
        case "1":
            m = x.find(".index"),
            q = z.find(".index");
            break;
        case "2":
            m = x.find(".ai"),
            q = z.find(".ai");
            break;
        case "3":
            m = x.find(".bi"),
            q = z.find(".bi");
            break;
        case "4":
            m = x.find(".ci"),
            q = z.find(".ci");
            break;
        case "5":
            m = x.find(".ct"),
            q = z.find(".ct");
            break;
        case "6":
            m = x.find(".mi"),
            q = z.find(".mi")
        }
        m.addClass("pre-container"),
        q.addClass("pre-container")
    }
    function h() {
        $(".right-button").unbind(),
        $(".left-button").unbind(),
        $(".indicator li").unbind(),
        l = x.find(".carousel-img"),
        p = z.find(".carousel-bg"),
        n = y.find(".cur"),
        m = function() {
            return l.prev().get(0) ? l.prev() : x.children().last()
        } (),
        o = function() {
            return n.prev().get(0) ? n.prev() : y.children().last()
        } (),
        q = function() {
            return p.prev().get(0) ? p.prev() : z.children().last()
        } (),
        m.addClass("pre-container"),
        q.addClass("pre-container")
    }
    function i() {
        function d() {
            m.addClass("left-slide"),
            l.addClass("left-slide"),
            n.removeClass("cur"),
            o.addClass("cur"),
            q.addClass("left-slide"),
            p.addClass("left-slide")
        }
        function e() {
            l.removeClass("carousel-img left-slide"),
            m.removeClass("next-container left-slide"),
            m.addClass("carousel-img"),
            p.removeClass("carousel-bg left-slide"),
            q.removeClass("next-container left-slide"),
            q.addClass("carousel-bg"),
            $(".indicator li").click(function() {
                k = $(this),
                c()
            }),
            $(".right-button").click(function() {
                a()
            }),
            $(".left-button").click(function() {
                b()
            })
        }
        setTimeout(d, 100),
        setTimeout(e, 800)
    }
    function j() {
        function d() {
            m.addClass("right-slide"),
            l.addClass("right-slide"),
            n.removeClass("cur"),
            o.addClass("cur"),
            q.addClass("right-slide"),
            p.addClass("right-slide")
        }
        function e() {
            l.removeClass("carousel-img right-slide"),
            m.removeClass("pre-container right-slide"),
            m.addClass("carousel-img"),
            p.removeClass("carousel-bg right-slide"),
            q.removeClass("pre-container right-slide"),
            q.addClass("carousel-bg"),
            $(".indicator li").click(function() {
                k = $(this),
                c()
            }),
            $(".right-button").click(function() {
                a()
            }),
            $(".left-button").click(function() {
                b()
            })
        }
        setTimeout(d, 100),
        setTimeout(e, 800)
    }
    var k, l, m, n, o, p, q, r = 0,
    s = 0,
    t = setInterval(function() {
        $(window).width() > 767 && (d(), e(), i())
    },
    8e3),
    u = new Array,
    v = new Array,
    w = new Array,
    x = $(".carousel"),
    y = $(".indicator"),
    z = $(".bg");
    $(".right-button").click(function() {
        a()
    }),
    $(".left-button").click(function() {
        b()
    }),
    $(".indicator li").click(function() {
        k = $(this),
        c()
    }),
    $(window).resize(function() {
        d(),
        $(window).width() > 767 && (clearInterval(t), t = setInterval(function() {
            d(),
            e(),
            i()
        },
        8e3)),
        $(window).width() < 767 && clearInterval(t)
    }),
    setInterval(function() {
        if (r != s) {
            switch (clearInterval(t), $(".right-button").unbind(), $(".left-button").unbind(), $(".indicator li").unbind(), s = r - 1, v[s]) {
            case "next_img":
                e();
                break;
            case "pre_img":
                h();
                break;
            case "next_":
                f();
                break;
            case "pre_":
                g()
            }
            switch (u[s]) {
            case "L":
                i(),
                t = setInterval(function() {
                    d(),
                    e(),
                    i()
                },
                8e3);
                break;
            case "R":
                j(),
                t = setInterval(function() {
                    d(),
                    e(),
                    i()
                },
                8e3)
            }
            $(".indicator li").click(function() {
                k = $(this),
                c()
            }),
            $(".right-button").click(function() {
                a()
            }),
            $(".left-button").click(function() {
                b()
            }),
            s++
        }
    },
    1e3),
    d()
}),
$(document).ready(function() {
    function a() {
        switch (h) {
        case 0:
            e = 0,
            f = 2;
            break;
        case 1:
            e = 1,
            f = 3;
            break;
        case 2:
            e = 0,
            f = 4;
            break;
        case 3:
            e = 1,
            f = 3;
            break;
        case 4:
            e = 2,
            f = 4;
            break;
        case 5:
            e = 0,
            f = 3;
            break;
        case 6:
            e = 1,
            f = 4
        }
        h++,
        7 == h && (h = 0),
        b(e, f)
    }
    function b(a, b) {
        var c = 0,
        d = 0;
        c += "px",
        d += "px",
        $("div.fmcontent").css({
            top: "15px",
            opacity: "0"
        }),
        $(".fivemanimg").removeClass("active"),
        $("div.fmcontent").eq(a).css({
            top: c,
            opacity: "1"
        }),
        $("div.fmcontent").eq(b).css({
            top: d,
            opacity: "1"
        }),
        $("img.fivemanimg").eq(a).addClass("active"),
        $("img.fivemanimg").eq(b).addClass("active")
    }
    function c() {
        5 == i && (i = 0),
        d(i),
        i++
    }
    function d(a) {
        $(".fmxscontent").css({
            opacity: "0",
            top: "20px"
        }),
        $(".fivemanimg").removeClass("active"),
        $(".fivemanimg").eq(a).addClass("active");
        var b = $(".fmcontent").eq(a).children().text();
        $(".fmxstxt").css($(".fivemanimg").eq(a).hasClass("smalltxt") ? {
            margin: "16px 20px 0px 20px"
        }: {
            margin: "0px 20px 0px 20px"
        }),
        $(".fmxstxt").text(b),
        $(".fmxscontent").animate({
            opacity: "1",
            top: "0px"
        },
        800)
    }
    var e, f, g, h = 0,
    i = 0;
    $(window).width() > 750 ? (b(1, 3), h = 0, g = setInterval(function() {
        a()
    },
    2e3)) : (d(2), i = 0, g = setInterval(function() {
        c()
    },
    2e3)),
    $(".fivemanimg").mouseenter(function() {
        if ($(window).width() > 750) {
            clearInterval(g),
            $("div.fmcontent").css({
                opacity: "0"
            }),
            $(".fivemanimg").removeClass("active"),
            $(this).addClass("active");
            var a = $(this).prev().children();
            a.css({
                top: "0px",
                opacity: "1"
            })
        } else {
            clearInterval(g),
            $(".fmxscontent").css({
                opacity: "0",
                top: "20px"
            }),
            $(".fivemanimg").removeClass("active"),
            $(this).addClass("active");
            var b = $(this).prev().children().children().text();
            $(".fmxstxt").css($(this).hasClass("smalltxt") ? {
                margin: "16px 20px 0px 20px"
            }: {
                margin: "0px 20px 0px 20px"
            }),
            $(".fmxstxt").text(b),
            $(".fmxscontent").animate({
                opacity: "1",
                top: "0px"
            })
        }
    }),
    $(".fivemanimg").mouseleave(function() {
        if ($(window).width() > 750) {
            var e = $(this).prev().children();
            b(1, 3),
            h = 0,
            e.css({
                top: "0px",
                opacity: "0"
            }),
            g = setInterval(function() {
                a()
            },
            2e3)
        } else console.log(1),
        d(2),
        i = 0,
        g = setInterval(function() {
            c()
        },
        2e3)
    }),
    $(window).resize(function() {
        clearInterval(g),
        $(".fivemanimg").removeClass("active"),
        $(".fivemanimg").eq(2).addClass("active"),
        $("div.fmcontent").css({
            opacity: "0"
        }),
        $(window).width() > 750 ? (b(1, 3), h = 0, g = setInterval(function() {
            a()
        },
        2e3)) : (d(2), i = 0, g = setInterval(function() {
            c()
        },
        2e3))
    })
}),
$(document).ready(function() {
    function a() {
        var a = $(".manslider-container"),
        b = a.find(".man-prev"),
        c = a.find(".man-cur"),
        d = a.find(".man-next");
        b.removeClass("man-prev").addClass("man-next"),
        c.removeClass("man-cur").addClass("man-prev"),
        d.removeClass("man-next").addClass("man-cur");
        var e = $(".twcontent"),
        f = e.find(".p-prev"),
        g = e.find(".p-cur"),
        h = e.find(".p-next");
        f.removeClass("p-prev").addClass("p-next"),
        g.removeClass("p-cur").addClass("p-prev"),
        h.removeClass("p-next").addClass("p-cur")
    }
    function b() {
        var a = $(".manslider-container"),
        b = a.find(".man-prev"),
        c = a.find(".man-cur"),
        d = a.find(".man-next");
        b.removeClass("man-prev").addClass("man-cur"),
        c.removeClass("man-cur").addClass("man-next"),
        d.removeClass("man-next").addClass("man-prev");
        var e = $(".twcontent"),
        f = e.find(".p-prev"),
        g = e.find(".p-cur"),
        h = e.find(".p-next");
        f.removeClass("p-prev").addClass("p-cur"),
        g.removeClass("p-cur").addClass("p-next"),
        h.removeClass("p-next").addClass("p-prev")
    }
    $(document).delegate(".man-next", "click",
    function() {
        $(window).width() >= 768 && a()
    }),
    $(document).delegate(".man-prev", "click",
    function() {
        $(window).width() >= 768 && b()
    }),
    $(document).delegate(".man-cur", "click",
    function() {
        $(window).width() < 768 && a()
    })
});