jQuery toggle only certain elements
<p>I'm trying to append photo thumbs to a gallery (because it only show 1 big image at time), so I've loaded (with .load) the galleries and everything is ok (the galleries are correctly shown), but what i want is that only the thumbs of the big image is shown. Instead when i try to toggle it toggles all the thumbs, so if i write</p>

<pre><code>$("#one").slideToggle('medium');
$("#two").slideToggle('medium');
$("#three").slideToggle('medium');
$("#four").slideToggle('medium');
</code></pre>

<p>it's ok, all the thumbs are there
But if i write </p>

<pre><code>$('div[align=center]:eq(1)').append('&lt;br /&gt;&lt;a class="linkone" href="#"&gt;Show Gallery&lt;/a&gt;&lt;div id="one" name="one"&gt;&lt;/div&gt;&lt;div id="two" name="two"&gt;&lt;/div&gt;&lt;div id="three" name="three"&gt;&lt;/div&gt;&lt;div id="four" name="four"&gt;&lt;/div&gt;');

$("#one").hide();
$("#two").hide();
$("#three").hide();
$("#four").hide();

$(".linkone").click(function(event) {
event.preventDefault();

    var bigimage = $('.forumrow table').find('img:first').attr('src').split(/medium/)[1];  //this is the big image 
    var linkfilter = $('.blockhead a').filter('a[href^="http://www.site.com/showgallery.php?cat="]').attr('href').split(/=/)[1];  //this is the category gallery http://www.site.com/showgallery.php?cat= 123
    var thumb = "http://www.site.com/data/" + linkfilter + "/thumbs" + bigimage;  // this is the thumb if the big image

    if ($('#one .forumrow table img[src="' +thumb+ '"]'))                                
        {
        $("#one").slideToggle('medium');
        } 
</code></pre>

<p>or if I write</p>

<pre><code>$('div[align=center]:eq(1)').append('&lt;br /&gt;&lt;a class="linkone" href="#"&gt;Show Gallery&lt;/a&gt;&lt;div id="one" name="one"&gt;&lt;/div&gt;&lt;div id="two" name="two"&gt;&lt;/div&gt;&lt;div id="three" name="three"&gt;&lt;/div&gt;&lt;div id="four" name="four"&gt;&lt;/div&gt;');

$("#one").hide();
$("#two").hide();
$("#three").hide();
$("#four").hide();

$(".linkone").click(function(event) {
event.preventDefault();

    var bigimage = $('.forumrow table').find('img:first').attr('src').split(/medium/)[1];  //this is the big image 
    var linkfilter = $('.blockhead a').filter('a[href^="http://www.site.com/showgallery.php?cat="]').attr('href').split(/=/)[1];  //this is the category gallery http://www.site.com/showgallery.php?cat= 123
    var thumb = "http://www.site.com/data/" + linkfilter + "/thumbs" + bigimage;  // this is the thumb if the big image

    if (bigimage == thumb)                               
        {
        $("#one").slideToggle('medium');
        }
</code></pre>

<p>it's wrong because it shows always the same thumbs gallery, so how can I manage the if there is a big photo and if I click on Show Gallery it toggle only the gallery of the big photo?</p>
