By the way, if you only want the currently selected top cat to fully expand, you can use the built-in case 3, and set the define like this:
PHP Code:
define('CAT_BOX_ACTIVE_LEVEL''3|0|0');//full active tree; only top cats when no cat selected