function imenus_add_pointer_image(obj, dto, level)
{
  if ((ulm_oldnav) || (ulm_mac && (ulm_ie || ulm_navigator)))
  {
    return;
  }
  x4 = "main";
  
  if (level > 0)
  {
    x4 = "sub";
  }
  var a = obj.getElementsByTagName("UL")[0];
  var id = a.id.substring(a.id.indexOf("_") + 1);
  x3 = document.createElement("DIV");
  x3.id = "pi" + a.id;
  x3.style.position = "absolute";
  x3.style.visibility = "hidden";
  x3.setAttribute("ispointer",1);
  x3.setAttribute("scxy", "0,0");
  x3.setAttribute("offxy", "0,0");
  
  if ((level == 0) && (dto.main_is_horizontal))
  {
    x3.setAttribute("ish", 1);
    x3.setAttribute("fxoff", x26(dto.main_pointer_image_offy));
    x3.setAttribute("sloff", x26(dto.main_pointer_image_offx));
  }
  else
  {
    x3.setAttribute("fxoff", x26(x28(x4 + "_pointer_image_offx", dto, id)));
    x3.setAttribute("sloff", x26(x28(x4 + "_pointer_image_offy", dto, id)));
  }
  
  if ((!(x5 = x28(x4 + "_pointer_image", dto, id))) || (x5.toLowerCase() == "none"))
  {
    obj.onmousemove = function(e)
    {
      if (ulm_ie)
      {
        e = window.event;
      }
      e.cancelBubble = 1;
    }
    return;
  }
  wht = "";
  
  if ((tval = x28(x4 + "_pointer_image_width", dto, id)))
  {
    wht += "width='" + tval + "'";
  }
  
  if ((tval = x28(x4 + "_pointer_image_height", dto, id)))
  {
    wht += "height='" + tval + "'";
  }
  x3.innerHTML = '<img src="' + x5 + '" ' + wht + '>';
  obj.appendChild(x3);
  obj.onmouseover = function()
  {
    imenus_initialize_pointer(this);
  };
  obj.onmousemove = function(e)
  {
    var lc = this.lastChild;
    
    if (!lc.getAttribute("ispointer"))
    {
      var bid = this.getElementsByTagName("UL")[0].id;
      lc = document.getElementById("pi" + bid);
    }
    
    if (ulm_ie)
    {
      e = window.event;
    }
    offxy = eval("new Array(" + lc.getAttribute("offxy") + ")");
    sloff = parseInt(lc.getAttribute("sloff"));
    scxy = eval("new Array(" + lc.getAttribute("scxy") + ")");
    
    if (lc.getAttribute("ish"))
    {
      npos = e.clientX - offxy[0] + sloff + scxy[0];
      
      if (window.dp_zoomc)
      {
        npos=dp_zoomc(npos);
      }
      lc.style.left = npos + "px";
    }
    else
    {
      npos = e.clientY - offxy[1] + sloff + scxy[1];
      
      if (window.dp_zoomc)
      {
        npos = dp_zoomc(npos);
      }
      lc.style.top = npos + "px";
    }
    
    if (lc.getAttribute("initialized"))
    {
      lc.style.visibility = "visible";
    }
    e.cancelBubble = 1;
  }
  obj.onmouseout = function()
  {
    var lc = obj.lastChild;
    
    if (!lc.getAttribute("ispointer"))
    {
      var bid = obj.getElementsByTagName("UL")[0].id;
      lc = document.getElementById("pi" + bid);
    }
    lc.style.visibility = "hidden";
  }
}

function x26(val)
{
  if (val == null)
  {
    return 0;
  }
  return val;
}

function imenus_initialize_pointer(obj)
{
  var lc = obj.lastChild;
  
  if (!lc.getAttribute("ispointer"))
  {
    var bid = obj.getElementsByTagName("UL")[0].id;
    lc = document.getElementById("pi" + bid);
  }
  var txy = x27(obj);
  
  if (hpi = document.getElementById("hpi_pad"))
  {
    if (a = hpi.scrollLeft)
    {
      txy[0] -= a;
    }
    
    if (a = hpi.scrollTop)
    {
      txy[1] -= a;
    }
  }
  lc.setAttribute("offxy", txy);
  var pxy = parseInt(lc.getAttribute("fxoff"));
  
  if (lc.getAttribute("ish"))
  {
    lc.style.top = pxy + "px";
  }
  else
  {
    lc.style.left = pxy + "px";
  }
  pobj = document.body;
  
  if ((!(pobj.scrollLeft + pobj.scrollTop)) && (document.documentElement))
  {
    pobj = document.documentElement;
  }
  lc.setAttribute("scxy", pobj.scrollLeft + "," + pobj.scrollTop);
  lc.setAttribute("initialized", 1);
}

function x28(pname,dto,index)
{
  if ((rval = dto[pname+index]) != null)
  {
    return rval;
  }
  else
  {
    return dto[pname];
  }
}