function readmore(artid, artid_btn) {
	$(artid_btn).slideUp();
	$(artid).slideDown();
}

function readmore_hide(artid, artid_btn) {
	$(artid).slideUp();
	$(artid_btn).slideDown();
}

function read_twitter() {
	$("#tw_acount").load(
		"./include/twread/read_twitter.php",
		null,
		function(responseText, status, XMLHttpRequest){
			if (status != "success") $("#tw_acount").load("../include/twread/read_twitter.php");
			$("#tw_acount").slideDown();
	});
	$("#marquee1").load("./include/twread/twitter_logs.php", null, function() {marqOn = $("#marquee1"); $(marqOn).marquee("update")});
}

$(function(){
	/* 例1 */
	$("#marquee1").marquee({
	loop: -1
	// 初期時
	, init: function ($marquee, options){
		options.yScroll = "bottom";
	}
	// メッセージ切替表示前
	, beforeshow: function ($marquee, $li){
	var $author = $li.find(".author");
		if( $author.length ){
			$("#marquee-author").html("<span style='display:none;'>" + $author.html() + "</span>").find("> span").fadeIn(850);
		}
	}
	// メッセージ表示切替時（上から下にスライド表示された時）
	, show: function (){
	}
	// メッセージスクロール完了後（スライド表示されたメッセージが左方向へすべてスクロールされた時）
	, aftershow: function ($marquee, $li){
		// find the author
		var $author = $li.find(".author");
		// hide the author
		if( $author.length ) $("#marquee-author").find("> span").fadeOut(250);
		}
	});
});