Index: jquery_ui.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jquery_ui/jquery_ui.info,v
retrieving revision 1.2
diff -u -r1.2 jquery_ui.info
--- jquery_ui.info	1 Aug 2008 15:06:22 -0000	1.2
+++ jquery_ui.info	3 Mar 2009 07:29:14 -0000
@@ -3,4 +3,3 @@
 description = Provides the jQuery UI plug-in to other Drupal modules.
 package = User interface
 core = 6.x
-dependencies[] = jquery_update
Index: README.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jquery_ui/README.txt,v
retrieving revision 1.4
diff -u -r1.4 README.txt
--- README.txt	23 Jun 2008 23:45:01 -0000	1.4
+++ README.txt	3 Mar 2009 07:29:14 -0000
@@ -32,12 +32,17 @@
 1. Copy the jquery_ui module directory to your sites/SITENAME/modules
    directory.
 
-2. Download the "Development bundle" of jQuery UI from
-   http://ui.jquery.com/download.
+2. Download one of the following builds of jQuery UI:
 
-3. Extract it as a sub-directory called 'jquery.ui' in the jquery_ui folder:
+ - Latest stable 1.5.x from Google Code (recommended):
+   http://code.google.com/p/jquery-ui/downloads/list?can=3&q=1.5
 
-     /sites/all/modules/jquery_ui/jquery.ui/
+ - Latest stable for jQuery 1.2.6 from jQuery UI:
+   http://jqueryui.com/download
+
+3. Extract it to the 'jquery.ui' directory in the jquery_ui folder:
+
+   ie. /sites/all/modules/jquery_ui/jquery.ui/
 
 4. Enable the module at Administer >> Site building >> Modules.
 
Index: jquery_ui.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jquery_ui/jquery_ui.module,v
retrieving revision 1.5
diff -u -r1.5 jquery_ui.module
--- jquery_ui.module	22 Jun 2008 20:09:58 -0000	1.5
+++ jquery_ui.module	3 Mar 2009 07:29:15 -0000
@@ -27,7 +27,9 @@
  */
 function jquery_ui_add($files = array()) {
   static $loaded_files, $ui_core, $effects_core;
-  $jquery_ui_path = JQUERY_UI_PATH . '/ui';
+  $package = is_dir(JQUERY_UI_PATH .'/ui') ? 'old' : 'new';
+
+  $jquery_ui_path = JQUERY_UI_PATH . ($package == 'old' ? '/ui' : '');
   $compression = variable_get('jquery_update_compression_type', 'mini');
 
   // Convert file to an array if it's not one already, to compensate for
@@ -36,39 +38,62 @@
     $files = array($files);
   }
 
-  // If core hasn't been added yet, add it.
-  if (!isset($ui_core)) {
-    $ui_core = TRUE;
-    jquery_ui_add(array('ui.core'));
-  }
-
-  // Loop through list of files to include and add them to the page.
-  foreach ($files as $file) {
-    // 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'));
+  // Support for the Google Code versions.
+  if ($package == 'old') {
+    // If core hasn't been added yet, add it.
+    if (!isset($ui_core)) {
+      $ui_core = TRUE;
+      jquery_ui_add(array('ui.core'));
     }
   
-    // Load other files.
-    if (!isset($loaded_files[$file])) {
-      switch ($compression) {
-        case 'none':
-          $file_path = "$file.js";
-          break;
-        case 'pack':
-          $file_path = "packed/$file.packed.js";
-          break;
-        case 'mini':
-        default:
-          $file_path = "minified/$file.min.js";
-          break;
+    // Loop through list of files to include and add them to the page.
+    foreach ($files as $file) {
+      // 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'));
+      }
+    
+      // Load other files.
+      if (!isset($loaded_files[$file])) {
+        switch ($compression) {
+          case 'none':
+            $file_path = "$file.js";
+            break;
+          case 'pack':
+            $file_path = "packed/$file.packed.js";
+            break;
+          case 'mini':
+          default:
+            $file_path = "minified/$file.min.js";
+            break;
+        }
+        $js_path = $jquery_ui_path . '/' . $file_path;
+        drupal_add_js($js_path);
+        $loaded_files[$file] = $js_path; // or TRUE...
       }
-      $js_path = $jquery_ui_path . '/' . $file_path;
-      drupal_add_js($js_path);
-      $loaded_files[$file] = $js_path; // or TRUE...
     }
   }
+
+  // Support for the jQuery UI versions.
+  elseif (!isset($ui_core)) {
+    $ui_core = TRUE;
+    $file = 'jquery-ui-personalized-'. jquery_ui_get_version();
+
+    switch ($compression) {
+      case 'none':
+        $file_path = "$file.js";
+        break;
+      case 'pack':
+      case 'mini':
+      default:
+        $file_path = "$file.min.js";
+        break;
+     }
+    $js_path = $jquery_ui_path . '/' . $file_path;
+    drupal_add_js($js_path);
+    $ui_core = TRUE;
+  }
 }
 
 /**
Index: jquery_ui.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jquery_ui/jquery_ui.install,v
retrieving revision 1.4
diff -u -r1.4 jquery_ui.install
--- jquery_ui.install	3 Nov 2008 23:21:02 -0000	1.4
+++ jquery_ui.install	3 Mar 2009 07:29:15 -0000
@@ -29,7 +29,7 @@
   else {
     // Required library wasn't found. Abort installation.
     $requirements['jquery_ui']['value'] = $t('Not found');
-    $requirements['jquery_ui']['description'] = $t('Missing jQuery UI plug-in. Please !download and extract it to your jquery_ui module directory. See README.txt for more info.', array('!download' => l($t('download the jQuery UI development bundle'), 'http://ui.jquery.com/download')));
+    $requirements['jquery_ui']['description'] = $t('Missing jQuery UI plug-in. Please !download and extract it to your jquery_ui module directory. See README.txt for more info.', array('!download' => l($t('download the jQuery UI development bundle'), 'http://code.google.com/p/jquery-ui/downloads/list?can=3&q=1.5')));
     $requirements['jquery_ui']['severity'] = REQUIREMENT_ERROR;
   }
 
Index: jquery.ui/README.txt
===================================================================
RCS file: jquery.ui/README.txt
diff -N jquery.ui/README.txt
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ jquery.ui/README.txt	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,8 @@
+This is a placeholder directory for where the jQuery UI package should be extracted.
+
+It should be from one of the following URLs:
+ - http://code.google.com/p/jquery-ui/downloads/list?can=3&q=1.5
+ - http://jqueryui.com/download
+
+Either package should result in:
+/sites/all/modules/jquery_ui/jquery.ui/version.txt
