function writeMediaPlayerObject(src,width,height)
{
	var srcDef='';
	if(src!=undefined)
		srcDef=src;
	document.write(
		'<OBJECT ID="MediaPlayer" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"\n'+
		'CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"\n'+
		'STANDBY="Loading Microsoft Windows Media Player components..."\n'+
		'TYPE="application/x-oleobject" NAME="MediaPlayer" width="'+width+'" height="'+height+'" class="bordo">\n'+
		'<PARAM NAME="AnimationatStart" VALUE="false">\n'+
		'<PARAM NAME="TransparentatStart" VALUE="false">\n'+
		'<PARAM NAME="ShowControls" VALUE="1">\n'+
		'<PARAM NAME="ShowStatusBar" VALUE="true">\n'+
		'<PARAM NAME="AutoStart" VALUE="true">\n'+      
		'<PARAM NAME="Url" VALUE="'+srcDef+'">\n'+
		'<PARAM NAME="stretchToFit" VALUE="true">\n'+
		'<PARAM NAME="fullScreen" VALUE="false">\n'+
		'<embed src="'+srcDef+'" type="application/x-mplayer2" pluginspage = "http://www.microsoft.com/Windows/mediaplayer/" width="'+width+'" height="'+height+'" id="fPlayer" autostart="true" animationatstart="false" transparentatstart="false" showcontrols="1" showstatusbar="1" name="MediaPlayer"></embed>\n'+
		'</OBJECT>');
}
function writeQuicktime(src,width,height)
{
	var srcDef='';
	if(src!=undefined)
		srcDef=src;
	document.write(
		'<OBJECT ID="Quicktime" CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"\n'+
		'codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="'+width+'" height="'+height+'">\n'+
		'<PARAM NAME="autoplay" VALUE="true">\n'+
		'<PARAM NAME="controller" VALUE="true">\n'+
		'<PARAM NAME="volume" VALUE="100">\n'+
		'<PARAM NAME="ShowStatusBar" VALUE="true">\n'+
		'<PARAM NAME="AutoStart" VALUE="true">\n'+      
		'<PARAM NAME="src" VALUE="'+srcDef+'">\n'+
		'<embed src="'+srcDef+'" pluginspage="http://www.apple.com/quicktime/download/" width="'+width+'" height="'+height+'" id="fPlayer" autoplay="true" controller="true" volume="100" bgcolor="ffffff" name="Quicktime"></embed>\n'+
		'</OBJECT>');
}

function writeFlash(src,width,height)
{
	var srcDef='';
	if(src!=undefined)
		srcDef=src;
	document.write(
		'<OBJECT ID="Flash" CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n'+
		'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+width+'" height="'+height+'">\n'+
		'<PARAM NAME="quality" VALUE="high">\n'+
		'<PARAM NAME="wmode" VALUE="transparent">\n'+
		'<PARAM NAME="movie" VALUE="'+srcDef+'">\n'+
		'<embed src="'+srcDef+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" id="Flash" wmode="transparent"></embed>\n'+
		'</OBJECT>');
}

function writeReal(src,width,height)
{
	var srcDef='';
	if(src!=undefined)
		srcDef=src;
	document.write(
		'<OBJECT ID="Real" CLASSID="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA"\n'+
		'codebase="audio/x-pn-realaudio-plugin" width="'+width+'" height="'+height+'">\n'+
		'<PARAM NAME="autostart" VALUE="true">\n'+
		'<PARAM NAME="controls" VALUE="ImageWindow">\n'+
		'<PARAM NAME="console" VALUE="av">\n'+
		'<PARAM NAME="src" VALUE="'+srcDef+'">\n'+
		'<embed src="'+srcDef+'" type="audio/x-pn-realaudio-plugin" width="'+width+'" height="'+height+'" id="fPlayer"  autostart="true" controls="ImageWindow" console="av" type="audio/x-pn-realaudio-plugin" border="0" name="Real"></embed>\n'+
		'</OBJECT>');
}