Image slideout help

Image slideout help

I have two images. Both are 160x600 pixels.

One image is displayed by default. On mouseover of that image, the other image needs to slide out from the left. I have it working on a blank page, but whenever I place it with other HTML, the second image will slide out, but will slide back in immediately. If I mouseover the first image a few times, the second image will eventually stay popped-out, but only after hovering mouse cursor over the first image a few times.

Here's my code:
  1. <script type="text/javascript">
  2.  $(function() {
  3.      $('.slidebttn').hover(
  4. function () {
  5. var $this = $(this);
  6. var $slidelem = $this.prev();
  7. $slidelem.stop().animate({'width':'320px'},300);
  8. $slidelem.find('span').stop(true,true).fadeIn();
  9. $this.addClass('button_c');
  10. },
  11. function () {
  12. var $this = $(this);
  13. var $slidelem = $this.prev();
  14. $slidelem.stop().animate({'width':'160px'},200);
  15. $slidelem.find('span').stop(true,true).fadeOut();
  16. $this.removeClass('button_c');
  17. }
  18. );
  19.  });
  20. </script>
  21. <div class="button_wrap">
  22. <a class="button_aLeft" id="button_aLeft"><span><img border="0" src="images/image2.jpg" /></span></a>
  23. <a class="button_bLeft slidebttn" id="button_bLeft"><span><img border="0" src="images/image1.jpg" /></span></a>
  24. </div>
And here's my CSS:
  1. .button_wrap{
  2.     position:relative;
  3.     height:650px;
  4.     overflow:hidden;
  5.     font-weight:bold;
  6.     font-size:11px;
  7. }
  8. .button_aLeft{
  9.     color:#fff;
  10.     text-align:left;
  11. }
  12. .button_aLeft span{
  13.     display:none;
  14. }
  15. .button_bLeft{
  16.     background-color:#fff;
  17.     position:absolute;
  18.     top:0px;
  19.     right:0px;
  20. }

Can anyone help me out here?