Occurs before the moment when a contextual menu appears by a right mouse click.
This event calls user-defined handlers (if there are any) and passes the following parameters:
tree.attachEvent("onBeforeContextMenu", function(itemId){});