// instead of implementing multiple browser support manually, rewrite netscape to act as mozilla

if (!document.all) {

	Node.prototype.selectNodes = function(xpath)
	{
	  var xpe = new XPathEvaluator();
	  var it = xpe.evaluate(xpath, this, xpe.createNSResolver(this), null, null);

	  var list = [], node;
	  while (node = it.iterateNext())
		list.push(node);

	  return list;
	};

	HTMLElement.prototype.__defineGetter__("children", function()
	{
	  return this.selectNodes("*");
	});

	HTMLElement.prototype.getBoundingClientRect = function()
	{
	  var rect = { left: 0, top: 0, right: 0, bottom: 0};

	  var tempElt = this;
	  while (tempElt)
	  {
		rect.top  += tempElt.offsetTop - tempElt.scrollTop;
		rect.left += tempElt.offsetLeft - tempElt.scrollLeft;
		tempElt = tempElt.offsetParent;
	  }

	  rect.bottom = rect.top + this.offsetHeight;
	  rect.right  = rect.left + this.offs
	  var tempElt = this;
	  while (tempElt)
	  {
		rect.top  += tempElt.offsetTop - tempElt.scrollTop;
		rect.left += tempElt.offsetLeft - tempElt.scrollLeft;
		tempElt = tempElt.offsetParent;
	  }

	  rect.bottom = rect.top + this.offsetHeight;
	  rect.right  = rect.left + this.offsetWidth;

	  return rect;
	};

}



