fires when the user clicks the right mouse button
myTree.attachEvent("onRightClick", function(id, ev){ // your code here });