/**
 * @author Alexander Farkas
 * v. 1.22
 */

(function (c) { function f(a) { a = a.replace(/left|top/g, "0px"); a = a.replace(/right|bottom/g, "100%"); a = a.replace(/([0-9\.]+)(\s|\)|$)/g, "$1px$2"); a = a.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/); return [parseFloat(a[1], 10), a[2], parseFloat(a[3], 10), a[4]] } if (!document.defaultView || !document.defaultView.getComputedStyle) { var d = c.curCSS; c.curCSS = function (a, b, c) { b === "background-position" && (b = "backgroundPosition"); if (b !== "backgroundPosition" || !a.currentStyle || a.currentStyle[b]) return d.apply(this, arguments); var e = a.style; if (!c && e && e[b]) return e[b]; return d(a, "backgroundPositionX", c) + " " + d(a, "backgroundPositionY", c) }  } var g = c.fn.animate; c.fn.animate = function (a) { if ("background-position" in a) a.backgroundPosition = a["background-position"], delete a["background-position"]; if ("backgroundPosition" in a) a.backgroundPosition = "(" + a.backgroundPosition; return g.apply(this, arguments) }; c.fx.step.backgroundPosition = function (a) { if (!a.bgPosReady) { var b = c.curCSS(a.elem, "backgroundPosition"); b || (b = "0px 0px"); b = f(b); a.start = [b[0], b[2]]; b = f(a.end); a.end = [b[0], b[2]]; a.unit = [b[1], b[3]]; a.bgPosReady = !0 } b = []; b[0] = (a.end[0] - a.start[0]) * a.pos + a.start[0] + a.unit[0]; b[1] = (a.end[1] - a.start[1]) * a.pos + a.start[1] + a.unit[1]; a.elem.style.backgroundPosition = b[0] + " " + b[1] } })(jQuery);
