// ティッカー表示JS

jQuery.extend(jQuery.easing,{
	easeInOutCubic: function (x, t, b, c, d) { if((t/=d/2) < 1) return c/2*t*t*t + b; return c/2*((t-=2)*t*t + 2) + b;
	}
});

var tickSec = 10; // 入れ替え秒数

jQuery(document).ready(function($){ // noConflictModeからぬける

	$("#ticker li:gt(0)").css("left","760px");
	var tickerLink = setInterval(
		function(){
			$("#ticker li").eq(0).animate({"left":"-760px"},1000);
			$("#ticker li").eq(1).animate({"left":"0"},1000,"easeInOutCubic",function(){
				$("#ticker li:first").css("left","760px").appendTo("#ticker > ul").unbind();
			});
		},
		tickSec*1000
	); 

	$("#guide > h4").click(function(){
		$(this).next("ol").slideToggle();
	});

});
