(function(d, m, g) { function t(a, c, d, b) { if (a > d || c > b) { var f = a / d, e = c / b; f > e ? (a = d, c /= f) : (a /= e, c = b) } return { width: a, height: c } } function p(a, c) { var d = ["-webkit-", "-moz-", "-o-", "-ms-", ""], b = {}, f, e = d.length; for (f = 0; f < e; f++) b[d[f] + a] = c; return b } function u(a) { return css3 ? p("transform", "translate(" + a + "px, 0)") : { left: a } } var h = 0, v = function(a, c, d) { function b(b, a) { for (var c in b) if (g[b[c]] !== d) return "pfx" == a ? b[c] : !0; return !1 } function f(a, c, f) { var e = a.charAt(0).toUpperCase() + a.substr(1), g = (a + " " + m.join(e + " ") + e).split(" "); if ("string" === typeof c || "undefined" === typeof c) c = b(g, c); else a: { g = (a + " " + l.join(e + " ") + e).split(" "), a = g; for (var n in a) if (e = c[a[n]], e !== d) { c = !1 === f ? a[n] : "function" === typeof e ? e.bind(f || c) : e; break a } c = !1 } return c } a = {}; var e = c.createElement("modernizr"), g = e.style, m = ["Webkit", "Moz", "O", "ms"], l = ["webkit", "moz", "o", "ms"], e = {}, n = [], r = n.slice, q, h = {}.hasOwnProperty, k; "undefined" === typeof h || "undefined" === typeof h.call ? k = function(b, a) { return a in b && "undefined" === typeof b.constructor.prototype[a] } : k = function(b, a) { return h.call(b, a) }; Function.prototype.bind || (Function.prototype.bind = function(b) { var a = this; if ("function" != typeof a) throw new TypeError; var c = r.call(arguments, 1), d = function() { if (this instanceof d) { var l = function() {}; l.prototype = a.prototype; var l = new l, e = a.apply(l, c.concat(r.call(arguments))); return Object(e) === e ? e : l } return a.apply(b, c.concat(r.call(arguments))) }; return d }); e.canvas = function() { var b = c.createElement("canvas"); return !!b.getContext && !!b.getContext("2d") }; e.csstransforms = function() { return !!f("transform") }; e.csstransitions = function() { return f("transition") }; for (var s in e) k(e, s) && (q = s.toLowerCase(), a[q] = e[s](), n.push((a[q] ? "" : "no-") + q)); g.cssText = ""; return e = null, a._version = "2.5.3", a._domPrefixes = l, a._cssomPrefixes = m, a.testProp = function(a) { return b([a]) }, a.testAllProps = f, a }(this, this.document); css3 = v.csstransforms && v.csstransitions; touch = "ontouchstart" in m; mobile = navigator.userAgent.toLowerCase().match(/(android|iphone|ipod|ipad|iemobile|windows ce|netfront|playstation|midp|up\.browser|symbian|nintendo|wii)/); var k = function(a, c) { this.e = d(a); this.o = d.extend({}, d.fn.fsgallery.defaults, c); this.i = 0; this.w = g.innerWidth || d(g).innerWidth(); this.h = g.innerHeight || d(g).innerHeight(); this.createArray(); this.createHtml(); this.createImages(); this.events() }; k.prototype = { constructor: k, createArray: function() { var a = this; a.images = []; a.e.parent("a").length ? a.e.parent("a").each(function() { a.images.push({ src: this.href, alt: d(this).find("img")[0].alt }) }) : a.e.each(function() { a.images.push({ src: this.src, alt: this.alt }) }) }, createHtml: function() { d("body").append(this.gallery = d('