init.php : added dynamic nav() function