long_block = {
    expand: function(id, dir) {
        var obj = $('#'+id);
        var next = obj.next();
        
        if (obj.length == 0) return false;
        
        if (dir == 'up') {
            obj.animate({height: 'hide'}, function() {
                next.animate({height: 'show'});
            });
        }
        if (dir == 'down') {
            next.animate({height: 'hide'}, function() {
                obj.animate({height: 'show'});
            });
        }
    }
}
