I have a DOM in the form of
jQuery 1.4 now has the .nextUntil(selector) function:
$('div.parent').toggle( function() { $(this).nextUntil('div.parent').hide(); }, function() { $(this).nextUntil('div.parent').show(); } );