[jQuery] IE and <object>

[jQuery] IE and <object>


Hello!
If you copy paste the embed-code from a YouTube-Video like this:
<object width="425" height="344"><param name="movie" value="http://
www.youtube.com/v/ewnfWoSQz3o&hl=de&fs=1"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed src="http://
www.youtube.com/v/ewnfWoSQz3o&hl=de&fs=1" type="application/x-
shockwave-flash" allowscriptaccess="always" allowfullscreen="true"
width="425" height="344"></embed></object>
the <object> tag is missing its classid-attribute and will therefore
be ignored by IE. Now I have the sitaution that I need to alter the
parameters of the object but cannot as IE will simply ignore them.
I'd like to do sth like this now:
$('object').each(function(){
        $(this).attr('classid','clsid:D27CDB6E-
AE6D-11cf-96B8-444553540000');
});
The Problem seems to be that IE decides really early not to accept the
<object>, at least before $(document).ready
Anyone got an idea when to insert the attribute into the object, so IE
will accept it?
Thanks alot!