Want to open a new page at the end of an animation

Want to open a new page at the end of an animation

I still haven't been able to figure this out through the jQuery directory, but I suspect the answer isn't that difficult;

I have a picture that links to a new page in my html. When the user clicks the image, I want a black box to wipe across the image, then load a new page. I can do one or the other, but I don't know how to do both. Here is my code as it is currently written:

  1. <style>
  2. .wipe2right {
  3. background-color: #111;
  4. position: absolute;
  5. top: 0px;
  6. width: 228px;
  7. height: 158px;
  8.         right: 0px;
  9. }
  10. </style>
  11. </head>

  12. <body id="page1">
  13. <p id="noScript">enable JavaScript, you moron!</p>
  14. <div class="extra">
  15.          <div class="main">
  16. <div class="menu">
  17. <ul id="clickme">
  18. <li class="m1"><a href="http://www.willyworld.org"><img  src="images/m1.jpg" border=0 /></a></li>
  19.                                         </ul>
  20.                                  </div>
  21.  </div>
  22.         </div>

  23.    <script src="jquery-1.5.js"></script>
  24.    <script>
  25.    $('document').ready(function() {
  26.   $('#noScript').remove();
  27.   $('<div class="wipe2right">&nbsp;</div>').appendTo('.m1');
  28.   $('.m1').ready(function(){ $('.wipe2right').animate( { width:0 }, 700, function() { }); });
  29.            $('.m1 img').mouseover(function(){ $(this).animate( { opacity:0 }, 250, function() { }); });
  30.   $('.m1 img').mouseout(function(){ $(this).animate( { opacity:1 }, 350, function() { }) });
  31.            $('ul').click(function(){ $('.wipe2right').animate( { width:228 }, 350, function() { }) });
  32.    });

  33.    </script>
  34. </body>