RJS Question - Creating an accordion effect with RJS/Scripta

I’m having trouble creating an effect with Scriptaculous and RJS
templates to achieve something along the lines of this moo.fx accordion
effect you can see here:

http://moofx.mad4milk.net/

or here:

http://launchy.net/

Ideally it would work in almost the same way as in the examples above,
except the effect would be used on dynamically generated content, so
I’d be making remote calls (which I’d assume shouldn’t really make a
difference one way or another).

Any ideas?

Thanks,
Adam