
    $(function() {
    // 注册栏默认值清空
    $(".g_top input").focus(function() {
        if ($(this).val() == this.defaultValue) {
          $(this).val("");
        };
      }).blur(function() {
        if ($(this).val() == "") {
          $(this).val(this.defaultValue);
        };
      });
   })


        function searchInfo() {
            var key = document.getElementById("key").value;
            var base = $('head').data('base');
            if (key) {
                location.href = base+"search.php?key=" + key;
            } else {
                alert('请输入您要搜索的关键词！');
            }
        }
    

          jQuery(".fullSlide").slide({ titCell:".hd li", mainCell:".bd ul", effect:"fold",  autoPlay:true, delayTime:700 });
      

  jQuery(".g_an").slide({ mainCell:".m_an ul",vis:1,prevCell:".u_ljt",nextCell:".u_rjt",autoPlay:true,effect:"leftLoop"});


           jQuery(".g_newcon").slide({});
       

   /* 外层tab切换 */
            jQuery(".g_news").slide({titCell:".newq ul li",mainCell:".newcon",targetCell:".more a",   titOnClassName:"cur"});
  

    if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))){
        (function(){
            window.scrollReveal = new scrollReveal({reset: true});
        })();
    };


        $(function() {
            var time;
            //var winHeight = top.window.document.body.clientHeight || $(window.parent).height();
            $('.client-2').css({
                'marginTop': -($('.client-2').height() / 2)
            });
            $('#client-2 li').on({
                'mouseenter': function() {
                    var scope=this;
                    time = setTimeout(function() {
                        var divDom = $(scope).children('div');
                        var maxWidth = divDom.width();
                        $(scope).stop().animate({
                            left: 77-maxWidth
                        }, 'normal', function() {
                            var pic = $(scope).find('.my-kefu-weixin-pic');
                            if (pic.length > 0) {
                                pic.show();
                            }
                        });
                    }, 100)
                },
                'mouseleave': function() {
                    var pic = $(this).find('.my-kefu-weixin-pic');
                    var divDom = $(this).children('div');
                    var maxWidth = divDom.width();
                    if (pic.length > 0) {
                        pic.hide();
                    }
                    clearTimeout(time);
                    var divDom = $(this).children('div');
                    $(this).stop().animate({
                        left: 0
                    }, "normal", function() {});
                }
            });
            //返回顶部
            $(window).scroll(function() {
                var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
                var eltop = $("#client-2").find(".my-kefu-ftop");
                if (scrollTop > 0) {
                    eltop.show();
                } else {
                    eltop.hide();
                }
            });
            $("#client-2").find(".my-kefu-ftop").click(function() {
                var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
                if (scrollTop > 0) {
                    $("html,body").animate({
                        scrollTop: 0
                    }, "slow");
                }
            });
        });
    
