Hi,

Does anybody have any good links to either how to implement smart expanding tree menus, or somewhere to get one from?

I have a menu that works as a tree structure - unfolding when you select a node - but I'd like to make it so that when a user selects a branch, only that branch is unfolded:

Code:
1 Menu 1
  - Menu 1.1
  - Menu 1.2
2 Menu 2
3 Menu 3
Then if someone clicked to navigate through Menu 2 it would immediately:

Code:
1 Menu 1
2 Menu 2
  - Menu 2.1
  - Menu 2.2
3 Menu 3
As you can see, the previously opened branch gets closed and the selected branch gets opened in its place.

Any help would be gratefully received.]

HD