$(document).ready(function(){
	

$('#rss').gRSSRender({
        url: "http://gtokyo-art.com/2012/news/category/japanese/feed/rss2",
        number: 1
    });




//artstTAB系
$("a.over").fadeTo(0,1.0);
$("a.over").hover(function(){
        $(this).fadeTo(100,0.5);
    },
    function(){
        $(this).fadeTo(100,1.0);
    });

$("a.over2").fadeTo(0,1.0);
$("a.over2").hover(function(){
        $(this).fadeTo(200,0);
    },
    function(){
        $(this).fadeTo(200,1.0);
    });
		
		
$(".tab").click(function(){
	
	if($("#whiteOut").is(".btnOn") == false){
		$("#artist").fadeIn(1);
		$("#whiteOut").addClass("btnOn")
		              .fadeIn(200,"easeOutCirc");
	  $("#artist .list").animate({
			width : "725px"		
			},400,"easeInOutQuart");
			
	}else{
	  $("#whiteOut").removeClass("btnOn")
		              .fadeOut(200,"easeOutCirc");
	  $("#artist .list").animate({
			width : "1px"			
			},400,"easeInOutQuart");
			$("#artist").delay(400).fadeOut(1);
	}
		});
	
		
$("#whiteOut").click(function(){
	  $("#whiteOut").removeClass("btnOn")
		              .fadeOut(200,"easeOutCirc");
	  $("#artist .list").animate({
			width : "1px"			
			},400,"easeInOutQuart");
	$("#artist").delay(400).fadeOut(1);
	});		
		
		
});


//ページトップへ
$(function(){
     $("#pagetop a").click(function(){
     $('html,body').animate({ scrollTop: $($(this).attr("href")).offset().top }, 'slow','swing');
     return false;
     })
		 
		 
		 
});



