//Show file flash Edit 13/11/2006
function bOpenStatistics(b_encode){	
	detail = window.open(b_encode, 'NewWinOpen', 'toolbar=yes,location=yes,directories=yes,status=yes, menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,height=600, width=800');
	detail.focus();
	return;
}

function ShowFlash(FlashIDName, FlashFileName, FlashWidth, FlashHeight, DNSSetting, WMODESetting, FlashBGColor, QSetting, FlashAlign)
{
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('CODEBASE="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,0,0" ');
	document.write(' ID="'+FlashIDName+'" WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" ALIGN="'+FlashAlign+'">');
	document.write('<PARAM NAME="movie" VALUE="'+ FlashFileName +'">');
	document.write('<PARAM NAME="quality" VALUE="'+QSetting+'">');
	document.write('<PARAM NAME="bgcolor" VALUE="'+FlashBGColor+'">');
	document.write('<PARAM NAME="wmode" VALUE="'+WMODESetting+'">');
	document.write('<PARAM NAME="allowScriptAccess" VALUE="'+DNSSetting+'">');
	document.write('<EMBED SRC="'+ FlashFileName +'"  NAME="'+FlashIDName+'"');
	document.write(' WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" QUALITY="'+QSetting+'" BGCOLOR="'+FlashBGColor+'"');
	document.write(' ALLOWSCRIPTACCESS="'+DNSSetting+'" ALIGN="'+FlashAlign+'" WMODE="'+WMODESetting+'" TYPE="application/x-shockwave-flash" ');
	document.write(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" >');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}
function ShowFlash_2(FlashIDName, FlashFileName, FlashWidth, FlashHeight, DNSSetting, WMODESetting, QSetting, FlashAlign)
{
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('CODEBASE="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,0,0" ');
	document.write(' ID="'+FlashIDName+'" WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" ALIGN="'+FlashAlign+'">');
	document.write('<PARAM NAME="movie" VALUE="'+ FlashFileName +'">');
	document.write('<PARAM NAME="quality" VALUE="'+QSetting+'">');
	//document.write('<PARAM NAME="bgcolor" VALUE="'+FlashBGColor+'">');  BGCOLOR="'+FlashBGColor+'"
	document.write('<PARAM NAME="wmode" VALUE="'+WMODESetting+'">');
	document.write('<PARAM NAME="allowScriptAccess" VALUE="'+DNSSetting+'">');
	document.write('<EMBED SRC="'+ FlashFileName +'"  NAME="'+FlashIDName+'"');
	document.write(' WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" QUALITY="'+QSetting+'" ');
	document.write(' ALLOWSCRIPTACCESS="'+DNSSetting+'" ALIGN="'+FlashAlign+'" WMODE="'+WMODESetting+'" TYPE="application/x-shockwave-flash" ');
	document.write(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" >');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}
function ShowMedia(Value,Width, Height)
{
	document.write('<OBJECT classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="Player" WIDTH="' + Width + '" HEIGHT="' + Height + '" ');
	document.write('<PARAM name="URL" value="' + Value +'" >');
	document.write('<PARAM NAME="rate" VALUE="1">');
	document.write('<PARAM NAME="ShowControls" VALUE="1">');
	document.write('<PARAM name="balance" value="0">');
	document.write('<PARAM name="currentPosition" value="1">');
	document.write('<PARAM name="defaultFrame" >');
	document.write('<PARAM name="playCount" value="2">');
	document.write('<PARAM name="autoStart" value="-1">');
	document.write('<PARAM name="currentMarker" value="0">');
	document.write('<PARAM name="invokeURLs" value="-1">');
	document.write('<PARAM name="baseURL" value>');
	document.write('<PARAM name="volume" value="500">');	
	document.write('<PARAM name="mute" value="0">');
	document.write('<PARAM name="uiMode" value="full">');
	document.write('<PARAM name="stretchToFit" value="-1">');
	document.write('<PARAM name="windowlessVideo" value="1">');
	document.write('<PARAM name="enabled" value="-1">');	
	document.write('<PARAM name="enableContextMenu" value="0">');
	document.write('<PARAM name="fullScreen" value="0">');
	document.write('<PARAM name="SAMIStyle" value>');
	document.write('<PARAM name="SAMILang" value>');
	document.write('<PARAM name="SAMIFilename" value>');
	document.write('<PARAM name="captioningID" value>');
	document.write('<PARAM name="enableErrorDialogs" value="0">');
	document.write('<embed autostart="true" loop="true" height="'+ Height +'" width="'+ Width +'" src="'+ Value +'"></embed>');	
	document.write('</OBJECT>');
}
