add:  var drawToolSubmenu = new Ext.menu.Menu({ id: 'drawToolSubmenu', items: [ {text: 'Select',icon: '../images/select.gif',handler: function(){poop()}}, {text: 'Rectangle',icon: '../images/rectangle.gif',handler: function(){poop()} }, {text: 'Round Rectangle',icon: '../images/roundrect.gif',handler:function(){poop()} }, {text: 'Ellipse/Circle',icon: '../images/circle.gif',handler:function(){ removeKeyframe()}}, {text: 'Line',icon: '../images/line.gif',handler: function(){ removeKeyframe()}} ] });  var canvasContextMenu = new Ext.menu.Menu({ id: 'canvasContextMenu', items: [ {text: 'Next Frame',icon: '../images/control_fastforward_blue.png',handler: poop}, {text: 'Previous Frame',icon: '../images/control_rewind_blue.png',handler: poop}, {text: 'Play',icon: '../images/control_play_blue.png',handler: poop}, {text: 'Delete Shape',icon: '../images/delete.png',handler: poop}, {text: 'Clear Frame',icon: '../images/cancel.png',handler: poop}, {text: 'Undo',icon: '../images/arrow_undo.png',handler: poop}, {text: 'Drawing Tool',icon: '../images/paintbrush.png', menu: drawToolSubmenu} ] });  Ext.get("canvas-div").on("contextmenu",function(e){ canvasContextMenu.showAt(e.getXY()); e.stopEvent(); e.stopPropagation() e.preventDefault }); }); 
context: Ext.get("frameContainer").on("contextmenu",function(e){	timelineContextMenu.showAt(e.getXY());	e.stopEvent();	e.stopPropagation()	e.preventDefault});
meta: 5269	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5269/46b803ff68505f2c4680f923cbda36d69ec9d09b/jsOut.js/clean/Animator/dev/tmp/jsOut.js