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 1 minute ago';
	  } 
	  else if ( wordy_time < 119 ) { // changed because otherwise you get 30 seconds of 1 minutes ago 
	  return '1 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 '1 hour ago';
	  } 
	  else if ( wordy_time < 9000 ) { // < 150 minutes ago
	  return 'few 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 '1 day ago';
	  }
	  else if ( wordy_time < 172800 ) { // < 48 hours
	  return '2 days ago';
	  }
	  else {
	  return ( parseInt(wordy_time / 86400)).toString() + ' days ago';
	  }
  }

  
  (function($) {
	/*
		jquery.twitter.js v1.0
		Last updated: 26 October 2008

		Created by Damien du Toit
		http://coda.co.za/blog/2008/10/26/jquery-plugin-for-twitter

		Licensed under a Creative Commons Attribution-Non-Commercial 3.0 Unported License
		http://creativecommons.org/licenses/by-nc/3.0/
	*/

	$.fn.getTwitter = function(options) {
		var o = $.extend({}, $.fn.getTwitter.defaults, options);
	
		// hide container element
		$(this).hide();
	
		// add heading to container element
		if (o.showHeading) {
			$(this).append('<h2>'+o.headingText+'</h2>');
		}


		// add preLoader to container element
		var pl = $('<p id="'+o.preloaderId+'">'+o.loaderText+'</p>');
		$(this).append(pl);

		// show container element
		$(this).show();
	
		$.getScript("http://twitter.com/javascripts/blogger.js");
		$.getJSON("http://twitter.com/statuses/user_timeline/"+o.userName+".json?count="+o.numTweets+"&callback=?", function(data) {
			// remove preLoader from container element
			$(pl).remove();
			$.each(data,o.updateFn); 
			});
	};

	// plugin defaults
	$.fn.getTwitter.defaults = {
		userName: null,
		numTweets: 5,
		preloaderId: "preloader",
		loaderText: "Loading tweets...",
		slideIn: false,
		showHeading: true,
		headingText: "Latest Tweets",
		showProfileLink: true
	};
})(jQuery);