﻿function peak(name){

	switch (name){
		case "서래봉":
			window.open("peak01.html?menucode=global_01_03_02","_self");
			break;
		case "불출봉":			
			window.open("peak02.html?menucode=global_01_03_02","_self");
			break;
		case "망해봉":			
			window.open("peak03.html?menucode=global_01_03_02","_self");
			break;
		case "연지봉":			
			window.open("peak04.html?menucode=global_01_03_02","_self");
			break;
		case "까치봉":			
			window.open("peak05.html?menucode=global_01_03_02","_self");
			break;
		case "신선봉":
			window.open("peak06.html?menucode=global_01_03_02","_self");
			break;
		case "연자봉":
			window.open("peak07.html?menucode=global_01_03_02","_self");
			break;
		case "장군봉":
			window.open("peak08.html?menucode=global_01_03_02","_self");
			break;
		case "월령봉":
			window.open("peak10.html?menucode=global_01_03_02","_self");
			break;
		case "상왕봉":
			window.open("peak11.html?menucode=global_01_03_02","_self");
			break;
		case "사자봉":
			window.open("peak12.html?menucode=global_01_03_02","_self");
			break;
		case "백학봉":
			window.open("peak13.html?menucode=global_01_03_02","_self");
			break;
		
	}
}
function temple(name){

	switch (name){
		case "성불암":			
			window.open("temple06.html?menucode=global_01_03_01","_self");
			break;
		case "도덕암":			
			window.open("temple05.html?menucode=global_01_03_01","_self");
			break;
		case "내장사":			
			window.open("temple01.html?menucode=global_01_03_01","_self");
			break;
		case "원적암":			
			window.open("temple04.html?menucode=global_01_03_01","_self");
			break;
		case "벽련암":
			window.open("temple03.html?menucode=global_01_03_01","_self");
			break;
		case "백양사":
			window.open("temple02.html?menucode=global_01_03_01","_self");
			break;
	
		
	}
}
function vally(name){

	switch (name){
		case "금선계곡":			
			window.open("vally01.html?menucode=global_01_03_03","_self");
			break;
		case "원적계곡":			
			window.open("vally02.html?menucode=global_01_03_03","_self");
			break;
		case "금선폭포":			
			window.open("vally03.html?menucode=global_01_03_03","_self");
			break;
		case "도덕폭포":			
			window.open("vally04.html?menucode=global_01_03_03","_self");
			break;
		case "몽계폭포":
			window.open("vally05.html?menucode=global_01_03_03","_self");
			break;		
	}
}

function place(name){
	//alert(name);
	switch(name){
		case "peak01":
			window.open("peak01.html?menucode=global_01_03_02","_self");
			break;
		case "peak02":			
			window.open("peak02.html?menucode=global_01_03_02","_self");
			break;
		case "peak03":			
			window.open("peak03.html?menucode=global_01_03_02","_self");
			break;
		case "peak04":			
			window.open("peak04.html?menucode=global_01_03_02","_self");
			break;
		case "peak05":			
			window.open("peak05.html?menucode=global_01_03_02","_self");
			break;
		case "peak06":
			window.open("peak06.html?menucode=global_01_03_02","_self");
			break;
		case "peak07":
			window.open("peak07.html?menucode=global_01_03_02","_self");
			break;
		case "peak08":
			window.open("peak08.html?menucode=global_01_03_02","_self");
			break;
		case "peak10":
			window.open("peak10.html?menucode=global_01_03_02","_self");
			break;
		case "peak11":
			window.open("peak11.html?menucode=global_01_03_02","_self");
			break;
		case "peak12":
			window.open("peak12.html?menucode=global_01_03_02","_self");
			break;
		case "peak13":
			window.open("peak13.html?menucode=global_01_03_02","_self");
			break;
		case "temple06":			
			window.open("temple06.html?menucode=global_01_03_01","_self");
			break;
		case "temple05":			
			window.open("temple05.html?menucode=global_01_03_01","_self");
			break;
		case "temple01/01":			
			window.open("temple01.html?menucode=global_01_03_01","_self");
			break;
		case "temple04":			
			window.open("temple04.html?menucode=global_01_03_01","_self");
			break;
		case "temple03":
			window.open("temple03.html?menucode=global_01_03_01","_self");
			break;
		case "temple02/01":
			window.open("temple02.html?menucode=global_01_03_01","_self");
			break;
		case "vally01":			
			window.open("vally01.html?menucode=global_01_03_03","_self");
			break;
		case "vally02":			
			window.open("vally02.html?menucode=global_01_03_03","_self");
			break;
		case "vally03":			
			window.open("vally03.html?menucode=global_01_03_03","_self");
			break;
		case "vally04":			
			window.open("vally04.html?menucode=global_01_03_03","_self");
			break;
		case "vally05":
			window.open("vally05.html?menucode=global_01_03_03","_self");
			break;	
	}


}


function movieobject(moviename){
	if(navigator.appName.indexOf("Microsoft") != -1){
		return window[moviename];
	} else{
		return document[moviename];
	}
}


function flash(loc){

	loc = loc - 1;
	movieobject("movie").GotoFrame(loc);

}
function pvrViewer(loc,country){
	str1 = loc.split("/");
	if (str1.length==1)
	{	window.open("/newpvr/pvr_view_map.html?pvr="+loc+"&mode="+country, "pvrView", "left=0, top=0, status=no, resize=no, width=800, height=470")
	}else{
		window.open("/newpvr/pvr_view_map2.html?pvr="+loc+"&mode="+country, "pvrView", "left=0, top=0, status=no, resize=no, width=800, height=500")
	}
}
function pvrViewer1(loc,country){
	str1 = loc.split("/");
	if (str1.length==1)
	{	window.open("/newpvr/pvr_view.html?pvr="+loc+"&mode="+country, "pvrView", "left=0, top=0, status=no, resize=no, width=800, height=470")
	}else{
		window.open("/newpvr/pvr_view_submap.html?pvr="+loc+"&mode="+country, "pvrView", "left=0, top=0, status=no, resize=no, width=800, height=500")
	}
}
function pvrView(loc,country){
	var len = loc.length;
	
	if (len == 11)
	{	
		title = loc.substring(0,len-3);
		flash = loc.substring(0,len-5);
		if (title == "temple01")
		{
			flash1 = "temple_nj";
		} else if (title == "temple02")
		{
			flash1 = "temple_by";
		}
		
	} else if (len == 14)
	{
		title = loc.substring(0,len-3);	
		flash = title;

	} else
	{	
		title = loc;
		flash = loc.substring(0, len-2);
		
	}
	
	switch (country)
	{
	case "KOR" :
		if (len==11)
		{ window.open("/pvr/" + loc + "/pvrPanorama.html?title="+title + "&flash="+flash+"&flash1="+flash1+"&help=help2&country=KOR", "pvrView", "left=0, top=0, status=no, resize=no, width=760, height=440");
		} else {
		window.open("/pvr/" + loc + "/pvrPanorama.html?title="+title + "&flash="+flash+"&help=help&country=KOR", "pvrView", "left=0, top=0, status=no, resize=no, width=760, height=440");
		}
		break;
	case "ENG" :
		if (len == 11)
		{
			window.open("/pvr/" + loc + "/pvrPanorama.html?title="+title+"_eng&flash="+flash+"_eng&flash1="+flash1+"_eng&help=help2_eng&country=ENG", "pvrView", "left=0, top=0, status=no, resize=no, width=760, height=440");
		}else {
			window.open("/pvr/" + loc + "/pvrPanorama.html?title="+title+"_eng&flash="+flash+"_eng&help=help_eng&country=ENG", "pvrView", "left=0, top=0, status=no, resize=no, width=760, height=440");
		}
		break;
	default:
		if (len==11)
		{ window.open("/pvr/" + loc + "/pvrPanorama.html?title="+title + "&flash="+flash+"&flash1="+flash1+"&help=help2&country=KOR", "pvrView", "left=0, top=0, status=no, resize=no, width=760, height=440");
		} else {
		window.open("/pvr/" + loc + "/pvrPanorama.html?title="+title + "&flash="+flash+"&help=help&country=KOR", "pvrView", "left=0, top=0, status=no, resize=no, width=760, height=440");
		}
		break;
	}

}

function pvrView1(loc,country){
	var len = loc.length;
	if ((len == 11) || (len==14))
	{ title = loc.substring(0,len-3);
	} else { title = loc ;}

	 switch (country)
	 {
	 case "KOR":
		 View1 = window.open("/pvr/" + loc + "/panorama.html?title="+title, "pvrView", "left=100, top=50, status=no, resize=no, width=600, height=400");
		 break;
	 case "ENG":
		 View1 = window.open("/pvr/" + loc + "/panorama.html?title="+title+"_eng", "pvrView", "left=100, top=50, status=no, resize=no, width=600, height=400");
		 break
	  default:
		 View1 = window.open("/pvr/" + loc + "/panorama.html?title="+title, "pvrView", "left=100, top=50, status=no, resize=no, width=600, height=400");
		 break;	 
	 } 

  View1.window.focus();
}

function vodPlayer(StreamId)
{
	window.open("http://210.204.38.9/intercaster/Client_VodPlayer.asp?StreamId="+StreamId,"Player","width=570,height=445,scrollbar=no.status=no,toolbar=no");
}