/* cbe_core.js
 * CBE v4b4 : Cross-Browser DHTML API for IE, Gecko, Opera, Netscape, Konqueror and similar browsers. Download at cross-browser.com
 * Copyright (c) 2002 Michael Foster (mike@cross-browser.com)
 * This library is distributed under the terms of the GNU Lesser General Public License (gnu.org).
*/
var
  cbeVersion = "v4b4",
  cbeDocumentId = 'idDocument',
  cbeWindowId = 'idWindow',
  cbeAll = new Array();
window.onload = function() {
  cbeInitialize();
  if (window.windowOnload) window.windowOnload();
}
window.onunload = function() {
  if (window.windowOnunload) window.windowOnunload();
  if (window.cbeDebugObj) window.cbeDebugObj = null;
  for (var i = 0; i < cbeAll.length; i++) cbeAll[i].ele.cbe = null;
}
function CrossBrowserNode() { // Object Constructor
  this.parentNode = null;
  this.childNodes = 0;
  this.firstChild = null;
  this.lastChild = null;
  this.previousSibling = null;
  this.nextSibling = null;
}
CrossBrowserNode.prototype.appendChild = function(newChild) {
  if (newChild) {
    if (!this.firstChild) this.firstChild = newChild;
    else {
      newChild.previousSibling = this.lastChild;
      this.lastChild.nextSibling = newChild;
    }
    newChild.parentNode = this;
    this.lastChild = newChild;
    ++this.childNodes;
  }
  return newChild;
}
function CrossBrowserElement(eleObject, indexNum) { // Object Constructor
  if (arguments.length != 2 || !eleObject) return;
  if (eleObject == window) this.id = eleObject.id = cbeWindowId;
  else if (eleObject == document) this.id = eleObject.id = cbeDocumentId;
  else this.id = eleObject.id;
  this.parentElement = cbeGetParentElement(eleObject);
  this.ele = eleObject;
  this.index = indexNum;
  this.w = 0;
  this.h = 0;
  this.x = 0;
  this.y = 0;
  this.left = domLeft;
  this.top = domTop;
  this.pageX = domPageX;
  this.pageY = domPageY;
  this.width = domWidth;
  this.height = domHeight;
  this.offsetLeft = domOffsetLeft;
  this.offsetTop = domOffsetTop;
  this.zIndex = domZIndex;
  this.innerHtml = domInnerHtml;
  this.visibility = domVisibility;
  this.color = domColor;
  this.background = domBackground;
  this.clip = domClip;
  if (window.cbeEventJsLoaded) this.listeners = new Array();
  if (is.ie) {                                   // IE
    this.left = ieLeft;
    this.top = ieTop;
    this.width = ieWidth;
    this.height = ieHeight;
  }
  else if (is.opera) {                           // Opera
    this.left = ieLeft;
    this.top = ieTop;
    this.width = ieWidth;
    this.height = ieHeight;
    this.pageX = opPageX;
    this.pageY = opPageY;
    this.offsetLeft = opOffsetLeft;
    this.offsetTop = opOffsetTop;
    this.background = domBackground;
    this.clip = cbeReturnVoid;
    this.innerHtml = cbeReturnVoid;
  }
  else if (is.nav4) {                            // NN4
    this.left = nnLeft;
    this.top = nnTop;
    this.pageX = nnPageX;
    this.pageY = nnPageY;
    this.width = nnWidth;
    this.height = nnHeight;
    this.offsetLeft = nnOffsetLeft;
    this.offsetTop = nnOffsetTop;
    this.visibility = nnVisibility;
    this.zIndex = nnZIndex;
    this.background = nnBackground;
    this.color = cbeReturnZero;
    this.clip = nnClip;
    this.innerHtml = nnInnerHtml;
  }
  else { ; }                                     // default, assume Gecko or other DOM2 browser
  this.ele.cbe = this;
  if (this.index > 1) {
    if (is.nav4) { this.w = this.ele.clip.width; this.h = this.ele.clip.height; }
    else if (is.opera) { this.w = this.ele.style.pixelWidth; this.h = this.ele.style.pixelHeight; }
    else { this.w = this.ele.offsetWidth; this.h = this.ele.offsetHeight; }
  }
}
CrossBrowserElement.prototype = new CrossBrowserNode; // CrossBrowserElement is derived from CrossBrowserNode
function cbeInitialize() {
  if (!document.getElementById) document.getElementById = cbeGetElementById;
  var i, j, ele, divArray;
  cbeAll[0] = new CrossBrowserElement(window, 0);
  window.cbe.zIndex = cbeReturnZero;
  cbeAll[1] = new CrossBrowserElement(document, 1);
  document.cbe.zIndex = cbeReturnZero;
  divArray = cbeGetElementsByTagName('DIV');
  for (i = 0, j = 2; i < divArray.length; i++) {
    ele = divArray[i];
    if ( ele.id != "") { cbeAll[j] = new CrossBrowserElement(ele, j); ++j; }
  }
  if (!is.nav4) {
    divArray = cbeGetElementsByTagName('SPAN');
    for (i = 0; i < divArray.length; i++) {
      ele = divArray[i];
      if ( ele.id != "") { cbeAll[j] = new CrossBrowserElement(ele, j); ++j; }
    }
  }
  cbeCreateTree();
  if (window.cbeEventJsLoaded && (is.nav4 || is.opera)) { window.cbe.addEventListener("resize", cbeDefaultResizeListener); }
  window.cbe.left = cbeReturnZero;
  window.cbe.top = cbeReturnZero;
  window.cbe.pageX = cbeReturnZero;
  window.cbe.pageY = cbeReturnZero;
  window.cbe.offsetLeft = cbeReturnZero;
  window.cbe.offsetTop = cbeReturnZero;
  window.cbe.zIndex = cbeReturnZero;
  window.cbe.visibility = cbeReturnVoid;
  window.cbe.color = cbeReturnVoid;
  window.cbe.background = cbeReturnVoid;
  document.cbe.left = cbeReturnZero;
  document.cbe.top = cbeReturnZero;
  document.cbe.pageX = cbeReturnZero;
  document.cbe.pageY = cbeReturnZero;
  document.cbe.offsetLeft = cbeReturnZero;
  document.cbe.offsetTop = cbeReturnZero;
  document.cbe.zIndex = cbeReturnZero;
  document.cbe.visibility = cbeReturnNull;
  document.cbe.color = cbeReturnNull;
  document.cbe.background = cbeReturnNull;
}
function cbeCreateTree() {
  var parent;
  for (var i = 1; i < cbeAll.length; ++i) {
    parent = cbeAll[i].parentElement;
    if (!parent.cbe) {
      while (parent && !parent.cbe) parent = cbeGetParentElement(parent);
      if (!parent) parent = document;
    }
    parent.cbe.appendChild(cbeAll[i]);
  }
}
function cbeGetElementById(eleId) {
  var ele = null;
  if (eleId == window.cbeWindowId) ele = window;
  else if (eleId == window.cbeDocumentId) ele = document;
  else if (is.dom1getbyid) ele = document.getElementById(eleId);
  else if (document.all) ele = document.all[eleId];
  else if (document.layers) ele = nnGetElementById(eleId);
  if (!ele && window.cbeUtilJsLoaded) {
    ele = cbeGetImageByName(eleId);
    if (!ele) ele = cbeGetFormByName(eleId);
  }
  return ele;
}
function nnGetElementById(eleId) {
  for (var i = 0; i < cbeAll.length; i++) {
    if ( cbeAll[i].id == eleId ) return cbeAll[i].ele;
  }
  return null;
}
function cbeGetElementsByTagName(tagName) {
  var eleArray;
  if (is.opera) eleArray = document.body.getElementsByTagName(tagName);
  else if (is.ie4) eleArray = document.all.tags(tagName);
  else if (is.ie5up || is.gecko || is.nav5up) eleArray = document.getElementsByTagName(tagName);
  else if (is.nav4) {
    eleArray = new Array();
    nnGetAllLayers(window, eleArray, 0);
  }
  return eleArray;
}
function nnGetAllLayers(parent, layerArray, nextIndex) {
  var i, layer;
  for (i = 0; i < parent.document.layers.length; i++) {
    layer = parent.document.layers[i];
    layerArray[nextIndex++] = layer;
    if (layer.document.layers.length) nextIndex = nnGetAllLayers(layer, layerArray, nextIndex);
  }
  return nextIndex;
}
function cbeGetParentElement(child) {
  var parent = document;
  if (child == window) parent = null;
  else if (child == document) parent = window;
  else if (is.ie || is.gecko || is.opera) {
    if (child.parentElement) parent = child.parentElement;
    else if (child.parentNode) parent = child.parentNode;
    else if (child.offsetParent) parent = child.offsetParent;
  }
  else if (is.nav4up) {
    if (child.parentLayer) {
      if (child.parentLayer != window) parent = child.parentLayer;
    }
  }
  return parent;
}
////////////
var cbeNodeVisit;
function cbeTraverseTree(order, startNode, visitFunction) {
  cbeNodeVisit = visitFunction;
  switch (order.toLowerCase()) {
    case 'preorder': cbeTraversePreOrder(startNode, 0, 0); break;
//    case 'postorder': cbeTraversePostOrder(startNode); break;
  }
}
function cbeTraversePreOrder(node, level, branch) {
  if (!cbeNodeVisit(node,level,branch)) return false;
  if (node.firstChild) {
    var child = node.firstChild;
    while (child) {
      if (!level) ++branch;
      if (!cbeTraversePreOrder(child,level+1,branch)) return false;
      child = child.nextSibling;
    }
  }
  return true;
}
CrossBrowserElement.prototype.contains = function(leftPoint, topPoint, top, right, bottom, left) {
  if (arguments.length == 2) top = right = bottom = left = 0;
  else if (arguments.length == 3) right = bottom = left = top;
  else if (arguments.length == 4) { left = right; bottom = top; }
  var x = this.pageX();
  var y = this.pageY();
  return (
    leftPoint >= x + left &&
    leftPoint <= x + this.width() - right &&
    topPoint >= y + top &&
    topPoint <= y + this.height() - bottom
  );
}
CrossBrowserElement.prototype.moveTo = function(x_cr, y_mar, outside, endListener) {
  if (isFinite(x_cr)) { this.left(x_cr); this.top(y_mar); }
  else {
    this.cardinalPosition(x_cr, y_mar, outside);
    this.left(this.x); this.top(this.y);
  }
  if (endListener) cbeEval(endListener, this);
}
CrossBrowserElement.prototype.moveBy = function(dX, dY, endListener) {
  if (dX) this.left(this.left() + dX);
  if (dY) this.top(this.top() + dY);
  if (endListener) cbeEval(endListener, this);
}
function domLeft(newLeft) {
  if (arguments.length) this.ele.style.left = newLeft + "px";
  else return parseInt(this.ele.style.left);
}
function ieLeft(newLeft) {
  if (arguments.length) this.ele.style.pixelLeft = newLeft;
  else return this.ele.style.pixelLeft;
}
function nnLeft(newLeft) {
  if (arguments.length) this.ele.left = newLeft;
  else return this.ele.left;
}
function domTop(newTop) {
  if (arguments.length) this.ele.style.top = newTop + "px";
  else return parseInt(this.ele.style.top);
}
function ieTop(newTop) {
  if (arguments.length) this.ele.style.pixelTop = newTop;
  else return this.ele.style.pixelTop;
}
function nnTop(newTop) {
  if (arguments.length) this.ele.top = newTop;
  else return this.ele.top;
}
function domOffsetLeft() { return this.ele.offsetLeft; }
function nnOffsetLeft() {
  var parent = this.parentElement;
  var ol = this.ele.pageX - parent.pageX;
  if (isNaN(ol)) ol = this.ele.pageX;
  return ol;
}
function opOffsetLeft() {
  var x = this.ele.offsetLeft;
  var parent = cbeGetParentElement(this.ele);
  while(!parent.cbe) {
    x += parent.offsetLeft;
    parent = cbeGetParentElement(parent);
  }
  return x;
}
function domOffsetTop() { return this.ele.offsetTop; }
function nnOffsetTop() {
  var parent = this.parentElement;
  var ot = this.ele.pageY - parent.pageY;
  if (isNaN(ot)) ot = this.ele.pageY;
  return ot;
}
function opOffsetTop() {
  var y = this.ele.offsetTop;
  var parent = cbeGetParentElement(this.ele);
  while(!parent.cbe) {
    y += parent.offsetTop;
    parent = cbeGetParentElement(parent);
  }
  return y;
}
function domPageX() {
  var x = this.ele.offsetLeft;
  var parent = this.ele.offsetParent;
  if (parent) {
    while(parent.offsetLeft) {
      x += parent.offsetLeft;
      parent = parent.offsetParent;
    }
  }
  return x;
}
function domPageY() {
  var y = this.ele.offsetTop;
  var parent = this.ele.offsetParent;
  if (parent) {
    while(parent.offsetTop) {
      y += parent.offsetTop;
      parent = parent.offsetParent;
    }
  }
  return y;
}
function nnPageX() { return this.ele.pageX; }
function nnPageY() { return this.ele.pageY; }
function opPageX() {
  var x = this.offsetLeft();
  var parent = this.parentNode;
  if (parent) {
    while(parent.index > 1) {
      x += parent.offsetLeft();
      parent = parent.parentNode;
    }
  }
  return x;
}
function opPageY() {
  var y = this.offsetTop();
  var parent = this.parentNode;
  if (parent) {
    while(parent.index > 1) {
      y += parent.offsetTop();
      parent = parent.parentNode;
    }
  }
  return y;
}
CrossBrowserElement.prototype.sizeTo = function(newWidth, newHeight) {
  this.width(newWidth);
  this.height(newHeight);
}
CrossBrowserElement.prototype.sizeBy = function(dW, dH) {
  this.width(this.width() + dW);
  this.height(this.height() + dH);
}
CrossBrowserElement.prototype.resizeTo = function(newWidth, newHeight, endListener) {
  this.sizeTo(newWidth, newHeight);
  this.clip('auto');
  cbeEval(endListener, this);
}
CrossBrowserElement.prototype.resizeBy = function(dW, dH, endListener) {
  this.sizeBy(dW, dH);
  this.clip('auto');
  cbeEval(endListener, this);
}
function domWidth(newWidth) {
  if (arguments.length) {
    if (is.gecko && !is.konq) geckoSetWidth(this.ele, newWidth);
    else this.ele.style.width = Math.round(newWidth) + "px";
    this.w = newWidth;
  }
  else if (this.index <= 1) this.w = cbeInnerWidth();
  return this.w
}
function ieWidth(newWidth) {
  if (arguments.length) {
    this.w = Math.round(newWidth);
    this.ele.style.pixelWidth = newWidth;
  }
  else if (this.index <= 1) this.w = cbeInnerWidth();
  return this.w
}
function nnWidth(newWidth) {
  if (arguments.length) this.w = Math.round(newWidth);
  else if (this.index <= 1) this.w = cbeInnerWidth();
  return this.w
}
function domHeight(newHeight) {
  if (arguments.length) {
    if (is.gecko && !is.konq) geckoSetHeight(this.ele, newHeight);
    else this.ele.style.height = Math.round(newHeight) + "px";
    this.h = newHeight;
  }
  else if (this.index <= 1) this.h = cbeInnerHeight();
  return this.h
}
function ieHeight(newHeight) {
  if (arguments.length) {
    this.h = Math.round(newHeight);
    this.ele.style.pixelHeight = newHeight;
  }
  else if (this.index <= 1) this.h = cbeInnerHeight();
  return this.h
}
function nnHeight(newHeight) {
  if (arguments.length) this.h = Math.round(newHeight);
  else if (this.index <= 1) this.h = cbeInnerHeight();
  return this.h
}
function geckoSetWidth(ele,w) {
  var cw = parseInt(document.defaultView.getComputedStyle(ele,'').getPropertyValue("width"));
  var pb = ele.offsetWidth - cw; // padding and border widths
  w -= pb;
  ele.style.width = w + "px";
}
function geckoSetHeight(ele,h) {
  var ch = parseInt(document.defaultView.getComputedStyle(ele,'').getPropertyValue("height"));
  var pb = ele.offsetHeight - ch; // padding and border heights
  h -= pb;
  ele.style.height = h + "px";
}
CrossBrowserElement.prototype.scrollLeft = function() {
  var value = 0;
  if (this.ele.scrollLeft) value = this.ele.scrollLeft;
  else if (this.index <= 1) value = cbePageXOffset();
  return value;
}
CrossBrowserElement.prototype.scrollTop = function() {
  var value = 0;
  if (this.ele.scrollTop) value = this.ele.scrollTop;
  else if (this.index <= 1) value = cbePageYOffset();
  return value;
}
CrossBrowserElement.prototype.show = function() { this.visibility(1); }
CrossBrowserElement.prototype.hide = function() { this.visibility(0); }
function domVisibility(vis) {
  if (arguments.length) {
    if (vis) this.ele.style.visibility = is.opera ? 'visible' : 'inherit';
    else this.ele.style.visibility = 'hidden';
  }
  else return (this.ele.style.visibility == 'visible' || this.ele.style.visibility == 'inherit' || this.ele.style.visibility == '');
}
function nnVisibility(vis) {
  if (arguments.length) {
    if (vis) this.ele.visibility = 'inherit';
    else this.ele.visibility = 'hide';
  }
  else return (this.ele.visibility == 'show' || this.ele.visibility == 'inherit' || this.ele.visibility == '');
}
function domZIndex(newZ) {
  if (arguments.length) this.ele.style.zIndex = newZ;
  else return this.ele.style.zIndex
}
function nnZIndex(newZ) {
  if (arguments.length) this.ele.zIndex = newZ;
  else return this.ele.zIndex;
}
function domBackground(newBgColor, newBgImage) {
  if (arguments.length) {
    if (!newBgColor) newBgColor = 'transparent';
    if (!is.opera) this.ele.style.backgroundColor = newBgColor;
    else this.ele.style.background = newBgColor;
    if (arguments.length == 2) this.ele.style.backgroundImage = "url(" + newBgImage + ")";
  }
  else {
    if (!is.opera) return this.ele.style.backgroundColor;
    else return this.ele.style.background;
  }
}
function nnBackground(newBgColor, newBgImage) {
  if (arguments.length) {
    if (newBgColor == 'transparent') newBgColor = null;
    this.ele.bgColor = newBgColor;
    if (arguments.length == 2) this.ele.background.src = newBgImage || null;
  }
  else {
    var bg = this.ele.bgColor;
    if (window.cbeUtilJsLoaded) bg = cbeHexString(bg,6,'#');
    return bg;
  }
}
function domColor(newColor) {
  if (arguments.length) this.ele.style.color = newColor;
  else return this.ele.style.color;
}
function domClip(top, right, bottom, left) {
  if (arguments.length == 4) {
    var clipRect = "rect(" + top + "px " + right + "px " + bottom + "px " + left + "px" + ")";
    this.ele.style.clip = clipRect;
  }
  else this.clip(0, this.ele.offsetWidth, this.ele.offsetHeight, 0); // was...  this.clip(0, this.width(), this.height(), 0);
}
function nnClip(top, right, bottom, left) {
  if (arguments.length == 4) {
    this.ele.clip.top = top;
    this.ele.clip.right = right;
    this.ele.clip.bottom = bottom;
    this.ele.clip.left = left;
  }
  else this.clip(0, this.width(), this.height(), 0);
}
// all other clip methods moved to cbe_clip.js (v3b15)
function domInnerHtml(newHtml) {
  if (arguments.length) this.ele.innerHTML = newHtml;
  else return this.ele.innerHTML;
}
function nnInnerHtml(newHtml) {
  if (arguments.length) {
    if (newHtml == '') newHtml = ' ';
    this.ele.document.open();
    this.ele.document.write(newHtml);
    this.ele.document.close();
  }
  else return "";
}
CrossBrowserElement.prototype.cardinalPosition = function(cp, margin, outside) {
  if (typeof(cp) != 'string') { window.status = 'cardinalPosition() error: cp = ' + cp + ', id = ' + this.id; return; }
  var x = this.left();
  var y = this.top();
  var w = this.width();
  var h = this.height();
  var pw = this.parentNode.width();
  var ph = this.parentNode.height();
  var sx = this.parentNode.scrollLeft();
  var sy = this.parentNode.scrollTop();
  var right = sx + pw;
  var bottom = sy + ph;
  var cenLeft = sx + Math.floor((pw-w)/2);
  var cenTop = sy + Math.floor((ph-h)/2);
  if (!margin) margin = 0;
  else {
    if (outside) margin = -margin;
    sx += margin;
    sy += margin;
    right -= margin;
    bottom -= margin;
  }
  switch (cp.toLowerCase()) {
    case 'n': x = cenLeft; if (outside) y = sy - h; else y = sy; break;
    case 'ne': if (outside) { x = right; y = sy - h; } else { x = right - w; y = sy; } break;
    case 'e': y = cenTop; if (outside) x = right; else x = right - w; break;
    case 'se': if (outside) { x = right; y = bottom; } else { x = right - w; y = bottom - h } break;
    case 's': x = cenLeft; if (outside) y = sy - h; else y = bottom - h; break;
    case 'sw': if (outside) { x = sx - w; y = bottom; } else { x = sx; y = bottom - h; } break;
    case 'w': y = cenTop; if (outside) x = sx - w; else x = sx; break;
    case 'nw': if (outside) { x = sx - w; y = sy - h; } else { x = sx; y = sy; } break;
    case 'cen': case 'center': x = cenLeft; y = cenTop; break;
    case 'cenh': x = cenLeft; break;
    case 'cenv': y = cenTop; break;
  }
  this.x = x;
  this.y = y;
}
function cbeInnerWidth() {
  var w = 0;
  if (is.nav4up) {
    w = window.innerWidth;
    if (document.height > window.innerHeight) w -= 16;
  }
  else if (is.ie6up) w = (document.compatMode == 'CSS1Compat') ? document.documentElement.clientWidth : document.body.clientWidth;
  else if (is.ie4up) w = document.body.clientWidth;
  else if (is.opera) w = window.innerWidth;
  return w;
}
function cbeInnerHeight() {
  var h = 0;
  if (is.nav4up) {
    h = window.innerHeight;
    if (document.width > window.innerWidth) h -= 16;
  }
  else if (is.ie6up) h = (document.compatMode == 'CSS1Compat') ? document.documentElement.clientHeight : document.body.clientHeight;
  else if (is.ie4up) h = document.body.clientHeight;
  else if (is.opera) h = window.innerHeight;
  return h;
}
function cbePageXOffset() {
  var offset=0;
  if (is.nav4up || is.opera) offset = window.pageXOffset;
  else if (is.ie6up) offset = (document.compatMode == 'CSS1Compat') ? document.documentElement.scrollLeft : document.body.scrollLeft;
  else if (is.ie4up) offset = document.body.scrollLeft;
  return offset;
}
function cbePageYOffset() {
  var offset=0;
  if (is.nav4up || is.opera) offset = window.pageYOffset;
  else if (is.ie6up) offset = (document.compatMode == 'CSS1Compat') ? document.documentElement.scrollTop : document.body.scrollTop;
  else if (is.ie4up) offset = document.body.scrollTop;
  return offset;
}
function cbeReturnZero() { return 0; }
function cbeReturnNull() { return null; }
function cbeReturnVoid() { }
function cbeEval(exp, arg1, arg2, arg3, arg4, arg5, arg6) {
  if (exp) {
    if (typeof(exp)=="string") eval(exp);
    else exp(arg1, arg2, arg3, arg4, arg5, arg6);
  }
}
function ClientSnifferJr() { // Object Constructor
  this.ua = navigator.userAgent.toLowerCase();
  this.major = parseInt(navigator.appVersion);
  this.minor = parseFloat(navigator.appVersion);
  // DOM Support
  if (document.addEventListener && document.removeEventListener) this.dom2events = true;
  if (document.getElementById) this.dom1getbyid = true;
  // Opera
  this.opera = this.ua.indexOf('opera') != -1;
  if (this.opera) {
    this.opera5 = (this.ua.indexOf("opera 5") != -1 || this.ua.indexOf("opera/5") != -1);
    this.opera6 = (this.ua.indexOf("opera 6") != -1 || this.ua.indexOf("opera/6") != -1);
    return;
  }
  // Konqueror
  this.konq = this.ua.indexOf('konqueror') != -1;
  // MSIE
  this.ie = this.ua.indexOf('msie') != -1;
  if (this.ie) {
    this.ie3 = this.major < 4;
    this.ie4 = (this.major == 4 && this.ua.indexOf('msie 5') == -1 && this.ua.indexOf('msie 6') == -1);
    this.ie4up = this.major >= 4;
    this.ie5 = (this.major == 4 && this.ua.indexOf('msie 5.0') != -1);
    this.ie5up = !this.ie3 && !this.ie4;
    this.ie6 = (this.major == 4 && this.ua.indexOf('msie 6.0') != -1);
    this.ie6up = (!this.ie3 && !this.ie4 && !this.ie5 && this.ua.indexOf("msie 5.5") == -1);
    return;
  }
  // Misc.
  this.hotjava = this.ua.indexOf('hotjava') != -1;
  this.webtv = this.ua.indexOf('webtv') != -1;
  this.aol = this.ua.indexOf('aol') != -1;
  if (this.hotjava || this.webtv || this.aol) return;
  // Gecko, NN4+, and NS6
  this.gecko = this.ua.indexOf('gecko') != -1;
  this.nav = (this.ua.indexOf('mozilla') != -1 && this.ua.indexOf('spoofer') == -1 && this.ua.indexOf('compatible') == -1);
  if (this.nav) {
    this.nav4  = this.major == 4;
    this.nav4up= this.major >= 4;
    this.nav5up= this.major >= 5;
    this.nav6  = this.major == 5;
    this.nav6up= this.nav5up;
  }
}
window.is = new ClientSnifferJr();
if (is.konq) is.gecko = true; // experimental support for Konqueror
if (is.aol) is.ie = true; // experimental support for AOL
// End cbe_core.js
