ientWidth-4)) {
    d.style.right =  x - 8 - d.clientWidth;
    d.style.left = x - 8;
  }else{
    d.style.right = x;
    d.style.left = x + d.clientWidth;
  }
    </xsl:otherwise>
							</xsl:choose>

  d.style.top = y;
  d.style.display = '';
}

function shade(tbody)
{
  for (var i = 0; i &lt; tbody.rows.length; i++) {
    if (i % 2 == 0) {
      className = "b1";
    }else{
      className = "b2";
    }

    try{
      tbody.rows[i].cells[1].className = className;
    }catch(e){