Object doesn't support this property or method,Object Expected
===

I am getting 2 error messages in Internet Explorer 8 and 9. I am getting Object doesn't support this property or method, on Line 17 of the below code, and Object Expected, on Line 9.



The Code:


 

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
        <script>
    		// DOM Ready    
    	    $(function twitter_update_list(){$.getJSON('http://twitter.com/status/user_timeline/LaunchSeven.json?count=2&callback=?', function(data){
    	    		$.each(data, function(index, twitter_update_list){
    	    			$('#twitter_update_list').append('<div class="tweet"><p>' + twitter_update_list.text.linkify() + '</p><p><strong>' + relative_time(twitter_update_list.created_at) + '</strong></p></div>');
    	    		});	    	
    	    	});
    	    	
    	    	
    	    		    	
    	function relative_time(time_value) {
      var values = time_value.split(" ");
      time_value = values[1] + " " + values[2] + ", " + values[5] + " " + values[3];
      var parsed_date = Date.parse(time_value);
      var relative_to = (arguments.length > 1) ? arguments[1] : new Date();
      var delta = parseInt((relative_to.getTime() - parsed_date) / 1000);
      delta = delta + (relative_to.getTimezoneOffset() * 60);
    
      if (delta < 60) {
        return 'less than a minute ago';
      } else if(delta < 120) {
        return 'about a minute ago';
      } else if(delta < (60*60)) {
        return (parseInt(delta / 60)).toString() + ' minutes ago';
      } else if(delta < (120*60)) {
        return 'about an hour ago';
      } else if(delta < (24*60*60)) {
        return 'about ' + (parseInt(delta / 3600)).toString() + ' hours ago';
      } else if(delta < (48*60*60)) {
        return '1 day ago';
      } else {
        return (parseInt(delta / 86400)).toString() + ' days ago';
      }
    }
    	    	
    	    	String.prototype.linkify = function twitterlink() {
    	    		return this.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/, function twitterlink(m) {
    	    			return m.link(m)
    	    		});
    	    	};
    	    	
    	   
    	   
    	   
    	    });		
    		
    		
    		
        </script>

 

Thanks in Advance,

Adam
