Multiple toggle jquery
<p>Could you help me pls with one problem? I need to multiple selection of categories for the same time as well as 'All' button which will toggle all elements.</p>

<p>Here is some code:</p>

<pre><code> $(function() {
//All Category  
  $('#5').click(function(){
  $('ul.thumbs').toggle();}); 
//First Category
  $('#6').click(function(){
  $('a.6').toggle();});
//Second Category
  $('#7').click(function(){
  $('a.7').toggle();});
//Third Category
  $('#8').click(function(){
  $('a.8').toggle();});
    }); 
</code></pre>

<p>And here is link example:</p>

<pre><code>&lt;a class="6"&gt;&lt;img src=""&gt;&lt;/a&gt;
</code></pre>

<p>I.e. in a class I store category number. Now it works not so proper. When you clicking by category link, it appear or disappear rightway. But when you clicking by 'All' link, it enable/disable only categories which wasn't toggled earier. 
I'm not jquery guru and don't think that I'll find some decisions by myself. 
Any help will be appreciate.</p>
