

 function xpinit()
 {
   var o, i, uls = document.getElementsByTagName('UL');
   for (i=0, cnt=uls.length; i<cnt; i++)
     if (uls[i].id && uls[i].id.substring(0, 7)=='xpwbUL_')
     {
        o=uls[i];
        if (o)
        {
            var lis = o.getElementsByTagName('LI');
            for (var k=0; k<lis.length; k++)
            {
              lis[k].onmouseover = function (){ this.className = 'over'; }
              lis[k].onmouseout  = function (){ this.className = ''; }
            }
        }
     }
 }
 xpinit();


 function xppr(im)
  {
    var i=new Image();
    i.src='./vista-skin/images/common-style-2-sample.html.images/bt'+im;
    return i;
  }


  function xpe(id)
  {
    x=id.substring(0,id.length-1);
    document['xpwb'+x].src=eval('xpwb'+id+'.src');
    if (id.indexOf('e')!=-1)
      document['xpwb'+x+'e'].src=eval('xpwb'+id+'e.src');

    return false;
  }


  function xpshow(ind, isVertical)
  {
    xphide();
    xpsm = document.getElementById('xpwbUL_'+ind);
    if (!xpsm) return;

    var img = document.getElementById('xpi_'+ind);
    var pos = xppos(img);

    if (isVertical)
    {
      xpsm.style.left = pos[0] + img.width + 'px';
      xpsm.style.top  = pos[1] + 'px';
    }
    else
    {
      xpsm.style.left = pos[0] + 'px';
      xpsm.style.top  = pos[1] + img.height + 'px';
    }

    xpsm.style.visibility = 'visible';
  }


  function xphide()
  {
    if (xpsm)
    {
      if (xpsmt)
        clearTimeout(xpsmt);

      xpsm.style.visibility = 'hidden';
      xpsm = null;
    }
  }


  function xpsmout()
  {
    if (xpsm)
      xpsmt = setTimeout('xphide()', 1000);
  }

  function xpsmover()
  {
    if (xpsmt)
      xpsmt = clearTimeout(xpsmt);
  }

  function xppos(o)
  {
    var l=0, t=0;
    while (o)
    {
      l += o.offsetLeft;
      t += o.offsetTop;
      o = o.offsetParent;
    }
    return [l, t];
  }

  var xpsm  = null;
  var xpsmt = null;
xpwbyohw0n=xppr('yohw0_0.gif');xpwbyohw0o=xppr('yohw0_1.gif');xpwbyohw0c=xppr('yohw0_2.gif');xpwb8ohw0n=xppr('8ohw0_0.gif');xpwb8ohw0o=xppr('8ohw0_1.gif');xpwb8ohw0c=xppr('8ohw0_2.gif');xpwblohw0n=xppr('lohw0_0.gif');xpwblohw0o=xppr('lohw0_1.gif');xpwblohw0c=xppr('lohw0_2.gif');xpwbdohw0n=xppr('dohw0_0.gif');xpwbdohw0o=xppr('dohw0_1.gif');xpwbdohw0c=xppr('dohw0_2.gif');xpwbuohw0n=xppr('uohw0_0.gif');xpwbuohw0o=xppr('uohw0_1.gif');xpwbuohw0c=xppr('uohw0_2.gif');
  // Menu Type 2
  function xppr(im)
  {
    var i=new Image();
    i.src='./vista-skin/images/common-style-2-sample.html.images/bt'+im;
    return i;
  }


  function xpe(id)
  {
    x=id.substring(0,id.length-1);
    document['xpwb'+x].src=eval('xpwb'+id+'.src');
    if (id.indexOf('e')!=-1)
      document['xpwb'+x+'e'].src=eval('xpwb'+id+'e.src');

    return false;
  }

