I am new to Jquery and I am trying to get a search field to animate in and then when you click the close icon (#search-close) it animates out and the #search-close button disappears.

animating in works fine but when I click the close button it animates out but immediately animates in again

I know this is really simple

Thanks in advance 

```
<script type="text/javascript">      

$j(document).ready(function() {

$j('#search-slide').mousedown(function() {
$j('#search-close').fadeIn(100);
$j('#search-slide').animate({'left':-1});
$j('#tbcopy a').fadeOut(100);});

$j('#search-close').mousedown(function() {
$j('#search-close').stop().hide();
$j('#search-slide').stop().animate({'left':-250});
});});

</script>

```