Help making menu script better

Help making menu script better

I have made this menu here:
But surely there must be a better way of doing this?
Can anyone help. I am a total newbie with js and jquery.