$(function(){ ! function(z0) { z0(document).ready(function() { function r0() { if (document.url.indexof("google.com/reader/view") > -1 && (o = !0), e0) for (var a = e0.split(/[,\n] ?/), b = a.length; b--;) if (document.url.indexof(a[b]) > -1) { a0("mousewheel", y), o = !0; break; } } function w() { if (document.body) { var a = document.body, b = document.documentelement, c = window.innerheight, d = a.scrollheight; if (u = document.compatmode.indexof("css") >= 0 ? b : a, d = a, r0(), f0 = !0, top != self) g0 = !0; else if (d > c && (a.offsetheight <= c || b.offsetheight <= c) && (u.style.height = "auto", u.offsetheight <= c)) { var e = document.createelement("div"); e.style.clear = "both", a.appendchild(e); } if (document.url.indexof("mail.google.com") > -1) { var f = document.createelement("style"); f.innerhtml = ".iu { visibility: hidden }", (document.getelementsbytagname("head")[0] || b).appendchild(f); } y0 || (a.style.backgroundattachment = "scroll"), o && a0("keydown", x); } } function v(q, r, s, k) { if (k || (k = 1e3), t0(r, s), o.push({ x: r, y: s, lastx: 0 > r ? .99 : -.99, lasty: 0 > s ? .99 : -.99, start: +new date }), !q) { var u = function() { for (var a = +new date, b = 0, c = 0, d = 0; d < o.length; d++) { var e = o[d], f = a - e.start, g = f >= c0, h = g ? 1 : f / c0; w0 && (h = v0(h)); var n = e.x * h - e.lastx >> 0, t = e.y * h - e.lasty >> 0; b += n, c += t, e.lastx += n, e.lasty += t, g && (o.splice(d, 1), d--); } if (r) { var p0 = q.scrollleft; q.scrollleft += b, b && q.scrollleft === p0 && (r = 0); } if (s) { var q0 = q.scrolltop; q.scrolltop += c, c && q.scrolltop === q0 && (s = 0); } r || s || (o = []), o.length ? settimeout(u, k / u0 + 1) : q = !1; }; settimeout(u, 0), q = !0; } } function y(a) { f0 || w(); var b = a.target, c = z(b); if (!c || a.defaultprevented || m(d, "embed") || m(b, "embed") && /\.pdf/i.test(b.src)) return !0; var d = a.wheeldeltax || 0, e = a.wheeldeltay || 0; d || e || (e = a.wheeldelta || 0), math.abs(d) > 1.2 && (d *= d0 / 120), math.abs(e) > 1.2 && (e *= d0 / 120), v(c, -d, -e), a.preventdefault(); } function x(a) { var b = a.target, c = a.ctrlkey || a.altkey || a.metakey; if (/input|textarea|embed/i.test(b.nodename) || b.iscontenteditable || a.defaultprevented || c) return !0; if (m(b, "button") && a.keycode === j.spacebar) return !0; var d, e = 0, f = 0, g = z(d), h = g.clientheight; switch (g == document.body && (h = window.innerheight), a.keycode) { case j.up: f = -e; break; case j.down: f = e; break; case j.spacebar: d = a.shiftkey ? 1 : -1, f = .9 * -d * h; break; case j.pageup: f = .9 * -h; break; case j.pagedown: f = .9 * h; break; case j.home: f = -g.scrolltop; break; case j.end: var n = g.scrollheight - g.scrolltop - h; f = n > 0 ? n + 10 : 0; break; case j.left: e = -e; break; case j.right: e = e; break; default: return !0; } v(g, e, f), a.preventdefault(); } function s0(a) { d = a.target; } function l(a, b) { for (var c = a.length; c--;) p[j0(a[c])] = b; return b; } function z(a) { var b = [], c = u.scrollheight; do { var d = p[j0(a)]; if (d) return l(b, d); if (b.push(a), c === a.scrollheight) { if (!g0 || u.clientheight + 10 < c) return l(b, document.body); } else if (a.clientheight + 10 < a.scrollheight && (overflow = getcomputedstyle(a, "").getpropertyvalue("overflow"), "scroll" === overflow || "auto" === overflow)) return l(b, a); } while (a = a.parentnode) } function c(a, b, c) { window.addeventlistener(a, b, c || !1); } function a0(a, b, c) { window.removeeventlistener(a, b, c || !1); } function m(a, b) { return a.nodename.tolowercase() === b.tolowercase(); } function t0(a, b) { a = a > 0 ? 1 : -1, b = b > 0 ? 1 : -1, (f.x !== a || f.y !== b) && (f.x = a, f.y = b, o = []); } function b0(a) { var b, c, d; return a *= x0, 1 > a ? b = a - (1 - math.exp(-a)) : (c = math.exp(-1), a -= 1, d = 1 - math.exp(-a), b = c + d * (1 - c)), b * n; } function v0(a) { return a >= 1 ? 1 : 0 >= a ? 0 : (1 == n && (n /= b0(1)), b0(a)); } var d, u, u0 = 150, c0 = 600, d0 = 150, w0 = !0, x0 = 5, n = 1, o = !1, e = 50, e0 = "", g0 = !1, f = { x: 0, y: 0 }, f0 = !1, y0 = !0, j = { left: 37, up: 38, right: 39, down: 40, spacebar: 32, pageup: 33, pagedown: 34, end: 35, home: 36 }, o = [], q = !1, p = {}; setinterval(function() { p = {}; }, 1e4); var j0 = function() { var b = 0; return function(a) { return a.uniqueid || (a.uniqueid = b++); }; }(); /chrome/.test(navigator.useragent.tolowercase()) && (c("mousedown", s0), c("mousewheel", y), c("keydown", x), c("load", w)); }); }(jquery); });