function Tweet(a){this.text=a}function TwitterService(){}TwitterService.prototype.getPublicTimeline=function(f,c,e){try{var b=this;var d=[];$.getJSON("https://api.twitter.com/1/statuses/user_timeline.json?callback=?&include_entities=true&screen_name="+f+"&count="+c,function(o){try{for(var p=0;p<o.length;p++){if(o[p].user.screen_name.toString().toLowerCase()!==f){continue}if(o[p].in_reply_to_status_id||o[p].in_reply_to_user_id||o[p].in_reply_to_screen_name){continue}var h=b.encodeHtml(o[p].text);var g=o[p].entities.urls;var l=g.length;for(var m=0;m<l;m++){var k=g[m];if(!k){continue}var q=k.url;var s=k.display_url;var n=k.expanded_url;if(!q||!s||!n){continue}h=h.replace(q,'<a href="'+n+'" class="out">'+s+"</a>")}d.push(new Tweet(h))}e&&e(d)}catch(r){}})}catch(a){}};TwitterService.prototype.encodeHtml=function(a){return $("<div/>").text(a).html()};$(function(){try{(new TwitterService()).getPublicTimeline("ucsbfinaid",1,function(b){$(".tweet-message").fadeOut("fast",function(){if(b&&b[0]){$(this).html(b[0].text).fadeIn("fast")}})})}catch(a){}});
