$(document).ready(function() {

	// class="zoom" に適用
	$("a.zoom").fancybox({
		'zoomSpeedIn'			: 300,
		'zoomSpeedOut'			: 300,
		'padding'				: 4,
		'overlayColor'          : '#000',
		'overlayOpacity'        : 0.4
	});
	
	// class="inline" に適用
	$("a.inline").fancybox({
		'hideOnContentClick'	: false
	});
	
	$("#postRole li").each(function(i){
		if( i == 4 || i == 9 ){
			$(this).css("margin", "0 0 25px 0");
		} else {
			$(this).css("margin", "0 20px 25px 0");
		}
	});
	
	$("#postRole li").fadeIn("slow");
	$("#postRole").css("background", "transparent");
	
	var url = "http://twitter.com/statuses/user_timeline/azmr.json?count=1&callback=?";
	
	$.getJSON(url, function(data){
		if( data[0].text != undefined ){
			var tweet = data[0].text;
			$("#twitter span").html("").css("display", "none");
			$("#twitter span").text(tweet).fadeIn("slow");
		}
	});
	
});
