
// sitemap start
function menu(mm, num) {

	if(mm=='tm'){
		switch(num){
			case '0' : document.location.href="/"; break;
			case '1' : document.location.href="/member/login.asp"; break;
			case '1_2' : document.location.href="/member/logout.asp"; break;
			case '2' : document.location.href="/member/join.asp"; break;
			case '2_2' : document.location.href="/member/modify.asp"; break;
			case '3' : document.location.href="/mypage/main.asp"; break;
		}				
	}
	
	if(mm=='bm'){
		switch(num){
			case '1' : document.location.href="/member/article.asp"; break;
			case '2' : document.location.href="/member/privacy.asp"; break;
			case '3' : Open_Window('/noemail.asp','noemail','400','230','no'); break;
			case '4' : document.location.href="/customer/contact.asp"; break;
			case '5' : break;
		}				
	}
	
	if(mm=='lm'){
		switch(num){
			case '1' : document.location.href="/order/make.asp"; break;
			case '2' : document.location.href="/order/info.asp"; break;
			case '3' : document.location.href="/mypage/list.asp"; break;
		}				
	}

	if(mm=='m1'){ //megatoday
		switch(num){
			case '0' : document.location.href="/"; break;
		}				
	}
	
	if(mm=='m2'){ //megaweek
		switch(num){
			case '0' : document.location.href="/week.asp"; break;
		}				
	}
	
	if(mm=='m3'){ //megahit
		switch(num){
			case '0' : document.location.href="/hit.asp"; break;
		}				
	}
	
	if(mm=='m4'){ //cscenter
		switch(num){
			case '0' : document.location.href="/cscenter/main.asp"; break;
		}				
	}
	
	if(mm=='member'){
		switch(num){
			case '1' : document.location.href="/member/login.asp"; break;
			case '2' : document.location.href="/member/join.asp"; break;
			case '3' : document.location.href="/member/find.asp"; break;
		}				
	}
	
	if(mm=='mypage'){
		switch(num){
			case '1' : document.location.href="/mypage/shopping.asp"; break;
			case '2' : document.location.href="/mypage/point.asp"; break;
			case '3' : document.location.href="/mypage/qna.asp"; break;
			case '4' : document.location.href="/mypage/modify.asp"; break;
			case '5' : document.location.href="/mypage/away.asp"; break;
			
			//case '3' : document.location.href="/mypage/cert.asp"; break;
			//case '4' : document.location.href="/mypage/qna.asp"; break;
			//case '5' : document.location.href="/mypage/modify.asp"; break;
			//case '6' : document.location.href="/mypage/away.asp"; break;
		}				
	}
		

	if(mm=='cscenter'){
		switch(num){
			case '0' : document.location.href="/cscenter/main.asp"; break;
			case '1' : document.location.href="/cscenter/news.asp"; break;
			case '2' : document.location.href="/cscenter/faq.asp"; break;
			case '3' : document.location.href="/cscenter/qna_write.asp"; break;
			case '4' : document.location.href="/cscenter/after.asp"; break;
			case '5' : document.location.href="/cscenter/guide.asp"; break;
			case '6' : document.location.href="/cscenter/overture_write.asp"; break;
			case '7' : document.location.href="/cscenter/megatoday.asp"; break;
			case '8' : document.location.href="/cscenter/cs_cooperation.asp"; break;
			case '9' : document.location.href="/cscenter/cs_covenant.asp"; break;
			case '10' : document.location.href="/cscenter/privacy.asp"; break;
			
		}				
	}
		
}




// sitemap end