var NS4;
var IE4;

if (document.all)
{
    IE4 = true;
    NS4 = false;
}
else
{
    IE4 = false;
    NS4 = true;
}
isWin = (navigator.appVersion.indexOf("Win") != -1)
 
 
/****************************************************************************
	F_viewSwf - ´Ü¼ø FlashÀÏ °æ¿ì
*****************************************************************************	
	- width		: °¡·ÎÅ©±â
	- height	: ¼¼·ÎÅ©±â
	- wmode	: Åõ¸í, Àý´ëÀ§Ä¡µî ·¹ÀÌ¾îÀÇ ±â´É 
	- url			: ÇÃ·¡½¬ ÆÄÀÏÀÇ °æ·Î
*****************************************************************************/
function F_viewSwf(width, height, wmode, url){
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
	document.write("		codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ");
	document.write("		width='"+width+"' height='"+height+"' align='middle'>");
	document.write("	<param name='allowScriptAccess' value='always' /> ");
	document.write("	<param name='movie'				value='"+url+"' /> ");
	document.write("	<param name='quality'			value='high' /> ");
	document.write("	<param name='wmode'				value='"+wmode+"'> ");
	document.write("	<embed src='"+url+"' quality='high' width='"+width+"' height='"+height+"' align='middle' ");
	document.write("		allowScriptAccess='always' type='application/x-shockwave-flash' ");
	document.write("		pluginspage='https://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}


/*****************************************************************************
	F_viewSwf02 - Flash flashVars °ª Á¸ÀçÇÒ °æ¿ì
******************************************************************************
	- width		: °¡·ÎÅ©±â
	- height	: ¼¼·ÎÅ©±â
	- wmode	: Åõ¸í, Àý´ëÀ§Ä¡µî ·¹ÀÌ¾îÀÇ ±â´É 
	- url			: ÇÃ·¡½¬ ÆÄÀÏÀÇ °æ·Î
	- fvalues	: ÇÃ·¡½¬¿¡°Ô º°µµÀÇ °ªÀ» ´øÁ® ÁÖ¾î¾ß ÇÒ °æ¿ì
*****************************************************************************/
function F_viewSwf02(width, height, wmode, url, fvalues){
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
	document.write("		codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ");
	document.write("		width='"+width+"' height='"+height+"' align='middle'>");
	document.write("	<param name='allowScriptAccess' value='always' /> ");
	document.write("	<param name='movie'				value='"+url+"' /> ");
	document.write("	<param name='quality'			value='high' /> ");
	document.write("	<param name='wmode'				value='"+wmode+"'> ");
	document.write("	<param name='flashVars'			value='"+fvalues+"'/> ");  
	document.write("	<embed src='"+url+"' quality='high' width='"+width+"' height='"+height+"' align='middle' ");
	document.write("		allowScriptAccess='always' type='application/x-shockwave-flash' ");
	document.write("		pluginspage='https://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}


/*******************************************************************************************************************************************
	F_viewSwf03 - ¿©·¯ ÆÄ¶ó¹ÌÅÍ Á¸ÀçÇÒ°æ¿ì 
******************************************************************************************************************************************
	- width		: °¡·ÎÅ©±â
	- height	: ¼¼·ÎÅ©±â
	- idname	: ¿ÀºêÁ§Æ®¿¡ ¾ÆÀÌµð °ªÀÌ ÇÊ¿äÇÒ °æ¿ì 
	- obname	: ¿ÀºêÁ§Æ® ³×ÀÓÀÌ ÇÊ¿äÇÒ °æ¿ì
	- allowscriptaccess	: ½ºÅ©¸³Æ® Á¦¾îÁ¤º¸ (¿¹ : sameDomain) 
	- quality	: play µÇ´Â µ¿¾È »ç¿ëµÉ anti-aliasingÀÇ ·¹º§À» ¼³Á¤ (¿¹ : low | high | autolow | autohigh | best)
	- wmode	: Åõ¸í, Àý´ëÀ§Ä¡µî ·¹ÀÌ¾îÀÇ ±â´É 
	- scale		: WIDTH ¿Í HEIGHT °ªÀÌ ÆÛ¼¾Æ®·Î ÁöÁ¤µÇ¾î ÀÖ´Â °æ¿ì, movie°¡ ºê¶ó¿ìÀú windowÀÇ ¾î´À °÷¿¡ À§Ä¡ÇÒ °ÍÀÎÁö ¼³Á¤ 
			¿¹) showall  ¿øº» È­¸éºñÀ²ÀÌ Àû¿ëµÇ´Â Æ¯Á¤ ¿µ¿ª¾È¿¡ movie ÀüÃ¼¸¦ À§Ä¡. µÚÆ²¸²Àº ¹ß»ýÇÏÁö ¾ÊÀ¸¸ç, movieÀÇ µÎ ºÎºÐÀÇ °æ°è¼±ÀÌ ³ªÅ¸³² 
				 noborder ¿øº» È­¸éºñÀ²ÀÌ Àû¿ëµÇ´Â Æ¯Á¤ ¿µ¿ªÀ» Ã¤¿ì±â À§ÇØ movieÀÇ Å©±â¸¦ Á¶Àý. µÚÆ²¸²Àº ¹ß»ýÇÏÁö ¾ÊÀ¸¸ç, movieÀÇ ÀÏºÎ°¡ Â©·Á ³ª°¨ 
				 exactfit Æ¯Á¤ ¿µ¿ª¿¡ ÀüÃ¼°¡ º¸¿©Áöµµ·Ï ¸¸µë. ¿øº» È­¸éºñÀ²¿¡ »ó°ü¾ø±â ¶§¹®¿¡ µÚÆ²¸²ÀÌ ¹ß»ý
	- bgcolor	: ¹è°æ»ö (¿¹ : #ffffff)
	- swLiveConnect : ºê¶ó¿ìÀú°¡ Ã³À½ Flash Player¸¦ load ÇÏ´Â °æ¿ì Java¸¦ ½ÃÀÛÇÒ °ÍÀÎÁö ¼³Á¤ (¿¹ : true | false)
	- fvalues	: ÇÃ·¡½¬¿¡°Ô º°µµÀÇ °ªÀ» ´øÁ® ÁÖ¾î¾ß ÇÒ °æ¿ì
	- base		: base directory or URL
	- url			: ÇÃ·¡½¬ÀÇ °æ·Î
	
	F_viewSwf03("740", "31", "", "", "", "high", "transparent", "", "#ffffff", "", "", "", "https://image.cjmall.com/common/images/gnb_menu.swf?inc_menu_type=1");
*******************************************************************************************************************************************/
function F_viewSwf03(width, height, idname, obname, allowscriptaccess, quality, wmode, scale, bgcolor, swLiveConnect, fvalues, base, url){
	document.write("<object classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' ");
	document.write("		codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ");

	if(idname != ""){
		document.write("		id='"+idname+"' ");	}
	document.write("		width='"+width+"' ");
	document.write("		height='"+height+"'>");
	document.write("	<param name='movie'				value='"+url+"'/>");
	document.write("	<param name='quality'			value='"+quality+"'/>");
	document.write("	<param name='wmode'				value='"+wmode+"'/>");

	if(allowscriptaccess != ""){
		document.write("	<param name='allowscriptaccess' value='"+allowscriptaccess+"'/>");	}
	if(base != ""){
		document.write("	<param name='base'			value='"+base+"'/>");}
	if(bgcolor != ""){
		document.write("	<param name='bgcolor'		value='"+bgcolor+"' /> ");	}
	if ( fvalues != "" ) {
		document.write("	<param name='flashVars'		value='"+fvalues+"'/> ");    	}

	document.write("	<param name='scale'				value='"+scale+"' />");
	document.write("	<embed	src					='"+url+"'");
	document.write("			base				='"+base+"' ");
	document.write("			scale				='"+scale+"' ");
	document.write("			swLiveConnect		='"+swLiveConnect+"' ");

	if(idname != ""){
		document.write("			id					='"+idname+"' ");	}
	if(obname != ""){
		document.write("			name				='"+obname+"' ");	}
	if(allowscriptaccess != ""){
		document.write("			allowScriptAccess	='"+allowscriptaccess+"' ");	}

	document.write("			quality				='"+quality+"' ");
	document.write("			wmode				='"+wmode+"' ");
	document.write("			width				='"+width+"' ");
	document.write("			height				='"+height+"' ");
	document.write("			type='application/x-shockwave-flash' ");
	document.write("			pluginspage='https://www.macromedia.com/go/getflashplayer'></embed>");
	document.write("</object>");
}


/***********************************************************************************************************
	F_viewMediaPlayer - Microsoft Windows Media Player Àç»ý
************************************************************************************************************
	¿¹) F_viewMediaPlayer('NSPlay','NSPlay','322','286','true','true','true','false','false','false','false','ÆÄÀÏ¸í');
************************************************************************************************************/
function F_viewMediaPlayer(id, name, width, height, showcontrols, autostart, autorewind, autosize, autoresize, transparentatstart, loop, url) {
	document.write("<object id='"+id+"' codeBase='https://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' "); 
	document.write("		type='application/x-oleobject' standby='Loading Microsoft Windows Media Player components...' "); 
	document.write("		width='"+width+"' height='"+height+"' classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' name='"+name+"'> ");
	document.write("	<param name='ShowControls' value='"+showcontrols+"'> ");
	document.write("	<param name='AutoStart' value='"+autostart+"'> ");
	document.write("	<param name='AutoRewind' value='"+autorewind+"'> ");
	document.write("	<param name='Autosize' value='"+autosize+"'> ");
	document.write("	<param name='AutoResize' value='"+autoresize+"'> ");
	document.write("	<param name='TransparentAtStart' value='"+transparentatstart+"'> ");
	document.write("	<param name='loop' value='"+loop+"'> ");
	document.write("	<param name='Filename' value='"+url+"'> ");
	document.write("	<embed type='application/x-mplayer2' pluginspage='https://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/' "); 
	document.write("		id='"+id+"' name='"+name+"' showpositioncontrols='0' showcontrols='0' autosize='0' autostart='1' showdisplay='0' ");
	document.write("		showstatusbar='0' showtracker='1' loop='1' width='"+width+"'  height='"+height+"' src='"+url+"'> ");
	document.write("	</embed> "); 
	document.write("</object> ");
}






/***********************************************************************************************************
	MYPAGE_´Þ·Â ·¹ÀÌ¾î
************************************************************************************************************/
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}



/***********************************************************************************************************
	ÁÂÃø ÀÌÀÍÈÆ Books
************************************************************************************************************/
var oWidth ;
function shockingGoodsListInit(objName){

	one = window[objName + "0"];
    two = window[objName + "1"];

    if(one !=null){
        window[objName + "0"].style.pixelLeft = 0;
		
		oWidth = 133;
        for(i=1; window[objName + i]!=null; i++) {
            window[objName + i].style.pixelLeft = oWidth ;
        	oWidth += 133;
        }
    }
}

var goodsId;
function moveShockingGoods(flag)
{
	var cnt = 3; // »óÇ° °¹¼ö
	var oWidth;
	if(cnt > 4)
		oWidth = 532;
	else
		oWidth = 133;	

	if(flag == 'P')
	{
      		var tmp = window['list'+ "0"].style.pixelLeft ;
       	for(var i = 0 ; window['list'+ i] != null ; i++) {
           	if(tmp <= -1*oWidth)	
              		window['list'+ i].style.pixelLeft += oWidth ;
      		}
	} 
	else
	{
      		for(var i = 0 ; window['list' + i] != null ; i++) {
          		if(window['list'+(cnt-1)].style.pixelLeft >= oWidth)
              		window['list'+ i].style.pixelLeft -= oWidth ;
      		}	
      		
      		
      		goodsId += 1;
	}	
}	

/***********************************************************************************************************
	Register_ÇÐ»çÀÏÁ¤ Ç³¼±ÆË¾÷
************************************************************************************************************/
function popUp(L, e) 
{        
	var barron = document.all[L];
	barron.style.pixelLeft = event.clientX + document.body.scrollLeft;
	barron.style.pixelTop = event.clientY + document.body.scrollTop + 5;
	barron.style.visibility = "visible";       
}
function popDown(L) 
{
	document.all[L].style.visibility = "hidden";
}



/***********************************************************************************************************
	TOEFL_ÀÌ¸ðÆ¼ÄÜ ¼±ÅÃ
************************************************************************************************************/
function showEmoticonBox(e,top,left)
{
    var objEmoticon = document.getElementById("emoticon");

    if (objEmoticon.style.display == "none")
    {
    	if(IE4)
    	{
			
	        objEmoticon.style.top = event.y + document.body.scrollTop - event.offsetY + top;
	        objEmoticon.style.left = event.x + document.body.scrollLeft - event.offsetX + left;
    	}
    	else
    	{
			var evt = e || window.event;

	        objEmoticon.style.top = evt.clientY + document.body.scrollTop + top;
    	    objEmoticon.style.left = evt.clientX + document.body.scrollLeft + left;
    	}

        objEmoticon.style.display = "";
    }
    else
    {
        objEmoticon.style.display = "none";
    }
}

function setEmoticon(emot)
{
	document.getElementById("myemoticon").src = "/images/emoticon"+ emot + ".gif";
	document.frmComment.emotion.value = emot;
	document.getElementById("emoticon").style.display = "none";
}

function link()
{
	var depth = arguments.length;

	switch(depth){
		case 0:
			return;
			break;
		case 1:
			url = eval("u"+arguments[0]);
			break;
		case 2:
			url = eval("u"+arguments[0]+"_"+arguments[1]);
			break;
		case 3:
			url = eval("u"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]);
			break;
		case 4:
			url = eval("u"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"_"+arguments[3]);
			break;
		case 5:
			url = eval("u"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"_"+arguments[3]+"_"+arguments[4]);
			break;
	}


	if(url=="") alert("ÁØºñÁßÀÔ´Ï´Ù.");
	else {
			location.href = url;
	}

}

function clink()
{
	var depth = arguments.length;

	switch(depth){
		case 0:
			return;
			break;
		case 1:
			url = eval("c"+arguments[0]);
			break;
		case 2:
			url = eval("c"+arguments[0]+"_"+arguments[1]);
			break;
		case 3:
			url = eval("c"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]);
			break;
		case 4:
			url = eval("c"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"_"+arguments[3]);
			break;
		case 5:
			url = eval("c"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"_"+arguments[3]+"_"+arguments[4]);
			break;
	}


	if(url=="") alert("ÁØºñÁßÀÔ´Ï´Ù.");
	else {
			location.href = url;
	}

}

function mlink()
{
	var depth = arguments.length;

	switch(depth){
		case 0:
			return;
			break;
		case 1:
			url = eval("m"+arguments[0]);
			break;
		case 2:
			url = eval("m"+arguments[0]+"_"+arguments[1]);
			break;
		case 3:
			url = eval("m"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]);
			break;
		case 4:
			url = eval("m"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"_"+arguments[3]);
			break;
		case 5:
			url = eval("m"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"_"+arguments[3]+"_"+arguments[4]);
			break;
	}


	if(url=="") alert("ÁØºñÁßÀÔ´Ï´Ù.");
	else {
			location.href = url;
	}

}

function tlink()
{
	var depth = arguments.length;

	switch(depth){
		case 0:
			return;
			break;
		case 1:
			url = eval("t"+arguments[0]);
			break;
		case 2:
			url = eval("t"+arguments[0]+"_"+arguments[1]);
			break;
		case 3:
			url = eval("t"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]);
			break;
		case 4:
			url = eval("t"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"_"+arguments[3]);
			break;
		case 5:
			url = eval("t"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"_"+arguments[3]+"_"+arguments[4]);
			break;
	}


	if(url=="") alert("ÁØºñÁßÀÔ´Ï´Ù.");
	else {
			location.href = url;
	}

}


//--------------------------------------------------------------
//ÀÌ¹ÌÁö »çÀÌÁî ÀÚµ¿Á¶Àý
//--------------------------------------------------------------
function ImgSizeConv(maxWidth,resizeWidth){
	if(!maxWidth)maxWidth=590;
	if(!resizeWidth)resizeWidth=590;
	
	var max    = maxWidth;  // ÁöÁ¤ÇÒ Å©±â
	var resize = resizeWidth;	// ¸®»çÀÌÁîÇÒ Å©±â
	var oIMG = document.getElementsByTagName('IMG');		

	for(i=0;i<oIMG.length;i++){		
		if (oIMG[i].offsetWidth > max ) {
			//alert(oIMG[i].offsetWidth);
			oIMG[i].style.width = resize;
		}
	}
}


//--------------------------------------------------------------
//ÀÌ¹ÌÁö »çÀÌÁî ÀÚµ¿Á¶Àý2
//--------------------------------------------------------------
function ImgSizeConv2(maxWidth,resizeWidth){
	if(!maxWidth)maxWidth=590;
	if(!resizeWidth)resizeWidth=590;
	
	var max    = maxWidth;  // ÁöÁ¤ÇÒ Å©±â
	var resize = resizeWidth;	// ¸®»çÀÌÁîÇÒ Å©±â
	var oIMG = document.imgform.getElementsByTagName('IMG');		

	for(i=0;i<oIMG.length;i++){		
		if (oIMG[i].offsetWidth > max ) {
			//alert(oIMG[i].offsetWidth);
			oIMG[i].style.width = resize;
		}
	}
}


function JS_viewObj(objhtml) { 
    document.write(objhtml); 
} 
//////////////////////////////////////
// IE Embed patch
//
// @author iezn@iezn.com
// @homepage https://iezn.com
// @create date 2006.04.19
// @last modify 2006.04.25
// @version 0.41
// ¹èÆ÷½Ã À§³»¿ëÀ» Æ÷ÇÔÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù
//////////////////////////////////////
/**
* embed ÆÐÄ¡ Àû¿ë ÄÁÅ×ÀÌ³Ê
* nullÀÎ°æ¿ì document °ªÀ» ±âº»À¸·Î ÇÕ´Ï´Ù
* id°ªÀ» ¼³Á¤ÇÑ°æ¿ì ¼³Á¤¹üÀ§ ³»¿¡¸¸ Àû¿ëÀÌ µË´Ï´Ù
* 
* º»¹®ÀÌ³ª ÀÏºÎ ³ëµå¿¡¸¸ Àû¿ëÇÒ°æ¿ì ÇØ´ç ³ëµåÀÇ id °ªÀ» ÀÔ·ÂÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù
* ¿¹)
* var __embed_target_id = "contents";
* ·Î Ã³¸®ÇÑ°æ¿ì body ³»¿¡ <ÅÂ±× id="contents">ÇÃ·¡½¬,µ¿¿µ»ó...</ÅÂ±×>
* ¾È¿¡ ³»¿ë¿¡¸¸ ÆÐÄ¡°¡ Àû¿ëµË´Ï´Ù
*/
if(typeof(__embed_target_id)=='undefined'){
	var __embed_target_id = null;
}

/**
* embed ÆÐÄ¡¸¦ Àû¿ëÇÒ ÅÂ±×¸¦ ¼³Á¤ÇÕ´Ï´Ù
* ±âº»°ªÀº object,eembed,appelt ÅÂ±×ÀÔ´Ï´Ù
* false °ªÀÎ°æ¿ì ÆÐÄ¡¿¡¼­ Á¦¿ÜµË´Ï´Ù
*/
if(typeof(__embed_tags)=='undefined'){
	var __embed_tags = {object:true,embed:true,applet:false}
}

/**
* ÇÃ·¡½¬ÆÄÀÏÁß flashvars ¸¦ »ç¿ëÇÒ°æ¿ì ÇØ´ç ÇÃ·¡½¬ÀÇ ¿ÀºêÁ§Æ®¾ÆÀÌµð:true °ªÀ¸·Î object¸¦ µî·ÏÇØ ÁÖ¼¼¿ä
*/
var __flash_force_objs = {};

if(document.attachEvent){
	document.write('<style type="text/css">');
	document.write('object,embed{display:none;}');
	document.write('</style>');
	document.attachEvent('onreadystatechange',
		function (){
			
			if(__embed_target_id===null){
				var __target = document;
			}else{
				var __target = document.getElementById(__embed_target_id);
			}
			if (document.readyState == "complete"){
				function _replace(obj){
					var obj_re = document.createElement(obj.outerHTML);					
					obj_re.style.display='inline';
					obj.parentNode.replaceChild(obj_re,obj);
				}
				function _inner(obj){
					obj.style.display='inline';					
					var html = obj.outerHTML;
					var classid = obj.classid.toLowerCase();
					if(classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' && typeof(__flash_force_objs[obj.id])=='undefined'){//flash ÀÎ°æ¿ì
						obj.insertAdjacentHTML('beforeBegin',html);
						obj.parentNode.removeChild(obj);
					}else{						
						//º¯°æÇÏ°íÀÚÇÏ´Â ActiveX classid ¸¦ Ãß°¡ÇÏ½Ã±â ¹Ù¶ø´Ï´Ù
						if(classid=='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' || //media 7
						classid=='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95' || //6.4
						classid=='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' ||
						classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'	
						){//media player 10
							embed_pos = html.indexOf('embed');
							if(embed_pos!=-1){//embed °¡ Á¸ÀçÇÏ´Â°æ¿ì
								var embed = '<'+html.substr(embed_pos);
								embed = embed.substr(0,embed.length-9);
								obj.insertAdjacentHTML('beforeBegin',embed);
								obj.parentNode.removeChild(obj);
							}else{
								//object·Î¸¸ µÇ¾î ÀÖ´Â°æ¿ì µ¿¿µ»ó ºÎºÐ¸¸ ÆÐÄ¡ÇÑ´Ù
								var embed = document.createElement('embed');
								var total = obj.childNodes.length;
								embed.setAttribute('autostart',0);
								if(obj.width){
									embed.setAttribute('width',obj.width);
								}
								if(obj.height){
									embed.setAttribute('height',obj.height);
								}
								for(var k=0;k<total;k++){
									n = obj.childNodes.item(k).getAttribute("name");
									v = obj.childNodes.item(k).getAttribute("value");
									if(n=='URL' || n=='url' || n=='FileName'){
										n = 'src';
									}
									embed.setAttribute(n,v);
								}
								if(embed.getAttribute('src')){
									embed.style.display = 'inline';
									obj.parentNode.replaceChild(embed,obj);
								}else{
									//ÆÄÀÏ¿¢¼¼½º object°¡ ¾Æ´Ñ°æ¿ì´Â À¯ÁöÇÑ´Ù								
								}
							}
						}
					}
				}

				if(__embed_tags.object===true){
					var objs = __target.getElementsByTagName('object');
					var i = objs.length;
					while(i-->0){
						_inner(objs[i]);
					}
				}
				if(__embed_tags.embed===true){
					var objs = __target.getElementsByTagName('embed');
					var i = objs.length;
					while(i-->0){
						_replace(objs[i])
					}
				}

				if(__embed_tags.applet===true){
					var objs = __target.getElementsByTagName('applet');
					var i = objs.length;
					while(i-->0){
						_replace(objs[i])
					}
				}
			}
		}
	);
}