/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Description    + ROOT °æ·Î ¼³Á¤ÇÏ±â
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
var WebRootDir = "";

var loginWin;


/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Description    + ÇÃ·¡½ÃÆÄÀÏ ·ÎµåÇÏ±â
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
function flash_load(fileid, filename, widths, heights, fvs, wmd){

this.FlashVars = (fvs != undefined)? fvs :'';
this.Wmod = (wmd != undefined)? wmd :''; 


var strSwf = "";
var tmpNum = Math.round(Math.random()*1);

//var dir = (tmpNum == 1) ? "/images/event/shine/" : "/images2/event/shine/";
var dir = (tmpNum == 1) ? "/event/shinetv/" : "/event/shinetv/";

strSwf += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
strSwf += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"';
strSwf += 'width="'+widths+'" height="'+heights+'" id="'+fileid+'" >';
strSwf += '<param name="movie" value="'+dir+filename+'" />';
strSwf += '<param name="quality" value="high" />';
strSwf += (FlashVars != null) ? '<param name="FlashVars" value="'+FlashVars+'">' : '';
//strSwf += (Wmod != null) ? '<param name="wmode" value="'+Wmod+'">' : ''; 
strSwf += '<embed';
strSwf += (FlashVars != null) ? ' FlashVars="'+FlashVars+'"' : ''; 
strSwf += (Wmod != null) ? ' wmode="'+Wmod+'"' : ''; 
strSwf += ' src="'+dir+filename+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"';
strSwf += 'type="application/x-shockwave-flash" width="'+widths+'" height="'+heights+'"  name="'+fileid+'" ></embed>';
strSwf += '</object>';

document.write(strSwf);
}

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Description    + ÇÃ·¡½Ã ³»¿¡¼­ ·¹ÀÌ¾îÃ¢ ¶ç¿ì±â
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
// ·¹ÀÌ¾îÃ¢ ´Ý±â
var pop = null;
function layer_hide()
{
	if(pop != null){
		pop.close();
		pop = null;
	}
/*
	document.all.popLayer.style.visibility = 'hidden';
	document.frames.board.location.href = WebRootDir+"/blank.htm";
*/
}

// ·¹ÀÌ¾îÃ¢ ¿ÀÇÂ
function layer_show(code)
{
	pop = window.open("popup_login.jsp","shineLogin","width=417,height=200,toolbar=no,location=no,screenY=0,alwaysRaised=yes,status=no,scrollbars=yes, resizable=1");
	pop.focus();
/*
	document.all.popLayer.style.visibility = 'visible';
	if (code == "login")
	{
		document.frames.board.location.href = WebRootDir+"login.jsp";
	}
	else
	{
		
		document.frames.board.location.href = WebRootDir+"login.jsp";
	}
*/	
}

// ·Î±×ÀÎÃ¢ ¿ÀÇÂ
function open_login(code1, code2)
{
	var pop = "";
	pop = window.open("popup_login.jsp?eventType="+code1+"&eventTypeSub="+code2+"","shineLogin","width=400,height=200,toolbar=no,location=no,screenY=0,alwaysRaised=yes,status=no,scrollbars=no, resizable=1");
	pop.focus();
}