Generate navs through js!
<script>
/* 2 pages nav or define your own */
var pages = [ [ {id:'1',title:'Thing1'} , {id:'2',title:'Thing2'} ] ,
[ {id:'3',title:'Thing3'} , {id:'4',title:'Thing4'} ]
];
/* set current page through asp.net or php like currentPage =0 for index.html and currentPage =1 for painel.htm */
var currentPage = 0;
function renderNavs()
{
var data = pages[currentPage];
for(var i=0; i<data.length ; i++)
{
$('#topic').append('<li id="'+data[i].id+'">' + data[i].title + '</li>');
');
}
}
$('#topic').empty();
renderNavs();
</script>