var isNav = document.layers;
var isIE = document.all;

if (isNav)
{
  document.write("<link rel=stylesheet type=text/css href=lib/main_ns.css>");
}
else
{
  document.write("<link rel=stylesheet type=text/css href=lib/main.css>");
}

function ws(text)
{
  window.status = text;
  return true;
}

Object.prototype.trim = function()
{
  return this.toString().lTrim().rTrim();
}

Object.prototype.lTrim = function()
{
  var whiteSpace = " \r\f\n\r\t", strTrim = this.toString(), s = 0, e = strTrim.length - 1;
  while (whiteSpace.indexOf(strTrim.charAt(s++)) != -1 && s <= e);
  return s - 1<e + 2?strTrim.substring(s - 1, e + 2):"";
}

Object.prototype.rTrim = function()
{
  var whiteSpace = " \r\f\n\r\t", strTrim = this.toString(), s = 0, e = strTrim.length - 1;
  while (whiteSpace.indexOf(strTrim.charAt(e--)) != -1 && e >= 0);
  return s - 1<e + 2?strTrim.substring(s - 1, e + 2):"";
}
