
$(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();
	
	
	
	
});


