/*
 * hanabi.js 1.0.0
 *
 */

$(document).ready(function(){

	//リンクマウスオーバーで半透明
	$("#navigationArea a img, #columnArea a img, div.pagingNavi li a").hover(
		function(){
			$(this).css("opacity", "0.4");
			$(this).css("filter", "alpha(opacity=40)");
		},
		function(){
			$(this).css("opacity", "1");
			$(this).css("filter", "alpha(opacity=100)");
		}
	);


	//アニメーションでページトップへ戻る
	$("p#returnToTop a").click(function(){
		$('html,body').animate({ scrollTop: $($(this).attr("href")).offset().top }, 'slow','swing');
		return false;
	});

	//フローティングナビメニュー
	$(window).scroll(function(){
		var menuTop = $(document).scrollTop()-$("#navigationArea").offset().top+10;
		if(menuTop<0)menuTop=0;
		$("#navi").stop().animate({
			top : menuTop+"px"
		}, 'fast','swing')
	});



}); 

