/*-- ロールオーバー --*/
$(function(){
	$('.current a img').hover(function(){
		$(this).attr('src', $(this).attr('src').replace('_current','_on'));
			}, function(){
				if (!$(this).hasClass('currentPage')) {
				$(this).attr('src', $(this).attr('src').replace('_on','_current'));
			}
	});
});

$(function(){
	$('a img').hover(function(){
		$(this).attr('src', $(this).attr('src').replace('_off','_on'));
			}, function(){
				if (!$(this).hasClass('currentPage')) {
				$(this).attr('src', $(this).attr('src').replace('_on','_off'));
			}
	});
});


/*-- スムーズスクロール --*/
$(function(){
     $(".to_top_nav a").click(function(){
     $('html,body').animate({ scrollTop: $($(this).attr("href")).offset().top }, 'slow','swing');
     return false;
     })
});

/*-- テーブルスタイリング --*/
$(document).ready(function(){
  $("table").each(function(){
    $(this).find("tr:odd").addClass("odd");
  });
});
$(document).ready(function(){
  $("table").each(function(){
    $(this).find("tr:even").addClass("even");
  });
});
