

// トピックス記事開閉
$(document).ready(function() {
	$("div.topicsRight h4").hover(function(){
		$(this).css("cursor","pointer"); 
	},function(){
		$(this).css("cursor","default");
		});
	$("div.topicsRight div.item").css("display","none");
	$("div.topicsRight h4").click(function(){
		$(this).next().slideToggle("slow");
	});
});


// トピックスタイトルの色
$(function(){
	$("div.topicsRight h4").mouseover(function() {
		$(this).highlightFade({
			start:"#a8cff6",speed:1500,iterator:"sinusoidal"
		});
	});
});
$(function(){
	$("div.topicsRight h4").hover(
		function(){$(this).css("color","#999");},
		function(){$(this).css("color","#666");}
	);
});


// トピックスの最後のアンダーラインを実線に
$(function(){
	$("div.topicsbody:last").css("border-bottom","1px #999 solid");
});


// コラムのボックスを角丸に
$(document).ready( function(){
  $("div#main div.column,div#main div.featurescontents,div#main div.itembody").corners();
});


// features記事開閉
$(document).ready(function() {
	$("body#features div#main h4.features").hover(function(){
		$(this).css("cursor","pointer"); 
	},function(){
		$(this).css("cursor","default");
		});
	$("body#features div#main div.featurescontents").css("display","none");
	$("body#features div#main h4.features").click(function(){
		$(this).next().slideToggle("slow");
	});
});


// ナヴィゲーションがうごく
smoothEaseIn = function(t, b, c, d){
	return c * Math.pow( 2, 10 * (t/d - 1) ) + b;
}
var mov = new wrapScroll('movingmenu','contents','header');
mov.setTween(smoothEaseIn, 40);
mov.marginTop = 16;
