new menu()

var m = new menu(text,function,text,function,...,...)
The texts appear on the buttons, and the functions are executed when the button is clicked. Texts can be Functions can be: Function can be the names of already defined functions, or anonymous inline functions, like:
var m = new menu (
    "text 1",function(){alert("pushed 1")},
    "text 2",function(){alert("pushed 2")}
	...
)
Note that with a named function the parentheses have to be omitted, else the return value of the function will be passed, not the function itself.