Anyone know how to do this?

Hey,

Ive seen this on a few sites now.
I have seen many tutorials on slide menus and slide bars, but never one where the bar resizes to fit the menu option size when the button is clicked…

http://www.mission.no/

Does anyone know how to do this?
I am assuming its values for the shape in question…
Would really appreciate any help