Index: misc/ahah.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/ahah.js,v
retrieving revision 1.7
diff -u -p -r1.7 ahah.js
--- misc/ahah.js	4 Jan 2008 11:53:21 -0000	1.7
+++ misc/ahah.js	29 Jan 2008 06:35:21 -0000
@@ -12,6 +12,8 @@
  * to provide AHAH capabilities.
  */
 
+(function($) {
+
 /**
  * Attaches the ahah behavior to each ahah form element.
  */
@@ -210,3 +212,5 @@ Drupal.ahah.prototype.error = function (
   // Re-enable the element.
   $(this.element).removeClass('progess-disabled').attr('disabled', false);
 };
+
+})(jQuery);
Index: misc/autocomplete.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/autocomplete.js,v
retrieving revision 1.23
diff -u -p -r1.23 autocomplete.js
--- misc/autocomplete.js	4 Jan 2008 11:53:21 -0000	1.23
+++ misc/autocomplete.js	29 Jan 2008 06:35:22 -0000
@@ -1,5 +1,7 @@
 // $Id: autocomplete.js,v 1.23 2008/01/04 11:53:21 goba Exp $
 
+(function($) {
+
 /**
  * Attaches the autocomplete behavior to all required fields
  */
@@ -296,3 +298,5 @@ Drupal.ACDB.prototype.cancel = function(
   if (this.timer) clearTimeout(this.timer);
   this.searchString = '';
 };
+
+})(jQuery);
Index: misc/batch.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/batch.js,v
retrieving revision 1.4
diff -u -p -r1.4 batch.js
--- misc/batch.js	21 Oct 2007 18:59:01 -0000	1.4
+++ misc/batch.js	29 Jan 2008 06:35:22 -0000
@@ -1,5 +1,7 @@
 // $Id: batch.js,v 1.4 2007/10/21 18:59:01 goba Exp $
 
+(function($) {
+
 /**
  * Attaches the batch behavior to progress bars.
  */
@@ -36,3 +38,5 @@ Drupal.behaviors.batch = function (conte
     progress.startMonitoring(uri+'&op=do', 10);
   });
 };
+
+})(jQuery);
Index: misc/collapse.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/collapse.js,v
retrieving revision 1.16
diff -u -p -r1.16 collapse.js
--- misc/collapse.js	12 Sep 2007 18:29:32 -0000	1.16
+++ misc/collapse.js	29 Jan 2008 06:35:22 -0000
@@ -1,5 +1,7 @@
 // $Id: collapse.js,v 1.16 2007/09/12 18:29:32 goba Exp $
 
+(function($) {
+
 /**
  * Toggle the visibility of a fieldset using smooth animations
  */
@@ -71,3 +73,5 @@ Drupal.behaviors.collapse = function (co
       .addClass('collapse-processed');
   });
 };
+
+})(jQuery);
Index: misc/drupal.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/drupal.js,v
retrieving revision 1.41
diff -u -p -r1.41 drupal.js
--- misc/drupal.js	4 Jan 2008 11:53:21 -0000	1.41
+++ misc/drupal.js	29 Jan 2008 06:35:22 -0000
@@ -2,10 +2,12 @@
 
 var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} };
 
+(function($) {
+
 /**
  * Set the variable that indicates if JavaScript behaviors should be applied
  */
-Drupal.jsEnabled = document.getElementsByTagName && document.createElement && document.createTextNode && document.documentElement && document.getElementById;
+Drupal.jsEnabled = !!(document.getElementsByTagName && document.createElement && document.createTextNode && document.documentElement && document.getElementById);
 
 /**
  * Attach all registered behaviors to a page element.
@@ -291,3 +293,5 @@ Drupal.theme.prototype = {
     return '<em>' + Drupal.checkPlain(str) + '</em>';
   }
 };
+
+})(jQuery);
Index: misc/form.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/form.js,v
retrieving revision 1.1
diff -u -p -r1.1 form.js
--- misc/form.js	12 Sep 2007 18:29:32 -0000	1.1
+++ misc/form.js	29 Jan 2008 06:35:22 -0000
@@ -1,5 +1,7 @@
 // $Id: form.js,v 1.1 2007/09/12 18:29:32 goba Exp $
 
+(function($) {
+
 Drupal.behaviors.multiselectSelector = function() {
   // Automatically selects the right radio button in a multiselect control.
   $('.multiselect select:not(.multiselectSelector-processed)')
@@ -8,3 +10,5 @@ Drupal.behaviors.multiselectSelector = f
         .attr('checked', true);
   });
 };
+
+})(jQuery);
Index: misc/progress.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/progress.js,v
retrieving revision 1.20
diff -u -p -r1.20 progress.js
--- misc/progress.js	4 Jan 2008 11:53:21 -0000	1.20
+++ misc/progress.js	29 Jan 2008 06:35:23 -0000
@@ -1,5 +1,7 @@
 // $Id: progress.js,v 1.20 2008/01/04 11:53:21 goba Exp $
 
+(function($) {
+
 /**
  * A progressbar object. Initialized with the given id. Must be inserted into
  * the DOM afterwards through progressBar.element.
@@ -105,3 +107,5 @@ Drupal.progressBar.prototype.displayErro
     this.errorCallback(this);
   }
 };
+
+})(jQuery);
Index: misc/tabledrag.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/tabledrag.js,v
retrieving revision 1.13
diff -u -p -r1.13 tabledrag.js
--- misc/tabledrag.js	19 Dec 2007 10:58:35 -0000	1.13
+++ misc/tabledrag.js	29 Jan 2008 06:35:24 -0000
@@ -1,5 +1,7 @@
 // $Id: tabledrag.js,v 1.13 2007/12/19 10:58:35 goba Exp $
 
+(function($) {
+
 /**
  * Drag and drop table rows with field manipulation.
  *
@@ -1079,3 +1081,5 @@ Drupal.theme.prototype.tableDragIndentat
 Drupal.theme.prototype.tableDragChangedWarning = function () {
   return '<div class="warning">' + Drupal.theme('tableDragChangedMarker') + ' ' + Drupal.t("Changes made in this table will not be saved until the form is submitted.") + '</div>';
 };
+
+})(jQuery);
Index: misc/tableheader.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/tableheader.js,v
retrieving revision 1.15
diff -u -p -r1.15 tableheader.js
--- misc/tableheader.js	23 Jan 2008 09:48:10 -0000	1.15
+++ misc/tableheader.js	29 Jan 2008 06:35:24 -0000
@@ -1,5 +1,7 @@
 // $Id: tableheader.js,v 1.15 2008/01/23 09:48:10 goba Exp $
 
+(function($) {
+
 Drupal.behaviors.tableHeader = function (context) {
   // This breaks in anything less than IE 7. Prevent it from running.
   if (jQuery.browser.msie && parseInt(jQuery.browser.version) < 7) {
@@ -86,3 +88,5 @@ Drupal.behaviors.tableHeader = function 
   };
   $(window).resize(resize);
 };
+
+})(jQuery);
Index: misc/tableselect.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/tableselect.js,v
retrieving revision 1.8
diff -u -p -r1.8 tableselect.js
--- misc/tableselect.js	19 Nov 2007 12:15:16 -0000	1.8
+++ misc/tableselect.js	29 Jan 2008 06:35:24 -0000
@@ -1,5 +1,7 @@
 // $Id: tableselect.js,v 1.8 2007/11/19 12:15:16 goba Exp $
 
+(function($) {
+
 Drupal.behaviors.tableSelect = function (context) {
   $('form table:has(th.select-all):not(.tableSelect-processed)', context).each(Drupal.tableSelect);
 };
@@ -85,3 +87,5 @@ Drupal.tableSelectRange = function(from,
     }
   }
 };
+
+})(jQuery);
Index: misc/teaser.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/teaser.js,v
retrieving revision 1.12
diff -u -p -r1.12 teaser.js
--- misc/teaser.js	9 Jan 2008 12:10:04 -0000	1.12
+++ misc/teaser.js	29 Jan 2008 06:35:24 -0000
@@ -1,5 +1,7 @@
 // $Id: teaser.js,v 1.12 2008/01/09 12:10:04 goba Exp $
 
+(function($) {
+
 /**
  * Auto-attach for teaser behavior.
  *
@@ -94,3 +96,5 @@ Drupal.behaviors.teaser = function(conte
 
   });
 };
+
+})(jQuery);
Index: misc/textarea.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/textarea.js,v
retrieving revision 1.22
diff -u -p -r1.22 textarea.js
--- misc/textarea.js	17 Jan 2008 19:31:56 -0000	1.22
+++ misc/textarea.js	29 Jan 2008 06:35:24 -0000
@@ -1,5 +1,7 @@
 // $Id: textarea.js,v 1.22 2008/01/17 19:31:56 goba Exp $
 
+(function($) {
+
 Drupal.behaviors.textarea = function(context) {
   $('textarea.resizable:not(.textarea-processed)', context).each(function() {
     // Avoid non-processed teasers.
@@ -34,3 +36,5 @@ Drupal.behaviors.textarea = function(con
     }
   });
 };
+
+})(jQuery);
Index: misc/farbtastic/farbtastic.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/farbtastic/farbtastic.js,v
retrieving revision 1.4
diff -u -p -r1.4 farbtastic.js
--- misc/farbtastic/farbtastic.js	1 Jun 2007 09:05:45 -0000	1.4
+++ misc/farbtastic/farbtastic.js	29 Jan 2008 06:35:25 -0000
@@ -1,6 +1,8 @@
 // $Id: farbtastic.js,v 1.4 2007/06/01 09:05:45 unconed Exp $
 // Farbtastic 1.2
 
+(function($) {
+
 jQuery.fn.farbtastic = function (callback) {
   $.farbtastic(this, callback);
   return this;
@@ -326,4 +328,6 @@ jQuery._farbtastic = function (container
   if (callback) {
     fb.linkTo(callback);
   }
-};
\ No newline at end of file
+};
+
+})(jQuery);
Index: modules/block/block.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/block/block.js,v
retrieving revision 1.2
diff -u -p -r1.2 block.js
--- modules/block/block.js	16 Dec 2007 10:36:53 -0000	1.2
+++ modules/block/block.js	29 Jan 2008 06:35:25 -0000
@@ -1,5 +1,7 @@
 // $Id: block.js,v 1.2 2007/12/16 10:36:53 goba Exp $
 
+(function($) {
+
 /**
  * Move a block in the blocks table from one region to another via select list.
  *
@@ -93,3 +95,5 @@ Drupal.behaviors.blockDrag = function(co
     });
   };
 };
+
+})(jQuery);
Index: modules/color/color.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/color/color.js,v
retrieving revision 1.6
diff -u -p -r1.6 color.js
--- modules/color/color.js	12 Sep 2007 18:29:32 -0000	1.6
+++ modules/color/color.js	29 Jan 2008 06:35:25 -0000
@@ -1,5 +1,7 @@
 // $Id: color.js,v 1.6 2007/09/12 18:29:32 goba Exp $
 
+(function($) {
+
 Drupal.behaviors.color = function (context) {
   // This behavior attaches by ID, so is only valid once on a page.
   if ($('#color_scheme_form .color-form.color-processed').size()) {
@@ -249,3 +251,5 @@ Drupal.behaviors.color = function (conte
   // Render preview
   preview();
 };
+
+})(jQuery);
Index: modules/comment/comment.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.js,v
retrieving revision 1.5
diff -u -p -r1.5 comment.js
--- modules/comment/comment.js	12 Sep 2007 18:29:32 -0000	1.5
+++ modules/comment/comment.js	29 Jan 2008 06:35:25 -0000
@@ -1,9 +1,11 @@
 // $Id: comment.js,v 1.5 2007/09/12 18:29:32 goba Exp $
 
+(function($) {
+
 Drupal.behaviors.comment = function (context) {
-  var parts = new Array("name", "homepage", "mail");
+  var parts = ["name", "homepage", "mail"];
   var cookie = '';
-  for (i=0;i<3;i++) {
+  for (i = 0; i < 3; i++) {
     cookie = Drupal.comment.getCookie('comment_info_' + parts[i]);
     if (cookie != '') {
       $("#comment-form input[name=" + parts[i] + "]:not(.comment-processed)", context)
@@ -33,3 +35,5 @@ Drupal.comment.getCookie = function(name
 
   return returnValue;
 };
+
+})(jQuery);
Index: modules/openid/openid.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/openid/openid.js,v
retrieving revision 1.4
diff -u -p -r1.4 openid.js
--- modules/openid/openid.js	20 Nov 2007 10:00:04 -0000	1.4
+++ modules/openid/openid.js	29 Jan 2008 06:35:26 -0000
@@ -1,5 +1,7 @@
 // $Id: openid.js,v 1.4 2007/11/20 10:00:04 goba Exp $
 
+(function($) {
+
 Drupal.behaviors.openid = function (context) {
   var $loginElements = $("#edit-name-wrapper, #edit-pass-wrapper, a.openid-link");
   var $openidElements = $("#edit-openid-url-wrapper, a.user-link");
@@ -36,3 +38,5 @@ Drupal.behaviors.openid = function (cont
       return false;
     });
 };
+
+})(jQuery);
Index: modules/profile/profile.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/profile/profile.js,v
retrieving revision 1.2
diff -u -p -r1.2 profile.js
--- modules/profile/profile.js	8 Dec 2007 14:06:22 -0000	1.2
+++ modules/profile/profile.js	29 Jan 2008 06:35:26 -0000
@@ -1,5 +1,7 @@
 // $Id: profile.js,v 1.2 2007/12/08 14:06:22 goba Exp $
 
+(function($) {
+
 /**
  * Add functionality to the profile drag and drop table.
  *
@@ -52,3 +54,5 @@ Drupal.behaviors.profileDrag = function(
     }
   };
 };
+
+})(jQuery);
Index: modules/system/system.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.js,v
retrieving revision 1.14
diff -u -p -r1.14 system.js
--- modules/system/system.js	17 Dec 2007 23:43:43 -0000	1.14
+++ modules/system/system.js	29 Jan 2008 06:35:26 -0000
@@ -1,5 +1,7 @@
 // $Id: system.js,v 1.14 2007/12/17 23:43:43 goba Exp $
 
+(function($) {
+
 /**
  * Internal function to check using Ajax if clean URLs can be enabled on the
  * settings page.
@@ -108,3 +110,5 @@ Drupal.behaviors.dateTime = function(con
   // Trigger the event handler to show the form input if necessary.
   $('select.date-format', context).trigger('change');
 };
+
+})(jQuery);
Index: modules/taxonomy/taxonomy.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.js,v
retrieving revision 1.2
diff -u -p -r1.2 taxonomy.js
--- modules/taxonomy/taxonomy.js	16 Dec 2007 10:36:53 -0000	1.2
+++ modules/taxonomy/taxonomy.js	29 Jan 2008 06:35:26 -0000
@@ -1,5 +1,7 @@
 // $Id: taxonomy.js,v 1.2 2007/12/16 10:36:53 goba Exp $
 
+(function($) {
+
 /**
  * Move a block in the blocks table from one region to another via select list.
  *
@@ -34,3 +36,5 @@ Drupal.behaviors.termDrag = function(con
     }
   };
 };
+
+})(jQuery);
Index: modules/user/user.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/user/user.js,v
retrieving revision 1.6
diff -u -p -r1.6 user.js
--- modules/user/user.js	12 Sep 2007 18:29:32 -0000	1.6
+++ modules/user/user.js	29 Jan 2008 06:35:27 -0000
@@ -1,5 +1,7 @@
 // $Id: user.js,v 1.6 2007/09/12 18:29:32 goba Exp $
 
+(function($) {
+
 /**
  * Attach handlers to evaluate the strength of any password fields and to check
  * that its confirmation is correct.
@@ -186,3 +188,4 @@ Drupal.behaviors.userSettings = function
   });
 };
 
+})(jQuery);
