add:  var drawToolSubmenu = new Ext.menu.Menu({ id: 'drawToolSubmenu', items: [ {text: 'Select',icon: imgURL+'/select.gif',handler: function(){poop()}}, {text: 'Rectangle',icon: imgURL+'/rectangle.gif',handler: function(){poop()} }, {text: 'Round Rectangle',icon: imgURL+'/roundrect.gif',handler:function(){poop()} }, {text: 'Ellipse/Circle',icon: imgURL+'/circle.gif',handler:function(){ removeKeyframe()}}, {text: 'Line',icon: imgURL+'/line.gif',handler: function(){ removeKeyframe()}} ] });  var lineColorMenu = new Ext.menu.Menu({ id: 'lineColorMenu', items: [ new Ext.menu.ColorItem({ selectHandler: function(zcp, selColor){ Colorobj=document.getElementById('linecolor') if(picker){ picker.setColor(selColor) }else{ colorChangeHandler(null,selColor) } } }) ] });   var fillColorMenu = new Ext.menu.Menu({ id: 'fillColorMenu', items: [ new Ext.menu.ColorItem({ selectHandler: function(zcp, selColor){ Colorobj=document.getElementById('fillcolor') if(picker){ picker.setColor(selColor) }else{ colorChangeHandler(null,selColor) } } }) ] });  var canvasContextMenu = new Ext.menu.Menu({ id: 'canvasContextMenu', items: [ {text: 'Next Frame',icon: imgURL+'/control_fastforward_blue.png',handler: poop}, {text: 'Previous Frame',icon: imgURL+'/control_rewind_blue.png',handler: poop}, {text: 'Play',icon: imgURL+'/control_play_blue.png',handler: poop}, {text: 'Delete Shape',icon: imgURL+'/delete.png',handler: poop}, {text: 'Clear Frame',icon: imgURL+'/cancel.png',handler: poop}, {text: 'Undo',icon: imgURL+'/arrow_undo.png',handler: poop}, {text: 'Drawing Tool',icon: imgURL+'/paintbrush.png', menu: drawToolSubmenu}, {text: 'Fill Color',icon: imgURL+'/color_wheel.png', menu: fillColorMenu}, {text: 'Line Color',icon: imgURL+'/color_wheel.png', menu: lineColorMenu} ] });  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/af9f096c35280c572f3a344cbbc4dee702b4ef92/menus.js/buggy/Animator/ajaxanimator/menus.js