Go to lib/init.php
and add the second menu:
register_nav_menus(array(
'primary_navigation' => __('Primary Navigation', 'roots'),
'secondary_navigation' => __('Secondary Navigation', 'roots'),
));
Then put the original code I posted in whatever template you want it. You can then choose which menu to display in the menus dash.