rem: if ( oToolbarSet = eToolbarTarget.__FCKToolbarSet ) 
add: oToolbarSet = eToolbarTarget.__FCKToolbarSet ; if ( oToolbarSet ) 
context: function FCKToolbarSet_Create( overhideLocation ){	var oToolbarSet ;		var sLocation = overhideLocation || FCKConfig.ToolbarLocation ;	switch ( sLocation )	{		case 'In' :				document.getElementById( 'xToolbarRow' ).style.display = '' ;				oToolbarSet = new FCKToolbarSet( document ) ;			break ;			//		case 'OutTop' :			// Not supported.					default :			FCK.Events.AttachEvent( 'OnBlur', FCK_OnBlur ) ;			FCK.Events.AttachEvent( 'OnFocus', FCK_OnFocus ) ;			var eToolbarTarget ;						// Out:[TargetWindow]([TargetId])			var oOutMatch = sLocation.match( /^Out:(.+)\((\w+)\)$/ ) ;			if ( oOutMatch )			{				eToolbarTarget = eval( 'parent.' + oOutMatch[1] ).document.getElementById( oOutMatch[2] ) ;			}			else			{				// Out:[TargetId]				oOutMatch = sLocation.match( /^Out:(\w+)$/ ) ;				if ( oOutMatch )					eToolbarTarget = parent.document.getElementById( oOutMatch[1] ) ;			}						if ( !eToolbarTarget )			{				alert( 'Invalid value for "ToolbarLocation"' ) ;				return this._Init( 'In' ) ;			}						// If it is a shared toolbar, it may be already available in the target element.			if ( oToolbarSet = eToolbarTarget.__FCKToolbarSet )				break ;			// Create the IFRAME that will hold the toolbar inside the target element.			var eToolbarIFrame = FCKTools.GetElementDocument( eToolbarTarget ).createElement( 'iframe' ) ;			eToolbarIFrame.frameBorder = 0 ;			eToolbarIFrame.width = '100%' ;			eToolbarIFrame.height = '10' ;			eToolbarTarget.appendChild( eToolbarIFrame ) ;			eToolbarIFrame.unselectable = 'on' ;						// Write the basic HTML for the toolbar (copy from the editor main page).			var eTargetDocument = eToolbarIFrame.contentWindow.document ;			eTargetDocument.open() ;			eTargetDocument.write( '<html><head><script type="text/javascript"> window.onload = window.onresize = function() { window.frameElement.height = document.body.scrollHeight ; } </script></head><body style="overflow: hidden">' + document.getElementById( 'xToolbarSpace' ).innerHTML + '</body></html>' ) ;			eTargetDocument.close() ;						eTargetDocument.oncontextmenu = FCKTools.CancelEvent ;			// Load external resources (must be done here, otherwise Firefox will not			// have the document DOM ready to be used right away.			FCKTools.AppendStyleSheet( eTargetDocument, FCKConfig.SkinPath + 'fck_editor.css' ) ;						oToolbarSet = eToolbarTarget.__FCKToolbarSet = new FCKToolbarSet( eTargetDocument ) ;			oToolbarSet._IFrame = eToolbarIFrame ;			if ( FCK.IECleanup )				FCK.IECleanup.AddItem( eToolbarTarget, FCKToolbarSet_Target_Cleanup ) ;	}		oToolbarSet.CurrentInstance = FCK ;	FCK.AttachToOnSelectionChange( oToolbarSet.RefreshItemsState ) ;	return oToolbarSet ;}
meta: 8533	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8533/30774da157017224af5d9a1b55d04bf21f55a840/fcktoolbarset.js/buggy/library/src/webapp/editor/FCKeditor/editor/_source/internals/fcktoolbarset.js