--- jquery_ui/jquery_ui.module	2009-03-02 15:03:24.000000000 +0530
+++ jquery_ui/jquery_ui_new.module	2009-03-02 15:03:54.000000000 +0530
@@ -25,10 +25,10 @@ define('JQUERY_UI_PATH', drupal_get_path
  *   An array of what additional files (other than UI core) should be loaded
  *   on the page, or a string with a single file name.
  */
-function jquery_ui_add($files = array()) {
+function jquery_ui_add($files = array(),$compression_type=False) {
   static $loaded_files, $ui_core, $effects_core;
   $jquery_ui_path = JQUERY_UI_PATH . '/ui';
-  $compression = variable_get('jquery_update_compression_type', 'mini');
+  $compression = $compression_type ? $compression_type : variable_get('jquery_update_compression_type', 'mini');
 
   // Convert file to an array if it's not one already, to compensate for
   // lazy developers. ;)
@@ -39,7 +39,7 @@ function jquery_ui_add($files = array())
   // If core hasn't been added yet, add it.
   if (!isset($ui_core)) {
     $ui_core = TRUE;
-    jquery_ui_add(array('ui.core'));
+    jquery_ui_add(array('ui.core'),$compression_type);
   }
 
   // Loop through list of files to include and add them to the page.
@@ -47,7 +47,7 @@ function jquery_ui_add($files = array())
     // Any effects files require the effects core file.
     if (!isset($effects_core) && strpos($file, 'effects.') === 0) {
       $effects_core = TRUE;
-      jquery_ui_add(array('effects.core'));
+      jquery_ui_add(array('effects.core'),$compression_type);
     }
   
     // Load other files.
