#1 JavaScript::Eval (size: 144597, repeated: 1) (function(o, q) {
var s, readyList, document = o.document,
location = o.location,
navigator = o.navigator,
core_push = Array.prototype.push,
core_slice = Array.prototype.slice,
core_indexOf = Array.prototype.indexOf,
core_toString = Object.prototype.toString,
core_hasOwn = Object.prototype.hasOwnProperty,
core_trim = String.prototype.trim,
jQueryAbd = function(a, b) {
return new jQueryAbd.fn.init(a, b, s)
},
core_pnum = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,
core_rnotwhite = /\S/,
core_rspace = /\s+/,
rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
rquickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
rvalidchars = /^[\],:{}\s]*$/,
rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,
rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,
rmsPrefix = /^-ms-/,
rdashAlpha = /-([\da-z])/gi,
fcamelCase = function(a, b) {
return (b + "").toUpperCase()
},
DOMContentLoaded = function() {
if (document.addEventListener) {
document.removeEventListener("DOMContentLoaded", DOMContentLoaded, false);
jQueryAbd.ready()
} else if (document.readyState === "complete") {
document.detachEvent("onreadystatechange", DOMContentLoaded);
jQueryAbd.ready()
}
},
class2type = {};
jQueryAbd.fn = jQueryAbd.prototype = {
constructor: jQueryAbd,
init: function(a, b, c) {
var d, elem, ret, doc;
if (!a) {
return this
}
if (a.nodeType) {
this.context = this[0] = a;
this.length = 1;
return this
}
if (typeof a === "string") {
if (a.charAt(0) === "<" && a.charAt(a.length - 1) === ">" && a.length >= 3) {
d = [null, a, null]
} else {
d = rquickExpr.exec(a)
}
if (d && (d[1] || !b)) {
if (d[1]) {
b = b instanceof jQueryAbd ? b[0] : b;
doc = (b && b.nodeType ? b.ownerDocument || b : document);
a = jQueryAbd.parseHTML(d[1], doc, true);
if (rsingleTag.test(d[1]) && jQueryAbd.isPlainObject(b)) {
this.attr.call(a, b, true)
}
return jQueryAbd.merge(this, a)
} else {
elem = document.getElementById(d[2]);
if (elem && elem.parentNode) {
if (elem.id !== d[2]) {
return c.find(a)
}
this.length = 1;
this[0] = elem
}
this.context = document;
this.selector = a;
return this
}
} else if (!b || b.ver) {
return (b || c).find(a)
} else {
return this.constructor(b).find(a)
}
} else if (jQueryAbd.isFunction(a)) {
return c.ready(a)
}
if (a.selector !== q) {
this.selector = a.selector;
this.context = a.context
}
return jQueryAbd.makeArray(a, this)
},
selector: "",
ver: "1.8.1",
length: 0,
size: function() {
return this.length
},
toArray: function() {
return core_slice.call(this)
},
get: function(a) {
return a == null ? this.toArray() : (a < 0 ? this[this.length + a] : this[a])
},
pushStack: function(a, b, c) {
var d = jQueryAbd.merge(this.constructor(), a);
d.prevObject = this;
d.context = this.context;
if (b === "find") {
d.selector = this.selector + (this.selector ? " " : "") + c
} else if (b) {
d.selector = this.selector + "." + b + "(" + c + ")"
}
return d
},
each: function(a, b) {
return jQueryAbd.each(this, a, b)
},
ready: function(a) {
jQueryAbd.ready.promise().done(a);
return this
},
eq: function(i) {
i = +i;
return i === -1 ? this.slice(i) : this.slice(i, i + 1)
},
first: function() {
return this.eq(0)
},
last: function() {
return this.eq(-1)
},
slice: function() {
return this.pushStack(core_slice.apply(this, arguments), "slice", core_slice.call(arguments).join(","))
},
map: function(b) {
return this.pushStack(jQueryAbd.map(this, function(a, i) {
return b.call(a, i, a)
}))
},
end: function() {
return this.prevObject || this.constructor(null)
},
push: core_push,
sort: [].sort,
splice: [].splice
};
jQueryAbd.fn.init.prototype = jQueryAbd.fn;
jQueryAbd.extend = jQueryAbd.fn.extend = function() {
var a, name, src, copy, copyIsArray, clone, target = arguments[0] || {},
i = 1,
length = arguments.length,
deep = false;
if (typeof target === "boolean") {
deep = target;
target = arguments[1] || {};
i = 2
}
if (typeof target !== "object" && !jQueryAbd.isFunction(target)) {
target = {}
}
if (length === i) {
target = this;
--i
}
for (; i < length; i++) {
if ((a = arguments[i]) != null) {
for (name in a) {
src = target[name];
copy = a[name];
if (target === copy) {
continue
}
if (deep && copy && (jQueryAbd.isPlainObject(copy) || (copyIsArray = jQueryAbd.isArray(copy)))) {
if (copyIsArray) {
copyIsArray = false;
clone = src && jQueryAbd.isArray(src) ? src : []
} else {
clone = src && jQueryAbd.isPlainObject(src) ? src : {}
}
target[name] = jQueryAbd.extend(deep, clone, copy)
} else if (copy !== q) {
target[name] = copy
}
}
}
}
return target
};
jQueryAbd.extend({
isReady: false,
readyWait: 1,
holdReady: function(a) {
if (a) {
jQueryAbd.readyWait++
} else {
jQueryAbd.ready(true)
}
},
ready: function(a) {
if (a === true ? --jQueryAbd.readyWait : jQueryAbd.isReady) {
return
}
if (!document.body) {
return setTimeout(jQueryAbd.ready, 1)
}
jQueryAbd.isReady = true;
if (a !== true && --jQueryAbd.readyWait > 0) {
return
}
readyList.resolveWith(document, [jQueryAbd]);
if (jQueryAbd.fn.trigger) {
jQueryAbd(document).trigger("ready").off("ready")
}
},
isFunction: function(a) {
return jQueryAbd.type(a) === "function"
},
isArray: Array.isArray ||
function(a) {
return jQueryAbd.type(a) === "array"
},
isWindow: function(a) {
return a != null && a == a.window
},
isNumeric: function(a) {
return !isNaN(parseFloat(a)) && isFinite(a)
},
type: function(a) {
return a == null ? String(a) : class2type[core_toString.call(a)] || "object"
},
isPlainObject: function(a) {
if (!a || jQueryAbd.type(a) !== "object" || a.nodeType || jQueryAbd.isWindow(a)) {
return false
}
try {
if (a.constructor && !core_hasOwn.call(a, "constructor") && !core_hasOwn.call(a.constructor.prototype, "isPrototypeOf")) {
return false
}
} catch (e) {
return false
}
var b;
for (b in a) {}
return b === q || core_hasOwn.call(a, b)
},
isEmptyObject: function(a) {
var b;
for (b in a) {
return false
}
return true
},
error: function(a) {
throw new Error(a);
},
parseHTML: function(a, b, c) {
var d;
if (!a || typeof a !== "string") {
return null
}
if (typeof b === "boolean") {
c = b;
b = 0
}
b = b || document;
if ((d = rsingleTag.exec(a))) {
return [b.createElement(d[1])]
}
d = jQueryAbd.buildFragment([a], b, c ? null : []);
return jQueryAbd.merge([], (d.cacheable ? jQueryAbd.clone(d.fragment) : d.fragment).childNodes)
},
parseJSON: function(a) {
if (!a || typeof a !== "string") {
return null
}
a = jQueryAbd.trim(a);
if (o.JSON && o.JSON.parse) {
return o.JSON.parse(a)
}
if (rvalidchars.test(a.replace(rvalidescape, "@").replace(rvalidtokens, "]").replace(rvalidbraces, ""))) {
return (new Function("return " + a))()
}
jQueryAbd.error("Invalid JSON: " + a)
},
parseXML: function(a) {
var b, tmp;
if (!a || typeof a !== "string") {
return null
}
try {
if (o.DOMParser) {
tmp = new DOMParser();
b = tmp.parseFromString(a, "text/xml")
} else {
b = new ActiveXObject("Microsoft.XMLDOM");
b.async = "false";
b.loadXML(a)
}
} catch (e) {
b = q
}
if (!b || !b.documentElement || b.getElementsByTagName("parsererror").length) {
jQueryAbd.error("Invalid XML: " + a)
}
return b
},
noop: function() {},
globalEval: function(b) {
if (b && core_rnotwhite.test(b)) {
(o.execScript ||
function(a) {
o["eval"].call(o, a)
})(b)
}
},
camelCase: function(a) {
return a.replace(rmsPrefix, "ms-").replace(rdashAlpha, fcamelCase)
},
nodeName: function(a, b) {
return a.nodeName && a.nodeName.toUpperCase() === b.toUpperCase()
},
each: function(a, b, c) {
var d, i = 0,
length = a.length,
isObj = length === q || jQueryAbd.isFunction(a);
if (c) {
if (isObj) {
for (d in a) {
if (b.apply(a[d], c) === false) {
break
}
}
} else {
for (; i < length;) {
if (b.apply(a[i++], c) === false) {
break
}
}
}
} else {
if (isObj) {
for (d in a) {
if (b.call(a[d], d, a[d]) === false) {
break
}
}
} else {
for (; i < length;) {
if (b.call(a[i], i, a[i++]) === false) {
break
}
}
}
}
return a
},
trim: core_trim && !core_trim.call("\uFEFF\xA0") ?
function(a) {
return a == null ? "" : core_trim.call(a)
} : function(a) {
return a == null ? "" : a.toString().replace(rtrim, "")
},
makeArray: function(a, b) {
var c, ret = b || [];
if (a != null) {
c = jQueryAbd.type(a);
if (a.length == null || c === "string" || c === "function" || c === "regexp" || jQueryAbd.isWindow(a)) {
core_push.call(ret, a)
} else {
jQueryAbd.merge(ret, a)
}
}
return ret
},
inArray: function(a, b, i) {
var c;
if (b) {
if (core_indexOf) {
return core_indexOf.call(b, a, i)
}
c = b.length;
i = i ? i < 0 ? Math.max(0, c + i) : i : 0;
for (; i < c; i++) {
if (i in b && b[i] === a) {
return i
}
}
}
return -1
},
merge: function(a, b) {
var l = b.length,
i = a.length,
j = 0;
if (typeof l === "number") {
for (; j < l; j++) {
a[i++] = b[j]
}
} else {
while (b[j] !== q) {
a[i++] = b[j++]
}
}
a.length = i;
return a
},
grep: function(a, b, c) {
var d, ret = [],
i = 0,
length = a.length;
c = !! c;
for (; i < length; i++) {
d = !! b(a[i], i);
if (c !== d) {
ret.push(a[i])
}
}
return ret
},
map: function(a, b, c) {
var d, key, ret = [],
i = 0,
length = a.length,
isArray = a instanceof jQueryAbd || length !== q && typeof length === "number" && ((length > 0 && a[0] && a[length - 1]) || length === 0 || jQueryAbd.isArray(a));
if (isArray) {
for (; i < length; i++) {
d = b(a[i], i, c);
if (d != null) {
ret[ret.length] = d
}
}
} else {
for (key in a) {
d = b(a[key], key, c);
if (d != null) {
ret[ret.length] = d
}
}
}
return ret.concat.apply([], ret)
},
guid: 1,
proxy: function(a, b) {
var c, args, proxy;
if (typeof b === "string") {
c = a[b];
b = a;
a = c
}
if (!jQueryAbd.isFunction(a)) {
return q
}
args = core_slice.call(arguments, 2);
proxy = function() {
return a.apply(b, args.concat(core_slice.call(arguments)))
};
proxy.guid = a.guid = a.guid || proxy.guid || jQueryAbd.guid++;
return proxy
},
access: function(d, e, f, g, h, j, k) {
var l, bulk = f == null,
i = 0,
length = d.length;
if (f && typeof f === "object") {
for (i in f) {
jQueryAbd.access(d, e, i, f[i], 1, j, g)
}
h = 1
} else if (g !== q) {
l = k === q && jQueryAbd.isFunction(g);
if (bulk) {
if (l) {
l = e;
e = function(a, b, c) {
return l.call(jQueryAbd(a), c)
}
} else {
e.call(d, g);
e = null
}
}
if (e) {
for (; i < length; i++) {
e(d[i], f, l ? g.call(d[i], i, e(d[i], f)) : g, k)
}
}
h = 1
}
return h ? d : bulk ? e.call(d) : length ? e(d[0], f) : j
},
now: function() {
return (new Date()).getTime()
}
});
jQueryAbd.ready.promise = function(a) {
if (!readyList) {
readyList = jQueryAbd.Deferred();
if (document.readyState === "complete") {
setTimeout(jQueryAbd.ready, 1)
} else if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", DOMContentLoaded, false);
o.addEventListener("load", jQueryAbd.ready, false)
} else {
document.attachEvent("onreadystatechange", DOMContentLoaded);
o.attachEvent("onload", jQueryAbd.ready);
var b = false;
try {
b = o.frameElement == null && document.documentElement
} catch (e) {}
if (b && b.doScroll) {
(function doScrollCheck() {
if (!jQueryAbd.isReady) {
try {
b.doScroll("left")
} catch (e) {
return setTimeout(doScrollCheck, 50)
}
jQueryAbd.ready()
}
})()
}
}
}
return readyList.promise(a)
};
jQueryAbd.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, a) {
class2type["[object " + a + "]"] = a.toLowerCase()
});
s = jQueryAbd(document);
var u = {};
function createOptions(b) {
var c = u[b] = {};
jQueryAbd.each(b.split(core_rspace), function(_, a) {
c[a] = true
});
return c
}
jQueryAbd.Callbacks = function(e) {
e = typeof e === "string" ? (u[e] || createOptions(e)) : jQueryAbd.extend({}, e);
var f, fired, firing, firingStart, firingLength, firingIndex, list = [],
stack = !e.once && [],
fire = function(a) {
f = e.memory && a;
fired = true;
firingIndex = firingStart || 0;
firingStart = 0;
firingLength = list.length;
firing = true;
for (; list && firingIndex < firingLength; firingIndex++) {
if (list[firingIndex].apply(a[0], a[1]) === false && e.stopOnFalse) {
f = false;
break
}
}
firing = false;
if (list) {
if (stack) {
if (stack.length) {
fire(stack.shift())
}
} else if (f) {
list = []
} else {
self.disable()
}
}
},
self = {
add: function() {
if (list) {
var d = list.length;
(function add(c) {
jQueryAbd.each(c, function(_, a) {
var b = jQueryAbd.type(a);
if (b === "function" && (!e.unique || !self.has(a))) {
list.push(a)
} else if (a && a.length && b !== "string") {
add(a)
}
})
})(arguments);
if (firing) {
firingLength = list.length
} else if (f) {
firingStart = d;
fire(f)
}
}
return this
},
remove: function() {
if (list) {
jQueryAbd.each(arguments, function(_, a) {
var b;
while ((b = jQueryAbd.inArray(a, list, b)) > -1) {
list.splice(b, 1);
if (firing) {
if (b <= firingLength) {
firingLength--
}
if (b <= firingIndex) {
firingIndex--
}
}
}
})
}
return this
},
has: function(a) {
return jQueryAbd.inArray(a, list) > -1
},
empty: function() {
list = [];
return this
},
disable: function() {
list = stack = f = q;
return this
},
disabled: function() {
return !list
},
lock: function() {
stack = q;
if (!f) {
self.disable()
}
return this
},
locked: function() {
return !stack
},
fireWith: function(a, b) {
b = b || [];
b = [a, b.slice ? b.slice() : b];
if (list && (!fired || stack)) {
if (firing) {
stack.push(b)
} else {
fire(b)
}
}
return this
},
fire: function() {
self.fireWith(this, arguments);
return this
},
fired: function() {
return !!fired
}
};
return self
};
jQueryAbd.extend({
Deferred: function(f) {
var g = [
["resolve", "done", jQueryAbd.Callbacks("once memory"), "resolved"],
["reject", "fail", jQueryAbd.Callbacks("once memory"), "rejected"],
["notify", "progress", jQueryAbd.Callbacks("memory")]
],
state = "pending",
promise = {
state: function() {
return state
},
always: function() {
deferred.done(arguments).fail(arguments);
return this
},
then: function() {
var e = arguments;
return jQueryAbd.Deferred(function(d) {
jQueryAbd.each(g, function(i, b) {
var c = b[0],
fn = e[i];
deferred[b[1]](jQueryAbd.isFunction(fn) ?
function() {
var a = fn.apply(this, arguments);
if (a && jQueryAbd.isFunction(a.promise)) {
a.promise().done(d.resolve).fail(d.reject).progress(d.notify)
} else {
d[c + "With"](this === deferred ? d : this, [a])
}
} : d[c])
});
e = null
}).promise()
},
promise: function(a) {
return typeof a === "object" ? jQueryAbd.extend(a, promise) : promise
}
},
deferred = {};
promise.pipe = promise.then;
jQueryAbd.each(g, function(i, a) {
var b = a[2],
stateString = a[3];
promise[a[1]] = b.add;
if (stateString) {
b.add(function() {
state = stateString
}, g[i ^ 1][2].disable, g[2][2].lock)
}
deferred[a[0]] = b.fire;
deferred[a[0] + "With"] = b.fireWith
});
promise.promise(deferred);
if (f) {
f.call(deferred, deferred)
}
return deferred
},
when: function(d) {
var i = 0,
resolveValues = core_slice.call(arguments),
length = resolveValues.length,
remaining = length !== 1 || (d && jQueryAbd.isFunction(d.promise)) ? length : 0,
deferred = remaining === 1 ? d : jQueryAbd.Deferred(),
updateFunc = function(i, b, c) {
return function(a) {
b[i] = this;
c[i] = arguments.length > 1 ? core_slice.call(arguments) : a;
if (c === progressValues) {
deferred.notifyWith(b, c)
} else if (!(--remaining)) {
deferred.resolveWith(b, c)
}
}
},
progressValues, progressContexts, resolveContexts;
if (length > 1) {
progressValues = new Array(length);
progressContexts = new Array(length);
resolveContexts = new Array(length);
for (; i < length; i++) {
if (resolveValues[i] && jQueryAbd.isFunction(resolveValues[i].promise)) {
resolveValues[i].promise().done(updateFunc(i, resolveContexts, resolveValues)).fail(deferred.reject).progress(updateFunc(i, progressContexts, progressValues))
} else {
--remaining
}
}
}
if (!remaining) {
deferred.resolveWith(resolveContexts, resolveValues)
}
return deferred.promise()
}
});
jQueryAbd.support = (function() {
var b, all, a, select, opt, input, fragment, eventName, i, isSupported, clickFn, div = document.createElement("div");
div.setAttribute("className", "t");
div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
all = div.getElementsByTagName("*");
a = div.getElementsByTagName("a")[0];
a.style.cssText = "top:1px;float:left;opacity:.5";
if (!all || !all.length || !a) {
return {}
}
select = document.createElement("select");
opt = select.appendChild(document.createElement("option"));
input = div.getElementsByTagName("input")[0];
b = {
leadingWhitespace: (div.firstChild.nodeType === 3),
tbody: !div.getElementsByTagName("tbody").length,
htmlSerialize: !! div.getElementsByTagName("link").length,
style: /top/.test(a.getAttribute("style")),
hrefNormalized: (a.getAttribute("href") === "/a"),
opacity: /^0.5/.test(a.style.opacity),
cssFloat: !! a.style.cssFloat,
checkOn: (input.value === "on"),
optSelected: opt.selected,
getSetAttribute: div.className !== "t",
enctype: !! document.createElement("form").enctype,
html5Clone: document.createElement("nav").cloneNode(true).outerHTML !== "<:nav></:nav>",
boxModel: (document.compatMode === "CSS1Compat"),
submitBubbles: true,
changeBubbles: true,
focusinBubbles: false,
deleteExpando: true,
noCloneEvent: true,
inlineBlockNeedsLayout: false,
shrinkWrapBlocks: false,
reliableMarginRight: true,
boxSizingReliable: true,
pixelPosition: false
};
input.checked = true;
b.noCloneChecked = input.cloneNode(true).checked;
select.disabled = true;
b.optDisabled = !opt.disabled;
try {
delete div.test
} catch (e) {
b.deleteExpando = false
}
if (!div.addEventListener && div.attachEvent && div.fireEvent) {
div.attachEvent("onclick", clickFn = function() {
b.noCloneEvent = false
});
div.cloneNode(true).fireEvent("onclick");
div.detachEvent("onclick", clickFn)
}
input = document.createElement("input");
input.value = "t";
input.setAttribute("type", "radio");
b.radioValue = input.value === "t";
input.setAttribute("checked", "checked");
input.setAttribute("name", "t");
div.appendChild(input);
fragment = document.createDocumentFragment();
fragment.appendChild(div.lastChild);
b.checkClone = fragment.cloneNode(true).cloneNode(true).lastChild.checked;
b.appendChecked = input.checked;
fragment.removeChild(input);
fragment.appendChild(div);
if (div.attachEvent) {
for (i in {
submit: true,
change: true,
focusin: true
}) {
eventName = "on" + i;
isSupported = (eventName in div);
if (!isSupported) {
div.setAttribute(eventName, "return;");
isSupported = (typeof div[eventName] === "function")
}
b[i + "Bubbles"] = isSupported
}
}
jQueryAbd(function() {
var a, div, tds, marginDiv, divReset = "padding:0;margin:0;border:0;display:block;overflow:hidden;",
body = document.getElementsByTagName("body")[0];
if (!body) {
return
}
a = document.createElement("div");
a.style.cssText = "visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";
body.insertBefore(a, body.firstChild);
div = document.createElement("div");
a.appendChild(div);
div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>";
tds = div.getElementsByTagName("td");
tds[0].style.cssText = "padding:0;margin:0;border:0;display:none";
isSupported = (tds[0].offsetHeight === 0);
tds[0].style.display = "";
tds[1].style.display = "none";
b.reliableHiddenOffsets = isSupported && (tds[0].offsetHeight === 0);
div.innerHTML = "";
div.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%;";
b.boxSizing = (div.offsetWidth === 4);
b.doesNotIncludeMarginInBodyOffset = (body.offsetTop !== 1);
if (o.getComputedStyle) {
b.pixelPosition = (o.getComputedStyle(div, null) || {}).top !== "1%";
b.boxSizingReliable = (o.getComputedStyle(div, null) || {
width: "4px"
}).width === "4px";
marginDiv = document.createElement("div");
marginDiv.style.cssText = div.style.cssText = divReset;
marginDiv.style.marginRight = marginDiv.style.width = "0";
div.style.width = "1px";
div.appendChild(marginDiv);
b.reliableMarginRight = !parseFloat((o.getComputedStyle(marginDiv, null) || {}).marginRight)
}
if (typeof div.style.zoom !== "undefined") {
div.innerHTML = "";
div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1";
b.inlineBlockNeedsLayout = (div.offsetWidth === 3);
div.style.display = "block";
div.style.overflow = "visible";
div.innerHTML = "<div></div>";
div.firstChild.style.width = "5px";
b.shrinkWrapBlocks = (div.offsetWidth !== 3);
a.style.zoom = 1
}
body.removeChild(a);
a = div = tds = marginDiv = null
});
fragment.removeChild(div);
all = a = select = opt = input = fragment = div = null;
return b
})();
var v = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/,
rmultiDash = /([A-Z])/g;
jQueryAbd.extend({
cache: {},
deletedIds: [],
uuid: 0,
expando: "jQueryAbd" + (jQueryAbd.fn.ver + Math.random()).replace(/\D/g, ""),
noData: {
"embed": true,
"object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
"applet": true
},
hasData: function(a) {
a = a.nodeType ? jQueryAbd.cache[a[jQueryAbd.expando]] : a[jQueryAbd.expando];
return !!a && !isEmptyDataObject(a)
},
data: function(a, b, c, d) {
if (!jQueryAbd.acceptData(a)) {
return
}
var e, ret, internalKey = jQueryAbd.expando,
getByName = typeof b === "string",
isNode = a.nodeType,
cache = isNode ? jQueryAbd.cache : a,
id = isNode ? a[internalKey] : a[internalKey] && internalKey;
if ((!id || !cache[id] || (!d && !cache[id].data)) && getByName && c === q) {
return
}
if (!id) {
if (isNode) {
a[internalKey] = id = jQueryAbd.deletedIds.pop() || ++jQueryAbd.uuid
} else {
id = internalKey
}
}
if (!cache[id]) {
cache[id] = {};
if (!isNode) {
cache[id].toJSON = jQueryAbd.noop
}
}
if (typeof b === "object" || typeof b === "function") {
if (d) {
cache[id] = jQueryAbd.extend(cache[id], b)
} else {
cache[id].data = jQueryAbd.extend(cache[id].data, b)
}
}
e = cache[id];
if (!d) {
if (!e.data) {
e.data = {}
}
e = e.data
}
if (c !== q) {
e[jQueryAbd.camelCase(b)] = c
}
if (getByName) {
ret = e[b];
if (ret == null) {
ret = e[jQueryAbd.camelCase(b)]
}
} else {
ret = e
}
return ret
},
removeData: function(a, b, c) {
if (!jQueryAbd.acceptData(a)) {
return
}
var d, i, l, isNode = a.nodeType,
cache = isNode ? jQueryAbd.cache : a,
id = isNode ? a[jQueryAbd.expando] : jQueryAbd.expando;
if (!cache[id]) {
return
}
if (b) {
d = c ? cache[id] : cache[id].data;
if (d) {
if (!jQueryAbd.isArray(b)) {
if (b in d) {
b = [b]
} else {
b = jQueryAbd.camelCase(b);
if (b in d) {
b = [b]
} else {
b = b.split(" ")
}
}
}
for (i = 0, l = b.length; i < l; i++) {
delete d[b[i]]
}
if (!(c ? isEmptyDataObject : jQueryAbd.isEmptyObject)(d)) {
return
}
}
}
if (!c) {
delete cache[id].data;
if (!isEmptyDataObject(cache[id])) {
return
}
}
if (isNode) {
jQueryAbd.cleanData([a], true)
} else if (jQueryAbd.support.deleteExpando || cache != cache.window) {
delete cache[id]
} else {
cache[id] = null
}
},
_data: function(a, b, c) {
return jQueryAbd.data(a, b, c, true)
},
acceptData: function(a) {
var b = a.nodeName && jQueryAbd.noData[a.nodeName.toLowerCase()];
return !b || b !== true && a.getAttribute("classid") === b
}
});
jQueryAbd.fn.extend({
data: function(c, d) {
var e, part, attr, name, l, elem = this[0],
i = 0,
data = null;
if (c === q) {
if (this.length) {
data = jQueryAbd.data(elem);
if (elem.nodeType === 1 && !jQueryAbd._data(elem, "parsedAttrs")) {
attr = elem.attributes;
for (l = attr.length; i < l; i++) {
name = attr[i].name;
if (name.indexOf("data-") === 0) {
name = jQueryAbd.camelCase(name.substring(5));
dataAttr(elem, name, data[name])
}
}
jQueryAbd._data(elem, "parsedAttrs", true)
}
}
return data
}
if (typeof c === "object") {
return this.each(function() {
jQueryAbd.data(this, c)
})
}
e = c.split(".", 2);
e[1] = e[1] ? "." + e[1] : "";
part = e[1] + "!";
return jQueryAbd.access(this, function(b) {
if (b === q) {
data = this.triggerHandler("getData" + part, [e[0]]);
if (data === q && elem) {
data = jQueryAbd.data(elem, c);
data = dataAttr(elem, c, data)
}
return data === q && e[1] ? this.data(e[0]) : data
}
e[1] = b;
this.each(function() {
var a = jQueryAbd(this);
a.triggerHandler("setData" + part, e);
jQueryAbd.data(this, c, b);
a.triggerHandler("changeData" + part, e)
})
}, null, d, arguments.length > 1, null, false)
},
removeData: function(a) {
return this.each(function() {
jQueryAbd.removeData(this, a)
})
}
});
function dataAttr(a, b, c) {
if (c === q && a.nodeType === 1) {
var d = "data-" + b.replace(rmultiDash, "-$1").toLowerCase();
c = a.getAttribute(d);
if (typeof c === "string") {
try {
c = c === "true" ? true : c === "false" ? false : c === "null" ? null : +c + "" === c ? +c : v.test(c) ? jQueryAbd.parseJSON(c) : c
} catch (e) {}
jQueryAbd.data(a, b, c)
} else {
c = q
}
}
return c
}
function isEmptyDataObject(a) {
var b;
for (b in a) {
if (b === "data" && jQueryAbd.isEmptyObject(a[b])) {
continue
}
if (b !== "toJSON") {
return false
}
}
return true
}
jQueryAbd.extend({
queue: function(a, b, c) {
var d;
if (a) {
b = (b || "fx") + "queue";
d = jQueryAbd._data(a, b);
if (c) {
if (!d || jQueryAbd.isArray(c)) {
d = jQueryAbd._data(a, b, jQueryAbd.makeArray(c))
} else {
d.push(c)
}
}
return d || []
}
},
dequeue: function(a, b) {
b = b || "fx";
var c = jQueryAbd.queue(a, b),
startLength = c.length,
fn = c.shift(),
hooks = jQueryAbd._queueHooks(a, b),
next = function() {
jQueryAbd.dequeue(a, b)
};
if (fn === "inprogress") {
fn = c.shift();
startLength--
}
if (fn) {
if (b === "fx") {
c.unshift("inprogress")
}
delete hooks.stop;
fn.call(a, next, hooks)
}
if (!startLength && hooks) {
hooks.empty.fire()
}
},
_queueHooks: function(a, b) {
var c = b + "queueHooks";
return jQueryAbd._data(a, c) || jQueryAbd._data(a, c, {
empty: jQueryAbd.Callbacks("once memory").add(function() {
jQueryAbd.removeData(a, b + "queue", true);
jQueryAbd.removeData(a, c, true)
})
})
}
});
jQueryAbd.fn.extend({
queue: function(b, c) {
var d = 2;
if (typeof b !== "string") {
c = b;
b = "fx";
d--
}
if (arguments.length < d) {
return jQueryAbd.queue(this[0], b)
}
return c === q ? this : this.each(function() {
var a = jQueryAbd.queue(this, b, c);
jQueryAbd._queueHooks(this, b);
if (b === "fx" && a[0] !== "inprogress") {
jQueryAbd.dequeue(this, b)
}
})
},
dequeue: function(a) {
return this.each(function() {
jQueryAbd.dequeue(this, a)
})
},
delay: function(d, e) {
d = jQueryAbd.fx ? jQueryAbd.fx.speeds[d] || d : d;
e = e || "fx";
return this.queue(e, function(a, b) {
var c = setTimeout(a, d);
b.stop = function() {
clearTimeout(c)
}
})
},
clearQueue: function(a) {
return this.queue(a || "fx", [])
},
promise: function(a, b) {
var c, count = 1,
defer = jQueryAbd.Deferred(),
elements = this,
i = this.length,
resolve = function() {
if (!(--count)) {
defer.resolveWith(elements, [elements])
}
};
if (typeof a !== "string") {
b = a;
a = q
}
a = a || "fx";
while (i--) {
c = jQueryAbd._data(elements[i], a + "queueHooks");
if (c && c.empty) {
count++;
c.empty.add(resolve)
}
}
resolve();
return defer.promise(b)
}
});
var w, boolHook, fixSpecified, rclass = /[\t\r\n]/g,
rreturn = /\r/g,
rtype = /^(?:button|input)$/i,
rfocusable = /^(?:button|input|object|select|textarea)$/i,
rclickable = /^a(?:rea|)$/i,
rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
getSetAttribute = jQueryAbd.support.getSetAttribute;
jQueryAbd.fn.extend({
attr: function(a, b) {
return jQueryAbd.access(this, jQueryAbd.attr, a, b, arguments.length > 1)
},
removeAttr: function(a) {
return this.each(function() {
jQueryAbd.removeAttr(this, a)
})
},
prop: function(a, b) {
return jQueryAbd.access(this, jQueryAbd.prop, a, b, arguments.length > 1)
},
removeProp: function(a) {
a = jQueryAbd.propFix[a] || a;
return this.each(function() {
try {
this[a] = q;
delete this[a]
} catch (e) {}
})
},
addClass: function(a) {
var b, i, l, elem, setClass, c, cl;
if (jQueryAbd.isFunction(a)) {
return this.each(function(j) {
jQueryAbd(this).addClass(a.call(this, j, this.className))
})
}
if (a && typeof a === "string") {
b = a.split(core_rspace);
for (i = 0, l = this.length; i < l; i++) {
elem = this[i];
if (elem.nodeType === 1) {
if (!elem.className && b.length === 1) {
elem.className = a
} else {
setClass = " " + elem.className + " ";
for (c = 0, cl = b.length; c < cl; c++) {
if (!~setClass.indexOf(" " + b[c] + " ")) {
setClass += b[c] + " "
}
}
elem.className = jQueryAbd.trim(setClass)
}
}
}
}
return this
},
removeClass: function(a) {
var b, className, elem, c, cl, i, l;
if (jQueryAbd.isFunction(a)) {
return this.each(function(j) {
jQueryAbd(this).removeClass(a.call(this, j, this.className))
})
}
if ((a && typeof a === "string") || a === q) {
b = (a || "").split(core_rspace);
for (i = 0, l = this.length; i < l; i++) {
elem = this[i];
if (elem.nodeType === 1 && elem.className) {
className = (" " + elem.className + " ").replace(rclass, " ");
for (c = 0, cl = b.length; c < cl; c++) {
while (className.indexOf(" " + b[c] + " ") > -1) {
className = className.replace(" " + b[c] + " ", " ")
}
}
elem.className = a ? jQueryAbd.trim(className) : ""
}
}
}
return this
},
toggleClass: function(b, c) {
var d = typeof b,
isBool = typeof c === "boolean";
if (jQueryAbd.isFunction(b)) {
return this.each(function(i) {
jQueryAbd(this).toggleClass(b.call(this, i, this.className, c), c)
})
}
return this.each(function() {
if (d === "string") {
var a, i = 0,
self = jQueryAbd(this),
state = c,
classNames = b.split(core_rspace);
while ((a = classNames[i++])) {
state = isBool ? state : !self.hasClass(a);
self[state ? "addClass" : "removeClass"](a)
}
} else if (d === "undefined" || d === "boolean") {
if (this.className) {
jQueryAbd._data(this, "__className__", this.className)
}
this.className = this.className || b === false ? "" : jQueryAbd._data(this, "__className__") || ""
}
})
},
hasClass: function(a) {
var b = " " + a + " ",
i = 0,
l = this.length;
for (; i < l; i++) {
if (this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf(b) > -1) {
return true
}
}
return false
},
val: function(c) {
var d, ret, isFunction, elem = this[0];
if (!arguments.length) {
if (elem) {
d = jQueryAbd.valHooks[elem.type] || jQueryAbd.valHooks[elem.nodeName.toLowerCase()];
if (d && "get" in d && (ret = d.get(elem, "value")) !== q) {
return ret
}
ret = elem.value;
return typeof ret === "string" ? ret.replace(rreturn, "") : ret == null ? "" : ret
}
return
}
isFunction = jQueryAbd.isFunction(c);
return this.each(function(i) {
var b, self = jQueryAbd(this);
if (this.nodeType !== 1) {
return
}
if (isFunction) {
b = c.call(this, i, self.val())
} else {
b = c
}
if (b == null) {
b = ""
} else if (typeof b === "number") {
b += ""
} else if (jQueryAbd.isArray(b)) {
b = jQueryAbd.map(b, function(a) {
return a == null ? "" : a + ""
})
}
d = jQueryAbd.valHooks[this.type] || jQueryAbd.valHooks[this.nodeName.toLowerCase()];
if (!d || !("set" in d) || d.set(this, b, "value") === q) {
this.value = b
}
})
}
});
jQueryAbd.extend({
valHooks: {
option: {
get: function(a) {
var b = a.attributes.value;
return !b || b.specified ? a.value : a.text
}
},
select: {
get: function(a) {
var b, i, max, option, index = a.selectedIndex,
values = [],
options = a.options,
one = a.type === "select-one";
if (index < 0) {
return null
}
i = one ? index : 0;
max = one ? index + 1 : options.length;
for (; i < max; i++) {
option = options[i];
if (option.selected && (jQueryAbd.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) && (!option.parentNode.disabled || !jQueryAbd.nodeName(option.parentNode, "optgroup"))) {
b = jQueryAbd(option).val();
if (one) {
return b
}
values.push(b)
}
}
if (one && !values.length && options.length) {
return jQueryAbd(options[index]).val()
}
return values
},
set: function(a, b) {
var c = jQueryAbd.makeArray(b);
jQueryAbd(a).find("option").each(function() {
this.selected = jQueryAbd.inArray(jQueryAbd(this).val(), c) >= 0
});
if (!c.length) {
a.selectedIndex = -1
}
return c
}
}
},
attrFn: {},
attr: function(a, b, c, d) {
var e, hooks, notxml, nType = a.nodeType;
if (!a || nType === 3 || nType === 8 || nType === 2) {
return
}
if (d && jQueryAbd.isFunction(jQueryAbd.fn[b])) {
return jQueryAbd(a)[b](c)
}
if (typeof a.getAttribute === "undefined") {
return jQueryAbd.prop(a, b, c)
}
notxml = nType !== 1 || !jQueryAbd.isXMLDoc(a);
if (notxml) {
b = b.toLowerCase();
hooks = jQueryAbd.attrHooks[b] || (rboolean.test(b) ? boolHook : w)
}
if (c !== q) {
if (c === null) {
jQueryAbd.removeAttr(a, b);
return
} else if (hooks && "set" in hooks && notxml && (e = hooks.set(a, c, b)) !== q) {
return e
} else {
a.setAttribute(b, "" + c);
return c
}
} else if (hooks && "get" in hooks && notxml && (e = hooks.get(a, b)) !== null) {
return e
} else {
e = a.getAttribute(b);
return e === null ? q : e
}
},
removeAttr: function(a, b) {
var c, attrNames, name, isBool, i = 0;
if (b && a.nodeType === 1) {
attrNames = b.split(core_rspace);
for (; i < attrNames.length; i++) {
name = attrNames[i];
if (name) {
c = jQueryAbd.propFix[name] || name;
isBool = rboolean.test(name);
if (!isBool) {
jQueryAbd.attr(a, name, "")
}
a.removeAttribute(getSetAttribute ? name : c);
if (isBool && c in a) {
a[c] = false
}
}
}
}
},
attrHooks: {
type: {
set: function(a, b) {
if (rtype.test(a.nodeName) && a.parentNode) {
jQueryAbd.error("type property can't be changed")
} else if (!jQueryAbd.support.radioValue && b === "radio" && jQueryAbd.nodeName(a, "input")) {
var c = a.value;
a.setAttribute("type", b);
if (c) {
a.value = c
}
return b
}
}
},
value: {
get: function(a, b) {
if (w && jQueryAbd.nodeName(a, "button")) {
return w.get(a, b)
}
return b in a ? a.value : null
},
set: function(a, b, c) {
if (w && jQueryAbd.nodeName(a, "button")) {
return w.set(a, b, c)
}
a.value = b
}
}
},
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(a, b, c) {
var d, hooks, notxml, nType = a.nodeType;
if (!a || nType === 3 || nType === 8 || nType === 2) {
return
}
notxml = nType !== 1 || !jQueryAbd.isXMLDoc(a);
if (notxml) {
b = jQueryAbd.propFix[b] || b;
hooks = jQueryAbd.propHooks[b]
}
if (c !== q) {
if (hooks && "set" in hooks && (d = hooks.set(a, c, b)) !== q) {
return d
} else {
return (a[b] = c)
}
} else {
if (hooks && "get" in hooks && (d = hooks.get(a, b)) !== null) {
return d
} else {
return a[b]
}
}
},
propHooks: {
tabIndex: {
get: function(a) {
var b = a.getAttributeNode("tabindex");
return b && b.specified ? parseInt(b.value, 10) : rfocusable.test(a.nodeName) || rclickable.test(a.nodeName) && a.href ? 0 : q
}
}
}
});
boolHook = {
get: function(a, b) {
var c, property = jQueryAbd.prop(a, b);
return property === true || typeof property !== "boolean" && (c = a.getAttributeNode(b)) && c.nodeValue !== false ? b.toLowerCase() : q
},
set: function(a, b, c) {
var d;
if (b === false) {
jQueryAbd.removeAttr(a, c)
} else {
d = jQueryAbd.propFix[c] || c;
if (d in a) {
a[d] = true
}
a.setAttribute(c, c.toLowerCase())
}
return c
}
};
if (!getSetAttribute) {
fixSpecified = {
name: true,
id: true,
coords: true
};
w = jQueryAbd.valHooks.button = {
get: function(a, b) {
var c;
c = a.getAttributeNode(b);
return c && (fixSpecified[b] ? c.value !== "" : c.specified) ? c.value : q
},
set: function(a, b, c) {
var d = a.getAttributeNode(c);
if (!d) {
d = document.createAttribute(c);
a.setAttributeNode(d)
}
return (d.value = b + "")
}
};
jQueryAbd.each(["width", "height"], function(i, c) {
jQueryAbd.attrHooks[c] = jQueryAbd.extend(jQueryAbd.attrHooks[c], {
set: function(a, b) {
if (b === "") {
a.setAttribute(c, "auto");
return b
}
}
})
});
jQueryAbd.attrHooks.contenteditable = {
get: w.get,
set: function(a, b, c) {
if (b === "") {
b = "false"
}
w.set(a, b, c)
}
}
}
if (!jQueryAbd.support.hrefNormalized) {
jQueryAbd.each(["href", "src", "width", "height"], function(i, c) {
jQueryAbd.attrHooks[c] = jQueryAbd.extend(jQueryAbd.attrHooks[c], {
get: function(a) {
var b = a.getAttribute(c, 2);
return b === null ? q : b
}
})
})
}
if (!jQueryAbd.support.style) {
jQueryAbd.attrHooks.style = {
get: function(a) {
return a.style.cssText.toLowerCase() || q
},
set: function(a, b) {
return (a.style.cssText = "" + b)
}
}
}
if (!jQueryAbd.support.optSelected) {
jQueryAbd.propHooks.selected = jQueryAbd.extend(jQueryAbd.propHooks.selected, {
get: function(a) {
var b = a.parentNode;
if (b) {
b.selectedIndex;
if (b.parentNode) {
b.parentNode.selectedIndex
}
}
return null
}
})
}
if (!jQueryAbd.support.enctype) {
jQueryAbd.propFix.enctype = "encoding"
}
if (!jQueryAbd.support.checkOn) {
jQueryAbd.each(["radio", "checkbox"], function() {
jQueryAbd.valHooks[this] = {
get: function(a) {
return a.getAttribute("value") === null ? "on" : a.value
}
}
})
}
jQueryAbd.each(["radio", "checkbox"], function() {
jQueryAbd.valHooks[this] = jQueryAbd.extend(jQueryAbd.valHooks[this], {
set: function(a, b) {
if (jQueryAbd.isArray(b)) {
return (a.checked = jQueryAbd.inArray(jQueryAbd(a).val(), b) >= 0)
}
}
})
});
var x = /^(?:textarea|input|select)$/i,
rtypenamespace = /^([^\.]*|)(?:\.(.+)|)$/,
rhoverHack = /(?:^|\s)hover(\.\S+|)\b/,
rkeyEvent = /^key/,
rmouseEvent = /^(?:mouse|contextmenu)|click/,
rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
hoverHack = function(a) {
return jQueryAbd.event.special.hover ? a : a.replace(rhoverHack, "mouseenter$1 mouseleave$1")
};
jQueryAbd.event = {
add: function(a, b, c, d, f) {
var g, eventHandle, events, t, tns, type, namespaces, handleObj, handleObjIn, handlers, special;
if (a.nodeType === 3 || a.nodeType === 8 || !b || !c || !(g = jQueryAbd._data(a))) {
return
}
if (c.handler) {
handleObjIn = c;
c = handleObjIn.handler;
f = handleObjIn.selector
}
if (!c.guid) {
c.guid = jQueryAbd.guid++
}
events = g.events;
if (!events) {
g.events = events = {}
}
eventHandle = g.handle;
if (!eventHandle) {
g.handle = eventHandle = function(e) {
return typeof jQueryAbd !== "undefined" && (!e || jQueryAbd.event.triggered !== e.type) ? jQueryAbd.event.dispatch.apply(eventHandle.elem, arguments) : q
};
eventHandle.elem = a
}
b = jQueryAbd.trim(hoverHack(b)).split(" ");
for (t = 0; t < b.length; t++) {
tns = rtypenamespace.exec(b[t]) || [];
type = tns[1];
namespaces = (tns[2] || "").split(".").sort();
special = jQueryAbd.event.special[type] || {};
type = (f ? special.delegateType : special.bindType) || type;
special = jQueryAbd.event.special[type] || {};
handleObj = jQueryAbd.extend({
type: type,
origType: tns[1],
data: d,
handler: c,
guid: c.guid,
selector: f,
namespace: namespaces.join(".")
}, handleObjIn);
handlers = events[type];
if (!handlers) {
handlers = events[type] = [];
handlers.delegateCount = 0;
if (!special.setup || special.setup.call(a, d, namespaces, eventHandle) === false) {
if (a.addEventListener) {
a.addEventListener(type, eventHandle, false)
} else if (a.attachEvent) {
a.attachEvent("on" + type, eventHandle)
}
}
}
if (special.add) {
special.add.call(a, handleObj);
if (!handleObj.handler.guid) {
handleObj.handler.guid = c.guid
}
}
if (f) {
handlers.splice(handlers.delegateCount++, 0, handleObj)
} else {
handlers.push(handleObj)
}
jQueryAbd.event.global[type] = true
}
a = null
},
global: {},
remove: function(a, b, c, d, e) {
var t, tns, type, origType, namespaces, origCount, j, events, special, eventType, handleObj, elemData = jQueryAbd.hasData(a) && jQueryAbd._data(a);
if (!elemData || !(events = elemData.events)) {
return
}
b = jQueryAbd.trim(hoverHack(b || "")).split(" ");
for (t = 0; t < b.length; t++) {
tns = rtypenamespace.exec(b[t]) || [];
type = origType = tns[1];
namespaces = tns[2];
if (!type) {
for (type in events) {
jQueryAbd.event.remove(a, type + b[t], c, d, true)
}
continue
}
special = jQueryAbd.event.special[type] || {};
type = (d ? special.delegateType : special.bindType) || type;
eventType = events[type] || [];
origCount = eventType.length;
namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.|)") + "(\\.|$)") : null;
for (j = 0; j < eventType.length; j++) {
handleObj = eventType[j];
if ((e || origType === handleObj.origType) && (!c || c.guid === handleObj.guid) && (!namespaces || namespaces.test(handleObj.namespace)) && (!d || d === handleObj.selector || d === "**" && handleObj.selector)) {
eventType.splice(j--, 1);
if (handleObj.selector) {
eventType.delegateCount--
}
if (special.remove) {
special.remove.call(a, handleObj)
}
}
}
if (eventType.length === 0 && origCount !== eventType.length) {
if (!special.teardown || special.teardown.call(a, namespaces, elemData.handle) === false) {
jQueryAbd.removeEvent(a, type, elemData.handle)
}
delete events[type]
}
}
if (jQueryAbd.isEmptyObject(events)) {
delete elemData.handle;
jQueryAbd.removeData(a, "events", true)
}
},
customEvent: {
"getData": true,
"setData": true,
"changeData": true
},
trigger: function(a, b, c, d) {
if (c && (c.nodeType === 3 || c.nodeType === 8)) {
return
}
var e, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType, type = a.type || a,
namespaces = [];
if (rfocusMorph.test(type + jQueryAbd.event.triggered)) {
return
}
if (type.indexOf("!") >= 0) {
type = type.slice(0, -1);
exclusive = true
}
if (type.indexOf(".") >= 0) {
namespaces = type.split(".");
type = namespaces.shift();
namespaces.sort()
}
if ((!c || jQueryAbd.event.customEvent[type]) && !jQueryAbd.event.global[type]) {
return
}
a = typeof a === "object" ? a[jQueryAbd.expando] ? a : new jQueryAbd.Event(type, a) : new jQueryAbd.Event(type);
a.type = type;
a.isTrigger = true;
a.exclusive = exclusive;
a.namespace = namespaces.join(".");
a.namespace_re = a.namespace ? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)") : null;
ontype = type.indexOf(":") < 0 ? "on" + type : "";
if (!c) {
e = jQueryAbd.cache;
for (i in e) {
if (e[i].events && e[i].events[type]) {
jQueryAbd.event.trigger(a, b, e[i].handle.elem, true)
}
}
return
}
a.result = q;
if (!a.target) {
a.target = c
}
b = b != null ? jQueryAbd.makeArray(b) : [];
b.unshift(a);
special = jQueryAbd.event.special[type] || {};
if (special.trigger && special.trigger.apply(c, b) === false) {
return
}
eventPath = [
[c, special.bindType || type]
];
if (!d && !special.noBubble && !jQueryAbd.isWindow(c)) {
bubbleType = special.delegateType || type;
cur = rfocusMorph.test(bubbleType + type) ? c : c.parentNode;
for (old = c; cur; cur = cur.parentNode) {
eventPath.push([cur, bubbleType]);
old = cur
}
if (old === (c.ownerDocument || document)) {
eventPath.push([old.defaultView || old.parentWindow || o, bubbleType])
}
}
for (i = 0; i < eventPath.length && !a.isPropagationStopped(); i++) {
cur = eventPath[i][0];
a.type = eventPath[i][1];
handle = (jQueryAbd._data(cur, "events") || {})[a.type] && jQueryAbd._data(cur, "handle");
if (handle) {
handle.apply(cur, b)
}
handle = ontype && cur[ontype];
if (handle && jQueryAbd.acceptData(cur) && handle.apply(cur, b) === false) {
a.preventDefault()
}
}
a.type = type;
if (!d && !a.isDefaultPrevented()) {
if ((!special._default || special._default.apply(c.ownerDocument, b) === false) && !(type === "click" && jQueryAbd.nodeName(c, "a")) && jQueryAbd.acceptData(c)) {
if (ontype && c[type] && ((type !== "focus" && type !== "blur") || a.target.offsetWidth !== 0) && !jQueryAbd.isWindow(c)) {
old = c[ontype];
if (old) {
c[ontype] = null
}
jQueryAbd.event.triggered = type;
c[type]();
jQueryAbd.event.triggered = q;
if (old) {
c[ontype] = old
}
}
}
}
return a.result
},
dispatch: function(a) {
a = jQueryAbd.event.fix(a || o.event);
var i, j, cur, ret, selMatch, matched, matches, handleObj, sel, related, handlers = ((jQueryAbd._data(this, "events") || {})[a.type] || []),
delegateCount = handlers.delegateCount,
args = [].slice.call(arguments),
run_all = !a.exclusive && !a.namespace,
special = jQueryAbd.event.special[a.type] || {},
handlerQueue = [];
args[0] = a;
a.delegateTarget = this;
if (special.preDispatch && special.preDispatch.call(this, a) === false) {
return
}
if (delegateCount && !(a.button && a.type === "click")) {
for (cur = a.target; cur != this; cur = cur.parentNode || this) {
if (cur.disabled !== true || a.type !== "click") {
selMatch = {};
matches = [];
for (i = 0; i < delegateCount; i++) {
handleObj = handlers[i];
sel = handleObj.selector;
if (selMatch[sel] === q) {
selMatch[sel] = jQueryAbd(sel, this).index(cur) >= 0
}
if (selMatch[sel]) {
matches.push(handleObj)
}
}
if (matches.length) {
handlerQueue.push({
elem: cur,
matches: matches
})
}
}
}
}
if (handlers.length > delegateCount) {
handlerQueue.push({
elem: this,
matches: handlers.slice(delegateCount)
})
}
for (i = 0; i < handlerQueue.length && !a.isPropagationStopped(); i++) {
matched = handlerQueue[i];
a.currentTarget = matched.elem;
for (j = 0; j < matched.matches.length && !a.isImmediatePropagationStopped(); j++) {
handleObj = matched.matches[j];
if (run_all || (!a.namespace && !handleObj.namespace) || a.namespace_re && a.namespace_re.test(handleObj.namespace)) {
a.data = handleObj.data;
a.handleObj = handleObj;
ret = ((jQueryAbd.event.special[handleObj.origType] || {}).handle || handleObj.handler).apply(matched.elem, args);
if (ret !== q) {
a.result = ret;
if (ret === false) {
a.preventDefault();
a.stopPropagation()
}
}
}
}
}
if (special.postDispatch) {
special.postDispatch.call(this, a)
}
return a.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".split(" "),
filter: function(a, b) {
if (a.which == null) {
a.which = b.charCode != null ? b.charCode : b.keyCode
}
return a
}
},
mouseHooks: {
props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
filter: function(a, b) {
var c, doc, body, button = b.button,
fromElement = b.fromElement;
if (a.pageX == null && b.clientX != null) {
c = a.target.ownerDocument || document;
doc = c.documentElement;
body = c.body;
a.pageX = b.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
a.pageY = b.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0)
}
if (!a.relatedTarget && fromElement) {
a.relatedTarget = fromElement === a.target ? b.toElement : fromElement
}
if (!a.which && button !== q) {
a.which = (button & 1 ? 1 : (button & 2 ? 3 : (button & 4 ? 2 : 0)))
}
return a
}
},
fix: function(a) {
if (a[jQueryAbd.expando]) {
return a
}
var i, prop, originalEvent = a,
fixHook = jQueryAbd.event.fixHooks[a.type] || {},
copy = fixHook.props ? this.props.concat(fixHook.props) : this.props;
a = jQueryAbd.Event(originalEvent);
for (i = copy.length; i;) {
prop = copy[--i];
a[prop] = originalEvent[prop]
}
if (!a.target) {
a.target = originalEvent.srcElement || document
}
if (a.target.nodeType === 3) {
a.target = a.target.parentNode
}
a.metaKey = !! a.metaKey;
return fixHook.filter ? fixHook.filter(a, originalEvent) : a
},
special: {
load: {
noBubble: true
},
focus: {
delegateType: "focusin"
},
blur: {
delegateType: "focusout"
},
beforeunload: {
setup: function(a, b, c) {
if (jQueryAbd.isWindow(this)) {
this.onbeforeunload = c
}
},
teardown: function(a, b) {
if (this.onbeforeunload === b) {
this.onbeforeunload = null
}
}
}
},
simulate: function(a, b, c, d) {
var e = jQueryAbd.extend(new jQueryAbd.Event(), c, {
type: a,
isSimulated: true,
originalEvent: {}
});
if (d) {
jQueryAbd.event.trigger(e, null, b)
} else {
jQueryAbd.event.dispatch.call(b, e)
}
if (e.isDefaultPrevented()) {
c.preventDefault()
}
}
};
jQueryAbd.event.handle = jQueryAbd.event.dispatch;
jQueryAbd.removeEvent = document.removeEventListener ?
function(a, b, c) {
if (a.removeEventListener) {
a.removeEventListener(b, c, false)
}
} : function(a, b, c) {
var d = "on" + b;
if (a.detachEvent) {
if (typeof a[d] === "undefined") {
a[d] = null
}
a.detachEvent(d, c)
}
};
jQueryAbd.Event = function(a, b) {
if (!(this instanceof jQueryAbd.Event)) {
return new jQueryAbd.Event(a, b)
}
if (a && a.type) {
this.originalEvent = a;
this.type = a.type;
this.isDefaultPrevented = (a.defaultPrevented || a.returnValue === false || a.getPreventDefault && a.getPreventDefault()) ? returnTrue : returnFalse
} else {
this.type = a
}
if (b) {
jQueryAbd.extend(this, b)
}
this.timeStamp = a && a.timeStamp || jQueryAbd.now();
this[jQueryAbd.expando] = true
};
function returnFalse() {
return false
}
function returnTrue() {
return true
}
jQueryAbd.Event.prototype = {
preventDefault: function() {
this.isDefaultPrevented = returnTrue;
var e = this.originalEvent;
if (!e) {
return
}
if (e.preventDefault) {
e.preventDefault()
} else {
e.returnValue = false
}
},
stopPropagation: function() {
this.isPropagationStopped = returnTrue;
var e = this.originalEvent;
if (!e) {
return
}
if (e.stopPropagation) {
e.stopPropagation()
}
e.cancelBubble = true
},
stopImmediatePropagation: function() {
this.isImmediatePropagationStopped = returnTrue;
this.stopPropagation()
},
isDefaultPrevented: returnFalse,
isPropagationStopped: returnFalse,
isImmediatePropagationStopped: returnFalse
};
jQueryAbd.each({
mouseenter: "mouseover",
mouseleave: "mouseout"
}, function(c, d) {
jQueryAbd.event.special[c] = {
delegateType: d,
bindType: d,
handle: function(a) {
var b, target = this,
related = a.relatedTarget,
handleObj = a.handleObj,
selector = handleObj.selector;
if (!related || (related !== target && !jQueryAbd.contains(target, related))) {
a.type = handleObj.origType;
b = handleObj.handler.apply(this, arguments);
a.type = d
}
return b
}
}
});
if (!jQueryAbd.support.submitBubbles) {
jQueryAbd.event.special.submit = {
setup: function() {
if (jQueryAbd.nodeName(this, "form")) {
return false
}
jQueryAbd.event.add(this, "click._submit keypress._submit", function(e) {
var b = e.target,
form = jQueryAbd.nodeName(b, "input") || jQueryAbd.nodeName(b, "button") ? b.form : q;
if (form && !jQueryAbd._data(form, "_submit_attached")) {
jQueryAbd.event.add(form, "submit._submit", function(a) {
a._submit_bubble = true
});
jQueryAbd._data(form, "_submit_attached", true)
}
})
},
postDispatch: function(a) {
if (a._submit_bubble) {
delete a._submit_bubble;
if (this.parentNode && !a.isTrigger) {
jQueryAbd.event.simulate("submit", this.parentNode, a, true)
}
}
},
teardown: function() {
if (jQueryAbd.nodeName(this, "form")) {
return false
}
jQueryAbd.event.remove(this, "._submit")
}
}
}
if (!jQueryAbd.support.changeBubbles) {
jQueryAbd.event.special.change = {
setup: function() {
if (x.test(this.nodeName)) {
if (this.type === "checkbox" || this.type === "radio") {
jQueryAbd.event.add(this, "propertychange._change", function(a) {
if (a.originalEvent.propertyName === "checked") {
this._just_changed = true
}
});
jQueryAbd.event.add(this, "click._change", function(a) {
if (this._just_changed && !a.isTrigger) {
this._just_changed = false
}
jQueryAbd.event.simulate("change", this, a, true)
})
}
return false
}
jQueryAbd.event.add(this, "beforeactivate._change", function(e) {
var b = e.target;
if (x.test(b.nodeName) && !jQueryAbd._data(b, "_change_attached")) {
jQueryAbd.event.add(b, "change._change", function(a) {
if (this.parentNode && !a.isSimulated && !a.isTrigger) {
jQueryAbd.event.simulate("change", this.parentNode, a, true)
}
});
jQueryAbd._data(b, "_change_attached", true)
}
})
},
handle: function(a) {
var b = a.target;
if (this !== b || a.isSimulated || a.isTrigger || (b.type !== "radio" && b.type !== "checkbox")) {
return a.handleObj.handler.apply(this, arguments)
}
},
teardown: function() {
jQueryAbd.event.remove(this, "._change");
return !x.test(this.nodeName)
}
}
}
if (!jQueryAbd.support.focusinBubbles) {
jQueryAbd.each({
focus: "focusin",
blur: "focusout"
}, function(b, c) {
var d = 0,
handler = function(a) {
jQueryAbd.event.simulate(c, a.target, jQueryAbd.event.fix(a), true)
};
jQueryAbd.event.special[c] = {
setup: function() {
if (d++ === 0) {
document.addEventListener(b, handler, true)
}
},
teardown: function() {
if (--d === 0) {
document.removeEventListener(b, handler, true)
}
}
}
})
}
jQueryAbd.fn.extend({
on: function(b, c, d, e, f) {
var g, type;
if (typeof b === "object") {
if (typeof c !== "string") {
d = d || c;
c = q
}
for (type in b) {
this.on(type, c, d, b[type], f)
}
return this
}
if (d == null && e == null) {
e = c;
d = c = q
} else if (e == null) {
if (typeof c === "string") {
e = d;
d = q
} else {
e = d;
d = c;
c = q
}
}
if (e === false) {
e = returnFalse
} else if (!e) {
return this
}
if (f === 1) {
g = e;
e = function(a) {
jQueryAbd().off(a);
return g.apply(this, arguments)
};
e.guid = g.guid || (g.guid = jQueryAbd.guid++)
}
return this.each(function() {
jQueryAbd.event.add(this, b, e, d, c)
})
},
one: function(a, b, c, d) {
return this.on(a, b, c, d, 1)
},
off: function(a, b, c) {
var d, type;
if (a && a.preventDefault && a.handleObj) {
d = a.handleObj;
jQueryAbd(a.delegateTarget).off(d.namespace ? d.origType + "." + d.namespace : d.origType, d.selector, d.handler);
return this
}
if (typeof a === "object") {
for (type in a) {
this.off(type, b, a[type])
}
return this
}
if (b === false || typeof b === "function") {
c = b;
b = q
}
if (c === false) {
c = returnFalse
}
return this.each(function() {
jQueryAbd.event.remove(this, a, c, b)
})
},
bind: function(a, b, c) {
return this.on(a, null, b, c)
},
unbind: function(a, b) {
return this.off(a, null, b)
},
live: function(a, b, c) {
jQueryAbd(this.context).on(a, this.selector, b, c);
return this
},
die: function(a, b) {
jQueryAbd(this.context).off(a, this.selector || "**", b);
return this
},
delegate: function(a, b, c, d) {
return this.on(b, a, c, d)
},
undelegate: function(a, b, c) {
return arguments.length == 1 ? this.off(a, "**") : this.off(b, a || "**", c)
},
trigger: function(a, b) {
return this.each(function() {
jQueryAbd.event.trigger(a, b, this)
})
},
triggerHandler: function(a, b) {
if (this[0]) {
return jQueryAbd.event.trigger(a, b, this[0], true)
}
},
toggle: function(c) {
var d = arguments,
guid = c.guid || jQueryAbd.guid++,
i = 0,
toggler = function(a) {
var b = (jQueryAbd._data(this, "lastToggle" + c.guid) || 0) % i;
jQueryAbd._data(this, "lastToggle" + c.guid, b + 1);
a.preventDefault();
return d[b].apply(this, arguments) || false
};
toggler.guid = guid;
while (i < d.length) {
d[i++].guid = guid
}
return this.click(toggler)
},
hover: function(a, b) {
return this.mouseenter(a).mouseleave(b || a)
}
});
jQueryAbd.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(i, c) {
jQueryAbd.fn[c] = function(a, b) {
if (b == null) {
b = a;
a = null
}
return arguments.length > 0 ? this.on(c, null, a, b) : this.trigger(c)
};
if (rkeyEvent.test(c)) {
jQueryAbd.event.fixHooks[c] = jQueryAbd.event.keyHooks
}
if (rmouseEvent.test(c)) {
jQueryAbd.event.fixHooks[c] = jQueryAbd.event.mouseHooks
}
});
(function(h, k) {
var l, cachedruns, assertGetIdNotName, Expr, getText, isXML, contains, compile, sortOrder, hasDuplicate, baseHasDuplicate = true,
strundefined = "undefined",
expando = ("sizcache" + Math.random()).replace(".", ""),
document = h.document,
docElem = document.documentElement,
done = 0,
slice = [].slice,
push = [].push,
markFunction = function(a, b) {
a[expando] = b || true;
return a
},
createCache = function() {
var c = {},
keys = [];
return markFunction(function(a, b) {
if (keys.push(a) > Expr.cacheLength) {
delete c[keys.shift()]
}
return (c[a] = b)
}, c)
},
classCache = createCache(),
tokenCache = createCache(),
compilerCache = createCache(),
whitespace = "[\\x20\\t\\r\\n\\f]",
characterEncoding = "(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",
identifier = characterEncoding.replace("w", "w#"),
operators = "([*^$|!~]?=)",
attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + "*(?:" + operators + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]",
pseudos = ":(" + characterEncoding + ")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:" + attributes + ")|[^:]|\\\\.)*|.*))\\)|)",
pos = ":(nth|eq|gt|lt|first|last|even|odd)(?:\\(((?:-\\d)?\\d*)\\)|)(?=[^-]|$)",
rtrim = new RegExp("^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g"),
rcomma = new RegExp("^" + whitespace + "*," + whitespace + "*"),
rcombinators = new RegExp("^" + whitespace + "*([\\x20\\t\\r\\n\\f>+~])" + whitespace + "*"),
rpseudo = new RegExp(pseudos),
rquickExpr = /^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,
rnot = /^:not/,
rsibling = /[\x20\t\r\n\f]*[+~]/,
rendsWithNot = /:not\($/,
rheader = /h\d/i,
rinputs = /input|select|textarea|button/i,
rbackslash = /\\(?!\\)/g,
matchExpr = {
"ID": new RegExp("^#(" + characterEncoding + ")"),
"CLASS": new RegExp("^\\.(" + characterEncoding + ")"),
"NAME": new RegExp("^\\[name=['\"]?(" + characterEncoding + ")['\"]?\\]"),
"TAG": new RegExp("^(" + characterEncoding.replace("w", "w*") + ")"),
"ATTR": new RegExp("^" + attributes),
"PSEUDO": new RegExp("^" + pseudos),
"CHILD": new RegExp("^:(only|nth|last|first)-child(?:\\(" + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i"),
"POS": new RegExp(pos, "ig"),
"needsContext": new RegExp("^" + whitespace + "*[>+~]|" + pos, "i")
},
assert = function(a) {
var b = document.createElement("div");
try {
return a(b)
} catch (e) {
return false
} finally {
b = null
}
},
assertTagNameNoComments = assert(function(a) {
a.appendChild(document.createComment(""));
return !a.getElementsByTagName("*").length
}),
assertHrefNotNormalized = assert(function(a) {
a.innerHTML = "<a href='#'></a>";
return a.firstChild && typeof a.firstChild.getAttribute !== strundefined && a.firstChild.getAttribute("href") === "#"
}),
assertAttributes = assert(function(a) {
a.innerHTML = "<select></select>";
var b = typeof a.lastChild.getAttribute("multiple");
return b !== "boolean" && b !== "string"
}),
assertUsableClassName = assert(function(a) {
a.innerHTML = "<div class='hidden e'></div><div class='hidden'></div>";
if (!a.getElementsByClassName || !a.getElementsByClassName("e").length) {
return false
}
a.lastChild.className = "e";
return a.getElementsByClassName("e").length === 2
}),
assertUsableName = assert(function(a) {
a.id = expando + 0;
a.innerHTML = "<a name='" + expando + "'></a><div name='" + expando + "'></div>";
docElem.insertBefore(a, docElem.firstChild);
var b = document.getElementsByName && document.getElementsByName(expando).length === 2 + document.getElementsByName(expando + 0).length;
assertGetIdNotName = !document.getElementById(expando);
docElem.removeChild(a);
return b
});
try {
slice.call(docElem.childNodes, 0)[0].nodeType
} catch (e) {
slice = function(i) {
var a, results = [];
for (;
(a = this[i]); i++) {
results.push(a)
}
return results
}
}
function Sizzle(a, b, c, d) {
c = c || [];
b = b || document;
var e, elem, xml, m, nodeType = b.nodeType;
if (nodeType !== 1 && nodeType !== 9) {
return []
}
if (!a || typeof a !== "string") {
return c
}
xml = isXML(b);
if (!xml && !d) {
if ((e = rquickExpr.exec(a))) {
if ((m = e[1])) {
if (nodeType === 9) {
elem = b.getElementById(m);
if (elem && elem.parentNode) {
if (elem.id === m) {
c.push(elem);
return c
}
} else {
return c
}
} else {
if (b.ownerDocument && (elem = b.ownerDocument.getElementById(m)) && contains(b, elem) && elem.id === m) {
c.push(elem);
return c
}
}
} else if (e[2]) {
push.apply(c, slice.call(b.getElementsByTagName(a), 0));
return c
} else if ((m = e[3]) && assertUsableClassName && b.getElementsByClassName) {
push.apply(c, slice.call(b.getElementsByClassName(m), 0));
return c
}
}
}
return select(a, b, c, d, xml)
}
Sizzle.matches = function(a, b) {
return Sizzle(a, null, null, b)
};
Sizzle.matchesSelector = function(a, b) {
return Sizzle(b, null, null, [a]).length > 0
};
function createInputPseudo(c) {
return function(a) {
var b = a.nodeName.toLowerCase();
return b === "input" && a.type === c
}
}
function createButtonPseudo(c) {
return function(a) {
var b = a.nodeName.toLowerCase();
return (b === "input" || b === "button") && a.type === c
}
}
getText = Sizzle.getText = function(a) {
var b, ret = "",
i = 0,
nodeType = a.nodeType;
if (nodeType) {
if (nodeType === 1 || nodeType === 9 || nodeType === 11) {
if (typeof a.textContent === "string") {
return a.textContent
} else {
for (a = a.firstChild; a; a = a.nextSibling) {
ret += getText(a)
}
}
} else if (nodeType === 3 || nodeType === 4) {
return a.nodeValue
}
} else {
for (;
(b = a[i]); i++) {
ret += getText(b)
}
}
return ret
};
isXML = Sizzle.isXML = function isXML(a) {
var b = a && (a.ownerDocument || a).documentElement;
return b ? b.nodeName !== "HTML" : false
};
contains = Sizzle.contains = docElem.contains ?
function(a, b) {
var c = a.nodeType === 9 ? a.documentElement : a,
bup = b && b.parentNode;
return a === bup || !! (bup && bup.nodeType === 1 && c.contains && c.contains(bup))
} : docElem.compareDocumentPosition ?
function(a, b) {
return b && !! (a.compareDocumentPosition(b) & 16)
} : function(a, b) {
while ((b = b.parentNode)) {
if (b === a) {
return true
}
}
return false
};
Sizzle.attr = function(a, b) {
var c, xml = isXML(a);
if (!xml) {
b = b.toLowerCase()
}
if (Expr.attrHandle[b]) {
return Expr.attrHandle[b](a)
}
if (assertAttributes || xml) {
return a.getAttribute(b)
}
c = a.getAttributeNode(b);
return c ? typeof a[b] === "boolean" ? a[b] ? b : null : c.specified ? c.value : null : null
};
Expr = Sizzle.selectors = {
cacheLength: 50,
createPseudo: markFunction,
match: matchExpr,
order: new RegExp("ID|TAG" + (assertUsableName ? "|NAME" : "") + (assertUsableClassName ? "|CLASS" : "")),
attrHandle: assertHrefNotNormalized ? {} : {
"href": function(a) {
return a.getAttribute("href", 2)
},
"type": function(a) {
return a.getAttribute("type")
}
},
find: {
"ID": assertGetIdNotName ?
function(a, b, c) {
if (typeof b.getElementById !== strundefined && !c) {
var m = b.getElementById(a);
return m && m.parentNode ? [m] : []
}
} : function(a, b, c) {
if (typeof b.getElementById !== strundefined && !c) {
var m = b.getElementById(a);
return m ? m.id === a || typeof m.getAttributeNode !== strundefined && m.getAttributeNode("id").value === a ? [m] : k : []
}
},
"TAG": assertTagNameNoComments ?
function(a, b) {
if (typeof b.getElementsByTagName !== strundefined) {
return b.getElementsByTagName(a)
}
} : function(a, b) {
var c = b.getElementsByTagName(a);
if (a === "*") {
var d, tmp = [],
i = 0;
for (;
(d = c[i]); i++) {
if (d.nodeType === 1) {
tmp.push(d)
}
}
return tmp
}
return c
},
"NAME": function(a, b) {
if (typeof b.getElementsByName !== strundefined) {
return b.getElementsByName(name)
}
},
"CLASS": function(a, b, c) {
if (typeof b.getElementsByClassName !== strundefined && !c) {
return b.getElementsByClassName(a)
}
}
},
relative: {
">": {
dir: "parentNode",
first: true
},
" ": {
dir: "parentNode"
},
"+": {
dir: "previousSibling",
first: true
},
"~": {
dir: "previousSibling"
}
},
preFilter: {
"ATTR": function(a) {
a[1] = a[1].replace(rbackslash, "");
a[3] = (a[4] || a[5] || "").replace(rbackslash, "");
if (a[2] === "~=") {
a[3] = " " + a[3] + " "
}
return a.slice(0, 4)
},
"CHILD": function(a) {
a[1] = a[1].toLowerCase();
if (a[1] === "nth") {
if (!a[2]) {
Sizzle.error(a[0])
}
a[3] = +(a[3] ? a[4] + (a[5] || 1) : 2 * (a[2] === "even" || a[2] === "odd"));
a[4] = +((a[6] + a[7]) || a[2] === "odd")
} else if (a[2]) {
Sizzle.error(a[0])
}
return a
},
"PSEUDO": function(a, b, c) {
var d, excess;
if (matchExpr["CHILD"].test(a[0])) {
return null
}
if (a[3]) {
a[2] = a[3]
} else if ((d = a[4])) {
if (rpseudo.test(d) && (excess = tokenize(d, b, c, true)) && (excess = d.indexOf(")", d.length - excess) - d.length)) {
d = d.slice(0, excess);
a[0] = a[0].slice(0, excess)
}
a[2] = d
}
return a.slice(0, 3)
}
},
filter: {
"ID": assertGetIdNotName ?
function(b) {
b = b.replace(rbackslash, "");
return function(a) {
return a.getAttribute("id") === b
}
} : function(c) {
c = c.replace(rbackslash, "");
return function(a) {
var b = typeof a.getAttributeNode !== strundefined && a.getAttributeNode("id");
return b && b.value === c
}
},
"TAG": function(b) {
if (b === "*") {
return function() {
return true
}
}
b = b.replace(rbackslash, "").toLowerCase();
return function(a) {
return a.nodeName && a.nodeName.toLowerCase() === b
}
},
"CLASS": function(b) {
var c = classCache[expando][b];
if (!c) {
c = classCache(b, new RegExp("(^|" + whitespace + ")" + b + "(" + whitespace + "|$)"))
}
return function(a) {
return c.test(a.className || (typeof a.getAttribute !== strundefined && a.getAttribute("class")) || "")
}
},
"ATTR": function(c, d, e) {
if (!d) {
return function(a) {
return Sizzle.attr(a, c) != null
}
}
return function(a) {
var b = Sizzle.attr(a, c),
value = b + "";
if (b == null) {
return d === "!="
}
switch (d) {
case "=":
return value === e;
case "!=":
return value !== e;
case "^=":
return e && value.indexOf(e) === 0;
case "*=":
return e && value.indexOf(e) > -1;
case "$=":
return e && value.substr(value.length - e.length) === e;
case "~=":
return (" " + value + " ").indexOf(e) > -1;
case "|=":
return value === e || value.substr(0, e.length + 1) === e + "-"
}
}
},
"CHILD": function(c, d, e, f) {
if (c === "nth") {
var g = done++;
return function(a) {
var b, diff, count = 0,
node = a;
if (e === 1 && f === 0) {
return true
}
b = a.parentNode;
if (b && (b[expando] !== g || !a.sizset)) {
for (node = b.firstChild; node; node = node.nextSibling) {
if (node.nodeType === 1) {
node.sizset = ++count;
if (node === a) {
break
}
}
}
b[expando] = g
}
diff = a.sizset - f;
if (e === 0) {
return diff === 0
} else {
return (diff % e === 0 && diff / e >= 0)
}
}
}
return function(a) {
var b = a;
switch (c) {
case "only":
case "first":
while ((b = b.previousSibling)) {
if (b.nodeType === 1) {
return false
}
}
if (c === "first") {
return true
}
b = a;
case "last":
while ((b = b.nextSibling)) {
if (b.nodeType === 1) {
return false
}
}
return true
}
}
},
"PSEUDO": function(b, c, d, e) {
var f, fn = Expr.pseudos[b] || Expr.pseudos[b.toLowerCase()];
if (!fn) {
Sizzle.error("unsupported pseudo: " + b)
}
if (!fn[expando]) {
if (fn.length > 1) {
f = [b, b, "", c];
return function(a) {
return fn(a, 0, f)
}
}
return fn
}
return fn(c, d, e)
}
},
pseudos: {
"not": markFunction(function(b, c, d) {
var e = compile(b.replace(rtrim, "$1"), c, d);
return function(a) {
return !e(a)
}
}),
"enabled": function(a) {
return a.disabled === false
},
"disabled": function(a) {
return a.disabled === true
},
"checked": function(a) {
var b = a.nodeName.toLowerCase();
return (b === "input" && !! a.checked) || (b === "option" && !! a.selected)
},
"selected": function(a) {
if (a.parentNode) {
a.parentNode.selectedIndex
}
return a.selected === true
},
"parent": function(a) {
return !Expr.pseudos["empty"](a)
},
"empty": function(a) {
var b;
a = a.firstChild;
while (a) {
if (a.nodeName > "@" || (b = a.nodeType) === 3 || b === 4) {
return false
}
a = a.nextSibling
}
return true
},
"contains": markFunction(function(b) {
return function(a) {
return (a.textContent || a.innerText || getText(a)).indexOf(b) > -1
}
}),
"has": markFunction(function(b) {
return function(a) {
return Sizzle(b, a).length > 0
}
}),
"header": function(a) {
return rheader.test(a.nodeName)
},
"text": function(a) {
var b, attr;
return a.nodeName.toLowerCase() === "input" && (b = a.type) === "text" && ((attr = a.getAttribute("type")) == null || attr.toLowerCase() === b)
},
"radio": createInputPseudo("radio"),
"checkbox": createInputPseudo("checkbox"),
"file": createInputPseudo("file"),
"password": createInputPseudo("password"),
"image": createInputPseudo("image"),
"submit": createButtonPseudo("submit"),
"reset": createButtonPseudo("reset"),
"button": function(a) {
var b = a.nodeName.toLowerCase();
return b === "input" && a.type === "button" || b === "button"
},
"input": function(a) {
return rinputs.test(a.nodeName)
},
"focus": function(a) {
var b = a.ownerDocument;
return a === b.activeElement && (!b.hasFocus || b.hasFocus()) && !! (a.type || a.href)
},
"active": function(a) {
return a === a.ownerDocument.activeElement
}
},
setFilters: {
"first": function(a, b, c) {
return c ? a.slice(1) : [a[0]]
},
"last": function(a, b, c) {
var d = a.pop();
return c ? a : [d]
},
"even": function(a, b, c) {
var d = [],
i = c ? 1 : 0,
len = a.length;
for (; i < len; i = i + 2) {
d.push(a[i])
}
return d
},
"odd": function(a, b, c) {
var d = [],
i = c ? 0 : 1,
len = a.length;
for (; i < len; i = i + 2) {
d.push(a[i])
}
return d
},
"lt": function(a, b, c) {
return c ? a.slice(+b) : a.slice(0, +b)
},
"gt": function(a, b, c) {
return c ? a.slice(0, +b + 1) : a.slice(+b + 1)
},
"eq": function(a, b, c) {
var d = a.splice(+b, 1);
return c ? a : d
}
}
};
function siblingCheck(a, b, c) {
if (a === b) {
return c
}
var d = a.nextSibling;
while (d) {
if (d === b) {
return -1
}
d = d.nextSibling
}
return 1
}
sortOrder = docElem.compareDocumentPosition ?
function(a, b) {
if (a === b) {
hasDuplicate = true;
return 0
}
return (!a.compareDocumentPosition || !b.compareDocumentPosition ? a.compareDocumentPosition : a.compareDocumentPosition(b) & 4) ? -1 : 1
} : function(a, b) {
if (a === b) {
hasDuplicate = true;
return 0
} else if (a.sourceIndex && b.sourceIndex) {
return a.sourceIndex - b.sourceIndex
}
var c, bl, ap = [],
bp = [],
aup = a.parentNode,
bup = b.parentNode,
cur = aup;
if (aup === bup) {
return siblingCheck(a, b)
} else if (!aup) {
return -1
} else if (!bup) {
return 1
}
while (cur) {
ap.unshift(cur);
cur = cur.parentNode
}
cur = bup;
while (cur) {
bp.unshift(cur);
cur = cur.parentNode
}
c = ap.length;
bl = bp.length;
for (var i = 0; i < c && i < bl; i++) {
if (ap[i] !== bp[i]) {
return siblingCheck(ap[i], bp[i])
}
}
return i === c ? siblingCheck(a, bp[i], -1) : siblingCheck(ap[i], b, 1)
};
[0, 0].sort(sortOrder);
baseHasDuplicate = !hasDuplicate;
Sizzle.uniqueSort = function(a) {
var b, i = 1;
hasDuplicate = baseHasDuplicate;
a.sort(sortOrder);
if (hasDuplicate) {
for (;
(b = a[i]); i++) {
if (b === a[i - 1]) {
a.splice(i--, 1)
}
}
}
return a
};
Sizzle.error = function(a) {
throw new Error("Syntax error, unrecognized expression: " + a);
};
function tokenize(a, b, c, d) {
var e, match, tokens, type, soFar, groups, group, i, preFilters, filters, checkContext = !c && b !== document,
key = (checkContext ? "<s>" : "") + a.replace(rtrim, "$1<s>"),
cached = tokenCache[expando][key];
if (cached) {
return d ? 0 : slice.call(cached, 0)
}
soFar = a;
groups = [];
i = 0;
preFilters = Expr.preFilter;
filters = Expr.filter;
while (soFar) {
if (!e || (match = rcomma.exec(soFar))) {
if (match) {
soFar = soFar.slice(match[0].length);
tokens.selector = group
}
groups.push(tokens = []);
group = "";
if (checkContext) {
soFar = " " + soFar
}
}
e = false;
if ((match = rcombinators.exec(soFar))) {
group += match[0];
soFar = soFar.slice(match[0].length);
e = tokens.push({
part: match.pop().replace(rtrim, " "),
string: match[0],
captures: match
})
}
for (type in filters) {
if ((match = matchExpr[type].exec(soFar)) && (!preFilters[type] || (match = preFilters[type](match, b, c)))) {
group += match[0];
soFar = soFar.slice(match[0].length);
e = tokens.push({
part: type,
string: match.shift(),
captures: match
})
}
}
if (!e) {
break
}
}
if (group) {
tokens.selector = group
}
return d ? soFar.length : soFar ? Sizzle.error(a) : slice.call(tokenCache(key, groups), 0)
}
function addCombinator(c, d, e, f) {
var g = d.dir,
doneName = done++;
if (!c) {
c = function(a) {
return a === e
}
}
return d.first ?
function(a) {
while ((a = a[g])) {
if (a.nodeType === 1) {
return c(a) && a
}
}
} : f ?
function(a) {
while ((a = a[g])) {
if (a.nodeType === 1) {
if (c(a)) {
return a
}
}
}
} : function(a) {
var b, dirkey = doneName + "." + l,
cachedkey = dirkey + "." + cachedruns;
while ((a = a[g])) {
if (a.nodeType === 1) {
if ((b = a[expando]) === cachedkey) {
return a.sizset
} else if (typeof b === "string" && b.indexOf(dirkey) === 0) {
if (a.sizset) {
return a
}
} else {
a[expando] = cachedkey;
if (c(a)) {
a.sizset = true;
return a
}
a.sizset = false
}
}
}
}
}
function addMatcher(c, d) {
return c ?
function(a) {
var b = d(a);
return b && c(b === true ? a : b)
} : d
}
function matcherFromTokens(a, b, c) {
var d, matcher, i = 0;
for (;
(d = a[i]); i++) {
if (Expr.relative[d.part]) {
matcher = addCombinator(matcher, Expr.relative[d.part], b, c)
} else {
matcher = addMatcher(matcher, Expr.filter[d.part].apply(null, d.captures.concat(b, c)))
}
}
return matcher
}
function matcherFromGroupMatchers(c) {
return function(a) {
var b, j = 0;
for (;
(b = c[j]); j++) {
if (b(a)) {
return true
}
}
return false
}
}
compile = Sizzle.compile = function(a, b, c) {
var d, i, len, cached = compilerCache[expando][a];
if (cached && cached.context === b) {
return cached
}
d = tokenize(a, b, c);
for (i = 0, len = d.length; i < len; i++) {
d[i] = matcherFromTokens(d[i], b, c)
}
cached = compilerCache(a, matcherFromGroupMatchers(d));
cached.context = b;
cached.runs = cached.dirruns = 0;
return cached
};
function multipleContexts(a, b, c, d) {
var i = 0,
len = b.length;
for (; i < len; i++) {
Sizzle(a, b[i], c, d)
}
}
function handlePOSGroup(a, b, c, d, e, f) {
var g, fn = Expr.setFilters[b.toLowerCase()];
if (!fn) {
Sizzle.error(b)
}
if (a || !(g = e)) {
multipleContexts(a || "*", d, (g = []), e)
}
return g.length > 0 ? fn(g, c, f) : []
}
function handlePOS(a, b, c, d) {
var e, part, j, groupLen, token, selector, anchor, elements, match, matched, lastIndex, currentContexts, not, i = 0,
len = a.length,
rpos = matchExpr["POS"],
rposgroups = new RegExp("^" + rpos.source + "(?!" + whitespace + ")", "i"),
setUndefined = function() {
var i = 1,
len = arguments.length - 2;
for (; i < len; i++) {
if (arguments[i] === k) {
match[i] = k
}
}
};
for (; i < len; i++) {
e = a[i];
part = "";
elements = d;
for (j = 0, groupLen = e.length; j < groupLen; j++) {
token = e[j];
selector = token.string;
if (token.part === "PSEUDO") {
rpos.exec("");
anchor = 0;
while ((match = rpos.exec(selector))) {
matched = true;
lastIndex = rpos.lastIndex = match.index + match[0].length;
if (lastIndex > anchor) {
part += selector.slice(anchor, match.index);
anchor = lastIndex;
currentContexts = [b];
if (rcombinators.test(part)) {
if (elements) {
currentContexts = elements
}
elements = d
}
if ((not = rendsWithNot.test(part))) {
part = part.slice(0, -5).replace(rcombinators, "$&*");
anchor++
}
if (match.length > 1) {
match[0].replace(rposgroups, setUndefined)
}
elements = handlePOSGroup(part, match[1], match[2], currentContexts, elements, not)
}
part = ""
}
}
if (!matched) {
part += selector
}
matched = false
}
if (part) {
if (rcombinators.test(part)) {
multipleContexts(part, elements || [b], c, d)
} else {
Sizzle(part, b, c, d ? d.concat(elements) : elements)
}
} else {
push.apply(c, elements)
}
}
return len === 1 ? c : Sizzle.uniqueSort(c)
}
function select(a, b, c, d, e) {
a = a.replace(rtrim, "$1");
var f, matcher, cached, elem, i, tokens, token, lastToken, findContext, type, match = tokenize(a, b, e),
contextNodeType = b.nodeType;
if (matchExpr["POS"].test(a)) {
return handlePOS(match, b, c, d)
}
if (d) {
f = slice.call(d, 0)
} else if (match.length === 1) {
if ((tokens = slice.call(match[0], 0)).length > 2 && (token = tokens[0]).part === "ID" && contextNodeType === 9 && !e && Expr.relative[tokens[1].part]) {
b = Expr.find["ID"](token.captures[0].replace(rbackslash, ""), b, e)[0];
if (!b) {
return c
}
a = a.slice(tokens.shift().string.length)
}
findContext = ((match = rsibling.exec(tokens[0].string)) && !match.index && b.parentNode) || b;
lastToken = "";
for (i = tokens.length - 1; i >= 0; i--) {
token = tokens[i];
type = token.part;
lastToken = token.string + lastToken;
if (Expr.relative[type]) {
break
}
if (Expr.order.test(type)) {
f = Expr.find[type](token.captures[0].replace(rbackslash, ""), findContext, e);
if (f == null) {
continue
} else {
a = a.slice(0, a.length - lastToken.length) + lastToken.replace(matchExpr[type], "");
if (!a) {
push.apply(c, slice.call(f, 0))
}
break
}
}
}
}
if (a) {
matcher = compile(a, b, e);
l = matcher.dirruns++;
if (f == null) {
f = Expr.find["TAG"]("*", (rsibling.test(a) && b.parentNode) || b)
}
for (i = 0;
(elem = f[i]); i++) {
cachedruns = matcher.runs++;
if (matcher(elem)) {
c.push(elem)
}
}
}
return c
}
if (document.querySelectorAll) {
(function() {
var g, oldSelect = select,
rescape = /'|\\/g,
rattributeQuotes = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,
rbuggyQSA = [],
rbuggyMatches = [":active"],
matches = docElem.matchesSelector || docElem.mozMatchesSelector || docElem.webkitMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector;
assert(function(a) {
a.innerHTML = "<select><option selected=''></option></select>";
if (!a.querySelectorAll("[selected]").length) {
rbuggyQSA.push("\\[" + whitespace + "*(?:checked|disabled|ismap|multiple|readonly|selected|value)")
}
if (!a.querySelectorAll(":checked").length) {
rbuggyQSA.push(":checked")
}
});
assert(function(a) {
a.innerHTML = "<p test=''></p>";
if (a.querySelectorAll("[test^='']").length) {
rbuggyQSA.push("[*^$]=" + whitespace + "*(?:\"\"|'')")
}
a.innerHTML = "<input type='hidden'/>";
if (!a.querySelectorAll(":enabled").length) {
rbuggyQSA.push(":enabled", ":disabled")
}
});
rbuggyQSA = rbuggyQSA.length && new RegExp(rbuggyQSA.join("|"));
select = function(a, b, c, d, e) {
if (!d && !e && (!rbuggyQSA || !rbuggyQSA.test(a))) {
if (b.nodeType === 9) {
try {
push.apply(c, slice.call(b.querySelectorAll(a), 0));
return c
} catch (qsaError) {}
} else if (b.nodeType === 1 && b.nodeName.toLowerCase() !== "object") {
var f, i, len, old = b.getAttribute("id"),
nid = old || expando,
newContext = rsibling.test(a) && b.parentNode || b;
if (old) {
nid = nid.replace(rescape, "\\$&")
} else {
b.setAttribute("id", nid)
}
f = tokenize(a, b, e);
nid = "[id='" + nid + "']";
for (i = 0, len = f.length; i < len; i++) {
f[i] = nid + f[i].selector
}
try {
push.apply(c, slice.call(newContext.querySelectorAll(f.join(",")), 0));
return c
} catch (qsaError) {} finally {
if (!old) {
b.removeAttribute("id")
}
}
}
}
return oldSelect(a, b, c, d, e)
};
if (matches) {
assert(function(a) {
g = matches.call(a, "div");
try {
matches.call(a, "[test!='']:sizzle");
rbuggyMatches.push(matchExpr["PSEUDO"].source, matchExpr["POS"].source, "!=")
} catch (e) {}
});
rbuggyMatches = new RegExp(rbuggyMatches.join("|"));
Sizzle.matchesSelector = function(a, b) {
b = b.replace(rattributeQuotes, "='$1']");
if (!isXML(a) && !rbuggyMatches.test(b) && (!rbuggyQSA || !rbuggyQSA.test(b))) {
try {
var c = matches.call(a, b);
if (c || g || a.document && a.document.nodeType !== 11) {
return c
}
} catch (e) {}
}
return Sizzle(b, null, null, [a]).length > 0
}
}
})()
}
Expr.setFilters["nth"] = Expr.setFilters["eq"];
Expr.filters = Expr.pseudos;
Sizzle.attr = jQueryAbd.attr;
jQueryAbd.find = Sizzle;
jQueryAbd.expr = Sizzle.selectors;
jQueryAbd.expr[":"] = jQueryAbd.expr.pseudos;
jQueryAbd.unique = Sizzle.uniqueSort;
jQueryAbd.text = Sizzle.getText;
jQueryAbd.isXMLDoc = Sizzle.isXML;
jQueryAbd.contains = Sizzle.contains
})(o);
var y = /Until$/,
rparentsprev = /^(?:parents|prev(?:Until|All))/,
isSimple = /^.[^:#\[\.,]*$/,
rneedsContext = jQueryAbd.expr.match.needsContext,
guaranteedUnique = {
children: true,
contents: true,
next: true,
prev: true
};
jQueryAbd.fn.extend({
find: function(a) {
var i, l, length, n, r, ret, self = this;
if (typeof a !== "string") {
return jQueryAbd(a).filter(function() {
for (i = 0, l = self.length; i < l; i++) {
if (jQueryAbd.contains(self[i], this)) {
return true
}
}
})
}
ret = this.pushStack("", "find", a);
for (i = 0, l = this.length; i < l; i++) {
length = ret.length;
jQueryAbd.find(a, this[i], ret);
if (i > 0) {
for (n = length; n < ret.length; n++) {
for (r = 0; r < length; r++) {
if (ret[r] === ret[n]) {
ret.splice(n--, 1);
break
}
}
}
}
}
return ret
},
has: function(a) {
var i, targets = jQueryAbd(a, this),
len = targets.length;
return this.filter(function() {
for (i = 0; i < len; i++) {
if (jQueryAbd.contains(this, targets[i])) {
return true
}
}
})
},
not: function(a) {
return this.pushStack(winnow(this, a, false), "not", a)
},
filter: function(a) {
return this.pushStack(winnow(this, a, true), "filter", a)
},
is: function(a) {
return !!a && (typeof a === "string" ? rneedsContext.test(a) ? jQueryAbd(a, this.context).index(this[0]) >= 0 : jQueryAbd.filter(a, this).length > 0 : this.filter(a).length > 0)
},
closest: function(a, b) {
var c, i = 0,
l = this.length,
ret = [],
pos = rneedsContext.test(a) || typeof a !== "string" ? jQueryAbd(a, b || this.context) : 0;
for (; i < l; i++) {
c = this[i];
while (c && c.ownerDocument && c !== b && c.nodeType !== 11) {
if (pos ? pos.index(c) > -1 : jQueryAbd.find.matchesSelector(c, a)) {
ret.push(c);
break
}
c = c.parentNode
}
}
ret = ret.length > 1 ? jQueryAbd.unique(ret) : ret;
return this.pushStack(ret, "closest", a)
},
index: function(a) {
if (!a) {
return (this[0] && this[0].parentNode) ? this.prevAll().length : -1
}
if (typeof a === "string") {
return jQueryAbd.inArray(this[0], jQueryAbd(a))
}
return jQueryAbd.inArray(a.ver ? a[0] : a, this)
},
add: function(a, b) {
var c = typeof a === "string" ? jQueryAbd(a, b) : jQueryAbd.makeArray(a && a.nodeType ? [a] : a),
all = jQueryAbd.merge(this.get(), c);
return this.pushStack(isDisconnected(c[0]) || isDisconnected(all[0]) ? all : jQueryAbd.unique(all))
},
addBack: function(a) {
return this.add(a == null ? this.prevObject : this.prevObject.filter(a))
}
});
jQueryAbd.fn.andSelf = jQueryAbd.fn.addBack;
function isDisconnected(a) {
return !a || !a.parentNode || a.parentNode.nodeType === 11
}
function sibling(a, b) {
do {
a = a[b]
} while (a && a.nodeType !== 1);
return a
}
jQueryAbd.each({
parent: function(a) {
var b = a.parentNode;
return b && b.nodeType !== 11 ? b : null
},
parents: function(a) {
return jQueryAbd.dir(a, "parentNode")
},
parentsUntil: function(a, i, b) {
return jQueryAbd.dir(a, "parentNode", b)
},
next: function(a) {
return sibling(a, "nextSibling")
},
prev: function(a) {
return sibling(a, "previousSibling")
},
nextAll: function(a) {
return jQueryAbd.dir(a, "nextSibling")
},
prevAll: function(a) {
return jQueryAbd.dir(a, "previousSibling")
},
nextUntil: function(a, i, b) {
return jQueryAbd.dir(a, "nextSibling", b)
},
prevUntil: function(a, i, b) {
return jQueryAbd.dir(a, "previousSibling", b)
},
siblings: function(a) {
return jQueryAbd.sibling((a.parentNode || {}).firstChild, a)
},
children: function(a) {
return jQueryAbd.sibling(a.firstChild)
},
contents: function(a) {
return jQueryAbd.nodeName(a, "iframe") ? a.contentDocument || a.contentWindow.document : jQueryAbd.merge([], a.childNodes)
}
}, function(d, e) {
jQueryAbd.fn[d] = function(a, b) {
var c = jQueryAbd.map(this, e, a);
if (!y.test(d)) {
b = a
}
if (b && typeof b === "string") {
c = jQueryAbd.filter(b, c)
}
c = this.length > 1 && !guaranteedUnique[d] ? jQueryAbd.unique(c) : c;
if (this.length > 1 && rparentsprev.test(d)) {
c = c.reverse()
}
return this.pushStack(c, d, core_slice.call(arguments).join(","))
}
});
jQueryAbd.extend({
filter: function(a, b, c) {
if (c) {
a = ":not(" + a + ")"
}
return b.length === 1 ? jQueryAbd.find.matchesSelector(b[0], a) ? [b[0]] : [] : jQueryAbd.find.matches(a, b)
},
dir: function(a, b, c) {
var d = [],
cur = a[b];
while (cur && cur.nodeType !== 9 && (c === q || cur.nodeType !== 1 || !jQueryAbd(cur).is(c))) {
if (cur.nodeType === 1) {
d.push(cur)
}
cur = cur[b]
}
return d
},
sibling: function(n, a) {
var r = [];
for (; n; n = n.nextSibling) {
if (n.nodeType === 1 && n !== a) {
r.push(n)
}
}
return r
}
});
function winnow(c, d, e) {
d = d || 0;
if (jQueryAbd.isFunction(d)) {
return jQueryAbd.grep(c, function(a, i) {
var b = !! d.call(a, i, a);
return b === e
})
} else if (d.nodeType) {
return jQueryAbd.grep(c, function(a, i) {
return (a === d) === e
})
} else if (typeof d === "string") {
var f = jQueryAbd.grep(c, function(a) {
return a.nodeType === 1
});
if (isSimple.test(d)) {
return jQueryAbd.filter(d, f, !e)
} else {
d = jQueryAbd.filter(d, f)
}
}
return jQueryAbd.grep(c, function(a, i) {
return (jQueryAbd.inArray(a, d) >= 0) === e
})
}
function createSafeFragment(a) {
var b = z.split("|"),
safeFrag = a.createDocumentFragment();
if (safeFrag.createElement) {
while (b.length) {
safeFrag.createElement(b.pop())
}
}
return safeFrag
}
var z = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
rinlinejQuery = / jQueryAbd\d+="(?:null|\d+)"/g,
rleadingWhitespace = /^\s+/,
rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
rtagName = /<([\w:]+)/,
rtbody = /<tbody/i,
rhtml = /<|&#?\w+;/,
rnoInnerhtml = /<(?:script|style|link)/i,
rnocache = /<(?:script|object|embed|option|style)/i,
rnoshimcache = new RegExp("<(?:" + z + ")[\\s/>]", "i"),
rcheckableType = /^(?:checkbox|radio)$/,
rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
rscriptType = /\/(java|ecma)script/i,
rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,
wrapMap = {
option: [1, "<select multiple='multiple'>", "</select>"],
legend: [1, "<fieldset>", "</fieldset>"],
thead: [1, "<table>", "</table>"],
tr: [2, "<table><tbody>", "</tbody></table>"],
td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],
area: [1, "<map>", "</map>"],
_default: [0, "", ""]
},
safeFragment = createSafeFragment(document),
fragmentDiv = safeFragment.appendChild(document.createElement("div"));
wrapMap.optgroup = wrapMap.option;
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
wrapMap.th = wrapMap.td;
if (!jQueryAbd.support.htmlSerialize) {
wrapMap._default = [1, "X<div>", "</div>"]
}
jQueryAbd.fn.extend({
text: function(b) {
return jQueryAbd.access(this, function(a) {
return a === q ? jQueryAbd.text(this) : this.empty().append((this[0] && this[0].ownerDocument || document).createTextNode(a))
}, null, b, arguments.length)
},
wrapAll: function(b) {
if (jQueryAbd.isFunction(b)) {
return this.each(function(i) {
jQueryAbd(this).wrapAll(b.call(this, i))
})
}
if (this[0]) {
var c = jQueryAbd(b, this[0].ownerDocument).eq(0).clone(true);
if (this[0].parentNode) {
c.insertBefore(this[0])
}
c.map(function() {
var a = this;
while (a.firstChild && a.firstChild.nodeType === 1) {
a = a.firstChild
}
return a
}).append(this)
}
return this
},
wrapInner: function(b) {
if (jQueryAbd.isFunction(b)) {
return this.each(function(i) {
jQueryAbd(this).wrapInner(b.call(this, i))
})
}
return this.each(function() {
var a = jQueryAbd(this),
contents = a.contents();
if (contents.length) {
contents.wrapAll(b)
} else {
a.append(b)
}
})
},
wrap: function(a) {
var b = jQueryAbd.isFunction(a);
return this.each(function(i) {
jQueryAbd(this).wrapAll(b ? a.call(this, i) : a)
})
},
unwrap: function() {
return this.parent().each(function() {
if (!jQueryAbd.nodeName(this, "body")) {
jQueryAbd(this).replaceWith(this.childNodes)
}
}).end()
},
append: function() {
return this.domManip(arguments, true, function(a) {
if (this.nodeType === 1 || this.nodeType === 11) {
this.appendChild(a)
}
})
},
prepend: function() {
return this.domManip(arguments, true, function(a) {
if (this.nodeType === 1 || this.nodeType === 11) {
this.insertBefore(a, this.firstChild)
}
})
},
before: function() {
if (!isDisconnected(this[0])) {
return this.domManip(arguments, false, function(a) {
this.parentNode.insertBefore(a, this)
})
}
if (arguments.length) {
var b = jQueryAbd.clean(arguments);
return this.pushStack(jQueryAbd.merge(b, this), "before", this.selector)
}
},
after: function() {
if (!isDisconnected(this[0])) {
return this.domManip(arguments, false, function(a) {
this.parentNode.insertBefore(a, this.nextSibling)
})
}
if (arguments.length) {
var b = jQueryAbd.clean(arguments);
return this.pushStack(jQueryAbd.merge(this, b), "after", this.selector)
}
},
remove: function(a, b) {
var c, i = 0;
for (;
(c = this[i]) != null; i++) {
if (!a || jQueryAbd.filter(a, [c]).length) {
if (!b && c.nodeType === 1) {
jQueryAbd.cleanData(c.getElementsByTagName("*"));
jQueryAbd.cleanData([c])
}
if (c.parentNode) {
c.parentNode.removeChild(c)
}
}
}
return this
},
empty: function() {
var a, i = 0;
for (;
(a = this[i]) != null; i++) {
if (a.nodeType === 1) {
jQueryAbd.cleanData(a.getElementsByTagName("*"))
}
while (a.firstChild) {
a.removeChild(a.firstChild)
}
}
return this
},
clone: function(a, b) {
a = a == null ? false : a;
b = b == null ? a : b;
return this.map(function() {
return jQueryAbd.clone(this, a, b)
})
},
html: function(c) {
return jQueryAbd.access(this, function(a) {
var b = this[0] || {},
i = 0,
l = this.length;
if (a === q) {
return b.nodeType === 1 ? b.innerHTML.replace(rinlinejQuery, "") : q
}
if (typeof a === "string" && !rnoInnerhtml.test(a) && (jQueryAbd.support.htmlSerialize || !rnoshimcache.test(a)) && (jQueryAbd.support.leadingWhitespace || !rleadingWhitespace.test(a)) && !wrapMap[(rtagName.exec(a) || ["", ""])[1].toLowerCase()]) {
a = a.replace(rxhtmlTag, "<$1></$2>");
try {
for (; i < l; i++) {
b = this[i] || {};
if (b.nodeType === 1) {
jQueryAbd.cleanData(b.getElementsByTagName("*"));
b.innerHTML = a
}
}
b = 0
} catch (e) {}
}
if (b) {
this.empty().append(a)
}
}, null, c, arguments.length)
},
replaceWith: function(b) {
if (!isDisconnected(this[0])) {
if (jQueryAbd.isFunction(b)) {
return this.each(function(i) {
var a = jQueryAbd(this),
old = a.html();
a.replaceWith(b.call(this, i, old))
})
}
if (typeof b !== "string") {
b = jQueryAbd(b).detach()
}
return this.each(function() {
var a = this.nextSibling,
parent = this.parentNode;
jQueryAbd(this).remove();
if (a) {
jQueryAbd(a).before(b)
} else {
jQueryAbd(parent).append(b)
}
})
}
return this.length ? this.pushStack(jQueryAbd(jQueryAbd.isFunction(b) ? b() : b), "replaceWith", b) : this
},
detach: function(a) {
return this.remove(a, true)
},
domManip: function(b, c, d) {
b = [].concat.apply([], b);
var e, first, fragment, iNoClone, i = 0,
value = b[0],
scripts = [],
l = this.length;
if (!jQueryAbd.support.checkClone && l > 1 && typeof value === "string" && rchecked.test(value)) {
return this.each(function() {
jQueryAbd(this).domManip(b, c, d)
})
}
if (jQueryAbd.isFunction(value)) {
return this.each(function(i) {
var a = jQueryAbd(this);
b[0] = value.call(this, i, c ? a.html() : q);
a.domManip(b, c, d)
})
}
if (this[0]) {
e = jQueryAbd.buildFragment(b, this, scripts);
fragment = e.fragment;
first = fragment.firstChild;
if (fragment.childNodes.length === 1) {
fragment = first
}
if (first) {
c = c && jQueryAbd.nodeName(first, "tr");
for (iNoClone = e.cacheable || l - 1; i < l; i++) {
d.call(c && jQueryAbd.nodeName(this[i], "table") ? findOrAppend(this[i], "tbody") : this[i], i === iNoClone ? fragment : jQueryAbd.clone(fragment, true, true))
}
}
fragment = first = null;
if (scripts.length) {
jQueryAbd.each(scripts, function(i, a) {
if (a.src) {
if (jQueryAbd.ajax) {
jQueryAbd.ajax({
url: a.src,
type: "GET",
dataType: "script",
async: false,
global: false,
"throws": true
})
} else {
jQueryAbd.error("no ajax")
}
} else {
jQueryAbd.globalEval((a.text || a.textContent || a.innerHTML || "").replace(rcleanScript, ""))
}
if (a.parentNode) {
a.parentNode.removeChild(a)
}
})
}
}
return this
}
});
function findOrAppend(a, b) {
return a.getElementsByTagName(b)[0] || a.appendChild(a.ownerDocument.createElement(b))
}
function cloneCopyEvent(a, b) {
if (b.nodeType !== 1 || !jQueryAbd.hasData(a)) {
return
}
var c, i, l, oldData = jQueryAbd._data(a),
curData = jQueryAbd._data(b, oldData),
events = oldData.events;
if (events) {
delete curData.handle;
curData.events = {};
for (c in events) {
for (i = 0, l = events[c].length; i < l; i++) {
jQueryAbd.event.add(b, c, events[c][i])
}
}
}
if (curData.data) {
curData.data = jQueryAbd.extend({}, curData.data)
}
}
function cloneFixAttributes(a, b) {
var c;
if (b.nodeType !== 1) {
return
}
if (b.clearAttributes) {
b.clearAttributes()
}
if (b.mergeAttributes) {
b.mergeAttributes(a)
}
c = b.nodeName.toLowerCase();
if (c === "object") {
if (b.parentNode) {
b.outerHTML = a.outerHTML
}
if (jQueryAbd.support.html5Clone && (a.innerHTML && !jQueryAbd.trim(b.innerHTML))) {
b.innerHTML = a.innerHTML
}
} else if (c === "input" && rcheckableType.test(a.type)) {
b.defaultChecked = b.checked = a.checked;
if (b.value !== a.value) {
b.value = a.value
}
} else if (c === "option") {
b.selected = a.defaultSelected
} else if (c === "input" || c === "textarea") {
b.defaultValue = a.defaultValue
} else if (c === "script" && b.text !== a.text) {
b.text = a.text
}
b.removeAttribute(jQueryAbd.expando)
}
jQueryAbd.buildFragment = function(a, b, c) {
var d, cacheable, cachehit, first = a[0];
b = b || document;
b = !b.nodeType && b[0] || b;
b = b.ownerDocument || b;
if (a.length === 1 && typeof first === "string" && first.length < 512 && b === document && first.charAt(0) === "<" && !rnocache.test(first) && (jQueryAbd.support.checkClone || !rchecked.test(first)) && (jQueryAbd.support.html5Clone || !rnoshimcache.test(first))) {
cacheable = true;
d = jQueryAbd.fragments[first];
cachehit = d !== q
}
if (!d) {
d = b.createDocumentFragment();
jQueryAbd.clean(a, b, d, c);
if (cacheable) {
jQueryAbd.fragments[first] = cachehit && d
}
}
return {
fragment: d,
cacheable: cacheable
}
};
jQueryAbd.fragments = {};
jQueryAbd.each({
appendTo: "append",
prependTo: "prepend",
insertBefore: "before",
insertAfter: "after",
replaceAll: "replaceWith"
}, function(c, d) {
jQueryAbd.fn[c] = function(a) {
var b, i = 0,
ret = [],
insert = jQueryAbd(a),
l = insert.length,
parent = this.length === 1 && this[0].parentNode;
if ((parent == null || parent && parent.nodeType === 11 && parent.childNodes.length === 1) && l === 1) {
insert[d](this[0]);
return this
} else {
for (; i < l; i++) {
b = (i > 0 ? this.clone(true) : this).get();
jQueryAbd(insert[i])[d](b);
ret = ret.concat(b)
}
return this.pushStack(ret, c, insert.selector)
}
}
});
function getAll(a) {
if (typeof a.getElementsByTagName !== "undefined") {
return a.getElementsByTagName("*")
} else if (typeof a.querySelectorAll !== "undefined") {
return a.querySelectorAll("*")
} else {
return []
}
}
function fixDefaultChecked(a) {
if (rcheckableType.test(a.type)) {
a.defaultChecked = a.checked
}
}
jQueryAbd.extend({
clone: function(a, b, c) {
var d, destElements, i, clone;
if (jQueryAbd.support.html5Clone || jQueryAbd.isXMLDoc(a) || !rnoshimcache.test("<" + a.nodeName + ">")) {
clone = a.cloneNode(true)
} else {
fragmentDiv.innerHTML = a.outerHTML;
fragmentDiv.removeChild(clone = fragmentDiv.firstChild)
}
if ((!jQueryAbd.support.noCloneEvent || !jQueryAbd.support.noCloneChecked) && (a.nodeType === 1 || a.nodeType === 11) && !jQueryAbd.isXMLDoc(a)) {
cloneFixAttributes(a, clone);
d = getAll(a);
destElements = getAll(clone);
for (i = 0; d[i]; ++i) {
if (destElements[i]) {
cloneFixAttributes(d[i], destElements[i])
}
}
}
if (b) {
cloneCopyEvent(a, clone);
if (c) {
d = getAll(a);
destElements = getAll(clone);
for (i = 0; d[i]; ++i) {
cloneCopyEvent(d[i], destElements[i])
}
}
}
d = destElements = null;
return clone
},
clean: function(b, c, d, e) {
var i, j, elem, tag, wrap, depth, div, hasBody, tbody, len, handleScript, jsTags, safe = c === document && safeFragment,
ret = [];
if (!c || typeof c.createDocumentFragment === "undefined") {
c = document
}
for (i = 0;
(elem = b[i]) != null; i++) {
if (typeof elem === "number") {
elem += ""
}
if (!elem) {
continue
}
if (typeof elem === "string") {
if (!rhtml.test(elem)) {
elem = c.createTextNode(elem)
} else {
safe = safe || createSafeFragment(c);
div = c.createElement("div");
safe.appendChild(div);
elem = elem.replace(rxhtmlTag, "<$1></$2>");
tag = (rtagName.exec(elem) || ["", ""])[1].toLowerCase();
wrap = wrapMap[tag] || wrapMap._default;
depth = wrap[0];
div.innerHTML = wrap[1] + elem + wrap[2];
while (depth--) {
div = div.lastChild
}
if (!jQueryAbd.support.tbody) {
hasBody = rtbody.test(elem);
tbody = tag === "table" && !hasBody ? div.firstChild && div.firstChild.childNodes : wrap[1] === "<table>" && !hasBody ? div.childNodes : [];
for (j = tbody.length - 1; j >= 0; --j) {
if (jQueryAbd.nodeName(tbody[j], "tbody") && !tbody[j].childNodes.length) {
tbody[j].parentNode.removeChild(tbody[j])
}
}
}
if (!jQueryAbd.support.leadingWhitespace && rleadingWhitespace.test(elem)) {
div.insertBefore(c.createTextNode(rleadingWhitespace.exec(elem)[0]), div.firstChild)
}
elem = div.childNodes;
div.parentNode.removeChild(div)
}
}
if (elem.nodeType) {
ret.push(elem)
} else {
jQueryAbd.merge(ret, elem)
}
}
if (div) {
elem = div = safe = null
}
if (!jQueryAbd.support.appendChecked) {
for (i = 0;
(elem = ret[i]) != null; i++) {
if (jQueryAbd.nodeName(elem, "input")) {
fixDefaultChecked(elem)
} else if (typeof elem.getElementsByTagName !== "undefined") {
jQueryAbd.grep(elem.getElementsByTagName("input"), fixDefaultChecked)
}
}
}
if (d) {
handleScript = function(a) {
if (!a.type || rscriptType.test(a.type)) {
return e ? e.push(a.parentNode ? a.parentNode.removeChild(a) : a) : d.appendChild(a)
}
};
for (i = 0;
(elem = ret[i]) != null; i++) {
if (!(jQueryAbd.nodeName(elem, "script") && handleScript(elem))) {
d.appendChild(elem);
if (typeof elem.getElementsByTagName !== "undefined") {
jsTags = jQueryAbd.grep(jQueryAbd.merge([], elem.getElementsByTagName("script")), handleScript);
ret.splice.apply(ret, [i + 1, 0].concat(jsTags));
i += jsTags.length
}
}
}
}
return ret
},
cleanData: function(a, b) {
var c, id, elem, type, i = 0,
internalKey = jQueryAbd.expando,
cache = jQueryAbd.cache,
deleteExpando = jQueryAbd.support.deleteExpando,
special = jQueryAbd.event.special;
for (;
(elem = a[i]) != null; i++) {
if (b || jQueryAbd.acceptData(elem)) {
id = elem[internalKey];
c = id && cache[id];
if (c) {
if (c.events) {
for (type in c.events) {
if (special[type]) {
jQueryAbd.event.remove(elem, type)
} else {
jQueryAbd.removeEvent(elem, type, c.handle)
}
}
}
if (cache[id]) {
delete cache[id];
if (deleteExpando) {
delete elem[internalKey]
} else if (elem.removeAttribute) {
elem.removeAttribute(internalKey)
} else {
elem[internalKey] = null
}
jQueryAbd.deletedIds.push(id)
}
}
}
}
}
});
(function() {
var d, browser;
jQueryAbd.uaMatch = function(a) {
a = a.toLowerCase();
var b = /(chrome)[ \/]([\w.]+)/.exec(a) || /(webkit)[ \/]([\w.]+)/.exec(a) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a) || /(msie) ([\w.]+)/.exec(a) || a.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a) || [];
return {
browser: b[1] || "",
version: b[2] || "0"
}
};
d = jQueryAbd.uaMatch(navigator.userAgent);
browser = {};
if (d.browser) {
browser[d.browser] = true;
browser.version = d.version
}
if (browser.chrome) {
browser.webkit = true
} else if (browser.webkit) {
browser.safari = true
}
jQueryAbd.browser = browser;
jQueryAbd.sub = function() {
function jQuerySub(a, b) {
return new jQuerySub.fn.init(a, b)
}
jQueryAbd.extend(true, jQuerySub, this);
jQuerySub.superclass = this;
jQuerySub.fn = jQuerySub.prototype = this();
jQuerySub.fn.constructor = jQuerySub;
jQuerySub.sub = this.sub;
jQuerySub.fn.init = function init(a, b) {
if (b && b instanceof jQueryAbd && !(b instanceof jQuerySub)) {
b = jQuerySub(b)
}
return jQueryAbd.fn.init.call(this, a, b, c)
};
jQuerySub.fn.init.prototype = jQuerySub.fn;
var c = jQuerySub(document);
return jQuerySub
}
})();
var A, iframe, iframeDoc, ralpha = /alpha\([^)]*\)/i,
ropacity = /opacity=([^)]*)/,
rposition = /^(top|right|bottom|left)$/,
rdisplayswap = /^(none|table(?!-c[ea]).+)/,
rmargin = /^margin/,
rnumsplit = new RegExp("^(" + core_pnum + ")(.*)$", "i"),
rnumnonpx = new RegExp("^(" + core_pnum + ")(?!px)[a-z%]+$", "i"),
rrelNum = new RegExp("^([-+])=(" + core_pnum + ")", "i"),
elemdisplay = {},
cssShow = {
position: "absolute",
visibility: "hidden",
display: "block"
},
cssNormalTransform = {
letterSpacing: 0,
fontWeight: 400
},
cssExpand = ["Top", "Right", "Bottom", "Left"],
cssPrefixes = ["Webkit", "O", "Moz", "ms"],
eventsToggle = jQueryAbd.fn.toggle;
function vendorPropName(a, b) {
if (b in a) {
return b
}
var c = b.charAt(0).toUpperCase() + b.slice(1),
origName = b,
i = cssPrefixes.length;
while (i--) {
b = cssPrefixes[i] + c;
if (b in a) {
return b
}
}
return origName
}
function isHidden(a, b) {
a = b || a;
return jQueryAbd.css(a, "display") === "none" || !jQueryAbd.contains(a.ownerDocument, a)
}
function showHide(a, b) {
var c, display, values = [],
index = 0,
length = a.length;
for (; index < length; index++) {
c = a[index];
if (!c.style) {
continue
}
values[index] = jQueryAbd._data(c, "olddisplay");
if (b) {
if (!values[index] && c.style.display === "none") {
c.style.display = ""
}
if (c.style.display === "" && isHidden(c)) {
values[index] = jQueryAbd._data(c, "olddisplay", css_defaultDisplay(c.nodeName))
}
} else {
display = A(c, "display");
if (!values[index] && display !== "none") {
jQueryAbd._data(c, "olddisplay", display)
}
}
}
for (index = 0; index < length; index++) {
c = a[index];
if (!c.style) {
continue
}
if (!b || c.style.display === "none" || c.style.display === "") {
c.style.display = b ? values[index] || "" : "none"
}
}
return a
}
jQueryAbd.fn.extend({
css: function(d, e) {
return jQueryAbd.access(this, function(a, b, c) {
return c !== q ? jQueryAbd.style(a, b, c) : jQueryAbd.css(a, b)
}, d, e, arguments.length > 1)
},
show: function() {
return showHide(this, true)
},
hide: function() {
return showHide(this)
},
toggle: function(a, b) {
var c = typeof a === "boolean";
if (jQueryAbd.isFunction(a) && jQueryAbd.isFunction(b)) {
return eventsToggle.apply(this, arguments)
}
return this.each(function() {
if (c ? a : isHidden(this)) {
jQueryAbd(this).show()
} else {
jQueryAbd(this).hide()
}
})
}
});
jQueryAbd.extend({
cssHooks: {
opacity: {
get: function(a, b) {
if (b) {
var c = A(a, "opacity");
return c === "" ? "1" : c
}
}
}
},
cssNumber: {
"fillOpacity": true,
"fontWeight": true,
"lineHeight": true,
"opacity": true,
"orphans": true,
"widows": true,
"zIndex": true,
"zoom": true
},
cssProps: {
"float": jQueryAbd.support.cssFloat ? "cssFloat" : "styleFloat"
},
style: function(a, b, c, d) {
if (!a || a.nodeType === 3 || a.nodeType === 8 || !a.style) {
return
}
var f, type, hooks, origName = jQueryAbd.camelCase(b),
style = a.style;
b = jQueryAbd.cssProps[origName] || (jQueryAbd.cssProps[origName] = vendorPropName(style, origName));
hooks = jQueryAbd.cssHooks[b] || jQueryAbd.cssHooks[origName];
if (c !== q) {
type = typeof c;
if (type === "string" && (f = rrelNum.exec(c))) {
c = (f[1] + 1) * f[2] + parseFloat(jQueryAbd.css(a, b));
type = "number"
}
if (c == null || type === "number" && isNaN(c)) {
return
}
if (type === "number" && !jQueryAbd.cssNumber[origName]) {
c += "px"
}
if (!hooks || !("set" in hooks) || (c = hooks.set(a, c, d)) !== q) {
try {
style[b] = c
} catch (e) {}
}
} else {
if (hooks && "get" in hooks && (f = hooks.get(a, false, d)) !== q) {
return f
}
return style[b]
}
},
css: function(a, b, c, d) {
var e, num, hooks, origName = jQueryAbd.camelCase(b);
b = jQueryAbd.cssProps[origName] || (jQueryAbd.cssProps[origName] = vendorPropName(a.style, origName));
hooks = jQueryAbd.cssHooks[b] || jQueryAbd.cssHooks[origName];
if (hooks && "get" in hooks) {
e = hooks.get(a, true, d)
}
if (e === q) {
e = A(a, b)
}
if (e === "normal" && b in cssNormalTransform) {
e = cssNormalTransform[b]
}
if (c || d !== q) {
num = parseFloat(e);
return c || jQueryAbd.isNumeric(num) ? num || 0 : e
}
return e
},
swap: function(a, b, c) {
var d, name, old = {};
for (name in b) {
old[name] = a.style[name];
a.style[name] = b[name]
}
d = c.call(a);
for (name in b) {
a.style[name] = old[name]
}
return d
}
});
if (o.getComputedStyle) {
A = function(a, b) {
var c, width, minWidth, maxWidth, computed = o.getComputedStyle(a, null),
style = a.style;
if (computed) {
c = computed[b];
if (c === "" && !jQueryAbd.contains(a.ownerDocument, a)) {
c = jQueryAbd.style(a, b)
}
if (rnumnonpx.test(c) && rmargin.test(b)) {
width = style.width;
minWidth = style.minWidth;
maxWidth = style.maxWidth;
style.minWidth = style.maxWidth = style.width = c;
c = computed.width;
style.width = width;
style.minWidth = minWidth;
style.maxWidth = maxWidth
}
}
return c
}
} else if (document.documentElement.currentStyle) {
A = function(a, b) {
var c, rsLeft, ret = a.currentStyle && a.currentStyle[b],
style = a.style;
if (ret == null && style && style[b]) {
ret = style[b]
}
if (rnumnonpx.test(ret) && !rposition.test(b)) {
c = style.left;
rsLeft = a.runtimeStyle && a.runtimeStyle.left;
if (rsLeft) {
a.runtimeStyle.left = a.currentStyle.left
}
style.left = b === "fontSize" ? "1em" : ret;
ret = style.pixelLeft + "px";
style.left = c;
if (rsLeft) {
a.runtimeStyle.left = rsLeft
}
}
return ret === "" ? "auto" : ret
}
}
function setPositiveNumber(a, b, c) {
var d = rnumsplit.exec(b);
return d ? Math.max(0, d[1] - (c || 0)) + (d[2] || "px") : b
}
function augmentWidthOrHeight(a, b, c, d) {
var i = c === (d ? "border" : "content") ? 4 : b === "width" ? 1 : 0,
val = 0;
for (; i < 4; i += 2) {
if (c === "margin") {
val += jQueryAbd.css(a, c + cssExpand[i], true)
}
if (d) {
if (c === "content") {
val -= parseFloat(A(a, "padding" + cssExpand[i])) || 0
}
if (c !== "margin") {
val -= parseFloat(A(a, "border" + cssExpand[i] + "Width")) || 0
}
} else {
val += parseFloat(A(a, "padding" + cssExpand[i])) || 0;
if (c !== "padding") {
val += parseFloat(A(a, "border" + cssExpand[i] + "Width")) || 0
}
}
}
return val
}
function getWidthOrHeight(a, b, c) {
var d = b === "width" ? a.offsetWidth : a.offsetHeight,
valueIsBorderBox = true,
isBorderBox = jQueryAbd.support.boxSizing && jQueryAbd.css(a, "boxSizing") === "border-box";
if (d <= 0 || d == null) {
d = A(a, b);
if (d < 0 || d == null) {
d = a.style[b]
}
if (rnumnonpx.test(d)) {
return d
}
valueIsBorderBox = isBorderBox && (jQueryAbd.support.boxSizingReliable || d === a.style[b]);
d = parseFloat(d) || 0
}
return (d + augmentWidthOrHeight(a, b, c || (isBorderBox ? "border" : "content"), valueIsBorderBox)) + "px"
}
function css_defaultDisplay(a) {
if (elemdisplay[a]) {
return elemdisplay[a]
}
var b = jQueryAbd("<" + a + ">").appendTo(document.body),
display = b.css("display");
b.remove();
if (display === "none" || display === "") {
iframe = document.body.appendChild(iframe || jQueryAbd.extend(document.createElement("iframe"), {
frameBorder: 0,
width: 0,
height: 0
}));
if (!iframeDoc || !iframe.createElement) {
iframeDoc = (iframe.contentWindow || iframe.contentDocument).document;
iframeDoc.write("<!doctype html><html><body>");
iframeDoc.close()
}
b = iframeDoc.body.appendChild(iframeDoc.createElement(a));
display = A(b, "display");
document.body.removeChild(iframe)
}
elemdisplay[a] = display;
return display
}
jQueryAbd.each(["height", "width"], function(i, d) {
jQueryAbd.cssHooks[d] = {
get: function(a, b, c) {
if (b) {
if (a.offsetWidth === 0 && rdisplayswap.test(A(a, "display"))) {
return jQueryAbd.swap(a, cssShow, function() {
return getWidthOrHeight(a, d, c)
})
} else {
return getWidthOrHeight(a, d, c)
}
}
},
set: function(a, b, c) {
return setPositiveNumber(a, b, c ? augmentWidthOrHeight(a, d, c, jQueryAbd.support.boxSizing && jQueryAbd.css(a, "boxSizing") === "border-box") : 0)
}
}
});
if (!jQueryAbd.support.opacity) {
jQueryAbd.cssHooks.opacity = {
get: function(a, b) {
return ropacity.test((b && a.currentStyle ? a.currentStyle.filter : a.style.filter) || "") ? (0.01 * parseFloat(RegExp.$1)) + "" : b ? "1" : ""
},
set: function(a, b) {
var c = a.style,
currentStyle = a.currentStyle,
opacity = jQueryAbd.isNumeric(b) ? "alpha(opacity=" + b * 100 + ")" : "",
filter = currentStyle && currentStyle.filter || c.filter || "";
c.zoom = 1;
if (b >= 1 && jQueryAbd.trim(filter.replace(ralpha, "")) === "" && c.removeAttribute) {
c.removeAttribute("filter");
if (currentStyle && !currentStyle.filter) {
return
}
}
c.filter = ralpha.test(filter) ? filter.replace(ralpha, opacity) : filter + " " + opacity
}
}
}
jQueryAbd(function() {
if (!jQueryAbd.support.reliableMarginRight) {
jQueryAbd.cssHooks.marginRight = {
get: function(a, b) {
return jQueryAbd.swap(a, {
"display": "inline-block"
}, function() {
if (b) {
return A(a, "marginRight")
}
})
}
}
}
if (!jQueryAbd.support.pixelPosition && jQueryAbd.fn.position) {
jQueryAbd.each(["top", "left"], function(i, d) {
jQueryAbd.cssHooks[d] = {
get: function(a, b) {
if (b) {
var c = A(a, d);
return rnumnonpx.test(c) ? jQueryAbd(a).position()[d] + "px" : c
}
}
}
})
}
});
if (jQueryAbd.expr && jQueryAbd.expr.filters) {
jQueryAbd.expr.filters.hidden = function(a) {
return (a.offsetWidth === 0 && a.offsetHeight === 0) || (!jQueryAbd.support.reliableHiddenOffsets && ((a.style && a.style.display) || A(a, "display")) === "none")
};
jQueryAbd.expr.filters.visible = function(a) {
return !jQueryAbd.expr.filters.hidden(a)
}
}
jQueryAbd.each({
margin: "",
padding: "",
border: "Width"
}, function(b, c) {
jQueryAbd.cssHooks[b + c] = {
expand: function(a) {
var i, parts = typeof a === "string" ? a.split(" ") : [a],
expanded = {};
for (i = 0; i < 4; i++) {
expanded[b + cssExpand[i] + c] = parts[i] || parts[i - 2] || parts[0]
}
return expanded
}
};
if (!rmargin.test(b)) {
jQueryAbd.cssHooks[b + c].set = setPositiveNumber
}
});
var B = /%20/g,
rbracket = /\[\]$/,
rCRLF = /\r?\n/g,
rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
rselectTextarea = /^(?:select|textarea)/i;
jQueryAbd.fn.extend({
serialize: function() {
return jQueryAbd.param(this.serializeArray())
},
serializeArray: function() {
return this.map(function() {
return this.elements ? jQueryAbd.makeArray(this.elements) : this
}).filter(function() {
return this.name && !this.disabled && (this.checked || rselectTextarea.test(this.nodeName) || rinput.test(this.type))
}).map(function(i, b) {
var c = jQueryAbd(this).val();
return c == null ? null : jQueryAbd.isArray(c) ? jQueryAbd.map(c, function(a, i) {
return {
name: b.name,
value: a.replace(rCRLF, "\r\n")
}
}) : {
name: b.name,
value: c.replace(rCRLF, "\r\n")
}
}).get()
}
});
var C, timerId, rfxtypes = /^(?:toggle|show|hide)$/,
rfxnum = new RegExp("^(?:([-+])=|)(" + core_pnum + ")([a-z%]*)$", "i"),
rrun = /queueHooks$/,
animationPrefilters = [defaultPrefilter],
tweeners = {
"*": [function(a, b) {
var c, unit, prevScale, tween = this.createTween(a, b),
parts = rfxnum.exec(b),
target = tween.cur(),
start = +target || 0,
scale = 1;
if (parts) {
c = +parts[2];
unit = parts[3] || (jQueryAbd.cssNumber[a] ? "" : "px");
if (unit !== "px" && start) {
start = jQueryAbd.css(tween.elem, a, true) || c || 1;
do {
prevScale = scale = scale || ".5";
start = start / scale;
jQueryAbd.style(tween.elem, a, start + unit);
scale = tween.cur() / target
} while (scale !== 1 && scale !== prevScale)
}
tween.unit = unit;
tween.start = start;
tween.end = parts[1] ? start + (parts[1] + 1) * c : c
}
return tween
}]
};
function createFxNow() {
setTimeout(function() {
C = q
}, 0);
return (C = jQueryAbd.now())
}
function createTweens(d, e) {
jQueryAbd.each(e, function(a, b) {
var c = (tweeners[a] || []).concat(tweeners["*"]),
index = 0,
length = c.length;
for (; index < length; index++) {
if (c[index].call(d, a, b)) {
return
}
}
})
}
function Animation(e, f, g) {
var h, index = 0,
tweenerIndex = 0,
length = animationPrefilters.length,
deferred = jQueryAbd.Deferred().always(function() {
delete tick.elem
}),
tick = function() {
var a = C || createFxNow(),
remaining = Math.max(0, animation.startTime + animation.duration - a),
percent = 1 - (remaining / animation.duration || 0),
index = 0,
length = animation.tweens.length;
for (; index < length; index++) {
animation.tweens[index].run(percent)
}
deferred.notifyWith(e, [animation, percent, remaining]);
if (percent < 1 && length) {
return remaining
} else {
deferred.resolveWith(e, [animation]);
return false
}
},
animation = deferred.promise({
elem: e,
props: jQueryAbd.extend({}, f),
opts: jQueryAbd.extend(true, {
specialEasing: {}
}, g),
originalProperties: f,
originalOptions: g,
startTime: C || createFxNow(),
duration: g.duration,
tweens: [],
createTween: function(a, b, c) {
var d = jQueryAbd.Tween(e, animation.opts, a, b, animation.opts.specialEasing[a] || animation.opts.easing);
animation.tweens.push(d);
return d
},
stop: function(a) {
var b = 0,
length = a ? animation.tweens.length : 0;
for (; b < length; b++) {
animation.tweens[b].run(1)
}
if (a) {
deferred.resolveWith(e, [animation, a])
} else {
deferred.rejectWith(e, [animation, a])
}
return this
}
}),
props = animation.props;
propFilter(props, animation.opts.specialEasing);
for (; index < length; index++) {
h = animationPrefilters[index].call(animation, e, props, animation.opts);
if (h) {
return h
}
}
createTweens(animation, props);
if (jQueryAbd.isFunction(animation.opts.start)) {
animation.opts.start.call(e, animation)
}
jQueryAbd.fx.timer(jQueryAbd.extend(tick, {
anim: animation,
queue: animation.opts.queue,
elem: e
}));
return animation.progress(animation.opts.progress).done(animation.opts.done, animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always)
}
function propFilter(a, b) {
var c, name, easing, value, hooks;
for (c in a) {
name = jQueryAbd.camelCase(c);
easing = b[name];
value = a[c];
if (jQueryAbd.isArray(value)) {
easing = value[1];
value = a[c] = value[0]
}
if (c !== name) {
a[name] = value;
delete a[c]
}
hooks = jQueryAbd.cssHooks[name];
if (hooks && "expand" in hooks) {
value = hooks.expand(value);
delete a[name];
for (c in value) {
if (!(c in a)) {
a[c] = value[c];
b[c] = easing
}
}
} else {
b[name] = easing
}
}
}
jQueryAbd.Animation = jQueryAbd.extend(Animation, {
tweener: function(a, b) {
if (jQueryAbd.isFunction(a)) {
b = a;
a = ["*"]
} else {
a = a.split(" ")
}
var c, index = 0,
length = a.length;
for (; index < length; index++) {
c = a[index];
tweeners[c] = tweeners[c] || [];
tweeners[c].unshift(b)
}
},
prefilter: function(a, b) {
if (b) {
animationPrefilters.unshift(a)
} else {
animationPrefilters.push(a)
}
}
});
function defaultPrefilter(b, c, d) {
var e, prop, value, length, dataShow, tween, hooks, oldfire, anim = this,
style = b.style,
orig = {},
handled = [],
hidden = b.nodeType && isHidden(b);
if (!d.queue) {
hooks = jQueryAbd._queueHooks(b, "fx");
if (hooks.unqueued == null) {
hooks.unqueued = 0;
oldfire = hooks.empty.fire;
hooks.empty.fire = function() {
if (!hooks.unqueued) {
oldfire()
}
}
}
hooks.unqueued++;
anim.always(function() {
anim.always(function() {
hooks.unqueued--;
if (!jQueryAbd.queue(b, "fx").length) {
hooks.empty.fire()
}
})
})
}
if (b.nodeType === 1 && ("height" in c || "width" in c)) {
d.overflow = [style.overflow, style.overflowX, style.overflowY];
if (jQueryAbd.css(b, "display") === "inline" && jQueryAbd.css(b, "float") === "none") {
if (!jQueryAbd.support.inlineBlockNeedsLayout || css_defaultDisplay(b.nodeName) === "inline") {
style.display = "inline-block"
} else {
style.zoom = 1
}
}
}
if (d.overflow) {
style.overflow = "hidden";
if (!jQueryAbd.support.shrinkWrapBlocks) {
anim.done(function() {
style.overflow = d.overflow[0];
style.overflowX = d.overflow[1];
style.overflowY = d.overflow[2]
})
}
}
for (e in c) {
value = c[e];
if (rfxtypes.exec(value)) {
delete c[e];
if (value === (hidden ? "hide" : "show")) {
continue
}
handled.push(e)
}
}
length = handled.length;
if (length) {
dataShow = jQueryAbd._data(b, "fxshow") || jQueryAbd._data(b, "fxshow", {});
if (hidden) {
jQueryAbd(b).show()
} else {
anim.done(function() {
jQueryAbd(b).hide()
})
}
anim.done(function() {
var a;
jQueryAbd.removeData(b, "fxshow", true);
for (a in orig) {
jQueryAbd.style(b, a, orig[a])
}
});
for (e = 0; e < length; e++) {
prop = handled[e];
tween = anim.createTween(prop, hidden ? dataShow[prop] : 0);
orig[prop] = dataShow[prop] || jQueryAbd.style(b, prop);
if (!(prop in dataShow)) {
dataShow[prop] = tween.start;
if (hidden) {
tween.end = tween.start;
tween.start = prop === "width" || prop === "height" ? 1 : 0
}
}
}
}
}
function Tween(a, b, c, d, e) {
return new Tween.prototype.init(a, b, c, d, e)
}
jQueryAbd.Tween = Tween;
Tween.prototype = {
constructor: Tween,
init: function(a, b, c, d, e, f) {
this.elem = a;
this.prop = c;
this.easing = e || "swing";
this.options = b;
this.start = this.now = this.cur();
this.end = d;
this.unit = f || (jQueryAbd.cssNumber[c] ? "" : "px")
},
cur: function() {
var a = Tween.propHooks[this.prop];
return a && a.get ? a.get(this) : Tween.propHooks._default.get(this)
},
run: function(a) {
var b, hooks = Tween.propHooks[this.prop];
if (this.options.duration) {
this.pos = b = jQueryAbd.easing[this.easing](a, this.options.duration * a, 0, 1, this.options.duration)
} else {
this.pos = b = a
}
this.now = (this.end - this.start) * b + this.start;
if (this.options.step) {
this.options.step.call(this.elem, this.now, this)
}
if (hooks && hooks.set) {
hooks.set(this)
} else {
Tween.propHooks._default.set(this)
}
return this
}
};
Tween.prototype.init.prototype = Tween.prototype;
Tween.propHooks = {
_default: {
get: function(a) {
var b;
if (a.elem[a.prop] != null && (!a.elem.style || a.elem.style[a.prop] == null)) {
return a.elem[a.prop]
}
b = jQueryAbd.css(a.elem, a.prop, false, "");
return !b || b === "auto" ? 0 : b
},
set: function(a) {
if (jQueryAbd.fx.step[a.prop]) {
jQueryAbd.fx.step[a.prop](a)
} else if (a.elem.style && (a.elem.style[jQueryAbd.cssProps[a.prop]] != null || jQueryAbd.cssHooks[a.prop])) {
jQueryAbd.style(a.elem, a.prop, a.now + a.unit)
} else {
a.elem[a.prop] = a.now
}
}
}
};
Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
set: function(a) {
if (a.elem.nodeType && a.elem.parentNode) {
a.elem[a.prop] = a.now
}
}
};
jQueryAbd.each(["toggle", "show", "hide"], function(i, d) {
var e = jQueryAbd.fn[d];
jQueryAbd.fn[d] = function(a, b, c) {
return a == null || typeof a === "boolean" || (!i && jQueryAbd.isFunction(a) && jQueryAbd.isFunction(b)) ? e.apply(this, arguments) : this.animate(genFx(d, true), a, b, c)
}
});
jQueryAbd.fn.extend({
fadeTo: function(a, b, c, d) {
return this.filter(isHidden).css("opacity", 0).show().end().animate({
opacity: b
}, a, c, d)
},
animate: function(b, c, d, e) {
var f = jQueryAbd.isEmptyObject(b),
optall = jQueryAbd.speed(c, d, e),
doAnimation = function() {
var a = Animation(this, jQueryAbd.extend({}, b), optall);
if (f) {
a.stop(true)
}
};
return f || optall.queue === false ? this.each(doAnimation) : this.queue(optall.queue, doAnimation)
},
stop: function(c, d, e) {
var f = function(a) {
var b = a.stop;
delete a.stop;
b(e)
};
if (typeof c !== "string") {
e = d;
d = c;
c = q
}
if (d && c !== false) {
this.queue(c || "fx", [])
}
return this.each(function() {
var a = true,
index = c != null && c + "queueHooks",
timers = jQueryAbd.timers,
data = jQueryAbd._data(this);
if (index) {
if (data[index] && data[index].stop) {
f(data[index])
}
} else {
for (index in data) {
if (data[index] && data[index].stop && rrun.test(index)) {
f(data[index])
}
}
}
for (index = timers.length; index--;) {
if (timers[index].elem === this && (c == null || timers[index].queue === c)) {
timers[index].anim.stop(e);
a = false;
timers.splice(index, 1)
}
}
if (a || !e) {
jQueryAbd.dequeue(this, c)
}
})
}
});
function genFx(a, b) {
var c, attrs = {
height: a
},
i = 0;
b = b ? 1 : 0;
for (; i < 4; i += 2 - b) {
c = cssExpand[i];
attrs["margin" + c] = attrs["padding" + c] = a
}
if (b) {
attrs.opacity = attrs.width = a
}
return attrs
}
jQueryAbd.each({
slideDown: genFx("show"),
slideUp: genFx("hide"),
slideToggle: genFx("toggle"),
fadeIn: {
opacity: "show"
},
fadeOut: {
opacity: "hide"
},
fadeToggle: {
opacity: "toggle"
}
}, function(d, e) {
jQueryAbd.fn[d] = function(a, b, c) {
return this.animate(e, a, b, c)
}
});
jQueryAbd.speed = function(a, b, c) {
var d = a && typeof a === "object" ? jQueryAbd.extend({}, a) : {
complete: c || !c && b || jQueryAbd.isFunction(a) && a,
duration: a,
easing: c && b || b && !jQueryAbd.isFunction(b) && b
};
d.duration = jQueryAbd.fx.off ? 0 : typeof d.duration === "number" ? d.duration : d.duration in jQueryAbd.fx.speeds ? jQueryAbd.fx.speeds[d.duration] : jQueryAbd.fx.speeds._default;
if (d.queue == null || d.queue === true) {
d.queue = "fx"
}
d.old = d.complete;
d.complete = function() {
if (jQueryAbd.isFunction(d.old)) {
d.old.call(this)
}
if (d.queue) {
jQueryAbd.dequeue(this, d.queue)
}
};
return d
};
jQueryAbd.easing = {
linear: function(p) {
return p
},
swing: function(p) {
return 0.5 - Math.cos(p * Math.PI) / 2
}
};
jQueryAbd.timers = [];
jQueryAbd.fx = Tween.prototype.init;
jQueryAbd.fx.tick = function() {
var a, timers = jQueryAbd.timers,
i = 0;
for (; i < timers.length; i++) {
a = timers[i];
if (!a() && timers[i] === a) {
timers.splice(i--, 1)
}
}
if (!timers.length) {
jQueryAbd.fx.stop()
}
};
jQueryAbd.fx.timer = function(a) {
if (a() && jQueryAbd.timers.push(a) && !timerId) {
timerId = setInterval(jQueryAbd.fx.tick, jQueryAbd.fx.interval)
}
};
jQueryAbd.fx.interval = 13;
jQueryAbd.fx.stop = function() {
clearInterval(timerId);
timerId = null
};
jQueryAbd.fx.speeds = {
slow: 600,
fast: 200,
_default: 400
};
jQueryAbd.fx.step = {};
if (jQueryAbd.expr && jQueryAbd.expr.filters) {
jQueryAbd.expr.filters.animated = function(b) {
return jQueryAbd.grep(jQueryAbd.timers, function(a) {
return b === a.elem
}).length
}
}
var D = /^(?:body|html)$/i;
jQueryAbd.fn.offset = function(a) {
if (arguments.length) {
return a === q ? this : this.each(function(i) {
jQueryAbd.offset.setOffset(this, a, i)
})
}
var b, docElem, body, win, clientTop, clientLeft, scrollTop, scrollLeft, top, left, elem = this[0],
doc = elem && elem.ownerDocument;
if (!doc) {
return
}
if ((body = doc.body) === elem) {
return jQueryAbd.offset.bodyOffset(elem)
}
docElem = doc.documentElement;
if (!jQueryAbd.contains(docElem, elem)) {
return {
top: 0,
left: 0
}
}
b = elem.getBoundingClientRect();
win = getWindow(doc);
clientTop = docElem.clientTop || body.clientTop || 0;
clientLeft = docElem.clientLeft || body.clientLeft || 0;
scrollTop = win.pageYOffset || docElem.scrollTop;
scrollLeft = win.pageXOffset || docElem.scrollLeft;
top = b.top + scrollTop - clientTop;
left = b.left + scrollLeft - clientLeft;
return {
top: top,
left: left
}
};
jQueryAbd.offset = {
bodyOffset: function(a) {
var b = a.offsetTop,
left = a.offsetLeft;
if (jQueryAbd.support.doesNotIncludeMarginInBodyOffset) {
b += parseFloat(jQueryAbd.css(a, "marginTop")) || 0;
left += parseFloat(jQueryAbd.css(a, "marginLeft")) || 0
}
return {
top: b,
left: left
}
},
setOffset: function(a, b, i) {
var c = jQueryAbd.css(a, "position");
if (c === "static") {
a.style.position = "relative"
}
var d = jQueryAbd(a),
curOffset = d.offset(),
curCSSTop = jQueryAbd.css(a, "top"),
curCSSLeft = jQueryAbd.css(a, "left"),
calculatePosition = (c === "absolute" || c === "fixed") && jQueryAbd.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
props = {},
curPosition = {},
curTop, curLeft;
if (calculatePosition) {
curPosition = d.position();
curTop = curPosition.top;
curLeft = curPosition.left
} else {
curTop = parseFloat(curCSSTop) || 0;
curLeft = parseFloat(curCSSLeft) || 0
}
if (jQueryAbd.isFunction(b)) {
b = b.call(a, i, curOffset)
}
if (b.top != null) {
props.top = (b.top - curOffset.top) + curTop
}
if (b.left != null) {
props.left = (b.left - curOffset.left) + curLeft
}
if ("using" in b) {
b.using.call(a, props)
} else {
d.css(props)
}
}
};
jQueryAbd.fn.extend({
position: function() {
if (!this[0]) {
return
}
var a = this[0],
offsetParent = this.offsetParent(),
offset = this.offset(),
parentOffset = D.test(offsetParent[0].nodeName) ? {
top: 0,
left: 0
} : offsetParent.offset();
offset.top -= parseFloat(jQueryAbd.css(a, "marginTop")) || 0;
offset.left -= parseFloat(jQueryAbd.css(a, "marginLeft")) || 0;
parentOffset.top += parseFloat(jQueryAbd.css(offsetParent[0], "borderTopWidth")) || 0;
parentOffset.left += parseFloat(jQueryAbd.css(offsetParent[0], "borderLeftWidth")) || 0;
return {
top: offset.top - parentOffset.top,
left: offset.left - parentOffset.left
}
},
offsetParent: function() {
return this.map(function() {
var a = this.offsetParent || document.body;
while (a && (!D.test(a.nodeName) && jQueryAbd.css(a, "position") === "static")) {
a = a.offsetParent
}
return a || document.body
})
}
});
jQueryAbd.each({
scrollLeft: "pageXOffset",
scrollTop: "pageYOffset"
}, function(f, g) {
var h = /Y/.test(g);
jQueryAbd.fn[f] = function(e) {
return jQueryAbd.access(this, function(a, b, c) {
var d = getWindow(a);
if (c === q) {
return d ? (g in d) ? d[g] : d.document.documentElement[b] : a[b]
}
if (d) {
d.scrollTo(!h ? c : jQueryAbd(d).scrollLeft(), h ? c : jQueryAbd(d).scrollTop())
} else {
a[b] = c
}
}, f, e, arguments.length, null)
}
});
function getWindow(a) {
return jQueryAbd.isWindow(a) ? a : a.nodeType === 9 ? a.defaultView || a.parentWindow : false
}
jQueryAbd.each({
Height: "height",
Width: "width"
}, function(j, k) {
jQueryAbd.each({
padding: "inner" + j,
content: k,
"": "outer" + j
}, function(h, i) {
jQueryAbd.fn[i] = function(e, f) {
var g = arguments.length && (h || typeof e !== "boolean"),
extra = h || (e === true || f === true ? "margin" : "border");
return jQueryAbd.access(this, function(a, b, c) {
var d;
if (jQueryAbd.isWindow(a)) {
return a.document.documentElement["client" + j]
}
if (a.nodeType === 9) {
d = a.documentElement;
return Math.max(a.body["scroll" + j], d["scroll" + j], a.body["offset" + j], d["offset" + j], d["client" + j])
}
return c === q ? jQueryAbd.css(a, b, c, extra) : jQueryAbd.style(a, b, c, extra)
}, k, g ? e : q, g, null)
}
})
});
o.jQueryAbd = jQueryAbd;
if (typeof define === "function" && define.amd && define.amd.jQueryAbd) {
define("ver", [], function() {
return jQueryAbd
})
}
})(window);
(function() {
function setup(A) {
A.fn._fadeIn = A.fn.fadeIn;
var B = function() {};
var C = document.documentMode || 0;
var D = A.browser.msie && ((A.browser.version < 8 && !C) || C < 8);
var E = A.browser.msie && /MSIE 6.0/.test(navigator.userAgent) && !C;
A.blockUI = function(a) {
install(window, a)
};
A.unblockUI = function(a) {
remove(window, a)
};
A.growlUI = function(a, b, c, d) {
var e = A('<div class="growlUI"></div>');
if (a) e.append('<h1>' + a + '</h1>');
if (b) e.append('<h2>' + b + '</h2>');
if (c == undefined) c = 3000;
A.blockUI({
message: e,
fadeIn: 700,
fadeOut: 1000,
centerY: false,
timeout: c,
showOverlay: false,
onUnblock: d,
css: A.blockUI.defaults.growlCSS
})
};
A.fn.block = function(b) {
var c = A.extend({}, A.blockUI.defaults, b || {});
this.each(function() {
var a = A(this);
if (c.ignoreIfBlocked && a.data('blockUI.isBlocked')) return;
a.unblock({
fadeOut: 0
})
});
return this.each(function() {
if (A.css(this, 'position') == 'static') this.style.position = 'relative';
if (A.browser.msie) this.style.zoom = 1;
install(this, b)
})
};
A.fn.unblock = function(a) {
return this.each(function() {
remove(this, a)
})
};
A.blockUI.version = 2.42;
A.blockUI.defaults = {
message: '<h1>Please wait...</h1>',
title: null,
draggable: true,
theme: false,
css: {
padding: 0,
margin: 0,
width: '30%',
top: '40%',
left: '35%',
textAlign: 'center',
color: '#000',
border: '3px solid #aaa',
backgroundColor: '#fff',
cursor: 'wait'
},
themedCSS: {
width: '30%',
top: '40%',
left: '35%'
},
overlayCSS: {
backgroundColor: '#000',
opacity: 0.6,
cursor: 'wait'
},
growlCSS: {
width: '350px',
top: '10px',
left: '',
right: '10px',
border: 'none',
padding: '5px',
opacity: 0.6,
cursor: 'default',
color: '#fff',
backgroundColor: '#000',
'-webkit-border-radius': '10px',
'-moz-border-radius': '10px',
'border-radius': '10px'
},
iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank',
forceIframe: false,
baseZ: 1000,
centerX: true,
centerY: true,
allowBodyStretch: true,
bindEvents: true,
constrainTabKey: true,
fadeIn: 200,
fadeOut: 400,
timeout: 0,
showOverlay: true,
focusInput: true,
applyPlatformOpacityRules: true,
onBlock: null,
onUnblock: null,
quirksmodeOffsetHack: 4,
blockMsgClass: 'blockMsg',
ignoreIfBlocked: false
};
var F = null;
var G = [];
function install(c, d) {
var e, themedCSS;
var f = (c == window);
var g = (d && d.message !== undefined ? d.message : undefined);
d = A.extend({}, A.blockUI.defaults, d || {});
if (d.ignoreIfBlocked && A(c).data('blockUI.isBlocked')) return;
d.overlayCSS = A.extend({}, A.blockUI.defaults.overlayCSS, d.overlayCSS || {});
e = A.extend({}, A.blockUI.defaults.css, d.css || {});
themedCSS = A.extend({}, A.blockUI.defaults.themedCSS, d.themedCSS || {});
g = g === undefined ? d.message : g;
if (f && F) remove(window, {
fadeOut: 0
});
if (g && typeof g != 'string' && (g.parentNode || g.ver)) {
var h = g.ver ? g[0] : g;
var j = {};
A(c).data('blockUI.history', j);
j.el = h;
j.parent = h.parentNode;
j.display = h.style.display;
j.position = h.style.position;
if (j.parent) j.parent.removeChild(h)
}
A(c).data('blockUI.onUnblock', d.onUnblock);
var z = d.baseZ;
var k = (A.browser.msie || d.forceIframe) ? A('<iframe class="blockUI" style="z-index:' + (z++) + ';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="' + d.iframeSrc + '"></iframe>') : A('<div class="blockUI" style="display:none"></div>');
var m = d.theme ? A('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:' + (z++) + ';display:none"></div>') : A('<div class="blockUI blockOverlay" style="z-index:' + (z++) + ';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
var n, s;
if (d.theme && f) {
s = '<div class="blockUI ' + d.blockMsgClass + ' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:' + (z + 10) + ';display:none;position:fixed">';
if (d.title) {
s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">' + (d.title || ' ') + '</div>'
}
s += '<div class="ui-widget-content ui-dialog-content"></div>';
s += '</div>'
} else if (d.theme) {
s = '<div class="blockUI ' + d.blockMsgClass + ' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:' + (z + 10) + ';display:none;position:absolute">';
if (d.title) {
s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">' + (d.title || ' ') + '</div>'
}
s += '<div class="ui-widget-content ui-dialog-content"></div>';
s += '</div>'
} else if (f) {
s = '<div class="blockUI ' + d.blockMsgClass + ' blockPage" style="z-index:' + (z + 10) + ';display:none;position:fixed"></div>'
} else {
s = '<div class="blockUI ' + d.blockMsgClass + ' blockElement" style="z-index:' + (z + 10) + ';display:none;position:absolute"></div>'
}
n = A(s);
if (g) {
if (d.theme) {
n.css(themedCSS);
n.addClass('ui-widget-content')
} else n.css(e)
}
if (!d.theme && (!d.applyPlatformOpacityRules || !(A.browser.mozilla && /Linux/.test(navigator.platform)))) m.css(d.overlayCSS);
m.css('position', f ? 'fixed' : 'absolute');
if (A.browser.msie || d.forceIframe) k.css('opacity', 0.0);
var p = [k, m, n],
jQueryAbdpar = f ? A('body') : A(c);
A.each(p, function() {
this.appendTo(jQueryAbdpar)
});
if (d.theme && d.draggable && A.fn.draggable) {
n.draggable({
handle: '.ui-dialog-titlebar',
cancel: 'li'
})
}
var q = D && (!A.boxModel || A('object,embed', f ? null : c).length > 0);
if (E || q) {
if (f && d.allowBodyStretch && A.boxModel) A('html,body').css('height', '100%');
if ((E || !A.boxModel) && !f) {
var t = sz(c, 'borderTopWidth'),
l = sz(c, 'borderLeftWidth');
var r = t ? '(0 - ' + t + ')' : 0;
var u = l ? '(0 - ' + l + ')' : 0
}
A.each([k, m, n], function(i, o) {
var s = o[0].style;
s.position = 'absolute';
if (i < 2) {
f ? s.setExpression('height', 'Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQueryAbd.boxModel?0:' + d.quirksmodeOffsetHack + ') + "px"') : s.setExpression('height', 'this.parentNode.offsetHeight + "px"');
f ? s.setExpression('width', 'jQueryAbd.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"') : s.setExpression('width', 'this.parentNode.offsetWidth + "px"');
if (u) s.setExpression('left', u);
if (r) s.setExpression('top', r)
} else if (d.centerY) {
if (f) s.setExpression('top', '(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');
s.marginTop = 0
} else if (!d.centerY && f) {
var a = (d.css && d.css.top) ? parseInt(d.css.top) : 0;
var b = '((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + ' + a + ') + "px"';
s.setExpression('top', b)
}
})
}
if (g) {
if (d.theme) n.find('.ui-widget-content').append(g);
else n.append(g);
if (g.ver || g.nodeType) A(g).show()
}
if ((A.browser.msie || d.forceIframe) && d.showOverlay) k.show();
if (d.fadeIn) {
var v = d.onBlock ? d.onBlock : B;
var w = (d.showOverlay && !g) ? v : B;
var x = g ? v : B;
if (d.showOverlay) m._fadeIn(d.fadeIn, w);
if (g) n._fadeIn(d.fadeIn, x)
} else {
if (d.showOverlay) m.show();
if (g) n.show();
if (d.onBlock) d.onBlock()
}
bind(1, c, d);
if (f) {
F = n[0];
G = A(':input:enabled:visible', F);
if (d.focusInput) setTimeout(focus, 20)
} else center(n[0], d.centerX, d.centerY);
if (d.timeout) {
var y = setTimeout(function() {
f ? A.unblockUI(d) : A(c).unblock(d)
}, d.timeout);
A(c).data('blockUI.timeout', y)
}
};
function remove(a, b) {
var c = (a == window);
var d = A(a);
var e = d.data('blockUI.history');
var f = d.data('blockUI.timeout');
if (f) {
clearTimeout(f);
d.removeData('blockUI.timeout')
}
b = A.extend({}, A.blockUI.defaults, b || {});
bind(0, a, b);
if (b.onUnblock === null) {
b.onUnblock = d.data('blockUI.onUnblock');
d.removeData('blockUI.onUnblock')
}
var g;
if (c) g = A('body').children().filter('.blockUI').add('body > .blockUI');
else g = A('.blockUI', a);
if (c) F = G = null;
if (b.fadeOut) {
g.fadeOut(b.fadeOut);
setTimeout(function() {
reset(g, e, b, a)
}, b.fadeOut)
} else reset(g, e, b, a)
};
function reset(a, b, c, d) {
a.each(function(i, o) {
if (this.parentNode) this.parentNode.removeChild(this)
});
if (b && b.el) {
b.el.style.display = b.display;
b.el.style.position = b.position;
if (b.parent) b.parent.appendChild(b.el);
A(d).removeData('blockUI.history')
}
if (typeof c.onUnblock == 'function') c.onUnblock(d, c)
};
function bind(b, a, c) {
var d = a == window,
jQueryAbdel = A(a);
if (!b && (d && !F || !d && !jQueryAbdel.data('blockUI.isBlocked'))) return;
jQueryAbdel.data('blockUI.isBlocked', b);
if (!c.bindEvents || (b && !c.showOverlay)) return;
var e = 'mousedown mouseup keydown keypress';
b ? A(document).bind(e, c, handler) : A(document).unbind(e, handler)
};
function handler(e) {
if (e.keyCode && e.keyCode == 9) {
if (F && e.data.constrainTabKey) {
var a = G;
var b = !e.shiftKey && e.target === a[a.length - 1];
var c = e.shiftKey && e.target === a[0];
if (b || c) {
setTimeout(function() {
focus(c)
}, 10);
return false
}
}
}
var d = e.data;
if (A(e.target).parents('div.' + d.blockMsgClass).length > 0) return true;
return A(e.target).parents().children().filter('div.blockUI').length == 0
};
function focus(a) {
if (!G) return;
var e = G[a === true ? G.length - 1 : 0];
if (e) e.focus()
};
function center(a, x, y) {
var p = a.parentNode,
s = a.style;
var l = ((p.offsetWidth - a.offsetWidth) / 2) - sz(p, 'borderLeftWidth');
var t = ((p.offsetHeight - a.offsetHeight) / 2) - sz(p, 'borderTopWidth');
if (x) s.left = l > 0 ? (l + 'px') : '0';
if (y) s.top = t > 0 ? (t + 'px') : '0'
};
function sz(a, p) {
return parseInt(A.css(a, p)) || 0
}
};
if (typeof define === 'function' && define.amd && define.amd.jQueryAbd) {
define(['ver'], setup)
} else {
setup(jQueryAbd)
}
})();
var swfobjectAbd = function() {
var D = "undefined",
r = "object",
S = "Shockwave Flash",
W = "ShockwaveFlash.ShockwaveFlash",
q = "application/x-shockwave-flash",
R = "SWFObjectExprInst",
x = "onreadystatechange",
O = window,
j = document,
t = navigator,
T = false,
U = [h],
o = [],
N = [],
I = [],
l, Q, E, B, J = false,
a = false,
n, G, m = true,
M = function() {
var a = typeof j.getElementById != D && typeof j.getElementsByTagName != D && typeof j.createElement != D,
ah = t.userAgent.toLowerCase(),
Y = t.platform.toLowerCase(),
ae = Y ? /win/.test(Y) : /win/.test(ah),
ac = Y ? /mac/.test(Y) : /mac/.test(ah),
af = /webkit/.test(ah) ? parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false,
X = !+"\v1",
ag = [0, 0, 0],
ab = null;
if (typeof t.plugins != D && typeof t.plugins[S] == r) {
ab = t.plugins[S].description;
if (ab && !(typeof t.mimeTypes != D && t.mimeTypes[q] && !t.mimeTypes[q].enabledPlugin)) {
T = true;
X = false;
ab = ab.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
ag[0] = parseInt(ab.replace(/^(.*)\..*$/, "$1"), 10);
ag[1] = parseInt(ab.replace(/^.*\.(.*)\s.*$/, "$1"), 10);
ag[2] = /[a-zA-Z]/.test(ab) ? parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0
}
} else {
if (typeof O.ActiveXObject != D) {
try {
var b = new ActiveXObject(W);
if (b) {
ab = b.GetVariable("$version");
if (ab) {
X = true;
ab = ab.split(" ")[1].split(",");
ag = [parseInt(ab[0], 10), parseInt(ab[1], 10), parseInt(ab[2], 10)]
}
}
} catch (Z) {}
}
}
return {
w3: a,
pv: ag,
wk: af,
ie: X,
win: ae,
mac: ac
}
}(),
k = function() {
if (!M.w3) {
return
}
if ((typeof j.readyState != D && j.readyState == "complete") || (typeof j.readyState == D && (j.getElementsByTagName("body")[0] || j.body))) {
f()
}
if (!J) {
if (typeof j.addEventListener != D) {
j.addEventListener("DOMContentLoaded", f, false)
}
if (M.ie && M.win) {
j.attachEvent(x, function() {
if (j.readyState == "complete") {
j.detachEvent(x, arguments.callee);
f()
}
});
if (O == top) {
(function() {
if (J) {
return
}
try {
j.documentElement.doScroll("left")
} catch (X) {
setTimeout(arguments.callee, 0);
return
}
f()
})()
}
}
if (M.wk) {
(function() {
if (J) {
return
}
if (!/loaded|complete/.test(j.readyState)) {
setTimeout(arguments.callee, 0);
return
}
f()
})()
}
s(f)
}
}();
function f() {
if (J) {
return
}
try {
var Z = j.getElementsByTagName("body")[0].appendChild(C("span"));
Z.parentNode.removeChild(Z)
} catch (aa) {
return
}
J = true;
var X = U.length;
for (var Y = 0; Y < X; Y++) {
U[Y]()
}
}
function K(X) {
if (J) {
X()
} else {
U[U.length] = X
}
}
function s(Y) {
if (typeof O.addEventListener != D) {
O.addEventListener("load", Y, false)
} else {
if (typeof j.addEventListener != D) {
j.addEventListener("load", Y, false)
} else {
if (typeof O.attachEvent != D) {
i(O, "onload", Y)
} else {
if (typeof O.onload == "function") {
var X = O.onload;
O.onload = function() {
X();
Y()
}
} else {
O.onload = Y
}
}
}
}
}
function h() {
if (T) {
V()
} else {
H()
}
}
function V() {
var X = j.getElementsByTagName("body")[0];
var b = C(r);
b.setAttribute("type", q);
var Z = X.appendChild(b);
if (Z) {
var Y = 0;
(function() {
if (typeof Z.GetVariable != D) {
var a = Z.GetVariable("$version");
if (a) {
a = a.split(" ")[1].split(",");
M.pv = [parseInt(a[0], 10), parseInt(a[1], 10), parseInt(a[2], 10)]
}
} else {
if (Y < 10) {
Y++;
setTimeout(arguments.callee, 10);
return
}
}
X.removeChild(b);
Z = null;
H()
})()
} else {
H()
}
}
function H() {
var a = o.length;
if (a > 0) {
for (var b = 0; b < a; b++) {
var Y = o[b].id;
var d = o[b].callbackFn;
var e = {
success: false,
id: Y
};
if (M.pv[0] > 0) {
var f = c(Y);
if (f) {
if (F(o[b].swfVersion) && !(M.wk && M.wk < 312)) {
w(Y, true);
if (d) {
e.success = true;
e.ref = z(Y);
d(e)
}
} else {
if (o[b].expressInstall && A()) {
var g = {};
g.data = o[b].expressInstall;
g.width = f.getAttribute("width") || "0";
g.height = f.getAttribute("height") || "0";
if (f.getAttribute("class")) {
g.styleclass = f.getAttribute("class")
}
if (f.getAttribute("align")) {
g.align = f.getAttribute("align")
}
var h = {};
var X = f.getElementsByTagName("param");
var i = X.length;
for (var j = 0; j < i; j++) {
if (X[j].getAttribute("name").toLowerCase() != "movie") {
h[X[j].getAttribute("name")] = X[j].getAttribute("value")
}
}
P(g, h, Y, d)
} else {
p(f);
if (d) {
d(e)
}
}
}
}
} else {
w(Y, true);
if (d) {
var Z = z(Y);
if (Z && typeof Z.SetVariable != D) {
e.success = true;
e.ref = Z
}
d(e)
}
}
}
}
}
function z(a) {
var X = null;
var Y = c(a);
if (Y && Y.nodeName == "OBJECT") {
if (typeof Y.SetVariable != D) {
X = Y
} else {
var Z = Y.getElementsByTagName(r)[0];
if (Z) {
X = Z
}
}
}
return X
}
function A() {
return !a && F("6.0.65") && (M.win || M.mac) && !(M.wk && M.wk < 312)
}
function P(b, d, X, Z) {
a = true;
E = Z || null;
B = {
success: false,
id: X
};
var e = c(X);
if (e) {
if (e.nodeName == "OBJECT") {
l = g(e);
Q = null
} else {
l = e;
Q = X
}
b.id = R;
if (typeof b.width == D || (!/%$/.test(b.width) && parseInt(b.width, 10) < 310)) {
b.width = "310"
}
if (typeof b.height == D || (!/%$/.test(b.height) && parseInt(b.height, 10) < 137)) {
b.height = "137"
}
j.title = j.title.slice(0, 47) + " - Flash Player Installation";
var f = M.ie && M.win ? "ActiveX" : "PlugIn",
ac = "MMredirectURL=" + O.location.toString().replace(/&/g, "%26") + "&MMplayerType=" + f + "&MMdoctitle=" + j.title;
if (typeof d.flashvars != D) {
d.flashvars += "&" + ac
} else {
d.flashvars = ac
}
if (M.ie && M.win && e.readyState != 4) {
var Y = C("div");
X += "SWFObjectNew";
Y.setAttribute("id", X);
e.parentNode.insertBefore(Y, e);
e.style.display = "none";
(function() {
if (e.readyState == 4) {
e.parentNode.removeChild(e)
} else {
setTimeout(arguments.callee, 10)
}
})()
}
u(b, d, X)
}
}
function p(Y) {
if (M.ie && M.win && Y.readyState != 4) {
var X = C("div");
Y.parentNode.insertBefore(X, Y);
X.parentNode.replaceChild(g(Y), X);
Y.style.display = "none";
(function() {
if (Y.readyState == 4) {
Y.parentNode.removeChild(Y)
} else {
setTimeout(arguments.callee, 10)
}
})()
} else {
Y.parentNode.replaceChild(g(Y), Y)
}
}
function g(a) {
var b = C("div");
if (M.win && M.ie) {
b.innerHTML = a.innerHTML
} else {
var Y = a.getElementsByTagName(r)[0];
if (Y) {
var c = Y.childNodes;
if (c) {
var X = c.length;
for (var Z = 0; Z < X; Z++) {
if (!(c[Z].nodeType == 1 && c[Z].nodeName == "PARAM") && !(c[Z].nodeType == 8)) {
b.appendChild(c[Z].cloneNode(true))
}
}
}
}
}
return b
}
function u(a, b, Y) {
var X, aa = c(Y);
if (M.wk && M.wk < 312) {
return X
}
if (aa) {
if (typeof a.id == D) {
a.id = Y
}
if (M.ie && M.win) {
var d = "";
for (var f in a) {
if (a[f] != Object.prototype[f]) {
if (f.toLowerCase() == "data") {
b.movie = a[f]
} else {
if (f.toLowerCase() == "styleclass") {
d += ' class="' + a[f] + '"'
} else {
if (f.toLowerCase() != "classid") {
d += " " + f + '="' + a[f] + '"'
}
}
}
}
}
var g = "";
for (var h in b) {
if (b[h] != Object.prototype[h]) {
g += '<param name="' + h + '" value="' + b[h] + '" />'
}
}
aa.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + d + ">" + g + "</object>";
N[N.length] = a.id;
X = c(a.id)
} else {
var Z = C(r);
Z.setAttribute("type", q);
for (var i in a) {
if (a[i] != Object.prototype[i]) {
if (i.toLowerCase() == "styleclass") {
Z.setAttribute("class", a[i])
} else {
if (i.toLowerCase() != "classid") {
Z.setAttribute(i, a[i])
}
}
}
}
for (var j in b) {
if (b[j] != Object.prototype[j] && j.toLowerCase() != "movie") {
e(Z, j, b[j])
}
}
aa.parentNode.replaceChild(Z, aa);
X = Z
}
}
return X
}
function e(Z, X, Y) {
var a = C("param");
a.setAttribute("name", X);
a.setAttribute("value", Y);
Z.appendChild(a)
}
function y(Y) {
var X = c(Y);
if (X && X.nodeName == "OBJECT") {
if (M.ie && M.win) {
X.style.display = "none";
(function() {
if (X.readyState == 4) {
b(Y)
} else {
setTimeout(arguments.callee, 10)
}
})()
} else {
X.parentNode.removeChild(X)
}
}
}
function b(Z) {
var Y = c(Z);
if (Y) {
for (var X in Y) {
if (typeof Y[X] == "function") {
Y[X] = null
}
}
Y.parentNode.removeChild(Y)
}
}
function c(Z) {
var X = null;
try {
X = j.getElementById(Z)
} catch (Y) {}
return X
}
function C(X) {
return j.createElement(X)
}
function i(Z, X, Y) {
Z.attachEvent(X, Y);
I[I.length] = [Z, X, Y]
}
function F(Z) {
var Y = M.pv,
X = Z.split(".");
X[0] = parseInt(X[0], 10);
X[1] = parseInt(X[1], 10) || 0;
X[2] = parseInt(X[2], 10) || 0;
return (Y[0] > X[0] || (Y[0] == X[0] && Y[1] > X[1]) || (Y[0] == X[0] && Y[1] == X[1] && Y[2] >= X[2])) ? true : false
}
function v(a, Y, b, c) {
if (M.ie && M.mac) {
return
}
var d = j.getElementsByTagName("head")[0];
if (!d) {
return
}
var X = (b && typeof b == "string") ? b : "screen";
if (c) {
n = null;
G = null
}
if (!n || G != X) {
var Z = C("style");
Z.setAttribute("type", "text/css");
Z.setAttribute("media", X);
n = d.appendChild(Z);
if (M.ie && M.win && typeof j.styleSheets != D && j.styleSheets.length > 0) {
n = j.styleSheets[j.styleSheets.length - 1]
}
G = X
}
if (M.ie && M.win) {
if (n && typeof n.addRule == r) {
n.addRule(a, Y)
}
} else {
if (n && typeof j.createTextNode != D) {
n.appendChild(j.createTextNode(a + " {" + Y + "}"))
}
}
}
function w(Z, X) {
if (!m) {
return
}
var Y = X ? "visible" : "hidden";
if (J && c(Z)) {
c(Z).style.visibility = Y
} else {
v("#" + Z, "visibility:" + Y)
}
}
function L(Y) {
var Z = /[\\\"<>\.;]/;
var X = Z.exec(Y) != null;
return X && typeof encodeURIComponent != D ? encodeURIComponent(Y) : Y
}
var d = function() {
if (M.ie && M.win) {
window.attachEvent("onunload", function() {
var a = I.length;
for (var b = 0; b < a; b++) {
I[b][0].detachEvent(I[b][1], I[b][2])
}
var Z = N.length;
for (var c = 0; c < Z; c++) {
y(N[c])
}
for (var Y in M) {
M[Y] = null
}
M = null;
for (var X in swfobjectAbd) {
swfobjectAbd[X] = null
}
swfobjectAbd = null
})
}
}();
return {
registerObject: function(a, X, b, Z) {
if (M.w3 && a && X) {
var Y = {};
Y.id = a;
Y.swfVersion = X;
Y.expressInstall = b;
Y.callbackFn = Z;
o[o.length] = Y;
w(a, false)
} else {
if (Z) {
Z({
success: false,
id: a
})
}
}
},
getObjectById: function(X) {
if (M.w3) {
return z(X)
}
},
embedSWF: function(g, h, i, j, Y, k, Z, l, m, n) {
var X = {
success: false,
id: h
};
if (M.w3 && !(M.wk && M.wk < 312) && g && h && i && j && Y) {
w(h, false);
K(function() {
i += "";
j += "";
var a = {};
if (m && typeof m === r) {
for (var b in m) {
a[b] = m[b]
}
}
a.data = g;
a.width = i;
a.height = j;
var c = {};
if (l && typeof l === r) {
for (var d in l) {
c[d] = l[d]
}
}
if (Z && typeof Z === r) {
for (var e in Z) {
if (typeof c.flashvars != D) {
c.flashvars += "&" + e + "=" + Z[e]
} else {
c.flashvars = e + "=" + Z[e]
}
}
}
if (F(Y)) {
var f = u(a, c, h);
if (a.id == h) {
w(h, true)
}
X.success = true;
X.ref = f
} else {
if (k && A()) {
a.data = k;
P(a, c, h, n);
return
} else {
w(h, true)
}
}
if (n) {
n(X)
}
})
} else {
if (n) {
n(X)
}
}
},
switchOffAutoHideShow: function() {
m = false
},
ua: M,
getFlashPlayerVersion: function() {
return {
major: M.pv[0],
minor: M.pv[1],
release: M.pv[2]
}
},
hasFlashPlayerVersion: F,
createSWF: function(Z, Y, X) {
if (M.w3) {
return u(Z, Y, X)
} else {
return undefined
}
},
showExpressInstall: function(Z, a, X, Y) {
if (M.w3 && A()) {
P(Z, a, X, Y)
}
},
removeSWF: function(X) {
if (M.w3) {
y(X)
}
},
createCSS: function(a, Z, Y, X) {
if (M.w3) {
v(a, Z, Y, X)
}
},
addDomLoadEvent: K,
addLoadEvent: s,
getQueryParamValue: function(a) {
var Z = j.location.search || j.location.hash;
if (Z) {
if (/\?/.test(Z)) {
Z = Z.split("?")[1]
}
if (a == null) {
return L(Z)
}
var Y = Z.split("&");
for (var X = 0; X < Y.length; X++) {
if (Y[X].substring(0, Y[X].indexOf("=")) == a) {
return L(Y[X].substring((Y[X].indexOf("=") + 1)))
}
}
}
return ""
},
expressInstallCallback: function() {
if (a) {
var X = c(R);
if (X && l) {
X.parentNode.replaceChild(l, X);
if (Q) {
w(Q, true);
if (M.ie && M.win) {
l.style.display = "block"
}
}
if (E) {
E(B)
}
}
a = false
}
}
}
}();
var Base64 = {
_keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
encode: function(a) {
var b = "";
var c, chr2, chr3, enc1, enc2, enc3, enc4;
var i = 0;
a = Base64._utf8_encode(a);
while (i < a.length) {
c = a.charCodeAt(i++);
chr2 = a.charCodeAt(i++);
chr3 = a.charCodeAt(i++);
enc1 = c >> 2;
enc2 = ((c & 3) << 4) | (chr2 >> 4);
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
enc4 = chr3 & 63;
if (isNaN(chr2)) {
enc3 = enc4 = 64
} else if (isNaN(chr3)) {
enc4 = 64
}
b = b + this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) + this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4)
}
return b
},
decode: function(a) {
var b = "";
var c, chr2, chr3;
var d, enc2, enc3, enc4;
var i = 0;
a = a.replace(/[^A-Za-z0-9\+\/\=]/g, "");
while (i < a.length) {
d = this._keyStr.indexOf(a.charAt(i++));
enc2 = this._keyStr.indexOf(a.charAt(i++));
enc3 = this._keyStr.indexOf(a.charAt(i++));
enc4 = this._keyStr.indexOf(a.charAt(i++));
c = (d << 2) | (enc2 >> 4);
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
chr3 = ((enc3 & 3) << 6) | enc4;
b = b + String.fromCharCode(c);
if (enc3 != 64) {
b = b + String.fromCharCode(chr2)
}
if (enc4 != 64) {
b = b + String.fromCharCode(chr3)
}
}
b = Base64._utf8_decode(b);
return b
},
_utf8_encode: function(a) {
a = a.replace(/\r\n/g, "\n");
var b = "";
for (var n = 0; n < a.length; n++) {
var c = a.charCodeAt(n);
if (c < 128) {
b += String.fromCharCode(c)
} else if ((c > 127) && (c < 2048)) {
b += String.fromCharCode((c >> 6) | 192);
b += String.fromCharCode((c & 63) | 128)
} else {
b += String.fromCharCode((c >> 12) | 224);
b += String.fromCharCode(((c >> 6) & 63) | 128);
b += String.fromCharCode((c & 63) | 128)
}
}
return b
},
_utf8_decode: function(a) {
var b = "";
var i = 0;
var c = c1 = c2 = 0;
while (i < a.length) {
c = a.charCodeAt(i);
if (c < 128) {
b += String.fromCharCode(c);
i++
} else if ((c > 191) && (c < 224)) {
c2 = a.charCodeAt(i + 1);
b += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
i += 2
} else {
c2 = a.charCodeAt(i + 1);
c3 = a.charCodeAt(i + 2);
b += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
i += 3
}
}
return b
}
};
var css = document.createElement('link'),
html_doc = document.getElementsByTagName('head')[0];
css.rel = 'stylesheet';
css.rev = 'stylesheet';
css.type = 'text/css';
css.href = 'http://media.adnetwork.vn/css/adnetwork.css';
html_doc.appendChild(css);
(function() {
CClass = function() {};
CClass.create = function(constructor) {
var k = this;
c = function() {
this._super = k;
var c = constructor.apply(this, arguments),
self = this;
for (key in c)(function(a, b) {
self[key] = typeof a != "function" || typeof b != "function" ? a : function() {
this._super = b;
return a.apply(this, arguments)
}
})(c[key], self[key])
};
c.prototype = new this;
c.prototype.constructor = c;
c.extend = this.extend || this.create;
return c
}
})();
var AmbientControl = CClass.create(function() {
var t;
return {
rotatorAd: function(c, a) {
var b = this.getCookie(c);
var l = a.length;
b = new Number(b);
if (b >= l) b = 0;
document.write(a[b]);
this.setCookie(c, b + 1, 365)
},
rotatorPercentAd: function(c, a, p, b) {
var d = this.getCookie(c);
var e = new Array();
var l = a.length;
var n = 0;
for (var i = 0; i < l; i++) {
for (var j = 0; j < p[i]; j++) {
e[n] = a[i];
n++
}
}
if (d == '') d = 0;
d = new Number(d);
if (d >= e.length) d = 0;
if (e.length > 0) {
if (b != '') jQueryAbd('#' + b).html(e[d]);
else document.write(e[d]);
this.setCookie(c, d + 1, 365)
}
},
setCookie: function(c, v, a) {
var b = new Date();
b.setDate(b.getDate() + a);
document.cookie = c + "=" + escape(v) + ((a == null) ? "" : "; expires=" + b.toUTCString())
},
getCookie: function(c) {
if (document.cookie.length > 0) {
cs = document.cookie.indexOf(c + "=");
if (cs != -1) {
cs = cs + c.length + 1;
ce = document.cookie.indexOf(";", cs);
if (ce == -1) ce = document.cookie.length;
return unescape(document.cookie.substring(cs, ce))
}
}
return ""
},
setControl: function(a, b) {
var a = swfobjectAbd.getObjectById(a);
if (a && typeof a.JStoASviaExternalInterface != "undefined") a.JStoASviaExternalInterface(b);
return
},
callControl: function(a, b, c, d) {
ract = (b == 'min') ? 'max' : 'min';
time = (b == 'min') ? d : c;
this.setControl(a, b);
clearTimeout(t);
t = setTimeout("Abd.callControl('" + a + "', '" + ract + "', " + c + ", " + d + ");", time)
},
rectClip: function(a, b) {
jQueryAbd("#" + a).css('clip', 'rect(' + b + ')')
},
rectExpand: function(a, b, w, h, c, d) {
var e = (b == 'pre') ? d - h : 0;
var f = c;
var g = d;
var i = (b == 'pre') ? c - w : 0;
this.rectClip(a, e + 'px ' + f + 'px ' + g + 'px ' + i + 'px')
},
rectAd: function(a, b, c, w, h, d, e) {
d = (d == 0) ? w : d;
e = (e == 0) ? h : e;
switch (b) {
case 'top-down':
var f = (c == 'min') ? e - 30 : e - h;
var g = d - w;
break;
case 'left-right':
var f = e - h;
var g = (c == 'min') ? d - 30 : e - h;
break
}
var i = d;
var j = e;
this.rectClip(a, f + 'px ' + i + 'px ' + j + 'px ' + g + 'px')
},
generatorFlashAd: function(a, b, w, h, c, d, e, f, g, i, j, k, l, m, n, o, p, q, r, s) {
var t = 'Alternative content';
if (d != '') {
var u = '<a href="javascript: trackingAbdClick' + g + '();"><img src="' + d + '" width="' + w + '" height="' + h + '" border="0" /></a>';
switch (l) {
case 'In_Page':
t = '<div id="abdInPageAdNoFlash">' + u + '</div>';
break;
case 'Popup':
if (m == 'top-down') {
t = '<div id="AbdFloatingAd" style="width:' + w + 'px;height:' + (h + 30) + 'px"><div class="FloatingAdHeader" style="width:' + w + 'px">' + '<div class="FloatingAdTitle" style="width:' + (w - 44) + 'px">' + '<marquee scrolldelay="100" scrollamount="3">' + e + ' - <a href="http://ambientdigital.com.vn/home/?utm_campaign=AdsByAmbientDigital&utm_source=Adnetwork&utm_medium=Online" ' + 'style="text-decoration:underline; color:#666; font-size:10px; font-family:Arial, Helvetica, sans-serif;" target="_blank">Ads by Ambient Digital</a>' + '</marquee></div><div class="FloatingAdControl">' + '<div id="ControlMin" class="FloatingAdMin" onclick="Abd.minFloatingAd(\'' + a + '\');"></div>' + '<div id="ControlClose" class="FloatingAdClose" onclick="Abd.closeFloatingAd(\'' + a + '\');"></div></div></div>' + '<div class="FloatingAdImage" style="width:' + w + 'px;height:' + h + 'px">' + u + '</div>' + '</div>'
} else {
t = '<div id="AbdSlidingAd" style="width:' + (w + 30) + 'px;height:' + h + 'px"><div class="SlidingAdRight" style="height:' + h + 'px"><div id="ControlMin" class="SlidingAdMin" onclick="Abd.minSlidingAd(\'' + a + '\');"></div>' + '<div id="ControlBar" class="SlidingAdBarMax" style="height:' + (h - 23) + 'px" onclick="Abd.minSlidingAd(\'' + a + '\');"></div></div><div class="SlidingAdCenter" style="width:' + w + 'px;height:' + h + 'px">' + '<div class="SlidingAdImage" style="width:' + w + 'px;height:' + h + 'px">' + u + '</div>' + '</div></div>'
}
break
}
setTimeout('trackingAbdImpressions' + g + '();', 15000)
}
var v = '<div id="myContent' + a + '"><p>' + t + '</p></div>';
if (l == 'In_Page') {
if (e == '') {
var x = document.createElement("div");
x.id = a;
jQueryAbd('body').append(x);
jQueryAbd("#" + a).attr("style", "display:none;width:" + w + "px;height:" + h + "px;").html(v)
} else {
jQueryAbd("#" + a).attr("style", "width:" + w + "px; height:" + h + "px;").html(v)
}
} else {
var x = document.createElement("div");
x.id = a;
jQueryAbd('body').append(x);
if (r != '') jQueryAbd("#" + a).attr("onmouseover", r + "()");
if (s != '') jQueryAbd("#" + a).attr("onmouseout", s + "()");
jQueryAbd("#" + a).attr("style", "display:none;width:" + w + "px;height:" + h + "px;").html(v)
}
var y = {
abdTitle: e,
abdCId: f,
abdBId: g,
abdPId: i,
abdWId: j,
abdZId: k,
abdEffect: l,
abdGeo: q,
abdDomain: Base64.encode(n),
abdLandingPage: Base64.encode(o)
};
var z = {
allowScriptAccess: "always",
allowDomain: "*",
quality: "high",
wmode: p
};
var A = {
id: b,
name: b
};
swfobjectAbd.embedSWF(c, "myContent" + a, w, h, "9.0.0", "http://media.adnetwork.vn/flash/expressInstall.swf", y, z, A)
},
generatorFlashDefault: function(a, b, w, h, c, d, e, f) {
var g = 'Alternative content';
if (d != '') g = '<div id="abdDefaultNoFlash"><img src="' + d + '" width="' + w + '" height="' + h + '" border="0" /></div>';
var i = '<div id="myContent' + a + '"><p>' + g + '</p></div>';
jQueryAbd("#" + a).attr("style", "width:" + w + "px; height:" + h + "px;").html(i);
var j = {
abdUserPhone: e,
abdVn: f
};
var k = {
allowScriptAccess: "always",
allowDomain: "*",
quality: "high",
wmode: "transparent"
};
var l = {
id: b,
name: b
};
swfobjectAbd.embedSWF(c, "myContent" + a, w, h, "9.0.0", "http://media.adnetwork.vn/flash/expressInstall.swf", j, k, l)
},
generatorHtmlAd: function(a, b) {
document.write('<div id="' + a + '">' + b + '</div>')
},
genHtmlAd: function(a, b, c, w, h, d) {
var e = '/zid_' + b + '/wid_' + c + '/bid_' + d + '/';
var f = '<div id="' + a + '"><iframe src="http://delivery.adnetwork.vn/247/iframe' + e + '" id="iframe' + a + '" scrolling="no" frameborder="0" allowtransparency="true" width="' + w + '" height="' + h + '"></iframe></div>';
jQueryAbd('body').append(f)
},
changeSize: function(a, w, h) {
jQueryAbd('#' + a).width(w).height(h)
},
showAd: function(a, b, c, d, e, f) {
switch (b) {
case 'bottom_left':
case 'left_bottom':
case 'left':
jQueryAbd("#" + a).css('left', '0');
break;
default:
jQueryAbd("#" + a).css('right', '0')
}
jQueryAbd("#" + a).css('display', 'block');
clearTimeout(t);
t = setTimeout("Abd.callControl('" + c + "', '" + d + "', " + e + ", " + f + ");", e)
},
closeAd: function(a, b, c) {
jQueryAbd("#" + a).fadeOut("slow");
clearTimeout(t);
t = setTimeout(c + "()", b)
},
minFloatingAd: function(a) {
jQueryAbd("#" + a).animate({
bottom: -200
}, 1000, function() {
jQueryAbd("#ControlMin").removeClass("FloatingAdMin").addClass("FloatingAdMax").attr("onclick", "Abd.maxFloatingAd('" + a + "')")
});
t = setTimeout("Abd.maxFloatingAd('" + a + "')", 20000)
},
maxFloatingAd: function(a) {
jQueryAbd("#" + a).animate({
bottom: 0
}, 1000, function() {
jQueryAbd("#ControlMin").removeClass("FloatingAdMax").addClass("FloatingAdMin").attr("onclick", "Abd.minFloatingAd('" + a + "')")
});
t = setTimeout("Abd.minFloatingAd('" + a + "')", 9000)
},
closeFloatingAd: function(a) {
jQueryAbd("#" + a).fadeOut("slow");
clearTimeout(t)
},
minSlidingAd: function(a) {
jQueryAbd("#" + a).animate({
right: -370
}, 1000, function() {
jQueryAbd("#ControlMin").removeClass("SlidingAdMin").addClass("SlidingAdClose").attr("onclick", "Abd.closeSlidingAd('" + a + "')");
jQueryAbd("#ControlBar").removeClass("SlidingAdBarMax").addClass("SlidingAdBarMin").attr("onclick", "Abd.maxSlidingAd('" + a + "')")
});
t = setTimeout("Abd.maxSlidingAd('" + a + "')", 20000)
},
maxSlidingAd: function(a) {
jQueryAbd("#" + a).animate({
right: 0
}, 1000, function() {
jQueryAbd("#ControlMin").removeClass("SlidingAdClose").addClass("SlidingAdMin").attr("onclick", "Abd.minSlidingAd('" + a + "')");
jQueryAbd("#ControlBar").removeClass("SlidingAdBarMin").addClass("SlidingAdBarMax").attr("onclick", "Abd.minSlidingAd('" + a + "')")
});
t = setTimeout("Abd.minSlidingAd('" + a + "')", 9000)
},
closeSlidingAd: function(a) {
jQueryAbd("#" + a).fadeOut("slow");
clearTimeout(t)
},
setDelay: function(a, b, c, d) {
t = setTimeout("Abd.callControl('" + a + "', '" + b + "', " + c + ", " + d + ");", c)
},
clearDelay: function() {
clearTimeout(t)
},
showOverlay: function(a, b, c, d, e) {
var f = jQueryAbd(window).height();
var g = jQueryAbd(window).width();
var h = jQueryAbd("#" + a);
var i = parseInt(c) / 2;
var j = parseInt(d) / 2;
switch (b) {
case 'top':
var k = '0px';
var l = (g / 2 - i) + 'px';
break;
case 'bottom':
var k = (f - j * 2) + 'px';
var l = (g / 2 - i) + 'px';
break;
case 'center':
var k = (f / 2 - j) + 'px';
var l = (g / 2 - i) + 'px';
break;
case 'bottom_right':
var k = (f - j * 2) + 'px';
var l = (g - i * 2) + 'px';
break
}
jQueryAbd.blockUI({
message: h,
css: {
top: k,
left: l,
border: '',
backgroundColor: ''
},
overlayCSS: {
opacity: 0,
cursor: 'default'
},
baseZ: 2147483647
});
if (jQueryAbd.browser.msie && parseInt(jQueryAbd.browser.version, 10) == 7) jQueryAbd('#' + a).css({
'position': 'fixed',
'top': k,
'left': l,
'z-index': '2147483647 !important'
});
if (e != '') setTimeout(e + "()", 60)
},
replayOverlay: function(a, b, c, d) {
if (d != 'In_Page') jQueryAbd("#" + a).fadeOut("slow");
clearTimeout(t);
if (c != '') setTimeout(c + "()", b)
},
changeBgOverlay: function(a, b, s, c, d) {
jQueryAbd('.blockOverlay').css({
'opacity': b
});
if (s) setTimeout("jQueryAbd.unblockUI({ fadeOut: 200 });", a);
if (c != '') {
if (d == 'In_Page') c + "()";
else setTimeout(c + "()", a)
}
},
showBgAd: function(c, d, e) {
jQueryAbd('#' + c).css('top', '0');
jQueryAbd('#' + d).css('top', '0');
jQueryAbd('#' + c).css('position', 'fixed');
jQueryAbd('#' + d).css('position', 'fixed');
if (!e) {
jQueryAbd('#' + c).css('position', 'absolute');
jQueryAbd('#' + d).css('position', 'absolute');
jQueryAbd(window).scroll(function() {
var a = 0;
var b = jQueryAbd(window).scrollTop();
jQueryAbd('#' + c).stop().animate({
'top': b - a
}, 700);
jQueryAbd('#' + d).stop().animate({
'top': b - a
}, 700);
a = b
})
}
jQueryAbd('#' + c).show();
jQueryAbd('#' + d).show()
},
showExpand: function(a, b, c) {
var p = jQueryAbd('#' + a).offset();
switch (c) {
case 'left':
var d = p.left - (jQueryAbd('#' + b).width() - jQueryAbd('#' + a).width());
var e = p.top;
break;
default:
var d = p.left;
var e = p.top
}
jQueryAbd('#' + b).css('left', d + 'px');
jQueryAbd('#' + b).css('top', e + 'px');
jQueryAbd('#' + b).css('position', 'absolute');
jQueryAbd('#' + b).css('z-index', '2147483647');
jQueryAbd('#' + b).show()
},
removeElement: function(a) {
jQueryAbd('#' + a).remove()
},
appendElement: function(a, s) {
jQueryAbd('#' + a).append(s)
},
showElement: function(a) {
jQueryAbd('#' + a).show()
},
hideElement: function(a) {
jQueryAbd('#' + a).hide()
},
innerElement: function(a, s) {
jQueryAbd('#' + a).html(s)
},
initVideoInline: function(a, w, h, b, c, d, e, f, g) {
var i = '<div id="' + b + '" style="position:relative;top:0;bottom:0"></div>';
jQueryAbd('#' + a).hide().wrap(i);
jQueryAbd("#" + b).prepend('<div id="AbdPlayer' + b + '" style="position:relative; width:' + w + 'px; height:' + h + 'px;"><div id="myContent' + b + '"><p>Alternative content</p></div></div>');
var j = {
autostart: '' + e + '',
volume: f,
duration: g,
controlbar: 'over',
plugins: 'http://media.adnetwork.vn/flash/jwplayer/ova-jw.swf',
config: 'http://delivery.adnetwork.vn/247/ovavideoad/wid_' + d + '/zid_' + c + '/',
height: '100%',
width: '100%'
};
var k = {
allowScriptAccess: 'always',
allowDomain: '*',
quality: 'high',
wmode: 'opaque',
allowfullscreen: 'true',
seamlesstabbing: 'true'
};
var l = {
id: 'Abd' + b + '',
name: 'Abd' + b + ''
};
swfobjectAbd.embedSWF('http://media.adnetwork.vn/flash/jwplayer/player.swf', "myContent" + b, '100%', '100%', "9.0.0", "http://media.adnetwork.vn/flash/expressInstall.swf", j, k, l)
},
removeVideoInline: function(a, b) {
jQueryAbd('#AbdPlayer' + b).remove();
jQueryAbd('#' + a).unwrap().show()
},
initVideoOverlay: function(a, w, h, b, c, d, e, f, g) {
jQueryAbd('#' + a).attr('style', 'position:relative;width:' + w + 'px;height:' + h + 'px');
var i = (b > w) ? w : b;
var j = (c > h) ? c : h;
var k = '<div style="position:absolute; bottom:40px; text-align:center; width:100%" id="' + d + '">';
switch (g) {
case 'image':
k += '<a href="javascript: trackingAbdClick' + e + '();"><img src="' + f + '" width="' + i + '" height="' + j + '" border="0"></a>';
break;
case 'flash':
k += '<div id="myContent' + d + '"><p>Alternative content</p></div>';
var l = {
abdBId: e
};
var m = {
allowScriptAccess: "always",
allowDomain: "*",
quality: "high",
wmode: trans
};
var n = {
id: "Overlay" + e,
name: "Overlay" + e
};
swfobjectAbd.embedSWF(f, "myContent" + d, i, j, "9.0.0", "http://media.adnetwork.vn/flash/expressInstall.swf", l, m, n);
break;
case 'html':
k += '<center><a href="javascript: trackingAbdClick' + e + '();">' + f + '</a></center>';
break
}
k = k + '</div>';
jQueryAbd("#" + a).append(k);
setTimeout('jQueryAbd("#' + d + '").remove()', 15000)
},
trackingLink: function(a, b) {
var c = document.createElement("iframe");
c.setAttribute('id', 'trackIFrame');
c.setAttribute('name', 'track' + a);
c.setAttribute('frameborder', '0');
c.setAttribute('allowtransparency', 'true');
c.setAttribute('height', '0');
c.setAttribute('width', '0');
c.setAttribute('marginheight', '0');
c.setAttribute('marginwidth', '0');
c.setAttribute('vspace', '0');
c.setAttribute('hspace', '0');
c.setAttribute('src', b);
jQueryAbd('body').append(c)
}
}
});
Abd = new AmbientControl;
var playerv = (typeof swfobjectAbd !== 'undefined') ? swfobjectAbd.getFlashPlayerVersion() : null;
var majorv = (typeof swfobjectAbd !== null) ? playerv.major : '';
var lang = window.navigator.language;
var char = (document.inputEncoding !== undefined ? document.inputEncoding : (document.characterSet !== undefined ? document.characterSet : (document.charset !== undefined ? document.charset : '')));
var env = 'sc_' + screen.width + '_' + screen.height + '/cd_' + screen.colorDepth + '/ur_' + Base64.encode(location.href) + '/ug_' + Base64.encode(navigator.userAgent) + '/fl_' + majorv + '/ln_' + lang + '/cs_' + char + '/';
var AbD_r = '';
for (i = 0; i < 6; i++) {
AbD_r += Math.floor(Math.random() * 9)
}
var rand = 'cb_' + AbD_r + '/';
var AmbientDelivery = CClass.create(function() {
var c = function(s) {
var a = true;
if (jQueryAbd.browser.msie && parseInt(jQueryAbd.browser.version, 10) <= 7) a = false;
if (jQueryAbd.browser.safari && !/chrome/.test(navigator.userAgent.toLowerCase())) a = false;
if (a) {
document.write('<script type="text/javascript" src="' + s + env + rand + '"></script>')
}
};
return {
InPageAd: function(a) {
var b = '';
for (x in a) {
b += x + "_" + a[x] + "/"
}
link = 'http://delivery.adnetwork.vn/247/inpagead/' + b;
return c(link)
},
PopupAd: function(a) {
var b = '';
for (x in a) {
b += x + "_" + a[x] + "/"
}
link = 'http://delivery.adnetwork.vn/247/popupad1/' + b;
return c(link)
},
BackgroundAd: function(a) {
var b = '';
for (x in a) {
b += x + "_" + a[x] + "/"
}
link = 'http://delivery.adnetwork.vn/247/backgroundad/' + b;
return c(link)
},
VideoAd: function(a) {
var b = '';
for (x in a) {
b += x + "_" + a[x] + "/"
}
link = 'http://delivery.adnetwork.vn/247/videoad/' + b;
return c(link)
},
Conversion: function(a) {
var b = '';
for (x in a) {
b += x + "_" + a[x] + "/"
}
link = 'http://conv.adnetwork.vn/247/conversion/' + b;
return c(link)
},
Retargeting: function(a) {
var b = '';
for (x in a) {
b += x + "_" + a[x] + "/"
}
link = 'http://delivery.adnetwork.vn/247/retargeting/' + b;
return c(link)
}
}
});
AbdDelivery = new AmbientDelivery();
var AmbientTracking = CClass.create(function() {
var d = function(s) {
var a = document.createElement("script"),
bd = document.getElementsByTagName("body")[0];
a.type = "text/javascript";
a.src = s + env + rand;
bd.appendChild(a)
};
return {
Impression: function(a) {
var b = '';
for (x in a) {
b += x + '_' + a[x] + '/'
}
link = 'http://imp.adnetwork.vn/247/adServer/act_impression/' + b;
return d(link)
},
Click: function(a) {
var b = false;
var c = '';
for (x in a) {
c += x + '_' + a[x] + '/';
if (x == 'urlredirect' && a[x] != '') {
b = true
}
}
link = 'http://track.adnetwork.vn/247/adServer/act_click/' + c;
if (b) return window.open(link, '_blank');
else return d(link)
},
VideoMetric: function(a) {
var b = '';
for (x in a) {
b += x + '_' + a[x] + '/'
}
link = 'http://metrics.adnetwork.vn/247/adServer/act_video_metric/' + b;
return d(link)
},
Conversion: function(a) {
var b = '';
for (x in a) {
b += x + '_' + a[x] + '/'
}
link = 'http://conv.adnetwork.vn/247/conversion/' + b;
return d(link)
},
Screenshot: function(a) {
var b = '';
for (x in a) {
b += x + '_' + a[x] + '/'
}
link = 'http://imp.adnetwork.vn/247/screenshot/' + b;
return d(link)
}
}
});
AbdTracking = new AmbientTracking();
if (typeof _abd !== 'undefined') {
if (_abd.length > 0) {
var i = _abd.length - 1;
var WebId = _abd[i][0];
var Effect = _abd[i][1];
switch (Effect) {
case 'InPage':
var ZoneId = _abd[i][2];
var DivId = _abd[i][3];
_abd.pop();
try {
AbdDelivery.InPageAd({
"zid": ZoneId,
"wid": WebId,
"div": DivId
})
} catch (e) {}
break;
case 'Popup':
var ZoneId = _abd[i][2];
_abd.pop();
try {
AbdDelivery.PopupAd({
"zid": ZoneId,
"wid": WebId
})
} catch (e) {}
break;
case 'Video':
var ZoneId = _abd[i][2];
var DivId = _abd[i][3];
var Width = _abd[i][4];
var Height = _abd[i][5];
_abd.pop();
document.write('<script type="text/javascript" src="http://media.adnetwork.vn/js/jwplayer.js"></script>');
try {
AbdDelivery.VideoAd({
"zid": ZoneId,
"wid": WebId,
"div": DivId,
"w": Width,
"h": Height
})
} catch (e) {}
break;
case 'Background':
var ZoneId = _abd[i][2];
_abd.pop();
try {
AbdDelivery.BackgroundAd({
"zid": ZoneId,
"wid": WebId
})
} catch (e) {}
break
}
}
}
function rotatorAdNetwork(c, a) {
Abd.rotatorAd(c, a)
}; |