
/* ƒvƒ‹ƒ_ƒEƒ“ƒƒjƒ…[•\Ž¦E”ñ•\Ž¦ */
function local_pulldownmenu(id)
{
    /* •C³ */
    local_habaget(id);

    /* ŠeID¶¬ */
    var cid = "c" + id;
    var tdid = "td" + id;

/* ŽŽì‚P */
//  var flg = document.getElementById(id).style.display;
//  if(flg == "none")
//  {
//      document.getElementById(id).style.display = "block";
//  }
//  else
//  {
//      document.getElementById(id).style.display = "none";
//  }
/* ŽŽì‚P */

    var flg2 = document.getElementById(cid).style.visibility;
    if(flg2 == "hidden")
    {
        document.getElementById(tdid).style.border = "1px solid black";
        document.getElementById(tdid).style.background = "white";
        document.getElementById(cid).style.visibility = "visible";
    }
    else
    {
        document.getElementById(tdid).style.border = "0px";
        document.getElementById(tdid).style.background = "#f7f9f8";
        document.getElementById(cid).style.visibility = "hidden";
    }
}

/* ƒvƒ‹ƒ_ƒEƒ“¶•ã•”»’è */
function local_habaget(id)
{
    var cid = "c" + id;
    var tid = "td" + id;
    var haba = parseInt(getWindowWidth());
    objX = bytefx.$position(document.getElementById(tid)).x;
    objY = bytefx.$position(document.getElementById(tid)).y;

    var leftpx = 121;

    if(haba <= 900)
    {
        document.getElementById(cid).style.left = leftpx + "px";
    }
    else
    {
//        var wi = (haba - 900)/2 + leftpx;
        var wi = objX + leftpx;
        document.getElementById(cid).style.left = wi + "px";
    }

    var hid = parseInt(id);
    var toppx = objY;
//    if(hid > 1)
//    {
//        toppx = (hid-1) * 31.5 + toppx;
//    }
    document.getElementById(cid).style.top = toppx + "px";

}

