Index: /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fck.js
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fck.js	(revision 1203)
+++ /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fck.js	(revision 1204)
@@ -808,122 +808,5 @@
 	SetDialogMode: function( yes )
 	{
-		var doc = this.Window.parent.document ;
-		var editorFrame = this.Window.frameElement ;
-		var editorParentElement = editorFrame.parentNode ;
-		if ( !this.BackgroundBlocker )
-		{
-			this.BackgroundBlocker = doc.createElement( 'iframe' ) ;
-			this.EditorBlocker = doc.createElement( 'iframe' ) ;
-			this.BackgroundBlocker.src = FCKConfig.SkinPath + 'fck_background_blocker.html' ;
-			this.EditorBlocker.src = FCKConfig.SkinPath + 'fck_editor_blocker.html' ;
-
-			this.BackgroundBlocker.frameBorder = 0 ;
-			this.EditorBlocker.frameBorder = 0 ;
-			FCKDomTools.SetElementStyles( this.BackgroundBlocker,
-				{
-					'position' : 'absolute',
-					'zIndex' : 0
-				} ) ;
-			FCKDomTools.SetElementStyles( this.EditorBlocker,
-				{
-					'position' : 'absolute',
-					'zIndex' : FCKConfig.FloatingPanelsZIndex
-				} ) ;
-			FCKDomTools.SetOpacity( this.BackgroundBlocker, 0.5 ) ;
-			FCKDomTools.SetOpacity( this.EditorBlocker, 0.5 ) ;
-			editorParentElement.style.overflow = 'visible' ;
-
-			var me = this ;
-			var resizeHandler = function()
-			{
-				FCKDomTools.SetElementStyles( me.EditorBlocker,
-						{
-							'width' : editorFrame.offsetWidth + 'px',
-							'height' : editorFrame.offsetHeight + 'px'
-						} ) ;
-				FCKDomTools.SetElementStyles( me.BackgroundBlocker,
-						{
-							'width' : Math.max( doc.documentElement.scrollWidth,
-								doc.documentElement.clientWidth,
-								doc.body.scrollWidth ) -1 + 'px',
-							'height' : Math.max( doc.documentElement.scrollHeight,
-								doc.documentElement.clientHeight,
-								doc.body.scrollHeight ) -1 + 'px'
-						} ) ;
-			}
-			FCKTools.AddEventListener( this.Window.parent, 'resize', resizeHandler ) ;
-		}
-
-		if ( yes )
-		{
-			var frameWidth = editorFrame.offsetWidth ;
-			var frameHeight = editorFrame.offsetHeight ;
-			var positionedAncestor = FCKDomTools.GetPositionedAncestor( this.Window.parent, editorParentElement ) ;
-			var positionedAncestorCoords = positionedAncestor ? FCKTools.GetDocumentPosition( this.Window.parent, positionedAncestor ) :
-				{ 'x':0, 'y':0 } ;
-			var editorFrameCoords = FCKTools.GetDocumentPosition( this.Window.parent, editorFrame ) ;
-
-			FCKDomTools.SetElementStyles( this.EditorBlocker,
-				{
-					'width' : editorFrame.offsetWidth + 'px',
-					'height' : editorFrame.offsetHeight + 'px',
-					'left' : ( editorFrameCoords.x - positionedAncestorCoords.x ) + 'px',
-					'top' : ( editorFrameCoords.y - positionedAncestorCoords.y ) + 'px',
-					'display' : ''
-				} ) ;
-			/*
-			FCKDebug.Output( 'width: ' + doc.documentElement.scrollWidth + ':' + doc.documentElement.clientWidth + ':'
-					+ doc.body.scrollWidth ) ;
-			FCKDebug.Output( 'height: ' + doc.documentElement.scrollHeight + ':' + doc.documentElement.clientHeight + ':'
-					+ doc.body.scrollHeight ) ;
-			FCKDebug.Output( 'frame.x: ' + editorFrameCoords.x + ', frame.y:' + editorFrameCoords.y
-				      + ', ancestor.x: ' + positionedAncestorCoords.x + ', ancestor.y: ' + positionedAncestorCoords.y ) ;
-			*/
-			FCKDomTools.SetElementStyles( this.BackgroundBlocker,
-				{
-					'width' : Math.max( doc.documentElement.scrollWidth, 
-						doc.documentElement.clientWidth,
-						doc.body.scrollWidth ) -1 + 'px',
-					'height' : Math.max( doc.documentElement.scrollHeight,
-						doc.documentElement.clientHeight,
-						doc.body.scrollHeight ) -1 + 'px',
-					'left' : ( -1 * positionedAncestorCoords.x ) + 'px',
-					'top' : ( -1 * positionedAncestorCoords.y ) + 'px',
-					'display' : ''
-				} ) ;
-
-			var currentElement = editorFrame ;
-			while ( ( currentElement = currentElement.parentNode ) )
-			{
-				if ( currentElement.nodeType == 1 )
-				{
-					currentElement._fckPreviousZIndex = currentElement.style.zIndex ? currentElement.style.zIndex : '' ;
-					currentElement.style.zIndex = FCKConfig.FloatingPanelsZIndex - 1 ;
-				}
-			}
-			editorParentElement.insertBefore( this.BackgroundBlocker, editorFrame ) ;
-			editorParentElement.appendChild( this.EditorBlocker ) ;
-
-			if ( this.LastActiveButton )
-				FCKToolbarButtonUI_OnMouseOut.apply( this.LastActiveButton.MainElement, [null, this.LastActiveButton] ) ;
-
-			FCKFocusManager.Lock() ;
-		}
-		else
-		{
-			var currentElement = editorFrame ;
-			while ( ( currentElement = currentElement.parentNode ) )
-			{
-				if ( currentElement.nodeType == 1 && currentElement._fckPreviousZIndex != undefined )
-				{
-					currentElement.style.zIndex = currentElement._fckPreviousZIndex ;
-					FCKDomTools.ClearElementJSProperty( currentElement, '_fckPreviousZIndex' ) ;
-				}
-			}
-			this.BackgroundBlocker.parentNode.removeChild( this.BackgroundBlocker ) ;
-			this.EditorBlocker.parentNode.removeChild( this.EditorBlocker ) ;
-	
-			FCKFocusManager.Unlock() ;
-		}
+		return ;
 	}
 } ;
Index: /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckdebug.js
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckdebug.js	(revision 1203)
+++ /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckdebug.js	(revision 1204)
@@ -27,5 +27,7 @@
 {
 	if ( !this.DebugWindow || this.DebugWindow.closed )
+	{
 		this.DebugWindow = window.open( FCKConfig.BasePath + 'fckdebug.html', 'FCKeditorDebug', 'menubar=no,scrollbars=yes,resizable=yes,location=no,toolbar=no,width=600,height=500', true ) ;
+	}
 
 	return this.DebugWindow ;
Index: /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckdialog.js
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckdialog.js	(revision 1203)
+++ /FCKeditor/branches/features/floating_dialog/editor/_source/internals/fckdialog.js	(revision 1204)
@@ -84,40 +84,22 @@
 	ownerWindow.FCKDialogArguments[dialogId] = dialogInfo ;
 	
-	// The container will contain the following things:
-	// 1. The dialog iframe
-	// 2. The dialog shadow
-	// 3. The dialog blocker (visible only when the dialog is disabled)
-	var container = ownerDocument.createElement( 'div' ) ;
-	container.dialogId = dialogId ;
-	container.ownerWindow = ownerWindow ;
-	dialogInfo.Dialog = container ;
-	FCKDomTools.SetElementStyles( container, 
-			{
+	var frame = ownerDocument.createElement( 'iframe' ) ;
+	frame.id = dialogId ;
+	frame.frameBorder = 0 ;
+	frame.ownerWindow = ownerWindow ;
+	FCKDomTools.SetElementStyles( frame, 
+			{ 
 				'position' : 'absolute',
 				'top' : iTop + 'px',
 				'left' : iLeft + 'px',
-				'overflow' : 'visible',
 				'zIndex' : this.BaseZIndex += 100
 			} ) ;
-
-	var frame = ownerDocument.createElement( 'iframe' ) ;
-	frame.id = dialogId ;
-	frame.frameBorder = 0 ;
-	FCKDomTools.SetElementStyles( frame, 
-			{ 
-				'border' : 'none', 
-				'position' : 'absolute',
-				'top' : '6px',
-				'left' : '6px',
-				'zIndex' : '100'
-			} ) ;
-	ownerDocument.body.appendChild( container ) ;
-	container.appendChild( frame ) ;
-	this.ResizeDialog( container, dialogWidth, dialogHeight ) ;
+	ownerDocument.body.appendChild( frame ) ;
+	this.ResizeDialog( frame, dialogWidth, dialogHeight ) ;
 
 	// Assigning frame.src directly does not work in Opera 9.5, need to use a timeout trick
 	var loadFrame = function()
 	{
-		frame.src = pageUrl + '?dialogId=' + dialogId ;
+		frame.src = pageUrl + '#dialogId=' + dialogId ;
 	}
 	setTimeout( loadFrame, 0 ) ;
@@ -133,37 +115,15 @@
 	else
 		this.SetEnabled( this.DialogStack[ this.DialogStack.length - 1 ], false );
-	this.DialogStack.push( container ) ;
+	this.DialogStack.push( frame ) ;
 
 	// Register drag handlers.
 	this.InitDragHandlers( ownerWindow ) ;
-	if ( ! FCK.ToolbarSet.CurrentInstance._FCKDialog_RegisteredBlockerHandlers )
-	{
-		FCKTools.AddIFrameOnLoadListener( FCK.ToolbarSet.CurrentInstance.BackgroundBlocker, 
-				function( evt )
-				{
-					FCKDialog.RegisterDragHandlers( this.contentWindow ) ;
-				} ) ;
-		FCKTools.AddIFrameOnLoadListener( FCK.ToolbarSet.CurrentInstance.EditorBlocker,
-				function( evt )
-				{
-					FCKDialog.RegisterDragHandlers( this.contentWindow ) ;
-				} ) ;
-		FCK.ToolbarSet.CurrentInstance._FCKDialog_RegisteredBlockerHandlers = true ;
-	}
-}
-
-
-
-// The following member functions should be called with a dialog container element as subject.
-FCKDialog.ResizeDialog = function( container, width, height )
-{
-	FCKDomTools.SetElementStyles( container,
-		{
-			'width' : ( width + 20 ) + 'px',
-			'height' : ( height + 20 ) + 'px'
-		} ) ;
-	this.RemoveShadow( container ) ;
-	this.GenerateShadow( container ) ;
-	var frame = container.getElementsByTagName( 'iframe' )[0] ;
+}
+
+
+
+// The following member functions should be called with a dialog frame element as subject.
+FCKDialog.ResizeDialog = function( frame, width, height )
+{
 	FCKDomTools.SetElementStyles( frame,
 		{
@@ -173,79 +133,10 @@
 }
 
-FCKDialog.RemoveShadow = function( container )
-{
-	var shadow = container.ownerDocument.getElementById( container.shadowId ) ;
-	if ( shadow )
-		shadow.parentNode.removeChild( shadow ) ;
-}
-
-FCKDialog.GenerateShadow = function( container )
-{
-	var doc = container.ownerDocument ;
-	var containerCoords = FCKTools.GetDocumentPosition( container.ownerWindow, container );
-	var shadowBlock = doc.createElement( 'div' ) ;
-	shadowBlock.id = Math.random();
-	container.shadowId = shadowBlock.id ;
-	FCKDomTools.SetElementStyles( shadowBlock,
-		{
-			'width' : container.offsetWidth + 'px',
-			'height' : container.offsetHeight + 'px',
-			'position' : 'absolute',
-			'left' : containerCoords.x + 'px',
-			'top' : containerCoords.y + 'px',
-			'zIndex' : container.style.zIndex - 50
-		} ) ;
-
-	// 0 1 2
-	// 3 4 5
-	// 6 7 8
-	var partUrl = 
-	[
-		'dialog.shadow.top.left.png',
-		'dialog.shadow.top.png',
-		'dialog.shadow.top.right.png',
-		'dialog.shadow.left.png',
-		'dialog.shadow.core.png',
-		'dialog.shadow.right.png',
-		'dialog.shadow.bottom.left.png',
-		'dialog.shadow.bottom.png',
-		'dialog.shadow.bottom.right.png'
-	];
-	var x = [ 0, 20, container.offsetWidth - 20 ] ;
-	var y = [ 0, 20, container.offsetHeight - 20 ] ;
-	for ( var i = 0 ; i < 9 ; i++ )
-	{
-		var d = doc.createElement( 'div' ) ;
-		var modulo = i % 3 ;
-		var quotient = parseInt( i / 3 ) ;
-		if ( modulo % 2 == 0 )
-			d.style.width = '20px' ;
-		else
-			d.style.width = ( container.offsetWidth - 40 ) + 'px' ;
-
-		if ( quotient % 2 == 0 )
-			d.style.height = '20px' ;
-		else
-			d.style.height = ( container.offsetHeight - 40 ) + 'px' ;
-		FCKDomTools.LoadPNG( d, FCKConfig.SkinPath + 'images/' + partUrl[i] ) ;
-		FCKDomTools.SetElementStyles( d,
-			{
-				'left' : x[modulo] + 'px',
-				'top' : y[quotient] + 'px',
-				'position' : 'absolute'
-			} ) ;
-		shadowBlock.appendChild( d ) ;
-	}
-
-	doc.body.appendChild( shadowBlock ) ;
-}
-
-FCKDialog.CloseDialog = function( container )
-{
-	var ownerWindow = container.ownerWindow ;
-	var dialogId = container.dialogId ;
+FCKDialog.CloseDialog = function( frame )
+{
+	var ownerWindow = frame.ownerWindow ;
+	var dialogId = frame.id ;
 	delete ownerWindow.FCKDialogArguments[dialogId] ;
-	container.parentNode.removeChild( container ) ;
-	this.RemoveShadow( container );
+	frame.parentNode.removeChild( frame ) ;
 	this.BaseZIndex -= 100 ;
 
@@ -259,62 +150,9 @@
 }
 
-FCKDialog.SetEnabled = function( container, yes )
-{
-	var doc = container.ownerDocument ;
-	if ( !yes )
-	{
-		if ( doc.getElementById( container.coverBlockId ) )
-			return ;
-		var coverBlock = doc.createElement( 'iframe' ) ;
-		var coverImg = doc.createElement( FCKBrowserInfo.IsIE ? 'div' : 'img' ) ;
-		var containerCoords = FCKTools.GetDocumentPosition( container.ownerWindow, container ) ;
-		coverBlock.src = FCKConfig.SkinPath + 'fck_dialog_blocker.html';
-		coverBlock.frameBorder = 0;
-		container.coverBlockId = coverBlock.id = Math.random() ;
-		FCKDomTools.SetElementStyles( coverBlock,
-			{
-				'width' : ( container.offsetWidth - 20 ) + 'px',
-				'height' : ( container.offsetHeight - 20 ) + 'px',
-				'left' : ( containerCoords.x + 6 ) + 'px',
-				'top' : ( containerCoords.y + 6 ) + 'px',
-				'position' : 'absolute',
-				'zIndex' : parseInt( container.style.zIndex ) + 40
-			} ) ;
-
-		container.coverImgId = coverImg.id = Math.random();
-		if ( FCKBrowserInfo.IsIE )
-			FCKDomTools.LoadPNG( coverImg, FCKConfig.SkinPath + 'images/WindowCover.png' ) ;
-		else
-			coverImg.src = FCKConfig.SkinPath + 'images/WindowCover.png' ;
-		FCKDomTools.SetElementStyles( coverImg,
-			{
-				'width' : ( container.offsetWidth - 20 ) + 'px',
-				'height' : ( container.offsetHeight - 20 ) + 'px',
-				'left' : ( containerCoords.x + 6 ) + 'px',
-				'top' : ( containerCoords.y + 6 ) + 'px',
-				'position' : 'absolute',
-				'zIndex' : parseInt( container.style.zIndex ) + 41
-			} ) ;
-
-		doc.body.appendChild( coverBlock ) ;
-		doc.body.appendChild( coverImg ) ;
-		FCKDomTools.SetOpacity( container, 0.5 ) ;
-		FCKDomTools.SetOpacity( container.ownerDocument.getElementById( container.shadowId ), 0.5 ) ;
-		FCKDomTools.SetOpacity( coverBlock, 0.01 ) ;
-	}
-	else
-	{
-		var coverBlock = doc.getElementById( container.coverBlockId ) ;
-		var coverImg = doc.getElementById( container.coverImgId ) ;
-		if ( coverBlock )
-			coverBlock.parentNode.removeChild( coverBlock ) ;
-		if ( coverImg )
-			coverImg.parentNode.removeChild( coverImg ) ;
-		FCKDomTools.SetOpacity( container, 1.0 ) ;
-		FCKDomTools.SetOpacity( container.ownerDocument.getElementById( container.shadowId ), 1 ) ;
-	}
-}
-
-function _FCKDialog_Drag_Handlers()
+FCKDialog.SetEnabled = function( frame, yes )
+{
+}
+
+;(function()
 {
 	var _dragDialog = null ;
@@ -347,5 +185,5 @@
 			view = evt.view ;
 
-		_dragDialog = view.dialogArguments.Dialog ;
+		_dragDialog = view.frameElement ;
 		_lastCoords = FCKDialog._GetMouseCoordinates( evt ) ;
 
@@ -375,13 +213,4 @@
 				'top' : y + 'px'
 			} ) ;
-		if ( _dragDialog.ownerDocument.getElementById( _dragDialog.shadowId ) )
-		{
-			var shadowBlock = _dragDialog.ownerDocument.getElementById( _dragDialog.shadowId ) ;
-			FCKDomTools.SetElementStyles( shadowBlock,
-				{
-					'left' : x + 'px',
-					'top' : y + 'px'
-				} );
-		}
 
 		if ( evt.preventDefault )
@@ -418,4 +247,3 @@
 		this.RegisterDragHandlers( w ) ;
 	}
-}
-_FCKDialog_Drag_Handlers() ;
+})() ;
Index: /FCKeditor/branches/features/floating_dialog/editor/fckdebug.html
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/fckdebug.html	(revision 1203)
+++ /FCKeditor/branches/features/floating_dialog/editor/fckdebug.html	(revision 1204)
@@ -65,8 +65,13 @@
 window.onload = function()
 {
-	oWindow = document.getElementById('xOutput').contentWindow ;
-	oWindow.document.open() ;
-	oWindow.document.write( '<div id="divMsg"><\/div>' ) ;
-	oWindow.document.close() ;
+	var sUrl = 'javascript: void( function(){' +
+		'document.open() ;' +
+		'document.domain = "' + document.domain + '" ;' +
+		'document.write( "<div id=\\"divMsg\\"><\/div>" ) ;' +
+		'document.close() ;' +
+		'}() ) ;';
+	oFrame = document.getElementById('xOutput') ;
+	oFrame.src = sUrl ;
+	oWindow = oFrame.contentWindow ;
 	oDiv	= oWindow.document.getElementById('divMsg') ;
 }
Index: /FCKeditor/branches/features/floating_dialog/editor/fckdialog.html
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/fckdialog.html	(revision 1203)
+++ /FCKeditor/branches/features/floating_dialog/editor/fckdialog.html	(revision 1204)
@@ -60,5 +60,4 @@
 window.dialogArguments = parent.FCKDialogArguments[dialogId] ;
 var dialogFrame = parent.document.getElementById(dialogId) ;
-var dialogBlock = dialogArguments.Dialog ;
 var oEditor = window.dialogArguments.Editor ;
 
@@ -105,5 +104,5 @@
 	// First of all, translate the dialog box contents.
 	args.Editor.FCKLanguageManager.TranslatePage( document ) ;
-	document.getElementById( 'FrameCell' ).innerHTML = '<iframe id="frmMain" src="' + args.Page + '" name="frmMain" frameborder="0" height="100%" width="100%" scrolling="auto"></iframe>' ;
+	document.getElementById( 'FrameCell' ).innerHTML = '<iframe id="frmMain" src="' + args.Page + '" name="frmMain" frameborder="0" width="100%" scrolling="auto"></iframe>' ;
 }
 
@@ -141,4 +140,6 @@
 	SetOnKeyDown( oInnerDoc ) ;
 	DisableContextMenu( oInnerDoc ) ;
+	
+	RefreshContainerSize();
 
 	args.Editor.FCKDialog.RegisterDragHandlers( document.getElementById('frmMain').contentWindow ) ;
@@ -146,4 +147,5 @@
 }
 
+
 function SetOkButton( showIt )
 {
@@ -163,6 +165,14 @@
 	var innerWidth = dialogFrame.offsetWidth ;
 	var innerHeight = dialogFrame.offsetHeight ;
-	document.getElementById( 'DialogContainer' ).style.width = innerWidth + 'px' ;
-	document.getElementById( 'DialogContainer' ).style.height = innerHeight + 'px' ;
+	document.getElementById( 'contents' ).style.width = ( innerWidth - 32 ) + 'px' ; // 32 pixels for left and right shadow
+	document.getElementById( 'contents' ).style.height = (innerHeight - 22 ) + 'px' ; // 22 pixels for top and bottom shadow
+	var frmMain = document.getElementById( 'frmMain' ) ;
+	if ( frmMain )
+	{
+		var frmHeight = innerHeight - 22 - 64 ; // 22 pixels for shadow, 64 pixels for title and button rows
+		if ( document.getElementById( 'TabsRow' ).offsetHeight )
+			frmHeight -= 22 ; // 22 pixels for tabs row if it is visible
+		frmMain.style.height = frmHeight + 'px' ;
+	}
 }
 
@@ -186,5 +196,5 @@
 
 		if ( iDiff > 0 )
-			oEditor.FCKDialog.ResizeDialog( dialogBlock, dialogFrame.offsetWidth, dialogFrame.offsetHeight + iDiff ) ;
+			oEditor.FCKDialog.ResizeDialog( window.frameElement, dialogFrame.offsetWidth, dialogFrame.offsetHeight + iDiff ) ;
 	}
 	RefreshContainerSize() ;
@@ -228,5 +238,5 @@
 		args.Editor.FCK.Events.FireEvent( 'OnSelectionChange' ) ;
 	}
-	oEditor.FCKDialog.CloseDialog( dialogBlock ) ;
+	oEditor.FCKDialog.CloseDialog( window.frameElement ) ;
 }
 
@@ -351,20 +361,5 @@
 	window.onresize = function( e )
 	{
-		// Running in Chrome makes the window receive the event including subframes.
-		// we care only about this window. Ticket #1642
-		if ( e && e.originalTarget !== document )
-				return ;
-
-		var oFrame = document.getElementById("frmMain") ;
-
-		if ( ! oFrame )
-			return ;
-
-		oFrame.height = 0 ;
-
-		var oCell = document.getElementById("FrameCell") ;
-		var iHeight = oCell.offsetHeight ;
-
-		oFrame.height = iHeight - 2 ;
+		RefreshContainerSize() ;
 	}
 }
@@ -393,5 +388,6 @@
 	</head>
 	<body onload="Init();" class="DialogBody">
-		<table height="100%" cellspacing="0" cellpadding="0" border="0" width="100%" id="DialogContainer">
+		<div class="contents" id="contents">
+		<table height="100%" cellspacing="0" cellpadding="0" border="0" width="100%">
 			<tr>
 				<td id="TitleArea" class="DialogTitle DialogTitleBorder">
@@ -414,10 +410,10 @@
 			</tr>
 			<tr>
-				<td id="FrameCell" height="100%" valign="top">
+				<td id="FrameCell" valign="top">
 					&nbsp;
 				</td>
 			</tr>
 			<tr>
-				<td class="DialogButtons">
+				<td class="DialogButtons" id="DialogButtons">
 					<table border="0" cellpadding="0" cellspacing="0">
 						<tr>
@@ -433,6 +429,15 @@
 			</tr>
 		</table>
-		<div id="throbberBlock" style="position: absolute; z-index: 10; text-align: center; font-size: 9px;">
 		</div>
+		<div id="throbberBlock" style="position: absolute; z-index: 10; text-align: center; font-size: 9px;"></div>
+		<div class="tl"></div>
+		<div class="tc"></div>
+		<div class="tr"></div>
+		<div class="ml"></div>
+		<div class="mr"></div>
+		<div class="bl"></div>
+		<div class="bc"></div>
+		<div class="br"></div>
+		<div class="cover" id="cover" style="display:none"></div>
 	</body>
 </html>
Index: Keditor/branches/features/floating_dialog/editor/skins/default/fck_background_blocker.html
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/skins/default/fck_background_blocker.html	(revision 1203)
+++ 	(revision )
@@ -1,7 +1,0 @@
-<html>
-	<head>
-		<title></title>
-	</head>
-	<body style="background-color: black;">
-	</body>
-</html>
Index: /FCKeditor/branches/features/floating_dialog/editor/skins/default/fck_dialog.css
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/skins/default/fck_dialog.css	(revision 1203)
+++ /FCKeditor/branches/features/floating_dialog/editor/skins/default/fck_dialog.css	(revision 1204)
@@ -47,5 +47,4 @@
 #DialogContainer
 {
-	border: 2px #d5d59d solid;
 }
 
@@ -153,2 +152,188 @@
 	cursor: pointer ;
 }
+
+
+html, body
+{
+	overflow: hidden;
+	height: 100%;
+	width: 100%;
+	background-color: transparent;
+	margin: 0px;
+	padding: 0px;
+}
+
+* html body
+{
+	behavior: url(css/dialog_ie6.htc);
+}
+
+/**
+ * Dialog frame related styles.
+ */
+
+.contents
+{
+	position: absolute;
+	top: 2px;
+	left: 16px;
+	right: 16px;
+	bottom: 20px;
+	background-color: #e3e3c7;
+	overflow: hidden;
+	z-index: 1;
+}
+
+.tl, .tr, .tc, .bl, .br, .bc
+{
+	position: absolute;
+	background-image: url(images/dialog.sprites.png);
+	background-repeat: no-repeat;
+}
+
+* html .tl, * html .tr, * html .tc, * html .bl, * html .br, * html .bc
+{
+	background-image: url(images/dialog.sprites.gif);
+}
+
+.ml, .mr
+{
+	position: absolute;
+	background-image: url(images/dialog.sides.png);
+	background-repeat: repeat-y;
+}
+
+* html .ml, * html .mr
+{
+	background-image: url(images/dialog.sides.gif);
+}
+
+.rtl .ml, .rtl .mr
+{
+	position: absolute;
+	background-image: url(images/dialog.sides-rtl.png);
+	background-repeat: repeat-y;
+}
+
+* html .rtl .ml, * html .rtl .mr
+{
+	background-image: url(images/dialog.sides.gif);
+}
+
+.tl
+{
+	top: 0px;
+	left: 0px;
+	width: 16px;
+	height: 16px;
+	background-position: -16px -16px;
+}
+
+.rtl .tl
+{
+	background-position: -16px -397px;
+}
+
+.tr
+{
+	top: 0px;
+	right: 0px;
+	width: 16px;
+	height: 16px;
+	background-position: -16px -76px;
+}
+
+.rtl .tr
+{
+	background-position: -16px -457px;
+}
+
+.tc
+{
+	top: 0px;
+	right: 16px;
+	left: 16px;
+	height: 16px;
+	background-position: 0px -136px;
+	background-repeat: repeat-x;
+}
+
+.ml
+{
+	top: 16px;
+	left: 0px;
+	width: 16px;
+	bottom: 51px;
+	background-position: 0px 0px;
+}
+
+.mr
+{
+	top: 16px;
+	right: 0px;
+	width: 16px;
+	bottom: 51px;
+	background-position: -16px 0px;
+}
+
+.bl
+{
+	bottom: 0px;
+	left: 0px;
+	width: 30px;
+	height: 51px;
+	background-position: -16px -196px;
+}
+
+.rtl .bl
+{
+	background-position: -16px -517px;
+}
+
+.br
+{
+	bottom: 0px;
+	right: 0px;
+	width: 30px;
+	height: 51px;
+	background-position: -16px -263px;
+}
+
+.rtl .br
+{
+	background-position: -16px -584px;
+}
+
+.bc
+{
+	bottom: 0px;
+	right: 30px;
+	left: 30px;
+	height: 51px;
+	background-position: 0px -330px;
+	background-repeat: repeat-x;
+}
+
+/* For IE6. Do not change it. */
+* html .blocker
+{
+	position: absolute;
+	width: 100%;
+	height: 100%;
+	z-index: 12;
+	filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);
+}
+
+/* The layer used to cover the dialog when opening a child dialog. */
+.cover
+{
+	position: absolute;
+	top: 0px;
+	left: 14px;
+	right: 14px;
+	bottom: 18px;
+	z-index: 11;
+	opacity: 0.5;
+	filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50);
+	background-color: #ffffff;
+}
Index: Keditor/branches/features/floating_dialog/editor/skins/default/fck_dialog_blocker.html
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/skins/default/fck_dialog_blocker.html	(revision 1203)
+++ 	(revision )
@@ -1,7 +1,0 @@
-<html>
-	<head>
-		<title></title>
-	</head>
-	<body>
-	</body>
-</html>
Index: Keditor/branches/features/floating_dialog/editor/skins/default/fck_editor_blocker.html
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/skins/default/fck_editor_blocker.html	(revision 1203)
+++ 	(revision )
@@ -1,7 +1,0 @@
-<html>
-	<head>
-		<title></title>
-	</head>
-	<body style="background-color: white;">
-	</body>
-</html>
