fires the moment context menu is called
some.attachEvent("onBeforeShow", function(){ //... some code here ... });