function setPlusMinusImg(tgt){
	var cname = tgt + "_dsp";
	var obj = $("#" + tgt);
	$(obj).parents("div:first").find("h3:first").prepend("<span class='jq_ec_view_button'></span>");
	if($.cookie(cname) == "none"){
		obj.siblings(".jq_ec_view_title:first").find("span.jq_ec_view_button:first").addClass("jq_ec_view_button_off");
		$(obj).css("display","none");
	}
}
//絞り込みパーツやソートパーツの開閉機能
$(document).ready(function(){

	$(".jq_ec_view_controller .jq_ec_view_title").css("cursor","pointer").click(function(){
		var n = $(this);
		var id = n.next("div").attr("id");
		var cname = "";
		if(id){
			cname = id + "_dsp";
		}
		n.next("div").slideToggle("normal", function(){
			if(n.next("div").is(":hidden")){
				n.find("span.jq_ec_view_button").addClass("jq_ec_view_button_off");
				if(cname!=""){
					saveCookieWithExpire(cname,"none","/",365);
				}
			} else {
				n.find("span.jq_ec_view_button").removeClass("jq_ec_view_button_off");
				if(cname!=""){
					saveCookieWithExpire(cname,"block","/",365);
				}
			}
		});
	});
});

