/*
 * jTwitter 1.1.1 - Twitter API abstraction plugin for jQuery
 * Copyright (c) 2009 jQuery Howto
 * Licensed under the GPL license:
 *   http://www.gnu.org/licenses/gpl.html
 * Plugin + Author URL:
 *   http://jquery-howto.blogspot.com
 */
(function(b){b.extend({jTwitter:function(d,a,c){if(!(d=="undefined"||a=="undefined")){if(b.isFunction(a)){c=a;a=5}b.getJSON("http://api.twitter.com/1/statuses/user_timeline.json?user_id="+d+"&count="+a+"&callback=?",function(e){b.isFunction(c)&&c.call(this,e)})}}})})(jQuery);
/* from twitter widget */
function link(b){return b.replace(/\b(((https*\:\/\/)|www\.).+?)(([!?,.\)]+)?(\s|$))/g,function(h,g,e,d,c){var f=e.match(/w/)?"http://":"";return'<a class="twtr-hyperlink" target="_blank" href="'+f+g+'">'+((g.length>25)?g.substr(0,24)+"...":g)+"</a>"+c})}
function at(b){return b.replace(/\B\@([a-zA-Z0-9_]{1,20})/g,function(c,d){return'@<a target="_blank" class="twtr-atreply" href="http://twitter.com/'+d+'">'+d+"</a>"})}
function hash(b){return b.replace(/\B\#(\w+)/gi,function(c,d){return'<a target="_blank" class="twtr-hashtag" href="http://twitter.com/search?q=%23'+d+'">#'+d+"</a>"})}
function cleanTweet(b){return hash(at(link(b)))}