Index: /CKEditor/branches/prototype/_source/plugins/dialog/plugin.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/dialog/plugin.js	(revision 2747)
+++ /CKEditor/branches/prototype/_source/plugins/dialog/plugin.js	(revision 2748)
@@ -153,5 +153,5 @@
 		'title' : [1,1,0],
 		'close' : [1,1,0,0],
-		'tabs' : [1,1,1,0,0,1,0,0,0],
+		'tabs' : [1,1,1,0,0],
 		'tabs_table' : [1,1,1],
 		'contents' : [1,1,2],
@@ -545,5 +545,5 @@
 		tab = CKEDITOR.dom.element.createFromHtml( [
 				'<table><tbody><tr><td class="cke_dialog_tab" ', titleHtml, '>',
-				'<div><table border="0" cellspacing="0" cellpadding="0"><tbody><tr>',
+				'<table border="0" cellspacing="0" cellpadding="0"><tbody><tr>',
 					'<td class="cke_dialog_tab_left"></td>',
 					'<td class="cke_dialog_tab_center">',
@@ -551,5 +551,5 @@
 					'</td>',
 					'<td class="cke_dialog_tab_right"></td>',
-				'</tr></tbody></table></div></td></tr></tbody></table>'
+				'</tr></tbody></table></td></tr></tbody></table>'
 			].join( '' ) );
 		tab = tab.getChild( [0,0,0] );
@@ -583,5 +583,5 @@
 		tab.unselectable();
 		page.appendTo( this.parts.contents );
-		tab.appendTo( this.parts.tabs );
+		tab.insertBefore( this.parts.tabs.getChild( this.parts.tabs.getChildCount() - 1 ) );
 		tab.setAttribute( 'id', contents.id + '_' + CKEDITOR.tools.getNextNumber() );
 		page.setAttribute( 'name', contents.id );
Index: /CKEditor/branches/prototype/_source/skins/default/dialog.css
===================================================================
--- /CKEditor/branches/prototype/_source/skins/default/dialog.css	(revision 2747)
+++ /CKEditor/branches/prototype/_source/skins/default/dialog.css	(revision 2748)
@@ -175,4 +175,9 @@
 }
 
+.cke_skin_default .single_page .cke_dialog_tabs
+{
+	display: none;
+}
+
 .cke_skin_default .cke_dialog_tabs
 {
@@ -219,4 +224,5 @@
 {
 	top: 31px;
+	border-top: #d5d59d 1px solid;
 }
 
@@ -246,5 +252,5 @@
 }
 
-.cke_skin_default .cke_dialog_tab div
+.cke_skin_default .cke_dialog_tab
 {
 	border-bottom: 1px solid #D5D59D;
@@ -267,5 +273,5 @@
 }
 
-.cke_skin_default .cke_dialog_tab_selected div
+.cke_skin_default .cke_dialog_tab_selected
 {
 	border-bottom: 1px solid #F1F1E3;
Index: /CKEditor/branches/prototype/_source/themes/default/theme.js
===================================================================
--- /CKEditor/branches/prototype/_source/themes/default/theme.js	(revision 2747)
+++ /CKEditor/branches/prototype/_source/themes/default/theme.js	(revision 2748)
@@ -133,5 +133,4 @@
 							'<table id="cke_dialog_tabs_%d" class="cke_dialog_tabs" cellpadding="0" border="0" cellspacing="0"><tbody><tr>',
 							'<td class="head_filler"></td>',
-							'<td><table cellpadding="0" border="0" cellspacing="0"><tbody><tr></tr></tbody></table></td>',
 							'<td class="tail_filler"></td>',
 							'</tr></tbody></table>',
