!function () {
    new Slider({container: ".hd-list"});
    var t = 44;
    $("body").hasClass("wd1240") && (t = 66, $("#type_tab").find("a:eq(6)").after($("#hide_tab").find("a:lt(3)"))), $(".text p").each(function () {
        $(this).html(cutLength($(this).attr("title"), t))
    }), ajajNode("/static/article/js/sogou.js"), isIE6 || function (t) {
        if ($(t.loginBtn)) {
            var a = t.loginBtn, e = $(t.parent) || $("body"),
                i = t.cbLink || "https://www.sogou.com/login/qq_login_callback_page.html", n = t.cbFn;
            $(a)[0] && ($(a)[0].onclick = function (t) {
                return createLoginBox(e, i), n && n(), !1
            })
        }
    }({
        loginBtn: "#loginBtn",
        parent: "#loginWrap",
        cbLink: "https://weixin.sogou.com/pcindex/login/qq_login_callback_page.html"
    }), loadPage($("#pc_0_0")), $(window).on("scroll", function () {
        var t = $(this).scrollTop();
        t > 500 ? $("div.back-top").fadeIn() : $("div.back-top").fadeOut();
        var a = $("#type_tab");
        t >= 500 && a.addClass("tab-box-fieed"), t < 500 && a.removeClass("tab-box-fieed")
    }), cookieProcess("weixinIndexVisited") || cookieProcess("weixinIndexVisited", 1, 864e7), $("body").on("click", "div.back-top", function () {
        $("html,body").animate({scrollTop: 0}, 500)
    }), $("body").on("click", "a,input", function () {
        window.hasClicked || (window.hasClicked = !0, uigs_cl("first_click", "time=" + ((new Date).getTime() - window.onloadTime)))
    }), $("body").on("click", function (t) {
        "1" !== $(t.target).attr("data-except") && (clearFloat(), $(".sc").removeClass("on").fadeOut())
    }), $("body").on("click", "a.sc-a", function () {
        var t = $(this);
        clickShare(t.parent());
        var a = t.closest("li"), e = $("#share_box");
        e.attr("data-url", ("undefined" != typeof httpsUtil && httpsUtil.isHttps && 0 === a.find("h3 a").attr("data-share").indexOf("http:") ? a.find("h3 a").attr("data-share").replace("http:", "https:") : a.find("h3 a").attr("data-share")) || a.find("h3 a").attr("href") || window.location.href), e.attr("data-title", trim(unescapeForHtml(a.find("h3 a").html())) || ""), e.attr("data-summary", trim(unescapeForHtml(a.find(".txt-info").html())) || ""), e.attr("data-imgLink", a.find(".img-box img").attr("src") || a.find(".img-d img:first").attr("src") || ""), showFloat(e, t)
    }), $("body").on("click", "#share_box a.close", function () {
        $(this).closest(".float").fadeOut(), $(".sc").removeClass("on").fadeOut()
    }), $("body").on("click", ".fxico-box a", function () {
        bindShareClick($(this), $("#share_box"))
    }), $("body").on("click", "#erweima_box a.close", function () {
        $(this).closest(".float").fadeOut()
    });
    var a = $("#more_anchor");
    toggleBox(a, $("#hide_tab"), {
        enter: function () {
            a.addClass("on")
        }, leave: function () {
            a.removeClass("on")
        }
    }), $("body").on("click", "#type_tab a", function () {
        var t = $(this), a = t.attr("id");
        if ("more_anchor" !== a && !t.hasClass("cur")) {
            $("div.jzgd").attr("data-type", a);
            var e = $("#" + a + "_d"), i = e.find("ul").length;
            i > 0 ? ($(".news-box").fadeOut(), e.fadeIn(), $("#type_tab").find("a").removeClass("cur"), t.addClass("cur"), i < 5 ? $("div.jzgd").fadeIn() : $("div.jzgd").fadeOut(), "pc_s" === a && (e.children("ul").children("li:last").length < s_step ? $("div.jzgd").fadeOut() : $("div.jzgd").fadeIn())) : "pc_s" === a ? ($(".news-box").fadeOut(), e.fadeIn(), $("#type_tab").find("a").removeClass("cur"), t.addClass("cur")) : $.ajax({
                url: "/pcindex/pc/" + a + "/" + a + ".html",
                success: function (i) {
                    i && (e.html(i), $(".news-box").fadeOut(), e.fadeIn(), $("#type_tab").find("a").removeClass("cur"), t.addClass("cur"), loadPage($("#" + a + "_0")), $("div.jzgd").fadeIn())
                },
                error: function () {
                }
            })
        }
    }), $("body").on("click", "div.jzgd", function () {
        var t = $(this).attr("data-type"), a = $("#" + t + "_d"), e = a.find("ul").length;
        e < 5 && ("pc_s" === t ? s_start += s_step : $.ajax({
            url: "/pcindex/pc/" + t + "/" + e + ".html",
            success: function (i) {
                a.append('<ul class="news-list">' + i + "</ul>"), a.find("ul:last").attr("id", t + "_" + e), loadPage($("#" + t + "_" + e)), 5 === a.find("ul").length && $("div.jzgd").fadeOut()
            },
            error: function () {
            }
        }))
    }), juicer.register("cutLength", cutLength)
}();