Index: /CKEditor/trunk/_samples/ajax.html
===================================================================
--- /CKEditor/trunk/_samples/ajax.html	(revision 2959)
+++ /CKEditor/trunk/_samples/ajax.html	(revision 2959)
@@ -0,0 +1,73 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>Ajax - CKEditor Sample</title>
+	<script type="text/javascript" src="sample.js"></script>
+	<script id="headscript" type="text/javascript">
+	//<![CDATA[
+
+var editor;
+
+function createEditor()
+{
+	if ( editor )
+		return;
+
+	var html = document.getElementById( 'editorcontents' ).innerHTML;
+
+	// Create a new editor inside the <div id="editor">
+	editor = CKEDITOR.appendTo( 'editor' );
+	editor.setData( html );
+
+	// This sample may break here if the ckeditor_basic.js is used. In such case, the following code should be used instead:
+	/*
+	if ( editor.setData )
+		editor.setData( html );
+	else
+		CKEDITOR.on( 'loaded', function()
+			{
+				editor.setData( html );
+			});
+	*/
+}
+
+function removeEditor()
+{
+	if ( !editor )
+		return;
+
+	// Retrieve the editor contents. In an Ajax application, this data would be
+	// sent to the server or used in any other way.
+	document.getElementById( 'editorcontents' ).innerHTML = editor.getData();
+	document.getElementById( 'contents' ).style.display = '';
+
+	// Destroy the editor.
+	editor.destroy();
+	editor = null;
+}
+
+	//]]>
+	</script>
+</head>
+<body>
+	<div id="html">
+		<p>
+			<input type="button" value="Create Editor" onclick="createEditor();" />
+			<input type="button" value="Remove Editor" onclick="removeEditor();" />
+		</p>
+		<div id="editor">
+		</div>
+		<div id="contents" style="display: none">
+			<p>Edited Contents:</p>
+			<div id="editorcontents"></div>
+		</div>
+	</div>
+	<div id="code">
+		<pre></pre>
+	</div>
+</body>
+</html>
Index: /CKEditor/trunk/_samples/divreplace.html
===================================================================
--- /CKEditor/trunk/_samples/divreplace.html	(revision 2959)
+++ /CKEditor/trunk/_samples/divreplace.html	(revision 2959)
@@ -0,0 +1,115 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>Replace DIV - CKEditor Sample</title>
+	<style id="styles" type="text/css">
+
+		div
+		{
+			border: solid 2px Transparent;
+			padding-left: 15px;
+			padding-right: 15px;
+		}
+
+		div:hover
+		{
+			border-color: black;
+		}
+
+	</style>
+	<script type="text/javascript" src="sample.js"></script>
+	<script id="headscript" type="text/javascript">
+	//<![CDATA[
+
+// Uncomment the following code to test the "Timeout Loading Method".
+// CKEDITOR.loadFullCoreTimeout = 5;
+
+window.onload = function()
+{
+	// Listen to the double click event.
+	if ( window.addEventListener )
+		document.body.addEventListener( 'dblclick', onDoubleClick, false );
+	else if ( window.attachEvent )
+		document.body.attachEvent( 'ondblclick', onDoubleClick );
+
+};
+
+function onDoubleClick( ev )
+{
+	// Get the element which fired the event. This is not necessarily the
+	// element to which the event has been attached.
+	var element = ev.target || ev.srcElement;
+
+	// Find out the div that holds this element.
+	while( element.parentNode && element.parentNode.nodeName.toLowerCase() != 'fieldset' )
+		element = element.parentNode;
+
+	if ( element.nodeName.toLowerCase() == 'div' )
+		replaceDiv( element );
+}
+
+var editor;
+
+function replaceDiv( div )
+{
+	if ( editor )
+		editor.destroy();
+
+	editor = CKEDITOR.replace( div );
+}
+
+	//]]>
+	</script>
+</head>
+<body>
+	<div id="html">
+		<p>
+			Double-click on any of the following DIVs to transform them into editor instances.</p>
+		<div>
+			<h3>
+				Part 1</h3>
+			<p>
+				Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi
+				semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna
+				rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla
+				nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce
+				eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus.
+			</p>
+		</div>
+		<div>
+			<h3>
+				Part 2</h3>
+			<p>
+				Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi
+				semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna
+				rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla
+				nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce
+				eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus.
+			</p>
+			<p>
+				Donec velit. Mauris massa. Vestibulum non nulla. Nam suscipit arcu nec elit. Phasellus
+				sollicitudin iaculis ante. Ut non mauris et sapien tincidunt adipiscing. Vestibulum
+				vitae leo. Suspendisse nec mi tristique nulla laoreet vulputate.
+			</p>
+		</div>
+		<div>
+			<h3>
+				Part 3</h3>
+			<p>
+				Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras et ipsum quis mi
+				semper accumsan. Integer pretium dui id massa. Suspendisse in nisl sit amet urna
+				rutrum imperdiet. Nulla eu tellus. Donec ante nisi, ullamcorper quis, fringilla
+				nec, sagittis eleifend, pede. Nulla commodo interdum massa. Donec id metus. Fusce
+				eu ipsum. Suspendisse auctor. Phasellus fermentum porttitor risus.
+			</p>
+		</div>
+	</div>
+	<div id="code">
+		<pre></pre>
+	</div>
+</body>
+</html>
Index: /CKEditor/trunk/_samples/index.html
===================================================================
--- /CKEditor/trunk/_samples/index.html	(revision 2959)
+++ /CKEditor/trunk/_samples/index.html	(revision 2959)
@@ -0,0 +1,39 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>Samples List - CKEditor</title>
+	<link type="text/css" rel="stylesheet" href="sample.css" />
+</head>
+<body>
+	<h1>
+		CKEditor Samples List
+	</h1>
+	<h2>
+		Basic Samples
+	</h2>
+	<ul>
+		<li><a href="replacebyclass.html">Replace textareas by class name</a></li>
+		<li><a href="replacebycode.html">Replace textareas by code</a></li>
+	</ul>
+	<h2>
+		Advanced Samples
+	</h2>
+	<ul>
+		<li><a href="divreplace.html">Replace DIV elements on the fly</a>&nbsp; </li>
+		<li><a href="ajax.html">Create and destroy editor instances for Ajax applications</a></li>
+	</ul>
+	<div id="footer">
+		<hr />
+		<p>
+			CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
+		</p>
+		<p id="copy">
+			Copyright &copy; 2003-2009, <a href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
+		</p>
+	</div>
+</body>
+</html>
Index: /CKEditor/trunk/_samples/replacebyclass.html
===================================================================
--- /CKEditor/trunk/_samples/replacebyclass.html	(revision 2959)
+++ /CKEditor/trunk/_samples/replacebyclass.html	(revision 2959)
@@ -0,0 +1,44 @@
+﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>Replace Textareas by Class Name - CKEditor Sample</title>
+	<script type="text/javascript" src="sample.js"></script>
+</head>
+<body>
+	<div id="html">
+		<form action="">
+			<p>
+				<label for="editor1">
+					Editor 1:</label><br />
+				<textarea id="editor1" name="editor1" class="ckeditor" rows="10" cols="80">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://www.fckeditor.net/"&gt;FCKeditor&lt;/a&gt;.&lt;/p&gt;</textarea>
+			</p>
+			<p>
+				<input type="submit" value="Submit" />
+			</p>
+		</form>
+	</div>
+	<div id="code">
+		<pre>
+&lt;form action=""&gt;
+  &lt;p&gt;
+    &lt;label for="editor1"&gt;
+      Editor 1:&lt;/label&gt;&lt;br /&gt;
+    &lt;textarea id="editor1" name="editor1" <b>class="ckeditor"</b> rows="10" cols="80"&gt;&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://www.fckeditor.net/"&gt;FCKeditor&lt;/a&gt;.&lt;/p&gt;&lt;/textarea&gt;
+  &lt;/p&gt;
+  &lt;p&gt;
+    &lt;label for="editor2"&gt;
+      Editor 2:&lt;/label&gt;&lt;br /&gt;
+    &lt;textarea id="editor2" name="editor2" <b>class="ckeditor"</b> rows="10" cols="80"&gt;&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://www.fckeditor.net/"&gt;FCKeditor&lt;/a&gt;.&lt;/p&gt;&lt;/textarea&gt;
+  &lt;/p&gt;
+  &lt;p&gt;
+    &lt;input type="submit" value="Submit" /&gt;
+  &lt;/p&gt;
+&lt;/form&gt;
+</pre>
+	</div>
+</body>
+</html>
Index: /CKEditor/trunk/_samples/replacebycode.html
===================================================================
--- /CKEditor/trunk/_samples/replacebycode.html	(revision 2959)
+++ /CKEditor/trunk/_samples/replacebycode.html	(revision 2959)
@@ -0,0 +1,77 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>Replace Textarea by Code - CKEditor Sample</title>
+	<script type="text/javascript" src="sample.js"></script>
+</head>
+<body>
+	<div id="html">
+		<form action="">
+			<p>
+				<label for="editor1">
+					Editor 1:</label><br />
+				<textarea id="editor1" name="editor1" rows="10" cols="80">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://www.fckeditor.net/"&gt;FCKeditor&lt;/a&gt;.&lt;/p&gt;</textarea>
+				<script type="text/javascript">
+				//<![CDATA[
+
+					// This call can be placed at any point after the
+					// <textarea>, or inside a <head><script> in a
+					// window.onload event handler.
+
+					// Replace the <textarea id="editor"> with an CKEditor
+					// instance, using default configurations.
+					CKEDITOR.replace( 'editor1' );
+
+				//]]>
+				</script>
+			</p>
+			<p>
+				<label for="editor2">
+					Editor 2:</label><br />
+				<textarea id="editor2" name="editor2" rows="10" cols="80">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://www.fckeditor.net/"&gt;FCKeditor&lt;/a&gt;.&lt;/p&gt;</textarea>
+				<script type="text/javascript">
+				//<![CDATA[
+
+					// This call can be placed at any point after the
+					// <textarea>, or inside a <head><script> in a
+					// window.onload event handler.
+
+					// Replace the <textarea id="editor"> with an CKEditor
+					// instance, using default configurations.
+					CKEDITOR.replace( 'editor2' );
+
+				//]]>
+				</script>
+			</p>
+			<p>
+				<input type="submit" value="Submit" />
+			</p>
+		</form>
+	</div>
+	<div id="code">
+		<pre>
+&lt;form action=""&gt;
+  &lt;p&gt;
+    &lt;label for="editor1"&gt;
+      Editor 1:&lt;/label&gt;&lt;br /&gt;
+    &lt;textarea <b>name="editor1"</b> rows="10" cols="80"&gt;&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://www.fckeditor.net/"&gt;FCKeditor&lt;/a&gt;.&lt;/p&gt;&lt;/textarea&gt;
+    &lt;script type="text/javascript"&gt;
+    //&lt;![CDATA[
+
+      <b>CKEDITOR.replace( 'editor1' );</b>
+
+    //]]&gt;
+    &lt;/script&gt;
+  &lt;/p&gt;
+  &lt;p&gt;
+    &lt;input type="submit" value="Submit" /&gt;
+  &lt;/p&gt;
+&lt;/form&gt;
+</pre>
+	</div>
+</body>
+</html>
Index: /CKEditor/trunk/_samples/sample.css
===================================================================
--- /CKEditor/trunk/_samples/sample.css	(revision 2959)
+++ /CKEditor/trunk/_samples/sample.css	(revision 2959)
@@ -0,0 +1,49 @@
+﻿/*
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+
+fieldset
+{
+	margin: 0;
+	padding: 10px;
+}
+
+form
+{
+	margin: 0;
+	padding: 0;
+}
+
+pre
+{
+	background-color: #F7F7F7;
+	border: 1px solid #D7D7D7;
+	overflow: auto;
+	margin: 0;
+	padding: 0.25em;
+}
+
+#alerts
+{
+	color: Red;
+}
+
+#footer hr
+{
+	margin: 10px 0 15px 0;
+	height: 1px;
+	border: solid 1px gray;
+	border-bottom: none;
+}
+
+#footer p
+{
+	margin: 0 10px 10px 10px;
+	float: left;
+}
+
+#footer #copy
+{
+	float: right;
+}
Index: /CKEditor/trunk/_samples/sample.html
===================================================================
--- /CKEditor/trunk/_samples/sample.html	(revision 2959)
+++ /CKEditor/trunk/_samples/sample.html	(revision 2959)
@@ -0,0 +1,95 @@
+﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+	<title>Sample - CKEditor</title>
+	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
+<!-- CKReleaser %REMOVE_LINE%
+	<script type="text/javascript" src="../ckeditor.js"></script>
+CKReleaser %REMOVE_START% -->
+	<script type="text/javascript" src="../ckeditor_source.js"></script>
+	<script type="text/javascript">
+	//<![CDATA[
+
+// Loaded dependencies of sample.js.
+CKEDITOR.loader.load( 'core/ajax' );
+CKEDITOR.loader.load( 'core/env' );
+
+	//]]>
+	</script>
+<!--
+	## Uncomment this if loading the "basic" version.
+
+	<script type="text/javascript" src="../_source/core/loader.js"></script>
+	<script type="text/javascript">
+	//<![CDATA[
+
+// Loaded dependencies of sample.js.
+CKEDITOR.loader.load( 'core/ajax' );
+CKEDITOR.loader.load( 'core/env' );
+
+	//]]>
+	</script>
+-->
+<!-- CKReleaser %REMOVE_END% -->
+	<script type="text/javascript" src="sample.js"></script>
+	<link type="text/css" rel="stylesheet" href="sample.css" />
+	<script id="styles" type="text/javascript">
+	//<![CDATA[
+		document.write( CKEDITOR.samples.styles );
+	//]]>
+	</script>
+	<script id="headscript" type="text/javascript">
+	//<![CDATA[
+		document.write( CKEDITOR.samples.headScript );
+	//]]>
+	</script>
+</head>
+<body>
+	<h1>
+		CKEditor Sample
+	</h1>
+	<!-- This <div> holds alert messages to be display in the sample page. -->
+	<div id="alerts">
+		<noscript>
+			<p>
+				<strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
+				support, like yours, you should still see the contents (HTML data) and you should
+				be able to edit it normally, without a rich editor interface.
+			</p>
+		</noscript>
+	</div>
+	<!-- This <fieldset> holds the HTML that you will usually find in your
+	     pages. -->
+	<fieldset title="Output">
+		<legend>Output</legend>
+		<script id="html" type="text/javascript">
+		//<![CDATA[
+			document.write( CKEDITOR.samples.htmlData );
+		//]]>
+		</script>
+	</fieldset>
+	<!-- This <fieldset> contains the output readable code that illustrates
+	     how to use the editor, having the results shown in this sample. -->
+	<fieldset title="Code">
+		<legend>Code</legend>
+		<script id="code" type="text/javascript">
+		//<![CDATA[
+			document.write( CKEDITOR.samples.codeData );
+		//]]>
+		</script>
+	</fieldset>
+	<div id="footer">
+		<hr />
+		<p>
+			CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
+		</p>
+		<p id="copy">
+			Copyright &copy; 2003-2009, <a href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
+		</p>
+	</div>
+</body>
+</html>
Index: /CKEditor/trunk/_samples/sample.js
===================================================================
--- /CKEditor/trunk/_samples/sample.js	(revision 2959)
+++ /CKEditor/trunk/_samples/sample.js	(revision 2959)
@@ -0,0 +1,124 @@
+﻿/*
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+
+// Firebug has been presented some bugs with console. It must be "initialized"
+// before the page load to work.
+// FIXME: Remove the following in the future, if Firebug gets fixed.
+if ( typeof console != 'undefined' )
+	console.log();
+
+// %REMOVE_START%
+(function()
+{
+	// The sample##.html files also include this script. We don't want them to
+	// run, so we redirect to the samples.html page, passing the correct
+	// querystring parameter to load the desired page.
+
+	var sampleMatch = window.location.pathname.match( /[\/\\]([^\/\\]+).html/ );
+	if ( sampleMatch && sampleMatch[1] != 'sample' )
+		window.location = 'sample.html?sample=' + sampleMatch[1] + ( location.search.length > 1 ? '&' + location.search.substr(1) : '' );
+})();
+// %REMOVE_END%
+
+if ( window.CKEDITOR )
+{
+	CKEDITOR.samples = (function()
+	{
+		var ajax = CKEDITOR.ajax;
+
+		// Default values for the CKEDITOR.samples properties.
+		var samples =
+		{
+			htmlData : '<p>No HTML data available.</p>',
+			codeData : '<p>No code data available.</p>'
+		};
+
+		if ( /[?&]sample=[^&]+/.test( document.location.search ) )
+		{
+			var currentSample = document.location.search.match( /[?&]sample=([^&]+)/ )[1];
+			var sampleData = ajax.loadXml( CKEDITOR.getUrl( '_samples/' + currentSample + '.html' ) );
+
+			if ( sampleData )
+			{
+				var getNodeHtml = function ( id )
+				{
+					return sampleData.getInnerXml( '//*[@id="' + id + '"]' );
+				};
+
+				samples.headScript	= getNodeHtml( 'headscript' ) || '';
+				samples.styles		= getNodeHtml( 'styles' ) || '';
+				samples.htmlData	= getNodeHtml( 'html' ) || '';
+				samples.codeData	= getNodeHtml( 'code' ) || '';
+
+				if ( samples.headScript )
+					samples.headScript = '<script id="headscript" type="text/javascript">' + samples.headScript + '</script>';
+
+				if ( samples.styles )
+					samples.styles = '<style id="styles" type="text/css">' + samples.styles + '</style>';
+
+				// The '//*/*/*' XPath is the only way to make it work with
+				// xmlns="http://www.w3.org/1999/xhtml" without workarounds. It
+				// means that we must always have <html><head><title> in this
+				// precise order.
+				document.title = sampleData.getInnerXml( '//*/*/*' );
+			}
+		}
+
+		return samples;
+	})();
+
+	(function()
+	{
+		var showCompatibilityMsg = function()
+		{
+			var env = CKEDITOR.env;
+
+			var html = '<p><strong>Your browser is not compatible with CKEditor.</strong>';
+
+			var browsers =
+			{
+				gecko : 'Firefox 1.5',
+				ie : 'Internet Explorer 6.0',
+				opera : 'Opera 9.5',
+				webkit : 'Safari 3.0'
+			};
+
+			var alsoBrowsers = '';
+
+			for ( var key in env )
+			{
+				if ( browsers[ key ] )
+				{
+					if ( env[key] )
+						html += ' CKEditor is compatible with ' + browsers[ key ] + ' or higher.';
+					else
+						alsoBrowsers += browsers[ key ] + '+, ';
+				}
+			}
+
+			alsoBrowsers = alsoBrowsers.replace( /\+,([^,]+), $/, '+ and $1' );
+
+			html += ' It is also compatible with ' + alsoBrowsers + '.';
+
+			html += '</p><p>With non compatible browsers, you should still be able to see and edit the contents (HTML) in a plain text field.</p>';
+
+			document.getElementById( 'alerts' ).innerHTML = html;
+		};
+
+		var onload = function()
+		{
+			// Show a friendly compatibility message as soon as the page is loaded,
+			// for those browsers that are not compatible with CKEditor.
+			if ( !CKEDITOR.env.isCompatible )
+				showCompatibilityMsg();
+		};
+
+		// Register the onload listener.
+		if ( window.addEventListener )
+			window.addEventListener( 'load', onload, false );
+		else if ( window.attachEvent )
+			window.attachEvent( 'onload', onload );
+	})();
+}
Index: /CKEditor/trunk/_source/skins/default/dialog.css
===================================================================
--- /CKEditor/trunk/_source/skins/default/dialog.css	(revision 2959)
+++ /CKEditor/trunk/_source/skins/default/dialog.css	(revision 2959)
@@ -0,0 +1,701 @@
+/*
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+
+.cke_skin_default .cke_dialog_tl,
+.cke_skin_default .cke_dialog_t,
+.cke_skin_default .cke_dialog_tr,
+.cke_skin_default .cke_dialog_l,
+.cke_skin_default .cke_dialog_c,
+.cke_skin_default .cke_dialog_r,
+.cke_skin_default .cke_dialog_bl,
+.cke_skin_default .cke_dialog_b,
+.cke_skin_default .cke_dialog_br
+{
+	float: left;
+}
+
+.cke_skin_default .cke_dialog_tl,
+.cke_skin_default .cke_dialog_l,
+.cke_skin_default .cke_dialog_bl
+{
+	clear: left;
+}
+
+.cke_skin_default .cke_dialog_tl,
+.cke_skin_default .cke_dialog_tr,
+.cke_skin_default .cke_dialog_l,
+.cke_skin_default .cke_dialog_r
+{
+	width: 16px;
+}
+
+.cke_skin_default .cke_dialog_tl,
+.cke_skin_default .cke_dialog_t,
+.cke_skin_default .cke_dialog_tr
+{
+	height: 16px;
+}
+
+.cke_skin_default .cke_dialog_tl,
+.cke_skin_default .cke_dialog_t,
+.cke_skin_default .cke_dialog_tr,
+.cke_skin_default .cke_dialog_bl,
+.cke_skin_default .cke_dialog_b,
+.cke_skin_default .cke_dialog_br
+{
+	background-image: url(images/sprites.png);
+	/* IE6 does not support full color transparent PNG. */
+	_background-image: url(images/sprites.gif);
+	background-repeat: no-repeat;
+}
+
+.cke_skin_default .cke_dialog_l,
+.cke_skin_default .cke_dialog_r
+{
+	background-image: url(images/dialog.sides.png);
+	/* IE6 does not support full color transparent PNG. */
+	_background-image: url(images/dialog.sides.gif);
+	background-repeat: repeat-y;
+}
+
+.cke_skin_default.cke_rtl .cke_dialog_l,
+.cke_skin_default.cke_rtl .cke_dialog_r
+{
+	background-image: url(images/dialog.sides.rtl.png);
+	_background-image: url(images/dialog.sides.gif);
+}
+
+.cke_skin_default .cke_dialog_bl,
+.cke_skin_default .cke_dialog_b,
+.cke_skin_default .cke_dialog_br
+{
+	height: 51px;
+}
+
+.cke_skin_default .cke_dialog_bl,
+.cke_skin_default .cke_dialog_br
+{
+	width: 30px;
+}
+
+.cke_skin_default .cke_dialog_tl
+{
+	background-position: -16px -16px;
+}
+
+.cke_skin_default.cke_rtl .cke_dialog_tl
+{
+	background-position: -16px -397px;
+}
+
+.cke_skin_default .cke_dialog_tr
+{
+	background-position: -16px -76px;
+}
+
+.cke_skin_default.cke_rtl .cke_dialog_tr
+{
+	background-position: -16px -457px;
+}
+
+.cke_skin_default .cke_dialog_t
+{
+	background-position: 0px -136px;
+	background-repeat: repeat-x;
+}
+
+.cke_skin_default .cke_dialog_l
+{
+	background-position: 0px 0px;
+}
+
+.cke_skin_default .cke_dialog_r
+{
+	background-position: -16px 0px;
+}
+
+.cke_skin_default .cke_dialog_bl
+{
+	background-position: -16px -196px;
+}
+
+.cke_skin_default.cke_rtl .cke_dialog_bl
+{
+	background-position: -16px -517px;
+}
+
+.cke_skin_default .cke_dialog_b
+{
+	background-position: 0px -330px;
+	background-repeat: repeat-x;
+}
+
+.cke_skin_default .cke_dialog_br
+{
+	background-position: -16px -263px;
+}
+
+.cke_skin_default.cke_rtl .cke_dialog_br
+{
+	background-position: -16px -584px;
+}
+
+.cke_skin_default .cke_dialog_title
+{
+	position: absolute;
+	top: 2px;
+	left: 16px;
+	height: 23px;
+	right: 16px;
+	font-weight: bold;
+	font-size: 14pt;
+	color: #737357;
+	background-color: #e3e3c7;
+	padding: 3px 10px 3px 10px;
+	overflow: hidden;
+	cursor: move;
+}
+
+.cke_skin_default .single_page .cke_dialog_tabs
+{
+	display: none;
+}
+
+.cke_skin_default .cke_dialog_tabs
+{
+	position: absolute;
+	top: 31px;
+	left: 16px;
+	height: 23px;
+	right: 16px;
+	background-color: #e3e3c7;
+	z-index: 1;
+	border-collapse: separate;
+}
+
+.cke_skin_default.cke_browser_ie .cke_dialog_tabs
+{
+	border-collapse: collapse;
+}
+
+.cke_skin_default .cke_dialog_tabs .head_filler
+{
+	padding-left: 10px;
+	border-bottom: 1px solid #D5D59D;
+	line-height: 50%;
+}
+
+.cke_skin_default .cke_dialog_tabs .tail_filler
+{
+	width: 100%;
+	border-bottom: 1px solid #D5D59D;
+	line-height: 50%;
+}
+
+.cke_skin_default .cke_dialog_contents
+{
+	position: absolute;
+	background-color: #f1f1e3;
+	top: 54px;
+	left: 16px;
+	bottom: 51px;
+	right: 16px;
+	border: #d5d59d 1px solid;
+	border-top: none;
+}
+
+.cke_skin_default .single_page .cke_dialog_contents
+{
+	top: 31px;
+	border-top: #d5d59d 1px solid;
+}
+
+.cke_skin_default .cke_dialog_footer
+{
+	position: absolute;
+	background-color: #e3e3c7;
+	height: 31px;
+	left: 16px;
+	right: 16px;
+	bottom: 20px;
+}
+
+.cke_skin_default .cke_dialog_page_contents
+{
+	position: absolute;
+	top: 0px;
+	bottom: 0px;
+	left: 0px;
+	right: 0px;
+	padding: 5px 10px;
+}
+
+.cke_skin_default .cke_dialog_tab_center
+{
+	cursor: pointer;
+}
+
+.cke_skin_default .cke_dialog_tab
+{
+	border-bottom: 1px solid #D5D59D;
+}
+
+.cke_skin_default .cke_dialog_tab_left,
+.cke_skin_default .cke_dialog_tab_right
+{
+	cursor: pointer;
+}
+
+.cke_skin_default .cke_dialog_tab_center
+{
+	color: #737357;
+	border-left: 1px solid #d5d59d;
+	border-right: 1px solid #d5d59d;
+	border-top: 1px solid #d5d59d;
+	height: 15px;
+	padding: 4px 5px;
+}
+
+.cke_skin_default.cke_browser_webkit.cke_mode_quirks .cke_dialog_tab_center
+{
+	padding: 4px 5px 5px 5px;
+}
+
+.cke_skin_default.cke_browser_webkit.cke_mode_standards .cke_dialog_tab_center
+{
+	padding: 4px 5px 2px 5px;
+}
+
+
+.cke_skin_default .cke_dialog_tab_selected
+{
+	border-bottom: 1px solid #F1F1E3;
+}
+
+.cke_skin_default .cke_dialog_tab_selected .cke_dialog_tab_left,
+.cke_skin_default .cke_dialog_tab_selected .cke_dialog_tab_center,
+.cke_skin_default .cke_dialog_tab_selected .cke_dialog_tab_right
+{
+	cursor: default;
+}
+
+.cke_skin_default .cke_dialog_tab_selected .cke_dialog_tab_center
+{
+	background-color: #f1f1e3;
+	font-weight: bold;
+}
+
+.cke_skin_default .cke_dialog_ui_vbox table,
+.cke_skin_default .cke_dialog_ui_hbox table
+{
+	margin: auto;
+}
+
+.cke_skin_default .cke_dialog_ui_vbox_child
+{
+	padding: 5px 0px;
+}
+
+.cke_skin_default input.cke_dialog_ui_input_text,
+.cke_skin_default input.cke_dialog_ui_input_password
+{
+	background-color: white;
+	border: none;
+	padding: 0px;
+	width: 100%;
+	height: 14px;
+}
+
+.cke_skin_default div.cke_dialog_ui_input_text,
+.cke_skin_default div.cke_dialog_ui_input_password
+{
+	background-color: white;
+	border: 1px solid #a0a0a0;
+	padding: 1px 0px;
+}
+
+.cke_skin_default textarea.cke_dialog_ui_input_textarea
+{
+	background-color: white;
+	border: none;
+	padding: 0px;
+	width: 100%;
+	/*
+	 * IE6 BUG: Scrollbars in textareas can overflow even if the outer DIV is set to overflow:hidden.
+	 * So leave 1% width for the scrollbar. In most situations the 1% isn't noticeable by users.
+	 */
+	_width: 99%;
+	overflow: auto;
+}
+
+.cke_skin_default div.cke_dialog_ui_input_textarea
+{
+	background-color: white;
+	border: 1px solid #a0a0a0;
+	padding: 1px 0px;
+}
+
+.cke_skin_default .cke_dialog_ui_hbox
+{
+	width: 100%;
+}
+
+.cke_skin_default.cke_browser_ie .cke_dialog_ui_hbox,
+.cke_skin_default.cke_browser_ie .cke_dialog_ui_vbox,
+.cke_skin_default.cke_browser_webkit .cke_dialog_ui_hbox,
+.cke_skin_default.cke_browser_webkit .cke_dialog_ui_vbox
+{
+	table-layout: fixed;
+}
+
+.cke_skin_default.cke_browser_ie .cke_dialog_footer_buttons
+{
+	table-layout: auto;
+}
+
+.cke_skin_default.cke_ltr .cke_dialog_ui_hbox_first,
+.cke_skin_default.cke_ltr .cke_dialog_ui_hbox_child
+{
+	padding-right: 10px;
+}
+
+.cke_skin_default.cke_rtl .cke_dialog_ui_hbox_first,
+.cke_skin_default.cke_rtl .cke_dialog_ui_hbox_child
+{
+	padding-left: 10px;
+}
+
+.cke_skin_default .cke_dialog_ui_button
+{
+	border: #737357 1px solid;
+}
+
+.cke_skin_default .cke_dialog_ui_button.disabled
+{
+	border: #898980 1px solid;
+}
+
+.cke_skin_default .cke_dialog_ui_button_txt
+{
+	padding: 2px 10px;
+	text-align: center;
+	color: #3b3b1f;
+	background-color: #c7c78f;
+}
+
+.cke_skin_default .cke_dialog_ui_button.disabled .cke_dialog_ui_button_txt
+{
+	color: #5e5e55;
+	background-color: #c5c5b3;
+}
+
+.cke_skin_default .cke_dialog_ui_button.active .cke_dialog_ui_button_txt
+{
+	background-color: #e3e3c7;
+}
+
+.cke_skin_default strong
+{
+	font-weight: bold;
+}
+
+.cke_skin_default .cke_dialog_footer_buttons
+{
+	width: auto;
+	position: absolute;
+	right: 10px;
+	top: 7px;
+}
+
+.cke_skin_default.cke_rtl .cke_dialog_footer_buttons
+{
+	right: auto;
+	left: 10px;
+}
+
+.cke_skin_default .cke_dialog_close_button
+{
+	background-image: url(images/sprites.png);
+	/* IE6 does not support full color transparent PNG. */
+	_background-image: url(images/sprites.gif);
+	background-repeat: no-repeat;
+	background-position: -16px -651px;
+	position: absolute;
+	cursor: pointer;
+	height: 20px;
+	width: 20px;
+	right: 10px;
+	top: 5px;
+}
+
+.cke_skin_default .cke_dialog_close_button:hover
+{
+	background-position: -16px -687px;
+}
+
+.cke_skin_default.cke_rtl .cke_dialog_close_button
+{
+	left: 10px;
+	right: auto;
+}
+
+.cke_skin_default .cke_dialog_tl_resize,
+.cke_skin_default .cke_dialog_t_resize,
+.cke_skin_default .cke_dialog_tr_resize,
+.cke_skin_default .cke_dialog_bl_resize,
+.cke_skin_default .cke_dialog_b_resize,
+.cke_skin_default .cke_dialog_br_resize
+{
+	position: absolute;
+	height: 5px;
+	overflow: hidden;
+	background-color: transparent;
+}
+
+.cke_skin_default .cke_dialog_l_resize,
+.cke_skin_default .cke_dialog_r_resize
+{
+	position: absolute;
+	width: 5px;
+	overflow: hidden;
+	background-color: transparent;
+}
+
+.cke_skin_default .cke_dialog_tl_resize
+{
+	width: 5px;
+	left: 11px;
+	top: -3px;
+	cursor: nw-resize;
+}
+
+.cke_skin_default .cke_dialog_t_resize
+{
+	left: 16px;
+	top: -3px;
+	cursor: n-resize;
+}
+
+.cke_skin_default .cke_dialog_tr_resize
+{
+	width: 5px;
+	right: 14px;
+	top: -3px;
+	cursor: ne-resize;
+}
+
+.cke_skin_default .cke_dialog_l_resize
+{
+	top: 2px;
+	left: 11px;
+	cursor: w-resize;
+}
+
+.cke_skin_default .cke_dialog_r_resize
+{
+	top: 2px;
+	right: 14px;
+	cursor: e-resize;
+}
+
+.cke_skin_default .cke_dialog_bl_resize
+{
+	bottom: 18px;
+	left: 11px;
+	width: 5px;
+	cursor: sw-resize;
+}
+
+.cke_skin_default .cke_dialog_b_resize
+{
+	bottom: 18px;
+	left: 16px;
+	cursor: s-resize;
+}
+
+.cke_skin_default .cke_dialog_br_resize
+{
+	bottom: 18px;
+	right: 14px;
+	width: 8px;
+	height: 8px;
+	cursor: se-resize;
+}
+
+.cke_skin_default .cke_dialog_ui_input_select
+{
+	border: 1px solid #a0a0a0;
+	background-color: white;
+}
+
+.cke_skin_default iframe.cke_dialog_ui_input_file
+{
+	width: 100%;
+	height: 25px;
+}
+
+.cke_skin_default.cke_browser_ie div.cke_dialog_ui_input_file
+{
+	height: 25px;
+}
+
+/*
+ * Safari and Gecko on Mac actually distinguish between single-sided and
+ * double-sided resize cursors. The double-sided resize cursors should be used.
+ */
+.cke_skin_default.cke_browser_gecko .cke_dialog_tl_resize,
+.cke_skin_default.cke_browser_webkit .cke_dialog_tl_resize,
+.cke_skin_default.cke_browser_gecko .cke_dialog_br_resize,
+.cke_skin_default.cke_browser_webkit .cke_dialog_br_resize
+{
+	cursor: nwse-resize;
+}
+
+.cke_skin_default.cke_browser_gecko .cke_dialog_tr_resize,
+.cke_skin_default.cke_browser_webkit .cke_dialog_tr_resize,
+.cke_skin_default.cke_browser_gecko .cke_dialog_bl_resize,
+.cke_skin_default.cke_browser_webkit .cke_dialog_bl_resize
+{
+	cursor: nesw-resize;
+}
+
+.cke_skin_default.cke_browser_gecko .cke_dialog_l_resize,
+.cke_skin_default.cke_browser_webkit .cke_dialog_l_resize,
+.cke_skin_default.cke_browser_gecko .cke_dialog_r_resize,
+.cke_skin_default.cke_browser_webkit .cke_dialog_r_resize
+{
+	cursor: ew-resize;
+}
+
+.cke_skin_default.cke_browser_gecko .cke_dialog_t_resize,
+.cke_skin_default.cke_browser_webkit .cke_dialog_t_resize,
+.cke_skin_default.cke_browser_gecko .cke_dialog_b_resize,
+.cke_skin_default.cke_browser_webkit .cke_dialog_b_resize
+{
+	cursor: ns-resize;
+}
+
+/*
+ * Some utility CSS classes for dialog authors.
+ */
+.cke_skin_default .cke_dialog .dark_background
+{
+	background-color: #eaead1;
+}
+
+.cke_skin_default .cke_dialog .hand
+{
+	cursor: pointer;
+}
+
+.cke_skin_default .cke_dialog .centered
+{
+	text-align: center;
+}
+
+.cke_skin_default .cke_dialog .BtnReset
+{
+	float: right;
+	background-position: center center;
+	background-image: url(images/reset.gif);
+	width: 16px;
+	height: 16px;
+	background-repeat: no-repeat;
+	border: 1px none;
+	font-size: 1px;
+}
+
+.cke_skin_default .cke_dialog .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;
+}
+
+.cke_skin_default .cke_dialog .BtnUnlocked
+{
+	background-image: url(images/unlocked.gif);
+}
+
+.cke_skin_default .cke_dialog .BtnOver
+{
+	border: outset 1px;
+	cursor: pointer;
+	cursor: hand;
+}
+
+.cke_skin_default .cke_dialog  #ImagePreviewBox
+{
+	white-space : normal;
+	border : 2px ridge black;
+	overflow : scroll;
+	height : 160px;
+	width : 230px;
+	padding : 2px;
+	background-color : white;
+}
+.cke_skin_default .cke_dialog  #ImagePreviewLoader
+{
+	position: absolute;
+	white-space : normal;
+	overflow : hidden;
+	height : 160px;
+	width : 230px;
+	margin : 2px;
+	padding : 2px;
+	opacity : 0.9;
+	filter : alpha(opacity=90);
+
+	background-color : #e4e4e4;
+}
+
+.cke_skin_default .cke_dialog  #FlashPreviewBox
+{
+	white-space : normal;
+	border : 2px ridge black;
+	overflow : scroll;
+	height : 160px;
+	width : 390px;
+	padding : 2px;
+	background-color : white;
+}
+
+.cke_skin_default .cke_dialog .loading
+{
+	height : 160px;
+	width : 230px;
+	background-image: url(images/dialog.loading.gif);
+	background-repeat: no-repeat;
+	background-position: 47% 47%;
+}
+
+.cke_skin_default .cke_dialog .DarkBackground
+{
+	text-align : center;
+	background-color: #eaead1;
+	font-size : 14px;
+}
+
+.cke_skin_default .cke_dialog .LightBackground
+{
+	text-align : center;
+	background-color: #ffffbe;
+}
+
+.cke_skin_default .cke_dialog .Hand
+{
+	cursor: pointer;
+	cursor: hand;
+}
+
+.cke_skin_default .disabled
+{
+	color: #a0a0a0;
+}
Index: /CKEditor/trunk/_source/skins/default/editor.css
===================================================================
--- /CKEditor/trunk/_source/skins/default/editor.css	(revision 2959)
+++ /CKEditor/trunk/_source/skins/default/editor.css	(revision 2959)
@@ -0,0 +1,9 @@
+﻿/*
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+
+@import url("reset.css");
+@import url("mainui.css");
+@import url("toolbar.css");
+@import url("elementspath.css");
Index: /CKEditor/trunk/_source/skins/default/elementspath.css
===================================================================
--- /CKEditor/trunk/_source/skins/default/elementspath.css	(revision 2959)
+++ /CKEditor/trunk/_source/skins/default/elementspath.css	(revision 2959)
@@ -0,0 +1,40 @@
+﻿/*
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+
+@media print
+{
+	.cke_path
+	{
+		display: none;
+	}
+}
+
+.cke_skin_default .cke_path
+{
+	padding: 3px;
+}
+
+.cke_skin_default .cke_path a
+{
+	border: solid 1px #efefde;
+	background-color: #efefde;
+	padding-top: 1px;
+	padding-bottom: 1px;
+	padding-left: 4px;
+	padding-right: 4px;
+}
+
+.cke_skin_default .cke_path a:hover,
+.cke_skin_default .cke_path a:focus,
+.cke_skin_default .cke_path a:active	/* IE */
+{
+	border: solid 1px #316ac5;
+	background-color: #dff1ff;
+	padding-top: 1px;
+	padding-bottom: 1px;
+	padding-left: 4px;
+	padding-right: 4px;
+	outline: none;
+}
Index: /CKEditor/trunk/_source/skins/default/mainui.css
===================================================================
--- /CKEditor/trunk/_source/skins/default/mainui.css	(revision 2959)
+++ /CKEditor/trunk/_source/skins/default/mainui.css	(revision 2959)
@@ -0,0 +1,50 @@
+﻿/*
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+
+.cke_skin_default .cke_editor
+{
+/*
+	border: solid 1px #dcdcdc;
+*/
+	display: inline-table;
+}
+
+.cke_skin_default .cke_top, .cke_skin_default .cke_bottom
+{
+	background-color: #efefde;
+}
+
+.cke_skin_default .cke_top
+{
+    border-top: solid 1px #fafaf5;
+    border-left: solid 1px #fafaf5;
+    border-right: solid 1px #696969;
+    border-bottom: solid 2px #696969;
+}
+
+.cke_skin_default .cke_bottom
+{
+    border-left: solid 1px #696969;
+    border-right: solid 1px #696969;
+    border-bottom: solid 1px #696969;
+}
+
+.cke_skin_default .cke_contents
+{
+	border: solid 1px #696969;
+}
+
+.cke_skin_default.cke_focus
+{
+	outline: auto 5px -webkit-focus-ring-color;
+}
+
+.cke_skin_default textarea.cke_source
+{
+	font-family: 'Courier New' , Monospace;
+	font-size: small;
+	white-space: pre;
+	background-color: #fff;
+}
Index: /CKEditor/trunk/_source/skins/default/reset.css
===================================================================
--- /CKEditor/trunk/_source/skins/default/reset.css	(revision 2959)
+++ /CKEditor/trunk/_source/skins/default/reset.css	(revision 2959)
@@ -0,0 +1,51 @@
+﻿/*
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+
+/**
+ * Reset and Default Values
+ */
+.cke_skin_default *,
+.cke_skin_default a:hover,
+.cke_skin_default a:link,
+.cke_skin_default a:visited,
+.cke_skin_default a:active
+{
+	margin: 0;
+	padding: 0;
+	border: 0;
+	background: transparent;
+	text-decoration: none;
+	font: normal normal normal 100% Sans-Serif;
+	width: auto;
+	height: auto;
+	border-collapse: collapse;
+	text-align: left;
+	vertical-align: baseline;
+	white-space: nowrap;
+	cursor: default;
+	color: #000;
+
+    font-size: 11px;
+    font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif;
+}
+
+.cke_skin_default.cke_rtl *,
+.cke_skin_default.cke_rtl a:hover,
+.cke_skin_default.cke_rtl a:link,
+.cke_skin_default.cke_rtl a:visited,
+.cke_skin_default.cke_rtl a:active
+{
+	text-align: right;
+}
+
+.cke_skin_default iframe
+{
+	vertical-align: inherit;	/** For IE */
+}
+
+.cke_skin_default textarea
+{
+	white-space: pre;
+}
Index: /CKEditor/trunk/_source/skins/default/skin.js
===================================================================
--- /CKEditor/trunk/_source/skins/default/skin.js	(revision 2959)
+++ /CKEditor/trunk/_source/skins/default/skin.js	(revision 2959)
@@ -0,0 +1,107 @@
+﻿/*
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+
+CKEDITOR.skins.add( 'default', (function()
+{
+	var preload = [];
+	var dialogJs = [];
+
+	if ( CKEDITOR.env.ie && CKEDITOR.env.version <= 6 )
+	{
+		// For IE6, we need to preload some images, otherwhise they will be
+		// downloaded several times (CSS background bug).
+		preload.push( 'icons.gif', 'images/sprites.gif', 'images/dialog.sides.gif' );
+
+		// The dialog must be fixed by code in IE6, as it doesn't support
+		// several CSS features (absolute positioning).
+		// dialogJs.push( 'dialog_ie6.js' );
+	}
+
+	return {
+		preload : preload,
+		editor : { css : [ 'editor.css' ] },
+		dialog : { css : [ 'dialog.css' ],  js : dialogJs }
+	};
+})() );
+
+(function()
+{
+	// Define the function for resizing dialog parts at load to speed up
+	// the actual resize operation.
+	var skinName = 'default',
+		setSize = function( dialog, partName, width, height )
+		{
+			var element = partName ? dialog.parts[partName] : dialog._.element.getFirst();
+			if ( width )
+				element.setStyle( 'width', width + 'px' );
+			if ( height )
+				element.setStyle( 'height', height + 'px' );
+		};
+
+	CKEDITOR.dialog.setMargins( 0, 14, 18, 14 );
+
+	CKEDITOR.dialog.on( 'resize', function( evt )
+		{
+			var data = evt.data,
+				width = data.width,
+				height = data.height,
+				dialog = data.dialog,
+				standardsMode = ( CKEDITOR.document.$.compatMode == 'CSS1Compat' );
+			if ( data.skin != skinName )
+				return;
+
+			// Dialog parts dimensions.
+			//  16x16  |  ?x16  |  16x16
+			//  16x?   |  ?x?   |  16x?
+			//  30x51  |  ?x51  |  30x51
+			setSize( dialog, 't', width - 32, 16 );
+			setSize( dialog, 't_resize', width - 32, null );
+			setSize( dialog, 'l', 16, height - 67 );
+			setSize( dialog, 'l_resize', null, height - 22 );
+			setSize( dialog, 'c', width - 32, height - 67 );
+			setSize( dialog, 'r', 16, height - 67 );
+			setSize( dialog, 'r_resize', null, height - 22 );
+			setSize( dialog, 'b', width - 60, 51 );
+			setSize( dialog, 'b_resize', width - 32, null );
+			setSize( dialog, 'tabs_table', width - 32, null );
+
+			/*
+			 * Although the following fix seems to be for IE6 only, it's also for IE7.
+			 * While IE7 can render DIV nodes with left: and right: defined, it cannot
+			 * put 100% height TABLES correctly inside those DIVs. Unless the width is
+			 * set as well.
+			 */
+			if ( CKEDITOR.env.ie )
+			{
+				var contentWidth = width - 34,
+					contentHeight = dialog.getPageCount() > 1 ? height - 106 : height - 84,
+					contentsLength = dialog.parts.contents.getChildCount();
+
+				if ( !standardsMode )
+				{
+					contentWidth += 2;
+					contentHeight += 2;
+					dialog.parts.tabs.setStyle( 'top', '33px' );
+				}
+
+				setSize( dialog, 'title', standardsMode ? width - 52 : width - 32, standardsMode ? null : 31 );
+				setSize( dialog, 'contents', contentWidth, contentHeight );
+				setSize( dialog, 'footer', width - 32);
+
+				for ( var i = 0 ; i < contentsLength ; i++ )
+				{
+					var child = dialog.parts.contents.getChild( i );
+					if ( ( child instanceof CKEDITOR.dom.element ) && ( child.$.className || '' ).search( 'cke_dialog_page_contents' ) > -1 )
+						child.setStyles(
+							{
+								width : contentWidth - ( standardsMode ? 20 : 0 ) + 'px',
+								height : contentHeight - ( standardsMode ? 20 : 0 ) + 'px'
+							} );
+				}
+			}
+
+			setSize( dialog, null, width, height );
+		});
+})();
Index: /CKEditor/trunk/_source/skins/default/toolbar.css
===================================================================
--- /CKEditor/trunk/_source/skins/default/toolbar.css	(revision 2959)
+++ /CKEditor/trunk/_source/skins/default/toolbar.css	(revision 2959)
@@ -0,0 +1,307 @@
+﻿/*
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+
+@media print
+{
+	.cke_toolbox
+	{
+		display: none;
+	}
+}
+
+.cke_skin_default .cke_toolbar
+{
+	padding: 5px;
+	display:inline-block;
+}
+
+.cke_skin_default .cke_separator
+{
+	display:block;
+	float:left;
+	border-left: solid 1px #999;
+	margin: 2px;
+	height:20px;
+}
+
+.cke_skin_default.cke_rtl .cke_separator
+{
+	float:right;
+}
+
+.cke_skin_default a.cke_button
+{
+	border: solid 1px #efefde;
+	background-color: #efefde;
+	padding-top: 2px;
+	padding-bottom: 2px;
+	padding-left: 4px;
+	padding-right: 4px;
+	filter: alpha(opacity=70); /* IE */
+	opacity: 0.70; /* Safari, Opera and Mozilla */
+	display:block;
+	float: left;
+	height: 18px;
+}
+
+.cke_skin_default.cke_rtl a.cke_button
+{
+	float: right;
+}
+
+.cke_skin_default a.cke_button.cke_on
+{
+	background-color: #a3d7ff;
+	border: solid 1px #316ac5;
+	filter: alpha(opacity=100); /* IE */
+	opacity: 1; /* Safari, Opera and Mozilla */
+	-moz-border-radius: 3px;
+	-webkit-border-radius: 3px;
+	border-radius: 3px;
+}
+
+.cke_skin_default a.cke_button.cke_disabled
+{
+	filter: alpha(opacity=30); /* IE */
+	opacity : 0.3; /* Safari, Opera and Mozilla */
+}
+
+/* IE6 BUG: Hover removes the padding and border, for some unknown reason. */
+.cke_skin_default.cke_browser_ie a.cke_button.cke_disabled:hover
+{
+	padding: 2px 4px;
+	border: solid 1px #efefde;
+}
+
+.cke_skin_default a.cke_button.cke_off:hover,
+.cke_skin_default a.cke_button.cke_off:focus,
+.cke_skin_default a.cke_button.cke_off:active,	/* IE */
+.cke_skin_default a.cke_button.cke_on:hover,
+.cke_skin_default a.cke_button.cke_on:focus,
+.cke_skin_default a.cke_button.cke_on:active	/* IE */
+{
+	border: solid 1px #316ac5;
+	background-color: #dff1ff;
+	padding-top: 2px;
+	padding-bottom: 2px;
+	padding-left: 4px;
+	padding-right: 4px;
+	filter: alpha(opacity=100); /* IE */
+	opacity: 1; /* Safari, Opera and Mozilla */
+	display:block;
+	float: left;
+	height: 18px;
+	outline: none;
+	-moz-border-radius: 3px;
+	-webkit-border-radius: 3px;
+	border-radius: 3px;
+}
+
+.cke_skin_default.cke_rtl a.cke_button.cke_off:hover,
+.cke_skin_default.cke_rtl a.cke_button.cke_on:hover,
+{
+	float: right;
+}
+
+.cke_skin_default a.cke_button .cke_icon
+{
+	background-image: url(icons.gif);
+	background-position: 100px;
+	background-repeat:no-repeat;
+	margin-top:1px;
+	width: 16px;
+	height: 16px;
+	display: block;
+	float: left;
+}
+
+.cke_skin_default.cke_rtl a.cke_button .cke_icon
+{
+	float: right;
+}
+
+.cke_skin_default a.cke_button .cke_label
+{
+	display: none;
+	float: left;
+	height: 14px;
+	padding-left: 3px;
+	padding-top:3px;
+}
+
+.cke_skin_default.cke_rtl a.cke_button .cke_label
+{
+	float: right;
+}
+
+.cke_skin_default a.cke_button_source .cke_icon
+{
+	background-position: 0 0;
+}
+
+.cke_skin_default a.cke_button_source .cke_label
+{
+	display: inline;
+}
+
+.cke_skin_default a.cke_button_newpage .cke_icon
+{
+	background-position: 0 -48px;
+}
+
+.cke_skin_default a.cke_button_find .cke_icon
+{
+	background-position: 0 -240px;
+}
+
+.cke_skin_default a.cke_button_replace .cke_icon
+{
+	background-position: 0 -256px;
+}
+
+.cke_skin_default a.cke_button_selectAll .cke_icon
+{
+	background-position: 0 -272px;
+}
+
+.cke_skin_default a.cke_button_removeFormat .cke_icon
+{
+	background-position: 0 -288px;
+}
+
+.cke_skin_default a.cke_button_bold .cke_icon
+{
+	background-position: 0 -304px;
+}
+
+.cke_skin_default a.cke_button_italic .cke_icon
+{
+	background-position: 0 -320px;
+}
+
+.cke_skin_default a.cke_button_underline .cke_icon
+{
+	background-position: 0 -336px;
+}
+
+.cke_skin_default a.cke_button_strike .cke_icon
+{
+	background-position: 0 -352px;
+}
+
+.cke_skin_default a.cke_button_subscript .cke_icon
+{
+	background-position: 0 -368px;
+}
+
+.cke_skin_default a.cke_button_superscript .cke_icon
+{
+	background-position: 0 -384px;
+}
+
+.cke_skin_default a.cke_button_table .cke_icon
+{
+	background-position: 0 -608px;
+}
+
+.cke_skin_default a.cke_button_horizontalrule .cke_icon
+{
+	background-position: 0 -624px;
+}
+
+.cke_skin_default a.cke_button_smiley .cke_icon
+{
+	background-position: 0 -640px;
+}
+
+.cke_skin_default a.cke_button_link .cke_icon
+{
+	background-position: 0 -528px;
+}
+
+.cke_skin_default a.cke_button_unlink .cke_icon
+{
+	background-position: 0 -544px;
+}
+
+.cke_skin_default a.cke_button_anchor .cke_icon
+{
+	background-position: 0 -560px;
+}
+
+.cke_skin_default a.cke_button_image .cke_icon
+{
+	background-position: 0 -576px;
+}
+
+.cke_skin_default a.cke_button_flash .cke_icon
+{
+	background-position: 0 -592px;
+}
+
+.cke_skin_default a.cke_button_specialchar .cke_icon
+{
+	background-position: 0 -656px;
+}
+
+.cke_skin_default a.cke_button_pagebreak .cke_icon
+{
+	background-position: 0 -672px;
+}
+
+.cke_skin_default a.cke_button_print .cke_icon
+{
+	background-position: 0 -176px;
+}
+
+.cke_skin_default a.cke_button_pagebreak .cke_icon
+{
+	background-position: 0 -672px;
+}
+
+.cke_skin_default a.cke_button_form .cke_icon
+{
+	background-position: 0 -752px;
+}
+
+.cke_skin_default a.cke_button_checkbox .cke_icon
+{
+	background-position: 0 -768px;
+}
+
+.cke_skin_default a.cke_button_radio .cke_icon
+{
+	background-position: 0 -784px;
+}
+
+.cke_skin_default a.cke_button_textfield .cke_icon
+{
+	background-position: 0 -800px;
+}
+
+.cke_skin_default a.cke_button_textarea .cke_icon
+{
+	background-position: 0 -816px;
+}
+
+.cke_skin_default a.cke_button_select .cke_icon
+{
+	background-position: 0 -832px;
+}
+
+.cke_skin_default a.cke_button_button .cke_icon
+{
+	background-position: 0 -848px;
+}
+
+.cke_skin_default a.cke_button_imagebutton .cke_icon
+{
+	background-position: 0 -864px;
+}
+
+.cke_skin_default a.cke_button_hiddenfield .cke_icon
+{
+	background-position: 0 -880px;
+}
