var jQuery_CodePeople_Twitter_UserTimeline=window.jQuery_CodePeople_Twitter_UserTimeline=jQuery.noConflict(true),CodePeople;CodePeople||(CodePeople={});if(!CodePeople.Widget)CodePeople.Widget={};
(function(c){function f(d){return Date.parse(d.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i,"$1,$2$4$3"))}function g(d){var a=f(d);a=parseInt(((arguments.length>1?arguments[1]:new Date).getTime()-a)/1E3);var b=function(e,h){return""+h+" "+e+(h==1?"":"s")};return a<60?"less than a minute ago":a<3600?"about "+b("minute",parseInt(a/60))+" ago":a<86400?"about "+b("hour",parseInt(a/3600))+" ago":"about "+b("day",parseInt(a/86400))+" ago"}var i=function(d){var a='<ol class="statuses">',b=this.options.linksTarget?
' target="'+this.options.linksTarget+'" ':"";c.each(d,function(){var e=this.text.replace(/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi,'<a href="$1"'+b+">$1</a>");e=e.replace(/[\@]+([A-Za-z0-9-_]+)/gi,'<a href="http://twitter.com/$1"'+b+">@$1</a>");e=e.replace(/ [\#]+([A-Za-z0-9-_]+)/gi,' <a href="http://search.twitter.com/search?q=&tag=$1&lang=all&from='+this.user.screen_name+'"'+b+">#$1</a>");a+='<li id="status_'+this.id+'" class="hentry status u-'+this.user_screen_name+
'">';a+='<span class="thumb vcard author">';a+='<a class="url" href="http://twitter.com/'+this.user.screen_name+'"'+b+">";a+='<img src="'+this.user.profile_image_url+'" class="photo" alt=""/>';a+="</a>";a+="</span>";a+='<span class="status-body">';a+='<strong><a title="'+this.user.name+'" class="screen-name" href="http://twitter.com/'+this.user.screen_name+'"'+b+">"+this.user.name+"</a></strong>";a+='<span class="entry-content">'+e+"</span>";a+="</span>";a+='<span class="meta entry-meta">';a+='<a rel="bookmark" class="entry-date" href="http://twitter.com/'+
this.user.screen_name+"/status/"+this.id+'"'+b+">";a+='<span class="published">'+g(this.created_at)+"</span>";a+="</a>";a+="</span>";a+="</li>"});a+="</ol>";c(this.element).html(a)};c.each({public_timeline:{url:"http://twitter.com/statuses/public_timeline.json",renderer:i},UserTimeline:{url:"http://twitter.com/statuses/user_timeline.json?callback=?",renderer:i}},function(d,a){c.fn["CodePeople_Twitter_"+d]=function(b){return this.each(function(){b=c.extend({count:10,linksTarget:"_blank"},b);c.ajax({type:"GET",
url:a.url,data:b,success:a.renderer,dataType:"json",element:this,options:b})})}})})(jQuery_CodePeople_Twitter_UserTimeline);CodePeople.Widget.Twitter_UserTimeline=function(c,f){jQuery_CodePeople_Twitter_UserTimeline(function(g){g("#"+c).CodePeople_Twitter_UserTimeline(f)})};

