javascript: execute jquery code variables by the function
<p>i don't know good title but heres the explain</p>

<p>i have this link</p>

<pre><code>&lt;a href="#" class="link" effect="show"&gt; Link1 &lt;/a&gt;
&lt;a href="#" class="link" effect="fadeIn"&gt; Link2 &lt;/a&gt;
&lt;a href="#" class="link" effect="slideDown"&gt; Link2 &lt;/a&gt;
</code></pre>

<p>i want if click <code>.link</code> use its effect meas</p>

<pre><code>$('a').hide();
$('.link').click(function(){
     var effect = $(this).attr("effect");
     /* 
       what should i do here  not conditions to make if effect is show show this link
       if its fadeIn   do fade in  etc

      */
})  ;
</code></pre>
