Javascript crossfade
<p>In all IE browsers I get the following error:</p>

<blockquote>
  <p>SCRIPT5007: Unable to get value of the property 'hasClassName': object is null or undefined </p>
</blockquote>

<p>this relates to the following:</p>

<pre><code>Crossfade.prototype = {
loaded : false,
initialize : function(elm, options) {
    var me = this, next, prev;
    this.elm = $(elm);
    this.counter = 0;
    this.prevSlide = null;
    var t_opt = {};
    for(t in Crossfade.Transition) {
        var trans = Crossfade.Transition[t];
        if(trans.className &amp;&amp; this.elm.hasClassName(trans.className)) {
            t_opt = {transition:trans};
            break;
        }
    }
</code></pre>
