JQuery: how to name click functions?
<p>I have a script and I need to be able to name some of my anonymous click functions.  For instance, here is some code:</p>

<p>Document ready:</p>

<pre><code>$(function(){

$('#map').imagemap([
        {top_x: 1,top_y: 2,bottom_x: 290,bottom_y:380,callback: #id1 anonymous function},
        {top_x: 275,top_y: 2,bottom_x: 470,bottom_y:380,callback: #id2 anonymous function},
        {top_x: 460,top_y: 2,bottom_x: 701,bottom_y:380,callback: #id3 anonymous function}
    ]);

$('#id1').click(function() {
    ....
});

$('#id2').click(function() {
    ....
});

$('#id3').click(function() {
    ....
});
...
});
</code></pre>

<p>How do I write my callbacks so that I don't have to duplicate the code outside the <code>document.ready</code>?  I tried putting it all inline, following the <code>callback:</code>, but it didn't work.  So what do I put in place of my anonymous function callback calls?</p>
