--- C:\wamp\www\drupal6\sites\default\modules\colorpicker\js\colorpicker.js	2007-11-04 17:50:20.000000000 +1300
+++ C:\wamp\www\drupal6\sites\default\modules\colorpicker\js\colorpicker.js.orig	2008-11-01 18:50:10.453125000 +1300
@@ -4,7 +4,11 @@
  *  Bind the colorpicker event to the form element
  */
 $(document).ready(function () {
+  colorpicker_init();
+});
 
+function colorpicker_init() {
+console.log($("div.colorpicker").size());
   // do we have multiple colorpickers?
   if ($("div.colorpicker").size() > 1) {
   
@@ -31,7 +35,7 @@
 
     });
   }
-  else {
+  if ($("div.colorpicker").size() == 1) {
     // we do this differently because we don't care about the id
   var farb = $.farbtastic("div.colorpicker");
     $("input.colorpicker_textfield").each(function () {
@@ -46,5 +50,4 @@
     
   });
   }
-});
-
+}
\ No newline at end of file
