// »õÃ¢ ¶ç¿ì±â

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 goTab(no) {

	if(no == 1){
		table1.style.display = "";
		table2.style.display = "none";
		table3.style.display = "none";
		table4.style.display = "none";
		table5.style.display = "none";
	}
	else if(no == 2){
		table1.style.display = "none";
		table2.style.display = "";
		table3.style.display = "none";
		table4.style.display = "none";
		table5.style.display = "none";
	}
	else if(no == 3){
		table1.style.display = "none";
		table2.style.display = "none";
		table3.style.display = "";
		table4.style.display = "none";
		table5.style.display = "none";
	}
	else if(no == 4){
		table1.style.display = "none";
		table2.style.display = "none";
		table3.style.display = "none";
		table4.style.display = "";
		table5.style.display = "none";
	}
	else if(no == 5){
		table1.style.display = "none";
		table2.style.display = "none";
		table3.style.display = "none";
		table4.style.display = "none";
		table5.style.display = "";
	}
}
