var gstrTargetName        = "";
	var gstrMyselfName      = "";
	var gstrMenuName = "dropmenu01";
	var gstrHomeDirectory = ""
	var nMouseEvent = 0;
var BLOGURL = "http://blog.nosamo.org/";
var reco_y_num = "";
var reco_y_cnt = "";
var reco_n_num = "";
var reco_n_cnt = "";
var reco_m_cnt = "";

function PopInfo(strTargetName, strMyselfName, strHomeDirectory)
{
	gstrTargetName    = strTargetName;
  	gstrMyselfName    = strMyselfName;
  	gstrHomeDirectory = strHomeDirectory;
	
 // 	alert(gstrHomeDirectory);
	
  	if (strTargetName != strMyselfName && strMyselfName != "")
  	{
	   gstrMenuName = "dropmenu01";	// ´Ù¸¥ »ç¶÷ ÆË¾÷ÀÇ °æ¿ì
  	}
  	else
  	{
       gstrMenuName = "dropmenu02";	// ·Î±×ÀÎ ÇÏÁö ¾ÊÀº °æ¿ì
  	}

	if (document.all)
    {

         if (document.body.clientHeight >= (event.y + 130))
        {
          	if ((document.URL.indexOf("reloadFrameSet=Y") == -1) )
          	{
            	document.getElementById(gstrMenuName).style.pixelLeft=(document.body.scrollLeft+event.x)-128;
            	document.getElementById(gstrMenuName).style.pixelTop=(document.body.scrollTop+event.y)-8;
          	}
          	else
          	{
              	document.getElementById(gstrMenuName).style.pixelLeft=(document.body.scrollLeft+event.x)-8;
            	document.getElementById(gstrMenuName).style.pixelTop=(document.body.scrollTop+event.y)-8;
          	}
        }
        else
        {
          	if ((document.URL.indexOf("reloadFrameSet=Y") == -1) )
          	{
            	document.getElementById(gstrMenuName).style.pixelLeft=(document.body.scrollLeft+event.x)-128;
            	document.getElementById(gstrMenuName).style.pixelTop=(document.body.scrollTop+event.y)-160;
          	}
          	else
          	{
          	    document.getElementById(gstrMenuName).style.pixelLeft=(document.body.scrollLeft+event.x)-8;
            	document.getElementById(gstrMenuName).style.pixelTop=(document.body.scrollTop+event.y)-160;
          	}
        }

        dropmenu01.style.visibility="hidden";
        dropmenu02.style.visibility="hidden";

        if (document.getElementById(gstrMenuName).style.visibility=="hidden")
        {
            document.getElementById(gstrMenuName).style.visibility="visible";
            showSelects_mybox_ict(false);
        }
        else
        {
            hidemenu()
            showSelects_mybox_ict(true);
        }
    }
}

function hidemenu()
{
    showSelects_mybox_ict(true);
    if ((gstrMenuName != "dropmenu01")&&(gstrMenuName != "dropmenu02"))
    {
        gstrMenuName = "dropmenu01";
    }
    document.getElementById(gstrMenuName).style.visibility="hidden";
}

function hidemenu2()
{
    showSelects_mybox_ict(true);
    document.gstrMenuName.visibility="hide";
}


function setMouseEvent()
{
    nMouseEvent = 1;
}

function showSelects_mybox_ict(bVisible)
{
  if( document.URL.indexOf("needAuth/list_box.cgi") != -1 )
  {
    try
    {
        document.all.favoriteIframe.runtimeStyle.visibility = bVisible ? "" : "hidden";
    }
    catch (e) {}

    try
    {
        document.all.otherIframe.runtimeStyle.visibility = bVisible ? "" : "hidden";
        document.all.myIframe.runtimeStyle.visibility = bVisible ? "" : "hidden";
    }
    catch(e) {}
  }
}

document.write("<div id=\"dropmenu01\" style='position:absolute; left:10px; top:0px; width:120; height: 0; z-index:1; visibility: hidden' >");
document.write("<table border=0><tr><td colspan=3  height=3></td></tr><tr><td width=5 rowspan=2>&nbsp;</td><td height=5></td></tr><tr><td><table style=cursor:hand border='0' cellspacing='1' cellpadding='0'  width=100% height=100%><tr><td valign=top bgcolor=white><table border=0 cellspacing=0 cellpadding=0 width=100% height=100% style='border:1px solid #888888;'>");
document.write("<tr OnClick=\"xoGoBlog(gstrHomeDirectory);\" OnMouseOver=\"na_change_img_src('icon1', 'document', '/Comm/Images/popUpIcon1_02.gif', true);\" OnMouseOut=\"na_restore_img_src('icon1', 'document', '/Comm/Images/popUpIcon1_01.gif')\">    <td><img name='icon1' border=0 src='/Comm/Images/popUpIcon1_01.gif' width=120 height=25 alt='°³ÀÎ¹æ°¡±â'></td></tr>");
document.write("<tr OnClick=\"xoSendNote(gstrTargetName);\" OnMouseOver=\"na_change_img_src('icon2', 'document', '/Comm/Images/popUpIcon2_02.gif', true);\" OnMouseOut=\"na_restore_img_src('icon2', 'document', '/Comm/Images/popUpIcon2_01.gif')\">    <td><img name='icon2' border=0 src='/Comm/Images/popUpIcon2_01.gif' width=120 height=25 alt='ÂÊÁöº¸³»±â'></td></tr>");
document.write("<tr OnClick=\"xoSubscript(gstrTargetName);\" OnMouseOver=\"na_change_img_src('icon3', 'document', '/Comm/Images/popUpIcon3_02.gif', true);\" OnMouseOut=\"na_restore_img_src('icon3', 'document', '/Comm/Images/popUpIcon3_01.gif')\">    <td><img name='icon3' border=0 src='/Comm/Images/popUpIcon3_01.gif' width=120 height=25 alt='±Û±¸µ¶ÇÏ±â'></td></tr>");
document.write("<tr OnClick=\"xoFriend(gstrTargetName);\" OnMouseOver=\"na_change_img_src('icon4', 'document', '/Comm/Images/popUpIcon4_02.gif', true);\" OnMouseOut=\"na_restore_img_src('icon4', 'document', '/Comm/Images/popUpIcon4_01.gif')\">    <td><img name='icon4' border=0 src='/Comm/Images/popUpIcon4_01.gif' width=120 height=25 alt='Ä£±¸µî·ÏÇÏ±â'></td></tr>");
document.write("</table></td></tr></table></td><td width=5 rowspan=2>&nbsp;</td></tr><tr><td colspan=3 height=10></td></tr></table>");
document.write("</div>");

document.write("<div id=\"dropmenu02\" style='position:absolute; left:10px; top:0px; width:120; height: 0; z-index:1; visibility: hidden' >");
document.write("<table border=0><tr><td colspan=3  height=3></td></tr><tr><td width=5 rowspan=2>&nbsp;</td><td height=5></td></tr><tr><td><table style=cursor:hand border='0' cellspacing='1' cellpadding='0'  width=100% height=100%><tr><td valign=top bgcolor=white><table border=0 cellspacing=0 cellpadding=0 width=100% height=100% style='border:1px solid #888888;'>");
document.write("<tr OnClick=\"xoGoBlog(gstrHomeDirectory);\" OnMouseOver=\"na_change_img_src('icon1', 'document', '/Comm/Images/popUpIcon1_02.gif', true);\" OnMouseOut=\"na_restore_img_src('icon1', 'document', '/Comm/Images/popUpIcon1_01.gif')\">    <td><img name='icon1' border=0 src='/Comm/Images/popUpIcon1_01.gif' width=120 height=25 alt='°³ÀÎ¹æ°¡±â'></td></tr>");
document.write("<tr OnClick=\"xoSendNote(gstrTargetName);\" OnMouseOver=\"na_change_img_src('icon2', 'document', '/Comm/Images/popUpIcon2_02.gif', true);\" OnMouseOut=\"na_restore_img_src('icon2', 'document', '/Comm/Images/popUpIcon2_01.gif')\">    <td><img name='icon2' border=0 src='/Comm/Images/popUpIcon2_01.gif' width=120 height=25 alt='ÂÊÁöº¸³»±â'></td></tr>");
document.write("<tr OnClick=\"xoSubscript(gstrTargetName);\" OnMouseOver=\"na_change_img_src('icon3', 'document', '/Comm/Images/popUpIcon3_02.gif', true);\" OnMouseOut=\"na_restore_img_src('icon3', 'document', '/Comm/Images/popUpIcon3_01.gif')\">    <td><img name='icon3' border=0 src='/Comm/Images/popUpIcon3_01.gif' width=120 height=25 alt='±Û±¸µ¶ÇÏ±â'></td></tr>");
document.write("</table></td></tr></table></td><td width=5 rowspan=2>&nbsp;</td></tr><tr><td colspan=3 height=10></td></tr></table>");
document.write("</div>");

document.write("<div id=\"dropmenu03\" style='position:absolute; left:10px; top:0px; width:120; height: 0; z-index:1; visibility: hidden' >");
document.write("<table border=0><tr><td colspan=3  height=3></td></tr><tr><td width=5 rowspan=2>&nbsp;</td><td height=5></td></tr><tr><td><table style=cursor:hand border='0' cellspacing='1' cellpadding='0' width=100% height=100%><tr><td valign=top bgcolor=white><table border=0 cellspacing=0 cellpadding=0 width=100% height=100% style='border:1px solid #888888;'>");
document.write("<tr><td><img name='image0b_1' border=0 src='http://www.pdbox.co.kr/common/btn_img2/context_id3.gif' width=120 height=25 alt='¾ÆÀÌµð·Î°Ë»ö'></td></tr>");
document.write("</table></td></tr></table></td><td width=5 rowspan=2>&nbsp;</td></tr><tr><td colspan=3 height=10></td></tr></table>");
document.write("</div>");


if (document.all)
{
    document.body.onclick=hidemenu;
}

function xoGoBlog(strHomeDirectory)
{
	window.top.location.href = BLOGURL+strHomeDirectory;
}

function xoSendNote(M_ID)
{
	location.href = BLOGURL+"Blog/note_write.asp?S_ID="+M_ID;
}

function xoSubscript(M_ID)
{
	location.href = BLOGURL+"Blog/sub_process.asp?S_ID="+M_ID;
}

function xoFriend(M_ID)
{
	location.href = BLOGURL+"Blog/address_quick.asp?mode=id&q_mem="+M_ID+"&q_name=&q_mail=&q_gnumber=-1&q_hp=";
}

function na_restore_img_src(name, nsdoc, rpath)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img)
    img.src    = rpath;
}

function na_preload_img()
{
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null)
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length; i++)
    {
    document.preloadlist[top+i]     = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
    }
}

function na_change_img_src(name, nsdoc, rpath, preload)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img)
    img.src    = rpath;
}

function show_reco(yes_num,yes_cnt,no_num,no_cnt,m,e){
	var nav = (document.layers)
	var iex = (document.all);
	var x = (nav) ? e.pageX : event.x+document.body.scrollLeft;
	var y = (nav) ? e.pageY : event.y+document.body.scrollTop;
	var thisshow = pop_reco.style.visibility;
	pop_reco.style.left = x - 20;
	pop_reco.style.top  = y - 20;
	reco_y_n.innerHTML = yes_num;
	reco_y_c.innerHTML = yes_cnt;
	reco_n_n.innerHTML = no_num;
	reco_n_c.innerHTML = no_cnt;
	reco_m_c.innerHTML = m;	
	if (thisshow == "hidden"){
		pop_reco.style.visibility = "visible";
	}else{
		pop_reco.style.visibility = "hidden";
	}
}
function hidden_div(Obj){
	Obj.style.visibility = "hidden";
}
		
		document.write("<div id=\"pop_reco\" style='position:absolute; left:10px; top:0px; width:120; height: 0; z-index:1; visibility: hidden'><!-- onclick='hidden_div(this);' -->");
		document.write("<table width=140 border=0 cellpadding=0 cellspacing=0 bgcolor=#F7F7F7 style=\"border:1px solid #dddddd;\">");
		document.write("<tr align=center><td height=22></td>");
		document.write("<td align=center><img src=\"http://nosamo.org/Comm/main_images/2006/ico_chu03.gif\"></td><td><img src=\"http://nosamo.org/Comm/main_images/2006/ico_chu05.gif\"></td>");
		document.write("</tr><tr  height=18>");
		document.write("<td style=\"padding-left:3px;\"><img src=\"http://nosamo.org/Comm/main_images/2006/ico_chu01.gif\"></td>");
		document.write("<td align=center><font id=reco_y_c></font></td><td align=center><font id=reco_y_n></font></td>"); 
		document.write("</tr>");
		document.write("<tr height=18>");
		document.write("<td style=\"padding-left:3px;\"><img src=\"http://nosamo.org/Comm/main_images/2006/ico_chu02.gif\"></td>");
		document.write("<td align=center><font id=reco_n_c></font></td>");
		document.write("<td align=center><font id=reco_n_n></font></td>");
		document.write("</tr>");
		document.write("<tr height=18>");
		document.write("<td style=\"padding-left:3px;\"><img src=\"http://nosamo.org/Comm/main_images/2006/ico_chu04.gif\"></td>");
		document.write("<td colspan=2 align=center><font id=reco_m_c></font></td>");
		document.write("</tr>");
		document.write("<tr>");
		document.write("<td colspan=3 height=2></td>");
		document.write("</tr>");
		document.write("<tr>");
		document.write("<td colspan=3 align=right><a href='javascript:hidden_div(pop_reco);'>Close <img src=http://www.nosamo.org/images/delete_box.gif border=0></a></td>");
		document.write("</tr>");
		document.write("</table>");
		document.write("</div>");

/*
	document.write("<div id=\"pop_reco\" style='position:absolute; left:10px; top:0px; width:120; height: 0; z-index:1; visibility: hidden' onclick='hidden_div(this);'>");
	document.write("<table border=0 width=150><tr><td colspan=3  height=3></td></tr><tr><td width=5 rowspan=2>&nbsp;</td><td height=5></td></tr>");
	document.write("<tr><td><table style=cursor:hand border='0' cellspacing='1' cellpadding='0'  width=100% height=100%><tr><td valign=top bgcolor=white>");
	document.write("<table border=0 cellspacing=0 cellpadding=0 width=100% height=100% style='border:1px solid #888888;'><tr><td>-</td><td>Âù¼º</td><td>¹Ý´ë</td></tr>");
	document.write("<tr height=30><td width=50 align=center>Á¡¼ö</td><td width=50 align=right><font id=reco_y_n></font> Á¡</td><td width=50 align=right><font id=reco_n_n></font> Á¡</td></tr><tr height=30><td width=50 align=center>Á¡¼ö</td><td width=50 align=right><font id=reco_y_c></font> ¸í</td><td width=50 align=right><font id=reco_n_c></font> ¸í</td></tr>");
	document.write("<tr height=30><td width=50 align=center>¹«ÀÀ´ä</td><td colspan=2 width=50 align=right><font id=reco_m_c></font> ¸í</td></tr></table>");
	document.write("</td></tr></table></td>	<td width=5 rowspan=2>&nbsp;</td></tr><tr><td colspan=3 height=10></td></tr></table>");
	document.write("</div>");
*/	