
///////////////////////////////////////////// Bnk - Corporate
$(function(){
	$("#test000 dt:nth-child(2n)").css("margin-right", "50px");
});


///////////////////////////////////////////// Project
$(function(){
	$("#projectList li:nth-child(4n)").css("margin-right", "0");
});

///// Project Category Navigation
$(function(){
	$("#prjSideNv li:nth-child(2)").css("display", "none");
});



///////////////////////////////////////////// Catalog
$(function(){
	//チェックボックスを画像に
	$('input:checkbox:not([safari])').checkbox();
	//$('input[safari]:checkbox').checkbox({cls:'jquery-safari-checkbox'});
	//$('input:radio').checkbox();
	
	//liにrollOver時背景ハイライト
	$("#catalogBox li").hover(
		function (){
			$(this).addClass("boxOver");
		},
		function (){
			$(this).removeClass("boxOver");
		}
	);
	
	//ALLボタンクリック時
	$("#all").click(function(){
		if($(this).attr("checked") == false){
			if (typeof document.body.style.maxHeight != "undefined") //ie7, safari, firefox, opera...
			{ 
				$("#catalogBox input:checkbox[id^='group']").attr("checked", true); 
			} else { //ie6
				$("#catalogBox input:checkbox[id^='group']").attr("checked", false); 
			}
		}
		else{
			if (typeof document.body.style.maxHeight != "undefined") //ie7, safari, firefox, opera...
			{ 
				$("#catalogBox input:checkbox[id^='group']").attr("checked", false); 
			} else { //ie6
				$("#catalogBox input:checkbox[id^='group']").attr("checked", true); 
			}
		}
	});
	
	//個別エリアクリック時
	$("#catalogBox li").click(function(){
		if($(this).children("p").children("input:checkbox").attr("checked") == false){
			$(this).children("p").children("input:checkbox").attr("checked", true);
			return false;
		}
		else{
			$(this).children("p").children("input:checkbox").attr("checked", false);
		}
	});
	
	$("#catalogBox li input:checkbox").click(function(){
		if($(this).attr("checked") == false){
			$(this).attr("checked", true);
			return false;
		}
		else{
			$(this).attr("checked", false);
		}
	});
	
	//最後のliの背景削除
	$("#catalogBox li:last-child").css("background-image", "none");
	
	
	
	/*
	$("#catalogBox li").click(function(){
		$("#catalogBox :checkbox[name]").attr("checked", true);
		//$(this).css("background-color", "#FF0000");
	});
	*/
});


/*
$(function(){
	$("#all").click(function(){
		$("#catalogBox :checkbox").each(function(){
			if($(this).attr("checked") == false){
				$(this).attr("checked", true);
			}
			else{
				$(this).attr("checked", false);
			}
		});
	});
});
*/
