+3  A: 

IDs aren't the only way to target individual elements - you can target elements around the current jQuery element using a variety of methods, just like you have with parent.

You should be able to target the corresponding "expanded" block using siblings():

$("a.expand").click(function()
{
    $(this).parent().hide();
    $(this).parent().siblings('.expanded').show();

    return false;
});
Dexter
Probably '$(this).parent().siblings', 'this' is an anchor element.
Nikita Rybak
Thanks @Nikita - beat you to the fix by several seconds I think ;-)
Dexter
@Dexter you have one too many `});` probably from copy/pasting jpdbaugh's code
Serge
Thanks @Serge.. fixed.
Dexter