Instead of using direct YouTube code, I would use swfobject for cross-platform implementation of Flash. Therefore, if you have a video located in this tag:
<div id='myvideo'></div>
To enable a YouTube video, you do the following:
swfobject.embedSWF (<>, "myvideo", "580", "326", "9.0.0");
To change the video do it in javascript:
swfobject.removeSWF("myvideo"); swfobject.embedSWF(<<new video url>>, "myvideo", "580", "326", "9.0.0");
swfobject (which is located in google code) takes care of all the problems of implementing Flash cross-linking.
Alternatively you can use
source share