//开始LI内切换UL显示计时变量
y_ = 0;
//页面初始化
$(function(){
	$.get('/templates/public/login_new/check_log.php',function(data){$('#hearderLogin').html(data).show();if_exsits_tips()});
	//$('#hearderLogin').load('/templates/public/login_new/check_log.php').show();
	//给所有带样式odd_even的UL列表的偶数行添加li_even样式
    $('ul.odd_even').each(function(i){
        $(this).children('li:odd').addClass('li_even');
    })
	//LI内切换UL显示
    $('ul.over_show_details>li').mouseover(function(){
		o = $(this);
        y_ = setTimeout(
		function() {
			if(o.children('ul').css('display') == 'none'){
				o.parent().find('li>ul').slideUp();
				o.find('ul').slideDown();
			}
		},500);
        $(this).mouseout(function(){
             clearBlock();
        })
     })
})
//清楚LI内切换UL显示计时
function clearBlock(){
   if(y_){
	clearTimeout(y_);
	y_=0;
   }
}
function headerLoginOut(){
    $('#hearderLogin').html('正在退出...');
    $.get('/account/?c=logout&a=true',function(){$('#hearderLogin').load('/templates/public/login_new/check_log.php').show();$('#user_space').remove();delCookie('content_user_show');});
}
