making functions in Jquery
<p>I`m making some functions with Jquery.
but I got problem.</p>

<pre><code>function fader(elm,delaytime) {
    elm.each(function(index){
        $(this).css('visibility','visible').delay(delaytime*index);
        $(this).fadeIn(1500);
    });
}
fader($('.subImgs').children(),200);
</code></pre>

<p>It was good, and I wanted more.</p>

<pre><code>$.fn.fader2 = function(elm,delaytime) {
    elm.each(function(index){
        $(this).css('visibility','visible').delay(delaytime*index);
        $(this).fadeIn(1500);
    });
}

$('.subImgs').children().fader2(200);
</code></pre>

<p>It doesn't work. I know something was different but I couldn't find it.
anyone can help me?</p>
