//开始LI内切换UL显示计时变量
y_ = 0;
//页面初始化
$(function(){
	$.get('../inc/head.asp',function(data){$('#head').html(data).show();});
	$('#top').load('../inc/top.asp').show();
	$('#dh').load('../inc/dh.asp').show();
	$('#bottom').load('../inc/bottom.asp').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(){
    $('#logout').html('正在退出...');
    $.get('../inc/logout.asp',function(){$('#logout').load('../inc/loginform.asp').show();});
}

