
// FAQ, Related Links ÀÚ¹ÙÃ³¸®

var preNum;
var flag=1;
function changeLayer(sNum)
{
	if(sNum==preNum && flag==1){
		//alert('a');
		temp = eval("document.all."+sNum);
		if(temp){
			temp.style.display='none';
			flag=0;
		}
	}
	else if(sNum==preNum && flag==0){
		//alert('b');
		temp = eval("document.all."+sNum);
		if(temp){
			temp.style.display='';
			flag=1;
		}
	}
	else if(sNum!=preNum){
		//alert('c');
		temp = eval("document.all."+preNum);
		if(temp)
			temp.style.display='none';

		temp1 = eval("document.all."+sNum);
		if(temp1)
			temp1.style.display='';
		flag=1;


	}
	preNum=sNum;

}

// »õÃ¢ ¶ç¿ì±â

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
	


// FAQ, Related Links ÀÚ¹ÙÃ³¸®

var preNum;
var flag=1;
function changeLayer(sNum)
{
	if(sNum==preNum && flag==1){
		//alert('a');
		temp = eval("document.all."+sNum);
		if(temp){
			temp.style.display='none';
			flag=0;
		}
	}
	else if(sNum==preNum && flag==0){
		//alert('b');
		temp = eval("document.all."+sNum);
		if(temp){
			temp.style.display='';
			flag=1;
		}
	}
	else if(sNum!=preNum){
		//alert('c');
		temp = eval("document.all."+preNum);
		if(temp)
			temp.style.display='none';

		temp1 = eval("document.all."+sNum);
		if(temp1)
			temp1.style.display='';
		flag=1;


	}
	preNum=sNum;


}

//  ¿À¸¥ÂÊ Quick Menu 

var menuTopMargin = -90; // ¸Þ´º½ºÅ©·Ñ ½ÃÀÛ ¿©¹é
var menuSpeed = 1;
var timerSpeed = 100;
var timerSpeed2 = 1;
var timer;
var heightLimit = 0;

function checkMenu() {
	if(document.body.offsetHeight > heightLimit) {
		var reTimer = timerSpeed;
		var startPoint = parseInt(document.all.sMenu.style.top,10);
		var endPoint = document.body.scrollTop;
		endPoint = (menuTopMargin <= endPoint ) ? endPoint - menuTopMargin : 0;
		if(startPoint != endPoint) {
			moveAmount = Math.ceil(Math.abs(endPoint - startPoint) / 15);
			document.all.sMenu.style.top = parseInt(document.all.sMenu.style.top,10) + ((endPoint<startPoint) ? -moveAmount : moveAmount);
			reTimer = timerSpeed2;
		}
	} else document.all.sMenu.style.top = 0;
	timer = setTimeout("checkMenu();",reTimer);
}

function initMenu() {
	if(document.body.offsetHeight > heightLimit) document.all.sMenu.style.top = document.body.scrollTop;
	checkMenu();
}


function popupWindow(url, w, h) {
  var posX = (screen.width - w) / 2;
  var posY = (screen.height - h) / 2;
  var option = ",resizable=no,scrollbars= no,status=no";
  window.open(url, "new_win","width="+w+",height="+h+",left="+posX +",top="+posY+option);
}// 2008.1.24 ½Å¿ëÁ¤º¸ È°¿ëÃ¼Á¦ÀÇ °ø½Ã Ãß°¡..

//ÅÇ º¯È¯
function goTab(no) {

	if(no == 1){
		table1.style.display = "";
		table2.style.display = "none";
	}
	else if(no == 2){
		table1.style.display = "none";
		table2.style.display = "";
	}
}

//°ü°è»ç »çÀÌÆ®
function MM_jumpMenu(selObj){
  if (selObj.options[selObj.selectedIndex].value != "" ){
    window.open(selObj.options[selObj.selectedIndex].value,"","left=0,top=0,width=720,height=600,toolbar=yes,menubar=yes,status=yes,scrollbars=yes,resizable=no"); //left=0,top=0,width=720,height=600,toolbar=yes,menubar=yes,status=no,scrollbars=yes,resizable=no
  }
}

function MM_jumpMenu2(selObj){
  if (selObj.options[selObj.selectedIndex].value != "" ){
    window.open(selObj.options[selObj.selectedIndex].value,"",""); 
  }
}

//Àü±¹³×Æ®¿öÅ© »õÃ¢ ³»¿¡¼­ ÀÌµ¿ÇÏ±â
  function Change(draw)
    {
     var URL = "";
     var A = navigator.userAgent;
     if(A.indexOf("Netscape") >= 0) URL = draw.f1.go.value;
     else {
        URL = draw.go.options.value;
     }
     window.location.href = URL;
    }

