
var URL = "/";
var HOME = "/";

function OpenWin(url){
	Openwidnow = window.open(url,"Openwindow","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
}

function OpenWin_size(url){
	Openwidnow_size = window.open(url,"Openwindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=820,height=700");
}

function viewbbs1(wr_id) {
	location = "/board/bbs/board.php?bo_table=s3_2&wr_id="+wr_id;
}
function viewbbs2(wr_id) {
	location = "/board/bbs/board.php?bo_table=s3_1&wr_id="+wr_id;
}

	
function M00(rnum){ // ¸ÞÀÎÀ¸·Î(·Î°í)
	rnum = Number(rnum);
	if(rnum == 0){
		location.href = URL+"main.php";	 // ¸ÞÀÎÀ¸·Î(·Î°í)
	}				
}


function M01(rnum){ // maystory
	rnum = Number(rnum);
	switch(rnum){
		case 0 :
		case 1 : // maystory
			location.href = URL+"m11.php?pn=1&sn=1";
		break;
		case 2 : // contact us
			location.href = URL+"m12.php?pn=1&sn=2";
		break;
		default :
			alert(rnum+" : ÁØºñÁßÀÎ ÆäÀÌÁöÀÔ´Ï´Ù.");
	}
}
function M02(rnum){ // gallery
	rnum = Number(rnum);
	switch(rnum){
		case 0 :
		case 1 : // 
			var gallery_wins = window.open("/m21.php?pn=2&sn=1","gallery","toolbar=no,statusbar=no,scrollbars=yes,width=1080,height=1060,left='+center_left+',top=0");
			gallery_wins.focus();
		break;
		default :
			alert(rnum+" : ÁØºñÁßÀÎ ÆäÀÌÁöÀÔ´Ï´Ù.");
	}
}

function M03(rnum){ // event
	rnum = Number(rnum);
	switch(rnum){
		case 0 :
		case 1 : // 
			location.href = URL+"board/bbs/board.php?bo_table=m31";
		break;
		default :
			alert(rnum+" : ÁØºñÁßÀÎ ÆäÀÌÁöÀÔ´Ï´Ù.");
	}
}

function M04(rnum){ // price
	rnum = Number(rnum);
	switch(rnum){
		case 0 :
		case 1 : // ÀÓ½Å¾Ù¹ü
			location.href = URL+"m41.php?pn=4&sn=1";
		break;
		case 2 : // ½Å»ý¾Æ¾Ù¹ü
			location.href = URL+"m42.php?pn=4&sn=2";
		break;
		case 3 : // 100ÀÏ ¾Ù¹ü
			location.href = URL+"m43.php?pn=4&sn=3";
		break;
		case 4 : // µ¹ ¾Ù¹ü
			location.href = URL+"m44.php?pn=4&sn=4";
		break;
		case 5 : // ¼ºÀå ¾Ù¹ü
			location.href = URL+"m451.php?pn=4&sn=5";
		break;
		case 6 : // °¡Á· ¾Ù¹ü
			location.href = URL+"m46.php?pn=4&sn=6";
		break;
		case 7 : // ÁÖ´Ï¾î ¾Ù¹ü
			location.href = URL+"m47.php?pn=4&sn=7";
		break;
		default :
			alert(rnum+" : ÁØºñÁßÀÎ ÆäÀÌÁöÀÔ´Ï´Ù.");
	}
}

function M05(rnum){ // community
	rnum = Number(rnum);
	switch(rnum){
		case 0 :
		case 1 : // faq
			location.href = URL+"board/bbs/board.php?bo_table=m51";
		break;
		case 2 : // notice
			location.href = URL+"board/bbs/board.php?bo_table=m52";
		break;
		case 3 : // qna
			location.href = URL+"board/bbs/board.php?bo_table=m53";
		break;
		default :
			alert(rnum+" : ÁØºñÁßÀÎ ÆäÀÌÁöÀÔ´Ï´Ù.");
	}
}

function topM(rnum){ // top-menu
	switch(rnum){
		case 0 :
		case 1 : //home
			location.href = URL+"index.php"; 
		break;
		case 2 : //contact us
			location.href = URL+"m12.php?pn=1&sn=2"; 
		break;
		case 3 : //sitemap
			location.href = URL+"sitemap.php"; 
		break;
		default :
			alert(rnum+" : ÁØºñÁßÀÎ ÆäÀÌÁöÀÔ´Ï´Ù.");
	}
}

function lang(rnum){ // ±¹¹®,¿µ¹®,Áß¹®
	switch(rnum){
/*
		case 0 :
		case 1 : //kor
			location.href = URL+"index.php"; 
		break;
		case 2 : //eng
			location.href = URL+"m12.php?pn=1&sn=2"; 
		break;
		case 3 : //chi
			location.href = URL+"sitemap.php"; 
		break;
*/
		default :
			alert(rnum+" : ÁØºñÁßÀÎ ÆäÀÌÁöÀÔ´Ï´Ù.");
	}
}
