Semantically you can't have a DIV tag within a UL list. Why not just remove the DIV, and have the script contract/expand the entire UL, something like:
Code:
<h3 id="joecontent1-title" class="top">Navegação</h3>
<!--Início Menu Principal-->
<ul id="joecontent1" class="switchgroup2">
<!--Início div#joecontent1 - Função Show/Hide Menu-->
<li><a href="./" title="Home">Home</a></li>
<li><a href="#H" title="Home">Notícias</a></li>
<li><a href="#H" title="Home">Pesquisa</a></li>
<li><a href="#G" title="Graduação">Arquivos</a></li>
<li><a href="#PG" title="Pós-Graduação">RSS Feeds</a></li>
<li><a href="#PG" title="Pós-Graduação">Contato</a></li>
</ul>
Be sure to have the script scan for UL elements instead:
Code:
var joeexample=new switchcontent("switchgroup2", "ul")
Bookmarks