// Layer Library.
// Current implementation requires the use of Dynapi.

// useLayers - Determines whether the Layer routines can be used.
function useLayers() {
  var use = true;  // Default is to use.
  use = use && dynapi.ua.supported; // Does DynAPI support this browser?
  use = use && (dynapi.ua.v > 4);   // We DO NOT support version 4 supported browsers.
  
  // That's all folks.
  return use;
}

//*** Functions for handling the event object.

// eventCursor - Cross-browser handling of properties related to the cursor.
function eventCursor(e) {
  var o = new Object;
  
  // Get the page X and Y position.
  o.x = (e.pageX) ? e.pageX : e.clientX + document.body.scrollLeft;
  o.y = (e.pageY) ? e.pageY : e.clientY + document.body.scrollTop;

  // That's all folks.
  return o;
}