// JavaScript 文件


///////////////////////////////////////////////////////////////////////////////////////////////////////
//此段代码用于top.master文件中的导航栏菜单系统的
//////////////////////////////////////////////////////////////////////////////////////////////////////
var t_menuItem_status=false;
var t_menuItem_timeout;
var t_title_color="";
function t_show(id,width,height,t)
{
    var obj=document.getElementById(id);
    if(obj.style.display==""){return false;}
    obj.style.height="20px";
    //t_title_color=t.style.color;
    //t.style.color="#f00";
    t.style.fontWeight="bold";
    obj.style.display="";
    obj.style.zIndex="1000";
    t_menuItem_status=true;
    var t=setInterval(function(){
                                    var h=parseInt(obj.style.height,10);
                                    //var w=parseInt(obj.style.width,10);
                                    
                                    if(h>=height)
                                    {
                                        obj.style.height=height+"px";
                                        clearInterval(t);                                        
                                    }
                                    else
                                    {
                                        obj.style.height=(h+10)+"px";
                                    }
                                }
                                    ,4);
    
}

function t_hide(id,t)
{
    if(t_menuItem_status)
    {
        t_menuItem_timeout=setTimeout(function(){
                                                    var obj=document.getElementById(id);
                                                    obj.style.display="none";
                                                    //document.getElementById(t).style.fontWeight="";
													t.style.fongWeight="";
                                                    },200);
        return false;
    }
    else
    {
        var obj=document.getElementById(id);
        obj.style.display="none";
    }    
}

function t_divShow()
{
    if(t_menuItem_timeout)
    {
        clearTimeout(t_menuItem_timeout);
    }
    t_menuItem_status=true;
}
function t_divHide(id,t)
{
    t_menuItem_timeout=setTimeout(function(){
                                                var obj=document.getElementById(id);
                                                obj.style.display="none";
                                                document.getElementById(t).style.fontWeight="";
                                            },
                        500);        
}
