//menu link
function menu_link(pType)
{
  //alert(pType);
  var strURL = new String()
  switch(pType){
    case "1"  : // 국문
      strURL = "http://maum.org/main.asp";
      break;
		case "2"  : // 영문
      strURL = "http://eng.maum.org/eng";
      break;
		case "3"	: //청소년을 위한 마음수련
			strURL = "http://young.maum.org/";
			break;
		case "4"	: //대학생을 위한 마음수련
			strURL = "http://univ.maum.org/";
			break;
		case "5"	: //웹진
			strURL = "http://maum-wz.iwellcomm.co.kr/index.asp";
			break;
		case "6"	: //일문
			strURL = "http://jp.maum.org";
			break;



		//Maum Meditation
		case "01"			:
		case "0101"		:
    case "010100" : // History
      strURL = "/eng/meditation/history.asp";
      break;
		case "0102"		:
    case "010200" : // What is Maum Meditation
      strURL = "/eng/meditation/whatmaum.asp";
      break;
		case "0103"		:
    case "010300" : // Benefits
      strURL = "/eng/meditation/benefits.asp";
      break;
		case "0104"		:
    case "010400"	: // Frequently Asked Questions
      strURL = "/eng/meditation/faq.asp";
      break;
    case "0105" : 
    case "010500" : // Eight Levels of Maum Meditation
      strURL = "/eng/meditation/levels.asp";
      break;

    //Programs and Events
		case "02"				:
		case "0201"			: // Programs
    case "020101" : // Regular Program
      strURL = "/eng/programs/regular.asp";
      break;
    case "020102" : // Summer/Winter Vacation Program
      strURL = "/eng/programs/vacation.asp";
      break;
		case "020103" : // Programs for Professionals
      strURL = "/eng/programs/professionals.asp";
      break;
		case "020200" : // Events
      strURL = "/eng/programs/events_list.asp";
      break;

    //Location
		case "03"				:
		case "0301"			:
    case "030100" : // Main Center and Local Centers
      strURL = "/eng/locations/maincenter.asp";
      break;
		case "0302"			:
		case "030200"	:  //Centers Around the World
			strURL = "/eng/locations/world.asp";
			break;
		case "0303"			:
		case "030300"	:  //Centers in Korea
			strURL = "/eng/locations/inkorea.asp";
			break;
		case "0304"			:
		case "030400"	:  //Photo Album
			strURL = "/eng/locations/gallery.asp";
			break;

		//Writings
		case "04"				:
		case "0401"			:
		case "040100" : // Books
      strURL = "/eng/writings/books.asp";
      break;
		case "0402"			:
		case "040200" : // This Month’s Writings from Woo Myung
      strURL = "/eng/writings/woomyung_list.asp";
      break;
		case "0403"			:
		case "040300" : // Archives
      strURL = "/eng/writings/archives_list.asp";
      break;

    //What People Say
		case "05"				:
		case "0501"			:
    case "050100" : // Meditation Experiences
      strURL = "/eng/say/experiences_list.asp";
      break;
		case "0502"			:
    case "050200" : // Media Reports
      strURL = "/eng/say/media_list.asp";
      break;
		case "0503"			:
		case "050300" : // comments
      strURL = "/eng/say/comments.asp";
      break;
		case "0504"			:
		case "050400" : // Video Clip
      strURL = "/eng/say/video_galley.asp";
      break;
		case "0505"			:
		case "050500" : // Wall Paper
      strURL = "/eng/say/wallpaper.asp";
      break;
	 	case "0506"			:
		case "050600" : // MaumMagazine
      strURL = "/eng/say/experiences2_list.asp";
      break;

		//ETC
		case "060000" : // sitemap
      strURL = "/eng/etc/mailing.asp";
      break;

		case "070000" : // 메일링 신청
			//alert("준비중입니다.");
      strURL = "/eng/etc/mailing.asp";
      break;
  }

  var pattern = new String();
  pattern = /^http:\/\/.*$/;
  if(strURL != ""){
    if(pattern.test(strURL)){
		if (pType == "1" || pType == "2" || pType == "6")
		{
			location.href=strURL;
		}else{
		      window.open(strURL);
		}
    } else {
      location.href=strURL;
    }
  }
}

function moviePopup(w, h, url)
{
	openWindow(w, h, url);
}
