/*ÆË¾÷   */
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'); 
		}	


// 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";  
		
	}
}


// image roll : : µÇ´Â°Å(¸ðÁú¶ó¿¡¼­µµ)
function menuOver() {
	this.src = this.src.replace("_on.gif", "_off.gif");
}
function menuOut() {
	this.src = this.src.replace("_off.gif", "_on.gif");
}

function imageOver(imgEl) {
	imgEl.src = imgEl.src.replace("_off.gif", "_on.gif");
}
function imageOut(imgEl) {
	imgEl.src = imgEl.src.replace("_on.gif", "_off.gif");
}

// tab menu
function funcSelfList(num,num1){
	for(var i=1;i<=num1;i++){        
		var obj = document.getElementById("SelfList_Ti_"+i);
		var obj1 = document.getElementById("SelfList_Co_"+i);
		if(i==num) {
			obj.style.display = "";
			obj1.style.display = "";
		}	else	{
			obj.style.display = "none";
			obj1.style.display = "none";
		}
	}
}


// »ó´Ü °Ë»öÃ¢
function clearImage1() {
		document.search_form.MB_SEARCH.className="out_search";
	}

// Top ¹öÆ° 

function Move(){
var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

		yMenuFrom   = parseInt (top_btn.style.top, 10);
		yMenuTo     = document.body.scrollTop + 500;
		timeoutNextCheck = 500;

		if ( yMenuFrom != yMenuTo ) {
				yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
				if ( yMenuTo < yMenuFrom )
						yOffset = -yOffset;

				top_btn.style.top = parseInt (top_btn.style.top, 10) + yOffset;
				timeoutNextCheck = 10;
		}

		setTimeout ("Move()", timeoutNextCheck);
}

function OnLoad(){
		var y;
		if ( top.frames.length )
				top_btn.style.visibility = "visible";
		Move();
		return true;
}

 
 // Visual Sub_Menu 
<!--
	function selectcell(obj){
		obj.className='menuselected';
	}

	function deselectcell(obj){
		obj.className='menudeselected';
	}

	function menu_getCookie() { 
		var nameOfCookie = "LeftMenu="; 
		var x = 0; 
		while ( x <= document.cookie.length ) 
		{ 
				var y = (x+nameOfCookie.length); 
				if ( document.cookie.substring( x, y ) == nameOfCookie ) { 
						if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) 
								endOfCookie = document.cookie.length; 
						return unescape( document.cookie.substring( y, endOfCookie ) ); 
				} 
				x = document.cookie.indexOf( " ", x ) + 1; 
				if ( x == 0 ) 
						break; 
		} 
		return "x"; 
	} 


	function showmenu(lay){
 		var listcount = 6;
		
		var checkendimg = document.all["toplogo"];
		var checkimgpos = getImgPos(checkendimg);
		var checkimgleft = checkimgpos.left -1 ;

		if(document.all["topmenu"+lay]){
			document.all["topmenu"+lay].style.pixelLeft = checkimgleft;
			document.all["topmenu"+lay].style.visibility= "visible";
		}
		for(i= 1;i <= listcount;i++){
			if(i != lay){
				if(document.all["topmenu"+i])document.all["topmenu"+i].style.visibility= "hidden";
			}
		}
		return false;
	}

	function hiddenmenu(){
 		var listcount = 6;
		checkmenu = menu_getCookie();
		for(i= 1;i <= listcount;i++){
			if(document.all["topmenu"+i])document.all["topmenu"+i].style.visibility= "hidden";
		}
		return false;
	}


	function getImgPos(obj)
	{
		var tmp  = new Object();
		tmp.left = getImgXPos(obj);
		tmp.top  = getImgYPos(obj);
		
		return tmp;
	}

	function getImgXPos(obj)
	{
	  if (!obj)
			return 0;
	  
		if (!document.all) 
			return obj.x;

		var x = 0;
	  
		while (obj.offsetParent) 
	  {
		x   += obj.offsetLeft;
		obj =  obj.offsetParent;
	  }
		
		return x;
	}


	function getImgYPos(obj)
	{
	  if (!obj) 
			return 0; 
	  
		if (!document.all) 
			return obj.y;
	  
		var y =0;
	  
		while (obj.offsetParent) 
	  {
		y   += obj.offsetTop;
		obj =  obj.offsetParent;
	  }
		
	  return y;
	}

//-->


