How do I simulate a mouse click event in JQUery
<p>I apologize in advance, I am a designer primarily, but am trying to do some animation w/out Flash. I basically need a logo to load then shake then stop. I need it to happen on load (the shaking is a client request...). </p>

<p>Right now, this works when you click it, but I need it to run automatically.</p>

<p>Here is the code</p>

<pre><code>&lt;script type='text/javascript'&gt;//&lt;![CDATA[ 
$(window).load(function(){
    jQuery.fn.shake = function() {
        this.each(function(i) {
            $(this).css({ "position" : "absolute" });
            for (var x = 1; x &lt;= 3; x++) {
                $(this).animate({ left: 43 }, 10).animate({ left: 23 }, 50).animate({ left:23},10).animate({ left: 13 }, 50).animate({ left: 43 }, 50).animate({ left: 33 },50).animate({ left: 43 }, 50);
            }
        });
       return this;
    }


    $("#logo").click(function() {
        $(this).shake();
    });
});//]]&gt;  

&lt;/script&gt;
</code></pre>

<h1>logo is the DIV that contains the image. Any help would be greatly appreciated!!</h1>
