After an incredibly ugly fight with javascript, have managed to hack together a workable way for the treemenu to stay open to the currently selected module...did I mention that I hate javascript and php?  Going to take a nap now.