diff -bdruN old/themes/tinymce_compact_gzip.js new/themes/tinymce_compact_gzip.js
--- old/themes/tinymce_compact_gzip.js	1970-01-01 03:00:00.000000000 +0300
+++ new/themes/tinymce_compact_gzip.js	2007-02-03 08:53:01.000000000 +0300
@@ -0,0 +1,24 @@
+tinyMCE_GZ.init({
+  mode : "exact",
+  theme : "advanced",
+  elements : "edit-body",
+  relative_urls : false,
+  plugins : "devkit,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
+  theme_advanced_buttons1_add : "fontselect,fontsizeselect",
+  theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor,advsearchreplace",
+  theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
+  theme_advanced_buttons3_add_before : "tablecontrols,separator",
+  theme_advanced_buttons3_add : "emotions,iespell,media,advhr",
+  theme_advanced_buttons4 : "",
+  theme_advanced_toolbar_location : "top",
+  theme_advanced_toolbar_align : "left",
+  theme_advanced_path_location : "bottom",
+  content_css : "example_full.css",
+  plugin_insertdate_dateFormat : "%Y-%m-%d",
+  plugin_insertdate_timeFormat : "%H:%M:%S",
+  file_browser_callback : "fileBrowserCallBack",
+  theme_advanced_resize_horizontal : false,
+  theme_advanced_resizing : true,
+  nonbreaking_force_tab : true,
+  apply_source_formatting : true
+});
diff -bdruN old/themes/tinymce_full_gzip.js new/themes/tinymce_full_gzip.js
--- old/themes/tinymce_full_gzip.js	1970-01-01 03:00:00.000000000 +0300
+++ new/themes/tinymce_full_gzip.js	2007-02-03 08:53:01.000000000 +0300
@@ -0,0 +1,27 @@
+tinyMCE_GZ.init({
+  mode : "exact",
+  theme : "advanced",
+  elements : "edit-body",
+  relative_urls : false,
+  plugins : "devkit,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
+  theme_advanced_buttons1_add_before : "save,newdocument,separator",
+  theme_advanced_buttons1_add : "fontselect,fontsizeselect",
+  theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor,advsearchreplace",
+  theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
+  theme_advanced_buttons3_add_before : "tablecontrols,separator",
+  theme_advanced_buttons3_add : "emotions,iespell,media,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",
+  theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,|,visualchars,nonbreaking",
+  theme_advanced_toolbar_location : "top",
+  theme_advanced_toolbar_align : "left",
+  theme_advanced_path_location : "bottom",
+  content_css : "example_full.css",
+  plugin_insertdate_dateFormat : "%Y-%m-%d",
+  plugin_insertdate_timeFormat : "%H:%M:%S",
+  extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
+  file_browser_callback : "fileBrowserCallBack",
+  theme_advanced_resize_horizontal : false,
+  theme_advanced_resizing : true,
+  nonbreaking_force_tab : true,
+  apply_source_formatting : true
+});
+
diff -bdruN old/themes/tinymce_simple_gzip.js new/themes/tinymce_simple_gzip.js
--- old/themes/tinymce_simple_gzip.js	1970-01-01 03:00:00.000000000 +0300
+++ new/themes/tinymce_simple_gzip.js	2007-02-03 08:53:01.000000000 +0300
@@ -0,0 +1,11 @@
+tinyMCE_GZ.init({
+		mode : "exact",
+		theme : "advanced",
+		elements : "edit-body",
+		relative_urls : false,
+    plugins : "inlinepopups",
+		theme_advanced_toolbar_location : "top",
+		theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,undo,redo,separator,cleanup,separator,bullist,numlist,separator,image,link,unlink",
+		theme_advanced_buttons2 : "",
+		theme_advanced_buttons3 : ""
+	});
diff -bdruN old/tinymce.module new/tinymce.module
--- old/tinymce.module	2007-02-03 08:52:19.000000000 +0300
+++ new/tinymce.module	2007-02-03 08:52:57.000000000 +0300
@@ -92,12 +92,28 @@
   $editor_mode  = variable_get("editor_mode", 0); 
   $editor_element  = variable_get("editor_element", 0); 
   
+  $compressed = file_exists(drupal_add_js(drupal_get_path('module', 'tinymce') . '/includes/jscripts/tiny_mce/tiny_mce_gzip.js'););
+
+  if ($compressed)
+    drupal_add_js(drupal_get_path('module', 'tinymce') . '/includes/jscripts/tiny_mce/tiny_mce_gzip.js');
+  else
   drupal_add_js(drupal_get_path('module', 'tinymce') . '/includes/jscripts/tiny_mce/tiny_mce.js');
   //drupal_add_js(drupal_get_path('module', 'tinymce') . '/imce/imce_set.js');
   
-  if ($editor_mode==0) { drupal_add_js(drupal_get_path('module', 'tinymce') . '/themes/tinymce_full.js'); }
-  elseif ($editor_mode==1) { drupal_add_js(drupal_get_path('module', 'tinymce') . '/themes/tinymce_compact.js'); }
-  else { drupal_add_js(drupal_get_path('module', 'tinymce') . '/themes/tinymce_simple.js'); }
+  switch ($editor_mode) {
+    case 0:
+      $jsmode = 'full';
+      break;
+    case 1:
+      $jsmode = 'compact';
+      break;
+    default:
+      $jsmode = 'simple';
+  }
+
+  if ($compressed)
+    drupal_add_js(drupal_get_path('module', 'tinymce') . '/themes/tinymce_'.$jsmode.'_gzip.js');
+  drupal_add_js(drupal_get_path('module', 'tinymce') . '/themes/tinymce_'.$jsmode.'.js');
   
   //tinyMCE.configs[i]['file_browser_callback'] = 'imceImageBrowser';
   if ($editor_element==0) {$tinymce_elements = 'edit-body';}
