How do you do dynamically show and hide block elements in HTML? [renamed]

on kirupaforum’s homepage. The black arrows at the right hand side of a forum title. You click it and it hides data (and changes the images) clicking it again resets it.

How do you do that…I’m guessing in javascript?