
$(function($) {
	
	$("#js_off").hide();
	$("div.js_07").show();
	//---------------------------
	// 右カルーセル
	//---------------------------
	$(".carousel").jCarouselLite({
	    btnPrev: "#prev",
	    btnNext: "#next",
	    speed: 800,
//	    easing: "easeInOutSine",// 
//	    easing: "easeInOutQuad",// 
	    easing: "easeOutSine",// 
			scroll: 1
	});

	//---------------------------
	//	右画像入れ替え
	//---------------------------
	$("li.js_10").hover(function(){
		$("div.car_body").hide();
		$("#"+$(this).attr("data")).show();
	});
	
	
	$("#next").mouseover(function(){
		var intervalId = setInterval(function(){
			$("#next").click();
		} , 50);
		$(this).mouseout(function(){
			clearInterval(intervalId);
		});
	});
	$("#prev").mouseover(function(){
		var intervalId = setInterval(function(){
			$("#prev").click();
		} , 50);
		$(this).mouseout(function(){
			clearInterval(intervalId);
		});
	});
	
	/**　top flash **/
/*
	swf = new Array();
	swf[0] = "./swf/main01.swf";
	swf[1] = "./swf/main02.swf";
	swf[2] = "./swf/main03.swf";
	swf[3] = "./swf/main04.swf";
	swf[4] = "./swf/main05.swf";
	n = Math.floor(Math.random() * swf.length);
*/
//	$("#flash99").val(swf[n]);
//	$("#flash88").attr("data" , swf[n]);
	
});

