function twitterCallBackFunc(e){
	
	var ints = {
        second: 1,
        minute: 60,
        hour: 3600,
        day: 86400,
        week: 604800,
        month: 2592000,
        year: 31536000
    };
	
	var monthName = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
	
	var today = new Date();
	
	var appearText = [];
	var appearTime = [];
	var tweetURL = [];
	
	$.each(e,function(i,item){
		if(appearText.length < 4){
			if (item.text.match("@thinktheearth")) {
				
				appearText.push(item.text.replace(/(http:\/\/[\x21-\x7e]+)/gi, "<a href='$1' target='_blank'>$1</a>"));
				
				var postDate = new Date();
				
				var tmpDate = item.created_at.split(' ');
				
				var tmpMonth = tmpDate[1];
				
				var postMonth;
				
				$.each(monthName,function(i,item){
					if(tmpMonth == item)
						postMonth = i;
				})
				
				postDate.setFullYear(tmpDate[5])
				postDate.setMonth(postMonth);
				postDate.setDate(tmpDate[2]);
				
				var tmpTime = tmpDate[3].split(':');
				
				postDate.setHours(tmpTime[0]*1 + 9);
				postDate.setMinutes(tmpTime[1]);
				postDate.setSeconds(tmpTime[2]);
				
				var date = new Date(item.created_at);
				
				
				var gap = (today.getTime() - postDate.getTime())/1000;
				
				
				
				var measure,amount;
				
				$.each(ints,function(i,item){
            		if (gap > ints[i]) { measure = i; }
				})
				
				amount = gap / ints[measure];
        		amount = gap > ints.day ? (Math.round(amount)) : Math.round(amount);
        		amount += ' ' + measure + (amount > 1 ? 's' : '') + ' ago';
        		
				
				appearTime.push(amount);
				
				var idURL = "http://twitter.com/thinktheearth/status/" + item.id;
				
				tweetURL.push(idURL);
			}
		}
	})
	
	
	$.each(appearText,function(i,item){
		if(i<3)
		var text = "<div class=\"twitter-box\"><p><span class=\"author\">thinktheearth</span>" + item +"</p><p class=\"twitter-time\"><a href=\"" + tweetURL[i] + "\" target=\"_blank\">" + appearTime[i] + "</a></p></div><div class=\"bg-twitter-border\"></div>";
		else
		var text = "<div class=\"twitter-box\"><p><span class=\"author\">thinktheearth</span>" + item +"</p><p class=\"twitter-time\"><a href=\"" + tweetURL[i] + "\" target=\"_blank\">" + appearTime[i] + "</a></p></div>";
		
		$('#tweets-thinktheearth').append(text);
	})
	
}

