External dhtml menu

hi guys, which type of html document should i use to create external menu? is it shtml or dhtm?

and what if i want to insert javascript in it?
for dhtml is similiar with regular html/xhtml document right? just put it in the <head>?

how about if i use shtml? how should i insert the javascript then?

thx