BitlyCB.shortenResponse = function(data) {
	var s = '';
	var first_result;

	// Results are keyed by longUrl, so we need to grab the first one.
	for (var r in data.results) {
		first_result = data.results[r]; break;
		}

	for (var key in first_result) {
		s = first_result[key].toString();
		}

	var prefix = "RT @IntelNews: "+tweetTitle;
	var newBit = (s.length>0)?" http:\/\/bit.ly\/"+s:"";
		document.location = "http://twitter.com/home?status=" + encodeURIComponent(prefix + newBit);
}

function retweetThis(u,t){
	tweetTitle = t;
	BitlyClient.shorten(u, 'BitlyCB.shortenResponse');
}
