Fade in chosen photo

Fade in chosen photo

Im using the code below for a gallery, where you click on the thumbnail and the large image appears on the right hand side. It work's great, but I would like the image to fade in instead of just appear and I can't seem to find where to enter the .fadeIn().

Thanks for any help
  1.       <script type="text/javascript"> //gallery
  2. $(document).ready(function(){
  3. //Swap Image on Click
  4. $("ul.thumb li a").click(function() {
  5. var mainImage = $(this).attr("href"); //Find Image Name
  6. $("#main_view img").attr({ src: mainImage });
  7. return false;
  8. });
  9. });
  10. </script>