! function (a, b) { "use strict"; a.hoverdir = function (b, c) { this.$el = a(c), this._init(b) }, a.hoverdir.defaults = { speed: 300, easing: "ease", hoverdelay: 0, inverse: !1 }, a.hoverdir.prototype = { _init: function (b) { this.options = a.extend(!0, {}, a.hoverdir.defaults, b), this.transitionprop = "all " + this.options.speed + "ms " + this.options.easing, this.support = modernizr.csstransitions, this._loadevents() }, _loadevents: function () { var b = this; this.$el.on("mouseenter.hoverdir, mouseleave.hoverdir", function (c) { var d = a(this), e = d.find("div"), f = b._getdir(d, { x: c.pagex, y: c.pagey }), g = b._getstyle(f); "mouseenter" === c.type ? (e.hide().css(g.from), cleartimeout(b.tmhover), b.tmhover = settimeout(function () { e.show(0, function () { var c = a(this); b.support && c.css("transition", b.transitionprop), b._applyanimation(c, g.to, b.options.speed) }) }, b.options.hoverdelay)) : (b.support && e.css("transition", b.transitionprop), cleartimeout(b.tmhover), b._applyanimation(e, g.from, b.options.speed)) }) }, _getdir: function (a, b) { var c = a.width(), d = a.height(), e = (b.x - a.offset().left - c / 2) * (c > d ? d / c : 1), f = (b.y - a.offset().top - d / 2) * (d > c ? c / d : 1), g = math.round((math.atan2(f, e) * (180 / math.pi) + 180) / 90 + 3) % 4; return g }, _getstyle: function (a) { var b, c, d = { left: "0px", top: "-100%" }, e = { left: "0px", top: "100%" }, f = { left: "-100%", top: "0px" }, g = { left: "100%", top: "0px" }, h = { top: "0px" }, i = { left: "0px" }; switch (a) { case 0: b = this.options.inverse ? e : d, c = h; break; case 1: b = this.options.inverse ? f : g, c = i; break; case 2: b = this.options.inverse ? d : e, c = h; break; case 3: b = this.options.inverse ? g : f, c = i } return { from: b, to: c } }, _applyanimation: function (b, c, d) { a.fn.applystyle = this.support ? a.fn.css : a.fn.animate, b.stop().applystyle(c, a.extend(!0, [], { duration: d + "ms" })) } }; var c = function (a) { b.console && b.console.error(a) }; a.fn.hoverdir = function (b) { var d, e = a.data(this, "hoverdir"); return "string" == typeof b ? (d = array.prototype.slice.call(arguments, 1), this.each(function () { return e ? a.isfunction(e[b]) && "_" !== b.charat(0) ? (e[b].apply(e, d), void 0) : (c("no such method '" + b + "' for hoverdir instance"), void 0) : (c("cannot call methods on hoverdir prior to initialization; attempted to call method '" + b + "'"), void 0) })) : this.each(function () { e ? e._init() : e = a.data(this, "hoverdir", new a.hoverdir(b, this)) }), e } }(jquery, window), window.modernizr = function (a, b, c) { function d(a) { q.csstext = a } function f(a, b) { return typeof a === b } function g(a, b) { return !!~("" + a).indexof(b) } function h(a, b) { var d, e; for (d in a) if (e = a[d], !g(e, "-") && q[e] !== c) return "pfx" == b ? e : !0; return !1 } function i(a, b, d) { var e, g; for (e in a) if (g = b[a[e]], g !== c) return d === !1 ? a[e] : f(g, "function") ? g.bind(d || b) : g; return !1 } function j(a, b, c) { var d = a.charat(0).touppercase() + a.slice(1), e = (a + " " + u.join(d + " ") + d).split(" "); return f(b, "string") || f(b, "undefined") ? h(e, b) : (e = (a + " " + v.join(d + " ") + d).split(" "), i(e, b, c)) } var r, b, d, e, k = "2.6.2", l = {}, m = !0, n = b.documentelement, o = "modernizr", p = b.createelement(o), q = p.style, t = ({}.tostring, "webkit moz o ms"), u = t.split(" "), v = t.tolowercase().split(" "), w = {}, z = [], a = z.slice, c = {}.hasownproperty; d = f(c, "undefined") || f(c.call, "undefined") ? function (a, b) { return b in a && f(a.constructor.prototype[b], "undefined") } : function (a, b) { return c.call(a, b) }, function.prototype.bind || (function.prototype.bind = function (a) { var c, d, b = this; if ("function" != typeof b) throw new typeerror; return c = a.call(arguments, 1), d = function () { var e, f, g; return this instanceof d ? (e = function () {}, e.prototype = b.prototype, f = new e, g = b.apply(f, c.concat(a.call(arguments))), object(g) === g ? g : f) : b.apply(a, c.concat(a.call(arguments))) } }), w.csstransitions = function () { return j("transition") }; for (e in w) d(w, e) && (b = e.tolowercase(), l[b] = w[e](), z.push((l[b] ? "" : "no-") + b)); return l.addtest = function (a, b) { if ("object" == typeof a) for (var d in a) d(a, d) && l.addtest(d, a[d]); else { if (a = a.tolowercase(), l[a] !== c) return l; b = "function" == typeof b ? b() : b, "undefined" != typeof m && m && (n.classname += " " + (b ? "" : "no-") + a), l[a] = b } return l }, d(""), p = r = null, function (a, b) { function c(a, b) { var c = a.createelement("p"), d = a.getelementsbytagname("head")[0] || a.documentelement; return c.innerhtml = "x", d.insertbefore(c.lastchild, d.firstchild) } function d() { var a = r.elements; return "string" == typeof a ? a.split(" ") : a } function e(a) { var b = p[a[n]]; return b || (b = {}, o++, a[n] = o, p[o] = b), b } function f(a, c, d) { if (c || (c = b), q) return c.createelement(a); d || (d = e(c)); var f; return f = d.cache[a] ? d.cache[a].clonenode() : l.test(a) ? (d.cache[a] = d.createelem(a)).clonenode() : d.createelem(a), f.canhavechildren && !k.test(a) ? d.frag.appendchild(f) : f } function g(a, c) { if (a || (a = b), q) return a.createdocumentfragment(); c = c || e(a); for (var f = c.frag.clonenode(), g = 0, h = d(), i = h.length; i > g; g++) f.createelement(h[g]); return f } function h(a, b) { b.cache || (b.cache = {}, b.createelem = a.createelement, b.createfrag = a.createdocumentfragment, b.frag = b.createfrag()), a.createelement = function (c) { return r.shivmethods ? f(c, a, b) : b.createelem(c) }, a.createdocumentfragment = function("h,f", "return function(){var n=f.clonenode(),c=n.createelement;h.shivmethods&&(" + d().join().replace(/\w+/g, function (a) { return b.createelem(a), b.frag.createelement(a), 'c("' + a + '")' }) + ");return n}")(r, b.frag) } function i(a) { a || (a = b); var d = e(a); return r.shivcss && !m && !d.hascss && (d.hascss = !!c(a, "article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#ff0;color:#000}")), q || h(a, d), a } p = {}; ! function () {}(), r = {}, a.html5 = r, i(b) }(this, b), l._version = k, l._domprefixes = v, l._cssomprefixes = u, l.testprop = function (a) { return h([a]) }, l.testallprops = j, n.classname = n.classname.replace(/(^|\s)no-js(\s|$)/, "$1$2") + (m ? " js " + z.join(" ") : ""), l }(this, this.document), function (a, b, c) { function d(a) { return "[object function]" == o.call(a) } function e(a) { return "string" == typeof a } function f() {} function g(a) { return !a || "loaded" == a || "complete" == a || "uninitialized" == a } function h() { var a = p.shift(); q = 1, a ? a.t ? m(function () { ("c" == a.t ? b.injectcss : b.injectjs)(a.s, 0, a.a, a.x, a.e, 1) }, 0) : (a(), h()) : q = 0 } function i(a, c, d, e, f, i, j) { function k(b) { if (!o && g(l.readystate) && (u.r = o = 1, !q && h(), l.onload = l.onreadystatechange = null, b)) { "img" != a && m(function () { t.removechild(l) }, 50); for (var d in y[c]) y[c].hasownproperty(d) && y[c][d].onload() } } var j = j || b.errortimeout, l = b.createelement(a), o = 0, r = 0, u = { t: d, s: c, e: f, a: i, x: j }; 1 === y[c] && (r = 1, y[c] = []), "object" == a ? l.data = c : (l.src = c, l.type = a), l.width = l.height = "0", l.onerror = l.onload = l.onreadystatechange = function () { k.call(this, r) }, p.splice(e, 0, u), "img" != a && (r || 2 === y[c] ? (t.insertbefore(l, s ? null : n), m(k, j)) : y[c].push(l)) } function j(a, b, c, d, f) { return q = 0, b = b || "j", e(a) ? i("c" == b ? v : u, a, b, this.i++, c, d, f) : (p.splice(this.i++, 0, a), 1 == p.length && h()), this } function k() { var a = b; return a.loader = { load: j, i: 0 }, a } var a, b, l = b.documentelement, m = a.settimeout, n = b.getelementsbytagname("script")[0], o = {}.tostring, p = [], q = 0, r = "mozappearance" in l.style, s = r && !!b.createrange().comparenode, t = s ? l : n.parentnode, l = a.opera && "[object opera]" == o.call(a.opera), l = !!b.attachevent && !l, u = r ? "object" : l ? "script" : "img", v = l ? "script" : u, w = array.isarray || function (a) { return "[object array]" == o.call(a) }, x = [], y = {}, z = { timeout: function (a, b) { return b.length && (a.timeout = b[0]), a } }; b = function (a) { function b(a) { var e, f, g, a = a.split("!"), b = x.length, c = a.pop(), d = a.length, c = { url: c, origurl: c, prefixes: a }; for (f = 0; d > f; f++) g = a[f].split("="), (e = z[g.shift()]) && (c = e(c, g)); for (f = 0; b > f; f++) c = x[f](c); return c } function g(a, e, f, g, h) { var i = b(a), j = i.autocallback; i.url.split(".").pop().split("?").shift(), i.bypass || (e && (e = d(e) ? e : e[a] || e[g] || e[a.split("/").pop().split("?")[0]]), i.instead ? i.instead(a, e, f, g, h) : (y[i.url] ? i.noexec = !0 : y[i.url] = 1, f.load(i.url, i.forcecss || !i.forcejs && "css" == i.url.split(".").pop().split("?").shift() ? "c" : c, i.noexec, i.attrs, i.timeout), (d(e) || d(j)) && f.load(function () { k(), e && e(i.origurl, h, g), j && j(i.origurl, h, g), y[i.url] = 2 }))) } function h(a, b) { function c(a, c) { if (a) { if (e(a)) c || (j = function () { var a = [].slice.call(arguments); k.apply(this, a), l() }), g(a, j, b, 0, h); else if (object(a) === a) for (n in m = function () { var c, b = 0; for (c in a) a.hasownproperty(c) && b++; return b }(), a) a.hasownproperty(n) && (!c && !--m && (d(j) ? j = function () { var a = [].slice.call(arguments); k.apply(this, a), l() } : j[n] = function (a) { return function () { var b = [].slice.call(arguments); a && a.apply(this, b), l() } }(k[n])), g(a[n], j, b, n, h)) } else !c && l() } var m, n, h = !!a.test, i = a.load || a.both, j = a.callback || f, k = j, l = a.complete || f; c(h ? a.yep : a.nope, !!i), i && c(i) } var i, j, l = this.yepnope.loader; if (e(a)) g(a, 0, l, 0); else if (w(a)) for (i = 0; i < a.length; i++) j = a[i], e(j) ? g(j, 0, l, 0) : w(j) ? b(j) : object(j) === j && h(j, l); else object(a) === a && h(a, l) }, b.addprefix = function (a, b) { z[a] = b }, b.addfilter = function (a) { x.push(a) }, b.errortimeout = 1e4, null == b.readystate && b.addeventlistener && (b.readystate = "loading", b.addeventlistener("domcontentloaded", a = function () { b.removeeventlistener("domcontentloaded", a, 0), b.readystate = "complete" }, 0)), a.yepnope = k(), a.yepnope.executestack = h, a.yepnope.injectjs = function (a, c, d, e, i, j) { var l, o, k = b.createelement("script"), e = e || b.errortimeout; k.src = a; for (o in d) k.setattribute(o, d[o]); c = j ? h : c || f, k.onreadystatechange = k.onload = function () { !l && g(k.readystate) && (l = 1, c(), k.onload = k.onreadystatechange = null) }, m(function () { l || (l = 1, c(1)) }, e), i ? k.onload() : n.parentnode.insertbefore(k, n) }, a.yepnope.injectcss = function (a, c, d, e, g, i) { var j, e = b.createelement("link"), c = i ? h : c || f; e.href = a, e.rel = "stylesheet", e.type = "text/css"; for (j in d) e.setattribute(j, d[j]); g || (n.parentnode.insertbefore(e, n), m(c, 0)) } }(this, document), modernizr.load = function () { yepnope.apply(window, [].slice.call(arguments, 0)) }, $(function () { function d() { return window.innerheight ? c = window.innerheight : document.body && document.body.clientheight && (c = document.body.clientheight), document.documentelement && document.documentelement.clientheight && (c = document.documentelement.clientheight), c } var a, c, e; $(" #da-thumbs > li ").each(function () { $(this).hoverdir() }) });