Hey Alvaro, this sounds interesting, is there a demo where I can take a look? Even if it does not help with the Menus it might be helpful for content generation...
To demonstrate what I want, take a look at http://developer.yahoo.com/yui/examples/menu/topnavfrommarkup_source.html
Communication, Shopping, Entertainment and Information are "TOP Level" Categories, PIM Is a subcategory of Communication and the rest are pages, which I can order by e.g. the page section.