var avaterT = new Array(70,200,330,460,590,720,850);
var speed1 = 200;
var speed2 = 120;
var hikyori = 110
$(document).ready(function() {
	
	$('.pw').hover(function(){
		offset1 = 74;
		offset2 = offset1 -400;
		$(this).animate({top:offset2},{duration:300});
		}, function(){
		$(this).animate({top:offset1},{duration:100});
	});
	
	$('.works, .v_ad, .blog, .sateiya, .select').hover(function(){
		var offset = $(this).offset();			   
		offset1 = offset.top;
		offset2 = offset1 - 5;
		$(this).animate({top:offset2},{duration:speed1});
		}, function(){
		$(this).animate({top:offset1},{duration:speed2});
	});
	
	$('.blog01, .blog02, .blog03').hover(function(){
		offset1 = avaterT[0];
		offset2 = offset1 - hikyori;
		$(this).animate({top:offset2},{duration:speed1});
		}, function(){
		$(this).animate({top:offset1},{duration:speed2});
	});

	$('.blog04, .blog05, .blog06').hover(function(){
		offset1 = avaterT[1];
		offset2 = offset1 - hikyori;
		$(this).animate({top:offset2},{duration:speed1});
		}, function(){
		$(this).animate({top:offset1},{duration:speed2});
	});

	$('.blog07, .blog08, .blog09').hover(function(){
		offset1 = avaterT[2];
		offset2 = offset1 - hikyori;
		$(this).animate({top:offset2},{duration:speed1});
		}, function(){
		$(this).animate({top:offset1},{duration:speed2});
	});

	$('.blog10, .blog11, .blog12').hover(function(){
		offset1 = avaterT[3];
		offset2 = offset1 - hikyori;
		$(this).animate({top:offset2},{duration:speed1});
		}, function(){
		$(this).animate({top:offset1},{duration:speed2});
	});

	$('.blog13, .blog14, .blog15').hover(function(){
		offset1 = avaterT[4];
		offset2 = offset1 - hikyori;
		$(this).animate({top:offset2},{duration:speed1});
		}, function(){
		$(this).animate({top:offset1},{duration:speed2});
	});

	$('.blog16, .blog17, .blog18').hover(function(){
		offset1 = avaterT[5];
		offset2 = offset1 - hikyori;
		$(this).animate({top:offset2},{duration:speed1});
		}, function(){
		$(this).animate({top:offset1},{duration:speed2});
	});

	$('.blog19, .blog20, .blog21').hover(function(){
		offset1 = avaterT[6];
		offset2 = offset1 - hikyori;
		$(this).animate({top:offset2},{duration:speed1});
		}, function(){
		$(this).animate({top:offset1},{duration:speed2});
	});

});
