jquery display multiple youtube videos in modal or popup

Really easy display of youtube videos using jQuery. Pass the video Id to the function and BAM.


$(document).ready(function(){

$('.activate_modal').click(function(video_id){
var video_id = $(this).attr('name');
$('#VideoContainer').dialog({
modal:true,
width:720,
position: ['center', 'center'],
open: function(event, ui) {
$('#VideoContainer').append('');
},
close: function(event, ui) {
$('.youtube-video').remove();
}
});
return false;
});
});