function relative_created_at(time_value) {  // thanks to Lionel of rarsh.com for pointing out that Twitter changed their code, and this is the fix which will work in IE
     var created_at_time = Date.parse(time_value.replace(" +0000",""));
     var relative_time = ( arguments.length > 1 ) ? arguments[1] : new Date();
     var wordy_time = parseInt(( relative_time.getTime() - created_at_time ) / 1000) + (relative_time.getTimezoneOffset()*60);

       if ( wordy_time < 59 ) {
         return 'less than a minute ago';
         } 
       else if ( wordy_time < 119 ) {       // changed because otherwise you get 30 seconds of 1 minutes ago  
         return 'about a minute ago';
         } 
       else if ( wordy_time < 3000 ) {         // < 50 minutes ago
         return ( parseInt( wordy_time / 60 )).toString() + ' minutes ago';
         } 
       else if ( wordy_time < 5340 ) {         // < 89 minutes ago
         return 'about an hour ago';
         } 
       else if ( wordy_time < 9000 ) {          // < 150 minutes ago
         return 'a couple of hours ago';  
         }
       else if ( wordy_time < 82800 ) {         // < 23 hours ago
         return 'about ' + ( parseInt( wordy_time / 3600 )).toString() + ' hours ago';
         } 
       else if ( wordy_time < 129600 ) {       //  < 36 hours
         return 'a day ago';
         }
       else if ( wordy_time < 172800 ) {       // < 48 hours
         return 'almost 2 days ago';
         }
       else {
         return ( parseInt(wordy_time / 86400)).toString() + ' days ago';
         }
    }

   var ul = document.createElement('ul');
   for (var i=0; i < 3 && i < Twitter.posts.length; i++) {
     var post = Twitter.posts[i]; 
     var li = document.createElement('li');
     var showTwitterName = 0;
     var showTimeFirst = 1;
       if ( showTimeFirst == 1) {
          li.appendChild(document.createTextNode(' '));
          var a = document.createElement('a');
          a.setAttribute('href', 'http://twitter.com/creativetourist/' + 'statuses/' + post.id);
          a.setAttribute('title', 'Permalink to this twitter (id ' + post.id + ') at Twitter.com');
          a.appendChild(document.createTextNode(relative_created_at(post.created_at)));
          li.appendChild(a);
          li.appendChild(document.createTextNode(' '));
          }
       if ( showTwitterName == 1 ) {
          li.appendChild(document.createTextNode(post.user.name + ' '));
          }
     li.appendChild(document.createTextNode(post.text));
     if ( showTimeFirst == 0 ) {
     li.appendChild(document.createTextNode(' ')); 
     var a = document.createElement('a');
     a.setAttribute('href', 'http://twitter.com/creativetourist/' + 'statuses/' + post.id);
     a.setAttribute('title', 'Permalink to this twitter (id ' + post.id + ') at Twitter.com');
     a.appendChild(document.createTextNode(relative_created_at(post.created_at)));
     li.appendChild(a); 
     li.appendChild(document.createTextNode(' ')); 
     }
     ul.appendChild(li);
     }
  ul.setAttribute('id', 'twitter-list');
  document.getElementById('twitter-box').appendChild(ul);