	//IE¼³°è º¯°æÀ¸·Î ÀÎÇÑ Ã³¸® ½ºÅ©¸³Æ® Ãß°¡, ¹ÚÁ¤Çö, date : 06-04-17

	//wmode °ªÀÌ ¾øÀ»°æ¿ì È£ÃâµÇ´Â ÇÔ¼ö
	function InteractiveFlashControl(FlashId, FlashSrc, FlashWidth, FlashHight, FlashVars)
	{
		InteractiveFlashControl(FlashId, FlashSrc, FlashWidth, FlashHight, FlashVars, "");
	}

	//Flash Ã³¸® ÇÔ¼ö
	function InteractiveFlashControl(FlashId, FlashSrc, FlashWidth, FlashHight, FlashVars, FlashWmode)
	{
		var strFlash;
		strFlash = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='" + FlashWidth +  "' height='" + FlashHight + "' id='" + FlashId + "' ALIGN=''>";
		strFlash += "<param name='movie' value='" + FlashSrc + "'>";
		strFlash += "<param name='FlashVars' value='" + FlashVars + "'>";
		strFlash += "<param name='quality' value='high'>";
		strFlash += "<param name='wmode' value='" + FlashWmode + "'>";
		strFlash += "<embed src='" + FlashSrc + "?" + FlashVars + "' quality='high' NAME='topmenu' ALIGN='' pluginspage='https://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + FlashWidth +  "' height='" + FlashHight + "'></embed>";
		strFlash += "</object>";
		document.write( strFlash);
	}

	//MediaPlayer Ã³¸®ÇÔ¼ö(ÀÚ¸· ¾øÀ» °æ¿ì)
	function InteractiveMediaPlayerControl(Id, MediaSrc, MediaWidth, MediaHeight, AnimationAtStart, AutoSize, AutoStart, ClickToPlay, DisplayBackColor, EnableContextMenu, ShowTracker, ShowStatusBar, Volume, ClassId)
	{
		var strMedia;
		strMedia = "<object id='" + Id + "'";
		strMedia += " CLASSID='"+ ClassId +"' ";
		strMedia += " STANDBY='loading windows media player components...' ";
		strMedia += " TYPE='application/x-oleobject'  ";
		strMedia += " CODEBASE='https://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=6,4,7,1112'  ";
		strMedia += " width='" + MediaWidth + "' height='" + MediaHeight + "'> ";
		strMedia += "  <param name='AnimationAtStart' value='" + AnimationAtStart + "'> ";
		strMedia += "  <param name='AutoResize' value='0'> ";
		strMedia += "  <param name='AutoSize' value='" + AutoSize + "'> ";
		strMedia += "  <param name='AutoStart' value='" + AutoStart + "'> ";
		strMedia += "  <param name='ClickToPlay' value='" + ClickToPlay + "'> ";
		strMedia += "  <param name='DisplayBackColor' value='" + DisplayBackColor + "'> ";
		strMedia += "  <param name='EnableContextMenu' value='" + EnableContextMenu + "'> ";
		strMedia += "  <param name='Filename' value='" + MediaSrc + "'> ";	//classID¿¡ µû¶ó ¿øÇÏ´Â URL(Filename) Parameter ¸í ´Ù¸§
		strMedia += "  <param name='URL' value='" + MediaSrc + "'> ";		//classID¿¡ µû¶ó ¿øÇÏ´Â URL(Filename) Parameter ¸í ´Ù¸§
		strMedia += "  <param name='ShowTracker' value='" + ShowTracker + "'> ";
		strMedia += "  <param name='ShowStatusBar' value='" + ShowStatusBar + "'> ";
		strMedia += "  <param name='Volume' value='" + Volume + "'> ";
		strMedia += "  <param name='stretchToFit' value='true'> ";
		strMedia += "</object> ";
		document.write( strMedia);
	}

	//MediaPlayer Ã³¸®ÇÔ¼ö(ÀÚ¸· Æ÷ÇÔ½Ã)
	function InteractiveMediaPlayerControlSMI(Id, MediaSrc, MediaWidth, MediaHeight, AnimationAtStart, AutoStart, ClickToPlay, Volume, uiMode, ClassId, captioningID, SAMIFileName)
	{
		var strMedia;
		strMedia = "<object id='" + Id + "'";
		strMedia += " CLASSID='"+ ClassId +"' ";
		strMedia += " STANDBY='loading windows media player components...' ";
		strMedia += " TYPE='application/x-oleobject'  ";
		strMedia += " CODEBASE='https://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=6,4,7,1112'  ";
		strMedia += " width='" + MediaWidth + "' height='" + MediaHeight + "'> ";
		strMedia += "  <param name='AnimationAtStart' value='" + AnimationAtStart + "'> ";
		strMedia += "  <param name='AutoStart' value='" + AutoStart + "'> ";
		strMedia += "  <param name='ClickToPlay' value='" + ClickToPlay + "'> ";
		strMedia += "  <param name='Filename' value='" + MediaSrc + "'> ";		//classID¿¡ µû¶ó ¿øÇÏ´Â URL(Filename) Parameter ¸í ´Ù¸§
		strMedia += "  <param name='URL' value='" + MediaSrc + "'> ";			//classID¿¡ µû¶ó ¿øÇÏ´Â URL(Filename) Parameter ¸í ´Ù¸§
		strMedia += "  <param name='Volume' value='" + Volume + "'> ";
		strMedia += "  <param name='uiMode' value='" + uiMode + "'> ";			//Play ÄÁÆ®·Ñ ÀüºÎ ¼û±è : none, Ç¥½Ã : full
		strMedia += "  <param name='captioningID' value='" + captioningID + "'> ";	//´ëºÎºÐ cation
		strMedia += "  <param name='SAMIFileName' value='" + SAMIFileName + "'> ";	//ÀÚ¸·ÆÄÀÏ .smi ¸í
		strMedia += "</object> ";
		document.write( strMedia);
	}

	//ActiveX ÄÁÆ®·Ñ Ã³¸® ÇÔ¼ö
	function InteractiveActiveXControl(Id, ClassId, CodeBase)
	{
		var strActiveX;

		strActiveX = "<OBJECT ID='" + Id + "' WIDTH='0' HEIGHT='0' CLASSID='" + ClassId + "' codebase='" + CodeBase + "'></OBJECT>";	
		document.write( strActiveX);
	}

	function control_mplayer() {
	var oPlayer = document.getElementById( "MediaPlayer1" );
	
	// Å°º¸µå 'm' Å°´Â ¼Ò¸®Á¦°Å
	if(event.keyCode == '77') {
		if(oPlayer.settings.mute == true) {
			oPlayer.settings.mute = false;
		} else {
			oPlayer.settings.mute = true;
		}
	}
	// Å°º¸µå 'f' Å°´Â ÀüÃ¼È­¸é
	if(event.keyCode == '70') {
		if(oPlayer.playState == 2 || document.MediaPlayer1.playState == 3) {
			if(oPlayer.fullScreen == false) {
				oPlayer.fullScreen = true;
			}
		}
	}
	// Å°º¸µå 'esc' Å°´Â ¿ø·¡È­¸é
	if(event.keyCode == '27') {
		if(oPlayer.fullScreen == true) {
			oPlayer.fullScreen = false;
		}
	}
	// Å°º¸µå 'p' Å°´Â ¸ØÃã, Àç»ý
	if(event.keyCode == '80') {
		if(oPlayer.playState == 3) {
			oPlayer.controls.pause();
		} else { 
			oPlayer.controls.play();
		}
	}
	// Å°º¸µå 's' Å°´Â ¸ØÃã
	if(event.keyCode == '83') {
		oPlayer.controls.stop();
	}
	// Å°º¸µå 'u' Å°´Â º¼·ýÅ©°Ô
	if(event.keyCode == '85') {
		if(oPlayer.settings.volume < 100) {
			oPlayer.settings.volume++;
		}
	}
	// Å°º¸µå 'd' Å°´Â º¼·ýÀÛ°Ô
	if(event.keyCode == '68') {
		if(oPlayer.settings.volume > 0) {
			oPlayer.settings.volume--;
		}
	}
}


