$(document).ready(function(){

	var RSSarea = $("#RSSarea");

	var i = new Array();	//スクロールロック用変数の初期化
	i[0] = 0;
	i[1] = 0;
	i[2] = 0;
	i[3] = 0;

	RSSarea.children("li").bind("mouseover",function(){
		var myId = $(this).attr("id");
		var width = $(this).children("a").width();

		if(width > 280){

			//文字数29より大きかったら処理開始
			if(i[myId] == 0){

				i[myId]++;	//スクロール中はmouseoverしてもアニメーションしないようにロックする（２重動作防止）

				var move_time = width / 0.05;

				$(this).animate({
					marginLeft : -(width) + "px"
				},move_time,"linear");

				$(this).animate({
					marginLeft : "280px"
				},0,"linear");

				$(this).animate({
					marginLeft : "0px"
				},5600,"linear");

				var timer = move_time + 5600;

				setTimeout(function(){ i[myId] = 0;},timer);	//スクロール動作が完了したらロック解除

			}
		}
	});

});




try {
document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}
