The image below is from the future. :) It shows a context-related right-click menu implemented with just a few lines of #HTML5 code. This is already part of the official HTML 5 spec but is only supported by Firefox at the moment. The spec describes menus that are related to a section, can have sub-menus and even support icons.
Check out how to do it in the example by http://bit.ly/zmMKJ6 (via )at
If you can't wait for the future, here's a #jQuery solution http://bit.ly/Aii4rq