function ActiveSWF(ObjectID, WIDTH, HEIGHT, URL) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + WIDTH + '" height="' + HEIGHT + '" border="0" hspace="0" vspace="0" id="' + ObjectID + '">');
	document.write('<param name="SRC" value="' + URL + '">');
	document.write('<param name="SCALE" value="exactfit">');
	document.write('<param name="LOOP" value="true">');
	document.write('<param name="WMODE" value="transparent">');
	document.write('<embed src="' + URL + '" type="application/x-shockwave-flash" width="' + WIDTH + '" height="' + HEIGHT + '" border="0" hspace="0" vspace="0" scale="exactfit" wmode="transparent" loop="true" name="' + ObjectID + '"></embed>');
	document.write('</object>');
}

function ActiveWMV(ObjectID, WIDTH, HEIGHT, URL) {
	document.write('<object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" id="' + ObjectID + '" codebase="https://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" width="' + WIDTH + '" height="' + HEIGHT + '">');
	document.write('<param name="filename" value="' + URL + '">');
	document.write('<param name="autoSize" value="True">');
	document.write('<param name="AutoStart" value="True">');
	document.write('<param name="ShowControls" value="True">');
	document.write('<param name="ShowStatusBar" value="False">');
	document.write('<param name="ShowDisplay" value="False">');
	document.write('<param name="AutoRewind" value="True">');
	document.write('<embed src="' + URL + '" filename="' + URL + '" width="' + WIDTH + '" height="' + HEIGHT + '" autostart="True" showcontrols="True" showstatusbar="False" autosize="true" showdisplay="False" autorewind="True"name="' + ObjectID + '">');
	document.write('</embed>');
	document.write('</object>');
}

function ActiveMOV(WIDTH, HEIGHT, URL) {
	document.write('<embed SRC="' + URL + '" width="' + WIDTH + '" height="' + HEIGHT + '" scale="aspect" border="0" pluginspage="http://www.apple.com/quicktime/download/"></embed>');
}

function ActiveDCR(ObjectID, WIDTH, HEIGHT, URL) {
	document.write('<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=7,0,0,0" id="' + ObjectID + '" width="' + WIDTH + '" height="' + HEIGHT + '">');
	document.write('<param name=src value="' + URL + '"> ');
	document.write('<param name=swpreloadtime value=5>');
	document.write('<embed src="' + URL + '" width="' + WIDTH + '" height="' + HEIGHT + '" swliveconnect="true" autoplay="true" cache="true" loop="false">');
	document.write('</object>');
}

function ActiveDCR8(ObjectID, WIDTH, HEIGHT, URL) {
	document.write('<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0" ID="' + ObjectID + '" width="' + WIDTH + '" height="' + HEIGHT + '">');
	document.write('<param name=src value="' + URL + '">');
	document.write('<param name=swRemote value="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\' ">');
	document.write('<param name=swStretchStyle value=none><PARAM NAME=bgColor VALUE=#FFFFFF>');
	document.write('<embed src="' + URL + '" bgColor=#FFFFFF  width="' + WIDTH + '" height="' + HEIGHT + '" swRemote="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\' " swStretchStyle="none" type="application/x-director" pluginspage="https://www.macromedia.com/shockwave/download/"></embed>');
	document.write('</object>');
}
