// JavaScript Document

//Checks if IE7 or less
function checkIDIgnoresCase() {
  if (document.createElement &&
      document.getElementsByTagName && document.getElementById) {
      var el = document.createElement("script"), head = document.getElementsByTagName("head")[0];
      if (el && head && head.appendChild && head.removeChild) {
          el.type = "text/javascript";
          el.id = "A";
          head.appendChild(el);
          var buggy = !!document.getElementById("a");
          head.removeChild(el);
          el = null;
          return buggy;
      }
  }
  return null;
}

//should check if opera 8.54+
function checkStyleReturnsValues() {
  var view = document.defaultView;
  if (view && view.getComputedStyle) {
      var docEl = document.documentElement;
      var position = null;
      var style = view.getComputedStyle(docEl, null);
      if (style.position !== "static") {
          position = style.position;
          docEl.style.position = "";
      }
      var result = view.getComputedStyle(docEl, null).left !== "auto";
      if (position !== null) {
          docEl.style.position = position;
      }
      return result;
  }
  return null;
}

