// ÇÃ·¡½ÃÆÄÀÏ¿¡ ´ëÇÑ Ã³¸®_ ÃÖ½Å²¨ (ÇÃ·¡½Ã ÆÄÀÏÀÌ Èò¹ÙÅÁÀÏ °æ¿ì)

function flash(c,d,e) {
 var flash_tag = "";
 flash_tag = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
 flash_tag +='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ';
 flash_tag +='WIDTH="'+c+'" HEIGHT="'+d+'" >';
 flash_tag +='<param name="wmode" value="transparent" />';
 flash_tag +='<param name="movie" value="'+e+'">';
 flash_tag +='<param name="AllowScriptAccess" value="always">';
 flash_tag +='<param name="allowNetworking" value="all">';
 flash_tag +='<param name="quality" value="high">';
 flash_tag +='<embed src="'+e+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
 flash_tag +='type="application/x-shockwave-flash"  WIDTH="'+c+'" HEIGHT="'+d+'" wmode="transparent" allowScriptAccess="always"></embed></object>'

 document.write(flash_tag);

}


// 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="wmode" value="transparent" /> ');
	document.write('<param name="AllowScriptAccess" value="always" /> ');
    document.write('<param name="allowNetworking" value="all">');	
    document.write('<param name="quality" value="high">');
    document.write('<embed wmode="transparent" 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 + '" allowScriptAccess="always"></embed>');
    document.write('</object>');
    
    return true;
}

// ÇÃ·¡½ÃÆÄÀÏ¿¡ ´ëÇÑ Ã³¸® 2¹øÂ°
// ÇÃ·¡½ÃÆÄÀÏ¿¡¼­ ÆÄ¶ó¹ÌÅÍ¸¦ ¹Þ°í ÆÄÀÏID¿Í Movie ÆÄ¶ó¹ÌÅÍ°ªÀÌ Æ²¸±¶§
// ÆÄ¶ó¹ÌÅÍ sFileName : ÆÄÀÏÀÌ ÀÖ´Â °æ·Î
//          nWidth    : ÆÄÀÏÀÇ ³ÐÀÌ
//          nHeight   : ÆÄÀÏÀÇ ³ôÀÌ 

function External_Embed_Swf_Param(sFileName,sParam,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 + '?' + sParam + '">'); 
    document.write('<param name="wmode" value="transparent" /> ');
	document.write('<param name="AllowScriptAccess" value="always" /> ');
    document.write('<param name="allowNetworking" value="all">');	
    document.write('<param name="quality" value="high">');  
    document.write('<embed src="' + sFileName + '?' + sParam + '" quality="high" pluginspage="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + nWidth + '" height="' + nHeight + '" wmode="transparent" allowScriptAccess="always"></embed>');
    document.write('</object>');
    
    return true;
}

// ÇÃ·¡½ÃÆÄÀÏ¿¡ ´ëÇÑ Ã³¸® 3¹øÂ°
// ÆÄ¶ó¹ÌÅÍ sFileName : ÆÄÀÏÀÌ ÀÖ´Â °æ·Î
//          nWidth    : ÆÄÀÏÀÇ ³ÐÀÌ
//          nHeight   : ÆÄÀÏÀÇ ³ôÀÌ 
//          sMode     : wmode ¼³Á¤ (transparent/window/opaque)

function External_Embed_Swf_wmode(sFileName,nWidth,nHeight,sMode)
{
  //È®ÀåÀÚ¸¦ È®ÀÎÇÏ¿© Å¸ÀÔ¿¡ ¸Â´Â ºÐ±â
  //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="wmode" value="' + sMode + '" /> ');
	document.write('<param name="AllowScriptAccess" value="always" /> ');
    document.write('<param name="allowNetworking" value="all">');	
    document.write('<param name="quality" value="high">');
    document.write('<embed wmode="' + sMode + '" 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 + '" allowScriptAccess="always"></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="wmode" value="transparent"> ')
	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="0">') 
	document.write('<param name="Volume" value="0">') 
	document.write('<param name="ShowControls" value="1">') 
	document.write('<param name="ShowDisplay" value="0">') 
	document.write('</object>')   
	
	return true;
}

function External_Embed_Movie_nobar(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="wmode" value="transparent"> ')
	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="0">') 
	document.write('<param name="TransparentAtStart" value="0">') 
	document.write('<param name="Volume" value="0">') 
	document.write('<param name="ShowControls" value="1">') 
	document.write('<param name="ShowDisplay" value="0">') 
	document.write('</object>')   
	
	return true;
}

function External_Embed_Movie_nonAuto(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="0">') 
	document.write('<param name="AnimationAtStart" value="0">') 
    document.write('<param name="wmode" value="transparent"> ')
	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="0">') 
	document.write('<param name="TransparentAtStart" value="0">') 
	document.write('<param name="Volume" value="0">') 
	document.write('<param name="ShowControls" value="-1">') 
	document.write('<param name="ShowDisplay" value="0">') 
	document.write('</object>')   
	
	return true;
}

//ÆÄÀÏÀ» ³ªÁß¿¡ ¼³Á¤ÇÑ´Ù.
//ÆÄÀÏÀ» ³ªÁß¿¡ ¼³Á¤ÇÏ´Â ÀÌÀ¯´Â param¿¡¼­ ¼³Á¤ÇÏ¸é ÄÁÆ®·Ñ ÇØÁ¦ÇØµµ ³ªÅ¸±â¶§¹®
function External_Embed_Movie_nonAuto_v2(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(' onmouseover=CtrlDisplay("' + sID + '","over") onmouseout=CtrlDisplay("' + sID + '","out") ') 
	document.write('standby="Loading Microsoft Windows Media Player components...">') 	
	document.write('<param name="AutoStart" value="0">') 
	document.write('<param name="AnimationAtStart" value="0">') 
    document.write('<param name="wmode" value="transparent"> ')
	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="0">') 
	document.write('<param name="TransparentAtStart" value="0">') 
	document.write('<param name="Volume" value="0">') 
	document.write('<param name="ShowControls" value="-1">') 
	document.write('<param name="ShowTracker" value="0">') 
	document.write('</object>')   
	
             document.getElementById(sID).FileName=sFileName;
	return true;
}

// µ¿¿µ»óÆÄÀÏ¿¡ ´ëÇÑ Ã³¸®(asx,asf)
// ÄÁÆ®·Ñ ¾øÀ½
// ÆÄ¶ó¹ÌÅÍ sFileName : ÆÄÀÏÀÌ ÀÖ´Â °æ·Î
//          nWidth    : ÆÄÀÏÀÇ ³ÐÀÌ
//          nHeight   : ÆÄÀÏÀÇ ³ôÀÌ
//          sID       : ÅÂ±×ID

function External_Embed_Movie_NotControl(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="wmode" value="transparent"> ')
	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="2">') 
	document.write('<param name="TransparentAtStart" value="0">') 
	document.write('<param name="Volume" value="0">') 
	document.write('<param name="ShowControls" value="0">') 
	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;
}

function CtrlDisplay(sID, Mode)
{
  if (Mode == 'over') {
    document.getElementById(sID).ShowControls = -1;
  }
  else {
    document.getElementById(sID).ShowControls = 0;
  }
}


function External_Embed_Swf_uhakshop(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 + "' id='inbanner_3'>")
    document.write("<param name='movie' value='" + sFileName + "'>")  
    document.write("<param name='wmode' value='transparent' /> ")
	document.write('<param name="AllowScriptAccess" value="always" /> ');
    document.write('<param name="allowNetworking" value="all">');	
    document.write("<param name='quality' value='high'>") 
    document.write("<embed 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 + "' wmode='transparent' allowScriptAccess='always'></embed>")
    document.write("</object>")
    
    return true;
}

function External_Embed_Swf_mega(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 + "' id='inbanner_5'>")
    document.write("<param name='movie' value='" + sFileName + "'>")  
    document.write("<param name='quality' value='high'>") 
	document.write('<param name="AllowScriptAccess" value="always" /> ');
    document.write('<param name="allowNetworking" value="all">');	
	document.write("<param name='wmode' value='transparent' /> ");
    document.write("<embed 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 + "' allowScriptAccess='always'></embed>")
    document.write("</object>")
    
    return true;
}

function flashObj(URL,SizeX,SizeY,LnkId,Frm,Flag) // quick
{
	// À¯ÇÐ´åÄÄ ¸®´º¾ó °ü·Ã ¿ÜºÎ ¾÷Ã¼°¡ ¸¸µç Function
	// 2009-03-02 
    document.write('            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
    document.write('                    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
    document.write('                    width="'+SizeX+'" height="'+SizeY+'"  id="'+LnkId+'" align="middle">');
    document.write('            <param name="movie"     value="'+URL+'" />');
    document.write('            <param name="quality"   value="high" />');
    if ( Flag == null || Flag != 'N' )
    {
        document.write('        <param name="wmode"     value="transparent"/>');
    }
	document.write('			<param name="allowScriptAccess" value="always"/> ');
	document.write('			<param name="base" value="." />');
    document.write('            <embed base="." src="'+URL+'" quality="high" width="'+SizeX+'" height="'+SizeY+'"  align="middle" ');
	 if ( Flag == null || Flag != 'N' )
    {
        document.write('       		wmode="transparent" ');
    }
    document.write('           		type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" swLiveConnect=true name="'+LnkId+'"  />');
    document.write('            </embed></object>');
	if ( Frm == 'Y' ) { // form ÅÂ±× µé¾î°¡´Â ÆäÀÌÁö¿¡ Àû¿ë
		eval("window." + LnkId + " = document.forms[0]."+ LnkId +"; ");
	}
}


function flashObj2(URL,SizeX,SizeY,LnkId,Flag) // quick
{
	// À¯ÇÐ´åÄÄ ¸®´º¾ó °ü·Ã ¿ÜºÎ ¾÷Ã¼°¡ ¸¸µç Function
	// 2009-03-02 
    document.write('            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
    document.write('                    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
    document.write('                    width="'+SizeX+'" height="'+SizeY+'"  id="'+LnkId+'" align="middle">');
    document.write('            <param name="movie"     value="'+URL+'" />');
    document.write('            <param name="quality"   value="high" />');
    if ( Flag == null || Flag != 'N' )
    {
        document.write('        <param name="wmode"     value="transparent"/>');
    }
	document.write('			<param name="allowScriptAccess" value="always"/> ');
	document.write('			<param name="base" value="." />');
    document.write('            <embed base="." src="'+URL+'" quality="high" width="'+SizeX+'" height="'+SizeY+'"  align="middle" ');
	 if ( Flag == null || Flag != 'N' )
    {
        document.write('       		wmode="transparent" ');
    }
    document.write('           		type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" swLiveConnect=true name="'+LnkId+'"  id="'+LnkId+'" />');
    document.write('            </embed></object>');

}
