refactored the sub navigation generation code to allow generated sub men...

...u to be less obtrusive and easier to remove.