
// ボックスの高さを揃える

'jQuery' in window && (function($) {
	function equalHeight(group) {
		tallest = 0;
		group.each(function() {
			thisHeight = $(this).height();
			if(thisHeight > tallest){
				tallest = thisHeight;
			}
		});
		group.height(tallest);
	}

	$(document).ready(function() {
		//.hoge-Lと.hoge-Rの高さを揃える
		equalHeight($(".oracle-pick-up .product_name .inn"));
		equalHeight($(".oracle-pick-up .text"));
		equalHeight($(".equalHeight li.list01 a,.equalHeight li.list02 a"));
		equalHeight($(".equalHeight li.list03 a,.equalHeight li.list04 a"));
		equalHeight($(".equalHeight li.list05 a,.equalHeight li.list06 a"));
		equalHeight($(".equalHeight li.list07 a,.equalHeight li.list08 a"));
		equalHeight($(".equalHeight li.list09 a,.equalHeight li.list10 a"));
	});
})(jQuery);

// ページ内アンカーリンクへのスムーズスクロール
$(function(){
     $(".to-anchor a").click(function(){
     $('html,body').animate({ scrollTop: $($(this).attr("href")).offset().top }, 'slow','swing');
     return false;
     })
});

