
/* トップ　メインイメージ切り替え */
$(document).ready(function(){
	$('.top .fadein img').hide().css("visibility","visible");
	$('.top .fadein img:first-child').fadeIn(1000);
	setInterval(function(){
		$('.top .fadein :first-child').fadeOut(1000)
		.next('img').fadeIn(1000)
		.end().appendTo('.fadein');},
	6500);
});

/* トップ　ニューストピックウィンドウスライド設定 */
$(document).ready(function() {
	$(".area_news .handleBtn").toggle(
        function(){
            $(".area_news").animate({
                width:"12px"
            },"fast");
            $(".area_news").removeClass("opened").addClass("closed");
			$(".area_news .latest").css("display","none");
			$(this).html("OPEN");
        },
		function(){
            $(".area_news").animate({
                width:"560px"
            },"fast");
            $(".area_news").removeClass("closed").addClass("opened");
			$(".area_news .latest").css("display","block");
            $(this).html("CLOSE");
        }
    );
});

/* ニュース */
$(function(){
	$(".category-news .newsNav li:has(a)").addClass("linked");
}); 


