//// FUNCTIONS ////

// rollover
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


// rollover2
function bt(id,after) { 
	eval(id+'.filters.blendTrans.stop();');
	eval(id+'.filters.blendTrans.Apply();');
	eval(id+'.src="'+after+'";');
	eval(id+'.filters.blendTrans.Play();');
}


// toggle Layer // 2006.10.27 ÀÌÇö±¹ Ãß°¡
function toggleLayer(id) {
	try {
	var obj = document.getElementById(id);
	obj.style.display = (obj.style.display == "none") ? "block" : "none";
	} catch (e) {

	}
	return true;
}
function showLayer(id) {
	document.getElementById(id).style.display = "block";
	return true;
}
function hideLayer(id) {
	document.getElementById(id).style.display = "none";
	return true;
}

// Layer
function MM_showHideLayers() { //v3.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; }
}

// show/hide display·Î Á¦¾î	2006.08.01 ÀÌÇö±¹ ¼öÁ¤
function MM_showHide_Displays() { //v3.0
  var i,p,v,obj,args=MM_showHide_Displays.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')?'block':(v='hide')?'none':v; }
    obj.display=v; }
}

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);


// png alpha channels
function setPng24(obj) {
	obj.width=obj.height=1;
	obj.className=obj.className.replace(/\bpng24\b/i,''); 
	obj.style.filter =
	"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
	obj.src='about:blank';
	return '';
}



//// CSS ////

document.write ("\
<style>\
.png24 {tmp:expression(setPng24(this));}\
</style>\
");


// ¸®½ºÆ® ¸¶¿ì½º ¿À¹ö½Ã bgcolor º¯°æ
function m_over01(object) {
	object.style.background="#FCF8F2";
}
function m_out01(object) {
	object.style.background="#FFFFFF";
}

// ¹è³Ê ¼±ÅÃ½Ã Å×µÎ¸® ¼³Á¤
var old_obj="";

function b_select01(object) {
	if(old_obj!=object) {
		if(old_obj!="") {
			old_obj.style.borderColor="#EAEAEA";
		}
		object.style.borderColor="#FF5539";
		old_obj=object;
	} else {
		old_obj="";
	}
}

function b_select02(object) {
	if(old_obj!=object) {
		if(old_obj!="") {
			old_obj.style.borderColor="#DEDEDE";
		}
		object.style.borderColor="#FFA800";
		old_obj=object;
	} else {
		old_obj="";
	}
}


// °øÁö»çÇ× ¹× µµ¿ò¸» µîÀÇ ·¹ÀÌ¾î ÅÇ¸Þ´º¸¦ À§ÇÑ ½ºÅ©¸³Æ®
// ÃÖÁ¾¼öÁ¤ : 2005.06.16 by JY_SHIM

function LayerMenu(objShow, tabmenu1, tabmenu2, tabmenu3) {
	if (objShow==1) {
		document.all[tabmenu1].style.display="block";
		document.all[tabmenu2].style.display = "none";
	}
	else {
		document.all[tabmenu2].style.display="block";
		document.all[tabmenu1].style.display = "none";
	}
}


function LayerMenu2(objShow, tabmenu1, tabmenu2, tabmenu3) {
	if (objShow==1) {
		document.all[tabmenu1].style.display="block";
		document.all[tabmenu2].style.display="none";
		document.all[tabmenu3].style.display="none";
	}
	if (objShow==2)
	{
		
		document.all[tabmenu1].style.display="none";
		document.all[tabmenu2].style.display="block";
		document.all[tabmenu3].style.display="none";
	}
	if (objShow==3)
	{
		
		document.all[tabmenu1].style.display="none";
		document.all[tabmenu2].style.display="none";
		document.all[tabmenu3].style.display="block";
	}
}



// ½ºÄð ÀÚÀ¯½Ã°£ ¹é°ú ¸ñ·ÏÀÇ ·¹ÀÌ¾î ÅÇ¸Þ´º¸¦ À§ÇÑ ½ºÅ©¸³Æ®
// ÃÖÁ¾¼öÁ¤ : 2005.11.23 by ¹éÇöÁ¤
function newLayerMenu(objShow, tabmenu1, tabmenu2, tabmenu3) {

	if (objShow==1) {
	
		document.all[tabmenu1].style.display="block";
		document.all[tabmenu2].style.display = "none";
		document.all[tabmenu3].style.display = "none";
	}
	if (objShow==2){

		document.all[tabmenu2].style.display="block";
		document.all[tabmenu1].style.display = "none";
		document.all[tabmenu3].style.display = "none";
	}
	if (objShow==3){

		document.all[tabmenu3].style.display="block";
		document.all[tabmenu1].style.display = "none";
		document.all[tabmenu2].style.display = "none";
	}
}



function DropLayer(objNum, objShow) {

if (document.all[objShow].style.display=="none")
	{
	if (objNum==1)
		{
			document.all[objShow].style.display="block";
		}
	}
else
document.all[objShow].style.display="none"
}

function AddLayer(objNum, objShow, objShow2) {

if (document.all[objShow].style.display=="none")
	{
	if (objNum==1)
		{
			document.all[objShow].style.display="block";
			document.all[objShow2].style.display="none";
		}
	}
	else if (objNum==2)
	{
		document.all[objShow].style.display="none";
			document.all[objShow2].style.display="block";
	}
else
document.all[objShow].style.display="none"
}


// html guide ¿ÞÂÊ ¸Þ´º ½ºÅ©¸³Æ®
// ÃÖÁ¾¼öÁ¤ : 2006.05.22 by °­¼º¹Î
function toggleMenu(currMenu){
if (document.all){
thisMenu = eval('document.all.' + currMenu + '.style');
if (thisMenu.display == 'block') {
document.all.menu1.style.display = 'none'
document.all.menu2.style.display = 'none'
document.all.menu3.style.display = 'none'
document.all.menu4.style.display = 'none'
document.all.menu5.style.display = 'none'
document.all.menu6.style.display = 'none'
document.all.menu7.style.display = 'none'
document.all.menu8.style.display = 'none'
/* Ãß°¡½Ã
document.all.menuÃß°¡¼ýÀÚ.style.display = 'none'
*/


thisMenu.display = 'none'
}
else {
document.all.menu1.style.display = 'none'
document.all.menu2.style.display = 'none'
document.all.menu3.style.display = 'none'
document.all.menu4.style.display = 'none'
document.all.menu5.style.display = 'none'
document.all.menu6.style.display = 'none'
document.all.menu7.style.display = 'none'
document.all.menu8.style.display = 'none'
/* Ãß°¡½Ã
document.all.menuÃß°¡¼ýÀÚ.style.display = 'none'
*/

thisMenu.display = 'block'
}
return false
}
else {
return true
}
}

// ÇÃ·¡½Ã ¹× µ¿¿µ»ó ¿ÀºêÁ§Æ® ÆÐÄ¡ ´ëÀÀ   /* 2006. 06. 05. ÀÌÇö±¹ */

function obj(id){
	document.write(id.text); id.id="";
}


	var s_cnt = 1;
	function change_search_select(str,str2,str3) {
		var s_word;
		eval("document.all." + str ).innerHTML = str2;
		search_layer(str3);
	}
	
	function search_layer(str) {
	if (s_cnt==1) {
		eval("document.getElementById('" + str + "').style").display='block';
		s_cnt=2;
	} else {
		eval("document.getElementById('" + str + "')").style.display='none';
		s_cnt=1;
	}
}

//·¹ÀÌ¾î on ÀÏ °æ¿ì ¼¿·ºÆ®ÀÔ·ÂÆû ¼û±â±â/
function search_layersel(){
 if (s_cnt==1) {
  select1.style.visibility = "visible";
  select2.style.visibility = "visible";
  select3.style.visibility = "visible";
 } else {
  select1.style.visibility = "hidden"; 
  select2.style.visibility = "hidden"; 
  select3.style.visibility = "hidden"; 
 }
}

//¿ÞÂÊ¸Þ´º ÄÃ·¯·Îº¸´Â ÀÛÇ°¼¼°è ·¹ÀÌ¾î/
function stage_color_layersel(str){
  if(str == "COM1"){
    document.all.stage_color_on.style.visibility="visible";
    document.all.stage_color_on.style.position="relative";
    document.all.stage_color_off.style.visibility="hidden";
    document.all.stage_color_off.style.position="absolute";
  }
  if(str == "COM2"){
    document.all.stage_color_on.style.visibility="hidden";
    document.all.stage_color_on.style.position="absolute";
    document.all.stage_color_off.style.visibility="visible";
    document.all.stage_color_off.style.position="relative";
  }
}

//¿ÞÂÊ¸Þ´º Ä«Å×°í¸® ÇÃ·¡½Ã/

function setFlash(src, w, h) {
 var Flash_html = "";
 Flash_html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="param" width="'+w+'" height="'+h+'">';
 Flash_html += '<param name="allowScriptAccess" value="always">';
 Flash_html += '<param name="movie" value="'+src+'">';
 Flash_html += '<param name="quality" value="high">';
 Flash_html += '<param name="wmode" value="transparent">';
 Flash_html += '<param name="swliveconnect" value="true">';
 Flash_html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
 Flash_html += '</object>';
 document.write(Flash_html);
}


