/*--- Avanquest WebEasy External Script ---*/

/* -------------------------------------------- */
/* Embed MS Windows Video File                  */
/* -------------------------------------------- */

function weAddWindowsVideo(url,dmx,dmy,ply,mnu,dsp,asr,aud,lop,spd,rmn,enb) 
{ 
	if (IE) 
	{ 
		document.writeln('<object classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6"');
	} 
	else 
	{ 
		document.writeln('<object type="application/x-ms-wmp" data="' + url + '"');
	} 
	document.writeln( 
	' width="' + dmx +'" height="' + dmy + '" standby="Loading Media...">' + 
	'  <param name="URL" value="' + url + '">' + 
	'  <param name="autoStart" value="' + ply + '">' + 
	'  <param name="uiMode" value="' + mnu + '">' + 
	'  <param name="fullScreen" value="' + dsp + '">' + 
	'  <param name="stretchToFit" value="' + asr +'">' + 
	'  <param name="mute" value="' + aud +'">' + 
	'  <param name="playCount" value="' + lop +'">' + 
	'  <param name="rate" value="' + spd + '">' + 
	'  <param name="enableContextMenu" value="' + rmn + '">' + 
	'  <param name="enabled" value="' + enb + '">' + 
	'  Windows Media Player 9 (or above) is required to view this clip.' + 
	'  It can be downloaded from' + 
	'  <a href="http://www.microsoft.com/windows/windowsmedia/9series/player.aspx">' + 
	'  the Microsoft website</a>.' + 
	'</object>'); 
}

/* -------------------------------------------- */
/* Embed Adobe PDF Document                     */
/* -------------------------------------------- */

function weAddPdfView(url, dmx, dmy)
{
	document.writeln(
    '<object classid="CA8A9780-280D-11CF-A24D-444553540000"' +
    ' width="'+dmx+'" height="'+dmy+'">' +
    '  <param name="src" value="'+url+'">' +
    '    <embed src="' + url + '" type="application/pdf"' +
    '     width="'+dmx+'" height="'+dmy+'"></embed>' +
	'	 <noembed><a href="' + url + '">View</a></noembed>' + 
    '</object>');
}



/*--- EndOfFile ---*/
