    var nBodyWidth = 600;
	var nBodyHeight = 516;

	var nMaxWidth = 490;
	var nMaxHeight = 420;

	var nLayerWidth = 105;
	var nLayerHeight = 93;

	function showUserMenu(um_id, si_cd, mini_yn)
	{

//		try
//		{
			var obj = document.getElementById("layerUserMenu");
			var HTML = '';

			HTML = '<table width="105" height="93" border="0" cellpadding="0" cellspacing="0">';

			HTML += '<tr height="23" onMouseOver="user_menu_over(this);" onMouseOut="user_menu_out(this);" style="cursor:hand;">';
			HTML += '<td style="padding:2 0 0 9; color:40444A;" onClick="open_studyshare(\''+ um_id +'\');">Ä£±¸ ¿äÃ»</td>';
			HTML += '</tr>';

			HTML += '<tr height="23" onMouseOver="user_menu_over(this);" onMouseOut="user_menu_out(this);" style="cursor:hand;">';
			HTML += '<td style="padding:2 0 0 9; color:40444A;" onClick="open_sendletter(\''+ um_id +'\');">ÂÊÁö º¸³»±â</td>';
			HTML += '</tr>';

			HTML += '<tr height="1"><td><img src="/_include/js/images/layer_menu_bg_dotline.gif" width="105" height="1"></td></tr>';

			if (mini_yn == 1){
				HTML += '<tr height="23" onMouseOver="user_menu_over(this);" onMouseOut="user_menu_out(this);" style="cursor:hand;">';
				HTML += '<td style="padding:2 0 0 9; color:40444A;" onClick="open_minignb(\''+ si_cd +'\');">MINI GnB °¡±â</td>';
				HTML += '</tr>';
			}else{
				HTML += '<tr height="23" >';
				HTML += '<td style="padding:2 0 0 9; color:CFCFCF;" >MINI GnB °¡±â</td>';
				HTML += '</tr>';
			}

			HTML += '<tr height="23" onMouseOver="user_menu_over(this);" onMouseOut="user_menu_out(this);" style="cursor:hand;">';
			HTML += '<td style="padding:2 0 0 9; color:40444A;" onClick="open_profile(\''+ um_id +'\');">ÇÁ·ÎÇÊ º¸±â</td>';
			HTML += '</tr>';

			HTML += '</table>';

			obj.innerHTML = HTML;

			obj.style.display = "block";
//		}
//		catch(e){}
	}

	function hideUserMenu()
	{
		try
		{
			document.getElementById("layerUserMenu").style.display = "none";
		}
		catch(e){}
	}

	function user_menu_over(obj) {
		obj.style.backgroundColor = 'E2E2E2';
	}

	function user_menu_out(obj) {
		obj.style.backgroundColor = 'FFFFFF';
	}

	function checkMouseClick()
	{
		if (document.getElementById("layerUserMenu").style.display != "none")
			hideUserMenu();
	}

	function moveLayer(e)
	{
/*
		var posX = (e.clientX + nLayerWidth > nBodyWidth) ? nMaxWidth : e.clientX;
		var posY = (e.clientY + nLayerHeight > nBodyHeight) ? nMaxHeight : e.clientY;
*/
		document.getElementById("layerUserMenu").style.left = e.clientX + document.body.scrollLeft;
		document.getElementById("layerUserMenu").style.top = e.clientY + document.body.scrollTop;
	}

	function open_profile(um_id)
	{
		var w		= 333;
		var h		= 293;
		var winl = (screen.width - w) / 2; 
		var wint = (screen.height - h) / 2; 

		var ynStudyGroup = 0;
		if (document.getElementById("ynStudyGroup"))
			ynStudyGroup = document.getElementById("ynStudyGroup").value;

		window.open("/_include/profile/popup_profile.php?um_id=" + um_id +"&ynStudyGroup=" + ynStudyGroup, "win_profile", "width=333, height=293, left="+winl+", top="+wint+", status=yes, resizable=no").focus();
	}

	function open_studyshare(um_id)
	{
		var w		= 333;
		var h		= 196;
		var winl = (screen.width - w) / 2; 
		var wint = (screen.height - h) / 2; 

		var ynStudyGroup = 0;
		if (document.getElementById("ynStudyGroup"))
			ynStudyGroup = document.getElementById("ynStudyGroup").value;

		window.open("/_include/share/popup_share.php?um_id=" + um_id +"&ynStudyGroup=" + ynStudyGroup, "win_share", "width=333, height=196, left="+winl+", top="+wint+", status=yes, resizable=no").focus();
	}

	function open_sendletter(um_id)
	{
		var w		= 392;
		var h		= 365;
		var winl = (screen.width - w) / 2; 
		var wint = (screen.height - h) / 2; 

		var ynStudyGroup = 0;
		if (document.getElementById("ynStudyGroup"))
			ynStudyGroup = document.getElementById("ynStudyGroup").value;

		window.open("/_include/letter/popup_letter.php?um_id=" + um_id +"&ynStudyGroup=" + ynStudyGroup, "win_letter", "width=392, height=365, left="+winl+", top="+wint+", status=yes, resizable=no").focus();
	}

	function open_minignb(mini_cd)
	{
		var w		= 800;
		var h		= 500;
		var winl = (screen.width - w) / 2; 
		var wint = (screen.height - h) / 2; 
		window.open("/mini_gnb/?mini_cd="+mini_cd, "mini", "width=800, height=500, resizable=0, scrollbars=0, left="+winl+", top="+wint+", status=1, titlebar=0, location=0").focus();
	}

	document.onclick = checkMouseClick;



document.write('<span id="layerUserMenu" style="width:107px; height:95px; position:absolute; display:none; border:1px solid black; background-color:white;z-index:9999" class="inside"></span>');
