function embedPlayer(id, oggVideo, h264Video, width, height)
{
	if (false && oggVideo && navigator.mimeTypes["video/ogg"])
	{
		var videoElement = "<video src=\"" + oggVideo + "\" controls=\"controls\" width=\"" + width + "\" heigth=\"" + height + "\"></video>";
		var element = document.getElementById(id);
		element.innerHTML = videoElement;
	}
	else
	{
		var s1 = new SWFObject('/javascript/mediaplayer/player.swf', 'player', width, 24 + height, '9');
		s1.addParam('allowfullscreen','true');
		s1.addParam('allowscriptaccess','always');
		s1.addParam('flashvars', 'file=' + h264Video);
		s1.write(id);
	}
}

