Control.ContextMenu provides a simple API for programming contextual menus with Prototype. You can attach a context menu to the entire document or any Element. Menus can be triggered via a right click (default), or left click.
Prototype & script.aculo.us
Practical Prototype and script.aculo.us