jQuery replaceWith throwing back error
<p>Hey all, I'm looking for a fresh set of eyes to check out this code and see if you can tell me why it isn't working properly... I've actually used this same code before with 1.3.2 and it is fine, but for some reason with 1.4.1 I'm having troubles... am I missing something?</p>

<pre><code>$(".item").click(function() {       
    var yt_vid = $(this).children('img').attr("id");

    $("#youtube").fadeOut(300, function() {
        $("#youtube").replaceWith('&lt;object id="youtube" type="application/x-shockwave-flash" style="width:488px; height:300px; display:none;" data="http://www.youtube.com/v/' + yt_vid + '&amp;hl=en_US&amp;fs=1&amp;hd=1"&gt;&lt;param name="movie" value="http://www.youtube.com/v/' + yt_vid + '&amp;hl=en_US&amp;fs=1&amp;hd=1" /&gt;&lt;param wmode="transparent"&gt;&lt;\/param&gt;&lt;\/object&gt;');

        $('#youtube').fadeIn(1000);
    });
});
</code></pre>

<p>The #youtube is added on document load with the following code:</p>

<pre><code>    var initialVid = $(".item").children('img').attr("id");
$("#youtubePlayer").append('&lt;object id="youtube" type="application/x-shockwave-flash" style="width:488px; height:300px;" data="http://www.youtube.com/v/' + initialVid + '&amp;hl=en_US&amp;fs=1&amp;hd=1"&gt;&lt;param name="movie" value="http://www.youtube.com/v/' + initialVid + '&amp;hl=en_US&amp;fs=1&amp;hd=1" /&gt;&lt;param wmode="transparent"&gt;&lt;\/param&gt;&lt;\/object&gt;');
</code></pre>

<p>Anytime I click .item, i get error 'D is not defined' in firebug and down the list i see an error on line 36 (the #youtube.fadeOut line)</p>

<p>Thanks!</p>
