// 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)
});


// 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;
			}
		}
	});
});


$(function() {
	$('dl.accordion>dd').hide();
	$('dl.accordion>dt.opened').nextUntil('dl.accordion>dt').show('slow');
	$('dl.accordion>dt').click(function(e) {
		$(this).toggleClass('opened');
		$(this).nextUntil('dl.accordion>dt').toggle('slow');
	});
});

