
function fFlash_Activate(argSRC, argWIDTH, argHEIGHT, argID, argWMODE) {
	var contents = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="' + argID  + '" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + argWIDTH + '" height="' +argHEIGHT +'">';
	contents += '<param name="menu" value="false">';
	if (typeof(argWMODE) == "undefined") {
		contents += '<param name="wmode" value="transparent">';
	} else {
		contents += '<param name="wmode" value="' + argWMODE + '">';
	}
	contents += '<param name="movie" value="' + argSRC + '">';
    contents += '<param name="quality" value="high">';
    contents += '<embed src="' + argSRC + '" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" ';
	if (typeof(argWMODE) == "undefined") {
		contents += ' wmode="transparent" ';
	} else {
		contents += ' wmode="' + argWMODE + '" ';
	}
	contents += ' type="application/x-shockwave-flash" width="' + argWIDTH + '" height="' + argHEIGHT +'"></embed></object>';
	document.write(contents);
}


function fFlash_Activate2(argSRC, argWIDTH, argHEIGHT, argID, argWMODE) {
	var contents = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="' + argID  + '" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + argWIDTH + '" height="' +argHEIGHT +'">';
	contents += '<param name="menu" value="false">';
	if (typeof(argWMODE) == "undefined") {
		contents += '<param name="wmode" value="transparent">';
	} else {
		contents += '<param name="wmode" value="' + argWMODE + '">';
	}
	contents += '<param name="movie" value="' + argSRC + '">';
    contents += '<param name="quality" value="high">';
    contents += '<embed src="' + argSRC + '" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" ';
	if (typeof(argWMODE) == "undefined") {
		contents += ' wmode="transparent" ';
	} else {
		contents += ' wmode="' + argWMODE + '" ';
	}
	contents += ' type="application/x-shockwave-flash" width="' + argWIDTH + '" height="' + argHEIGHT +'"></embed></object>';
	document.write(contents);
}


function fFlash_Activate3(argSRC, argWIDTH, argHEIGHT, argID, argWMODE) {
	var contents = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="' + argID  + '" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + argWIDTH + '" height="' +argHEIGHT +'">';
	contents += '<param name="menu" value="false">';
	if (typeof(argWMODE) == "undefined") {
		contents += '<param name="wmode" value="transparent">';
	} else {
		contents += '<param name="wmode" value="' + argWMODE + '">';
	}
	contents += '<param name="movie" value="' + argSRC + '">';
    contents += '<param name="allowScriptAccess" value="sameDomain">';
    contents += '<param name="allowFullScreen" value="false">';
    contents += '<param name="bgcolor" value="#000000">';
    contents += '<param name="quality" value="high">';
    contents += '<embed src="' + argSRC + '" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" allowScriptAccess="sameDomain" allowFullScreen="false"';
	if (typeof(argWMODE) == "undefined") {
		contents += ' wmode="transparent" ';
	} else {
		contents += ' wmode="' + argWMODE + '" ';
	}
	contents += ' type="application/x-shockwave-flash" width="' + argWIDTH + '" height="' + argHEIGHT +'"></embed></object>';
	document.write(contents);
}


function fPlayer_Activate(argWIDTH, argHEIGHT, argBASE_WORK_URL, argATT_PLAYER_NAME) {

	var contents = "<OBJECT id='MediaPlayer' type='application/x-oleobject' standby='Loading Microsoft?Windows?Media Player components...'"
		contents += " width= " + argWIDTH + " height= " + argHEIGHT + " classid='CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95'>" 
		contents += " <PARAM NAME='FileName' VALUE=" + argBASE_WORK_URL + "/" + argATT_PLAYER_NAME + "> "
		contents += " <PARAM NAME='AnimationAtStart' VALUE='false'> "
		contents += " <PARAM NAME='TransparentAtStart' VALUE='true'> "
		contents += " <PARAM NAME='AutoStart' VALUE='true'> "
		contents += " <PARAM NAME='Autosize' VALUE='false'> "
		contents += " <PARAM NAME='AutoRewind' VALUE='true'> "
		contents += " <PARAM NAME='ShowDisplay' VALUE='false'> "
		contents += " <PARAM NAME='ShowStatusBar' VALUE='false'> "
		contents += " <PARAM NAME='ShowControls' VALUE='false'> "
		contents += " <PARAM NAME='ShowAudioControls' VALUE='false'> "
		contents += " <PARAM NAME='ShowTracker' VALUE='false'> "
		contents += " <PARAM NAME='ShowPositionControls' VALUE='0'> "
		contents += " <PARAM NAME='EnableContextMenu' VALUE='false'> "
		contents += " </object> ";
		document.write(contents);
}
