var params = { allowScriptAccess: "always", wmode:"transparent", allowFullScreen:"true" };
var atts = { id: "myytplayer" };
swfobject.embedSWF("http://www.youtube.com/v/"+yid+"?autoplay=0&autohide=1&rel=0&modestbranding=1&enablejsapi=1&title=&playerapiid=player&version=3&theme=light",
"player", "730", "440", "8", null, null, params, atts);
function onYouTubePlayerReady(playerid) {
player = document.getElementById("myytplayer");
...