/*--- Avanquest WebEasy External Script ---*/

/* -------------------------------------------- */
/* Embed Video from YouTube.com                 */
/* -------------------------------------------- */

function weAddYouTubeVideo(vid, dmx, dmy, ply) 
{ 
  var url = 'http://www.youtube.com/v/' + vid;
  if (ply) url += '&autoplay='+ply;
  document.writeln( 
    '<object width="' + dmx + '" height="' + dmy + '">' + 
    '  <param name="movie" value="' + url + '">' + 
    '  <param name="wmode" value="transparent">' + 
    '    <embed src="' + url + '"' + 
    '     type="application/x-shockwave-flash" wmode="transparent"' + 
    '     width="' + dmx + '" height="' + dmy + '"></embed>' + 
    '</object>'); 
} 



/* -------------------------------------------- */
/* Embed MS Windows Audio File                  */
/* -------------------------------------------- */

function weAddWindowsAudio(url,dmx,dmy,ply,lop,mnu,rmn,enb)
{
	if (IE)
	{
		document.writeln('<object classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6"');
	}
	else
	{
		document.writeln('<object type="video/x-ms-asf-plugin" data="' + url + '"');
		dmy=dmy+8
	}
	document.writeln(
	' width="' + dmx +'" height="' + dmy + '">' +
	'  <param name="URL" value="' + url + '">' +
	'  <param name="autoStart" value="' + ply + '">' +
	'  <param name="playCount" value="' + lop +'">' +
	'  <param name="uiMode" value="' + mnu + '">' +
	'  <param name="enableContextMenu" value="' + rmn + '">' +
	'  <param name="enabled" value="' + enb + '">' +
	'  Windows Media Player 9 is required to play this clip.' +
	'  It can be downloaded from' +
	'  <a href="http://www.microsoft.com/windows/windowsmedia/9series/player.aspx">' +
	'  the Microsoft web site</a>.' +
	'</object>');
}




/*--- EndOfFile ---*/
