rem: {text: 'Support',icon: '../images/money.png',handler: function(){showTehAdz();}} 
add: {text: 'Support',icon: '../images/money.png',handler: function(){Ext.MessageBox.alert("Blah","Um... Hi")}} 
context: Ext.onReady(function(){	var topToolbar = new Ext.Toolbar('north-tb');	//////////////////////SubMenu Items///////////////////////////    var fileMenu = new Ext.menu.Menu({		        id: 'fileMenu',        items: [			{text: 'New', icon: '../images/new.png', handler: function(){confirmNewCanvas()}},			{text: 'Open', icon: '../images/open.gif', handler: function(){showFileSystemDialog()}},			{text: 'Save', icon: '../images/disk.gif',handler: function(){showFileSystemDialog()}},			{text: 'Save As', icon: '../images/disk.gif',handler: function(){showFileSystemDialog()}},			'-',			{text: 'Publish', icon: '../images/page_white_flash.png',handler: function(){mainLayout.getRegion('center').showPanel('preview-div')}}        ]    });	var editMenu = new Ext.menu.Menu({        id: 'editMenu',        items: [			{text: 'Undo', icon: '../images/arrow_undo.png',handler: function(){try{undo()}catch(err){}}},			{text: 'Copy', icon: '../images/page_copy.png',handler:  function(){copyObj()}},			{text: 'Paste', icon: '../images/page_paste.png',handler: function(){ pasteObj()}}        ]    });	var viewMenu = new Ext.menu.Menu({        id: 'viewMenu',        items: [			{text: 'Animation', icon: '../images/page_white_flash.png',handler: function(){mainLayout.getRegion('center').showPanel('preview-div')}}        ]    });	var toolsMenu = new Ext.menu.Menu({        id: 'toolsMenu',        items: [			{text: 'Clear Timeline', icon: '../images/cancel.png',handler: function(){mainLayout.getRegion('center').showPanel('preview-div');}},			{text: 'Color Picker', icon: '../images/color_wheel.png',handler:  function(){showColorDialog()}},			{text: 'Script/Macro Executor', icon: '../images/application_xp_terminal.png',handler: function(){mainLayout.getRegion('south').showPanel('scriptExec-div');}},			{text: 'Debug Window',icon: '../images/brick_go.png',handler:  function(){ openDebug()}}        ]    });	var timelineMenu = new Ext.menu.Menu({        id: 'timelineMenu',        items: [			{text: 'To Keyframe',icon: '../images/add.png',handler:  function(){toKeyframe()}},			{text: 'Clear Frame',icon: '../images/delete.png',handler:  function(){removeKeyframe()}},			{text: 'Refresh Data',icon: '../images/action_refresh.gif',handler:  function(){fullgotoframe()}},			{text: 'New Layer',icon: '../images/add.png',handler:  function(){addLayer()}}        ]    });		var animationMenu = new Ext.menu.Menu({        id: 'animationMenu',        items: [			{text: 'Play',icon: '../images/control_play_blue.png',handler: function(){playAnimation()}},			{text: 'Stop',icon: '../images/control_stop_blue.png',handler: function(){stopAnimation()}},			{text: 'Next Frame',icon: '../images/control_fastforward_blue.png',handler: function(){nextFrame()}},			{text: 'Previous Frame',icon: '../images/control_rewind_blue.png',handler: function(){preFrame()}},			{text: 'Last Frame',icon: '../images/control_end_blue.png',handler: function(){lastFrame()}},			{text: 'First Frame',icon: '../images/control_start_blue.png',handler: function(){firstFrame()}},			{text: 'Set Last Frame',icon: '../images/control_end_blue.png',handler: function(){setLastFrame()}}        ]    });	var userMenu = new Ext.menu.Menu({        id: 'userMenu',        items: [			{text: 'Logout',icon: '../images/logout.png',handler: function(){logout()}},			{text: 'Refresh Animation List',icon: '../images/action_refresh.gif',handler: function(){animationList()}},			{text: 'Browse Animations',icon: '../images/user_go.png',handler: function(){showUADialog()}}        ]    });	var helpMenu = new Ext.menu.Menu({        id: 'helpMenu',        items: [			{text: 'About',icon: '../images/help.png',handler: function(){Ext.MessageBox.alert("This was developed entirely by Antimatter15, the special thanks to section isnt here yet because of ajax issues...")}},			{text: 'Key Shortcuts', icon: '../images/help.png',handler: function(){showKeyGuide()}},			{text: 'Manual',icon: '../images/help.png',handler: function(){Ext.MessageBox.alert("LA LA LA","Okay, so um.... play around until it breaks?")}},			{text: 'FAQ',icon: '../images/help.png',handler: poop},			{text: 'Seizure',icon: '../images/help.png',handler: function(){Ext.MessageBox.alert("Yo!","Hey, this is a Flash ANIMATOR application, ISN'T it? Make one yourself")}},			{text: 'Support',icon: '../images/money.png',handler: function(){showTehAdz();}}        ]    });		//////////////////////Menu Items///////////////////////////	topToolbar.addButton({    text: 'File',	menu: fileMenu    });	topToolbar.addButton({    text: 'Edit',	menu: editMenu    });	topToolbar.addButton({    text: 'View',	menu: viewMenu    });	topToolbar.addButton({    text: 'Tools',	menu: toolsMenu    });	topToolbar.addButton({    text: 'Timeline',	menu: timelineMenu    });	topToolbar.addButton({    text: 'Animation',	menu: animationMenu    });	topToolbar.addButton({    text: 'User',	menu: userMenu    });	topToolbar.addButton({    text: 'Help',	menu: helpMenu    });var loginToolbar = new Ext.Toolbar('login-tb');loginToolbar.addText("Login")loginToolbar.addSeparator() regbutton = loginToolbar.addButton({id: 'registerButton',text: 'Register', handler: function(){showRegisterDialog()}})logoutbutton = loginToolbar.addButton({id: 'logoutButton',text: 'Logout', handler: function(){logout()}})logoutbutton.setVisible(false)var histToolbar = new Ext.Toolbar('history-tb');histToolbar.addText("History")histToolbar.addSeparator() histToolbar.addButton({text: 'Clear', handler: function(){clearHist()}})var centerToolbar = new Ext.Toolbar('center-tb');//centerToolbar.addElement($('status'))canvasWidthField = new Ext.form.TextField({value: '480',width: '50px'})canvasHeightField = new Ext.form.TextField({value: '272',width: '50px'})framerateField = new Ext.form.TextField({value: '12',width: '50px'})canvasWidthField.on("change",function(textObj,newVal,oldVal){canvasWidth = parseInt(newVal)setCP()});canvasHeightField.on("change",function(textObj,newVal,oldVal){canvasHeight = parseInt(newVal)setCP()});framerateField.on("change",function(textObj,newVal,oldVal){AnimationFramerate = parseInt(newVal)});centerToolbar.addText("Width:")centerToolbar.addField(canvasWidthField)centerToolbar.addText("Height:")centerToolbar.addField(canvasHeightField)centerToolbar.addText("Framerate:")centerToolbar.addField(framerateField)});
meta: 5269	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5269/97802ef3267f9aca6da074e164a470f1b5813784/jsOut.js/buggy/Animator/dev/tmp/jsOut.js