Hover image problem

Hover image problem

Hello I'm using the Jquery below to enlarge some images on a site.  The problem is when I prep the images at 400 pixels the page site opens up with all the images at 400.  Once the end user goes over everything looks as it should.  When I prep the images at 150 pixels the end result is disappointing as the enlargement is so pixalted that it is hardly legible.  Ideally I would like the page to load at 150 pixels and hover over at 400 pixels.  

I've tried unsuccessfully to load the Jquery on page open, but have not had success with this.  Below is the jquery, CSS (for this section - not the layout) and HTML.  Any help is appreciated

  1.  $(document).ready(function() {
  2.         var cont_left = $("#container").position().left;
  3.         $("a img").hover(function() {
  4.             // hover in
  5.             $(this).parent().parent().css("z-index", 1);
  6.             $(this).animate({
  7.                height: "400",
  8.                width: "400",
  9.                left: "-=20",
  10.                top: "-=20"
  11.             }, "fast");
  12.         }, function() {
  13.             // hover out
  14.             $(this).parent().parent().css("z-index", 0);
  15.             $(this).animate({
  16.                 height: "150",
  17.                 width: "150",
  18.                 left: "+=20",
  19.                top: "+=20"
  20.             }, "fast");
  21.         });

  22.  $(".img").each(function(index) {
  23.             var left = (index * 20) + cont_left;
  24.             $(this).css("left", left + "px");
  25.         });
  26.     });

  1. <div id="mast"></div>

  2. <div id="container">
  3.         <div class="img"><a href="#"><img src="op/area.jpg"/></a></div>
  4.         <div class="img"><a href="#"><img src="op/areamarked.jpg"/></a></div>
  5.         <div class="img"><a href="#"><img src="op/areabyowner.jpg"/></a></div>
  6.         <div class="img end"><a href="#"><img src="op/areapark.jpg"/></a></div>
  7.         <div class="clear"></div>
  8.     </div>

  9. <div id="insidewrap">


  1.      #container {
  2.            
  3.             position: relative;
  4.             margin-top: 5px;
  5.             width: 850px;
  6. height:160px;
  7. overflow:inherit;
  8.         }
  9.         .img {
  10.             position: relative;
  11.             z-index: 0;
  12. float:left;
  13.         }
  14.         .end {
  15.             margin-right: 0;
  16.         }
  17.         .clear {
  18.             clear: both;
  19.         }
  20.         .img a img {
  21.             position: relative;
  22.             border: 0 solid #fff;
  23.         }