jQuery(document).ready(function() {
    $(window).scroll(function() {
        if ($(window).scrollTop() > 100) {
            $(".back2top").fadeIn(500);
        } else {
            $(".back2top").hide();
        }
    });
    $(".back2top").click(function() {
        $('body,html').animate({
            scrollTop: 0
        },
        500);
        return false;
    });
    $(".nf-baoming a").click(function() {
        $('body,html').animate({
            scrollTop: $(".nf-zxbm").offset().top
        },
        500);
        return false;
    });
    $("a.weixin").hover(function() {
        $(".weixin_code").fadeIn();
    },
    function() {
        $(".weixin_code").hide();
    });
    $("a.weibo").hover(function() {
        $(".weibo_code").fadeIn();
    },
    function() {
        $(".weibo_code").hide();
    });
    $(".nf-zxbm-slider").slide({
        mainCell: ".bd ul",
        autoPlay: true,
        effect: "topMarquee",
        vis: 9,
        interTime: 50,
        trigger: "click"
    });
    $(".nf-float .erweima").hover(function() {
        $(".nf-float .erweima ul").fadeIn();
    },
    function() {
        $(".nf-float .erweima ul").hide();
    });
    
    $(".nf-float .erweima1").hover(function() {
        $(".nf-float .erweima1 ul").fadeIn();
    },
    function() {
        $(".nf-float .erweima1 ul").hide();
    });
    
    $(".nf-float .erweima2").hover(function() {
        $(".nf-float .erweima2 ul").fadeIn();
    },
    function() {
        $(".nf-float .erweima2 ul").hide();
    });
    
    $(".nf-float .erweima3").hover(function() {
        $(".nf-float .erweima3 ul").fadeIn();
    },
    function() {
        $(".nf-float .erweima3 ul").hide();
    });
    
    
    $(".nf-float .erweima4").hover(function() {
        $(".nf-float .erweima4 ul").fadeIn();
    },
    function() {
        $(".nf-float .erweima4 ul").hide();
    });
    
    $(".nf-float li.tel").hover(function() {
        var _this = $(this);
        _this.removeClass("hover").stop().animate({
            left: -220
        },
        400)
    },
    function() {
        var _this = $(this);
        _this.stop().animate({
            left: 0
        },
        400,
        function() {
            _this.addClass("hover")
        })
    }) 
	$(".nf-float li.normal").hover(function() {
        $(this).removeClass("hover").stop().animate({
            marginLeft: -10
        },
        400)
    },
    function() {
        var _this = $(this);
        _this.stop().animate({
            marginLeft: 0
        },
        400,
        function() {
            _this.addClass("hover")
        })
    });
});