/*▼ワークスアイコン周りの処理▼*/

$(function() {
		// set opacity to nill on page load
		$("#works li a").css("opacity","0");
		// on mouse over
		$("#works li a").hover(function () {
			$("#works li a")
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, "fast"
);
		},
		// on mouse out
		function () {
			$("#works li a")
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, "slow"
);
		});
	});

	$(function() {
		// set opacity to nill on page load
		$("#works2 li a").css("opacity","0");
		// on mouse over
		$("#works2 li a").hover(function () {
			$("#works2 li a")
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, "fast"
);
		},
		// on mouse out
		function () {
			$("#works2 li a")
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, "slow"
);
		});
	});

$(function() {
		// set opacity to nill on page load
		$("#works3 li a").css("opacity","0");
		// on mouse over
		$("#works3 li a").hover(function () {
			$("#works3 li a")
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, "fast"
);
		},
		// on mouse out
		function () {
			$("#works3 li a")
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, "slow"
);
		});
	});

$(function() {
		// set opacity to nill on page load
		$("#works4 li a").css("opacity","0");
		// on mouse over
		$("#works4 li a").hover(function () {
			$("#works4 li a")
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, "fast"
);
		},
		// on mouse out
		function () {
			$("#works4 li a")
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, "slow"
);
		});
	});


/*▼読み込み処理▼*/

	$(document).ready(function() {
		$('#work_content').fadeIn("slow");
	});
	

/*▼スクロールの設定▼*/


	$(function() {
 		$("#menu > li").click(function() {
 		var qu = $(this).attr("id");
 		var an = "#" + qu.replace("q","a");

 		$.scrollTo(an, {duration: 800, axis:"y", onAfter:function(){
 		$(an).effect("highlight", {color: "#99c0e1"}, 2000); }
 		});
	 });
	});
	
/*▼ワークスアイコンの開閉▼*/     
    
	$(function() {
		$( "#works" ).tabs({ collapsible: true }).tabs({ selected: -1 }).tabs({ fx: { height: 'toggle',duration:"700" }}).find( ".ui-tabs-nav" );
		$( "#works2" ).tabs({ collapsible: true }).tabs({ selected: -1 }).tabs({ fx: { height: 'toggle',duration:"700" }}).find( ".ui-tabs-nav" );
		$( "#works3" ).tabs({ collapsible: true }).tabs({ selected: -1 }).tabs({ fx: { height: 'toggle',duration:"700" }}).find( ".ui-tabs-nav" );
		$( "#works4" ).tabs({ collapsible: true }).tabs({ selected: -1 }).tabs({ fx: { height: 'toggle',duration:"700" }}).find( ".ui-tabs-nav" );
		
		$( "#works a" ).click(function() {
			$( "#works2" ).tabs({ selected: -1 })
			$( "#works3" ).tabs({ selected: -1 })
			$( "#works4" ).tabs({ selected: -1 })
		});
		
		$( "#works2 a" ).click(function() {
			$( "#works" ).tabs({ selected: -1 })
			$( "#works3" ).tabs({ selected: -1 })
			$( "#works4" ).tabs({ selected: -1 })
		});
		
		$( "#works3 a" ).click(function() {
			$( "#works" ).tabs({ selected: -1 })
			$( "#works2" ).tabs({ selected: -1 })
			$( "#works4" ).tabs({ selected: -1 })
		});
		
		$( "#works4 a" ).click(function() {
			$( "#works" ).tabs({ selected: -1 })
			$( "#works2" ).tabs({ selected: -1 })
			$( "#works3" ).tabs({ selected: -1 })
		});
	});


/*▼シャドウボックス処理▼*/

	Shadowbox.init({
		});

