Index: imce_set_fck.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imce/Attic/imce_set_fck.js,v
retrieving revision 1.1.2.6
diff -u -r1.1.2.6 imce_set_fck.js
--- imce_set_fck.js	31 Mar 2008 13:28:19 -0000	1.1.2.6
+++ imce_set_fck.js	25 Apr 2008 23:29:43 -0000
@@ -1,21 +1,9 @@
 // $Id: imce_set_fck.js,v 1.1.2.6 2008/03/31 13:28:19 ufku Exp $
 
 function imceInitiateFCK(cycle) {
-  if ("undefined" != typeof(window.FCKeditorAPI)) {
-    $.each(FCKeditorAPI.__Instances, imceSetFCK);
+  for (var fck, i = 1; fck = window['oFCK_'+ i]; i++) {
+    imceSetFCK.call(fck);
   }
-  else if ("undefined" != typeof(window.FCKeditor_OpenPopup)) {
-    $('textarea').each(function () {
-      var obj = 'oFCKeditor_'+ this.id.replace(/\-/g, '_');
-      if ("undefined" != typeof(window[obj])) {
-        imceSetFCK.call(window[obj]);
-      }
-    });
-    return;
-  }
-
-  var cycle = (parseInt(cycle) || 0)+1;
-  if (cycle < 5) setTimeout('imceInitiateFCK('+ cycle +')', 2000);
 }
 
 function imceSetFCK() {

