Is it possible to expand/collapes all panels in a region with a keystroke or shortcut? In particular, I'm looking for a simple way to collapse all the N and T panels.  I'm using a number of addons and things are starting to get a little cumbersome wheeling up and down to find something so I'd like to collapse them all at once and then expand just the one I want.

If not, is there an API that could make use of?

thanks
Ctrl+LMB on a panel header will close all other panels.