var layeron = "#F8F8F8"; 

document.writeln("<div id=shotcut_pop style=display:none;position:absolute;z-index:1000; onmouseout='shotcut_hide()' onMouseOver=\"this.style.display='block'\"></div>");


function mini_pop(m_id){
	window.open("/myhome/navi_main.asp?m_id="+m_id,"minihome"+m_id,"width=900,height=700,scrollbars=no,resize=no");
}


function mini_pop2(m_id,m_div,m_idx,m_diary_date){
	window.open("/myhome/navi_loc.asp?m_id="+m_id+"&m_div="+m_div+"&m_idv="+m_idx+"&m_diary_date="+m_diary_date,"minihome"+m_id,"width=900,height=700,scrollbars=no,resize=no");
}

function memo(m_id){
open("/memo/memo_write.asp?m_id="+m_id,"","left=0,top=0,scrollbars=no, resizable=no, width=400, height=260");
}

function friend(m_id){
open("/friend/contact_pop.asp?m_id="+m_id,"","left=0,top=0,scrollbars=no, resizable=no, width=400, height=250");
}

function friend2(m_id){
open("/friend/friend_del.asp?m_id="+m_id,"","left=0,top=0,scrollbars=no, resizable=no, width=400, height=200");
}

function shotpop(m_num) {/*{{{*/
	var args=shotpop.arguments;
	var argc=shotpop.arguments.length;
	
	obj_width = 100;
	obj_height = 91;
	

	strHTML = "";
	strHTML += "<TABLE width='80' border=0 cellPadding=3 cellSpacing=1 bgcolor='dddddd'>";
	strHTML += "<TR>" ;
	strHTML += "<TD style='padding:3 3 3 3' bgcolor='ffffff'>";
	strHTML +=	"<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
	strHTML +=	"<tr>";
	strHTML +=	"<td height='20' align='center' style='cursor:hand' onClick=\"mini_pop('"+m_num+"')\">´ÙÀÌ¾î¸®</td>";
	strHTML +=	"</tr>";
	strHTML +=	"<tr>";
	strHTML +=	"<td height='1' background='../images/dot_03.gif'></td>";
	strHTML +=	"</tr>";
	strHTML +=	"<tr>"
	strHTML +=	"<td height='20' align='center'  style='cursor:hand' onClick=\"memo('"+m_num+"')\">ÂÊÁöº¸³»±â</td>";
	strHTML +=	"</tr>";
	strHTML +=	"<tr>";
	strHTML +=	"<td height='1' background='../images/dot_03.gif'></td>";
	strHTML +=	"</tr>";
	strHTML +=	"<tr>";
	strHTML +=	"<td height='20' align='center'  style='cursor:hand' onClick=\"friend('"+m_num+"')\">Ä£±¸µî·Ï</td>";
	strHTML +=	"</tr>";
	strHTML +=	"<tr>";
	strHTML +=	"<td height='1' background='../images/dot_03.gif'></td>";
	strHTML +=	"</tr>";
	strHTML +=	"<tr>";
	strHTML +=	"<td height='20' align='center' style='cursor:hand' onClick=\"friend2('"+m_num+"')\">Ä£±¸»èÁ¦</td>";
	strHTML +=	"</tr>";
	strHTML +=	"</table>";
	strHTML +=	"</TD>";
	strHTML +=	"</TR>";
	strHTML +=	"</TABLE>";

	obj = shotcut_pop;
	
	obj.style.width = obj_width;
	obj.style.height = obj_height;

	obj.innerHTML = strHTML;

	var _tmpx,_tmpy,marginx,marginy;
	_tmpx=event.clientX+obj_width;
	_tmpy=event.clientY+obj_height;
	_marginx=document.body.clientWidth-_tmpx;
	_marginy=document.body.clientHeight-_tmpy ;
	if(_marginx<0) _tmpx=event.clientX+document.body.scrollLeft+_marginx;
	else _tmpx=event.clientX+document.body.scrollLeft;
	if(_marginy<0) _tmpy=event.clientY+document.body.scrollTop+_marginy+20;
	else _tmpy=event.clientY+document.body.scrollTop;

	obj.style.posLeft=_tmpx-5;
	obj.style.posTop=_tmpy-5;

	obj.style.display = 'block';
}/*}}}*/

// ÆË¾÷ ´Ý±â
function shotcut_hide() {/*{{{*/
	shotcut_pop.style.display = 'none';
}/*}}}*/
