﻿//var selLang = "";
function menuLink(Step1, Step2){
	//alert(Step1);
	switch(Step1){
		case 1:
			switch(Step2){
				case 0:startUrl('ryokan.search'); break;
				case 1:startUrl('ryokan.search'); break;
				case 2:startUrl('ryokan.searchDetail'); break;
			};
			break;
		case 2: 
			switch(Step2){
				case 0:startUrl('ryokan.recommend'); break;
				case 1:startUrl('ryokan.recommend'); break;
				case 2:startUrl('ryokan.recommend3'); break;
				case 3:startUrl('ryokan.recommend4'); break;
			};
			break;
		case 3: 
			switch(Step2){
				case 0:startUrl('traffic.shinkansen'); break;
				case 1:startUrl('traffic.shinkansen'); break;
				case 2:startUrl('traffic.jumbo'); break;
				case 3:startUrl('traffic.mk'); break;
			};
			break;
		case 4: 
			
			switch(Step2){
				case 0:startUrl('ryokan.notice'+selLang); break;
				case 1:startUrl('ryokan.notice'+selLang); break;
				case 2:startUrl('ryokan.board'+selLang); break;
				case 3:startUrl('ryokan.faq'+selLang); break;
				case 4:startUrl('ryokan.pds'+selLang); break;
			};
			/*
			switch(Step2){
				case 0:window.location.href="/flash/goNext.asp?goNext=notice"; break;
				case 1:window.location.href="/flash/goNext.asp?goNext=notice"; break;
				case 2:window.location.href="/flash/goNext.asp?goNext=qna"; break;
				case 3:window.location.href="/flash/goNext.asp?goNext=faq"; break;
			};
			*/
			break;
		case 5:
			switch(Step2){
				case 0:startUrl('information.area'); break;
				case 1:startUrl('information.area'); break;
				case 2:startUrl('information.guide'); break;
				case 3:startUrl('information.onsen'); break;
			};
			break;
		
		//사이트가이드
		case 6:
			window.open('/guide/guide.html','guide','width=800,height=600,scrollbars=yes');
			break;
	}
}
