// AJAX Reveal

  var smooth_timer;
   // curH = Current Height
   // targetH = Target Height
// stepH = Increment of height.
function smoothHeight(id, curH, targetH, stepH, mode) {
  diff = targetH - curH;
  if (mode != "o")
  {
     ((document.getElementById) ? document.getElementById(mode) : _eval("document.all['" + mode + "']")).style.display="none";
  }
  if (diff > -1)
  {
    newH = (diff > 0) ? curH + stepH : curH - stepH;
    ((document.getElementById) ? document.getElementById(id) : _eval("document.all['" + id + "']")).style.height = newH + "px";
    if (smooth_timer) window.clearTimeout(smooth_timer);
    smooth_timer = window.setTimeout( "smoothHeight('" + id + "'," + newH + "," + targetH + "," + stepH + ",'" + mode + "')", 20 );
  }
}
// Ht = Height of box.
function rollTR(i,Ht) {
  var trObj = (document.getElementById) ? document.getElementById('row' + i) : _eval("document.all['row" + i + "']");
  var showImage = (document.getElementById) ? document.getElementById('show' + i) : _eval("document.all['show" + i + "']");
  var clImage = (document.getElementById) ? document.getElementById('cl' + i) : _eval("document.all['cl" + i + "']");
  if (trObj != null) {
    if (trObj.style.display=="none") {
      trObj.style.display="";
      showImage.style.display="none";
      clImage.style.display="";
      smoothHeight('row' + i, 0, Ht, 42, 'o');
    }else{
      trObj.style.display="none";
      showImage.style.display="";
      clImage.style.display="none";
      smoothHeight('row' + i, Ht, 0, 42, 'row' + i);
    }
  }
}
