// activeX ÀÏ¹Ý ÇÃ·¡½¬ Åõ¸í ¼Ó¼º Ãß°¡ 
function flash_trans(url, width, height){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+width+'" height="'+height+'" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id=ShockwaveFlash1>'
// ¼­·Î´Ù¸¥ µµ¸ÞÀÎ¿¡¼­µµ ÇÃ·¡½¬¿¡¼­ ÀÚ¹Ù½ºÅ©¸³Æ®¸¦ È£ÃâÇÒ ¼ö ÀÖµµ·Ï ÇØÁØ´Ù
+'<param name="scale" value="noscale"/>'
+'<param name="salign" value="t"/>'
+'<param name="allowScriptAccess" value="always"/>'
+'<param name="movie" value="'+url+'"/>'
+'<param name="quality" value="high"/>'
+'<param name="wmode" value="transparent"/>'
+'<embed src="'+url+'" quality="high" scale="noscale" pluginspage="https://www.macromedia.com/go/getflashplayer" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash"></embed>'
+'</object>');
}


/* »õÃ¢ */
function openwindow(url,intWidth,intHeight) { 
      window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",resizable=1,scrollbars=1");
}

function openwindow_new(url,intWidth,intHeight) { 
      window.open(url, "_blank", "width="+intWidth+",height="+intHeight+",scrollbars=yes,resizable=yes,toolbar=yes,menubar=yes,location=yes") ;
      
}



/* rollover */
var changedImg;

function EImgChg(flag)
{
	source=event.srcElement;
	if (source.name == "")
	{ return false;  }

	if(changedImg == source.name)
	return;


	else if (document.images && source.tagName=="IMG") {
		imgElement = source.name;  // ÀÌ¹ÌÁö name
		imgPath = source.src;   // ÀÌ¹ÌÁö src ¼Ó¼º°ª

		imgPathLen = imgPath.length;
		imgPathFlag = imgPath.lastIndexOf("/");
		imgName = imgPath.substring(0,imgPathFlag+1);

		document.images[imgElement].src =  imgName + imgElement + "_" + flag + ".gif";

	}
}

/* ·¹ÀÌ¾î */

	function LayerSH(LayerName,Status) {
	ns4 = (document.layers)?true:false
	ie4 = (document.all)?true:false
	
		if (ns4) {
			LayerN = document.layers[LayerName]
			if (Status == 'show') LayerN.visibility = 'show';
			if (Status == 'hide') LayerN.visibility = 'hidden';
		}	
		if (ie4) {
			LayerN = document.all[LayerName].style
			if (Status == 'show') LayerN.visibility = 'visible';
			if (Status == 'hide') LayerN.visibility = 'hidden';
		}
	}	
	
	
	

// popup
function popsn(url,trgt,w,h) {
    window.open(url,trgt,'width='+w+',height='+h+',scrollbars=no,resizable=no,copyhistory=no,toolbar=no');
}
function popsy(url,trgt,w,h) {
    window.open(url,trgt,'width='+w+',height='+h+',scrollbars=yes,resizable=no,copyhistory=no,toolbar=no');
}


// LineMap Ã¼Å©/Ãâ·Â ÇÔ¼ö - made by Yoon
	function check(path){

		var chk01 = ' > ';
		var chk02 = '>';

		var p0=1;
		var p1=0;

		var s0 = path;
		var s1;

		while(p0>0)
		{
			s0=s0.slice(p0+3,s0.length);
			p0=s0.indexOf(chk01);
			p1=p1+p0+3;
		}

		s1 = path.slice(0, p1+2);
		p0 = s0.indexOf(chk02);

		if (p0 >0)
		{
			s0 = s0.slice(p0+1,s0.length-4);
		}

		document.write(s1 + '<b>'+s0+'</b>');
	}
function top_search(){
	var frm = document.top_search;
	if(frm.q.value==""){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		frm.q.focus();
	}else{
		frm.submit();
		
	}

}

// ·¹ÀÌ¾î
function divopenclose(item,item1) { 
	obj=document.getElementById(item);
	obj.style.display="block";
	obj1=document.getElementById(item1);
	obj1.style.display="none";
}
 
function divopen(item) { 
	obj=document.getElementById(item);
	obj.style.display="";
}
function divclose(item) { 
	obj=document.getElementById(item);
	obj.style.display="none";
}
function divtoggle(item){
	
	obj=document.getElementById(item);
	 
	if (obj.style.display == "") {
		obj.style.display = "none"

	}else {
		obj.style.display = ""	 
	}
	 
}

function WinPopup(mypage,myname, w, h,scroll) { //v2.0
//	alert("·Î±×ÀÎ");
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;

	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',resizable=0,status=0,scrollbars='+scroll+'';
	popWin = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { popWin.window.focus(); }
}
