/**
 * フロント
 * アーティスト一覧
 */
jQuery.easing.easeOutCubic = function (x, t, b, c, d) {
	return c*((t=t/d-1)*t*t + 1) + b;
};

$j(document).ready(function() {
	
	// ページ内アンカー設定
	$j('a[href*=#]').click(function() {
		if(location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
			var target = $j(this.hash);
			target = target.length && target || $j('[name='+ this.hash.slice(1) +']');
			if(target.length) {
				var targetOffset = target.offset().top;
				$j('html,body').animate({scrollTop: targetOffset}, 300, 'easeOutCubic');
			}
		}
		return false;
	});
	
	// ジャンル検索
	$j('#searchArtists > select').change(function() {
		location.href = './artists/' + $j(this).val();
	});
});

