Jquery menu with less code
<p>I'm using Jquery for menu created like:</p>

<pre><code>&lt;div class="prof_info1"&gt;home&lt;/div&gt;&lt;div class="prof_info2"&gt;info2&lt;/div&gt;&lt;div class="prof_info3"&gt;info3&lt;/div&gt;
</code></pre>

<p>And Jquery code like:</p>

<pre><code>$(document).ready(function(){

$(".prof_info1").unbind("click").click(function(event) {
$("#main").html('&lt;img src="img/spin.gif" class="spin"&gt;');
location.replace("?&amp;id=&lt;?=$id?&gt;")
return false;
});

$(".prof_info2").unbind("click").click(function(event) {
$("#main").html('&lt;img src="img/spin.gif" class="spin"&gt;');
$("#main").load('?a=2&amp;id=&lt;?=$id?&gt;');
return false;
});


$(".prof_info3").unbind("click").click(function(event) {
$("#glavni").html('&lt;img src="img/spin.gif" class="spin"&gt;');
$("#glavni").load('?a=3&amp;id=&lt;?=$id?&gt;');
return false;
});

});
</code></pre>

<p>Is there any easier way to do write this Jquery code and make it with less code? 
Something like </p>

<pre><code>if click somethind{
...
}elseif{
....}
</code></pre>
