var _STRINGS = {
Ad: {
Mobile: {
Preroll: {
ReadyIn: "The game is ready in ",
Loading: "Your game is loading...",
Close: "Close"
},
Header: {
ReadyIn: "The game is ready in ",
Loading: "Your game is loading...",
Close: "Close"
},
End: {
ReadyIn: "Advertisement ends in ",
Loading: "Please wait ...",
Close: "Close"
}
}
},
Splash: {
Loading: "Loading ...",
LogoLine1: "Some text here",
LogoLine2: "powered by MarketJS",
LogoLine3: "none"
},
Game: {
SelectPlayer: "Select Player",
Win: "You win!",
Lose: "You lose!",
Score: "Score",
Time: "Time",
pilotLevel: ["pilot level",
51, 195, 0.95, 0.98
],
score: ["score", 51, 256, 0.95, 0.98],
missions: ["missions", 51, 315, 0.95, 0.98],
completed: ["completed", 51, 346, 0.95, 0.98],
newLevel: ["new pilot level", 325, 224, 1.2, 1.3],
comment: ["great flying!", 328, 50, 0.7, 0.8],
awesome: ["awesome!", 182, 97, 0.5, 0.6],
youfail: ["You FAILED!", 184, 97, 0.5, 0.6],
logbook: ["pilot logbook", 320, 54, 1.3, 1.5],
select: ["select airplane", 320, 54, 0.8, 0.9],
selectMap: ["select map", 320, 54, 0.8, 0.9],
notenough: ["need more stars", 320, 54, 0.8, 0.9],
selected: ["selected", 320, 334, 0.8, 0.9],
start: ["",
320, 234, 0.4, 0.4
],
selectedMap: ["selected", 320, 347, 0.8, 0.9],
nextlevel: ["next pilot level at", 320, 347, 0.8, 0.9],
maxLvl: ["You've reached the max level!", 320, 141, 1, 1.1],
nextlevelNumber: ["9999", 320, 135, 1.1, 1.3],
nextlevelMission: ["next pilot level at ", 320, 141, 0.8, 0.9],
letsGo: ["Let's go!", 290, 279, 0.7, 0.8],
gameOver: ["Aww~ You ran out of lives!", 120, 157, 0.9, 1],
accomplish: ["Mission Accomplished!", 320, 157, 0.9, 1],
complete: ["Mission Complete", 320, 399, 1, 1.1],
gameover: ["Game Over", 320, 399, 1, 1.1],
fail: ["Mission Failed",
320, 399, 1, 1.1
],
pc1: ["Click left or right to move the plane.", 51, 142, 0.6, 0.7],
pc2: ["You can also use the arrow keys.", 51, 180, 0.6, 0.7],
mobile1: ["Tap left or right to move the plane", 101, 160, 0.6, 0.7],
ufo1: ["Avoid the UFOs!", 51, 143, 0.6, 0.7],
ufo2: ["Stay alive as long as you can!", 51, 177, 0.9, 1],
tree1: ["Avoid the trees, go green!", 158, 144, 0.7, 0.8],
tree2: ["Survive for 60 seconds.", 158, 183, 0.7, 0.8],
ship1: ["The hot air balloons are heading left!", 48, 142, 0.7, 0.8],
ship2: ["Survive for 60 seconds.", 48, 180, 0.7,
0.8
],
balloon1: ["Avoid slow moving hot air balloons!", 68, 144, 0.7, 0.8],
balloon2: ["Survive for 60 seconds.", 68, 183, 0.7, 0.8],
ring1: ["The rings are guiding us on the right path,", 47, 142, 0.68, 0.78],
ring2: ["Fly through $ of them!", 48, 180, 0.68, 0.78],
oil1: ["Our pilot headquarters is out of fuel,", 44, 146, 0.7, 0.8],
oil2: ["collect $ drops of fuel within 1 minute!", 44, 182, 0.7, 0.8],
star1: ["Look at those shiny stars,", 126, 145, 0.7, 0.8],
star2: ["Can you collect $ of them?", 126, 180, 0.7, 0.8],
pause: ["PAUSED", 320, 135, 2,
2.1
]
},
Results: {
Title: "High score"
}
};
var _SETTINGS = {
API: {
Enabled: !0,
Log: {
Events: {
InitializeGame: !0,
EndGame: !0,
Level: {
Begin: !0,
End: !0,
Win: !0,
Lose: !0,
Draw: !0
}
}
}
},
Ad: {
Mobile: {
Preroll: {
Enabled: !1,
Duration: 5,
Width: 300,
Height: 250,
Rotation: {
Enabled: !1,
Weight: {
MobileAdInGamePreroll: 40,
MobileAdInGamePreroll2: 40,
MobileAdInGamePreroll3: 20
}
}
},
Header: {
Enabled: !1,
Duration: 5,
Width: 320,
Height: 50,
Rotation: {
Enabled: !1,
Weight: {
MobileAdInGameHeader: 40,
MobileAdInGameHeader2: 40,
MobileAdInGameHeader3: 20
}
}
},
Footer: {
Enabled: !1,
Duration: 5,
Width: 320,
Height: 50,
Rotation: {
Enabled: !1,
Weight: {
MobileAdInGameFooter: 40,
MobileAdInGameFooter2: 40,
MobileAdInGameFooter3: 20
}
}
},
End: {
Enabled: !1,
Duration: 1,
Width: 300,
Height: 250,
Rotation: {
Enabled: !1,
Weight: {
MobileAdInGameEnd: 40,
MobileAdInGameEnd2: 40,
MobileAdInGameEnd3: 20
}
}
}
}
},
Language: {
Default: "en"
},
DeveloperBranding: {
Splash: {
Enabled: !0
},
Logo: {
Enabled: !1,
Link: "http://marketjs.com",
LinkEnabled: !1,
NewWindow: !0,
Width: 166,
Height: 61
}
},
Branding: {
Splash: {
Enabled: !1
},
Logo: {
Enabled: !1,
Link: "http://google.com",
LinkEnabled: !0,
NewWindow: !0,
Width: 280,
Height: 34
}
},
MoreGames: {
Enabled: !1,
Link: "http://www.marketjs.com/game/links/mobile",
NewWindow: !0
},
Gamecenter: {
Enabled: !0
}
};
var MobileAdInGamePreroll = {/*
ad_duration: _SETTINGS.Ad.Mobile.Preroll.Duration,
ad_width: _SETTINGS.Ad.Mobile.Preroll.Width,
ad_height: _SETTINGS.Ad.Mobile.Preroll.Height,
ready_in: _STRINGS.Ad.Mobile.Preroll.ReadyIn,
loading: _STRINGS.Ad.Mobile.Preroll.Loading,
close: _STRINGS.Ad.Mobile.Preroll.Close + " ",
Initialize: function() {
if (_SETTINGS.Ad.Mobile.Preroll.Rotation.Enabled) {
var b = _SETTINGS.Ad.Mobile.Preroll.Rotation.Weight,
c = b.MobileAdInGamePreroll,
d =
c + b.MobileAdInGamePreroll2,
b = d + b.MobileAdInGamePreroll3,
g = Math.floor(100 * Math.random());
console.log("seed: ", g);
g <= c ? this.selectedOverlayName = "MobileAdInGamePreroll" : g <= d ? this.selectedOverlayName = "MobileAdInGamePreroll2" : g <= b && (this.selectedOverlayName = "MobileAdInGamePreroll3");
console.log("Ad rotating preroll enabled")
} else this.selectedOverlayName = "MobileAdInGamePreroll", console.log("Ad rotating preroll disabled");
console.log("selected:", this.selectedOverlayName);
this.overlay = $("#" + this.selectedOverlayName);
this.box = $("#" + this.selectedOverlayName + "-Box");
this.game = $("#game");
this.boxContents = {
footer: $("#" + this.selectedOverlayName + "-Box-Footer"),
header: $("#" + this.selectedOverlayName + "-Box-Header"),
close: $("#" + this.selectedOverlayName + "-Box-Close"),
body: $("#" + this.selectedOverlayName + "-Box-Body")
};
this.box.width(this.ad_width);
this.box.height(this.ad_height);
this.box.css("left", (this.overlay.width() - this.box.width()) / 2);
this.box.css("top", (this.overlay.height() - this.box.height() - this.boxContents.header.height() -
this.boxContents.footer.height()) / 2);
this.overlay.show(this.Timer(this.ad_duration))
},
Timer: function(b) {
var c = b,
d = setInterval(function() {
MobileAdInGamePreroll.boxContents.header.text(MobileAdInGamePreroll.ready_in + c + "...");
MobileAdInGamePreroll.boxContents.footer.text(MobileAdInGamePreroll.loading);
c--;
0 > c && (clearInterval(d), MobileAdInGamePreroll.boxContents.close.css("left", MobileAdInGamePreroll.boxContents.body.width() - 23), MobileAdInGamePreroll.boxContents.close.show(), MobileAdInGamePreroll.boxContents.header.html(MobileAdInGamePreroll.close),
MobileAdInGamePreroll.boxContents.footer.text(""))
}, 1E3)
},
Close: function() {
this.boxContents.close.hide();
this.overlay.hide()
}*/
};
var MobileAdInGameHeader = {/*
ad_duration: _SETTINGS.Ad.Mobile.Header.Duration,
ad_width: _SETTINGS.Ad.Mobile.Header.Width,
ad_height: _SETTINGS.Ad.Mobile.Header.Height,
Initialize: function() {
if (_SETTINGS.Ad.Mobile.Header.Rotation.Enabled) {
var b = _SETTINGS.Ad.Mobile.Header.Rotation.Weight,
c = b.MobileAdInGameHeader,
d = c + b.MobileAdInGameHeader2,
b = d + b.MobileAdInGameHeader3,
g = Math.floor(100 * Math.random());
console.log("seed: ", g);
g <= c ? this.selectedOverlayName = "MobileAdInGameHeader" : g <= d ? this.selectedOverlayName = "MobileAdInGameHeader2" :
g <= b && (this.selectedOverlayName = "MobileAdInGameHeader3");
console.log("Ad rotating header enabled")
} else this.selectedOverlayName = "MobileAdInGameHeader", console.log("Ad rotating header disabled");
this.div = $("#" + this.selectedOverlayName);
this.game = $("#game");
this.div.width(this.ad_width);
this.div.height(this.ad_height);
this.div.css("left", this.game.position().left + (this.game.width() - this.div.width()) / 2);
this.div.css("top", 0);
this.div.show(this.Timer(this.ad_duration))
},
Timer: function(b) {
var c = setInterval(function() {
b--;
0 > b && (MobileAdInGameHeader.div.hide(), clearInterval(c))
}, 1E3)
}*/
};
var MobileAdInGameFooter = {/*
ad_duration: _SETTINGS.Ad.Mobile.Footer.Duration,
ad_width: _SETTINGS.Ad.Mobile.Footer.Width,
ad_height: _SETTINGS.Ad.Mobile.Footer.Height,
Initialize: function() {
if (_SETTINGS.Ad.Mobile.Footer.Rotation.Enabled) {
var b = _SETTINGS.Ad.Mobile.Footer.Rotation.Weight,
c = b.MobileAdInGameFooter,
d = c + b.MobileAdInGameFooter2,
b = d + b.MobileAdInGameFooter3,
g = Math.floor(100 * Math.random());
console.log("seed: ", g);
g <= c ? this.selectedOverlayName = "MobileAdInGameFooter" : g <= d ? this.selectedOverlayName = "MobileAdInGameFooter2" :
g <= b && (this.selectedOverlayName = "MobileAdInGameFooter3");
console.log("Ad rotating footer enabled")
} else this.selectedOverlayName = "MobileAdInGameFooter", console.log("Ad rotating footer disabled");
this.div = $("#" + this.selectedOverlayName);
this.game = $("#game");
this.div.width(this.ad_width);
this.div.height(this.ad_height);
this.div.css("left", this.game.position().left + (this.game.width() - this.div.width()) / 2);
this.div.css("top", this.game.height() - this.div.height() - 5);
this.div.show(this.Timer(this.ad_duration))
},
Timer: function(b) {
var c = setInterval(function() {
b--;
0 > b && (MobileAdInGameFooter.div.hide(), clearInterval(c))
}, 1E3)
}*/
};
var MobileAdInGameEnd = {/*
ad_duration: _SETTINGS.Ad.Mobile.End.Duration,
ad_width: _SETTINGS.Ad.Mobile.End.Width,
ad_height: _SETTINGS.Ad.Mobile.End.Height,
ready_in: _STRINGS.Ad.Mobile.End.ReadyIn,
loading: _STRINGS.Ad.Mobile.End.Loading,
close: _STRINGS.Ad.Mobile.End.Close + " ",
Initialize: function() {
if (_SETTINGS.Ad.Mobile.End.Rotation.Enabled) {
var b = _SETTINGS.Ad.Mobile.End.Rotation.Weight,
c = b.MobileAdInGameEnd,
d = c + b.MobileAdInGameEnd2,
b = d + b.MobileAdInGameEnd3,
g = Math.floor(100 * Math.random());
console.log("seed: ", g);
g <= c ? this.selectedOverlayName = "MobileAdInGameEnd" : g <= d ? this.selectedOverlayName = "MobileAdInGameEnd2" : g <= b && (this.selectedOverlayName = "MobileAdInGameEnd3");
console.log("Ad rotating end enabled")
} else this.selectedOverlayName = "MobileAdInGameEnd", console.log("Ad rotating end disabled");
console.log("selected:", this.selectedOverlayName);
this.overlay = $("#" + this.selectedOverlayName);
this.box = $("#" + this.selectedOverlayName + "-Box");
this.game = $("#game");
this.boxContents = {
footer: $("#" + this.selectedOverlayName + "-Box-Footer"),
header: $("#" + this.selectedOverlayName + "-Box-Header"),
close: $("#" + this.selectedOverlayName + "-Box-Close"),
body: $("#" + this.selectedOverlayName + "-Box-Body")
};
this.box.width(this.ad_width);
this.box.height(this.ad_height);
this.box.css("left", (this.overlay.width() - this.box.width()) / 2);
this.box.css("top", (this.overlay.height() - this.box.height() - this.boxContents.header.height() - this.boxContents.footer.height()) / 2);
this.overlay.show(this.Timer(this.ad_duration))
},
Timer: function(b) {
var c = b,
d = setInterval(function() {
MobileAdInGameEnd.boxContents.header.text(MobileAdInGameEnd.ready_in + c + "...");
MobileAdInGameEnd.boxContents.footer.text(MobileAdInGameEnd.loading);
c--;
0 > c && (clearInterval(d), MobileAdInGameEnd.boxContents.close.css("left", MobileAdInGameEnd.boxContents.body.width() - 23), MobileAdInGameEnd.boxContents.close.show(), MobileAdInGameEnd.boxContents.header.html(MobileAdInGameEnd.close), MobileAdInGameEnd.boxContents.footer.text(""))
}, 1E3)
},
Close: function() {
this.boxContents.close.hide();
this.overlay.hide()
}*/
};
(function(b, c) {
function d(b, f, q) {
if (q === c && 1 === b.nodeType)
if (q = "data-" + f.replace(sc, "-$1").toLowerCase(), q = b.getAttribute(q), "string" == typeof q) {
try {
q = "true" === q ? !0 : "false" === q ? !1 : "null" === q ? null : +q + "" === q ? +q : tc.test(q) ? e.parseJSON(q) : q
} catch (C) {}
e.data(b, f, q)
} else q = c;
return q
}
function g(b) {
for (var f in b)
if (!("data" === f && e.isEmptyObject(b[f])) && "toJSON" !== f) return !1;
return !0
}
function j() {
return !1
}
function n() {
return !0
}
function y(b) {
return !b || !b.parentNode || 11 === b.parentNode.nodeType
}
function r(b,
f) {
do b = b[f]; while (b && 1 !== b.nodeType);
return b
}
function z(b, f, q) {
f = f || 0;
if (e.isFunction(f)) return e.grep(b, function(b, u) {
return !!f.call(b, u, b) === q
});
if (f.nodeType) return e.grep(b, function(b) {
return b === f === q
});
if ("string" == typeof f) {
var c = e.grep(b, function(b) {
return 1 === b.nodeType
});
if (uc.test(f)) return e.filter(f, c, !q);
f = e.filter(f, c)
}
return e.grep(b, function(b) {
return 0 <= e.inArray(b, f) === q
})
}
function A(b) {
var f = wb.split("|");
b = b.createDocumentFragment();
if (b.createElement)
for (; f.length;) b.createElement(f.pop());
return b
}
function B(b, f) {
if (1 === f.nodeType && e.hasData(b)) {
var q, c, d;
c = e._data(b);
var s = e._data(f, c),
m = c.events;
if (m)
for (q in delete s.handle, s.events = {}, m) {
c = 0;
for (d = m[q].length; c < d; c++) e.event.add(f, q, m[q][c])
}
s.data && (s.data = e.extend({}, s.data))
}
}
function l(b, f) {
var q;
1 === f.nodeType && (f.clearAttributes && f.clearAttributes(), f.mergeAttributes && f.mergeAttributes(b), q = f.nodeName.toLowerCase(), "object" === q ? (f.parentNode && (f.outerHTML = b.outerHTML), e.support.html5Clone && b.innerHTML && !e.trim(f.innerHTML) &&
(f.innerHTML = b.innerHTML)) : "input" === q && xb.test(b.type) ? (f.defaultChecked = f.checked = b.checked, f.value !== b.value && (f.value = b.value)) : "option" === q ? f.selected = b.defaultSelected : "input" === q || "textarea" === q ? f.defaultValue = b.defaultValue : "script" === q && f.text !== b.text && (f.text = b.text), f.removeAttribute(e.expando))
}
function p(b) {
return "undefined" != typeof b.getElementsByTagName ? b.getElementsByTagName("*") : "undefined" != typeof b.querySelectorAll ? b.querySelectorAll("*") : []
}
function t(b) {
xb.test(b.type) && (b.defaultChecked =
b.checked)
}
function x(b, f) {
if (f in b) return f;
for (var q = f.charAt(0).toUpperCase() + f.slice(1), c = f, e = yb.length; e--;)
if (f = yb[e] + q, f in b) return f;
return c
}
function L(b, f) {
return b = f || b, "none" === e.css(b, "display") || !e.contains(b.ownerDocument, b)
}
function H(b, f) {
for (var q, c, d = [], s = 0, m = b.length; s < m; s++) q = b[s], q.style && (d[s] = e._data(q, "olddisplay"), f ? (!d[s] && "none" === q.style.display && (q.style.display = ""), "" === q.style.display && L(q) && (d[s] = e._data(q, "olddisplay", K(q.nodeName)))) : (c = R(q, "display"), !d[s] && "none" !==
c && e._data(q, "olddisplay", c)));
for (s = 0; s < m; s++)
if (q = b[s], q.style && (!f || "none" === q.style.display || "" === q.style.display)) q.style.display = f ? d[s] || "" : "none";
return b
}
function E(b, f, q) {
return (b = vc.exec(f)) ? Math.max(0, b[1] - (q || 0)) + (b[2] || "px") : f
}
function N(b, f, q, c) {
f = q === (c ? "border" : "content") ? 4 : "width" === f ? 1 : 0;
for (var d = 0; 4 > f; f += 2) "margin" === q && (d += e.css(b, q + fa[f], !0)), c ? ("content" === q && (d -= parseFloat(R(b, "padding" + fa[f])) || 0), "margin" !== q && (d -= parseFloat(R(b, "border" + fa[f] + "Width")) || 0)) : (d += parseFloat(R(b,
"padding" + fa[f])) || 0, "padding" !== q && (d += parseFloat(R(b, "border" + fa[f] + "Width")) || 0));
return d
}
function F(b, f, q) {
var c = "width" === f ? b.offsetWidth : b.offsetHeight,
d = !0,
s = e.support.boxSizing && "border-box" === e.css(b, "boxSizing");
if (0 >= c || null == c) {
c = R(b, f);
if (0 > c || null == c) c = b.style[f];
if (za.test(c)) return c;
d = s && (e.support.boxSizingReliable || c === b.style[f]);
c = parseFloat(c) || 0
}
return c + N(b, f, q || (s ? "border" : "content"), d) + "px"
}
function K(b) {
if (Ya[b]) return Ya[b];
var f = e("<" + b + ">").appendTo(D.body),
c = f.css("display");
f.remove();
if ("none" === c || "" === c) {
ma = D.body.appendChild(ma || e.extend(D.createElement("iframe"), {
frameBorder: 0,
width: 0,
height: 0
}));
if (!na || !ma.createElement) na = (ma.contentWindow || ma.contentDocument).document, na.write("
"), na.close();
f = na.body.appendChild(na.createElement(b));
c = R(f, "display");
D.body.removeChild(ma)
}
return Ya[b] = c, c
}
function O(b, f, c, C) {
var d;
if (e.isArray(f)) e.each(f, function(f, e) {
c || wc.test(b) ? C(b, e) : O(b + "[" + ("object" == typeof e ? f : "") + "]", e, c, C)
});
else if (!c &&
"object" === e.type(f))
for (d in f) O(b + "[" + d + "]", f[d], c, C);
else C(b, f)
}
function Aa(b) {
return function(f, c) {
"string" != typeof f && (c = f, f = "*");
var C, d, s = f.toLowerCase().split(ga),
m = 0,
l = s.length;
if (e.isFunction(c))
for (; m < l; m++) C = s[m], (d = /^\+/.test(C)) && (C = C.substr(1) || "*"), C = b[C] = b[C] || [], C[d ? "unshift" : "push"](c)
}
}
function oa(b, f, q, e, d, s) {
d = d || f.dataTypes[0];
s = s || {};
s[d] = !0;
var m;
d = b[d];
for (var l = 0, g = d ? d.length : 0, j = b === Za; l < g && (j || !m); l++) m = d[l](f, q, e), "string" == typeof m && (!j || s[m] ? m = c : (f.dataTypes.unshift(m),
m = oa(b, f, q, e, m, s)));
return (j || !m) && !s["*"] && (m = oa(b, f, q, e, "*", s)), m
}
function ta(b, f) {
var q, C, d = e.ajaxSettings.flatOptions || {};
for (q in f) f[q] !== c && ((d[q] ? b : C || (C = {}))[q] = f[q]);
C && e.extend(!0, b, C)
}
function zb() {
try {
return new b.XMLHttpRequest
} catch (u) {}
}
function Ab() {
return setTimeout(function() {
Ba = c
}, 0), Ba = e.now()
}
function Bb(b, f, c) {
var C, d = 0,
s = Ca.length,
m = e.Deferred().always(function() {
delete l.elem
}),
l = function() {
for (var f = Ba || Ab(), f = Math.max(0, g.startTime + g.duration - f), c = 1 - (f / g.duration || 0), q =
0, e = g.tweens.length; q < e; q++) g.tweens[q].run(c);
return m.notifyWith(b, [g, c, f]), 1 > c && e ? f : (m.resolveWith(b, [g]), !1)
},
g = m.promise({
elem: b,
props: e.extend({}, f),
opts: e.extend(!0, {
specialEasing: {}
}, c),
originalProperties: f,
originalOptions: c,
startTime: Ba || Ab(),
duration: c.duration,
tweens: [],
createTween: function(f, c) {
var q = e.Tween(b, g.opts, f, c, g.opts.specialEasing[f] || g.opts.easing);
return g.tweens.push(q), q
},
stop: function(f) {
for (var c = 0, q = f ? g.tweens.length : 0; c < q; c++) g.tweens[c].run(1);
return f ? m.resolveWith(b, [g, f]) : m.rejectWith(b, [g, f]), this
}
});
f = g.props;
c = g.opts.specialEasing;
var j, p, t, r;
for (C in f)
if (j = e.camelCase(C), p = c[j], t = f[C], e.isArray(t) && (p = t[1], t = f[C] = t[0]), C !== j && (f[j] = t, delete f[C]), (r = e.cssHooks[j]) && "expand" in r)
for (C in t = r.expand(t), delete f[j], t) C in f || (f[C] = t[C], c[C] = p);
else c[j] = p;
for (; d < s; d++)
if (C = Ca[d].call(g, b, f, g.opts)) return C;
var n = g;
e.each(f, function(b, u) {
for (var f = (ua[b] || []).concat(ua["*"]), c = 0, q = f.length; c < q && !f[c].call(n, b, u); c++);
});
return e.isFunction(g.opts.start) && g.opts.start.call(b,
g), e.fx.timer(e.extend(l, {
anim: g,
queue: g.opts.queue,
elem: b
})), g.progress(g.opts.progress).done(g.opts.done, g.opts.complete).fail(g.opts.fail).always(g.opts.always)
}
function T(b, f, c, e, d) {
return new T.prototype.init(b, f, c, e, d)
}
function Da(b, f) {
var c, e = {
height: b
},
d = 0;
for (f = f ? 1 : 0; 4 > d; d += 2 - f) c = fa[d], e["margin" + c] = e["padding" + c] = b;
return f && (e.opacity = e.width = b), e
}
function Cb(b) {
return e.isWindow(b) ? b : 9 === b.nodeType ? b.defaultView || b.parentWindow : !1
}
var Db, Ea, D = b.document,
yc = b.location,
zc = b.navigator,
Ac =
b.jQuery,
Bc = b.$,
Eb = Array.prototype.push,
aa = Array.prototype.slice,
Fb = Array.prototype.indexOf,
Cc = Object.prototype.toString,
$a = Object.prototype.hasOwnProperty,
ab = String.prototype.trim,
e = function(b, f) {
return new e.fn.init(b, f, Db)
},
Fa = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,
Dc = /\S/,
ga = /\s+/,
Ec = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
Fc = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
Gb = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
Gc = /^[\],:{}\s]*$/,
Hc = /(?:^|:|,)(?:\s*\[)+/g,
Ic = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,
Jc = /"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,
Kc = /^-ms-/,
Lc = /-([\da-z])/gi,
Mc = function(b, f) {
return (f + "").toUpperCase()
},
Ga = function() {
D.addEventListener ? (D.removeEventListener("DOMContentLoaded", Ga, !1), e.ready()) : "complete" === D.readyState && (D.detachEvent("onreadystatechange", Ga), e.ready())
},
Hb = {};
e.fn = e.prototype = {
constructor: e,
init: function(b, f, q) {
var C, d;
if (!b) return this;
if (b.nodeType) return this.context = this[0] = b, this.length = 1, this;
if ("string" == typeof b) {
"<" === b.charAt(0) && ">" === b.charAt(b.length - 1) && 3 <= b.length ? C = [null, b, null] : C = Fc.exec(b);
if (C && (C[1] || !f)) {
if (C[1]) return f = f instanceof e ? f[0] : f, d = f && f.nodeType ? f.ownerDocument || f : D, b = e.parseHTML(C[1], d, !0), Gb.test(C[1]) && e.isPlainObject(f) && this.attr.call(b, f, !0), e.merge(this, b);
if ((f = D.getElementById(C[2])) && f.parentNode) {
if (f.id !== C[2]) return q.find(b);
this.length = 1;
this[0] = f
}
return this.context = D, this.selector = b, this
}
return !f || f.jquery ? (f || q).find(b) : this.constructor(f).find(b)
}
return e.isFunction(b) ? q.ready(b) : (b.selector !== c && (this.selector = b.selector, this.context = b.context), e.makeArray(b,
this))
},
selector: "",
jquery: "1.8.2",
length: 0,
size: function() {
return this.length
},
toArray: function() {
return aa.call(this)
},
get: function(b) {
return null == b ? this.toArray() : 0 > b ? this[this.length + b] : this[b]
},
pushStack: function(b, f, c) {
b = e.merge(this.constructor(), b);
return b.prevObject = this, b.context = this.context, "find" === f ? b.selector = this.selector + (this.selector ? " " : "") + c : f && (b.selector = this.selector + "." + f + "(" + c + ")"), b
},
each: function(b, f) {
return e.each(this, b, f)
},
ready: function(b) {
return e.ready.promise().done(b),
this
},
eq: function(b) {
return b = +b, -1 === b ? this.slice(b) : this.slice(b, b + 1)
},
first: function() {
return this.eq(0)
},
last: function() {
return this.eq(-1)
},
slice: function() {
return this.pushStack(aa.apply(this, arguments), "slice", aa.call(arguments).join(","))
},
map: function(b) {
return this.pushStack(e.map(this, function(f, c) {
return b.call(f, c, f)
}))
},
end: function() {
return this.prevObject || this.constructor(null)
},
push: Eb,
sort: [].sort,
splice: [].splice
};
e.fn.init.prototype = e.fn;
e.extend = e.fn.extend = function() {
var b,
f, q, C, d, s, m = arguments[0] || {},
l = 1,
g = arguments.length,
j = !1;
"boolean" == typeof m && (j = m, m = arguments[1] || {}, l = 2);
"object" != typeof m && !e.isFunction(m) && (m = {});
for (g === l && (m = this, --l); l < g; l++)
if (null != (b = arguments[l]))
for (f in b) q = m[f], C = b[f], m !== C && (j && C && (e.isPlainObject(C) || (d = e.isArray(C))) ? (d ? (d = !1, s = q && e.isArray(q) ? q : []) : s = q && e.isPlainObject(q) ? q : {}, m[f] = e.extend(j, s, C)) : C !== c && (m[f] = C));
return m
};
e.extend({
noConflict: function(u) {
return b.$ === e && (b.$ = Bc), u && b.jQuery === e && (b.jQuery = Ac), e
},
isReady: !1,
readyWait: 1,
holdReady: function(b) {
b ? e.readyWait++ : e.ready(!0)
},
ready: function(b) {
if (!(!0 === b ? --e.readyWait : e.isReady)) {
if (!D.body) return setTimeout(e.ready, 1);
e.isReady = !0;
!0 !== b && 0 < --e.readyWait || (Ea.resolveWith(D, [e]), e.fn.trigger && e(D).trigger("ready").off("ready"))
}
},
isFunction: function(b) {
return "function" === e.type(b)
},
isArray: Array.isArray || function(b) {
return "array" === e.type(b)
},
isWindow: function(b) {
return null != b && b == b.window
},
isNumeric: function(b) {
return !isNaN(parseFloat(b)) && isFinite(b)
},
type: function(b) {
return null == b ? String(b) : Hb[Cc.call(b)] || "object"
},
isPlainObject: function(b) {
if (!b || "object" !== e.type(b) || b.nodeType || e.isWindow(b)) return !1;
try {
if (b.constructor && !$a.call(b, "constructor") && !$a.call(b.constructor.prototype, "isPrototypeOf")) return !1
} catch (f) {
return !1
}
for (var q in b);
return q === c || $a.call(b, q)
},
isEmptyObject: function(b) {
for (var f in b) return !1;
return !0
},
error: function(b) {
throw Error(b);
},
parseHTML: function(b, f, c) {
var d;
return !b || "string" != typeof b ? null : ("boolean" ==
typeof f && (c = f, f = 0), f = f || D, (d = Gb.exec(b)) ? [f.createElement(d[1])] : (d = e.buildFragment([b], f, c ? null : []), e.merge([], (d.cacheable ? e.clone(d.fragment) : d.fragment).childNodes)))
},
parseJSON: function(u) {
if (!u || "string" != typeof u) return null;
u = e.trim(u);
if (b.JSON && b.JSON.parse) return b.JSON.parse(u);
if (Gc.test(u.replace(Ic, "@").replace(Jc, "]").replace(Hc, ""))) return (new Function("return " + u))();
e.error("Invalid JSON: " + u)
},
parseXML: function(u) {
var f, q;
if (!u || "string" != typeof u) return null;
try {
b.DOMParser ?
(q = new DOMParser, f = q.parseFromString(u, "text/xml")) : (f = new ActiveXObject("Microsoft.XMLDOM"), f.async = "false", f.loadXML(u))
} catch (d) {
f = c
}
return (!f || !f.documentElement || f.getElementsByTagName("parsererror").length) && e.error("Invalid XML: " + u), f
},
noop: function() {},
globalEval: function(u) {
u && Dc.test(u) && (b.execScript || function(u) {
b.eval.call(b, u)
})(u)
},
camelCase: function(b) {
return b.replace(Kc, "ms-").replace(Lc, Mc)
},
nodeName: function(b, f) {
return b.nodeName && b.nodeName.toLowerCase() === f.toLowerCase()
},
each: function(b, f, q) {
var d, v = 0,
s = b.length,
m = s === c || e.isFunction(b);
if (q)
if (m)
for (d in b) {
if (!1 === f.apply(b[d], q)) break
} else
for (; v < s && !1 !== f.apply(b[v++], q););
else if (m)
for (d in b) {
if (!1 === f.call(b[d], d, b[d])) break
} else
for (; v < s && !1 !== f.call(b[v], v, b[v++]););
return b
},
trim: ab && !ab.call("\ufeff\u00a0") ? function(b) {
return null == b ? "" : ab.call(b)
} : function(b) {
return null == b ? "" : (b + "").replace(Ec, "")
},
makeArray: function(b, f) {
var c, d = f || [];
return null != b && (c = e.type(b), null == b.length || "string" === c || "function" ===
c || "regexp" === c || e.isWindow(b) ? Eb.call(d, b) : e.merge(d, b)), d
},
inArray: function(b, f, c) {
var e;
if (f) {
if (Fb) return Fb.call(f, b, c);
e = f.length;
for (c = c ? 0 > c ? Math.max(0, e + c) : c : 0; c < e; c++)
if (c in f && f[c] === b) return c
}
return -1
},
merge: function(b, f) {
var q = f.length,
e = b.length,
d = 0;
if ("number" == typeof q)
for (; d < q; d++) b[e++] = f[d];
else
for (; f[d] !== c;) b[e++] = f[d++];
return b.length = e, b
},
grep: function(b, f, c) {
var e, d = [],
s = 0,
m = b.length;
for (c = !!c; s < m; s++) e = !!f(b[s], s), c !== e && d.push(b[s]);
return d
},
map: function(b, f, q) {
var d,
v, s = [],
m = 0,
l = b.length;
if (b instanceof e || l !== c && "number" == typeof l && (0 < l && b[0] && b[l - 1] || 0 === l || e.isArray(b)))
for (; m < l; m++) d = f(b[m], m, q), null != d && (s[s.length] = d);
else
for (v in b) d = f(b[v], v, q), null != d && (s[s.length] = d);
return s.concat.apply([], s)
},
guid: 1,
proxy: function(b, f) {
var q, d, v;
return "string" == typeof f && (q = b[f], f = b, b = q), e.isFunction(b) ? (d = aa.call(arguments, 2), v = function() {
return b.apply(f, d.concat(aa.call(arguments)))
}, v.guid = b.guid = b.guid || e.guid++, v) : c
},
access: function(b, f, q, d, v, s, m) {
var l, g =
null == q,
j = 0,
p = b.length;
if (q && "object" == typeof q) {
for (j in q) e.access(b, f, j, q[j], 1, s, d);
v = 1
} else if (d !== c) {
l = m === c && e.isFunction(d);
g && (l ? (l = f, f = function(b, u, f) {
return l.call(e(b), f)
}) : (f.call(b, d), f = null));
if (f)
for (; j < p; j++) f(b[j], q, l ? d.call(b[j], j, f(b[j], q)) : d, m);
v = 1
}
return v ? b : g ? f.call(b) : p ? f(b[0], q) : s
},
now: function() {
return (new Date).getTime()
}
});
e.ready.promise = function(u) {
if (!Ea)
if (Ea = e.Deferred(), "complete" === D.readyState) setTimeout(e.ready, 1);
else if (D.addEventListener) D.addEventListener("DOMContentLoaded",
Ga, !1), b.addEventListener("load", e.ready, !1);
else {
D.attachEvent("onreadystatechange", Ga);
b.attachEvent("onload", e.ready);
var f = !1;
try {
f = null == b.frameElement && D.documentElement
} catch (c) {}
f && f.doScroll && function v() {
if (!e.isReady) {
try {
f.doScroll("left")
} catch (b) {
return setTimeout(v, 50)
}
e.ready()
}
}()
}
return Ea.promise(u)
};
e.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(b, f) {
Hb["[object " + f + "]"] = f.toLowerCase()
});
Db = e(D);
var Ib = {};
e.Callbacks = function(b) {
var f;
if ("string" ==
typeof b) {
if (!(f = Ib[b])) {
f = b;
var q = Ib[f] = {};
f = (e.each(f.split(ga), function(b, u) {
q[u] = !0
}), q)
}
} else f = e.extend({}, b);
b = f;
var d, v, s, m, l, g, j = [],
p = !b.once && [],
t = function(f) {
d = b.memory && f;
v = !0;
g = m || 0;
m = 0;
l = j.length;
for (s = !0; j && g < l; g++)
if (!1 === j[g].apply(f[0], f[1]) && b.stopOnFalse) {
d = !1;
break
}
s = !1;
j && (p ? p.length && t(p.shift()) : d ? j = [] : r.disable())
},
r = {
add: function() {
if (j) {
var f = j.length;
(function xc(f) {
e.each(f, function(f, c) {
var q = e.type(c);
"function" === q && (!b.unique || !r.has(c)) ? j.push(c) : c && c.length && "string" !==
q && xc(c)
})
})(arguments);
s ? l = j.length : d && (m = f, t(d))
}
return this
},
remove: function() {
return j && e.each(arguments, function(b, u) {
for (var f; - 1 < (f = e.inArray(u, j, f));) j.splice(f, 1), s && (f <= l && l--, f <= g && g--)
}), this
},
has: function(b) {
return -1 < e.inArray(b, j)
},
empty: function() {
return j = [], this
},
disable: function() {
return j = p = d = c, this
},
disabled: function() {
return !j
},
lock: function() {
return p = c, d || r.disable(), this
},
locked: function() {
return !p
},
fireWith: function(b, u) {
return u = u || [], u = [b, u.slice ? u.slice() : u], j && (!v || p) &&
(s ? p.push(u) : t(u)), this
},
fire: function() {
return r.fireWith(this, arguments), this
},
fired: function() {
return !!v
}
};
return r
};
e.extend({
Deferred: function(b) {
var f = [
["resolve", "done", e.Callbacks("once memory"), "resolved"],
["reject", "fail", e.Callbacks("once memory"), "rejected"],
["notify", "progress", e.Callbacks("memory")]
],
c = "pending",
d = {
state: function() {
return c
},
always: function() {
return v.done(arguments).fail(arguments), this
},
then: function() {
var b = arguments;
return e.Deferred(function(u) {
e.each(f, function(f,
c) {
var q = c[0],
d = b[f];
v[c[1]](e.isFunction(d) ? function() {
var b = d.apply(this, arguments);
b && e.isFunction(b.promise) ? b.promise().done(u.resolve).fail(u.reject).progress(u.notify) : u[q + "With"](this === v ? u : this, [b])
} : u[q])
});
b = null
}).promise()
},
promise: function(b) {
return null != b ? e.extend(b, d) : d
}
},
v = {};
return d.pipe = d.then, e.each(f, function(b, u) {
var e = u[2],
l = u[3];
d[u[1]] = e.add;
l && e.add(function() {
c = l
}, f[b ^ 1][2].disable, f[2][2].lock);
v[u[0]] = e.fire;
v[u[0] + "With"] = e.fireWith
}), d.promise(v), b && b.call(v, v), v
},
when: function(b) {
var f = 0,
c = aa.call(arguments),
d = c.length,
v = 1 !== d || b && e.isFunction(b.promise) ? d : 0,
s = 1 === v ? b : e.Deferred(),
m = function(b, u, f) {
return function(c) {
u[b] = this;
f[b] = 1 < arguments.length ? aa.call(arguments) : c;
f === l ? s.notifyWith(u, f) : --v || s.resolveWith(u, f)
}
},
l, g, j;
if (1 < d) {
l = Array(d);
g = Array(d);
for (j = Array(d); f < d; f++) c[f] && e.isFunction(c[f].promise) ? c[f].promise().done(m(f, j, c)).fail(s.reject).progress(m(f, g, l)) : --v
}
return v || s.resolveWith(j, c), s.promise()
}
});
var Nc = e,
bb, Q, Ha, ha, Ia, Ja, U, ia, Ka, cb,
va, Jb, M = D.createElement("div");
M.setAttribute("className", "t");
M.innerHTML = " a";
Ha = M.getElementsByTagName("*");
ha = M.getElementsByTagName("a")[0];
ha.style.cssText = "top:1px;float:left;opacity:.5";
if (!Ha || !Ha.length) bb = {};
else {
Ia = D.createElement("select");
Ja = Ia.appendChild(D.createElement("option"));
U = M.getElementsByTagName("input")[0];
Q = {
leadingWhitespace: 3 === M.firstChild.nodeType,
tbody: !M.getElementsByTagName("tbody").length,
htmlSerialize: !!M.getElementsByTagName("link").length,
style: /top/.test(ha.getAttribute("style")),
hrefNormalized: "/a" === ha.getAttribute("href"),
opacity: /^0.5/.test(ha.style.opacity),
cssFloat: !!ha.style.cssFloat,
checkOn: "on" === U.value,
optSelected: Ja.selected,
getSetAttribute: "t" !== M.className,
enctype: !!D.createElement("form").enctype,
html5Clone: "<:nav>" !== D.createElement("nav").cloneNode(!0).outerHTML,
boxModel: "CSS1Compat" === D.compatMode,
submitBubbles: !0,
changeBubbles: !0,
focusinBubbles: !1,
deleteExpando: !0,
noCloneEvent: !0,
inlineBlockNeedsLayout: !1,
shrinkWrapBlocks: !1,
reliableMarginRight: !0,
boxSizingReliable: !0,
pixelPosition: !1
};
U.checked = !0;
Q.noCloneChecked = U.cloneNode(!0).checked;
Ia.disabled = !0;
Q.optDisabled = !Ja.disabled;
try {
delete M.test
} catch (Pd) {
Q.deleteExpando = !1
}!M.addEventListener && M.attachEvent && M.fireEvent && (M.attachEvent("onclick", Jb = function() {
Q.noCloneEvent = !1
}), M.cloneNode(!0).fireEvent("onclick"), M.detachEvent("onclick", Jb));
U = D.createElement("input");
U.value = "t";
U.setAttribute("type", "radio");
Q.radioValue = "t" === U.value;
U.setAttribute("checked",
"checked");
U.setAttribute("name", "t");
M.appendChild(U);
ia = D.createDocumentFragment();
ia.appendChild(M.lastChild);
Q.checkClone = ia.cloneNode(!0).cloneNode(!0).lastChild.checked;
Q.appendChecked = U.checked;
ia.removeChild(U);
ia.appendChild(M);
if (M.attachEvent)
for (cb in {
submit: !0,
change: !0,
focusin: !0
}) Ka = "on" + cb, (va = Ka in M) || (M.setAttribute(Ka, "return;"), va = "function" == typeof M[Ka]), Q[cb + "Bubbles"] = va;
bb = (e(function() {
var u, f, c, e, d = D.getElementsByTagName("body")[0];
d && (u = D.createElement("div"), u.style.cssText =
"visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px", d.insertBefore(u, d.firstChild), f = D.createElement("div"), u.appendChild(f), f.innerHTML = "", c = f.getElementsByTagName("td"), c[0].style.cssText = "padding:0;margin:0;border:0;display:none", va = 0 === c[0].offsetHeight, c[0].style.display = "", c[1].style.display = "none", Q.reliableHiddenOffsets = va && 0 === c[0].offsetHeight, f.innerHTML = "", f.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",
Q.boxSizing = 4 === f.offsetWidth, Q.doesNotIncludeMarginInBodyOffset = 1 !== d.offsetTop, b.getComputedStyle && (Q.pixelPosition = "1%" !== (b.getComputedStyle(f, null) || {}).top, Q.boxSizingReliable = "4px" === (b.getComputedStyle(f, null) || {
width: "4px"
}).width, e = D.createElement("div"), e.style.cssText = f.style.cssText = "padding:0;margin:0;border:0;display:block;overflow:hidden;", e.style.marginRight = e.style.width = "0", f.style.width = "1px", f.appendChild(e), Q.reliableMarginRight = !parseFloat((b.getComputedStyle(e, null) || {}).marginRight)),
"undefined" != typeof f.style.zoom && (f.innerHTML = "", f.style.cssText = "padding:0;margin:0;border:0;display:block;overflow:hidden;width:1px;padding:1px;display:inline;zoom:1", Q.inlineBlockNeedsLayout = 3 === f.offsetWidth, f.style.display = "block", f.style.overflow = "visible", f.innerHTML = "", f.firstChild.style.width = "5px", Q.shrinkWrapBlocks = 3 !== f.offsetWidth, u.style.zoom = 1), d.removeChild(u))
}), ia.removeChild(M), Ha = ha = Ia = Ja = U = ia = M = null, Q)
}
Nc.support = bb;
var tc = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/,
sc = /([A-Z])/g;
e.extend({
cache: {},
deletedIds: [],
uuid: 0,
expando: "jQuery" + (e.fn.jquery + Math.random()).replace(/\D/g, ""),
noData: {
embed: !0,
object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
applet: !0
},
hasData: function(b) {
return b = b.nodeType ? e.cache[b[e.expando]] : b[e.expando], !!b && !g(b)
},
data: function(b, f, q, d) {
if (e.acceptData(b)) {
var v, s, m = e.expando,
l = "string" == typeof f,
g = b.nodeType,
j = g ? e.cache : b,
p = g ? b[m] : b[m] && m;
if (p && j[p] && (d || j[p].data) || !(l && q === c)) {
p || (g ? b[m] = p = e.deletedIds.pop() || e.guid++ : p = m);
j[p] || (j[p] = {},
g || (j[p].toJSON = e.noop));
if ("object" == typeof f || "function" == typeof f) d ? j[p] = e.extend(j[p], f) : j[p].data = e.extend(j[p].data, f);
return v = j[p], d || (v.data || (v.data = {}), v = v.data), q !== c && (v[e.camelCase(f)] = q), l ? (s = v[f], null == s && (s = v[e.camelCase(f)])) : s = v, s
}
}
},
removeData: function(b, f, c) {
if (e.acceptData(b)) {
var d, v, s, m = b.nodeType,
l = m ? e.cache : b,
j = m ? b[e.expando] : e.expando;
if (l[j]) {
if (f && (d = c ? l[j] : l[j].data)) {
e.isArray(f) || (f in d ? f = [f] : (f = e.camelCase(f), f in d ? f = [f] : f = f.split(" ")));
v = 0;
for (s = f.length; v < s; v++) delete d[f[v]];
if (!(c ? g : e.isEmptyObject)(d)) return
}
if (c || !(delete l[j].data, !g(l[j]))) m ? e.cleanData([b], !0) : e.support.deleteExpando || l != l.window ? delete l[j] : l[j] = null
}
}
},
_data: function(b, f, c) {
return e.data(b, f, c, !0)
},
acceptData: function(b) {
var f = b.nodeName && e.noData[b.nodeName.toLowerCase()];
return !f || !0 !== f && b.getAttribute("classid") === f
}
});
e.fn.extend({
data: function(b, f) {
var q, C, v, s, m, l = this[0],
g = 0,
j = null;
if (b === c) {
if (this.length && (j = e.data(l), 1 === l.nodeType && !e._data(l, "parsedAttrs"))) {
v = l.attributes;
for (m = v.length; g <
m; g++) s = v[g].name, s.indexOf("data-") || (s = e.camelCase(s.substring(5)), d(l, s, j[s]));
e._data(l, "parsedAttrs", !0)
}
return j
}
return "object" == typeof b ? this.each(function() {
e.data(this, b)
}) : (q = b.split(".", 2), q[1] = q[1] ? "." + q[1] : "", C = q[1] + "!", e.access(this, function(f) {
if (f === c) return j = this.triggerHandler("getData" + C, [q[0]]), j === c && l && (j = e.data(l, b), j = d(l, b, j)), j === c && q[1] ? this.data(q[0]) : j;
q[1] = f;
this.each(function() {
var c = e(this);
c.triggerHandler("setData" + C, q);
e.data(this, b, f);
c.triggerHandler("changeData" +
C, q)
})
}, null, f, 1 < arguments.length, null, !1))
},
removeData: function(b) {
return this.each(function() {
e.removeData(this, b)
})
}
});
e.extend({
queue: function(b, f, c) {
var d;
if (b) return f = (f || "fx") + "queue", d = e._data(b, f), c && (!d || e.isArray(c) ? d = e._data(b, f, e.makeArray(c)) : d.push(c)), d || []
},
dequeue: function(b, f) {
f = f || "fx";
var c = e.queue(b, f),
d = c.length,
v = c.shift(),
s = e._queueHooks(b, f),
m = function() {
e.dequeue(b, f)
};
"inprogress" === v && (v = c.shift(), d--);
v && ("fx" === f && c.unshift("inprogress"), delete s.stop, v.call(b, m, s));
!d && s && s.empty.fire()
},
_queueHooks: function(b, f) {
var c = f + "queueHooks";
return e._data(b, c) || e._data(b, c, {
empty: e.Callbacks("once memory").add(function() {
e.removeData(b, f + "queue", !0);
e.removeData(b, c, !0)
})
})
}
});
e.fn.extend({
queue: function(b, f) {
var q = 2;
return "string" != typeof b && (f = b, b = "fx", q--), arguments.length < q ? e.queue(this[0], b) : f === c ? this : this.each(function() {
var c = e.queue(this, b, f);
e._queueHooks(this, b);
"fx" === b && "inprogress" !== c[0] && e.dequeue(this, b)
})
},
dequeue: function(b) {
return this.each(function() {
e.dequeue(this,
b)
})
},
delay: function(b, f) {
return b = e.fx ? e.fx.speeds[b] || b : b, f = f || "fx", this.queue(f, function(f, c) {
var e = setTimeout(f, b);
c.stop = function() {
clearTimeout(e)
}
})
},
clearQueue: function(b) {
return this.queue(b || "fx", [])
},
promise: function(b, f) {
var q, d = 1,
v = e.Deferred(),
s = this,
m = this.length,
l = function() {
--d || v.resolveWith(s, [s])
};
"string" != typeof b && (f = b, b = c);
for (b = b || "fx"; m--;)(q = e._data(s[m], b + "queueHooks")) && q.empty && (d++, q.empty.add(l));
return l(), v.promise(f)
}
});
var ca, Kb, Lb, Mb = /[\t\r\n]/g,
Oc = /\r/g,
Pc = /^(?:button|input)$/i,
Qc = /^(?:button|input|object|select|textarea)$/i,
Rc = /^a(?:rea|)$/i,
Nb = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
Ob = e.support.getSetAttribute;
e.fn.extend({
attr: function(b, f) {
return e.access(this, e.attr, b, f, 1 < arguments.length)
},
removeAttr: function(b) {
return this.each(function() {
e.removeAttr(this, b)
})
},
prop: function(b, f) {
return e.access(this, e.prop, b, f, 1 < arguments.length)
},
removeProp: function(b) {
return b = e.propFix[b] ||
b, this.each(function() {
try {
this[b] = c, delete this[b]
} catch (f) {}
})
},
addClass: function(b) {
var f, c, d, v, s, m, l;
if (e.isFunction(b)) return this.each(function(f) {
e(this).addClass(b.call(this, f, this.className))
});
if (b && "string" == typeof b) {
f = b.split(ga);
c = 0;
for (d = this.length; c < d; c++)
if (v = this[c], 1 === v.nodeType)
if (!v.className && 1 === f.length) v.className = b;
else {
s = " " + v.className + " ";
m = 0;
for (l = f.length; m < l; m++) 0 > s.indexOf(" " + f[m] + " ") && (s += f[m] + " ");
v.className = e.trim(s)
}
}
return this
},
removeClass: function(b) {
var f,
q, d, v, s, m, l;
if (e.isFunction(b)) return this.each(function(f) {
e(this).removeClass(b.call(this, f, this.className))
});
if (b && "string" == typeof b || b === c) {
f = (b || "").split(ga);
m = 0;
for (l = this.length; m < l; m++)
if (d = this[m], 1 === d.nodeType && d.className) {
q = (" " + d.className + " ").replace(Mb, " ");
v = 0;
for (s = f.length; v < s; v++)
for (; 0 <= q.indexOf(" " + f[v] + " ");) q = q.replace(" " + f[v] + " ", " ");
d.className = b ? e.trim(q) : ""
}
}
return this
},
toggleClass: function(b, f) {
var c = typeof b,
d = "boolean" == typeof f;
return e.isFunction(b) ? this.each(function(c) {
e(this).toggleClass(b.call(this,
c, this.className, f), f)
}) : this.each(function() {
if ("string" === c)
for (var v, s = 0, m = e(this), l = f, g = b.split(ga); v = g[s++];) l = d ? l : !m.hasClass(v), m[l ? "addClass" : "removeClass"](v);
else if ("undefined" === c || "boolean" === c) this.className && e._data(this, "__className__", this.className), this.className = this.className || !1 === b ? "" : e._data(this, "__className__") || ""
})
},
hasClass: function(b) {
b = " " + b + " ";
for (var f = 0, c = this.length; f < c; f++)
if (1 === this[f].nodeType && 0 <= (" " + this[f].className + " ").replace(Mb, " ").indexOf(b)) return !0;
return !1
},
val: function(b) {
var f, q, d, v = this[0];
if (arguments.length) return d = e.isFunction(b), this.each(function(q) {
var m, v = e(this);
if (1 === this.nodeType && (d ? m = b.call(this, q, v.val()) : m = b, null == m ? m = "" : "number" == typeof m ? m += "" : e.isArray(m) && (m = e.map(m, function(b) {
return null == b ? "" : b + ""
})), f = e.valHooks[this.type] || e.valHooks[this.nodeName.toLowerCase()], !f || !("set" in f) || f.set(this, m, "value") === c)) this.value = m
});
if (v) return f = e.valHooks[v.type] || e.valHooks[v.nodeName.toLowerCase()], f && "get" in f && (q = f.get(v,
"value")) !== c ? q : (q = v.value, "string" == typeof q ? q.replace(Oc, "") : null == q ? "" : q)
}
});
e.extend({
valHooks: {
option: {
get: function(b) {
var f = b.attributes.value;
return !f || f.specified ? b.value : b.text
}
},
select: {
get: function(b) {
var f, c, d = b.selectedIndex,
v = [],
s = b.options,
m = "select-one" === b.type;
if (0 > d) return null;
b = m ? d : 0;
for (c = m ? d + 1 : s.length; b < c; b++)
if (f = s[b], f.selected && (e.support.optDisabled ? !f.disabled : null === f.getAttribute("disabled")) && (!f.parentNode.disabled || !e.nodeName(f.parentNode, "optgroup"))) {
f = e(f).val();
if (m) return f;
v.push(f)
}
return m && !v.length && s.length ? e(s[d]).val() : v
},
set: function(b, f) {
var c = e.makeArray(f);
return e(b).find("option").each(function() {
this.selected = 0 <= e.inArray(e(this).val(), c)
}), c.length || (b.selectedIndex = -1), c
}
}
},
attrFn: {},
attr: function(b, f, q, d) {
var v, s, m = b.nodeType;
if (b && !(3 === m || 8 === m || 2 === m)) {
if (d && e.isFunction(e.fn[f])) return e(b)[f](q);
if ("undefined" == typeof b.getAttribute) return e.prop(b, f, q);
(d = 1 !== m || !e.isXMLDoc(b)) && (f = f.toLowerCase(), s = e.attrHooks[f] || (Nb.test(f) ? Kb :
ca));
if (q !== c) {
if (null === q) {
e.removeAttr(b, f);
return
}
return s && "set" in s && d && (v = s.set(b, q, f)) !== c ? v : (b.setAttribute(f, q + ""), q)
}
return s && "get" in s && d && null !== (v = s.get(b, f)) ? v : (v = b.getAttribute(f), null === v ? c : v)
}
},
removeAttr: function(b, f) {
var c, d, v, s, m = 0;
if (f && 1 === b.nodeType)
for (d = f.split(ga); m < d.length; m++)(v = d[m]) && (c = e.propFix[v] || v, s = Nb.test(v), s || e.attr(b, v, ""), b.removeAttribute(Ob ? v : c), s && c in b && (b[c] = !1))
},
attrHooks: {
type: {
set: function(b, f) {
if (Pc.test(b.nodeName) && b.parentNode) e.error("type property can't be changed");
else if (!e.support.radioValue && "radio" === f && e.nodeName(b, "input")) {
var c = b.value;
return b.setAttribute("type", f), c && (b.value = c), f
}
}
},
value: {
get: function(b, f) {
return ca && e.nodeName(b, "button") ? ca.get(b, f) : f in b ? b.value : null
},
set: function(b, f, c) {
if (ca && e.nodeName(b, "button")) return ca.set(b, f, c);
b.value = f
}
}
},
propFix: {
tabindex: "tabIndex",
readonly: "readOnly",
"for": "htmlFor",
"class": "className",
maxlength: "maxLength",
cellspacing: "cellSpacing",
cellpadding: "cellPadding",
rowspan: "rowSpan",
colspan: "colSpan",
usemap: "useMap",
frameborder: "frameBorder",
contenteditable: "contentEditable"
},
prop: function(b, f, q) {
var d, v, s, m = b.nodeType;
if (b && !(3 === m || 8 === m || 2 === m)) return s = 1 !== m || !e.isXMLDoc(b), s && (f = e.propFix[f] || f, v = e.propHooks[f]), q !== c ? v && "set" in v && (d = v.set(b, q, f)) !== c ? d : b[f] = q : v && "get" in v && null !== (d = v.get(b, f)) ? d : b[f]
},
propHooks: {
tabIndex: {
get: function(b) {
var f = b.getAttributeNode("tabindex");
return f && f.specified ? parseInt(f.value, 10) : Qc.test(b.nodeName) || Rc.test(b.nodeName) && b.href ? 0 : c
}
}
}
});
Kb = {
get: function(b,
f) {
var q, d = e.prop(b, f);
return !0 === d || "boolean" != typeof d && (q = b.getAttributeNode(f)) && !1 !== q.nodeValue ? f.toLowerCase() : c
},
set: function(b, f, c) {
var d;
return !1 === f ? e.removeAttr(b, c) : (d = e.propFix[c] || c, d in b && (b[d] = !0), b.setAttribute(c, c.toLowerCase())), c
}
};
Ob || (Lb = {
name: !0,
id: !0,
coords: !0
}, ca = e.valHooks.button = {
get: function(b, f) {
var e;
return e = b.getAttributeNode(f), e && (Lb[f] ? "" !== e.value : e.specified) ? e.value : c
},
set: function(b, f, c) {
var e = b.getAttributeNode(c);
return e || (e = D.createAttribute(c), b.setAttributeNode(e)),
e.value = f + ""
}
}, e.each(["width", "height"], function(b, f) {
e.attrHooks[f] = e.extend(e.attrHooks[f], {
set: function(b, u) {
if ("" === u) return b.setAttribute(f, "auto"), u
}
})
}), e.attrHooks.contenteditable = {
get: ca.get,
set: function(b, f, c) {
"" === f && (f = "false");
ca.set(b, f, c)
}
});
e.support.hrefNormalized || e.each(["href", "src", "width", "height"], function(b, f) {
e.attrHooks[f] = e.extend(e.attrHooks[f], {
get: function(b) {
b = b.getAttribute(f, 2);
return null === b ? c : b
}
})
});
e.support.style || (e.attrHooks.style = {
get: function(b) {
return b.style.cssText.toLowerCase() ||
c
},
set: function(b, f) {
return b.style.cssText = f + ""
}
});
e.support.optSelected || (e.propHooks.selected = e.extend(e.propHooks.selected, {
get: function(b) {
b = b.parentNode;
return b && (b.selectedIndex, b.parentNode && b.parentNode.selectedIndex), null
}
}));
e.support.enctype || (e.propFix.enctype = "encoding");
e.support.checkOn || e.each(["radio", "checkbox"], function() {
e.valHooks[this] = {
get: function(b) {
return null === b.getAttribute("value") ? "on" : b.value
}
}
});
e.each(["radio", "checkbox"], function() {
e.valHooks[this] = e.extend(e.valHooks[this], {
set: function(b, f) {
if (e.isArray(f)) return b.checked = 0 <= e.inArray(e(b).val(), f)
}
})
});
var db = /^(?:textarea|input|select)$/i,
Pb = /^([^\.]*|)(?:\.(.+)|)$/,
Sc = /(?:^|\s)hover(\.\S+|)\b/,
Tc = /^key/,
Uc = /^(?:mouse|contextmenu)|click/,
Qb = /^(?:focusinfocus|focusoutblur)$/,
Rb = function(b) {
return e.event.special.hover ? b : b.replace(Sc, "mouseenter$1 mouseleave$1")
};
e.event = {
add: function(b, f, d, C, v) {
var s, m, l, g, j, p, t, r, n;
if (!(3 === b.nodeType || 8 === b.nodeType || !f || !d || !(s = e._data(b)))) {
d.handler && (t = d, d = t.handler, v = t.selector);
d.guid || (d.guid = e.guid++);
(l = s.events) || (s.events = l = {});
(m = s.handle) || (s.handle = m = function(b) {
return "undefined" != typeof e && (!b || e.event.triggered !== b.type) ? e.event.dispatch.apply(m.elem, arguments) : c
}, m.elem = b);
f = e.trim(Rb(f)).split(" ");
for (s = 0; s < f.length; s++) {
g = Pb.exec(f[s]) || [];
j = g[1];
p = (g[2] || "").split(".").sort();
n = e.event.special[j] || {};
j = (v ? n.delegateType : n.bindType) || j;
n = e.event.special[j] || {};
g = e.extend({
type: j,
origType: g[1],
data: C,
handler: d,
guid: d.guid,
selector: v,
needsContext: v && e.expr.match.needsContext.test(v),
namespace: p.join(".")
}, t);
r = l[j];
if (!r && (r = l[j] = [], r.delegateCount = 0, !n.setup || !1 === n.setup.call(b, C, p, m))) b.addEventListener ? b.addEventListener(j, m, !1) : b.attachEvent && b.attachEvent("on" + j, m);
n.add && (n.add.call(b, g), g.handler.guid || (g.handler.guid = d.guid));
v ? r.splice(r.delegateCount++, 0, g) : r.push(g);
e.event.global[j] = !0
}
b = null
}
},
global: {},
remove: function(b, f, c, d, v) {
var s, m, l, g, j, p, t, r, n, z, x = e.hasData(b) && e._data(b);
if (x && (t = x.events)) {
f = e.trim(Rb(f || "")).split(" ");
for (s = 0; s < f.length; s++)
if (m = Pb.exec(f[s]) || [], l = g = m[1], m = m[2], l) {
r = e.event.special[l] || {};
l = (d ? r.delegateType : r.bindType) || l;
n = t[l] || [];
j = n.length;
m = m ? RegExp("(^|\\.)" + m.split(".").sort().join("\\.(?:.*\\.|)") + "(\\.|$)") : null;
for (p = 0; p < n.length; p++) z = n[p], (v || g === z.origType) && (!c || c.guid === z.guid) && (!m || m.test(z.namespace)) && (!d || d === z.selector || "**" === d && z.selector) && (n.splice(p--, 1), z.selector && n.delegateCount--, r.remove && r.remove.call(b, z));
0 === n.length && j !== n.length && ((!r.teardown || !1 === r.teardown.call(b, m, x.handle)) && e.removeEvent(b,
l, x.handle), delete t[l])
} else
for (l in t) e.event.remove(b, l + f[s], c, d, !0);
e.isEmptyObject(t) && (delete x.handle, e.removeData(b, "events", !0))
}
},
customEvent: {
getData: !0,
setData: !0,
changeData: !0
},
trigger: function(u, f, d, C) {
if (!d || 3 !== d.nodeType && 8 !== d.nodeType) {
var v, l, m, g, j, p, t, r = u.type || u;
g = [];
if (!Qb.test(r + e.event.triggered) && (0 <= r.indexOf("!") && (r = r.slice(0, -1), v = !0), 0 <= r.indexOf(".") && (g = r.split("."), r = g.shift(), g.sort()), d && !e.event.customEvent[r] || e.event.global[r]))
if (u = "object" == typeof u ? u[e.expando] ?
u : new e.Event(r, u) : new e.Event(r), u.type = r, u.isTrigger = !0, u.exclusive = v, u.namespace = g.join("."), u.namespace_re = u.namespace ? RegExp("(^|\\.)" + g.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, g = 0 > r.indexOf(":") ? "on" + r : "", d) {
if (u.result = c, u.target || (u.target = d), f = null != f ? e.makeArray(f) : [], f.unshift(u), j = e.event.special[r] || {}, !(j.trigger && !1 === j.trigger.apply(d, f))) {
t = [
[d, j.bindType || r]
];
if (!C && !j.noBubble && !e.isWindow(d)) {
l = j.delegateType || r;
v = Qb.test(l + r) ? d : d.parentNode;
for (m = d; v; v = v.parentNode) t.push([v, l]),
m = v;
m === (d.ownerDocument || D) && t.push([m.defaultView || m.parentWindow || b, l])
}
for (l = 0; l < t.length && !u.isPropagationStopped(); l++) v = t[l][0], u.type = t[l][1], (p = (e._data(v, "events") || {})[u.type] && e._data(v, "handle")) && p.apply(v, f), (p = g && v[g]) && e.acceptData(v) && p.apply && !1 === p.apply(v, f) && u.preventDefault();
return u.type = r, !C && !u.isDefaultPrevented() && (!j._default || !1 === j._default.apply(d.ownerDocument, f)) && ("click" !== r || !e.nodeName(d, "a")) && e.acceptData(d) && g && d[r] && ("focus" !== r && "blur" !== r || 0 !== u.target.offsetWidth) &&
!e.isWindow(d) && (m = d[g], m && (d[g] = null), e.event.triggered = r, d[r](), e.event.triggered = c, m && (d[g] = m)), u.result
}
} else
for (l in d = e.cache, d) d[l].events && d[l].events[r] && e.event.trigger(u, f, d[l].handle.elem, !0)
}
},
dispatch: function(u) {
u = e.event.fix(u || b.event);
var f, d, C, l, s, m, g = (e._data(this, "events") || {})[u.type] || [],
j = g.delegateCount,
p = aa.call(arguments),
r = !u.exclusive && !u.namespace,
t = e.event.special[u.type] || {},
n = [];
p[0] = u;
u.delegateTarget = this;
if (!(t.preDispatch && !1 === t.preDispatch.call(this, u))) {
if (j &&
(!u.button || "click" !== u.type))
for (d = u.target; d != this; d = d.parentNode || this)
if (!0 !== d.disabled || "click" !== u.type) {
l = {};
s = [];
for (f = 0; f < j; f++) C = g[f], m = C.selector, l[m] === c && (l[m] = C.needsContext ? 0 <= e(m, this).index(d) : e.find(m, this, null, [d]).length), l[m] && s.push(C);
s.length && n.push({
elem: d,
matches: s
})
}
g.length > j && n.push({
elem: this,
matches: g.slice(j)
});
for (f = 0; f < n.length && !u.isPropagationStopped(); f++) {
l = n[f];
u.currentTarget = l.elem;
for (d = 0; d < l.matches.length && !u.isImmediatePropagationStopped(); d++)
if (C = l.matches[d],
r || !u.namespace && !C.namespace || u.namespace_re && u.namespace_re.test(C.namespace)) u.data = C.data, u.handleObj = C, C = ((e.event.special[C.origType] || {}).handle || C.handler).apply(l.elem, p), C !== c && (u.result = C, !1 === C && (u.preventDefault(), u.stopPropagation()))
}
return t.postDispatch && t.postDispatch.call(this, u), u.result
}
},
props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
fixHooks: {},
keyHooks: {
props: ["char", "charCode", "key", "keyCode"],
filter: function(b, f) {
return null == b.which && (b.which = null != f.charCode ? f.charCode : f.keyCode), b
}
},
mouseHooks: {
props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
filter: function(b, f) {
var d, e, l, s = f.button,
m = f.fromElement;
return null == b.pageX && null != f.clientX && (d = b.target.ownerDocument || D, e = d.documentElement, l = d.body, b.pageX = f.clientX + (e && e.scrollLeft || l && l.scrollLeft || 0) - (e && e.clientLeft ||
l && l.clientLeft || 0), b.pageY = f.clientY + (e && e.scrollTop || l && l.scrollTop || 0) - (e && e.clientTop || l && l.clientTop || 0)), !b.relatedTarget && m && (b.relatedTarget = m === b.target ? f.toElement : m), !b.which && s !== c && (b.which = s & 1 ? 1 : s & 2 ? 3 : s & 4 ? 2 : 0), b
}
},
fix: function(b) {
if (b[e.expando]) return b;
var f, c, d = b,
l = e.event.fixHooks[b.type] || {},
s = l.props ? this.props.concat(l.props) : this.props;
b = e.Event(d);
for (f = s.length; f;) c = s[--f], b[c] = d[c];
return b.target || (b.target = d.srcElement || D), 3 === b.target.nodeType && (b.target = b.target.parentNode),
b.metaKey = !!b.metaKey, l.filter ? l.filter(b, d) : b
},
special: {
load: {
noBubble: !0
},
focus: {
delegateType: "focusin"
},
blur: {
delegateType: "focusout"
},
beforeunload: {
setup: function(b, f, c) {
e.isWindow(this) && (this.onbeforeunload = c)
},
teardown: function(b, f) {
this.onbeforeunload === f && (this.onbeforeunload = null)
}
}
},
simulate: function(b, f, c, d) {
b = e.extend(new e.Event, c, {
type: b,
isSimulated: !0,
originalEvent: {}
});
d ? e.event.trigger(b, null, f) : e.event.dispatch.call(f, b);
b.isDefaultPrevented() && c.preventDefault()
}
};
e.event.handle =
e.event.dispatch;
e.removeEvent = D.removeEventListener ? function(b, f, c) {
b.removeEventListener && b.removeEventListener(f, c, !1)
} : function(b, f, c) {
f = "on" + f;
b.detachEvent && ("undefined" == typeof b[f] && (b[f] = null), b.detachEvent(f, c))
};
e.Event = function(b, f) {
if (this instanceof e.Event) b && b.type ? (this.originalEvent = b, this.type = b.type, this.isDefaultPrevented = b.defaultPrevented || !1 === b.returnValue || b.getPreventDefault && b.getPreventDefault() ? n : j) : this.type = b, f && e.extend(this, f), this.timeStamp = b && b.timeStamp || e.now(),
this[e.expando] = !0;
else return new e.Event(b, f)
};
e.Event.prototype = {
preventDefault: function() {
this.isDefaultPrevented = n;
var b = this.originalEvent;
b && (b.preventDefault ? b.preventDefault() : b.returnValue = !1)
},
stopPropagation: function() {
this.isPropagationStopped = n;
var b = this.originalEvent;
b && (b.stopPropagation && b.stopPropagation(), b.cancelBubble = !0)
},
stopImmediatePropagation: function() {
this.isImmediatePropagationStopped = n;
this.stopPropagation()
},
isDefaultPrevented: j,
isPropagationStopped: j,
isImmediatePropagationStopped: j
};
e.each({
mouseenter: "mouseover",
mouseleave: "mouseout"
}, function(b, f) {
e.event.special[b] = {
delegateType: f,
bindType: f,
handle: function(b) {
var c, u = b.relatedTarget,
d = b.handleObj;
if (!u || u !== this && !e.contains(this, u)) b.type = d.origType, c = d.handler.apply(this, arguments), b.type = f;
return c
}
}
});
e.support.submitBubbles || (e.event.special.submit = {
setup: function() {
if (e.nodeName(this, "form")) return !1;
e.event.add(this, "click._submit keypress._submit", function(b) {
b = b.target;
(b = e.nodeName(b, "input") || e.nodeName(b, "button") ?
b.form : c) && !e._data(b, "_submit_attached") && (e.event.add(b, "submit._submit", function(b) {
b._submit_bubble = !0
}), e._data(b, "_submit_attached", !0))
})
},
postDispatch: function(b) {
b._submit_bubble && (delete b._submit_bubble, this.parentNode && !b.isTrigger && e.event.simulate("submit", this.parentNode, b, !0))
},
teardown: function() {
if (e.nodeName(this, "form")) return !1;
e.event.remove(this, "._submit")
}
});
e.support.changeBubbles || (e.event.special.change = {
setup: function() {
if (db.test(this.nodeName)) {
if ("checkbox" === this.type ||
"radio" === this.type) e.event.add(this, "propertychange._change", function(b) {
"checked" === b.originalEvent.propertyName && (this._just_changed = !0)
}), e.event.add(this, "click._change", function(b) {
this._just_changed && !b.isTrigger && (this._just_changed = !1);
e.event.simulate("change", this, b, !0)
});
return !1
}
e.event.add(this, "beforeactivate._change", function(b) {
b = b.target;
db.test(b.nodeName) && !e._data(b, "_change_attached") && (e.event.add(b, "change._change", function(b) {
this.parentNode && !b.isSimulated && !b.isTrigger &&
e.event.simulate("change", this.parentNode, b, !0)
}), e._data(b, "_change_attached", !0))
})
},
handle: function(b) {
var f = b.target;
if (this !== f || b.isSimulated || b.isTrigger || "radio" !== f.type && "checkbox" !== f.type) return b.handleObj.handler.apply(this, arguments)
},
teardown: function() {
return e.event.remove(this, "._change"), !db.test(this.nodeName)
}
});
e.support.focusinBubbles || e.each({
focus: "focusin",
blur: "focusout"
}, function(b, f) {
var c = 0,
d = function(b) {
e.event.simulate(f, b.target, e.event.fix(b), !0)
};
e.event.special[f] = {
setup: function() {
0 === c++ && D.addEventListener(b, d, !0)
},
teardown: function() {
0 === --c && D.removeEventListener(b, d, !0)
}
}
});
e.fn.extend({
on: function(b, f, d, l, v) {
var s, m;
if ("object" == typeof b) {
"string" != typeof f && (d = d || f, f = c);
for (m in b) this.on(m, f, d, b[m], v);
return this
}
null == d && null == l ? (l = f, d = f = c) : null == l && ("string" == typeof f ? (l = d, d = c) : (l = d, d = f, f = c));
if (!1 === l) l = j;
else if (!l) return this;
return 1 === v && (s = l, l = function(b) {
return e().off(b), s.apply(this, arguments)
}, l.guid = s.guid || (s.guid = e.guid++)), this.each(function() {
e.event.add(this,
b, l, d, f)
})
},
one: function(b, f, c, d) {
return this.on(b, f, c, d, 1)
},
off: function(b, f, d) {
var l, v;
if (b && b.preventDefault && b.handleObj) return l = b.handleObj, e(b.delegateTarget).off(l.namespace ? l.origType + "." + l.namespace : l.origType, l.selector, l.handler), this;
if ("object" == typeof b) {
for (v in b) this.off(v, f, b[v]);
return this
}
if (!1 === f || "function" == typeof f) d = f, f = c;
return !1 === d && (d = j), this.each(function() {
e.event.remove(this, b, d, f)
})
},
bind: function(b, f, c) {
return this.on(b, null, f, c)
},
unbind: function(b, f) {
return this.off(b,
null, f)
},
live: function(b, f, c) {
return e(this.context).on(b, this.selector, f, c), this
},
die: function(b, f) {
return e(this.context).off(b, this.selector || "**", f), this
},
delegate: function(b, f, c, d) {
return this.on(f, b, c, d)
},
undelegate: function(b, f, c) {
return 1 === arguments.length ? this.off(b, "**") : this.off(f, b || "**", c)
},
trigger: function(b, f) {
return this.each(function() {
e.event.trigger(b, f, this)
})
},
triggerHandler: function(b, f) {
if (this[0]) return e.event.trigger(b, f, this[0], !0)
},
toggle: function(b) {
var f = arguments,
c =
b.guid || e.guid++,
d = 0,
l = function(c) {
var q = (e._data(this, "lastToggle" + b.guid) || 0) % d;
return e._data(this, "lastToggle" + b.guid, q + 1), c.preventDefault(), f[q].apply(this, arguments) || !1
};
for (l.guid = c; d < f.length;) f[d++].guid = c;
return this.click(l)
},
hover: function(b, f) {
return this.mouseenter(b).mouseleave(f || b)
}
});
e.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),
function(b, f) {
e.fn[f] = function(b, c) {
return null == c && (c = b, b = null), 0 < arguments.length ? this.on(f, null, b, c) : this.trigger(f)
};
Tc.test(f) && (e.event.fixHooks[f] = e.event.keyHooks);
Uc.test(f) && (e.event.fixHooks[f] = e.event.mouseHooks)
});
var Vc = b,
I = function(b, f, c, d) {
c = c || [];
f = f || X;
var e, l, m, g, j = f.nodeType;
if (!b || "string" != typeof b) return c;
if (1 !== j && 9 !== j) return [];
m = La(f);
if (!m && !d && (e = Wc.exec(b)))
if (g = e[1])
if (9 === j) {
l = f.getElementById(g);
if (!l || !l.parentNode) return c;
if (l.id === g) return c.push(l), c
} else {
if (f.ownerDocument &&
(l = f.ownerDocument.getElementById(g)) && Sb(f, l) && l.id === g) return c.push(l), c
} else {
if (e[2]) return pa.apply(c, qa.call(f.getElementsByTagName(b), 0)), c;
if ((g = e[3]) && Tb && f.getElementsByClassName) return pa.apply(c, qa.call(f.getElementsByClassName(g), 0)), c
}
return eb(b.replace(Ma, "$1"), f, c, d, m)
},
wa = function(b) {
return function(f) {
return "input" === f.nodeName.toLowerCase() && f.type === b
}
},
Ub = function(b) {
return function(f) {
var c = f.nodeName.toLowerCase();
return ("input" === c || "button" === c) && f.type === b
}
},
ja = function(b) {
return Y(function(f) {
return f = +f, Y(function(c, d) {
for (var e, l = b([], c.length, f), m = l.length; m--;) c[e = l[m]] && (c[e] = !(d[e] = c[e]))
})
})
},
Na = function(b, f, c) {
if (b === f) return c;
for (b = b.nextSibling; b;) {
if (b === f) return -1;
b = b.nextSibling
}
return 1
},
Pa = function(b, f) {
var c, d, e, l, m, g, j;
if (m = Vb[P][b]) return f ? 0 : m.slice(0);
m = b;
g = [];
for (j = G.preFilter; m;) {
if (!c || (d = Xc.exec(m))) d && (m = m.slice(d[0].length)), g.push(e = []);
c = !1;
if (d = Yc.exec(m)) e.push(c = new Wb(d.shift())), m = m.slice(c.length), c.type = d[0].replace(Ma, " ");
for (l in G.filter)(d = Oa[l].exec(m)) &&
(!j[l] || (d = j[l](d, X, !0))) && (e.push(c = new Wb(d.shift())), m = m.slice(c.length), c.type = l, c.matches = d);
if (!c) break
}
return f ? m.length : m ? I.error(b) : Vb(b, g).slice(0)
},
gb = function(b, f, c) {
var d = f.dir,
e = c && "parentNode" === f.dir,
l = Zc++;
return f.first ? function(f, c, q) {
for (; f = f[d];)
if (e || 1 === f.nodeType) return b(f, c, q)
} : function(f, c, q) {
if (q)
for (; f = f[d];) {
if ((e || 1 === f.nodeType) && b(f, c, q)) return f
} else
for (var g, j = xa + " " + l + " ", p = j + fb; f = f[d];)
if (e || 1 === f.nodeType) {
if ((g = f[P]) === p) return f.sizset;
if ("string" == typeof g &&
0 === g.indexOf(j)) {
if (f.sizset) return f
} else {
f[P] = p;
if (b(f, c, q)) return f.sizset = !0, f;
f.sizset = !1
}
}
}
},
hb = function(b) {
return 1 < b.length ? function(f, c, d) {
for (var e = b.length; e--;)
if (!b[e](f, c, d)) return !1;
return !0
} : b[0]
},
Qa = function(b, f, c, d, e) {
for (var l, m = [], g = 0, j = b.length, p = null != f; g < j; g++)
if (l = b[g])
if (!c || c(l, d, e)) m.push(l), p && f.push(g);
return m
},
ib = function(b, f, c, d, e, l) {
return d && !d[P] && (d = ib(d)), e && !e[P] && (e = ib(e, l)), Y(function(l, g, s, j) {
if (!l || !e) {
var p, t, r = [],
n = [],
z = g.length;
if (!(t = l)) {
t = f || "*";
var x =
s.nodeType ? [s] : s,
A = [];
p = 0;
for (var B = x.length; p < B; p++) I(t, x[p], A, l);
t = A
}
x = b && (l || !f) ? Qa(t, r, b, s, j) : t;
A = c ? e || (l ? b : z || d) ? [] : g : x;
c && c(x, A, s, j);
if (d) {
t = Qa(A, n);
d(t, [], s, j);
for (s = t.length; s--;)
if (p = t[s]) A[n[s]] = !(x[n[s]] = p)
}
if (l)
for (s = b && A.length; s--;) {
if (p = A[s]) l[r[s]] = !(g[r[s]] = p)
} else A = Qa(A === g ? A.splice(z, A.length) : A), e ? e(null, g, A, j) : pa.apply(g, A)
}
})
},
jb = function(b) {
var f, c, d, e = b.length,
l = G.relative[b[0].type];
c = l || G.relative[" "];
for (var m = l ? 1 : 0, g = gb(function(b) {
return b === f
}, c, !0), j = gb(function(b) {
return -1 <
Xb.call(f, b)
}, c, !0), p = [
function(b, c, u) {
return !l && (u || c !== Ra) || ((f = c).nodeType ? g(b, c, u) : j(b, c, u))
}
]; m < e; m++)
if (c = G.relative[b[m].type]) p = [gb(hb(p), c)];
else {
c = G.filter[b[m].type].apply(null, b[m].matches);
if (c[P]) {
for (d = ++m; d < e && !G.relative[b[d].type]; d++);
return ib(1 < m && hb(p), 1 < m && b.slice(0, m - 1).join("").replace(Ma, "$1"), c, m < d && jb(b.slice(m, d)), d < e && jb(b = b.slice(d)), d < e && b.join(""))
}
p.push(c)
}
return hb(p)
},
eb = function(b, f, c, d, e) {
var l, m, g, j, p = Pa(b);
if (!d && 1 === p.length) {
m = p[0] = p[0].slice(0);
if (2 < m.length &&
"ID" === (g = m[0]).type && 9 === f.nodeType && !e && G.relative[m[1].type]) {
f = G.find.ID(g.matches[0].replace(ka, ""), f, e)[0];
if (!f) return c;
b = b.slice(m.shift().length)
}
for (l = Oa.POS.test(b) ? -1 : m.length - 1; 0 <= l; l--) {
g = m[l];
if (G.relative[j = g.type]) break;
if (j = G.find[j])
if (d = j(g.matches[0].replace(ka, ""), kb.test(m[0].type) && f.parentNode || f, e)) {
m.splice(l, 1);
b = d.length && m.join("");
if (!b) return pa.apply(c, qa.call(d, 0)), c;
break
}
}
}
return lb(b, p)(d, f, e, c, kb.test(b)), c
},
Yb = function() {},
fb, mb, G, Sa, La, Sb, lb, nb, ya, Ra, Zb = !0,
P = ("sizcache" + Math.random()).replace(".", ""),
Wb = String,
X = Vc.document,
W = X.documentElement,
xa = 0,
Zc = 0,
$c = [].pop,
pa = [].push,
qa = [].slice,
Xb = [].indexOf || function(b) {
for (var f = 0, c = this.length; f < c; f++)
if (this[f] === b) return f;
return -1
},
Y = function(b, f) {
return b[P] = null == f || f, b
},
ob = function() {
var b = {},
f = [];
return Y(function(c, d) {
return f.push(c) > G.cacheLength && delete b[f.shift()], b[c] = d
}, b)
},
$b = ob(),
Vb = ob(),
ac = ob(),
bc = "\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[-\\w]|[^\\x00-\\xa0])+)[\\x20\\t\\r\\n\\f]*(?:([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" +
"(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+".replace("w", "w#") + ")|)|)[\\x20\\t\\r\\n\\f]*\\]",
pb = ":((?:\\\\.|[-\\w]|[^\\x00-\\xa0])+)(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:" + bc + ")|[^:]|\\\\.)*|.*))\\)|)",
Ma = /^[\x20\t\r\n\f]+|((?:^|[^\\])(?:\\.)*)[\x20\t\r\n\f]+$/g,
Xc = /^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,
Yc = /^[\x20\t\r\n\f]*([\x20\t\r\n\f>+~])[\x20\t\r\n\f]*/,
ad = RegExp(pb),
Wc = /^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,
kb = /[\x20\t\r\n\f]*[+~]/,
bd = /h\d/i,
cd = /input|select|textarea|button/i,
ka = /\\(?!\\)/g,
Oa = {
ID: /^#((?:\\.|[-\w]|[^\x00-\xa0])+)/,
CLASS: /^\.((?:\\.|[-\w]|[^\x00-\xa0])+)/,
NAME: /^\[name=['"]?((?:\\.|[-\w]|[^\x00-\xa0])+)['"]?\]/,
TAG: RegExp("^(" + "(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+".replace("w", "w*") + ")"),
ATTR: RegExp("^" + bc),
PSEUDO: RegExp("^" + pb),
POS: /:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i,
CHILD: RegExp("^:(only|nth|first|last)-child(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)",
"i"),
needsContext: RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)", "i")
},
da = function(b) {
var f = X.createElement("div");
try {
return b(f)
} catch (c) {
return !1
} finally {}
},
dd = da(function(b) {
return b.appendChild(X.createComment("")), !b.getElementsByTagName("*").length
}),
ed = da(function(b) {
return b.innerHTML = "", b.firstChild && "undefined" !== typeof b.firstChild.getAttribute && "#" === b.firstChild.getAttribute("href")
}),
fd = da(function(b) {
b.innerHTML = "";
b = typeof b.lastChild.getAttribute("multiple");
return "boolean" !== b && "string" !== b
}),
Tb = da(function(b) {
return b.innerHTML = "", !b.getElementsByClassName || !b.getElementsByClassName("e").length ? !1 : (b.lastChild.className = "e", 2 === b.getElementsByClassName("e").length)
}),
gd = da(function(b) {
b.id = P + 0;
b.innerHTML = "";
W.insertBefore(b, W.firstChild);
var f = X.getElementsByName &&
X.getElementsByName(P).length === 2 + X.getElementsByName(P + 0).length;
return mb = !X.getElementById(P), W.removeChild(b), f
});
try {
qa.call(W.childNodes, 0)[0].nodeType
} catch (Qd) {
qa = function(b) {
for (var f, c = []; f = this[b]; b++) c.push(f);
return c
}
}
I.matches = function(b, f) {
return I(b, null, null, f)
};
I.matchesSelector = function(b, f) {
return 0 < I(f, null, null, [b]).length
};
Sa = I.getText = function(b) {
var f, c = "",
d = 0;
if (f = b.nodeType)
if (1 === f || 9 === f || 11 === f) {
if ("string" == typeof b.textContent) return b.textContent;
for (b = b.firstChild; b; b =
b.nextSibling) c += Sa(b)
} else {
if (3 === f || 4 === f) return b.nodeValue
} else
for (; f = b[d]; d++) c += Sa(f);
return c
};
La = I.isXML = function(b) {
return (b = b && (b.ownerDocument || b).documentElement) ? "HTML" !== b.nodeName : !1
};
Sb = I.contains = W.contains ? function(b, f) {
var c = 9 === b.nodeType ? b.documentElement : b,
d = f && f.parentNode;
return b === d || !(!d || !(1 === d.nodeType && c.contains && c.contains(d)))
} : W.compareDocumentPosition ? function(b, f) {
return f && !!(b.compareDocumentPosition(f) & 16)
} : function(b, f) {
for (; f = f.parentNode;)
if (f === b) return !0;
return !1
};
I.attr = function(b, f) {
var c, d = La(b);
return d || (f = f.toLowerCase()), (c = G.attrHandle[f]) ? c(b) : d || fd ? b.getAttribute(f) : (c = b.getAttributeNode(f), c ? "boolean" == typeof b[f] ? b[f] ? f : null : c.specified ? c.value : null : null)
};
G = I.selectors = {
cacheLength: 50,
createPseudo: Y,
match: Oa,
attrHandle: ed ? {} : {
href: function(b) {
return b.getAttribute("href", 2)
},
type: function(b) {
return b.getAttribute("type")
}
},
find: {
ID: mb ? function(b, f, c) {
if ("undefined" !== typeof f.getElementById && !c) return (b = f.getElementById(b)) && b.parentNode ? [b] : []
} : function(b, f, c) {
if ("undefined" !== typeof f.getElementById && !c) return (f = f.getElementById(b)) ? f.id === b || "undefined" !== typeof f.getAttributeNode && f.getAttributeNode("id").value === b ? [f] : void 0 : []
},
TAG: dd ? function(b, f) {
if ("undefined" !== typeof f.getElementsByTagName) return f.getElementsByTagName(b)
} : function(b, f) {
var c = f.getElementsByTagName(b);
if ("*" === b) {
for (var d, e = [], l = 0; d = c[l]; l++) 1 === d.nodeType && e.push(d);
return e
}
return c
},
NAME: gd && function(b, f) {
if ("undefined" !== typeof f.getElementsByName) return f.getElementsByName(name)
},
CLASS: Tb && function(b, f, c) {
if ("undefined" !== typeof f.getElementsByClassName && !c) return f.getElementsByClassName(b)
}
},
relative: {
">": {
dir: "parentNode",
first: !0
},
" ": {
dir: "parentNode"
},
"+": {
dir: "previousSibling",
first: !0
},
"~": {
dir: "previousSibling"
}
},
preFilter: {
ATTR: function(b) {
return b[1] = b[1].replace(ka, ""), b[3] = (b[4] || b[5] || "").replace(ka, ""), "~=" === b[2] && (b[3] = " " + b[3] + " "), b.slice(0, 4)
},
CHILD: function(b) {
return b[1] = b[1].toLowerCase(), "nth" === b[1] ? (b[2] || I.error(b[0]), b[3] = +(b[3] ? b[4] + (b[5] || 1) :
2 * ("even" === b[2] || "odd" === b[2])), b[4] = +(b[6] + b[7] || "odd" === b[2])) : b[2] && I.error(b[0]), b
},
PSEUDO: function(b) {
var f, c;
if (Oa.CHILD.test(b[0])) return null;
if (b[3]) b[2] = b[3];
else if (f = b[4]) ad.test(f) && (c = Pa(f, !0)) && (c = f.indexOf(")", f.length - c) - f.length) && (f = f.slice(0, c), b[0] = b[0].slice(0, c)), b[2] = f;
return b.slice(0, 3)
}
},
filter: {
ID: mb ? function(b) {
return b = b.replace(ka, ""),
function(f) {
return f.getAttribute("id") === b
}
} : function(b) {
return b = b.replace(ka, ""),
function(f) {
return (f = "undefined" !== typeof f.getAttributeNode &&
f.getAttributeNode("id")) && f.value === b
}
},
TAG: function(b) {
return "*" === b ? function() {
return !0
} : (b = b.replace(ka, "").toLowerCase(), function(f) {
return f.nodeName && f.nodeName.toLowerCase() === b
})
},
CLASS: function(b) {
var f = $b[P][b];
return f || (f = $b(b, RegExp("(^|[\\x20\\t\\r\\n\\f])" + b + "([\\x20\\t\\r\\n\\f]|$)"))),
function(b) {
return f.test(b.className || "undefined" !== typeof b.getAttribute && b.getAttribute("class") || "")
}
},
ATTR: function(b, f, c) {
return function(d) {
d = I.attr(d, b);
return null == d ? "!=" === f : f ? (d += "", "=" ===
f ? d === c : "!=" === f ? d !== c : "^=" === f ? c && 0 === d.indexOf(c) : "*=" === f ? c && -1 < d.indexOf(c) : "$=" === f ? c && d.substr(d.length - c.length) === c : "~=" === f ? -1 < (" " + d + " ").indexOf(c) : "|=" === f ? d === c || d.substr(0, c.length + 1) === c + "-" : !1) : !0
}
},
CHILD: function(b, c, d, e) {
return "nth" === b ? function(b) {
var c, f;
c = b.parentNode;
if (1 === d && 0 === e) return !0;
if (c) {
f = 0;
for (c = c.firstChild; c && !(1 === c.nodeType && (f++, b === c)); c = c.nextSibling);
}
return f -= e, f === d || 0 === f % d && 0 <= f / d
} : function(c) {
var f = c;
switch (b) {
case "only":
case "first":
for (; f = f.previousSibling;)
if (1 ===
f.nodeType) return !1;
if ("first" === b) return !0;
f = c;
case "last":
for (; f = f.nextSibling;)
if (1 === f.nodeType) return !1;
return !0
}
}
},
PSEUDO: function(b, c) {
var d, e = G.pseudos[b] || G.setFilters[b.toLowerCase()] || I.error("unsupported pseudo: " + b);
return e[P] ? e(c) : 1 < e.length ? (d = [b, b, "", c], G.setFilters.hasOwnProperty(b.toLowerCase()) ? Y(function(b, d) {
for (var u, l = e(b, c), q = l.length; q--;) u = Xb.call(b, l[q]), b[u] = !(d[u] = l[q])
}) : function(b) {
return e(b, 0, d)
}) : e
}
},
pseudos: {
not: Y(function(b) {
var c = [],
d = [],
e = lb(b.replace(Ma, "$1"));
return e[P] ? Y(function(b, c, f, d) {
d = e(b, null, d, []);
for (var u = b.length; u--;)
if (f = d[u]) b[u] = !(c[u] = f)
}) : function(b, u, l) {
return c[0] = b, e(c, null, l, d), !d.pop()
}
}),
has: Y(function(b) {
return function(c) {
return 0 < I(b, c).length
}
}),
contains: Y(function(b) {
return function(c) {
return -1 < (c.textContent || c.innerText || Sa(c)).indexOf(b)
}
}),
enabled: function(b) {
return !1 === b.disabled
},
disabled: function(b) {
return !0 === b.disabled
},
checked: function(b) {
var c = b.nodeName.toLowerCase();
return "input" === c && !!b.checked || "option" ===
c && !!b.selected
},
selected: function(b) {
return b.parentNode && b.parentNode.selectedIndex, !0 === b.selected
},
parent: function(b) {
return !G.pseudos.empty(b)
},
empty: function(b) {
var c;
for (b = b.firstChild; b;) {
if ("@" < b.nodeName || 3 === (c = b.nodeType) || 4 === c) return !1;
b = b.nextSibling
}
return !0
},
header: function(b) {
return bd.test(b.nodeName)
},
text: function(b) {
var c, d;
return "input" === b.nodeName.toLowerCase() && "text" === (c = b.type) && (null == (d = b.getAttribute("type")) || d.toLowerCase() === c)
},
radio: wa("radio"),
checkbox: wa("checkbox"),
file: wa("file"),
password: wa("password"),
image: wa("image"),
submit: Ub("submit"),
reset: Ub("reset"),
button: function(b) {
var c = b.nodeName.toLowerCase();
return "input" === c && "button" === b.type || "button" === c
},
input: function(b) {
return cd.test(b.nodeName)
},
focus: function(b) {
var c = b.ownerDocument;
return b === c.activeElement && (!c.hasFocus || c.hasFocus()) && (!!b.type || !!b.href)
},
active: function(b) {
return b === b.ownerDocument.activeElement
},
first: ja(function() {
return [0]
}),
last: ja(function(b, c) {
return [c - 1]
}),
eq: ja(function(b,
c, d) {
return [0 > d ? d + c : d]
}),
even: ja(function(b, c) {
for (var d = 0; d < c; d += 2) b.push(d);
return b
}),
odd: ja(function(b, c) {
for (var d = 1; d < c; d += 2) b.push(d);
return b
}),
lt: ja(function(b, c, d) {
for (c = 0 > d ? d + c : d; 0 <= --c;) b.push(c);
return b
}),
gt: ja(function(b, c, d) {
for (d = 0 > d ? d + c : d; ++d < c;) b.push(d);
return b
})
}
};
nb = W.compareDocumentPosition ? function(b, c) {
return b === c ? (ya = !0, 0) : (!b.compareDocumentPosition || !c.compareDocumentPosition ? b.compareDocumentPosition : b.compareDocumentPosition(c) & 4) ? -1 : 1
} : function(b, c) {
if (b === c) return ya = !0, 0;
if (b.sourceIndex && c.sourceIndex) return b.sourceIndex - c.sourceIndex;
var d, e, l = [],
g = [];
d = b.parentNode;
e = c.parentNode;
var m = d;
if (d === e) return Na(b, c);
if (!d) return -1;
if (!e) return 1;
for (; m;) l.unshift(m), m = m.parentNode;
for (m = e; m;) g.unshift(m), m = m.parentNode;
d = l.length;
e = g.length;
for (m = 0; m < d && m < e; m++)
if (l[m] !== g[m]) return Na(l[m], g[m]);
return m === d ? Na(b, g[m], -1) : Na(l[m], c, 1)
};
[0, 0].sort(nb);
Zb = !ya;
I.uniqueSort = function(b) {
var c, d = 1;
ya = Zb;
b.sort(nb);
if (ya)
for (; c = b[d]; d++) c === b[d - 1] && b.splice(d--, 1);
return b
};
I.error = function(b) {
throw Error("Syntax error, unrecognized expression: " + b);
};
lb = I.compile = function(b, c) {
var d, e = [],
l = [],
g = ac[P][b];
if (!g) {
c || (c = Pa(b));
for (d = c.length; d--;) g = jb(c[d]), g[P] ? e.push(g) : l.push(g);
var m = 0 < e.length,
j = 0 < l.length,
p = function(b, c, f, d, u) {
var q, g, s = [],
t = 0,
r = "0",
n = b && [],
z = null != u,
x = Ra,
A = b || j && G.find.TAG("*", u && c.parentNode || c),
B = xa += null == x ? 1 : Math.E;
for (z && (Ra = c !== X && c, fb = p.el); null != (u = A[r]); r++) {
if (j && u) {
for (q = 0; g = l[q]; q++)
if (g(u, c, f)) {
d.push(u);
break
}
z && (xa = B, fb =
++p.el)
}
m && ((u = !g && u) && t--, b && n.push(u))
}
t += r;
if (m && r !== t) {
for (q = 0; g = e[q]; q++) g(n, s, c, f);
if (b) {
if (0 < t)
for (; r--;)!n[r] && !s[r] && (s[r] = $c.call(d));
s = Qa(s)
}
pa.apply(d, s);
z && !b && 0 < s.length && 1 < t + e.length && I.uniqueSort(d)
}
return z && (xa = B, Ra = x), n
};
d = (p.el = 0, m ? Y(p) : p);
g = ac(b, d)
}
return g
};
if (X.querySelectorAll) {
var cc, hd = eb,
id = /'|\\/g,
jd = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,
Z = [":focus"],
Ta = [":active", ":focus"],
Ua = W.matchesSelector || W.mozMatchesSelector || W.webkitMatchesSelector || W.oMatchesSelector ||
W.msMatchesSelector;
da(function(b) {
b.innerHTML = "";
b.querySelectorAll("[selected]").length || Z.push("\\[[\\x20\\t\\r\\n\\f]*(?:checked|disabled|ismap|multiple|readonly|selected|value)");
b.querySelectorAll(":checked").length || Z.push(":checked")
});
da(function(b) {
b.innerHTML = "";
b.querySelectorAll("[test^='']").length && Z.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:\"\"|'')");
b.innerHTML = "";
b.querySelectorAll(":enabled").length || Z.push(":enabled",
":disabled")
});
Z = RegExp(Z.join("|"));
eb = function(b, c, d, e, l) {
if (!e && !l && (!Z || !Z.test(b))) {
var g, m, j = !0,
p = P;
m = c;
g = 9 === c.nodeType && b;
if (1 === c.nodeType && "object" !== c.nodeName.toLowerCase()) {
g = Pa(b);
(j = c.getAttribute("id")) ? p = j.replace(id, "\\$&"): c.setAttribute("id", p);
p = "[id='" + p + "'] ";
for (m = g.length; m--;) g[m] = p + g[m].join("");
m = kb.test(b) && c.parentNode || c;
g = g.join(",")
}
if (g) try {
return pa.apply(d, qa.call(m.querySelectorAll(g), 0)), d
} catch (t) {} finally {
j || c.removeAttribute("id")
}
}
return hd(b, c, d, e, l)
};
Ua &&
(da(function(b) {
cc = Ua.call(b, "div");
try {
Ua.call(b, "[test!='']:sizzle"), Ta.push("!=", pb)
} catch (c) {}
}), Ta = RegExp(Ta.join("|")), I.matchesSelector = function(b, c) {
c = c.replace(jd, "='$1']");
if (!La(b) && !Ta.test(c) && (!Z || !Z.test(c))) try {
var d = Ua.call(b, c);
if (d || cc || b.document && 11 !== b.document.nodeType) return d
} catch (e) {}
return 0 < I(c, null, null, [b]).length
})
}
G.pseudos.nth = G.pseudos.eq;
G.filters = Yb.prototype = G.pseudos;
G.setFilters = new Yb;
I.attr = e.attr;
e.find = I;
e.expr = I.selectors;
e.expr[":"] = e.expr.pseudos;
e.unique =
I.uniqueSort;
e.text = I.getText;
e.isXMLDoc = I.isXML;
e.contains = I.contains;
var kd = /Until$/,
ld = /^(?:parents|prev(?:Until|All))/,
uc = /^.[^:#\[\.,]*$/,
dc = e.expr.match.needsContext,
md = {
children: !0,
contents: !0,
next: !0,
prev: !0
};
e.fn.extend({
find: function(b) {
var c, d, l, g, j, m, p = this;
if ("string" != typeof b) return e(b).filter(function() {
c = 0;
for (d = p.length; c < d; c++)
if (e.contains(p[c], this)) return !0
});
m = this.pushStack("", "find", b);
c = 0;
for (d = this.length; c < d; c++)
if (l = m.length, e.find(b, this[c], m), 0 < c)
for (g = l; g < m.length; g++)
for (j =
0; j < l; j++)
if (m[j] === m[g]) {
m.splice(g--, 1);
break
}
return m
},
has: function(b) {
var c, d = e(b, this),
l = d.length;
return this.filter(function() {
for (c = 0; c < l; c++)
if (e.contains(this, d[c])) return !0
})
},
not: function(b) {
return this.pushStack(z(this, b, !1), "not", b)
},
filter: function(b) {
return this.pushStack(z(this, b, !0), "filter", b)
},
is: function(b) {
return !!b && ("string" == typeof b ? dc.test(b) ? 0 <= e(b, this.context).index(this[0]) : 0 < e.filter(b, this).length : 0 < this.filter(b).length)
},
closest: function(b, c) {
for (var d, l = 0, g = this.length,
j = [], m = dc.test(b) || "string" != typeof b ? e(b, c || this.context) : 0; l < g; l++)
for (d = this[l]; d && d.ownerDocument && d !== c && 11 !== d.nodeType;) {
if (m ? -1 < m.index(d) : e.find.matchesSelector(d, b)) {
j.push(d);
break
}
d = d.parentNode
}
return j = 1 < j.length ? e.unique(j) : j, this.pushStack(j, "closest", b)
},
index: function(b) {
return b ? "string" == typeof b ? e.inArray(this[0], e(b)) : e.inArray(b.jquery ? b[0] : b, this) : this[0] && this[0].parentNode ? this.prevAll().length : -1
},
add: function(b, c) {
var d = "string" == typeof b ? e(b, c) : e.makeArray(b && b.nodeType ? [b] : b),
l = e.merge(this.get(), d);
return this.pushStack(y(d[0]) || y(l[0]) ? l : e.unique(l))
},
addBack: function(b) {
return this.add(null == b ? this.prevObject : this.prevObject.filter(b))
}
});
e.fn.andSelf = e.fn.addBack;
e.each({
parent: function(b) {
return (b = b.parentNode) && 11 !== b.nodeType ? b : null
},
parents: function(b) {
return e.dir(b, "parentNode")
},
parentsUntil: function(b, c, d) {
return e.dir(b, "parentNode", d)
},
next: function(b) {
return r(b, "nextSibling")
},
prev: function(b) {
return r(b, "previousSibling")
},
nextAll: function(b) {
return e.dir(b,
"nextSibling")
},
prevAll: function(b) {
return e.dir(b, "previousSibling")
},
nextUntil: function(b, c, d) {
return e.dir(b, "nextSibling", d)
},
prevUntil: function(b, c, d) {
return e.dir(b, "previousSibling", d)
},
siblings: function(b) {
return e.sibling((b.parentNode || {}).firstChild, b)
},
children: function(b) {
return e.sibling(b.firstChild)
},
contents: function(b) {
return e.nodeName(b, "iframe") ? b.contentDocument || b.contentWindow.document : e.merge([], b.childNodes)
}
}, function(b, c) {
e.fn[b] = function(d, l) {
var g = e.map(this, c, d);
return kd.test(b) ||
(l = d), l && "string" == typeof l && (g = e.filter(l, g)), g = 1 < this.length && !md[b] ? e.unique(g) : g, 1 < this.length && ld.test(b) && (g = g.reverse()), this.pushStack(g, b, aa.call(arguments).join(","))
}
});
e.extend({
filter: function(b, c, d) {
return d && (b = ":not(" + b + ")"), 1 === c.length ? e.find.matchesSelector(c[0], b) ? [c[0]] : [] : e.find.matches(b, c)
},
dir: function(b, f, d) {
var l = [];
for (b = b[f]; b && 9 !== b.nodeType && (d === c || 1 !== b.nodeType || !e(b).is(d));) 1 === b.nodeType && l.push(b), b = b[f];
return l
},
sibling: function(b, c) {
for (var d = []; b; b = b.nextSibling) 1 ===
b.nodeType && b !== c && d.push(b);
return d
}
});
var wb = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
nd = / jQuery\d+="(?:null|\d+)"/g,
qb = /^\s+/,
ec = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
fc = /<([\w:]+)/,
od = /]", "i"),
xb = /^(?:checkbox|radio)$/,
gc = /checked\s*(?:[^=]|=\s*.checked.)/i,
sd = /\/(java|ecma)script/i,
td = /^\s*\s*$/g,
V = {
option: [1, ""],
legend: [1, ""],
thead: [1, ""],
tr: [2, ""],
td: [3, ""],
col: [2, ""],
area: [1, ""],
_default: [0, "", ""]
},
hc = A(D),
sb = hc.appendChild(D.createElement("div"));
V.optgroup =
V.option;
V.tbody = V.tfoot = V.colgroup = V.caption = V.thead;
V.th = V.td;
e.support.htmlSerialize || (V._default = [1, "X", "
"]);
e.fn.extend({
text: function(b) {
return e.access(this, function(b) {
return b === c ? e.text(this) : this.empty().append((this[0] && this[0].ownerDocument || D).createTextNode(b))
}, null, b, arguments.length)
},
wrapAll: function(b) {
if (e.isFunction(b)) return this.each(function(c) {
e(this).wrapAll(b.call(this, c))
});
if (this[0]) {
var c = e(b, this[0].ownerDocument).eq(0).clone(!0);
this[0].parentNode && c.insertBefore(this[0]);
c.map(function() {
for (var b = this; b.firstChild && 1 === b.firstChild.nodeType;) b = b.firstChild;
return b
}).append(this)
}
return this
},
wrapInner: function(b) {
return e.isFunction(b) ? this.each(function(c) {
e(this).wrapInner(b.call(this, c))
}) : this.each(function() {
var c = e(this),
d = c.contents();
d.length ? d.wrapAll(b) : c.append(b)
})
},
wrap: function(b) {
var c = e.isFunction(b);
return this.each(function(d) {
e(this).wrapAll(c ? b.call(this, d) : b)
})
},
unwrap: function() {
return this.parent().each(function() {
e.nodeName(this, "body") ||
e(this).replaceWith(this.childNodes)
}).end()
},
append: function() {
return this.domManip(arguments, !0, function(b) {
(1 === this.nodeType || 11 === this.nodeType) && this.appendChild(b)
})
},
prepend: function() {
return this.domManip(arguments, !0, function(b) {
(1 === this.nodeType || 11 === this.nodeType) && this.insertBefore(b, this.firstChild)
})
},
before: function() {
if (!y(this[0])) return this.domManip(arguments, !1, function(b) {
this.parentNode.insertBefore(b, this)
});
if (arguments.length) {
var b = e.clean(arguments);
return this.pushStack(e.merge(b,
this), "before", this.selector)
}
},
after: function() {
if (!y(this[0])) return this.domManip(arguments, !1, function(b) {
this.parentNode.insertBefore(b, this.nextSibling)
});
if (arguments.length) {
var b = e.clean(arguments);
return this.pushStack(e.merge(this, b), "after", this.selector)
}
},
remove: function(b, c) {
for (var d, l = 0; null != (d = this[l]); l++)
if (!b || e.filter(b, [d]).length)!c && 1 === d.nodeType && (e.cleanData(d.getElementsByTagName("*")), e.cleanData([d])), d.parentNode && d.parentNode.removeChild(d);
return this
},
empty: function() {
for (var b,
c = 0; null != (b = this[c]); c++)
for (1 === b.nodeType && e.cleanData(b.getElementsByTagName("*")); b.firstChild;) b.removeChild(b.firstChild);
return this
},
clone: function(b, c) {
return b = null == b ? !1 : b, c = null == c ? b : c, this.map(function() {
return e.clone(this, b, c)
})
},
html: function(b) {
return e.access(this, function(b) {
var d = this[0] || {},
l = 0,
u = this.length;
if (b === c) return 1 === d.nodeType ? d.innerHTML.replace(nd, "") : c;
if ("string" == typeof b && !qd.test(b) && (e.support.htmlSerialize || !rb.test(b)) && (e.support.leadingWhitespace || !qb.test(b)) &&
!V[(fc.exec(b) || ["", ""])[1].toLowerCase()]) {
b = b.replace(ec, "<$1>$2>");
try {
for (; l < u; l++) d = this[l] || {}, 1 === d.nodeType && (e.cleanData(d.getElementsByTagName("*")), d.innerHTML = b);
d = 0
} catch (g) {}
}
d && this.empty().append(b)
}, null, b, arguments.length)
},
replaceWith: function(b) {
return y(this[0]) ? this.length ? this.pushStack(e(e.isFunction(b) ? b() : b), "replaceWith", b) : this : e.isFunction(b) ? this.each(function(c) {
var d = e(this),
l = d.html();
d.replaceWith(b.call(this, c, l))
}) : ("string" != typeof b && (b = e(b).detach()), this.each(function() {
var c =
this.nextSibling,
d = this.parentNode;
e(this).remove();
c ? e(c).before(b) : e(d).append(b)
}))
},
detach: function(b) {
return this.remove(b, !0)
},
domManip: function(b, f, d) {
b = [].concat.apply([], b);
var l, g, j, m = 0,
p = b[0],
t = [],
r = this.length;
if (!e.support.checkClone && 1 < r && "string" == typeof p && gc.test(p)) return this.each(function() {
e(this).domManip(b, f, d)
});
if (e.isFunction(p)) return this.each(function(l) {
var g = e(this);
b[0] = p.call(this, l, f ? g.html() : c);
g.domManip(b, f, d)
});
if (this[0]) {
l = e.buildFragment(b, this, t);
j = l.fragment;
g = j.firstChild;
1 === j.childNodes.length && (j = g);
if (g) {
f = f && e.nodeName(g, "tr");
for (l = l.cacheable || r - 1; m < r; m++) d.call(f && e.nodeName(this[m], "table") ? this[m].getElementsByTagName("tbody")[0] || this[m].appendChild(this[m].ownerDocument.createElement("tbody")) : this[m], m === l ? j : e.clone(j, !0, !0))
}
j = g = null;
t.length && e.each(t, function(b, c) {
c.src ? e.ajax ? e.ajax({
url: c.src,
type: "GET",
dataType: "script",
async: !1,
global: !1,
"throws": !0
}) : e.error("no ajax") : e.globalEval((c.text || c.textContent || c.innerHTML || "").replace(td,
""));
c.parentNode && c.parentNode.removeChild(c)
})
}
return this
}
});
e.buildFragment = function(b, f, d) {
var l, g, j, m = b[0];
return f = f || D, f = !f.nodeType && f[0] || f, f = f.ownerDocument || f, 1 === b.length && "string" == typeof m && 512 > m.length && f === D && "<" === m.charAt(0) && !rd.test(m) && (e.support.checkClone || !gc.test(m)) && (e.support.html5Clone || !rb.test(m)) && (g = !0, l = e.fragments[m], j = l !== c), l || (l = f.createDocumentFragment(), e.clean(b, f, l, d), g && (e.fragments[m] = j && l)), {
fragment: l,
cacheable: g
}
};
e.fragments = {};
e.each({
appendTo: "append",
prependTo: "prepend",
insertBefore: "before",
insertAfter: "after",
replaceAll: "replaceWith"
}, function(b, c) {
e.fn[b] = function(d) {
var l, g = 0,
j = [];
d = e(d);
var m = d.length;
l = 1 === this.length && this[0].parentNode;
if ((null == l || l && 11 === l.nodeType && 1 === l.childNodes.length) && 1 === m) return d[c](this[0]), this;
for (; g < m; g++) l = (0 < g ? this.clone(!0) : this).get(), e(d[g])[c](l), j = j.concat(l);
return this.pushStack(j, b, d.selector)
}
});
e.extend({
clone: function(b, c, d) {
var g, j, s, m;
e.support.html5Clone || e.isXMLDoc(b) || !rb.test("<" + b.nodeName +
">") ? m = b.cloneNode(!0) : (sb.innerHTML = b.outerHTML, sb.removeChild(m = sb.firstChild));
if ((!e.support.noCloneEvent || !e.support.noCloneChecked) && (1 === b.nodeType || 11 === b.nodeType) && !e.isXMLDoc(b)) {
l(b, m);
g = p(b);
j = p(m);
for (s = 0; g[s]; ++s) j[s] && l(g[s], j[s])
}
if (c && (B(b, m), d)) {
g = p(b);
j = p(m);
for (s = 0; g[s]; ++s) B(g[s], j[s])
}
return m
},
clean: function(b, c, d, l) {
var g, j, m, p, r, n, z, x = c === D && hc,
B = [];
if (!c || "undefined" == typeof c.createDocumentFragment) c = D;
for (g = 0; null != (m = b[g]); g++)
if ("number" == typeof m && (m += ""), m) {
if ("string" ==
typeof m)
if (pd.test(m)) {
x = x || A(c);
n = c.createElement("div");
x.appendChild(n);
m = m.replace(ec, "<$1>$2>");
j = (fc.exec(m) || ["", ""])[1].toLowerCase();
p = V[j] || V._default;
r = p[0];
for (n.innerHTML = p[1] + m + p[2]; r--;) n = n.lastChild;
if (!e.support.tbody) {
r = od.test(m);
p = "table" === j && !r ? n.firstChild && n.firstChild.childNodes : "" === p[1] && !r ? n.childNodes : [];
for (j = p.length - 1; 0 <= j; --j) e.nodeName(p[j], "tbody") && !p[j].childNodes.length && p[j].parentNode.removeChild(p[j])
}!e.support.leadingWhitespace && qb.test(m) && n.insertBefore(c.createTextNode(qb.exec(m)[0]),
n.firstChild);
m = n.childNodes;
n.parentNode.removeChild(n)
} else m = c.createTextNode(m);
m.nodeType ? B.push(m) : e.merge(B, m)
}
n && (m = n = x = null);
if (!e.support.appendChecked)
for (g = 0; null != (m = B[g]); g++) e.nodeName(m, "input") ? t(m) : "undefined" != typeof m.getElementsByTagName && e.grep(m.getElementsByTagName("input"), t);
if (d) {
b = function(b) {
if (!b.type || sd.test(b.type)) return l ? l.push(b.parentNode ? b.parentNode.removeChild(b) : b) : d.appendChild(b)
};
for (g = 0; null != (m = B[g]); g++)
if (!e.nodeName(m, "script") || !b(m)) d.appendChild(m),
"undefined" != typeof m.getElementsByTagName && (z = e.grep(e.merge([], m.getElementsByTagName("script")), b), B.splice.apply(B, [g + 1, 0].concat(z)), g += z.length)
}
return B
},
cleanData: function(b, c) {
for (var d, l, g, j, m = 0, p = e.expando, t = e.cache, r = e.support.deleteExpando, n = e.event.special; null != (g = b[m]); m++)
if (c || e.acceptData(g))
if (d = (l = g[p]) && t[l]) {
if (d.events)
for (j in d.events) n[j] ? e.event.remove(g, j) : e.removeEvent(g, j, d.handle);
t[l] && (delete t[l], r ? delete g[p] : g.removeAttribute ? g.removeAttribute(p) : g[p] = null, e.deletedIds.push(l))
}
}
});
var Va, ea;
e.uaMatch = function(b) {
b = b.toLowerCase();
b = /(chrome)[ \/]([\w.]+)/.exec(b) || /(webkit)[ \/]([\w.]+)/.exec(b) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(b) || /(msie) ([\w.]+)/.exec(b) || 0 > b.indexOf("compatible") && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(b) || [];
return {
browser: b[1] || "",
version: b[2] || "0"
}
};
Va = e.uaMatch(zc.userAgent);
ea = {};
Va.browser && (ea[Va.browser] = !0, ea.version = Va.version);
ea.chrome ? ea.webkit = !0 : ea.webkit && (ea.safari = !0);
e.browser = ea;
e.sub = function() {
function b(c, d) {
return new b.fn.init(c,
d)
}
e.extend(!0, b, this);
b.superclass = this;
b.fn = b.prototype = this();
b.fn.constructor = b;
b.sub = this.sub;
b.fn.init = function(d, l) {
return l && l instanceof e && !(l instanceof b) && (l = b(l)), e.fn.init.call(this, d, l, c)
};
b.fn.init.prototype = b.fn;
var c = b(D);
return b
};
var R, ma, na, tb = /alpha\([^)]*\)/i,
ud = /opacity=([^)]*)/,
vd = /^(top|right|bottom|left)$/,
wd = /^(none|table(?!-c[ea]).+)/,
ic = /^margin/,
vc = RegExp("^(" + Fa + ")(.*)$", "i"),
za = RegExp("^(" + Fa + ")(?!px)[a-z%]+$", "i"),
xd = RegExp("^([-+])=(" + Fa + ")", "i"),
Ya = {},
yd = {
position: "absolute",
visibility: "hidden",
display: "block"
},
jc = {
letterSpacing: 0,
fontWeight: 400
},
fa = ["Top", "Right", "Bottom", "Left"],
yb = ["Webkit", "O", "Moz", "ms"],
zd = e.fn.toggle;
e.fn.extend({
css: function(b, d) {
return e.access(this, function(b, d, f) {
return f !== c ? e.style(b, d, f) : e.css(b, d)
}, b, d, 1 < arguments.length)
},
show: function() {
return H(this, !0)
},
hide: function() {
return H(this)
},
toggle: function(b, c) {
var d = "boolean" == typeof b;
return e.isFunction(b) && e.isFunction(c) ? zd.apply(this, arguments) : this.each(function() {
(d ? b : L(this)) ? e(this).show():
e(this).hide()
})
}
});
e.extend({
cssHooks: {
opacity: {
get: function(b, c) {
if (c) {
var d = R(b, "opacity");
return "" === d ? "1" : d
}
}
}
},
cssNumber: {
fillOpacity: !0,
fontWeight: !0,
lineHeight: !0,
opacity: !0,
orphans: !0,
widows: !0,
zIndex: !0,
zoom: !0
},
cssProps: {
"float": e.support.cssFloat ? "cssFloat" : "styleFloat"
},
style: function(b, d, l, g) {
if (b && !(3 === b.nodeType || 8 === b.nodeType || !b.style)) {
var j, p, m, t = e.camelCase(d),
r = b.style;
d = e.cssProps[t] || (e.cssProps[t] = x(r, t));
m = e.cssHooks[d] || e.cssHooks[t];
if (l === c) return m && "get" in m && (j = m.get(b, !1, g)) !== c ? j : r[d];
p = typeof l;
"string" === p && (j = xd.exec(l)) && (l = (j[1] + 1) * j[2] + parseFloat(e.css(b, d)), p = "number");
if (!(null == l || "number" === p && isNaN(l)))
if ("number" === p && !e.cssNumber[t] && (l += "px"), !m || !("set" in m) || (l = m.set(b, l, g)) !== c) try {
r[d] = l
} catch (n) {}
}
},
css: function(b, d, l, g) {
var j, p, m, t = e.camelCase(d);
return d = e.cssProps[t] || (e.cssProps[t] = x(b.style, t)), m = e.cssHooks[d] || e.cssHooks[t], m && "get" in m && (j = m.get(b, !0, g)), j === c && (j = R(b, d)), "normal" === j && d in jc && (j = jc[d]), l || g !== c ? (p = parseFloat(j), l ||
e.isNumeric(p) ? p || 0 : j) : j
},
swap: function(b, c, d) {
var e, l = {};
for (e in c) l[e] = b.style[e], b.style[e] = c[e];
d = d.call(b);
for (e in c) b.style[e] = l[e];
return d
}
});
b.getComputedStyle ? R = function(c, d) {
var l, g, j, p, m = b.getComputedStyle(c, null),
t = c.style;
return m && (l = m[d], "" === l && !e.contains(c.ownerDocument, c) && (l = e.style(c, d)), za.test(l) && ic.test(d) && (g = t.width, j = t.minWidth, p = t.maxWidth, t.minWidth = t.maxWidth = t.width = l, l = m.width, t.width = g, t.minWidth = j, t.maxWidth = p)), l
} : D.documentElement.currentStyle && (R = function(b,
c) {
var d, e, l = b.currentStyle && b.currentStyle[c],
g = b.style;
return null == l && g && g[c] && (l = g[c]), za.test(l) && !vd.test(c) && (d = g.left, e = b.runtimeStyle && b.runtimeStyle.left, e && (b.runtimeStyle.left = b.currentStyle.left), g.left = "fontSize" === c ? "1em" : l, l = g.pixelLeft + "px", g.left = d, e && (b.runtimeStyle.left = e)), "" === l ? "auto" : l
});
e.each(["height", "width"], function(b, c) {
e.cssHooks[c] = {
get: function(b, d, l) {
if (d) return 0 === b.offsetWidth && wd.test(R(b, "display")) ? e.swap(b, yd, function() {
return F(b, c, l)
}) : F(b, c, l)
},
set: function(b,
d, l) {
return E(b, d, l ? N(b, c, l, e.support.boxSizing && "border-box" === e.css(b, "boxSizing")) : 0)
}
}
});
e.support.opacity || (e.cssHooks.opacity = {
get: function(b, c) {
return ud.test((c && b.currentStyle ? b.currentStyle.filter : b.style.filter) || "") ? 0.01 * parseFloat(RegExp.$1) + "" : c ? "1" : ""
},
set: function(b, c) {
var d = b.style,
l = b.currentStyle,
g = e.isNumeric(c) ? "alpha(opacity=" + 100 * c + ")" : "",
j = l && l.filter || d.filter || "";
d.zoom = 1;
if (!(1 <= c && "" === e.trim(j.replace(tb, "")) && d.removeAttribute && (d.removeAttribute("filter"), l && !l.filter))) d.filter =
tb.test(j) ? j.replace(tb, g) : j + " " + g
}
});
e(function() {
e.support.reliableMarginRight || (e.cssHooks.marginRight = {
get: function(b, c) {
return e.swap(b, {
display: "inline-block"
}, function() {
if (c) return R(b, "marginRight")
})
}
});
!e.support.pixelPosition && e.fn.position && e.each(["top", "left"], function(b, c) {
e.cssHooks[c] = {
get: function(b, d) {
if (d) {
var l = R(b, c);
return za.test(l) ? e(b).position()[c] + "px" : l
}
}
}
})
});
e.expr && e.expr.filters && (e.expr.filters.hidden = function(b) {
return 0 === b.offsetWidth && 0 === b.offsetHeight || !e.support.reliableHiddenOffsets &&
"none" === (b.style && b.style.display || R(b, "display"))
}, e.expr.filters.visible = function(b) {
return !e.expr.filters.hidden(b)
});
e.each({
margin: "",
padding: "",
border: "Width"
}, function(b, c) {
e.cssHooks[b + c] = {
expand: function(d) {
var e = "string" == typeof d ? d.split(" ") : [d],
l = {};
for (d = 0; 4 > d; d++) l[b + fa[d] + c] = e[d] || e[d - 2] || e[0];
return l
}
};
ic.test(b) || (e.cssHooks[b + c].set = E)
});
var Ad = /%20/g,
wc = /\[\]$/,
kc = /\r?\n/g,
Bd = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
Cd = /^(?:select|textarea)/i;
e.fn.extend({
serialize: function() {
return e.param(this.serializeArray())
},
serializeArray: function() {
return this.map(function() {
return this.elements ? e.makeArray(this.elements) : this
}).filter(function() {
return this.name && !this.disabled && (this.checked || Cd.test(this.nodeName) || Bd.test(this.type))
}).map(function(b, c) {
var d = e(this).val();
return null == d ? null : e.isArray(d) ? e.map(d, function(b) {
return {
name: c.name,
value: b.replace(kc, "\r\n")
}
}) : {
name: c.name,
value: d.replace(kc, "\r\n")
}
}).get()
}
});
e.param = function(b, d) {
var l, g = [],
j = function(b, c) {
c = e.isFunction(c) ? c() : null == c ? "" : c;
g[g.length] = encodeURIComponent(b) + "=" + encodeURIComponent(c)
};
d === c && (d = e.ajaxSettings && e.ajaxSettings.traditional);
if (e.isArray(b) || b.jquery && !e.isPlainObject(b)) e.each(b, function() {
j(this.name, this.value)
});
else
for (l in b) O(l, b[l], d, j);
return g.join("&").replace(Ad, "+")
};
var ra, la, Dd = /#.*$/,
Ed = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg,
Fd = /^(?:GET|HEAD)$/,
Gd = /^\/\//,
lc = /\?/,
Hd = /