$(function(){
	var imgNum = 4;	//画像の枚数
	var imgSize = 190;	//画像のサイズ
	var time = 5000;	//切り替えのタイミング
	var current = 1;	//現在の画像
	setInterval(function(){
		if( current < imgNum ) {
			current++;
		    $("#banner ul").animate({
				marginLeft : parseInt($("#banner ul").css("margin-left"))-imgSize+"px"
			},"fast");
		} else {
			 $("#banner ul").animate({
				marginLeft : parseInt($("#banner ul").css("margin-left"))+(imgSize * (imgNum-1))+"px"
			},"fast");
			current = 1;
		}
	}, time);
});
