// Object,Embed ÅÂ±×¿¡ ´ëÇÑ Ã³¸®
// À§ÀÇ ÅÂ±×°¡ ¾²ÀÌ´Â°÷Àº ¿ÜºÎÆÄÀÏ(.js)·Î include½ÃÄÑ¼­ »ç¿ëÇÏ°í document.write('½ºÅ©¸³Æ®')¸¦ »ç¿ëÇÏ¿© ½ºÅ©¸³Æ®¸¦ °¨½Ñ´Ù.

// ÇÊ¿äÇÑ ÆäÀÌÁö¿¡
// <script language="javascript" src="/common/js/External_Embed.js"></script>¸¦ º¹»çÇØ¼­ ³ÖÀºÈÄ ¾Æ·¡ÀÇ ÇÔ¼ö¸¦ »ç¿ëÇÑ´Ù.

// ÇÃ·¡½ÃÆÄÀÏ¿¡ ´ëÇÑ Ã³¸®
// ÆÄ¶ó¹ÌÅÍ sFileName : ÆÄÀÏÀÌ ÀÖ´Â °æ·Î
//          nWidth    : ÆÄÀÏÀÇ ³ÐÀÌ
//          nHeight   : ÆÄÀÏÀÇ ³ôÀÌ 

function External_Embed_Swf(sFileName,nWidth,nHeight)
{
  //È®ÀåÀÚ¸¦ È®ÀÎÇÏ¿© Å¸ÀÔ¿¡ ¸Â´Â ºÐ±â
  //var strLen=sFileName.length; 
  //var nIndex=sFileName.lastIndexOf(".");
  //var sFileType=sFileName.substring(nIndex+1,strLen);
    
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + nWidth + '" height="' + nHeight + '">')
    document.write('<param name="movie" value="' + sFileName + '">')  
    document.write('<param name=quality value=high>')  
    document.write('<param name="WMode" value="Transparent">')  
    document.write('<embed id= src="' + sFileName + '" quality=high pluginspage="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + nWidth + '" height="' + nHeight + '"></embed>')
    document.write('</object>')
    
    return true;
}

// µ¿¿µ»óÆÄÀÏ¿¡ ´ëÇÑ Ã³¸®(asx,asf)
// ÆÄ¶ó¹ÌÅÍ sFileName : ÆÄÀÏÀÌ ÀÖ´Â °æ·Î
//          nWidth    : ÆÄÀÏÀÇ ³ÐÀÌ
//          nHeight   : ÆÄÀÏÀÇ ³ôÀÌ
//          sID       : ÅÂ±×ID

function External_Embed_Movie(sFileName,nWidth,nHeight,sID)
{  
  
    document.write('<object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"') 
	document.write('width="' + nWidth +'" height="' + nHeight + '" id="' + sID + '" type="application/x-oleobject"') 
	document.write('standby="Loading Microsoft Windows Media Player components...">') 
	document.write('<param name="Filename" value="' + sFileName + '">') 
	document.write('<param name="AutoStart" value="1">') 
	document.write('<param name="AnimationAtStart" value="0">') 
	document.write('<param name="BufferingTime" value="5">') 
	document.write('<param name="ClickToPlay" value="-1">') 
	document.write('<param name="DisplayBackColor" value="0">') 
	document.write('<param name="DisplayForeColor" value="16777215">') 
	document.write('<param name="EnableContextMenu" value="0">') 	
	document.write('<param name="ShowStatusBar" value="1">') 
	document.write('<param name="TransparentAtStart" value="1">') 
	document.write('<param name="Volume" value="0">') 
	document.write('<param name="ShowControls" value="0">') 
	document.write('<param name="WMode" value="Transparent">') 
	document.write('<param name="ShowDisplay" value="0">') 
	document.write('</object>')   
	
	return true;
}

// OWC¿¡ ´ëÇÑ Ã³¸®(Office Web Components)
// ÆÄ¶ó¹ÌÅÍ nWidth    : ÄÁÆ®·ÑÀÇ ³ÐÀÌ
//          nHeight   : ÄÁÆ®·ÑÀÇ ³ôÀÌ
//          sID       : ÅÂ±×ID

function External_Embed_Owc(nWidth,nHeight,sID)
{
    document.write('<OBJECT CLASSID="clsid:0002E500-0000-0000-C000-000000000046" id=' + sID + ' width="' + nWidth + '" height="' + nHeight + '" VIEWASTEXT>')
    document.write('</OBJECT>')
    
    return true;
}