$(function(){
		$("ul input","#formCat").attr("disabled", "disabled");
		$("ul input","#formArea").attr("disabled", "disabled");
		$("ul input","#formFilter").attr("disabled", "disabled");
		$("ul li","#formCat").css("color", "#CCCCCC");
		$("ul li","#formFilter").css("color", "#CCCCCC");
		//showarea Non-Active
		$("ul li","#formArea").css("color", "#CCCCCC");
		$("ul li a","#formArea").css("color", "#CCCCCC");
		$("ul li label","#formArea").css("color", "#CCCCCC");
		$("#btnShowArea").css("cursor","default");
		//Remove Catuion
		$("#typeShow .typeCaution").remove();
		$("#typeShow #showType").append('<span class="typeCaution">※通信講座では<strong>ジャンル</strong>・<strong>エリア</strong>・<strong>こだわり</strong>の指定はできません。</span>');


//area_search.js 「bind」差分script
	//Paginate Navi Copy
	$("#pageNavBottom").clone().prependTo("#entryList");

	//PopUp Window - Show
	function showTypeWindow() {
		$("#typeSelect ul").toggle();
	}
	function showAreaWindow() {
		$("#areaSelect ul").toggle();
	}

	//PopUp Window - Selected Text
	$("#areaSelect ul li label").click(function(){
		$("#areaShow li:eq(0) span").remove();
		$("#areaShow li:eq(0)").prepend('<span>'+$(this).text()+'</span>');
		$("#areaSelect ul").hide();
	});

	//Bind Setup
	$("#showType a").bind("click", showTypeWindow);

	//PopUp Window - Close Btn
	$("#typeSelect ul .btnClose").click(function(){
		$("#typeSelect ul").hide();
	});
	$("#areaSelect ul .btnClose").click(function(){
		$("#areaSelect ul").hide();
	});

	//PopUp Window Text - Hover
	$("#typeSelect ul label").hover(function(){
		$(this).css("text-decoration","none");
	},
	function(){
		$(this).css("text-decoration","underline");
		}
	);
	$("#areaSelect ul label").hover(function(){
		$(this).css("text-decoration","none");
	},
	function(){
		$(this).css("text-decoration","underline");
		}
	);

	//Type Click - 100,101,102
	$("#typeSelect ul li label:not(:eq(4),:eq(5),:eq(6))").click(function(){
		$("ul :checkbox","#formCat").removeAttr("disabled")
		$("ul li","#formCat").css("color", "#333333");
		$("ul input","#formFilter").removeAttr("disabled")
		$("ul li","#formFilter").css("color", "#333333");
		//showarea Active
		$("#showArea a").bind("click", showAreaWindow);
		$("ul input","#formArea").removeAttr("disabled")
		$("ul li","#formArea").css("color", "#333333");
		$("ul li a","#formArea").css("color", "#0098CA");
		$("ul li label","#formArea").css("color", "#0382ab");
		$("btnShowArea").css("cursor","auto");
		//Remove Catuion
		$("#typeShow .typeCaution").remove();
		//Common Action ( Text Change & Window Close )
		$("#typeShow li:eq(0) span").remove();
		$("#typeShow li:eq(0)").prepend('<span>'+$(this).text()+'</span>');
		//$("#typeSelect ul").hide();
		$("#typeSelect ul").hide();
	});


	//Type Click - 103
	$("#typeSelect ul li label:eq(4)").click(function(){
		$("ul input:not(:eq(10),:eq(12))","#formCat").attr("disabled", "disabled");
		$("ul li:not(:eq(10),:eq(12))","#formCat").css("color", "#CCCCCC");
		$("ul input","#formFilter").attr("disabled", "disabled");
		$("ul li","#formFilter").css("color", "#CCCCCC");
		$("ul input:eq(10),ul input:eq(12)","#formCat").removeAttr("disabled")
		$("ul li:eq(10),ul li:eq(12)","#formCat").css("color", "#333333");
		//showarea Active
		$("#showArea a").bind("click", showAreaWindow);
		$("ul input","#formArea").removeAttr("disabled")
		$("ul li","#formArea").css("color", "#333333");
		$("ul li a","#formArea").css("color", "#0098CA");
		$("ul li label","#formArea").css("color", "#0382ab");
		$("btnShowArea").css("cursor","auto");
		//add Catuion
		$("#typeShow .typeCaution").remove();
		$("#typeShow #showType").append('<span class="typeCaution">※資格関連講座では<strong>該当しないジャンル</strong>・<strong>こだわり</strong>の指定はできません。</span>');
		//Common Action ( Text Change & Window Close )
		$("#typeShow li:eq(0) span").remove();
		$("#typeShow li:eq(0)").prepend('<span>'+$(this).text()+'</span>');
		$("#typeSelect ul").hide();
	});

	//Type Click - 104
	$("#typeSelect ul li label:eq(5)").click(function(){
		$("ul input","#formCat").attr("disabled", "disabled");
		$("ul li","#formCat").css("color", "#CCCCCC");
		$("ul input","#formFilter").attr("disabled", "disabled");
		$("ul li","#formFilter").css("color", "#CCCCCC");
		//showarea Active
		$("#showArea a").bind("click", showAreaWindow);
		$("ul input","#formArea").removeAttr("disabled")
		$("ul li","#formArea").css("color", "#333333");
		$("ul li a","#formArea").css("color", "#0098CA");
		$("ul li label","#formArea").css("color", "#0382ab");
		$("btnShowArea").css("cursor","auto");
		//Remove Catuion
		$("#typeShow .typeCaution").remove();
		$("#typeShow #showType").append('<span class="typeCaution">※パソコン教室では<strong>ジャンル</strong>・<strong>こだわり</strong>の指定はできません。</span>');
		//Common Action ( Text Change & Window Close )
		$("#typeShow li:eq(0) span").remove();
		$("#typeShow li:eq(0)").prepend('<span>'+$(this).text()+'</span>');
		$("#typeSelect ul").hide();
	});

	//Type Click - 105
	$("#typeSelect ul li label:eq(6)").click(function(){
		$("ul input","#formCat").attr("disabled", "disabled");
		$("ul input","#formArea").attr("disabled", "disabled");
		$("ul input","#formFilter").attr("disabled", "disabled");
		$("ul li","#formCat").css("color", "#CCCCCC");
		$("ul li","#formFilter").css("color", "#CCCCCC");
		//showarea Non-Active
		$("#showArea a").unbind("click", showAreaWindow);
		$("ul li","#formArea").css("color", "#CCCCCC");
		$("ul li a","#formArea").css("color", "#CCCCCC");
		$("ul li label","#formArea").css("color", "#CCCCCC");
		$("#btnShowArea").css("cursor","default");
		//Remove Catuion
		$("#typeShow .typeCaution").remove();
		$("#typeShow #showType").append('<span class="typeCaution">※通信講座では<strong>ジャンル</strong>・<strong>エリア</strong>・<strong>こだわり</strong>の指定はできません。</span>');
		//Common Action ( Text Change & Window Close )
		$("#typeShow li:eq(0) span").remove();
		$("#typeShow li:eq(0)").prepend('<span>'+$(this).text()+'</span>');
		$("#typeSelect ul").hide();
	});

	//Area Click
	$("#typeSelect ul li label").click(function(){
		$(this).parent().find("input:first").attr({ checked: "checked" });
	});
	//Area Click
	$("#areaSelect ul li label").click(function(){
		$(this).parent().find("input:first").attr({ checked: "checked" });
	});


});
