If you wish to use CSS to do the same, look here:
http://www.alistapart.com/articles/dropdowns
[Most unfortunate that IE has not caught up to the modern world and that still so many users use an outdated browser like IE]
This is one of my favorite site to learn how to use CSS to separate presentation from content.