function showOne() {
  var curr={style: {}};
  return function (node) {
    if ("string" == typeof(node)) {
      node = document.getElementById(node);
    }
    addClass(curr, 'hide');
    if (node) {
	removeClass(node, 'hide');
    }
    return false;
  }
};

function oneOnscreen() {
  var curr={style: {}};
  return function (node, left) {
    if ("string" == typeof(node)) {
      node = document.getElementById(node);
    }
    curr.style.top='-2000px';
    if (node) {
      node.style.top = '0px';
	  if (left) {
		node.style.left = left;
		node.style.right='auto';
      } else if (node.onscreen.left) {
		node.style.left = node.onscreen.left;
		node.style.right='auto';
	  }
      curr = node;
    }
    return false;
  }
}

function resolve(obj) {
    if ('string' == typeof(obj)) {
	return document.getElementById(obj);
    }
    return obj;
}

show = function(obj) {
    obj = resolve(obj);
    removeClass(obj, 'hide');
};

function hide(node) {
  if ("string" == typeof(node)) {
    node = document.getElementById(node);
  }
  if (node) {
      addClass(node, "hide");
  }
}

var rehide = hide;

function offscreen(node) {
  if ("string" == typeof(node)) {
    node = document.getElementById(node);
  }
  if (node) {
    /* reposition node so it doesn't create a scrollbar */
    node.style.right='';
    node.style.left='';
    node.style.top="-2000px";
  }
}

