jQuery.easing.quart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};
   		$( document ).ready( function ()
			{
				$( '#menu' ).scrollFollow();
			}
			
		);

jQuery(document).ready(function(){

	jQuery('a[href*=#]').click(function() {
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
			var $target = jQuery(this.hash);
			$target = $target.length && $target || jQuery('[name=' + this.hash.slice(1) +']');
			if ($target.length) {
				var targetOffset = $target.offset().top;
				jQuery('html,body').animate({ scrollTop: targetOffset }, 1200, 'quart');
				return false;
			}
		}
	});

//定義リストをそろえる

	$("dt").each(function(){
		var dtwidth = $(this).width();
		$(this).css("width",dtwidth);
		var ddmargin = $(this).width() + 5;
		$(this).nextAll("dd").css("margin-left", ddmargin);
	});


//折りたたみ

$(".moreshow").click(function () {
	$("#more").slideDown("slow");
	$(this).css("visibility","hidden");
	});
	$(".morehide").click(function () {
	$("#more").slideUp("slow",function () {
	$(".moreshow").css("visibility","visible");
	});
	});

//hoverのフェード

$("a img").hover(
	function(){ $(this).animate({ 
    opacity: 0.6,
  }, 1000,'quart' );
	},
	function(){ $(this).animate({ 
    opacity: 1,
  }, 1000,'quart' );
	});

$("a").hover(
	function(){ $(this).animate({ 
    opacity: 0.5,
  }, 500 );
	},
	function(){ $(this).animate({ 
    opacity: 1,
  }, 500);
	});

//tooltip
	$(".profiletip").css({
		position:"absolute",
		display:"none"
	})
	
	$("a.velonique").mouseover(function(e){
		$("#velonique").fadeIn().css({
			"top":e.pageY+10+"px",
			"left":"100px"
		})
	});
	
		
	$("a.jung").mouseover(function(e){
		$("#jung").fadeIn().css({
			"top":e.pageY+10+"px",
			"left":"100px"
		})
	});

	
		
	$("a.vincent").mouseover(function(e){
		$("#vincent").fadeIn().css({
			"top":e.pageY+10+"px",
			"left":"100px"
		})
	});

	$("a.nuno").mouseover(function(e){
		$("#nuno").fadeIn().css({
			"top":e.pageY+10+"px",
			"left":"100px"
		})
	});
	

	$("a.emmanuelle").mouseover(function(e){
		$("#emmanuelle").fadeIn().css({
			"top":e.pageY+10+"px",
			"left":"100px"
		})
	});



	$("a.eric").mouseover(function(e){
		$("#eric").fadeIn().css({
			"top":e.pageY+10+"px",
			"left":"100px"
		})
	});

	$("a.daniel").mouseover(function(e){
		$("#daniel").fadeIn().css({
			"top":e.pageY+10+"px",
			"left":"100px"
		})
	});
	
	$("a.koseiyuko").mouseover(function(e){
		$("#koseiyuko").fadeIn().css({
			"top":e.pageY+10+"px",
			"left":"100px"
		})
	});


	$("a.kosei").mouseover(function(e){
		$("#kosei").fadeIn().css({
			"top":e.pageY+10+"px",
			"left":"100px"
		})
	});

	$("a.yuko").mouseover(function(e){
		$("#yuko").fadeIn().css({
			"top":e.pageY+10+"px",
			"left":"100px"
		})
	});

	$("a.inaki").mouseover(function(e){
		$("#inaki").fadeIn().css({
			"top":e.pageY+10+"px",
			"left":"100px"
		})
	});
	
	$("a.yamanaka").mouseover(function(e){
		$("#yamanaka").fadeIn().css({
			"top":e.pageY+10+"px",
			"left":"100px"
		})
	});
	
	$("html").click(function(){
		$(".profiletip").fadeOut()
	})

//jqueryのおわり
});

