/*
 * newsticker.js 0.9
 * Copyright (c) 2007 C.M.A. Co.,Ltd.
 *
 * Last Added: 2007-01-15
 *
 */

$(function(){

	//ƒCƒxƒ“ƒg
	var tickerLen = $('body#home #news li').length;
	$('body#home #news li').each(function(){
		this.liWidth = $(this).width();
		$(this).css('left',500);
	});
	$.newsticker = function(len){
		if(len > tickerLen-1)len=0;
		$('body#home #news li:eq('+len+')').each(function(){
			$(this).css('left',0).animate({left:0},{duration:100,easing:'linear'})
//				.animate({left:0},{duration:1000,easing:'easeOutExpo'})
				.animate({left:0},{duration:5000,easing:'linear',complete:function(){$(this).css('left',500);$.newsticker(++len)}});
		});
	}
	$.newsticker(0);

});
