Subversion Repositories LCARS

Rev

Rev 210 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 210 Rev 211
1
(function () {
1
(function () {
2
  var ua = navigator.userAgent;
2
  var ua = navigator.userAgent;
3
  document.write('<span id="ua" title="' + ua + '">' + ua + '<\/span>');
3
  document.write('<span id="ua" title="' + ua + '">' + ua + '<\/span>');
4
4
5
  var oUA;
5
  var oUA;
6
  var tUA = _runAsync(function () {
6
  var tUA = _runAsync(function () {
7
    if (typeof oUA == "undefined")
7
    if (typeof oUA == "undefined")
8
    {
8
    {
9
      oUA = document.getElementById("ua");
9
      oUA = document.getElementById("ua");
10
    }
10
    }
11
11
12
    if (oUA)
12
    if (oUA)
13
    {
13
    {
14
      var ua = navigator.userAgent;
14
      var ua = navigator.userAgent;
15
15
16
      if (oUA.innerHTML != ua)
16
      if (oUA.innerHTML != ua)
17
      {
17
      {
18
        oUA.innerHTML = ua;
18
        oUA.innerHTML = ua;
19
      }
19
      }
20
20
21
      /* Converts CREs */
21
      /* Converts CREs */
22
      var oUAhtml = oUA.innerHTML
22
      var oUAhtml = oUA.innerHTML
23
      if (oUA.title != oUAhtml)
23
      if (oUA.title != oUAhtml)
24
      {
24
      {
25
        oUA.title = oUAhtml;
25
        oUA.title = oUAhtml;
26
      }
26
      }
27
    }
27
    }
28
28
29
    tUA = this.run();
29
    tUA = this.run();
30
  }, 1000);
30
  }, 1000);
31
31
32
  _addEventListener(document, "unload", function () {
32
  _addEventListener(document, "unload", function () {
33
    tUA.unset();
33
    tUA.unset();
34
    tUA = null;
34
    tUA = null;
35
  });
35
  });
36
}());
36
}());