//문서내의 링크에서 포커스시 점선 제거
// 단, 이미지맵에 링크는 포커스가 안 없어짐.
function bluring()
{ 
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG")
		document.body.focus(); 
}

document.onfocusin = bluring; 

//동영상 팝업처리
function mpOpen(conID)
{

	try{	StopBgm(); }
	catch(err){}
	window.open("http://www.smtown.com/Player/mediaPlay.aspx?id=" + conID + "","prgMP","width=512px, height=418px");
	return ;
}

// BGM Player Play
function PlayBgm()
{
	top.frames[0].WMPlay.Play();
}

// BGM Player Stop
function StopBgm()
{
	top.frames[0].WMPlay.Stop();
}

// Set Language
function SetLanguage(strLang)
{
	switch (strLang.toLowerCase())
	{
		case 'kor' : 
			SetCookie('Lang', 'kor', 1300);
			break;
		case 'chn' : 
			SetCookie('Lang', 'chn', 1300);
			break;
		case 'jpn' : 
			SetCookie('Lang', 'jpn', 1300);
			break;
		case 'eng' :
			SetCookie('Lang', 'eng', 1300);
			break;
		}

		location.reload();
}

//쿠키 세팅함수
function SetCookie( name, value, expiredays )
{ 
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays ); 
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
}