get_parameters();
$variables['video_id'] = check_plain($parts['v']);
$variables['width'] = isset($variables['width']) ? $variables['width'] : media_youtube_variable_get('width');
$variables['height'] = isset($variables['height']) ? $variables['height'] : media_youtube_variable_get('height');
$variables['autoplay'] = isset($variables['autoplay']) ? $variables['autoplay'] : media_youtube_variable_get('autoplay');
$variables['fullscreen'] = isset($variables['fullscreen']) ? $variables['fullscreen'] : media_youtube_variable_get('fullscreen');
$variables['autoplay'] = $variables['autoplay'] ? 1 : 1;
$variables['fullscreen'] = $variables['fullscreen'] ? 'true' : 'false';
$variables['wrapper_id'] = 'media_youtube_' . $variables['video_id'] . '_' . $variables['id'];
// For users with JavaScript, these object and embed tags will be replaced
// by an iframe, so that we can support users without Flash.
$variables['output'] = '';
$variables['output'] = <<