// $(function(){
//     //�Ϲ���
//     $(".compliance .article").first().show();
//     $(".compliance_title").first().addClass("bjs").children(".img_jt").addClass("img_jt_s");
//     $(".img_jt").click(function(){
//         if(!$(this).parent('.compliance_title').hasClass('bjs')){
//             $('.compliance_title').removeClass('bjs');
//             $(this).parent('.compliance_title').addClass('bjs');
//             $(".img_jt").removeClass('img_jt_s');
//             $(this).addClass('img_jt_s');
//             $(".article").slideUp();
//             $(this).parent().next(".article").slideDown("3000")
//         }
//
//     });
//
//
//     // //��ҳnav
//     // $(".nav .ul_1 .ul_li").mouseenter(function(){
//     //     $(this).find(".ul_2").stop().slideDown(300);
//     // });
//     // $(".nav .ul_1 .ul_li").mouseleave(function(){
//     //     $(this).find(".ul_2").stop().slideUp(300);
//     // });
//
//
//
//
//
//
//     $(".nav-toggle").click(function() {
//         $("#sideli").toggleClass("sideclk");
//         $("body").toggleClass("sideopen");
//     });
//     $(".shadow").click(function() {
//         $("#sideli").toggleClass("sideclk");
//         $("body").toggleClass("sideopen");
//     });
//
//
//      //头部weixin公众号
//     $(".header_top_img").mouseenter(function(){
//         $(this).find(".gzh").stop().slideDown(300);
//     });
//     $(".header_top_img").mouseleave(function(){
//         $(this).find(".gzh").stop().slideUp(300);
//     });
//
//      $(".header_top_lan").mouseenter(function(){
//         $(this).children(".language").stop().slideDown(300);
//     });
//     $(".header_top_lan").mouseleave(function(){
//         $(this).children(".language").stop().slideUp(300);
//     });
//
//     //��ҳtab
//     $(".sy_news_ul_tab li").click(function() {
//         var index = $(this).index();
//         $('.sy_news_li_list').eq(index).show().siblings().hide();
//         console.log(index)
//     });
//     $(".sy_news_ul_tab li").hover(function() {
//         var index = $(this).index();
//         $('.sy_news_li_list').eq(index).show().siblings().hide();
//     });
//     $(".sy_news_ul_tab_1 li").click(function() {
//         var index = $(this).index();
//         $('.sy_news_li_list').eq(index).show().siblings().hide();
//         console.log(index)
//     });
//     $(".sy_news_ul_tab_1 li").hover(function() {
//         var index = $(this).index();
//         $('.sy_news_li_list').eq(index).show().siblings().hide();
//     });
//
//
//     //联系我们图标
//       $(".contact_left ul li").mouseenter(function(){
//         $(this).find("img:nth-of-type(2)").show();
//     });
//     $(".contact_left ul li").mouseleave(function(){
//         $(this).find("img:nth-of-type(2)").hide();
//     });
//
// });




$(function(){
    //�Ϲ���
    $(".compliance .article").first().show();
    $(".compliance_title").first().addClass("bjs").children(".img_jt").addClass("img_jt_s");
    $(".img_jt").click(function(){
        if(!$(this).parent('.compliance_title').hasClass('bjs')){
            $('.compliance_title').removeClass('bjs');
            $(this).parent('.compliance_title').addClass('bjs');
            $(".img_jt").removeClass('img_jt_s');
            $(this).addClass('img_jt_s');
            $(".article").slideUp();
            $(this).parent().next(".article").slideDown("3000")
        }

    });


    //��ҳnav
    $(".nav .ul_1 .ul_li").mouseenter(function(){
        $(this).find(".ul_2").stop().slideDown(300);
    });
    $(".nav .ul_1 .ul_li").mouseleave(function(){
        $(this).find(".ul_2").stop().slideUp(300);
    });
    $(".nav-toggle").click(function() {
        $("#sideli").toggleClass("sideclk");
        $("body").toggleClass("sideopen");
    });
    $(".shadow").click(function() {
        $("#sideli").toggleClass("sideclk");
        $("body").toggleClass("sideopen");
    });


    //头部weixin公众号
    $(".header_top_img").mouseenter(function(){
        $(this).find(".gzh").stop().slideDown(300);
    });
    $(".header_top_img").mouseleave(function(){
        $(this).find(".gzh").stop().slideUp(300);
    });

    $(".header_top_lan").mouseenter(function(){
        $(this).children(".language").stop().slideDown(300);
    });
    $(".header_top_lan").mouseleave(function(){
        $(this).children(".language").stop().slideUp(300);
    });

    //��ҳtab
    $(".sy_news_ul_tab li").click(function() {
        var index = $(this).index();
        $('.sy_news_li_list').eq(index).show().siblings().hide();
    });
    $(".sy_news_ul_tab li").hover(function() {
        var index = $(this).index();
        if(index==0){
            $('.sy_news_li_list').show();
            $('.sy_news_li_list1').hide();
            $('.sy_news_li_list2').hide();
        }
        if(index==1){
            $('.sy_news_li_list1').show();
            $('.sy_news_li_list').hide();
            $('.sy_news_li_list2').hide();
        }
        if(index==2){
            $('.sy_news_li_list2').show();
            $('.sy_news_li_list1').hide();
            $('.sy_news_li_list').hide();
        }
        console.log('11111122221111',index)
    });


    //index
    $(".sy_news_ul_tab_index li").click(function() {
        var index = $(this).index();
        $('.sy_news_li_list').eq(index).show().siblings().hide();
    });
    $(".sy_news_ul_tab_index li").hover(function() {
        var index = $(this).index();
        $('.sy_news_li_list').eq(index).show().siblings().hide();
    });


    //联系我们图标
    $(".contact_left ul li").mouseenter(function(){
        $(this).find("img:nth-of-type(2)").show();
    });
    $(".contact_left ul li").mouseleave(function(){
        $(this).find("img:nth-of-type(2)").hide();
    });


    $(".sy_news_ul_tab_1 li").click(function() {
        var index = $(this).index();
        $('.sy_news_li_list').eq(index).show().siblings().hide();
    });
    $(".sy_news_ul_tab_1 li").hover(function() {
        var index = $(this).index();
        $('.sy_news_li_list').eq(index).show().siblings().hide();
    });
});

