Why
<div class="submenu"><ul>$cat_content</ul></div>
instead of
<ul class="submenu">$cat_content</ul>? - Steve