well, as for the dynamic html, I can point you to a JS HW I did... maybe you can extrapolate how to do what you want from it... (Ican't say as me'n JS ever got along, so I try not to use it
)
ack, stand corrected, overwrote the damn thing. may wanna look into DHTML though?