function getUserTL(usrName, dispBlock) {
	$.getJSON(
		"http://api.twitter.com/statuses/user_timeline/" + usrName + ".json?callback=?",
		{"q": usrName, "count": 10},
		function(data) {
			dispTL(data, usrName, dispBlock, 0);
		}
	);
}
function dispTL(data, usrName, dispBlock, page){
	$(dispBlock).data('cnt', $(dispBlock).data('cnt')||0);
	var getCount = 10;
	var slideDuration = 300;
	var fadeDuration = 1000;
	var secSeed = 300;
	var secPlus = 3500;
	var tw_twim_len = 60;
	var tw_limit = 5;
	var i = page;
	if(($(dispBlock).data("cnt") > 40)&&(i == data.length - 1)){
		$.getJSON(
			"http://api.twitter.com/statuses/user_timeline/" + usrName + ".json?callback=?",
			{"q": usrName, "count": getCount},
			function(res) {
				data = res;
				$(dispBlock).data('cnt', 0);
				i = 0;
			}
		);
	}

	var twTxt = strtrim(data[i].text, tw_twim_len, usrName);
	var twID   = data[i].id;
	var usrImgUrl  = data[i].user.profile_image_url;
	var twSrc;
	twSrc  = '<dl class="tw_box">';
	twSrc += '<dt class="fl"><img src="' + usrImgUrl + '" alt="' + usrName + '" /></dt>';
	twSrc += '<dd class="fwb pt5 txt12"><a href="http://twitter.jp/' + usrName + '">' + usrName + '</a></dd>';
	twSrc += '<dd class="clear txt10">' + twTxt + '</dd>';
	twSrc += '</dl>';




	$(twSrc)
	.prependTo(dispBlock)
	.css({opacity: 0})
	.hide()
	.slideDown(slideDuration, function(){
		$(this).fadeTo(fadeDuration, 1);
		if($(".tw_box", dispBlock).size() > tw_limit){
			$(".tw_box:last", dispBlock).remove();
		}
		var sec = Math.floor(Math.random() * secSeed);
		sec += secPlus;
		$.timer(sec, function(timer){
			timer.stop();
			i++;
			$(dispBlock).data('cnt', $(dispBlock).data('cnt') + 1);
			if(i == data.length){i = 0;}
			dispTL(data, usrName, dispBlock, i);
		});
	});
}
function strtrim(txt, maxSize, usrName){
	if (txt.length > maxSize) {
		return  txt.substr(0, maxSize - 1) + ' … <span class="tw_link"><a href="http://twitter.com/' + usrName + '" >続きを読む</a></span>';
	}else{
		return txt;
	}
}

