String.prototype.trunc =
     function(n,useWordBoundary){
         var toLong = this.length>n,
             s_ = toLong ? this.substr(0,n-1) : this;
         s_ = useWordBoundary && toLong ? s_.substr(0,s_.lastIndexOf(' ')) : s_;
         return  toLong ? s_ +'...' : s_;
      };

function twitter_callback_function(tweet) {
	newText = tweet[0].text.trunc(70, true);
	$(document).ready(function() {
			$("div#tweet").text(tweet[0].text);
	});

}

  twttr.anywhere(function (T) {
    T.hovercards();
	T.linkifyUsers();
  });

$("div#logo").click(function() {
	window.location = "index.html";
});

