add: previewToolbar.addText('<div id="export"></div>'); 
context: MainLayout = function() {	return {		init : function() {			var topToolbar = new Ext.Toolbar('north-tb');			var centerToolbar = new Ext.Toolbar('center-tb');			var loginToolbar = new Ext.Toolbar('login-tb');			var evalToolbar = new Ext.Toolbar('eval-tb');			evalToolbar.addText("Script/Macro Executor")			evalToolbar.add("-")			evalToolbar.addButton({text: 'Execute', handler: function(){eval($('evalScript').value)}})			var propToolbar = new Ext.Toolbar('prop-tb');			propToolbar.addText("Properties")			var histToolbar = new Ext.Toolbar('history-tb');			var previewToolbar = new Ext.Toolbar('preview-tb');			previewToolbar.addText("Preview");			previewToolbar.add("-")						previewToolbar.addButton(pButton);			previewToolbar.addButton(eButton);			//previewToolbar.add("<div id=''")			var mainLayout = new Ext.BorderLayout(document.body, {				north:{ titlebar: false, split: true, initialSize: 120 , collapsible: true, toolbar: topToolbar}, 				south:{ tilebar: false, split: true, initialSize: 100 , collapsible: true}, 				east: { titlebar: false, split: true, initialSize: 120 , collapsible: true}, 				west: { titlebar: true, split: true, initialSize: 60 , collapsible: true}, 				center: { }			});			mainLayout.on("regionresized",timelineResize);			mainLayout.beginUpdate();			mainLayout.add('north', new Ext.ContentPanel('north-div', {autoScroll: false, fitToFrame: true, closable: false }));			mainLayout.add('south', new Ext.ContentPanel('properties-div', {title: 'Properties', fitToFrame: true, closable: false }));			mainLayout.add('south',new Ext.ContentPanel('scriptEval-div', {toolbar: evalToolbar,autoScroll: false,title: 'Macro/Script Executor', fitToFrame: true, closable: false }))		   			mainLayout.add('east', new Ext.ContentPanel('history-div', {title: 'History', toolbar: histToolbar,fitToFrame: true, closable: false }));			mainLayout.add('east', new Ext.ContentPanel('login-div', {title: 'Login', toolbar: loginToolbar,fitToFrame: true, closable: false }));			mainLayout.add('west', new Ext.ContentPanel('toolbar-div', { title: 'Tools', fitToFrame: true, closable: false }));			mainLayout.add('center', new Ext.ContentPanel('canvas-div', {toolbar:centerToolbar,title: 'Canvas', fitToFrame: true })); 			mainLayout.add('center', new Ext.ContentPanel('preview-div', {toolbar: previewToolbar,title: 'Preview', fitToFrame: true })); 			mainLayout.getRegion('center').showPanel('canvas-div');			mainLayout.getRegion('east').showPanel('history-div');			mainLayout.getRegion('south').showPanel('properties-div');			mainLayout.getRegion('center').getPanel('preview-div').on("activate",function(e){				if(!initPreview){				addJS("../ajaxanimator/flash.js",function(){				preFlash();				if(isIE() == true){				setTimeout("preFlash()",1000)				setTimeout("preFlash()",5000)				}				})				initPreview = "true";				}else{				preFlash();				if(isIE() == true){				setTimeout("preFlash()",1000)				setTimeout("preFlash()",5000)				}				}			});			mainLayout.endUpdate();		}	};}();
meta: 5269	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5269/243a59612a43c09ead0c43804694f991a1a59294/layout.js/buggy/Animator/ajaxanimator/layout.js