To illustrate using a completely separate behavioural layer, I'll demonstrate a collapsible menu system. All of the examples are HTML, but work equally well as XHTML.