$(document).ready(function(){$(".toggle-head").css("cursor","pointer").click(function(){var change=$(":checkbox",this).attr("checked");if(change==true)$(".toggle-body").show("fast");else $(".toggle-body").hide("fast")});var state=$(":checkbox",".toggle-head").attr("checked");if(state==true)$(".toggle-body").show();else $(".toggle-body").hide();$(".categorySort").each(function(){var store=[];var ul=$(this);ul.children().each(function(){var id=$(this).attr("id");var pid=$(this).attr("class");if(id==
"")id=32766;store[id]={obj:$(this),pid:pid,id:id};$("label",this).click(function(){$("input[name=bid]",$(this).parents(".cfgInput")).attr("checked","checked")})});$.each(store,function(){if(store[this.pid]){var parent=store[this.pid].obj;if(0==$("ul.u"+this.pid,parent).size())parent.append('<ul class="u'+this.pid+'"></ul>');$("ul.u"+this.pid,parent).append(this.obj)}})})});
