This could perhaps be done more simply with `$.toggleClass` and some CSS.