In emacs 24, passing nil to menu-bar-mode and tool-bar-mode enables them. Pass -1 to disable.