var popupMenuActionCheck = 0;
var cursor = new Array();
var cursorDisplay = new Array();
function popupMenu(gubun,name,id,uid)
{
if(popupMenuActionCheck == 1) popupMenuOff();
popupMenuActionCheck = 1;
var lo_table = document.getElementById("popupMenuTable");
var li_rows = lo_table.rows.length;
var lo_tbody = lo_table.childNodes[0];
var lo_row,lo_cell;
lo_row = document.createElement("TR");
lo_tbody.appendChild(lo_row);
lo_cell = document.createElement("TD");
lo_row.appendChild(lo_cell);
switch(gubun)
{
case 0: //·Î±×¾Æ¿ô
lo_cell.innerHTML += '
';
lo_cell.innerHTML += '';
//lo_cell.innerHTML += '';
break;
case 1: //ÂÊÁö
lo_cell.innerHTML += '';
//lo_cell.innerHTML += '';
break;
case 2: //ÀϹݰԽù°
lo_cell.innerHTML += '';
lo_cell.innerHTML += '';
//lo_cell.innerHTML += '';
break;
}
lo_cell.innerHTML += '';
if(cursor["x"] > document.body.clientWidth - 140) cursor["x"] = document.body.clientWidth - 140;
//if(cursor["x"] > document.body.clientWidth - 130) cursor["x"] = document.body.clientWidth - 130;
menudiv.style.top = cursor["y"];
menudiv.style.left = cursor["x"];
// alert(cursor["x"]);// + document.body.width)
// alert(document.body.clientWidth);
menudiv.style.display='';
}
function popupMenuOff()
{
popupMenuActionCheck = 0;
menudiv.style.display='none';
for(i=0;i<1;i++) {
popupMenuTable.deleteRow(i);
}
}
function eventMove()
{
cursor["x"] = document.body.scrollLeft + event.clientX;
cursor["y"] = document.body.scrollTop + event.clientY;
}
function eventMenuClick(gubun,name,id,uid)
{
switch(gubun)
{
case 0:
alert('·Î±×ÀÎ ÈÄ »ç¿ëÇϼ¼¿ä!');
break;
case 1:
MM_openBrWindow('/memo/index.html?page_name=write_view&id='+id,'','scrollbars=no,width=370,height=490');
break;
case 2:
MM_openBrWindow('http://wink.uplusnote.com/'+id,'','');
break;
case 3:
MM_openBrWindow('/memo/index.html?page_name=info_view&muid='+uid+'&midx=','','scrollbars=no,width=370,height=490');
break;
case 4:
actionAddrIdAdd.location.href="/templeat/process/AddAddr.php?muid="+uid;
break;
}
menudiv.style.display='none';
}
function eventMenuHide()
{
menudiv.style.display='none';
}
function eventClick()
{
menudiv.style.display='none';
}
document.write('');
document.onmousemove = eventMove;
//document.onmousedown = eventClick;