$(function(){
    
    new Swiper('.topNews .swiper',{
        slidesPerView: 1,
        loop:true,
        speed: 1000,
        autoplay: {
            delay: 10000,
            stopOnLastSlide: false,
            disableOnInteraction: false,
        },
        pagination: {
            el: '.topNews .swiper-pagination',
            clickable:true,
        },
    });

    new Swiper('.istop .swiper',{
        slidesPerView: 1,
        loop:true,
        speed: 1000,
        autoplay: {
            delay: 5000,
            stopOnLastSlide: false,
            disableOnInteraction: false,
        },
        pagination: {
            el: '.istop .swiper-pagination',
            clickable:true,
        },
    });
    new Swiper('.snews .swiper',{
        slidesPerView: 1,
        loop:true,
        speed: 1000,
        autoplay: {
            delay: 5000,
            stopOnLastSlide: false,
            disableOnInteraction: false,
        },
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
          },
        pagination: {
            el: '.snews .swiper-pagination',
            clickable:true,
        },
    });
    /*tabname*/    
    $('.links').each(function(){
        var _this = $(this);
        _this.find('.tab span').click(function(){
            $(this).addClass('cur').siblings('span').removeClass('cur');
            var _index = $(this).index();
            _this.find('.list').eq(_index).stop().fadeIn('fast').siblings('.list').hide();
        });
        _this.find('.tab span').eq(0).trigger('click');
    });
    /** */
    new Swiper('.qhonor .swiper',{
        slidesPerView: 1,
        loop:true,
        speed: 1000,
        autoplay: {
            delay: 5000,
            stopOnLastSlide: false,
            disableOnInteraction: false,
        },
        pagination: {
            el: '.qhonor .swiper-pagination',
            clickable:true,
        },
    });
    /** */
    new Swiper('.pdisplay .swiper',{
        slidesPerView: 5,
        loop:true,
        spaceBetween:'0.96154%',
        autoplay: {
            delay: 5000,
            stopOnLastSlide: false,
            disableOnInteraction: false,
        },
        breakpoints: { 
            0: {
              slidesPerView: 1
            },
            751: {
              slidesPerView: 3,
             
            },
            1025: {
                slidesPerView: 5,
            }
          }
      
    });
    

})