fires before the Actions menu is opened on clicking the Menu button
$$("fmanager").attachEvent("onBeforeMenu", function(){ // your code return true; });