Advertisement
Guest User

Untitled

a guest
Apr 17th, 2015
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function() {
  2.     var e = {iu: "https://d5nxst8fruw4z.cloudfront.net/atrk.gif?", ver: "20130128", opts: {atrk_acct: "", domain: "", dynamic: false}, fired: function() {
  3.             if (typeof window._atrk_fired === "undefined") {
  4.                 window._atrk_fired = false
  5.             }
  6.             return window._atrk_fired
  7.         }, params: {frame_height: function() {
  8.                 return e.frame("innerHeight", "clientHeight")
  9.             }, frame_width: function() {
  10.                 return e.frame("innerWidth", "clientWidth")
  11.             }, iframe: function() {
  12.                 try {
  13.                     return window != window.top ? 1 : 0
  14.                 } catch (e) {
  15.                     return 0
  16.                 }
  17.             }, title: function() {
  18.                 return this.ue(document ? document.title : "")
  19.             }, time: function() {
  20.                 var e = new Date;
  21.                 return e.getTime() + "&time_zone_offset=" + e.getTimezoneOffset()
  22.             }, screen_params: function() {
  23.                 try {
  24.                     return screen.width + "x" + screen.height + "x" + screen.colorDepth
  25.                 } catch (e) {
  26.                 }
  27.                 return""
  28.             }, java_enabled: function() {
  29.                 if (navigator && typeof navigator.javaEnabled !== "undefined") {
  30.                     return navigator.javaEnabled() ? "1" : "0"
  31.                 }
  32.                 return""
  33.             }, cookie_enabled: function() {
  34.                 if (navigator && typeof navigator.cookieEnabled !== "undefined") {
  35.                     return navigator.cookieEnabled ? "1" : "0"
  36.                 }
  37.                 return""
  38.             }, ref_url: function() {
  39.                 return typeof document.referrer === "string" ? e.ue(document.referrer) : ""
  40.             }, host_url: function() {
  41.                 return typeof window.location.href === "string" ? e.ue(window.location.href) : ""
  42.             }, random_number: function() {
  43.                 return Math.round(Math.random() * 21474836747)
  44.             }, sess_cookie: function() {
  45.                 return e.gc("__asc", e.user_cookie_v, "sess_cookie", 30 * 60)
  46.             }, user_cookie: function() {
  47.                 return e.gc("__auc", e.user_cookie_v, "user_cookie", 366 * 24 * 60 * 60)
  48.             }, dynamic: function() {
  49.                 return this.opts.dynamic.toString()
  50.             }, domain: function() {
  51.                 return typeof this.opts.domain === "string" ? this.opts.domain : ""
  52.             }, account: function() {
  53.                 return typeof this.opts.atrk_acct === "string" ? this.opts.atrk_acct : ""
  54.             }, jsv: function() {
  55.                 return this.ver
  56.             }, user_lang: function() {
  57.                 return window.navigator.userLanguage || window.navigator.language
  58.             }}, frame: function(e, t) {
  59.             if (typeof window[e] !== "undefined") {
  60.                 return window[e]
  61.             } else if (typeof window.document[t] !== "undefined") {
  62.                 return window.document[t]
  63.             } else {
  64.                 try {
  65.                     return window.document.getElementsByTagName("body")[0][t]
  66.                 } catch (n) {
  67.                     return"-"
  68.                 }
  69.             }
  70.         }, r: function() {
  71.             return((1 + Math.random()) * 65536 | 0).toString(16).substring(1)
  72.         }, muc: function() {
  73.             return this.r() + this.r() + (new Date).getTime().toString(16) + this.r() + this.r()
  74.         }, gc: function(e, t, n, r) {
  75.             var i = "", s = 0;
  76.             try {
  77.                 i = this.gbc(e)
  78.             } catch (o) {
  79.             }
  80.             if (i == null || i.length == 0) {
  81.                 i = t;
  82.                 s = 1
  83.             }
  84.             this.sbc(e, i, r);
  85.             return i + "&" + n + "_flag=" + s
  86.         }, ue: function(e) {
  87.             try {
  88.                 return encodeURIComponent(e)
  89.             } catch (t) {
  90.                 return escape(e)
  91.             }
  92.         }, gbc: function(e) {
  93.             var t = document.cookie, n = e + "=", r = t.indexOf("; " + n), i;
  94.             if (r == -1) {
  95.                 r = t.indexOf(n);
  96.                 if (r != 0)
  97.                     return null
  98.             } else {
  99.                 r += 2
  100.             }
  101.             i = t.indexOf(";", r);
  102.             if (i == -1) {
  103.                 i = t.length
  104.             }
  105.             return this.ue(t.substring(r + n.length, i))
  106.         }, sbc: function(e, t, n) {
  107.             var r = new Date, i = this.dom(), s = "/";
  108.             r.setTime(r.getTime() + n * 1e3);
  109.             document.cookie = e + "=" + escape(t) + (n ? "; expires=" + r.toGMTString() : "") + (i && i.length > 0 ? "; domain=." + i : "") + "; path=/"
  110.         }, dom: function() {
  111.             if (typeof this.opts.domain === "string") {
  112.                 return this.opts.domain
  113.             } else {
  114.                 var e = window.location.host;
  115.                 return e.substr(0, 4) == "www." ? e.substr(4) : e
  116.             }
  117.         }, gen_url: function() {
  118.             try {
  119.                 var e = this;
  120.                 return this.iu + this.map(this.params, function(t, n) {
  121.                     return t + "=" + n.call(e)
  122.                 }).join("&")
  123.             } catch (t) {
  124.                 return this.iu
  125.             }
  126.         }, map: function(e, t) {
  127.             var n = [];
  128.             for (var r in e) {
  129.                 if (e.hasOwnProperty(r)) {
  130.                     n.push(t.call(this, r, e[r]))
  131.                 }
  132.             }
  133.             return n
  134.         }, cloudfront: {url: "http://cloudfront-labs.amazonaws.com/x.png", fire: function() {
  135.                 if (location.protocol == "http:") {
  136.                     (new Image).src = e.cloudfront.url
  137.                 }
  138.             }}, user_cookie_v: "", fire: function(e) {
  139.             this.user_cookie_v = this.muc();
  140.             this.map(e, function(e, t) {
  141.                 this.opts[e] = t
  142.             });
  143.             if (this.fired()) {
  144.                 return
  145.             }
  146.             window._atrk_fired = true;
  147.             var t = new Image(1, 1);
  148.             t.alt = "alexametrics";
  149.             t.src = this.gen_url();
  150.             this.cloudfront.fire()
  151.         }};
  152.     window.atrk = function() {
  153.         e.fire(_atrk_opts)
  154.     };
  155.     if (typeof _atrk_opts !== "undefined" && typeof _atrk_opts.dynamic !== "undefined" && _atrk_opts.dynamic) {
  156.         atrk()
  157.     }
  158. })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement