/**
 * 全局变量定义
 * 
 */ 
	var tab_index = 0;
	var obj_a = {};
	var tab_time;
	var is_lock = 0;
/**
 * 快速搜索切换
 * 
 */
    $(function(){
    
        $("#members_list li").hover(function(){
            $(this).addClass("i-m-img-show-hover");
        },function(){
            $(this).removeClass("i-m-img-show-hover");
        });
        $("#members_new li").hover(function(){
            $(this).addClass("get-register-hover");
        },function(){
            $(this).removeClass("get-register-hover");
        });
        

        $("#tab_img a").click(function(){
            tab_click(this.id.split('_')[1]);
        }).mousemove(function(){
            tab_click(this.id.split('_')[1]);
            tab_run(0);
        }).mouseout(function(){
            tab_run(1);
        });
        tab_run(1);
        obj_a =$("#img_tab_box a");
        $("#img_tab_box").mouseover(function(){
            tab_run(0);
        }).mouseout(function(){
            tab_run(1);
        });
    });

/**
 * 横幅自动滚动
 * 
 */    
    
$(function() {
    $("#kk").scrollable({circular: true}).autoscroll({ autoplay: true });
    
});
    
/**
 * 文字自动滚动
 * 
 */
    
$(function(){
    var _wrap=$('#scrollDiv ul');
    var _interval=8000;
    var _moving;
    _wrap.hover(function(){
        clearInterval(_moving);
    },function(){
        _moving=setInterval(function(){
            var _field=_wrap.find('li:first');
            var _h=_field.height();
            _field.animate({marginTop:-_h+'px'},600,function(){
                _field.css('marginTop',0).appendTo(_wrap);
            })
        },_interval)
    }).trigger('mouseleave');
});






