function show_submenu(id, itemwidth) 
{
    $("#" + id).css("visibility","visible");
    
     var width = itemwidth;
        
     $("#" + id + " a.submenulink").each(function(){
        if ($(this).width() > width)
        {
            width = $(this).width();        
        }
     });
     
     $("#" + id).css("width",width);
}

function hide_submenu(id) 
{
    $("#" + id).css("visibility","hidden");
}