/**
 * RESIZER i neibet ;)

 * @params
 * must be string (id attributes) or objects
 *
 * lcell    - left cell with FIXED width
 *            proportional background width
 *
 * cell     - cell with non-fixed width
 *
 * rcell    - right cell with fixed width
 *            width EQUAL to background width
 *
 */

function resizer(lcell, cell, rcell, bg)
{
  return;

  if (typeof lcell == 'string') lcell = document.getElementById(lcell);
  if (typeof cell == 'string')  cell  = document.getElementById(cell);
  if (typeof rcell == 'string') rcell = document.getElementById(rcell);
  l = lcell.clientWidth;
  r = rcell.clientWidth;
  document.onresize = this.onresize;

  resize = function()
  {
    p = cell.clientWidth % bg;
    if (p) {
      cell.style.width  =  cell.clientWidth - p + r;
      rcell.style.width = rcell.clientWidth + p - r;
    }
  }

  onresize = function()
  {
    rcell.style.width = r;
    cell.style.width  = document.body.clientWidth - r - l;
    resize();
    alert();
  }

  resize();
}