I believe by placing the script in the jscript folder and giving it the prefix of jscript_ it will automatically be called in the header, no need to add part #2 in your question
To make the menu appear just place the body code into your page/sidebox etc. where you want it to show.


- the most important piece - is put the actual menu in - which is either in a menu table or div... that displays the whole thing and calls the functions. 
