--- -	2010-07-05 13:18:10.803180251 -0700
+++ countdown.js	2010-07-05 02:03:08.000000000 -0700
@@ -27,7 +27,28 @@
     onready : function() { return this.each(function() { 
       this.objEM = new Array();
       this.initTime = new Array();
-      for (i = 0; i < this.childNodes.length; i ++) {
+      var pthis = this;
+      $('em', $(this)).each(
+        function(i, el) {
+          pthis.objEM[pthis.objEM.length] = this;
+          pthis.initTime[pthis.initTime.length] = parseInt(this.innerHTML);
+        }
+      );
+      $(this).find('*').each(
+        function(i, el) {
+          if (this.nodeName == '#text') {
+            if (this.nodeValue.indexOf(' since') >= 0) {
+              _countdown_direction = 1;
+              pthis.objDirText = this[i];
+            }
+            else if (this.nodeValue.indexOf(' until') >= 0) {
+              pthis.objDirText = this[i];
+            }
+          }
+        }
+      );
+        
+/*      for (i = 0; i < this.childNodes.length; i ++) {
         thisChild = this.childNodes.item(i);
         if (thisChild.tagName == 'EM') {
           this.objEM[this.objEM.length] = thisChild;
@@ -42,7 +63,7 @@
             this.objDirText = thisChild;
           }
         }
-      }
+      } */
 
       _countdown_this = this;
       setInterval(function() {
@@ -83,4 +104,4 @@
       $(".block-countdown .content").onready();
     }
   );
-}
\ Pas de fin de ligne à la fin du fichier.
+}
