/* flash */
function IntroFlash(pSwfUrl,dongkukG_URL,dongkuk_URL){	
	var pathArr = pSwfUrl.split("/");
	var flashID = pathArr[pathArr.length-1].split(".")[0];

	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' id='"+flashID+"' width='990px' height='560px' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='movie' value='"+pSwfUrl+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='FlashVars' value='dongkukG_URL="+dongkukG_URL+"&dongkuk_URL="+dongkuk_URL+"' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<embed src='"+pSwfUrl+"' FlashVars='dongkukG_URL="+dongkukG_URL+"&dongkuk_URL="+dongkuk_URL+"' quality='high' wmode='transparent' width='990px' height='560px' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>"); 
}

function mainFlash(pSwfUrl,mainXmlURL,xmlURL){	
	var pathArr = pSwfUrl.split("/");
	var flashID = pathArr[pathArr.length-1].split(".")[0];

	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' id='"+flashID+"' width='980px' height='520px' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='movie' value='"+pSwfUrl+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='FlashVars' value='mainXmlURL="+mainXmlURL+"&xmlURL="+xmlURL+"' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<embed src='"+pSwfUrl+"' FlashVars='mainXmlURL="+mainXmlURL+"&xmlURL="+xmlURL+"' quality='high' wmode='transparent' width='980px' height='520px' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>"); 
}
function utilFlash(pSwfUrl,xmlURL){	
	var pathArr = pSwfUrl.split("/");
	var flashID = pathArr[pathArr.length-1].split(".")[0];           

	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' id='util_flash' width='980px' height='35px' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='movie' value='"+pSwfUrl+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='FlashVars' value='xmlURL="+xmlURL+"' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<embed src='"+pSwfUrl+"' FlashVars='xmlURL="+xmlURL+"' quality='high' wmode='transparent' width='980px' height='35px' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>"); 
}
function familyFlash(pSwfUrl,mainB,xmlURL){	
	var pathArr = pSwfUrl.split("/");
	var flashID = pathArr[pathArr.length-1].split(".")[0];

	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' id='family_flash' width='980px' height='20px' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='movie' value='"+pSwfUrl+"' />");
	document.write("<param name='quality' value='high' />"); 
	document.write("<param name='FlashVars' value='mainB="+mainB+"&xmlURL="+xmlURL+"' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<embed src='"+pSwfUrl+"' FlashVars='mainB="+mainB+"&xmlURL="+xmlURL+"' quality='high' wmode='transparent' width='980px' height='20px' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>"); 
}

function sceneFlash(pSwfUrl,xmlURL){	
	var pathArr = pSwfUrl.split("/");
	var flashID = pathArr[pathArr.length-1].split(".")[0];

	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' id='"+flashID+"' width='720px' height='658px' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='movie' value='"+pSwfUrl+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='FlashVars' value='xmlURL="+xmlURL+"' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<embed src='"+pSwfUrl+"' FlashVars='xmlURL="+xmlURL+"' quality='high' wmode='transparent' width='720px' height='658px' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>"); 
}

function historyFlash(pSwfUrl,xmlURL){	
	var pathArr = pSwfUrl.split("/");
	var flashID = pathArr[pathArr.length-1].split(".")[0];

	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' id='"+flashID+"' width='720px' height='456px' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='movie' value='"+pSwfUrl+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='FlashVars' value='xmlURL="+xmlURL+"' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<embed src='"+pSwfUrl+"' FlashVars='xmlURL="+xmlURL+"' quality='high' wmode='transparent' width='720px' height='456px' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>"); 
}

function playerFlash(pSwfUrl,flvURL){	
	var pathArr = pSwfUrl.split("/");
	var flashID = pathArr[pathArr.length-1].split(".")[0];

	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' id='"+flashID+"' width='430px' height='320px' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='movie' value='"+pSwfUrl+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='FlashVars' value='flvURL="+flvURL+"' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<embed src='"+pSwfUrl+"' FlashVars='flvURL="+flvURL+"' quality='high' wmode='transparent' width='430px' height='320px' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>"); 
}

function lnbFlash(pSwfUrl,xmlURL,depth1,depth2,depth3){	
	var pathArr = pSwfUrl.split("/");
	var flashID = pathArr[pathArr.length-1].split(".")[0];

	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' id='"+flashID+"' width='200px' height='230px' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='movie' value='"+pSwfUrl+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='FlashVars' value='depth1="+ depth1+"&depth2="+depth2+"&depth3="+depth3+"&xmlURL="+xmlURL+"' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<embed src='"+pSwfUrl+"' FlashVars='depth1="+ depth1+"&depth2="+depth2+"&depth3="+depth3+"&xmlURL="+xmlURL+"' quality='high' wmode='transparent' width='200px' height='230px' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>"); 
}

function historyFlash2(pSwfUrl,xmlURL){	
	var pathArr = pSwfUrl.split("/");
	var flashID = pathArr[pathArr.length-1].split(".")[0];

	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' id='"+flashID+"' width='720px' height='456px' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='movie' value='"+pSwfUrl+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='FlashVars' value='xmlURL="+xmlURL+"' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<embed src='"+pSwfUrl+"' FlashVars='xmlURL="+xmlURL+"' quality='high' wmode='transparent' width='720px' height='456px' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>"); 
}

function historyFlash(pSwfUrl,swfURL,flashVarSend_history){	
	var pathArr = pSwfUrl.split("/");
	var flashID = pathArr[pathArr.length-1].split(".")[0];

	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' id='"+flashID+"' width='720px'  height='"+flashVarSend_history+"'  align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='movie' value='"+pSwfUrl+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='FlashVars' value='swfURL="+swfURL+"' />");
	document.write("<param name='FlashVars' value='flashVarSend_history="+flashVarSend_history+"' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<embed src='"+pSwfUrl+"'  quality='high' wmode='transparent' width='720px' height='"+flashVarSend_history+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>"); 
}

function visualFlash(pSwfUrl,xmlURL){	
	var pathArr = pSwfUrl.split("/");
	var flashID = pathArr[pathArr.length-1].split(".")[0];

	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' id='"+flashID+"' width='570px' height='150px' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='movie' value='"+pSwfUrl+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='FlashVars' value='xmlURL="+xmlURL+"' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<embed src='"+pSwfUrl+"' FlashVars='xmlURL="+xmlURL+"' quality='high' wmode='transparent' width='570px' height='150px' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>"); 
}

function networkFlash(pSwfUrl){	
	var pathArr = pSwfUrl.split("/");
	var flashID = pathArr[pathArr.length-1].split(".")[0];

	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' id='"+flashID+"' width='720px' height='610px' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='movie' value='"+pSwfUrl+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<embed src='"+pSwfUrl+"' quality='high' wmode='transparent' width='720px' height='610px' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>"); 
}

function dtxt_a(num){
	max=document.getElementById("tab_a").getElementsByTagName("a").length;

	for(i=1;i<=max;i++){
		document.getElementById("dtab_a"+i).style.display = "none";
	}
	document.getElementById("dtab_a"+num).style.display = "block";
}

function dtxt_b(num){
	max=document.getElementById("tab_b").getElementsByTagName("a").length;

	for(i=1;i<=max;i++){
		document.getElementById("dtab_b"+i).style.display = "none";
	}
	document.getElementById("dtab_b"+num).style.display = "block";
}

function dtxt_c(num){
	max=document.getElementById("tab_c").getElementsByTagName("a").length;

	for(i=1;i<=max;i++){
		document.getElementById("dtab_c"+i).style.display = "none";
	}
	document.getElementById("dtab_c"+num).style.display = "block";
}

function dtxt_d(num){
	max=document.getElementById("tab_d").getElementsByTagName("a").length;

	for(i=1;i<=max;i++){
		document.getElementById("dtab_d"+i).style.display = "none";
	}
	document.getElementById("dtab_d"+num).style.display = "block";
}

function dtxt_e(num){
	max=document.getElementById("tab_e").getElementsByTagName("a").length;

	for(i=1;i<=max;i++){
		document.getElementById("dtab_e"+i).style.display = "none";
	}
	document.getElementById("dtab_e"+num).style.display = "block";
}

function dtxt_sel(num){
	max=document.getElementById("tab_sel").getElementsByTagName("option").length;

	for(i=1;i<=max;i++){
		document.getElementById("dtab_sel"+i).style.display = "none";
	}
	document.getElementById("dtab_sel"+num).style.display = "block";
}

// rollover Img
var selectedOverImg = '';
function imgOver(param) {
	var obj;
	if (typeof param == "string" ){
		obj = document.getElementById(param);
	} else {
		obj = param;
	}
	if(obj.src.search(/\_over/gi) >= 0)selectedOverImg = obj.src;
	obj.src = obj.src.replace("_off.gif", "_on.gif");
}
function imgOut(param) {
	var obj;
	if (typeof param == "string" ){
		obj = document.getElementById(param);
	} else {
		obj = param;
	}
	if(obj.src != selectedOverImg)obj.src = obj.src.replace("_on.gif", "_off.gif")
}
