function writeMovie(url, autostart)
{
	document.write('<object id="mediaplayer" classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"');
	document.write(' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=6,4,7,1112"');
	document.write(' standby="loading microsoft windows media player components..." type="application/x-oleobject">');
  document.write('<param name="filename" value="'+url+'">');
  document.write('<param name="showcontrols" value="1">');
  document.write('<param name="showdisplay" value="0">');
  document.write('<param name="showstatusbar" value="1">');
  document.write('<param name="autosize" value="1">');
  document.write('<param name="autostart" value="'+autostart+'">');
  document.write('<param name="autoplay" value="'+autostart+'">');
  document.write('<embed type="application/x-mplayer2"');
  document.write(' pluginspage="http://www.microsoft.com/windows/windowsmedia/download/alldownloads.aspx/"');
	document.write(' filename="'+url+'"');
  document.write(' src="'+url+'"');
  document.write(' name=mediaplayer');
  document.write(' showcontrols=0');
  document.write(' showdisplay=0');
  document.write(' showstatusbar=1');
  document.write(' autostart='+autostart);
  document.write(' autoplay='+autostart);
  document.write('>');
  document.write('</embed>');
	document.write('</object>');
	document.write('<noembed>Your browser does not support embedded video.<br /><a href="'+url+'">View the video</a></noembed>');
}

function writeAudio(url, autostart)
{
	writeMovie(url, autostart);
}
function writeYouTubeVideo(url)
{
	document.write('<object width="425" height="344">');
	document.write('<param name="movie" value="'+url+'">');
	document.write('<embed src="'+url+'" width="425" height="344"></embed>');
	document.write('</object>');
	document.write('<noembed>Your browser does not support embedded video.<br /><a href="'+url+'">View the video</a></noembed>');
}