var params = { allowScriptAccess: "always" }; var atts = { id: "myytplayer" }; swfobject.embedSWF("http://www.youtube.com/apiplayer?enablejsapi=1", "ytapiplayer", "560", "340", "8", null, null, params, atts); var params = { allowScriptAccess: "always" }; var atts = { id: "myytplayer2" }; swfobject.embedSWF("http://www.youtube.com/apiplayer?enablejsapi=1", "ytapiplayer2", "1", "1", "8", null, null, params, atts);