$(function(){
// # Add a new row after the first one in the table
$('table#submenu tr:first').after('<tr></tr>');
// # Move the four last TDs to this new row
$('table#submenu tr:first td.submenu:gt(3)') // Select the four last TDs
.detach() // Detach them from their current row
.appendTo('table#submenu tr:nth-child(2)'); // Add them at the end of the new row
});