	/* =================================================================
	//	Âü    Á¶: ·¹ÀÌ¾îÀ§Ä¡
	//	ÀÛ ¼º ÀÏ: 2006.04.02 (¼öÁ¤¿Ï·á)
	================================================================= */

	var sel_obj;
	var name_layer_open = false;
	if(navigator.appName.charAt(0)=='N'){
		window.document.captureEvents(Event.MOUSEDOWN);
		window.document.onmousedown = capture;
	}
	document.onclick = divhide;

	function capture(e){
		newEvent = e;
	}

	function divhide(){
		if(name_layer_open == false){
			if(sel_obj)
				if(sel_obj.style)
					sel_obj.style.display = 'none';
		}
		name_layer_open = false;
	}

	function Layer_Show(num, status) {
		var obj = document.getElementById('UserLayer' + num);

		if(document.all) {
			obj.style.posLeft = event.clientX + document.body.scrollLeft - 13;
			obj.style.posTop  = event.clientY + document.body.scrollTop - 10;
		}
		else{
			obj.style.marginLeft = newEvent.pageX-20;
			obj.style.marginTop = newEvent.pageY-25;
		}

		if (status == 'block') {
			if(sel_obj) {
				sel_obj.style.display = 'none';
				sel_obj = null;
			}
			sel_obj = obj;

		} else sel_obj = null;

		name_layer_open = true;
		obj.style.display = status;
	}


	/* =================================================================
	//	Âü    Á¶: ÀÏ¹Ý »ç¿ëÀÚ ¿ë
	//	ÀÛ ¼º ÀÏ: 2005.06.16
	================================================================= */

	function Layer_Box(num, user_no) { 
		var body = "";
		body += '<table border=0 cellpadding=0 cellspacing=0 width=120 bgcolor="FFFFFF" style="cursor:pointer;cursor:hand;">';
		body += '<tr>';
		body += '	<td>';
		body += '<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="CCCCCC">';
		body += '<tr>';
		body += '  <td>';
		body += '     <block width=1 height=1>';
		body += '  </td>';
		body += '</tr>';
		body += '<tr>';
		body += '  <td>';
		body += '  <table align="center" border="0" cellpadding="0" cellspacing="0" width="98%" bgcolor="F9F8F6">';

		body += '<tr onmouseover="this.style.backgroundColor=\'#B6BCD2\';" style="BACKGROUND-COLOR: WHITE" onmouseout="this.style.backgroundColor=\'WHITE\';">';
		body += '   <td width="100" height="25" align="center">';
		body += '       &nbsp;&nbsp;<a href="javascript:add_favor(' + user_no + ')"><span style="font-size:9pt;">Áñ°ÜÃ£±â Ãß°¡</span></a>';
		body += '   </td>';
		body += '</tr>';
		body += '<tr>';
		body += '   <td width="120" colspan="2" bgcolor="#efefef">';
		body += '       <block width=1 height=1>';
		body += '   </td>';
		body += '</tr>';
		body += '<tr onmouseover="this.style.backgroundColor=\'#B6BCD2\';" style="BACKGROUND-COLOR: WHITE" onmouseout="this.style.backgroundColor=\'WHITE\';">';
		body += '   <td width="100" height="25" align="center">';
		body += '       &nbsp;&nbsp;<a href="/chart/user.php?no=' + user_no + '" target=_top><span style="font-size:9pt;">È¸¿ø »ó¼¼º¸±â</span></a>';
		body += '   </td>';
		body += '</tr>';

		body += '</table>';
		body += '  </td>';
		body += '</tr>';
		body += '<tr>';
		body += '  <td>';
		body += '     <block width=1 height=1>';
		body += '  </td>';
		body += '</tr>';
		body += '</table>';

		body += '	</td>';
		body += '</tr>';
		body += '</table>';

		var div = eval("document.all.UserLayer"+num);
		div.innerHTML = body;
	}

