If you haven't already, checkout this
webinar on Layout and View enhancements.
It seams to me you should be putting your dynamic menus/sidebars/etc in a placeholder then echoing that placeholder in your layout. There are a number of view helpers related to layout that can assist so make sure to check the reference manuals Layout and View sections for assistance with those as well.
Zend Framework: Documentation
Zend Framework: Documentation