Hi there,
I'm not too familiar with js, so I'm asking for help

I have this script below which loads flash object after clicking fb like button. My question is
how to do it after clicking the fb like button automatically to recognize youtube flash object or
an object from another tube site? Is it possible? Thank you in advance!

Code:
<script type='text/javascript'>
window.fbAsyncInit = function() {
FB.init({appId: "0000000000000", status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement("script"); e.async = true;
e.src = document.location.protocol +
"//connect.facebook.net/en_US/all.js";
document.getElementById("fb-root").appendChild(e);
}());
FB.Event.subscribe('edge.create', function(href, widget)
{
setTimeout("playvideo1();", 0);	  
});
function playvideo1()
{
document.getElementById('playvideo1').innerHTML = '<object ....... </object>';
}
</script>