
function checkurl(t) {
    switch (t) {
        case"/exhibition/":
        case"/news/":
        case"/industrynews/":
        case"/topic/":
        case"/journal/":
            t = "/media/"
    }
    return t
}

function actmenu(t) {
    t = checkurl(t), $(".topMenu").children("li").each(function () {
        $(this).children("a").attr("href") == t && (findli = 1, $(this).addClass("active"))
    })
}

function checkth() {
    $(".lxb-cb-input-btn").length > 0 && ($(".lxb-cb-input-btn").click(function () {
        _hmt.push(["_trackEvent", "LXB", "click", "打电话"])
    }), window.clearInterval(checktag))
}



var action = function () {
    "use strict";

    function t(t) {
        var n = t.data("action") || t.attr("data-action") || "";
        if (!n) {
            var i = $.trim(t.attr("href"));
            i && 0 === i.indexOf("#") && (n = i)
        }
        return e(n)
    }

    function e(t) {
        return t ? $.trim(String(t).replace(/^[#!\s]+/, "")) : ""
    }

    function n() {
        var e = $(document.body || document.documentElement);
        e.on("click", c, function (e) {
            e.preventDefault();
            var n = $(this), o = t(n);
            i(o, this)
        })
    }

    function i(t, e) {
        if (!t) return void console.error("[Action] Action name is not exist");
        var n = s[t];
        return n && $.isFunction(n) ? n.call(e || window, n.arguments || null) : void console.error("[Action] Not found action `%s`.", t)
    }

    function o(t) {
        return $.isPlainObject(t) ? void $.each(t, function (t, n) {
            var i = e(t);
            return i ? $.isFunction(n) ? (s[i] && console.warn("[Action] The existing action `%s` has been overwriten", i), void(s[i] = n)) : void console.error("[Action] The function for action `%s` is invalid", i) : void console.error("[Action] The action name `%s` is invalid", i)
        }) : void console.error("[Action] Param must be a plain object")
    }

    function a(t, n) {
        return i(e(t), n)
    }

    var r = {}, c = "[data-action]", s = {};
    return n(), r.add = o, r.trigger = a, r
}();



$(function () {
    var t = $(".fixBar"), e = $(".fixbar-expand"), n = {
        elemScroll: function () {
            var t = $(this).data("target") || $(this).attr("data-target"), e = $(t).offset().top;
            $("body,html").animate({scrollTop: e}, 300)
        }, lanToogle: function () {
            var t = $($(this).data("target")), e = null;
            !t.is(":animated") && t.slideToggle(300).on("mouseleave", function () {
                $(this).slideUp(300)
            }).on("mouseover", function () {
                clearTimeout(e)
            }), $(this).on("mouseleave", function () {
                e = setTimeout(function () {
                    t.slideUp()
                }, 1500)
            })
        }, videoLayer: function () {
            var t = $(this).data("src") || $(this).attr("data-src"),
                e = $(this).data("title") || $(this).attr("data-title") || "视频";
            layer.open({
                type: 1,
                shade: .8,
                title: e,
                area: ["650px", "432px"],
                shadeClose: !0,
                scrollbar: !1,
                content: '<video autoplay controls="controls" width="630" height="360"><source src="' + t + '" type="video/mp4"></source></video>'
            })
        }, freeChat: function () {
            $(".lxb-hide-btn").data("lxb") && $("#LXB_CONTAINER").css("cssText", 'top:200px !important;right:38px !important;height: 154px; width: 99px; border: 0px none rgb(0, 0, 0); background-image: url("//lxb.baidu.com/image/module/271796_195646_20160922103705.png?t=1474511823835"); background-color: rgb(255, 255, 255); position: fixed; display: block !important;')
        }, fbexpand: function () {
            e.animate({right: -100}, 300, function () {
                t.animate({right: 0}, 300, function () {
                    e.hide()
                })
            })
        }, fbclose: function () {
            t.animate({right: -40}, 300, function () {
                e.show().animate({right: -40})
            })
        }
    };
    action.add(n)
}), $(".nav_top .navbar-toggle").click(function () {
    $(".nav_top .navbar-text").toggleClass("hidden-xs-di")
}), $(".subnav .navbar-toggle").click(function () {
    $(".subnav ul.nav").toggleClass("j_hide")
}), $(".navbar-left .yewu").click(function (t) {
    "none" == $(".navbar-left .yewu ol").css("display") ? $(".navbar-left .yewu ol").stop(!0, !0).slideDown(300) : $(".navbar-left .yewu ol").stop(!0, !0).slideUp(300), t.stopPropagation()
}), $(".dropdown").hover(function (t) {
    $(this).children("ul").addClass("dropdown-active")
},function(){
    $(this).children("ul").removeClass("dropdown-active");
}),$('.pro_btn').hover(function(){
    $('.chanpin_list_wrap').removeClass('hide');
},function(){
    $('.chanpin_list_wrap').addClass('hide');
    
}),$('.chanpin_list_wrap').hover(function(){
    $('.chanpin_list_wrap').removeClass('hide');
},function(){
    $('.chanpin_list_wrap').addClass('hide');
    
}), $(document).click(function () {
    $(".dropdown").children("ul").removeClass("dropdown-active"), $(".navbar-left .yewu ol").stop(!0, !0).slideUp(300)
}), $(".inquiry").hover(function () {
    $(".inquiry .inquiryCon").show()
}, function () {
    $(".inquiry .inquiryCon").hide()
}), $(".search_box a").on("click", function (t) {
    $(".search-expand").show(), $(document).one("click", function () {
        $(".search-expand").hide()
    }), t.stopPropagation()
}), $(".search-expand").on("click", function (t) {
    t.stopPropagation()
}), $(".nav_hovers").mouseenter(function () {
    $(this).find("ol").stop(!0, !0).slideDown(500)
}), $(".nav_hovers").mouseleave(function () {
    $(this).find("ol").stop(!0, !0).slideUp(500)
}), $(".related-link a").on("click", function (t) {
    $(".related-link ul").toggle(200), $(document).one("click", function () {
        $(".related-link ul").hide(200)
    }), t.stopPropagation()
}), $(".related-link ul").on("click", function (t) {
    t.stopPropagation()
}), $(".j_hoverTitle").hover(function () {
    var t = $(this), e = t.data("timerID"), n = t.data("isHide");
    clearTimeout(e), e = setTimeout(function () {
        (void 0 === n || n) && $(".j_hoverCont").stop().css({
            marginTop: 12,
            opacity: 0,
            display: "block"
        }).animate({marginTop: 0, opacity: 1}, function () {
            t.data("isHide", !1)
        })
    }, 300), t.data("timerID", e)
}, function () {
    var t = $(this), e = t.data("timerID");
    clearTimeout(e), e = setTimeout(function () {
        $(".j_hoverCont").stop().animate({marginTop: 12, opacity: 0}, function () {
            $(".j_hoverCont").hide(), t.data("isHide", !0)
        })
    }, 300), t.data("timerID", e)
}), sUrl = window.location.href.replace("http://" + window.location.host, "");
var findli = 0;
actmenu(sUrl);
for (var i = 0; i < 5 && 1 != findli; i++) newUrl = sUrl.substring(0, sUrl.lastIndexOf("/") + 1), newUrl == sUrl ? sUrl = sUrl.substring(0, sUrl.lastIndexOf("/")) : sUrl = newUrl, actmenu(sUrl);

// document.writeln("<script language='javascript' src='//nbq.zoosnet.net/JS/LsJS.aspx?siteid=NBQ93654447&float=1&lng=cn'></script>"),
    // for PPC - 标签传递代码
    //d=document.domain;c=location.search;tags = document.getElementsByTagName("a");for(var i=0;i<tags.length;i++){if(tags[i].href.indexOf('?')==-1 && tags[i].href.indexOf(d)>-1){tags[i].href=tags[i].href+c;}}
document.writeln('<script type="text/javascript" charset="utf-8" async src="//lxbjs.baidu.com/lxb.js?sid=669695"></script>');
var checktag = window.setInterval(checkth, 200),
    _bdhmProtocol = "https:" == document.location.protocol ? " https://" : " http://";
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F6b22a4255001a559c2af18e4e0b1bf3d' type='text/javascript'%3E%3C/script%3E"));
var _hmt = _hmt || [];
!function () {
    var t = document.createElement("script");
    t.src = "//hm.baidu.com/hm.js?896396cbedd276fbd880f3310b06d244";
    var e = document.getElementsByTagName("script")[0];
    e.parentNode.insertBefore(t, e)
}();

$(function () {
    $(".fixBar").animate({right: 0}, 300), $wrapper = $(document.body || document.documentElement), $(".icon-toggle").on("click", function (t) {
        t.preventDefault(), t.stopPropagation(), $(".sidebar").stop(!0).addClass("s-translate"), $wrapper.css({
            height: $(window).height(),
            overflow: "hidden"
        })
    }), $(".left-arrow-icon").on("click", function (t) {
        t.preventDefault(), t.stopPropagation(), $(".sidebar").stop(!0).removeClass("s-translate"), $wrapper.css({
            height: "auto",
            overflow: "auto"
        })
    }), $(".sidebar").on("click", function (t) {
        t.stopPropagation()
    }), $(".sidebar-menu > li").each(function () {
        var t = $(this);
        t.find("a").first().on("click", function (e) {
            e.stopPropagation(), t.find(".sidebar-sub-menu").stop(!0).slideToggle().parent().siblings("li").find(".sidebar-sub-menu").stop(!0).slideUp()
        })
    }), $wrapper.on("click", function () {
        $(".sidebar").stop(!0).removeClass("s-translate"), $(this).css({height: "auto", overflow: "auto"})
    })
});
var hoverTimer;
$(".fixBar li").hover(function () {
    var t = $(this);
    hoverTimer = setTimeout(function () {
        t.children(".over-mask").show().css({opacity: 0}).stop().animate({right: parseInt(t.css("width")), opacity: 1})
    }, 200)
}, function () {
    var t = $(this);
    clearTimeout(hoverTimer), setTimeout(function () {
        t.children(".over-mask").stop().animate({
            right: parseInt(t.css("width")) + 20,
            opacity: 0
        }, "normal", "linear", function () {
            t.children(".over-mask").hide()
        })
    }, 200)
});

