Index: editor/_source/classes/fckcontextmenu.js
===================================================================
--- editor/_source/classes/fckcontextmenu.js	(revision 1596)
+++ editor/_source/classes/fckcontextmenu.js	(working copy)
@@ -26,7 +26,7 @@
 	this.CtrlDisable = false ;
 
 	var oPanel = this._Panel = new FCKPanel( parentWindow ) ;
-	oPanel.AppendStyleSheet( FCKConfig.SkinPath + 'fck_editor.css' ) ;
+	oPanel.AppendStyleSheet( FCKConfig.SkinEditorCSS ) ;
 	oPanel.IsContextMenu = true ;
 
 	// The FCKTools.DisableSelection doesn't seems to work to avoid dragging of the icons in Mozilla
Index: editor/_source/classes/fckmenublockpanel.js
===================================================================
--- editor/_source/classes/fckmenublockpanel.js	(revision 1596)
+++ editor/_source/classes/fckmenublockpanel.js	(working copy)
@@ -36,7 +36,7 @@
 FCKMenuBlockPanel.prototype.Create = function()
 {
 	var oPanel = this.Panel = ( this.Parent && this.Parent.Panel ? this.Parent.Panel.CreateChildPanel() : new FCKPanel() ) ;
-	oPanel.AppendStyleSheet( FCKConfig.SkinPath + 'fck_editor.css' ) ;
+	oPanel.AppendStyleSheet( FCKConfig.SkinEditorCSS ) ;
 
 	// Call the "base" implementation.
 	FCKMenuBlock.prototype.Create.call( this, oPanel.MainNode ) ;
Index: editor/_source/classes/fckspecialcombo.js
===================================================================
--- editor/_source/classes/fckspecialcombo.js	(revision 1596)
+++ editor/_source/classes/fckspecialcombo.js	(working copy)
@@ -37,7 +37,7 @@
 	this.Items = new Object() ;
 
 	this._Panel = new FCKPanel( parentWindow || window ) ;
-	this._Panel.AppendStyleSheet( FCKConfig.SkinPath + 'fck_editor.css' ) ;
+	this._Panel.AppendStyleSheet( FCKConfig.SkinEditorCSS ) ;
 	this._PanelBox = this._Panel.MainNode.appendChild( this._Panel.Document.createElement( 'DIV' ) ) ;
 	this._PanelBox.className = 'SC_Panel' ;
 	this._PanelBox.style.width = this.PanelWidth + 'px' ;
Index: editor/_source/commandclasses/fcktextcolorcommand.js
===================================================================
--- editor/_source/commandclasses/fcktextcolorcommand.js	(revision 1596)
+++ editor/_source/commandclasses/fcktextcolorcommand.js	(working copy)
@@ -39,7 +39,7 @@
 		oWindow = window.parent ;
 
 	this._Panel = new FCKPanel( oWindow ) ;
-	this._Panel.AppendStyleSheet( FCKConfig.SkinPath + 'fck_editor.css' ) ;
+	this._Panel.AppendStyleSheet( FCKConfig.SkinEditorCSS ) ;
 	this._Panel.MainNode.className = 'FCK_Panel' ;
 	this._CreatePanelBody( this._Panel.Document, this._Panel.MainNode ) ;
 	FCK.ToolbarSet.ToolbarItems.GetItem( this.Name ).RegisterPanel( this._Panel ) ;
Index: editor/_source/internals/fck.js
===================================================================
--- editor/_source/internals/fck.js	(revision 1596)
+++ editor/_source/internals/fck.js	(working copy)
@@ -439,9 +439,9 @@
 			if ( FCKBrowserInfo.IsIE )
 				sHeadExtra += FCK._GetBehaviorsStyle() ;
 			else if ( FCKConfig.ShowBorders )
-				sHeadExtra += '<link href="' + FCKConfig.FullBasePath + 'css/fck_showtableborders_gecko.css" rel="stylesheet" type="text/css" _fcktemp="true" />' ;
+				sHeadExtra += FCKTools.GetStyleHtml( FCK_ShowTableBordersCSS, true ) ;
 
-			sHeadExtra += '<link href="' + FCKConfig.FullBasePath + 'css/fck_internal.css" rel="stylesheet" type="text/css" _fcktemp="true" />' ;
+			sHeadExtra += FCKTools.GetStyleHtml( FCK_InternalCSS, true ) ;
 
 			// Attention: do not change it before testing it well (sample07)!
 			// This is tricky... if the head ends with <meta ... content type>,
@@ -970,17 +970,8 @@
 
 function _FCK_GetEditorAreaStyleTags()
 {
-	var sTags = '' ;
-	var aCSSs = FCKConfig.EditorAreaCSS ;
-	var sStyles = FCKConfig.EditorAreaStyles ;
-
-	for ( var i = 0 ; i < aCSSs.length ; i++ )
-		sTags += '<link href="' + aCSSs[i] + '" rel="stylesheet" type="text/css" />' ;
-
-	if ( sStyles && sStyles.length > 0 )
-		sTags += "<style>" + sStyles + "</style>" ;
-
-	return sTags ;
+	return FCKTools.GetStyleHtml( FCKConfig.EditorAreaCSS ) + 
+		FCKTools.GetStyleHtml( FCKConfig.EditorAreaStyles ) ;
 }
 
 function _FCK_KeystrokeHandler_OnKeystroke( keystroke, keystrokeValue )
Index: editor/_source/internals/fckconfig.js
===================================================================
--- editor/_source/internals/fckconfig.js	(revision 1596)
+++ editor/_source/internals/fckconfig.js	(working copy)
@@ -131,17 +131,10 @@
 	if ( !oConfig.PluginsPath.EndsWith('/') )
 		oConfig.PluginsPath += '/' ;
 
-	// EditorAreaCSS accepts a single path string, a list of paths separated by
-	// a comma or and array of paths.
-	// In the string cases, transform it in an array.
-	if ( typeof( oConfig.EditorAreaCSS ) == 'string' )
-		oConfig.EditorAreaCSS = oConfig.EditorAreaCSS.split(',') ;
-
+	// If no ToolbarComboPreviewCSS, point it to EditorAreaCSS.
 	var sComboPreviewCSS = oConfig.ToolbarComboPreviewCSS ;
 	if ( !sComboPreviewCSS || sComboPreviewCSS.length == 0 )
 		oConfig.ToolbarComboPreviewCSS = oConfig.EditorAreaCSS ;
-	else if ( typeof( sComboPreviewCSS ) == 'string' )
-		oConfig.ToolbarComboPreviewCSS = [ sComboPreviewCSS ] ;
 }
 
 // Define toolbar sets collection.
Index: editor/_source/internals/fcktoolbarset.js
===================================================================
--- editor/_source/internals/fcktoolbarset.js	(revision 1596)
+++ editor/_source/internals/fcktoolbarset.js	(working copy)
@@ -121,7 +121,7 @@
 
 			// 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' ) ;
+			FCKTools.AppendStyleSheet( eTargetDocument, FCKConfig.SkinEditorCSS ) ;
 
 			oToolbarSet = eToolbarTarget.__FCKToolbarSet = new FCKToolbarSet( eTargetDocument ) ;
 			oToolbarSet._IFrame = eToolbarIFrame ;
Index: editor/_source/internals/fcktools.js
===================================================================
--- editor/_source/internals/fcktools.js	(revision 1596)
+++ editor/_source/internals/fcktools.js	(working copy)
@@ -31,27 +31,121 @@
 	return eBR ;
 }
 
-// Returns a reference to the appended style sheet or an array with all the appended references
-FCKTools.AppendStyleSheet = function( documentElement, cssFileUrlOrArray )
+/**
+ * Fixes relative URL entries defined inside CSS styles by appending a prefix
+ * to them.
+ * @param (String) cssStyles The CSS styles definition possibly containing url()
+ *		paths.
+ * @param (String) urlFixPrefix The prefix to append to relative URLs.
+ */
+FCKTools.FixCssUrls = function( urlFixPrefix, cssStyles )
 {
-	if ( typeof( cssFileUrlOrArray ) == 'string' )
-		return this._AppendStyleSheet( documentElement, cssFileUrlOrArray ) ;
+	if ( !urlFixPrefix || urlFixPrefix.length == 0 )
+		return cssStyles ;
+
+	return cssStyles.replace( /url\s*\(([\s'"]*)(.*?)([\s"']*)\)/g, function( match, opener, path, closer )
+		{
+			if ( /^\/|^\w?:/.test() )
+				return match ;
+			else
+				return 'url(' + opener + urlFixPrefix + path + closer + ')' ;
+		} ) ;
+}
+
+FCKTools._GetUrlFixedCss = function( cssStyles, urlFixPrefix )
+{
+	var match = cssStyles.match( /^([^|]+)\|([\s\S]*)/ ) ;
+	
+	if ( match )
+		return FCKTools.FixCssUrls( match[1], match[2] ) ;
 	else
-	{
-		var aStyleSheeArray = new Array() ;
+		return cssStyles ;
+}
 
-		for ( var i = 0 ; i < cssFileUrlOrArray.length ; i++ )
-			aStyleSheeArray.push(this._AppendStyleSheet( documentElement, cssFileUrlOrArray[i] ) ) ;
+/**
+ * Appends a <link css> or <style> element to the document.
+ * @param (Object) documentElement The DOM document object to which append the
+ *		stylesheet.
+ * @param (Variant) cssFileOrDef A String pointing to the CSS file URL or an
+ *		Array with many CSS file URLs or the CSS definitions for the <style>
+ *		element.
+ * @return {Array} An array containing all elements created in the target
+ *		document. It may include <link> or <style> elements, depending on the
+ *		value passed with cssFileOrDef.
+ */
+FCKTools.AppendStyleSheet = function( domDocument, cssFileOrArrayOrDef )
+{
+	if ( !cssFileOrArrayOrDef )
+		return [] ;
 
-		return aStyleSheeArray ;
+	if ( typeof( cssFileOrArrayOrDef ) == 'string' )
+	{
+		// Test if the passed argument is an URL.
+		if ( /[\\\/\.]\w*$/.test( cssFileOrArrayOrDef ) )
+		{
+			// The string may have several URLs separated by comma.
+			return this.AppendStyleSheet( domDocument, cssFileOrArrayOrDef.split(',') ) ;
+		}
+		else
+			return [ this.AppendStyleString( domDocument, FCKTools._GetUrlFixedCss( cssFileOrArrayOrDef ) ) ] ;
 	}
+	else
+	{
+		var styles = [] ;
+		for ( var i = 0 ; i < cssFileOrArrayOrDef.length ; i++ )
+			styles.push( this._AppendStyleSheet( domDocument, cssFileOrArrayOrDef[i] ) ) ;
+		return styles ;
+	}
 }
 
-FCKTools.AppendStyleString = function ( documentElement, cssStyles )
+FCKTools.GetStyleHtml = (function()
 {
-	this._AppendStyleString( documentElement, cssStyles ) ;
-}
+	var getStyle = function( styleDef, markTemp )
+	{
+		if ( styleDef.length == 0 )
+			return '' ;
 
+		var temp = markTemp ? ' _fcktemp="true"' : '' ; 
+		return '<' + 'style type="text/css"' + temp + '>' + styleDef + '<' + '/style>' ;
+	}
+	
+	var getLink = function( cssFileUrl, markTemp )
+	{
+		if ( cssFileUrl.length == 0 )
+			return '' ;
+
+		var temp = markTemp ? ' _fcktemp="true"' : '' ; 
+		return '<' + 'link href="' + cssFileUrl + '" type="text/css" rel="stylesheet" ' + temp + '/>' ;
+	}
+
+	return function( cssFileOrArrayOrDef, markTemp )
+	{
+		if ( !cssFileOrArrayOrDef )
+			return '' ;
+
+		if ( typeof( cssFileOrArrayOrDef ) == 'string' )
+		{
+			// Test if the passed argument is an URL.
+			if ( /[\\\/\.]\w*$/.test( cssFileOrArrayOrDef ) )
+			{
+				// The string may have several URLs separated by comma.
+				return this.GetStyleHtml( cssFileOrArrayOrDef.split(',') ) ;
+			}
+			else
+				return getStyle( this._GetUrlFixedCss( cssFileOrArrayOrDef ), markTemp ) ;
+		}
+		else
+		{
+			var html = '' ;
+
+			for ( var i = 0 ; i < cssFileOrArrayOrDef.length ; i++ )
+				html += getLink( cssFileOrArrayOrDef[i], markTemp ) ;
+
+			return html ;
+		}
+	}
+})() ;
+
 FCKTools.GetElementDocument = function ( element )
 {
 	return element.ownerDocument || element.document ;
Index: editor/_source/internals/fcktools_gecko.js
===================================================================
--- editor/_source/internals/fcktools_gecko.js	(revision 1596)
+++ editor/_source/internals/fcktools_gecko.js	(working copy)
@@ -49,8 +49,11 @@
 }
 
 // Appends a CSS style string to a document.
-FCKTools._AppendStyleString = function( documentElement, cssStyles )
+FCKTools.AppendStyleString = function( documentElement, cssStyles )
 {
+	if ( !cssStyles )
+		return ;
+
 	var e = documentElement.createElement( "STYLE" ) ;
 	e.appendChild( documentElement.createTextNode( cssStyles ) ) ;
 	documentElement.getElementsByTagName( "HEAD" )[0].appendChild( e ) ;
Index: editor/_source/internals/fcktools_ie.js
===================================================================
--- editor/_source/internals/fcktools_ie.js	(revision 1596)
+++ editor/_source/internals/fcktools_ie.js	(working copy)
@@ -33,8 +33,11 @@
 }
 
 // Appends a CSS style string to a document.
-FCKTools._AppendStyleString = function( documentElement, cssStyles )
+FCKTools.AppendStyleString = function( documentElement, cssStyles )
 {
+	if ( !cssStyles )
+		return ;
+
 	var s = documentElement.createStyleSheet( "" ) ;
 	s.cssText = cssStyles ;
 	return s ;
Index: editor/css/fck_internal.css
===================================================================
--- editor/css/fck_internal.css	(revision 1596)
+++ editor/css/fck_internal.css	(working copy)
@@ -21,6 +21,13 @@
  * This CSS Style Sheet defines rules used by the editor for its internal use.
  */
 
+/* #########
+ *  WARNING
+ * #########
+ * When changing this file, the minified version of it must be updated in the
+ * fckeditor.html file (see FCK_InternalCSS).
+ */
+
 /* Fix to allow putting the caret at the end of the content in Firefox if
    clicking below the content. */
 html
Index: editor/css/fck_showtableborders_gecko.css
===================================================================
--- editor/css/fck_showtableborders_gecko.css	(revision 1596)
+++ editor/css/fck_showtableborders_gecko.css	(working copy)
@@ -21,6 +21,13 @@
  * This CSS Style Sheet defines the rules to show table borders on Gecko.
  */
 
+/* #########
+ *  WARNING
+ * #########
+ * When changing this file, the minified version of it must be updated in the
+ * fckeditor.html file (see FCK_ShowTableBordersCSS).
+ */
+
 /* For tables with the "border" attribute set to "0" */
 table[border="0"],
 table[border="0"] > tr > td, table[border="0"] > tr > th,
Index: editor/dialog/common/fck_dialog_common.css
===================================================================
--- editor/dialog/common/fck_dialog_common.css	(revision 1596)
+++ editor/dialog/common/fck_dialog_common.css	(working copy)
@@ -22,6 +22,13 @@
  * windows.
  */
 
+/* #########
+ *  WARNING
+ * #########
+ * When changing this file, the minified version of it must be updated in the
+ * fck_dialog_common.js file (see GetCommonDialogCss).
+ */
+
 .ImagePreviewArea
 {
 	border: #000000 1px solid;
Index: editor/dialog/common/fck_dialog_common.js
===================================================================
--- editor/dialog/common/fck_dialog_common.js	(revision 1596)
+++ editor/dialog/common/fck_dialog_common.js	(working copy)
@@ -54,6 +54,16 @@
 	}
 })() ;
 
+// Attention: FCKConfig must be available in the page.
+function GetCommonDialogCss( prefix )
+{
+	return ( prefix || '' ) + 'common/fck_dialog_common.css' ;	// @Packager.RemoveLine
+	/* @Packager.RemoveLine
+	// CSS minified by http://iceyboard.no-ip.org/projects/css_compressor
+	return FCKConfig.BasePath + 'dialog/common/' + '|.ImagePreviewArea{border:#000 1px solid;overflow:auto;width:100%;height:170px;background-color:#fff}.FlashPreviewArea{border:#000 1px solid;padding:5px;overflow:auto;width:100%;height:170px;background-color:#fff}.BtnReset{float:left;background-position:center center;background-image:url(images/reset.gif);width:16px;height:16px;background-repeat:no-repeat;border:1px none;font-size:1px}.BtnLocked,.BtnUnlocked{float:left;background-position:center center;background-image:url(images/locked.gif);width:16px;height:16px;background-repeat:no-repeat;border:none 1px;font-size:1px}.BtnUnlocked{background-image:url(images/unlocked.gif)}.BtnOver{border:outset 1px;cursor:hand}' ;
+	@Packager.RemoveLine */
+}
+
 // Gets a element by its Id. Used for shorter coding.
 function GetE( elementId )
 {
Index: editor/dialog/fck_flash.html
===================================================================
--- editor/dialog/fck_flash.html	(revision 1596)
+++ editor/dialog/fck_flash.html	(working copy)
@@ -28,7 +28,11 @@
 		<meta content="noindex, nofollow" name="robots">
 		<script src="common/fck_dialog_common.js" type="text/javascript"></script>
 		<script src="fck_flash/fck_flash.js" type="text/javascript"></script>
-		<link href="common/fck_dialog_common.css" type="text/css" rel="stylesheet">
+		<script type="text/javascript">
+
+document.write( FCKTools.GetStyleHtml( GetCommonDialogCss() ) ) ;
+
+		</script>
 	</head>
 	<body scroll="no" style="OVERFLOW: hidden">
 		<div id="divInfo">
Index: editor/dialog/fck_flash/fck_flash.js
===================================================================
--- editor/dialog/fck_flash/fck_flash.js	(revision 1596)
+++ editor/dialog/fck_flash/fck_flash.js	(working copy)
@@ -26,6 +26,7 @@
 var FCK			= oEditor.FCK ;
 var FCKLang		= oEditor.FCKLang ;
 var FCKConfig	= oEditor.FCKConfig ;
+var FCKTools	= oEditor.FCKTools ;
 
 //#### Dialog Tabs
 
Index: editor/dialog/fck_flash/fck_flash_preview.html
===================================================================
--- editor/dialog/fck_flash/fck_flash_preview.html	(revision 1596)
+++ editor/dialog/fck_flash/fck_flash_preview.html	(working copy)
@@ -26,12 +26,15 @@
 		<title></title>
 		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 		<meta name="robots" content="noindex, nofollow">
-		<link href="../common/fck_dialog_common.css" rel="stylesheet" type="text/css" />
 		<script src="../common/fck_dialog_common.js" type="text/javascript"></script>
 		<script language="javascript">
 
+var FCKTools	= window.parent.FCKTools ;
+var FCKConfig	= window.parent.FCKConfig ;
+
 // Sets the Skin CSS
-document.write( '<link href="' + window.parent.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ;
+document.write( FCKTools.GetStyleHtml( FCKConfig.SkinDialogCSS ) ) ;
+document.write( FCKTools.GetStyleHtml( GetCommonDialogCss( '../' ) ) ) ;
 
 if ( window.parent.FCKConfig.BaseHref.length > 0 )
 	document.write( '<base href="' + window.parent.FCKConfig.BaseHref + '">' ) ;
Index: editor/dialog/fck_image.html
===================================================================
--- editor/dialog/fck_image.html	(revision 1596)
+++ editor/dialog/fck_image.html	(working copy)
@@ -28,7 +28,11 @@
 	<meta name="robots" content="noindex, nofollow" />
 	<script src="common/fck_dialog_common.js" type="text/javascript"></script>
 	<script src="fck_image/fck_image.js" type="text/javascript"></script>
-	<link href="common/fck_dialog_common.css" rel="stylesheet" type="text/css" />
+		<script type="text/javascript">
+
+document.write( FCKTools.GetStyleHtml( GetCommonDialogCss() ) ) ;
+
+		</script>
 </head>
 <body scroll="no" style="overflow: hidden">
 	<div id="divInfo">
Index: editor/dialog/fck_image/fck_image.js
===================================================================
--- editor/dialog/fck_image/fck_image.js	(revision 1596)
+++ editor/dialog/fck_image/fck_image.js	(working copy)
@@ -27,6 +27,7 @@
 var FCKLang		= oEditor.FCKLang ;
 var FCKConfig	= oEditor.FCKConfig ;
 var FCKDebug	= oEditor.FCKDebug ;
+var FCKTools	= oEditor.FCKTools ;
 
 var bImageButton = ( document.location.search.length > 0 && document.location.search.substr(1) == 'ImageButton' ) ;
 
Index: editor/dialog/fck_image/fck_image_preview.html
===================================================================
--- editor/dialog/fck_image/fck_image_preview.html	(revision 1596)
+++ editor/dialog/fck_image/fck_image_preview.html	(working copy)
@@ -28,12 +28,15 @@
 	<title></title>
 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 	<meta name="robots" content="noindex, nofollow" />
-	<link href="../common/fck_dialog_common.css" rel="stylesheet" type="text/css" />
 	<script src="../common/fck_dialog_common.js" type="text/javascript"></script>
 	<script type="text/javascript">
 
+var FCKTools	= window.parent.FCKTools ;
+var FCKConfig	= window.parent.FCKConfig ;
+
 // Sets the Skin CSS
-document.write( '<link href="' + window.parent.FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ;
+document.write( FCKTools.GetStyleHtml( FCKConfig.SkinDialogCSS ) ) ;
+document.write( FCKTools.GetStyleHtml( GetCommonDialogCss( '../' ) ) ) ;
 
 if ( window.parent.FCKConfig.BaseHref.length > 0 )
 	document.write( '<base href="' + window.parent.FCKConfig.BaseHref + '">' ) ;
Index: editor/dialog/fck_source.html
===================================================================
--- editor/dialog/fck_source.html	(revision 1596)
+++ editor/dialog/fck_source.html	(working copy)
@@ -26,13 +26,16 @@
 		<title>Source</title>
 		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 		<meta name="robots" content="noindex, nofollow">
-		<link href="common/fck_dialog_common.css" rel="stylesheet" type="text/css" />
+		<script src="common/fck_dialog_common.js" type="text/javascript"></script>
 		<script language="javascript">
 
 var oEditor		= window.parent.InnerDialogLoaded() ;
 var FCK			= oEditor.FCK ;
 var FCKConfig	= oEditor.FCKConfig ;
+var FCKTools	= oEditor.FCKTools ;
 
+document.write( FCKTools.GetStyleHtml( GetCommonDialogCss() ) ) ;
+
 window.onload = function()
 {
 	// EnableXHTML and EnableSourceXHTML has been deprecated
Index: editor/fckdialog.html
===================================================================
--- editor/fckdialog.html	(revision 1596)
+++ editor/fckdialog.html	(working copy)
@@ -82,7 +82,7 @@
 window.focus() ;
 
 // Sets the Skin CSS
-document.write( '<link href="' + FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ;
+document.write( FCKTools.GetStyleHtml( FCKConfig.SkinDialogCSS ) ) ;
 
 // Sets the language direction.
 var langDir = window.document.dir = E.FCKLang.Dir ;
@@ -643,7 +643,7 @@
 		innerDoc.dir = langDir ;
 
 		// Sets the Skin CSS.
-		innerDoc.write( '<link href="' + FCKConfig.SkinPath + 'fck_dialog.css" type="text/css" rel="stylesheet">' ) ;
+		innerDoc.write( FCKTools.GetStyleHtml( FCKConfig.SkinDialogCSS ) ) ;
 
 		setOnKeyDown( innerDoc ) ;
 		disableContextMenu( innerDoc ) ;
Index: editor/fckeditor.html
===================================================================
--- editor/fckeditor.html	(revision 1596)
+++ editor/fckeditor.html	(working copy)
@@ -81,11 +81,6 @@
 	document.write( '<scr' + 'ipt type="text/javascript" src="' + url + '"><\/scr' + 'ipt>' ) ;
 }
 
-function LoadCss( url )
-{
-	document.write( '<link href="' + url + '" type="text/css" rel="stylesheet" />' ) ;
-}
-
 // Main editor scripts.
 var sSuffix = ( /*@cc_on!@*/false ) ? 'ie' : 'gecko' ;
 
@@ -242,13 +237,21 @@
 
 FCKConfig_PreProcess() ;
 
+var FCK_InternalCSS			= FCKConfig.FullBasePath + 'css/fck_internal.css' ;					// @Packager.RemoveLine
+var FCK_ShowTableBordersCSS	= FCKConfig.FullBasePath + 'css/fck_showtableborders_gecko.css' ;	// @Packager.RemoveLine
+/* @Packager.RemoveLine
+// CSS minified by http://iceyboard.no-ip.org/projects/css_compressor
+var FCK_InternalCSS			= FCKTools.FixCssUrls( FCKConfig.FullBasePath + 'css/', 'html{min-height:100%}table.FCK__ShowTableBorders,table.FCK__ShowTableBorders td,table.FCK__ShowTableBorders th{border:#d3d3d3 1px solid}form{border:1px dotted #F00;padding:2px}.FCK__Flash{border:#a9a9a9 1px solid;background-position:center center;background-image:url(images/fck_flashlogo.gif);background-repeat:no-repeat;width:80px;height:80px}.FCK__Anchor{border:1px dotted #00F;background-position:center center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;width:16px;height:15px;vertical-align:middle}.FCK__AnchorC{border:1px dotted #00F;background-position:1px center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;padding-left:18px}a[name]{border:1px dotted #00F;background-position:0 center;background-image:url(images/fck_anchor.gif);background-repeat:no-repeat;padding-left:18px}.FCK__PageBreak{background-position:center center;background-image:url(images/fck_pagebreak.gif);background-repeat:no-repeat;clear:both;display:block;float:none;width:100%;border-top:#999 1px dotted;border-bottom:#999 1px dotted;border-right:0;border-left:0;height:5px}.FCK__InputHidden{width:19px;height:18px;background-image:url(images/fck_hiddenfield.gif);background-repeat:no-repeat;vertical-align:text-bottom;background-position:center center}.FCK__ShowBlocks p,.FCK__ShowBlocks div,.FCK__ShowBlocks pre,.FCK__ShowBlocks address,.FCK__ShowBlocks blockquote,.FCK__ShowBlocks h1,.FCK__ShowBlocks h2,.FCK__ShowBlocks h3,.FCK__ShowBlocks h4,.FCK__ShowBlocks h5,.FCK__ShowBlocks h6{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px;padding-left:8px}.FCK__ShowBlocks p{background-image:url(images/block_p.png)}.FCK__ShowBlocks div{background-image:url(images/block_div.png)}.FCK__ShowBlocks pre{background-image:url(images/block_pre.png)}.FCK__ShowBlocks address{background-image:url(images/block_address.png)}.FCK__ShowBlocks blockquote{background-image:url(images/block_blockquote.png)}.FCK__ShowBlocks h1{background-image:url(images/block_h1.png)}.FCK__ShowBlocks h2{background-image:url(images/block_h2.png)}.FCK__ShowBlocks h3{background-image:url(images/block_h3.png)}.FCK__ShowBlocks h4{background-image:url(images/block_h4.png)}.FCK__ShowBlocks h5{background-image:url(images/block_h5.png)}.FCK__ShowBlocks h6{background-image:url(images/block_h6.png)}' ) ;
+var FCK_ShowTableBordersCSS	= FCKTools.FixCssUrls( FCKConfig.FullBasePath + 'css/', 'table:not([border]),table:not([border]) > tr > td,table:not([border]) > tr > th,table:not([border]) > tbody > tr > td,table:not([border]) > tbody > tr > th,table:not([border]) > thead > tr > td,table:not([border]) > thead > tr > th,table:not([border]) > tfoot > tr > td,table:not([border]) > tfoot > tr > th,table[border=\"0\"],table[border=\"0\"] > tr > td,table[border=\"0\"] > tr > th,table[border=\"0\"] > tbody > tr > td,table[border=\"0\"] > tbody > tr > th,table[border=\"0\"] > thead > tr > td,table[border=\"0\"] > thead > tr > th,table[border=\"0\"] > tfoot > tr > td,table[border=\"0\"] > tfoot > tr > th{border:#d3d3d3 1px dotted}' ) ;
+@Packager.RemoveLine */
+
 // Popup the debug window if debug mode is set to true. It guarantees that the
 // first debug message will not be lost.
 if ( FCKConfig.Debug )
 	FCKDebug._GetWindow() ;
 
 // Load the active skin CSS.
-LoadCss( FCKConfig.SkinPath + 'fck_editor.css' ) ;
+document.write( FCKTools.GetStyleHtml( FCKConfig.SkinEditorCSS ) ) ;
 
 // Load the language file.
 FCKLanguageManager.Initialize() ;
Index: fckconfig.js
===================================================================
--- fckconfig.js	(revision 1596)
+++ fckconfig.js	(working copy)
@@ -43,6 +43,9 @@
 FCKConfig.AllowQueryStringDebug = true ;
 
 FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
+FCKConfig.SkinEditorCSS = FCKConfig.SkinPath + 'fck_editor.css' ;
+FCKConfig.SkinDialogCSS = FCKConfig.SkinPath + 'fck_dialog.css' ;
+
 FCKConfig.PreloadImages = [ FCKConfig.SkinPath + 'images/toolbar.start.gif', FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif' ] ;
 
 FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
