﻿// **********************************************************************************************************************************
//                                      최종 수정일 : 2010-07-28(홍경은)
// **********************************************************************************************************************************
// 메인링크
	function goMenu(url) {
		switch (url) {
			case 1:	// 해외여행
				location.href='/Product/Package/PackageMain.aspx';
				break;
			case 2:	// 자유여행
				location.href='/Product/Free/FreeMain.aspx';
				break;
			case 3:	// 해외항공권
				location.href='/Product/Air/AirMain.aspx';
				break;
			case 4:	// 해외호텔
				location.href='/Product/Common/ProductList.aspx?tourType=onionhotel&menuCode=1&productCode=H';
				break;
			case 5:	// 허니문
				location.href='/product/honeymoon/honeymoonmain.aspx';
				break;
			//case 6:	// 골프여행
				//location.href='/Product/Package/PackageList.aspx?menuCode=1&productCode=G';
				//break;
			case 6:	// 골프여행
				location.href='/Product/Package/PackageList.aspx?menuCode=1&productCode=G&regionCode=C&attCode=G,L&cityCode=HET&nationCode=CN&sort=1&category=C';
				break;
			case 7:	// 부산출발
				location.href='/Product/Package/PackageList.aspx?menuCode=1&productCode=B&groupCode=PUS100';
				break;
			case 8:	// 국내여행
				location.href='/Product/Domestic/DomesticMain.aspx';
				break;	
			case 9:	// 참좋은 기획전
				location.href='/Event/EventMain.aspx';
				break;
			case 10:// 참좋은 이벤트
				location.href='/Event/Event.aspx?Event=Y&menuCode=3&productCode=EV';
				break;
			case 11:	// 해외출장
				location.href='/Product/Common/ProductList.aspx?tourType=onion&menuCode=1&productCode=BI';
				break;
			default:	//메인
				location.href='#';		
                break;
		}
     }

// 메인링크
	function goMain(url) {
		switch (url) {
			case 1:	// 메인롤링 EVENT 01
				location.href='/Event/EventView.aspx?evtseq=58';
				break;
			case 2:	// 메인롤링 EVENT 02
				location.href='/Event/EventView.aspx?evtseq=151';
				break;
			case 3:	// 메인롤링 EVENT 03
				location.href='/Event/EventView.aspx?evtseq=53';
				break;
			case 17:	// 메인롤링 EVENT 04
				location.href='/Event/EventView.aspx?evtseq=111';
				break;
			case 4:	// 긴급모객 01
				location.href='/Product/Package/packageDetail.aspx?proCode=JPP404-090605&priceSeq=1';
				break;
			case 5:	// 긴급모객 02
				location.href='/Product/Package/packageDetail.aspx?proCode=APP201-090610&priceSeq=1';
				break;
			case 6:	// 긴급모객 03
				location.href='/Product/Package/packageDetail.aspx?proCode=CPP108-090행5&priceSeq=1';
				break;
			case 7:	// 긴급모객 04
				location.href='/Product/Package/packageDetail.aspx?proCode=APF050-090605&priceSeq=1';
				break;
			case 8:	// 테마여행 01 (주말여행)
				location.href='/Event/EventView.aspx?evtseq=137';
				break;
			case 9:	// 테마여행 02 (가족여행)
				location.href='/Event/EventView.aspx?evtseq=129';
				break;
			case 10:	// 테마여행 03 (자유여행)
				location.href='/Event/EventView.aspx?evtseq=135';
				break;
			case 11:	// 테마여행 04 (온천여행)
				location.href='/Event/EventView.aspx?evtseq=119';
				break;
			case 12:	// 테마여행 05 (휴양지여행)
				location.href='/Event/EventView.aspx?evtseq=136';
				break;
			case 13:	// 테마여행 06 (골프여행)
				location.href='/Event/EventView.aspx?evtseq=134';
				break;
			case 14:	// 할인항공 Event 01
				location.href='/Product/Air/AirEventView.aspx?seq=99&region=01';
				break;
			case 15:	// 할인항공 Event 02
				location.href='/Product/Air/AirEventView.aspx?seq=100&region=02';
				break;
			case 16:	// 메인 기획전
				location.href='/Event/EventView.aspx?evtseq=273';
				break;
			case 18:	// 자유여행 배너 01 free new
				location.href='/Event/EventView.aspx?evtseq=282';
				break;
			case 19:	// 자유여행 배너 02 free hot
				location.href='/Event/EventView.aspx?evtseq=304';
				break;
			case 20:	// 떠나떠나삼천리 하단
				location.href='/Event/EventView.aspx?evtseq=141';
				break;
			default:	//메인
				location.href='#';		
                break;
		}
     }

	function goM(url) {
		switch (url) {
			// ******************** 패키지 지역별 카테고리 ********************
			case 1:	// 동남아
				location.href='/Event/EventView.aspx?evtseq=241';
				break;
			case 2:	// 일본
				location.href='/Event/EventView.aspx?evtseq=236';
				break;
			case 3:	// 중국
				location.href='/Event/EventView.aspx?evtseq=270';
				break;
			case 4:	// 유럽
				location.href='/Event/EventView.aspx?evtseq=271';
				break;
			case 5:	// 호주 뉴질랜드
				location.href='/Event/EventView.aspx?evtseq=237';
				break;
			case 6:	// 괌 사이판 남태평양
				location.href='/Event/EventView.aspx?evtseq=279';
				break;
			case 7:	// 중남미
				location.href='/Product/Package/PackageList.aspx?menuCode=7&productCode=P&groupCode=GSPP011';
				break;
			case 8:	// 미주
				location.href='/Event/EventView.aspx?evtseq=256';
				break;
			case 9:	// 인도 중동 아프리카
				location.href='/Product/Package/PackageList.aspx?menuCode=9&productCode=P&groupCode=MPPP900&sort=1&simple=N';
				break;
			case 10: //배너 EVENT 01 
				location.href='/Event/EventView.aspx?evtseq=237';
				break;
			case 11: //배너 EVENT 02
				location.href='/Event/EventView.aspx?evtseq=276';
				break;
			// ******************** 자유여행 카테고리 ********************
			case 12: //일본
				location.href='/Event/EventView.aspx?evtseq=273';
				break;
			case 13: //동남아
				location.href='/Event/EventView.aspx?evtseq=213';
				break;
			case 14: //중국
				location.href='/Event/EventView.aspx?evtseq=82';
				break;
			case 15: //유럽
				location.href='/Event/EventView.aspx?evtseq=79';
				break;
			case 16: //호주 뉴질랜드
				location.href='/Event/EventView.aspx?evtseq=186';
				break;
			case 17: //괌 사이판 남태평양
				location.href='/Event/EventView.aspx?evtseq=199';
				break;
			case 18: //미주
				location.href='/Event/EventView.aspx?evtseq=289';
				break;
			case 21: //JAPAN+ASIA
				location.href='/Product/Package/PackageList.aspx?menuCode=10&productCode=F&groupCode=FITAJP001,FITAJP002,FITAJP003';
				break;
			case 22: //JAPAN_CHINA
				location.href='/Product/Package/PackageList.aspx?menuCode=11&productCode=F&groupCode=FITJCP001,FITJCP002';
				break;
			case 23: //자유여행 1:1 문의
				location.href='/vgtboard/BoardCommonList.aspx?MasterSeq=12&menuCode=8&productCode=F';
				break;
			case 24: //몰디브
				location.href='/Product/Package/PackageList.aspx?menuCode=12&productCode=F&attCode=F&cityCode=MLE&sort=1&category=C';
				break;
			case 25: //크루즈
				location.href='/Event/EventView.aspx?evtseq=198';
				break;				
			case 19: //배너 EVENT 01
				location.href='/Event/EventView.aspx?evtseq=141&menuCode=2&productCode=EV&attCode=F';
				break;
			case 20: //배너 EVENT 02
				location.href='/product/package/packageDetail.aspx?masterCode=UPF001';
				break;
			default:	//메인
				location.href='#';		
                break;
		}
     }

// 해외여행
	function goPack(url) {
		switch (url) {
			case 1:	// 메인롤링 EVENT 01
				location.href='/Event/EventView.aspx?evtseq=240';
				break;
			case 2:	// 메인롤링 EVENT 02
				location.href='/Event/EventView.aspx?evtseq=276';
				break;
			case 3:	// 메인롤링 EVENT 03
				location.href='/Event/EventView.aspx?evtseq=252';
				break;
			case 4:	// 메인롤링 EVENT 04
				location.href='/Event/EventView.aspx?evtseq=278';
				break;
			default:	//메인
				location.href='#';		
                break;
		}
     }


// 해외항공권
	function goAir(url) {
		switch (url) {
			case 1:	// Sub Main (event 01)
				location.href='/Product/Air/AirEventView.aspx?seq=99&region=01';
				break;
			case 2:	// Sub Main (event 02)
				location.href='/Product/Air/AirEventView.aspx?seq=100&region=02';
				break;
			case 3:	// Sub Main (플래시 이벤트01)
				location.href='/Product/Air/AirEventView.aspx?seq=98&region=03';
				break;
			case 4:	// Sub Main (플래시 이벤트02)
				location.href='/Product/Air/AirEventView.aspx?seq=68&region=15';
				break;
			case 5:	// Sub Main (플래시 이벤트03)
				location.href='/Product/Air/AirEventView.aspx?seq=30&region=06';
				break;
			default:	//메인
				location.href='#';		
                break;
		}
     }	

// 자유여행
	function goFree(url) {
		switch (url) {
			case 1:	// 메인롤링 EVENT 01
				location.href='/Event/EventView.aspx?evtseq=291';
				break;
			case 2:	// 메인롤링 EVENT 02
				location.href='/Event/EventView.aspx?evtseq=110';
				break;
			case 3:	// 메인롤링 EVENT 03
				location.href='/Event/EventView.aspx?evtseq=289';
				break;
		    case 4:	// 메인롤링 EVENT 04
				location.href='/Event/EventView.aspx?evtseq=273';
				break;
		    case 5:	// 메인롤링 EVENT 05
				location.href='/Event/EventView.aspx?evtseq=255';
				break;
			case 6:	// 주목받는 이벤트
				location.href='/Event/EventView.aspx?evtseq=141';
				break;
			default:	//메인
				location.href='#';		
                break;
		}
     }


// 국내여행
	function goDomestic(url) {
		switch (url) {
			case 1:	// 메인롤링 EVENT 01
				location.href='/Event/EventView.aspx?evtseq=160';
				break;
			case 2:	// 메인롤링 EVENT 02
				location.href='/Event/EventView.aspx?evtseq=175';
				break;
			case 3:	// 메인롤링 EVENT 03
				location.href='/Event/EventView.aspx?evtseq=138';
				break;
			case 4:	// 메인롤링 EVENT 04
				location.href='/Event/EventView.aspx?evtseq=201';
				break;
			default:	//메인
				location.href='#';		
                break;
		}
     }

// new국내여행
	function goLocal(url) {
		switch (url) {
			case 1:	// 메인롤링 EVENT 01
				location.href='/Product/Common/Search.aspx?keyword=KPP307';
				break;
			case 2:	// 메인롤링 EVENT 02
				location.href='http://www.verygoodtour.com/Product/Common/ProductList.aspx?menuCode=2&productCode=D&iurl=http://theme.verygoodtour.com/promotion/stay_730.asp';
				break;
			case 3:	// 메인롤링 EVENT 03
				location.href='http://www.verygoodtour.com/Product/Common/ProductList.aspx?menuCode=2&productCode=D&iurl=http://theme.verygoodtour.com/promotion/rafting.asp';
				break;
			default:	//메인
				location.href='#';		
                break;
		}
     }


// 허니문
	function goHy(url) {
		switch (url) {
			case 1:	// 메인롤링 EVENT 01
				location.href='/';
				break;
			case 2:	// 메인롤링 EVENT 02
				location.href='/';
				break;
			case 3:	// 메인롤링 EVENT 03
				location.href='/';
				break;
			case 4:	// 메인롤링 EVENT 04
				location.href='/';
				break;
			//case 5:	맞춤견적
				//location.href='/product/honeymoon/vipestimate.aspx';
				//break;
			case 5:	// 1:1문의
				location.href='/VgtBoard/BoardQuestionList.aspx?menuCode=1&productCode=w';
				break;
			case 6:	// 배너 EVENT 01
				location.href='/Event/Event.aspx?menuCode=2&productCode=EV&attCode=W&sort=1';
				break;
			case 7:	// 배너 EVENT 02
				location.href='/common/info.aspx?type=Honeyinfo&page=tourism&menuCode=&productCode=W';
				break;
			case 8:	// 허니문사은품
				location.href='/common/info.aspx?type=Honeyinfo&page=Page_Special&menuCode=&productCode=W';
				break;
			case 9:	// 허니문 찾아오시는길
				location.href='/common/info.aspx?type=companyinfo&page=companymap&menuCode=5&productCode=CO';
				break;
			case 10:// 짐꾸리기
				location.href='/common/info.aspx?type=tourinfo&page=tourready&menuCode=1&productCode=W';
				break;
			case 11:// LEFT 공지사항
				location.href='/VgtBoard/BoardCommonList.aspx?MasterSeq=14&CategorySeq=0&menuCode=&productCode=W';
				break;
			case 12:// LEFT 사은품안내
				location.href='/common/info.aspx?type=Honeyinfo&page=Page_Special&menuCode=&productCode=W';
				break;
			case 13:// LEFT 블로그
				//location.href='http://blog.verygoodtour.com/honey/cover';
				window.open('http://blog.verygoodtour.com/honey/cover');
				break;
			default:	//메인
				location.href='#';		
                break;
		}
     }

 // 자유여행메인 (지역추천 VS 테마추천)
// goPackage(1, "theme")
// goPackage(1, "region")
    function goPackage(v, t)
    {
        if (t == "theme")    
        {
            switch(v)
            {
                case 1:
					location.href='/';
					break;   
				case 2:
					location.href='/';
					break; 
				case 3:
					location.href='/';
					break; 
				case 4:
					location.href='/';
					break; 
				case 5:
					location.href='/';
					break; 
				case 6:
					location.href='/';
					break; 
				case 7:
					location.href='/';
					break; 
				default:	//메인
					location.href='/';		
					break;
            }
        }
        else
        {
            switch(v)
            {
				
				case 1:
					location.href='/product/package/packageDetail.aspx?masterCode=JPF1416'; //일본
					break;   
				case 2:
					location.href='/product/package/packageDetail.aspx?masterCode=APF222'; //동남아
					break; 
				case 3:
					location.href='/product/package/packageDetail.aspx?masterCode=CPF451'; //중국
					break; 
				case 4:
					location.href='/product/package/packageDetail.aspx?masterCode=EPF910';
					break;
				case 5:
					location.href='/product/package/packageDetail.aspx?masterCode=PPF101';
					break;
				case 6:
					location.href='/';
					break; 
				case 7:
					location.href='/product/package/packageDetail.aspx?masterCode=UPF0001'; //하와이
					break; 
				default:	//메인
					location.href='/';		
					break;
            }
        }
    }


// 이벤트메인
	function goE(url) {
		switch (url) {
			case 1:	// 메인롤링 EVENT 01
				location.href='/Event/EventView.aspx?evtseq=261';
				break;
			case 2:	// 메인롤링 EVENT 02
				location.href='/Event/EventView.aspx?evtseq=266';
				break;
			case 3:	// 메인롤링 EVENT 03
				location.href='/Event/EventView.aspx?evtseq=265';
				break;
			default:	//메인
				location.href='/';		
                break;
		}
     }