//swf file move
function CallAction(strID)
{
	//alert(strID);
	switch (strID.toLowerCase())
	{
		case "home":
			location.href = "main.htm";
			break;
		case "index":
			PlayBgm();
			location.href = "main.htm";
			break;
		case "profile":
			location.href = "profile.htm";
			break;
		case "albuminfo" :
			location.href = "albuminfo.htm";
			break;
		case "tracklist" :
			location.href = "tracklist.htm";
			break; 
		case "biography" :
			location.href = "biography.htm";
			break;
		case "discography" :
			location.href = "discography.htm";
			break;
		case "videoclip" :
			location.href = "videoclip.htm";
			break;
		case "forum" :
			strfile = "/4th/forum/forum_index.asp?f_id=4&cateid=8&subid=";
			window.open (strfile,"forum");
			break;

		case "fromtvxq" :
			strfile = "/pages/_common/board/List.asp?bno=102";
			window.open (strfile,"story","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=798,height=720");
			break;
		case "staffdiary" :
			strfile = "/pages/_common/board/List.asp?bno=103";
			window.open (strfile,"story","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=798,height=720");
			break;

		case "fanboard" :
			strfile = "/pages/_common/board/List.asp?bno=1001";
			window.open (strfile,"fanboard","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=798,height=720");
			break;
		case "noticenews" :
			strfile = "/pages/_common/board/List.asp?bno=101";
			window.open (strfile,"newboard","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=798,height=720");
			break;
		case "notice" :
			strfile = "/pages/_common/board/List.asp?bno=101";
			window.open (strfile,"newboard","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=798,height=720");
			break;
		case "news" :
			strfile = "/pages/_common/board/List.asp?bno=101";
			window.open (strfile,"newboard","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=798,height=720");
			break;
		case "newsnotice" :
			strfile = "/pages/_common/board/List.asp?bno=101";
			window.open (strfile,"newboard","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=798,height=720");
			break;
		case "schedule" :
			strfile = "/pages/_common/board/schedule_list.asp";
			window.open (strfile,"schedule","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=798,height=720");
			break;



		case "play" :
			PlayBgm();
			break;
		case "stop" :
			StopBgm();
			break;
		case "kor" :
			SetLanguage("kor");
			break;
		case "eng" :
			SetLanguage("eng");
			break;
		case "jpn" :
			SetLanguage("jpn");
			break;
		case "chn" :
			SetLanguage("chn");
			break;

		case "comingsoon" :
			alert("coming soon! ");
			break;


		case "prev" :
			location.href = "/pages/ab/version02/main.sm";
			break;

		case "vod" :
			introOpen();
			break;
		case "close" :
			introClose();
			break;


		default :
			if (!isNaN((strID)))
			{
				//StopBgm();
				openMovie(strID);
				return;
			}
			else if( strID.substr(0,6) == "TVXQ" )
			{
				try
				{
					StopBgm();	
				}
				catch (err)
				{}

				mpOpen(strID);
				return;
			}

			location.href = "/pages/ab/version02/main.sm";
	}
}

function openMovie(id)
{
	strUrl = "/pages/TVXQ/version01/player.sm?id=" + id;
	window.open(strUrl,"MoviePlayer","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=360");
}
function mpOpen(conID)
{
	try{
		StopBgm();
	}
	catch (err)
	{}
	window.open("http://stmx.iple.com/Player/mediaPlay.asp?id=" + conID + "","prgMP","width=350, height=390");
	return ;
}
