$(function(){
    //
    if(!(/msie [6|7|8|9]/i.test(navigator.userAgent))) {
    var wow = new WOW({
        boxClass: 'wow',
        animateClass: 'animated',
        offset: 0,
        mobile: true,
        live: true
    });
    wow.init();
 }; 
 
 
$(".tabmenu .lk").click(function(){
    
        $(this).addClass("cur").siblings().removeClass("cur");
        
        var index=$(this).parent('.tabmenu').children('.lk').index(this);    
        
        $(this).parents(".tabmenu").siblings(".tabwrap").find(".module").eq(index).show().siblings().hide();
        
    });
    $(".tab_menu .lk").hover(function(){
    
        $(this).addClass("cur").siblings().removeClass("cur");
        
        var index=$(this).parent('.tab_menu').children('.lk').index(this);    
        
        $(this).parents(".tab_menu").siblings(".tab_wrap").find(".module").eq(index).show().siblings().hide();
        
    });


$('.sj_menu').click(function(){
       $(this).toggleClass('close').siblings('.hd_nav').toggle();
   });
   
   

    

   
});





/*xuanfu*/

$(document).ready(function(){
  $(document).on("mouseenter", ".suspension .a", function(){
    var _this = $(this);
    var s = $(".suspension");
    var isService = _this.hasClass("a-service");
    var isServicePhone = _this.hasClass("a-service-phone");
    var isQrcode = _this.hasClass("a-qrcode");
    if(isService){ s.find(".d-service").show().siblings(".d").hide();}
    if(isServicePhone){ s.find(".d-service-phone").show().siblings(".d").hide();}
    if(isQrcode){ s.find(".d-qrcode").show().siblings(".d").hide();}
  });
  $(document).on("mouseleave", ".suspension, .suspension .a-top", function(){
    $(".suspension").find(".d").hide();
  });
  $(document).on("mouseenter", ".suspension .a-top", function(){
    $(".suspension").find(".d").hide(); 
  });
  $(document).on("click", ".suspension .a-top", function(){
    $("html,body").animate({scrollTop: 0});
  });
  $(window).scroll(function(){
    var st = $(document).scrollTop();
    var $top = $(".suspension .a-top");
    if(st > 200){
      $top.css({display: 'block'});
    }else{
      if ($top.is(":visible")) {
        $top.hide();
      }
    }
  });
  
}); 