I am developing a script that builds nodes programatically based on some data held in a separate database table. It's working well, nodes are created on the flyand added to a menu of my choosing with data applied to CCKs. One part of the script will create the CCKs if they don't exist already, but I need to do the same with menus. Is there a function that will look to see if a menu exists and another that will create a menu? The reason for this is so that once I have perfected it I can hand it to somebody else to do a quick install by running the script once.