// Alpha Rollover

$(document).ready(function() {
    $(".alhover").fadeTo(1,1)
    .hover( 
        function(){ // mouse_over
            $(this).fadeTo(100, 0.5);
        },
        function(){ // mouse_out
            $(this).fadeTo(220, 1);
        }
    );
});

$(document).ready(function() {
    $(".alactive").fadeTo(1,0.5)
});

$(document).ready(function() {
    $("a.hide").fadeTo(1,0.3)
});

$(document).ready(function() {
    $("ul#movie-list li a").fadeTo(1,1)
    .hover( 
        function(){// マウスオーバー時
            $(this).fadeTo(160, 0.6);
        },
        function(){// マウスアウト時
            $(this).fadeTo(320, 1);
        }
    );
});

$(document).ready(function() {
    $(".aloff").fadeTo(1,0.2)
});


// Smooth Scroll

$(document).ready(function() {
	$('a[href*=#]:not(a[href*=#c-kant],a[href*=#c-hoka],a[href*=#c-hoku],a[href*=#c-touk],a[href*=#c-kans],a[href*=#c-shik],a[href*=#c-kyus])').click(function() {
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
			var target = $(this.hash);
			target = target.length && target;
			if (target.length) {
				var sclpos = 30;
				var scldurat = 1200;
				var targetOffset = target.offset().top - sclpos;
				$('html,body')
					.animate({scrollTop: targetOffset}, {duration: scldurat, easing: "easeOutExpo"});
				return false;
			}
		}
	});
});


