JQuery button disappears when clicked rather than activating its intended function
<p>I'm working on an image gallery at the moment and its doing something very weird that I don't quite understand. When I click on the button that is my intended "next image" or "prev image" button, the button just disappears rather than showing the next/prev image.</p>

<p><a href="http://designbykai.com/test/index.html" rel="nofollow">I've uploaded it here, give it a go</a> </p>

<p>The buttons function looks like this:</p>

<pre><code>var nextbutton= $('.next');
var prevbutton= $('.prev');

nextbutton.click(function(){
    $(this).parent(images).hide(0).next().show(0);
    return false;
});

prevbutton.click(function(){
    $(this).parent(images).hide(0).prev().show(0);
    return false;
});
</code></pre>

<p>Which was working fine but then i decided to add another function, one that lets you click the image you're currently viewing which would then have the same function as the "next image" button, taking you to the next image. Simple, I thought, just duplicate the "next image" function I've used for the button, but with a different selector:</p>

<pre><code>var imagebutton= $('#imagecontainer img:not(:last)');

imagebutton.click(function(){
    $(this).parent(images).hide(0).next().show(0);
    return false;
});
</code></pre>

<p>And it does what is supposed to, you click the image and the next image shows. But, now the next/prev buttons just disappears when clicked, and they do not take you to the next/prev image. Very strange! </p>

<p>Am I overlooking something obvious here? I'm pretty new to JQuery so any help is much appreciated! </p>
