
$(function(){
	///////////////////////////////////////////// Parts Component
	$(".box01 li:nth-child(3n)").css("margin-right", "0");
	$(".box01 li li").css("margin-right", "5px");
	$(".box02 li:nth-child(4n)").css("margin-right", "0");
	$(".box10 li:nth-child(2n)").css("margin-right", "0");
	$(".course-html tr td:nth-child(3n)").css("white-space", "nowrap");
	
	//// box06 - box08
  showWidthBox6($(".box06 .phArea").children("p").children("img").width());
	showWidthBox7($(".box07 .phArea").children("p").children("img").width());
	showWidthBox8($(".box08 .phArea").children("p").children("img").width());
	showWidthBox11($(".box11 .phArea").children("p").children("img").width());
	//showHeightBox01($(".box01 li[class*='area']").height());
	showHeightBox01($(".box01 .area").height());
	
	function showHeightBox01(h) {
		for (var i = 0; i < 10; i++) {
			$("#height"+[i]).text("height"+[i]+"="+h);
		}
	}
	
	$(".area").css("backgroundColor", "orange");
	
	var heightArea = (".area").length;
	$("#heightArea").text(heightArea);
	/*
  for (var i = 0; i < cookies.length; i++) {
		var cookie = jQuery.trim(cookies[i]);
		if (cookie.substring(0, name.length + 1) == (name + '=')) {
			cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
		}
  }
	*/
	
	
	
	
	function showWidthBox6(w) {
	//$("#test").text(w);
	//$("#test2").text(720 - w);
  $(".box06 .phArea").css("width", w);
	$(".box06 .txtArea").css("width", 690 - w);
	}
	
	function showWidthBox7(w) {
		$(".box07 .phArea").css("width", w);
		$(".box07 .txtArea").css("width", 690 - w);
	}
	
	function showWidthBox8(w) {
		$(".box08 .phArea").css("width", w);
		$(".box08 .tableArea").css("width", 690 - w);
		$(".box08 .tableArea table").css("width", 690 - w);
	}
	
	function showWidthBox11(w) {
		$(".box11 .phArea").css("width", w);
		$(".box11 .txtArea").css("width", 690 - w);
	}
	
	
	/*
	//pagetop scrollTo
	$('#pagetopArea a').click(function(){
	$.scrollTo( $('#pagetop'), {speed:500, axis:'y', queue:true} );
	return false;
	});
	*/
	
	//sideNavigation
	$(".subCategories").css("display","none");
	$(".categoryName").click(function(){
		//$(this).next().slideToggle("slow");
		$(this).next().slideToggle(400);
	});
	
	//Contact 1st Focus
	$(".defFocus input").focus();
	
	
	
	/*
	var txtPageID;
	$("#testPageID").text($("name", "pageID").text());
	//txtPageID = "IDVision"
	switch(txtPageID){
		case "IDVision":
			$("#sd-E-1 .subCategories").css("display","block");
			break;
		
		case "IDCorporate":
			$("#sd-E-2 .subCategories").css("display","block");
			break;
	}
	*/
	//$("#testPageID").text(txtPageID);
	
	
	/*
	if("name", "IDVision"){ //ビジョン
		$("#sd-E-1 .subCategories").css("display","block");
		if("id", "E-1-1"){
			//ビジョン-ご挨拶
			//$(".subCategories .location").children("img").attr("src", "../../common/img_side-navigation/sdnv_crp02_02_ov.gif");
		}
	}
	else if("name", "IDCorporate"){ //企業情報
		$("#sd-E-2 .subCategories").css("display","block");
		if("id", "E-2-1"){
			//企業情報-会社概要
		}
	}
	*/
	
	
	/*
	if("#idCorporate"){
		$("#sdCorporate .subCategories").css("display","block");
	}
	*/
	
	/*
	//Change Font Size
	$("p,dt,dd,li,span,a,h1,h2,h3,h4,h5").css("font-size",$.cookie('fsize'));
	function font(size){
		$("p,dt,dd,li,span,a,h1,h2,h3,h4,h5").css("font-size",size);
		$.cookie("fsize",size,{expires:30,path:'/'});//※1
	}
	*/
});

