DOM node in the $ method?
<p>how can you put a DOM node in the $ method?</p>

<pre><code>$(this.loader).fadeIn(1000);
</code></pre>

<p>have also tried</p>

<pre><code>this.loader.fadeIn(1000);
</code></pre>

<p>EDIT:</p>

<p>DOM.div() returns a div element object</p>

<pre><code>function Loader(){
    this.loader = null;
    this.threads = 0;

    this.cnstr = function(){
        if(this.threads == 0){
            this.loader = DOM.div(document.body);
            with(this.loader){
                className = 'loader';
                innerHTML = 'loader';
                style.opacity = 0;
                style.filter = 'alpha(opacity=0)';
            }
            $(this.loader).fadeIn(1000);

            elm_position_center(this.loader);
        }           
        this.threads++;
    };

    this.dstr = function(){
        this.threads--;

        if(this.threads &lt;= 0){
            this.threads = 0;

            if(this.loader){
                DOM.rmv(this.loader);
            }
        }
    };
}
var Loader = new Loader();
</code></pre>

<p>if I reverse the animation like this it works</p>

<pre><code>this.loader = DOM.div(document.body);
            with(this.loader){
                className = 'loader';
                innerHTML = 'loader';
                style.opacity = 1;
                style.filter = 'alpha(opacity=100)';
            }
            $(this.loader).fadeOut(1000);
</code></pre>
