﻿function HightlightTopNavigation() { var a = 0; var b = document.location.toString().split("/"); if (location.pathname.toLowerCase().indexOf("/services") == 0) { $(".dropMenu").addClass("mcurrent") } if (location.pathname.toLowerCase().indexOf("/case-studies") == 0) { $("#nav li:nth-child(2)").addClass("mcurrent"); $("#nav ul li:nth-child(2)").removeClass("mcurrent") } if (location.pathname.toLowerCase().indexOf("/about") == 0) { $("#nav li:nth-child(3)").addClass("mcurrent"); $("#nav ul li:nth-child(3)").removeClass("mcurrent") } if (location.pathname.toLowerCase().indexOf("/contact") == 0) { $("#nav li:nth-child(4)").addClass("mcurrent"); $("#nav ul li:nth-child(4)").removeClass("mcurrent"); $("#sendUsMessage").css("display", "none"); $("#hPn p").css("margin", "20px 0px 0px 0px") } } function footerContactFormHightligh() { var a = 0; var b = document.location.toString().split("/"); if (location.pathname.toLowerCase().indexOf("/__") == 0) { $("#footerNav a").parent().removeClass("currentTab"); $("#footerNav #bloggedDownTab").addClass("currentTab"); $("#footerContentSlider").delay(300).animate({ marginTop: -1100 }, { duration: 500, easing: "easeInOutQuint" }); $("#socialShare").css("display", "none") } } function AlightContactDropDown() { $("#callBack").animate({ top: "0px" }, { duration: 800, easing: "easeOutExpo" }); $("#topShadow").css("display", "none") } function freeTrialForm() { var a = $(".overtext"); a.each(function () { a.focus(function () { $(this).parent().find("label").animate({ left: "-80px" }, { duration: 100 }); $(this).parent().find("label").show(); $(this).blur(function () { if (this.value == this.defaultValue) { $(this).parent().find("label").animate({ left: "-80px" }, { duration: 100 }) } else { $(this).parent().find("label").hide() } }) }) }); var b = $("#callbackForm").validate({ errorPlacement: function () { }, submitHandler: function (a) { _gaq.push(["_trackEvent", "CallbackFormSubmitted", "CallbackSubmit"]); a.submit() }, highlight: function (a) { $(a).prev().addClass("error"); $(a).addClass("error") }, unhighlight: function (a) { $(a).prev().removeClass("error"); $(a).removeClass("error") } }); $(".closeCallback").click(function () { $("#callBack").animate({ top: "-400px" }, { duration: 300, easing: "easeInExpo" }) }); $("#sendUsMessage").click(function () { _gaq.push(["_trackEvent", "SendusMessage", "SendusMessageHeaderButtonClicked"]); if ($("#casestudyVideo").length > 0) { $("#callBack").animate({ top: "120px" }, { duration: 800, easing: "easeOutExpo" }) } else if ($("#indexBannerWrapper").length > 0) { $("#callBack").animate({ top: "0px" }, { duration: 800, easing: "easeOutExpo" }) } else { $("#callBack").animate({ top: "15px" }, { duration: 800, easing: "easeOutExpo" }) } }) } function fbWall() { $("#live-demo").fbWall({ id: "AlightDesignAgency", accessToken: "206158599425293|732f9a192f35bc9be453235f.1-730771356|5GRR157dhF3IbIVQfsZjQKyR7hc", showGuestEntries: false, showComments: false, max: 2, timeConversion: 24 }) } (function (a, b) { function o(a) { return q.isWindow(a) ? a : a.nodeType === 9 ? a.defaultView || a.parentWindow : false } function n(a) { if (!bB[a]) { var b = q("<" + a + ">").appendTo("body"), c = b.css("display"); b.remove(); if (c === "none" || c === "") c = "block"; bB[a] = c } return bB[a] } function m(a, b) { var c = {}; q.each(bF.concat.apply([], bF.slice(0, b)), function () { c[this] = a }); return c } function l(a, b, c, d) { if (q.isArray(b) && b.length) q.each(b, function (b, e) { c || bt.test(a) ? d(a, e) : l(a + "[" + (typeof e === "object" || q.isArray(e) ? b : "") + "]", e, c, d) }); else if (!c && b != null && typeof b === "object") q.isEmptyObject(b) ? d(a, "") : q.each(b, function (b, e) { l(a + "[" + b + "]", e, c, d) }); else d(a, b) } function k(a, b, c) { var d = b === "width" ? a.offsetWidth : a.offsetHeight; if (c === "border") return d; q.each(b === "width" ? bj : bk, function () { c || (d -= parseFloat(q.css(a, "padding" + this)) || 0); if (c === "margin") d += parseFloat(q.css(a, "margin" + this)) || 0; else d -= parseFloat(q.css(a, "border" + this + "Width")) || 0 }); return d } function j(a, b) { b.src ? q.ajax({ url: b.src, async: false, dataType: "script" }) : q.globalEval(b.text || b.textContent || b.innerHTML || ""); b.parentNode && b.parentNode.removeChild(b) } function i(a, b) { var c = 0; b.each(function () { if (this.nodeName === (a[c] && a[c].nodeName)) { var b = q.data(a[c++]), d = q.data(this, b); if (b = b && b.events) { delete d.handle; d.events = {}; for (var e in b) for (var f in b[e]) q.event.add(this, e, b[e][f], b[e][f].data) } } }) } function h(a, b, c) { if (q.isFunction(b)) return q.grep(a, function (a, d) { return !!b.call(a, d, a) === c }); else if (b.nodeType) return q.grep(a, function (a) { return a === b === c }); else if (typeof b === "string") { var d = q.grep(a, function (a) { return a.nodeType === 1 }); if (R.test(b)) return q.filter(b, d, !c); else b = q.filter(b, d) } return q.grep(a, function (a) { return q.inArray(a, b) >= 0 === c }) } function g(a, b) { return (a && a !== "*" ? a + "." : "") + b.replace(D, "`").replace(E, "&") } function f(a) { var b, c, d = [], e = [], f, g, h, i, j, k, l, m; g = q.data(this, this.nodeType ? "events" : "__events__"); if (typeof g === "function") g = g.events; if (!(a.liveFired === this || !g || !g.live || a.button && a.type === "click")) { if (a.namespace) m = RegExp("(^|\\.)" + a.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)"); a.liveFired = this; var n = g.live.slice(0); for (i = 0; i < n.length; i++) { g = n[i]; g.origType.replace(B, "") === a.type ? e.push(g.selector) : n.splice(i--, 1) } e = q(a.target).closest(e, a.currentTarget); j = 0; for (k = e.length; j < k; j++) { l = e[j]; for (i = 0; i < n.length; i++) { g = n[i]; if (l.selector === g.selector && (!m || m.test(g.namespace))) { h = l.elem; f = null; if (g.preType === "mouseenter" || g.preType === "mouseleave") { a.type = g.preType; f = q(a.relatedTarget).closest(g.selector)[0] } if (!f || f !== h) d.push({ elem: h, handleObj: g, level: l.level }) } } } j = 0; for (k = d.length; j < k; j++) { e = d[j]; if (c && e.level > c) break; a.currentTarget = e.elem; a.data = e.handleObj.data; a.handleObj = e.handleObj; m = e.handleObj.origHandler.apply(e.elem, arguments); if (m === false || a.isPropagationStopped()) { c = e.level; if (m === false) b = false } } return b } } function e(a, b, c) { c[0].type = a; return q.event.handle.apply(b, c) } function d() { return true } function c() { return false } var p = a.document, q = function () { function c() { if (!d.isReady) { try { p.documentElement.doScroll("left") } catch (a) { setTimeout(c, 1); return } d.ready() } } var d = function (a, b) { return new d.fn.init(a, b) }, e = a.jQuery, f = a.$, g, h = /^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/, i = /\S/, j = /^\s+/, k = /\s+$/, l = /\W/, m = /\d/, n = /^<(\w+)\s*\/?>(?:<\/\1>)?$/, o = /^[\],:{}\s]*$/, q = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, r = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, s = /(?:^|:|,)(?:\s*\[)+/g, t = /(webkit)[ \/]([\w.]+)/, u = /(opera)(?:.*version)?[ \/]([\w.]+)/, v = /(msie) ([\w.]+)/, w = /(mozilla)(?:.*? rv:([\w.]+))?/, x = navigator.userAgent, y = false, z = [], A, B = Object.prototype.toString, C = Object.prototype.hasOwnProperty, D = Array.prototype.push, E = Array.prototype.slice, F = String.prototype.trim, G = Array.prototype.indexOf, H = {}; d.fn = d.prototype = { init: function (a, c) { var e, f, i; if (!a) return this; if (a.nodeType) { this.context = this[0] = a; this.length = 1; return this } if (a === "body" && !c && p.body) { this.context = p; this[0] = p.body; this.selector = "body"; this.length = 1; return this } if (typeof a === "string") if ((e = h.exec(a)) && (e[1] || !c)) if (e[1]) { i = c ? c.ownerDocument || c : p; if (f = n.exec(a)) if (d.isPlainObject(c)) { a = [p.createElement(f[1])]; d.fn.attr.call(a, c, true) } else a = [i.createElement(f[1])]; else { f = d.buildFragment([e[1]], [i]); a = (f.cacheable ? f.fragment.cloneNode(true) : f.fragment).childNodes } return d.merge(this, a) } else { if ((f = p.getElementById(e[2])) && f.parentNode) { if (f.id !== e[2]) return g.find(a); this.length = 1; this[0] = f } this.context = p; this.selector = a; return this } else if (!c && !l.test(a)) { this.selector = a; this.context = p; a = p.getElementsByTagName(a); return d.merge(this, a) } else return !c || c.jquery ? (c || g).find(a) : d(c).find(a); else if (d.isFunction(a)) return g.ready(a); if (a.selector !== b) { this.selector = a.selector; this.context = a.context } return d.makeArray(a, this) }, selector: "", jquery: "1.4.3", length: 0, size: function () { return this.length }, toArray: function () { return E.call(this, 0) }, get: function (a) { return a == null ? this.toArray() : a < 0 ? this.slice(a)[0] : this[a] }, pushStack: function (a, b, c) { var e = d(); d.isArray(a) ? D.apply(e, a) : d.merge(e, a); e.prevObject = this; e.context = this.context; if (b === "find") e.selector = this.selector + (this.selector ? " " : "") + c; else if (b) e.selector = this.selector + "." + b + "(" + c + ")"; return e }, each: function (a, b) { return d.each(this, a, b) }, ready: function (a) { d.bindReady(); if (d.isReady) a.call(p, d); else z && z.push(a); return this }, eq: function (a) { return a === -1 ? this.slice(a) : this.slice(a, +a + 1) }, first: function () { return this.eq(0) }, last: function () { return this.eq(-1) }, slice: function () { return this.pushStack(E.apply(this, arguments), "slice", E.call(arguments).join(",")) }, map: function (a) { return this.pushStack(d.map(this, function (b, c) { return a.call(b, c, b) })) }, end: function () { return this.prevObject || d(null) }, push: D, sort: [].sort, splice: [].splice }; d.fn.init.prototype = d.fn; d.extend = d.fn.extend = function () { var a = arguments[0] || {}, c = 1, e = arguments.length, f = false, g, h, i, j, k; if (typeof a === "boolean") { f = a; a = arguments[1] || {}; c = 2 } if (typeof a !== "object" && !d.isFunction(a)) a = {}; if (e === c) { a = this; --c } for (; c < e; c++) if ((g = arguments[c]) != null) for (h in g) { i = a[h]; j = g[h]; if (a !== j) if (f && j && (d.isPlainObject(j) || (k = d.isArray(j)))) { if (k) { k = false; clone = i && d.isArray(i) ? i : [] } else clone = i && d.isPlainObject(i) ? i : {}; a[h] = d.extend(f, clone, j) } else if (j !== b) a[h] = j } return a }; d.extend({ noConflict: function (b) { a.$ = f; if (b) a.jQuery = e; return d }, isReady: false, readyWait: 1, ready: function (a) { a === true && d.readyWait--; if (!d.readyWait || a !== true && !d.isReady) { if (!p.body) return setTimeout(d.ready, 1); d.isReady = true; if (!(a !== true && --d.readyWait > 0)) { if (z) { for (var b = 0; a = z[b++]; ) a.call(p, d); z = null } d.fn.triggerHandler && d(p).triggerHandler("ready") } } }, bindReady: function () { if (!y) { y = true; if (p.readyState === "complete") return setTimeout(d.ready, 1); if (p.addEventListener) { p.addEventListener("DOMContentLoaded", A, false); a.addEventListener("load", d.ready, false) } else if (p.attachEvent) { p.attachEvent("onreadystatechange", A); a.attachEvent("onload", d.ready); var b = false; try { b = a.frameElement == null } catch (e) { } p.documentElement.doScroll && b && c() } } }, isFunction: function (a) { return d.type(a) === "function" }, isArray: Array.isArray || function (a) { return d.type(a) === "array" }, isWindow: function (a) { return a && typeof a === "object" && "setInterval" in a }, isNaN: function (a) { return a == null || !m.test(a) || isNaN(a) }, type: function (a) { return a == null ? String(a) : H[B.call(a)] || "object" }, isPlainObject: function (a) { if (!a || d.type(a) !== "object" || a.nodeType || d.isWindow(a)) return false; if (a.constructor && !C.call(a, "constructor") && !C.call(a.constructor.prototype, "isPrototypeOf")) return false; for (var c in a); return c === b || C.call(a, c) }, isEmptyObject: function (a) { for (var b in a) return false; return true }, error: function (a) { throw a }, parseJSON: function (b) { if (typeof b !== "string" || !b) return null; b = d.trim(b); if (o.test(b.replace(q, "@").replace(r, "]").replace(s, ""))) return a.JSON && a.JSON.parse ? a.JSON.parse(b) : (new Function("return " + b))(); else d.error("Invalid JSON: " + b) }, noop: function () { }, globalEval: function (a) { if (a && i.test(a)) { var b = p.getElementsByTagName("head")[0] || p.documentElement, c = p.createElement("script"); c.type = "text/javascript"; if (d.support.scriptEval) c.appendChild(p.createTextNode(a)); else c.text = a; b.insertBefore(c, b.firstChild); b.removeChild(c) } }, nodeName: function (a, b) { return a.nodeName && a.nodeName.toUpperCase() === b.toUpperCase() }, each: function (a, c, e) { var f, g = 0, h = a.length, i = h === b || d.isFunction(a); if (e) if (i) for (f in a) { if (c.apply(a[f], e) === false) break } else for (; g < h; ) { if (c.apply(a[g++], e) === false) break } else if (i) for (f in a) { if (c.call(a[f], f, a[f]) === false) break } else for (e = a[0]; g < h && c.call(e, g, e) !== false; e = a[++g]); return a }, trim: F ? function (a) { return a == null ? "" : F.call(a) } : function (a) { return a == null ? "" : a.toString().replace(j, "").replace(k, "") }, makeArray: function (a, b) { var c = b || []; if (a != null) { var e = d.type(a); a.length == null || e === "string" || e === "function" || e === "regexp" || d.isWindow(a) ? D.call(c, a) : d.merge(c, a) } return c }, inArray: function (a, b) { if (b.indexOf) return b.indexOf(a); for (var c = 0, d = b.length; c < d; c++) if (b[c] === a) return c; return -1 }, merge: function (a, c) { var d = a.length, e = 0; if (typeof c.length === "number") for (var f = c.length; e < f; e++) a[d++] = c[e]; else for (; c[e] !== b; ) a[d++] = c[e++]; a.length = d; return a }, grep: function (a, b, c) { var d = [], e; c = !!c; for (var f = 0, g = a.length; f < g; f++) { e = !!b(a[f], f); c !== e && d.push(a[f]) } return d }, map: function (a, b, c) { for (var d = [], e, f = 0, g = a.length; f < g; f++) { e = b(a[f], f, c); if (e != null) d[d.length] = e } return d.concat.apply([], d) }, guid: 1, proxy: function (a, c, e) { if (arguments.length === 2) if (typeof c === "string") { e = a; a = e[c]; c = b } else if (c && !d.isFunction(c)) { e = c; c = b } if (!c && a) c = function () { return a.apply(e || this, arguments) }; if (a) c.guid = a.guid = a.guid || c.guid || d.guid++; return c }, access: function (a, c, e, f, g, h) { var i = a.length; if (typeof c === "object") { for (var j in c) d.access(a, j, c[j], f, g, e); return a } if (e !== b) { f = !h && f && d.isFunction(e); for (j = 0; j < i; j++) g(a[j], c, f ? e.call(a[j], j, g(a[j], c)) : e, h); return a } return i ? g(a[0], c) : b }, now: function () { return (new Date).getTime() }, uaMatch: function (a) { a = a.toLowerCase(); a = t.exec(a) || u.exec(a) || v.exec(a) || a.indexOf("compatible") < 0 && w.exec(a) || []; return { browser: a[1] || "", version: a[2] || "0"} }, browser: {} }); d.each("Boolean Number String Function Array Date RegExp Object".split(" "), function (a, b) { H["[object " + b + "]"] = b.toLowerCase() }); x = d.uaMatch(x); if (x.browser) { d.browser[x.browser] = true; d.browser.version = x.version } if (d.browser.webkit) d.browser.safari = true; if (G) d.inArray = function (a, b) { return G.call(b, a) }; if (!/\s/.test(" ")) { j = /^[\s\xA0]+/; k = /[\s\xA0]+$/ } g = d(p); if (p.addEventListener) A = function () { p.removeEventListener("DOMContentLoaded", A, false); d.ready() }; else if (p.attachEvent) A = function () { if (p.readyState === "complete") { p.detachEvent("onreadystatechange", A); d.ready() } }; return a.jQuery = a.$ = d } (); (function () { q.support = {}; var b = p.documentElement, c = p.createElement("script"), d = p.createElement("div"), e = "script" + q.now(); d.style.display = "none"; d.innerHTML = "   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>"; var f = d.getElementsByTagName("*"), g = d.getElementsByTagName("a")[0], h = p.createElement("select"), i = h.appendChild(p.createElement("option")); if (!(!f || !f.length || !g)) { q.support = { leadingWhitespace: d.firstChild.nodeType === 3, tbody: !d.getElementsByTagName("tbody").length, htmlSerialize: !!d.getElementsByTagName("link").length, style: /red/.test(g.getAttribute("style")), hrefNormalized: g.getAttribute("href") === "/a", opacity: /^0.55$/.test(g.style.opacity), cssFloat: !!g.style.cssFloat, checkOn: d.getElementsByTagName("input")[0].value === "on", optSelected: i.selected, optDisabled: false, checkClone: false, scriptEval: false, noCloneEvent: true, boxModel: null, inlineBlockNeedsLayout: false, shrinkWrapBlocks: false, reliableHiddenOffsets: true }; h.disabled = true; q.support.optDisabled = !i.disabled; c.type = "text/javascript"; try { c.appendChild(p.createTextNode("window." + e + "=1;")) } catch (j) { } b.insertBefore(c, b.firstChild); if (a[e]) { q.support.scriptEval = true; delete a[e] } b.removeChild(c); if (d.attachEvent && d.fireEvent) { d.attachEvent("onclick", function k() { q.support.noCloneEvent = false; d.detachEvent("onclick", k) }); d.cloneNode(true).fireEvent("onclick") } d = p.createElement("div"); d.innerHTML = "<input type='radio' name='radiotest' checked='checked'/>"; b = p.createDocumentFragment(); b.appendChild(d.firstChild); q.support.checkClone = b.cloneNode(true).cloneNode(true).lastChild.checked; q(function () { var a = p.createElement("div"); a.style.width = a.style.paddingLeft = "1px"; p.body.appendChild(a); q.boxModel = q.support.boxModel = a.offsetWidth === 2; if ("zoom" in a.style) { a.style.display = "inline"; a.style.zoom = 1; q.support.inlineBlockNeedsLayout = a.offsetWidth === 2; a.style.display = ""; a.innerHTML = "<div style='width:4px;'></div>"; q.support.shrinkWrapBlocks = a.offsetWidth !== 2 } a.innerHTML = "<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>"; var b = a.getElementsByTagName("td"); q.support.reliableHiddenOffsets = b[0].offsetHeight === 0; b[0].style.display = ""; b[1].style.display = "none"; q.support.reliableHiddenOffsets = q.support.reliableHiddenOffsets && b[0].offsetHeight === 0; a.innerHTML = ""; p.body.removeChild(a).style.display = "none" }); b = function (a) { var b = p.createElement("div"); a = "on" + a; var c = a in b; if (!c) { b.setAttribute(a, "return;"); c = typeof b[a] === "function" } return c }; q.support.submitBubbles = b("submit"); q.support.changeBubbles = b("change"); b = c = d = f = g = null } })(); q.props = { "for": "htmlFor", "class": "className", readonly: "readOnly", maxlength: "maxLength", cellspacing: "cellSpacing", rowspan: "rowSpan", colspan: "colSpan", tabindex: "tabIndex", usemap: "useMap", frameborder: "frameBorder" }; var r = {}, s = /^(?:\{.*\}|\[.*\])$/; q.extend({ cache: {}, uuid: 0, expando: "jQuery" + q.now(), noData: { embed: true, object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", applet: true }, data: function (c, d, e) { if (q.acceptData(c)) { c = c == a ? r : c; var f = c.nodeType, g = f ? c[q.expando] : null, h = q.cache; if (!(f && !g && typeof d === "string" && e === b)) { if (f) g || (c[q.expando] = g = ++q.uuid); else h = c; if (typeof d === "object") if (f) h[g] = q.extend(h[g], d); else q.extend(h, d); else if (f && !h[g]) h[g] = {}; c = f ? h[g] : h; if (e !== b) c[d] = e; return typeof d === "string" ? c[d] : c } } }, removeData: function (b, c) { if (q.acceptData(b)) { b = b == a ? r : b; var d = b.nodeType, e = d ? b[q.expando] : b, f = q.cache, g = d ? f[e] : e; if (c) { if (g) { delete g[c]; d && q.isEmptyObject(g) && q.removeData(b) } } else if (d && q.support.deleteExpando) delete b[q.expando]; else if (b.removeAttribute) b.removeAttribute(q.expando); else if (d) delete f[e]; else for (var h in b) delete b[h] } }, acceptData: function (a) { if (a.nodeName) { var b = q.noData[a.nodeName.toLowerCase()]; if (b) return !(b === true || a.getAttribute("classid") !== b) } return true } }); q.fn.extend({ data: function (a, c) { if (typeof a === "undefined") return this.length ? q.data(this[0]) : null; else if (typeof a === "object") return this.each(function () { q.data(this, a) }); var d = a.split("."); d[1] = d[1] ? "." + d[1] : ""; if (c === b) { var e = this.triggerHandler("getData" + d[1] + "!", [d[0]]); if (e === b && this.length) { e = q.data(this[0], a); if (e === b && this[0].nodeType === 1) { e = this[0].getAttribute("data-" + a); if (typeof e === "string") try { e = e === "true" ? true : e === "false" ? false : e === "null" ? null : !q.isNaN(e) ? parseFloat(e) : s.test(e) ? q.parseJSON(e) : e } catch (f) { } else e = b } } return e === b && d[1] ? this.data(d[0]) : e } else return this.each(function () { var b = q(this), e = [d[0], c]; b.triggerHandler("setData" + d[1] + "!", e); q.data(this, a, c); b.triggerHandler("changeData" + d[1] + "!", e) }) }, removeData: function (a) { return this.each(function () { q.removeData(this, a) }) } }); q.extend({ queue: function (a, b, c) { if (a) { b = (b || "fx") + "queue"; var d = q.data(a, b); if (!c) return d || []; if (!d || q.isArray(c)) d = q.data(a, b, q.makeArray(c)); else d.push(c); return d } }, dequeue: function (a, b) { b = b || "fx"; var c = q.queue(a, b), d = c.shift(); if (d === "inprogress") d = c.shift(); if (d) { b === "fx" && c.unshift("inprogress"); d.call(a, function () { q.dequeue(a, b) }) } } }); q.fn.extend({ queue: function (a, c) { if (typeof a !== "string") { c = a; a = "fx" } if (c === b) return q.queue(this[0], a); return this.each(function () { var b = q.queue(this, a, c); a === "fx" && b[0] !== "inprogress" && q.dequeue(this, a) }) }, dequeue: function (a) { return this.each(function () { q.dequeue(this, a) }) }, delay: function (a, b) { a = q.fx ? q.fx.speeds[a] || a : a; b = b || "fx"; return this.queue(b, function () { var c = this; setTimeout(function () { q.dequeue(c, b) }, a) }) }, clearQueue: function (a) { return this.queue(a || "fx", []) } }); var t = /[\n\t]/g, u = /\s+/, v = /\r/g, w = /^(?:href|src|style)$/, x = /^(?:button|input)$/i, y = /^(?:button|input|object|select|textarea)$/i, z = /^a(?:rea)?$/i, A = /^(?:radio|checkbox)$/i; q.fn.extend({ attr: function (a, b) { return q.access(this, a, b, true, q.attr) }, removeAttr: function (a) { return this.each(function () { q.attr(this, a, ""); this.nodeType === 1 && this.removeAttribute(a) }) }, addClass: function (a) { if (q.isFunction(a)) return this.each(function (b) { var c = q(this); c.addClass(a.call(this, b, c.attr("class"))) }); if (a && typeof a === "string") for (var b = (a || "").split(u), c = 0, d = this.length; c < d; c++) { var e = this[c]; if (e.nodeType === 1) if (e.className) { for (var f = " " + e.className + " ", g = e.className, h = 0, i = b.length; h < i; h++) if (f.indexOf(" " + b[h] + " ") < 0) g += " " + b[h]; e.className = q.trim(g) } else e.className = a } return this }, removeClass: function (a) { if (q.isFunction(a)) return this.each(function (b) { var c = q(this); c.removeClass(a.call(this, b, c.attr("class"))) }); if (a && typeof a === "string" || a === b) for (var c = (a || "").split(u), d = 0, e = this.length; d < e; d++) { var f = this[d]; if (f.nodeType === 1 && f.className) if (a) { for (var g = (" " + f.className + " ").replace(t, " "), h = 0, i = c.length; h < i; h++) g = g.replace(" " + c[h] + " ", " "); f.className = q.trim(g) } else f.className = "" } return this }, toggleClass: function (a, b) { var c = typeof a, d = typeof b === "boolean"; if (q.isFunction(a)) return this.each(function (c) { var d = q(this); d.toggleClass(a.call(this, c, d.attr("class"), b), b) }); return this.each(function () { if (c === "string") for (var e, f = 0, g = q(this), h = b, i = a.split(u); e = i[f++]; ) { h = d ? h : !g.hasClass(e); g[h ? "addClass" : "removeClass"](e) } else if (c === "undefined" || c === "boolean") { this.className && q.data(this, "__className__", this.className); this.className = this.className || a === false ? "" : q.data(this, "__className__") || "" } }) }, hasClass: function (a) { a = " " + a + " "; for (var b = 0, c = this.length; b < c; b++) if ((" " + this[b].className + " ").replace(t, " ").indexOf(a) > -1) return true; return false }, val: function (a) { if (!arguments.length) { var c = this[0]; if (c) { if (q.nodeName(c, "option")) { var d = c.attributes.value; return !d || d.specified ? c.value : c.text } if (q.nodeName(c, "select")) { var e = c.selectedIndex; d = []; var f = c.options; c = c.type === "select-one"; if (e < 0) return null; var g = c ? e : 0; for (e = c ? e + 1 : f.length; g < e; g++) { var h = f[g]; if (h.selected && (q.support.optDisabled ? !h.disabled : h.getAttribute("disabled") === null) && (!h.parentNode.disabled || !q.nodeName(h.parentNode, "optgroup"))) { a = q(h).val(); if (c) return a; d.push(a) } } return d } if (A.test(c.type) && !q.support.checkOn) return c.getAttribute("value") === null ? "on" : c.value; return (c.value || "").replace(v, "") } return b } var i = q.isFunction(a); return this.each(function (b) { var c = q(this), d = a; if (this.nodeType === 1) { if (i) d = a.call(this, b, c.val()); if (d == null) d = ""; else if (typeof d === "number") d += ""; else if (q.isArray(d)) d = q.map(d, function (a) { return a == null ? "" : a + "" }); if (q.isArray(d) && A.test(this.type)) this.checked = q.inArray(c.val(), d) >= 0; else if (q.nodeName(this, "select")) { var e = q.makeArray(d); q("option", this).each(function () { this.selected = q.inArray(q(this).val(), e) >= 0 }); if (!e.length) this.selectedIndex = -1 } else this.value = d } }) } }); q.extend({ attrFn: { val: true, css: true, html: true, text: true, data: true, width: true, height: true, offset: true }, attr: function (a, c, d, e) { if (!a || a.nodeType === 3 || a.nodeType === 8) return b; if (e && c in q.attrFn) return q(a)[c](d); e = a.nodeType !== 1 || !q.isXMLDoc(a); var f = d !== b; c = e && q.props[c] || c; if (a.nodeType === 1) { var g = w.test(c); if ((c in a || a[c] !== b) && e && !g) { if (f) { c === "type" && x.test(a.nodeName) && a.parentNode && q.error("type property can't be changed"); if (d === null) a.nodeType === 1 && a.removeAttribute(c); else a[c] = d } if (q.nodeName(a, "form") && a.getAttributeNode(c)) return a.getAttributeNode(c).nodeValue; if (c === "tabIndex") return (c = a.getAttributeNode("tabIndex")) && c.specified ? c.value : y.test(a.nodeName) || z.test(a.nodeName) && a.href ? 0 : b; return a[c] } if (!q.support.style && e && c === "style") { if (f) a.style.cssText = "" + d; return a.style.cssText } f && a.setAttribute(c, "" + d); if (!a.attributes[c] && a.hasAttribute && !a.hasAttribute(c)) return b; a = !q.support.hrefNormalized && e && g ? a.getAttribute(c, 2) : a.getAttribute(c); return a === null ? b : a } } }); var B = /\.(.*)$/, C = /^(?:textarea|input|select)$/i, D = /\./g, E = / /g, F = /[^\w\s.|`]/g, G = function (a) { return a.replace(F, "\\$&") }, H = { focusin: 0, focusout: 0 }; q.event = { add: function (d, e, f, g) { if (!(d.nodeType === 3 || d.nodeType === 8)) { if (q.isWindow(d) && d !== a && !d.frameElement) d = a; if (f === false) f = c; var h, i; if (f.handler) { h = f; f = h.handler } if (!f.guid) f.guid = q.guid++; if (i = q.data(d)) { var j = d.nodeType ? "events" : "__events__", k = i[j], l = i.handle; if (typeof k === "function") { l = k.handle; k = k.events } else if (!k) { d.nodeType || (i[j] = i = function () { }); i.events = k = {} } if (!l) i.handle = l = function () { return typeof q !== "undefined" && !q.event.triggered ? q.event.handle.apply(l.elem, arguments) : b }; l.elem = d; e = e.split(" "); for (var m = 0, n; j = e[m++]; ) { i = h ? q.extend({}, h) : { handler: f, data: g }; if (j.indexOf(".") > -1) { n = j.split("."); j = n.shift(); i.namespace = n.slice(0).sort().join(".") } else { n = []; i.namespace = "" } i.type = j; if (!i.guid) i.guid = f.guid; var o = k[j], p = q.event.special[j] || {}; if (!o) { o = k[j] = []; if (!p.setup || p.setup.call(d, g, n, l) === false) if (d.addEventListener) d.addEventListener(j, l, false); else d.attachEvent && d.attachEvent("on" + j, l) } if (p.add) { p.add.call(d, i); if (!i.handler.guid) i.handler.guid = f.guid } o.push(i); q.event.global[j] = true } d = null } } }, global: {}, remove: function (a, b, d, e) { if (!(a.nodeType === 3 || a.nodeType === 8)) { if (d === false) d = c; var f, g, h = 0, i, j, k, l, m, n, o = a.nodeType ? "events" : "__events__", p = q.data(a), r = p && p[o]; if (p && r) { if (typeof r === "function") { p = r; r = r.events } if (b && b.type) { d = b.handler; b = b.type } if (!b || typeof b === "string" && b.charAt(0) === ".") { b = b || ""; for (f in r) q.event.remove(a, f + b) } else { for (b = b.split(" "); f = b[h++]; ) { l = f; i = f.indexOf(".") < 0; j = []; if (!i) { j = f.split("."); f = j.shift(); k = RegExp("(^|\\.)" + q.map(j.slice(0).sort(), G).join("\\.(?:.*\\.)?") + "(\\.|$)") } if (m = r[f]) if (d) { l = q.event.special[f] || {}; for (g = e || 0; g < m.length; g++) { n = m[g]; if (d.guid === n.guid) { if (i || k.test(n.namespace)) { e == null && m.splice(g--, 1); l.remove && l.remove.call(a, n) } if (e != null) break } } if (m.length === 0 || e != null && m.length === 1) { if (!l.teardown || l.teardown.call(a, j) === false) q.removeEvent(a, f, p.handle); delete r[f] } } else for (g = 0; g < m.length; g++) { n = m[g]; if (i || k.test(n.namespace)) { q.event.remove(a, l, n.handler, g); m.splice(g--, 1) } } } if (q.isEmptyObject(r)) { if (b = p.handle) b.elem = null; delete p.events; delete p.handle; if (typeof p === "function") q.removeData(a, o); else q.isEmptyObject(p) && q.removeData(a) } } } } }, trigger: function (a, c, d, e) { var f = a.type || a; if (!e) { a = typeof a === "object" ? a[q.expando] ? a : q.extend(q.Event(f), a) : q.Event(f); if (f.indexOf("!") >= 0) { a.type = f = f.slice(0, -1); a.exclusive = true } if (!d) { a.stopPropagation(); q.event.global[f] && q.each(q.cache, function () { this.events && this.events[f] && q.event.trigger(a, c, this.handle.elem) }) } if (!d || d.nodeType === 3 || d.nodeType === 8) return b; a.result = b; a.target = d; c = q.makeArray(c); c.unshift(a) } a.currentTarget = d; (e = d.nodeType ? q.data(d, "handle") : (q.data(d, "__events__") || {}).handle) && e.apply(d, c); e = d.parentNode || d.ownerDocument; try { if (!(d && d.nodeName && q.noData[d.nodeName.toLowerCase()])) if (d["on" + f] && d["on" + f].apply(d, c) === false) { a.result = false; a.preventDefault() } } catch (g) { } if (!a.isPropagationStopped() && e) q.event.trigger(a, c, e, true); else if (!a.isDefaultPrevented()) { e = a.target; var h, i = f.replace(B, ""), j = q.nodeName(e, "a") && i === "click", k = q.event.special[i] || {}; if ((!k._default || k._default.call(d, a) === false) && !j && !(e && e.nodeName && q.noData[e.nodeName.toLowerCase()])) { try { if (e[i]) { if (h = e["on" + i]) e["on" + i] = null; q.event.triggered = true; e[i]() } } catch (l) { } if (h) e["on" + i] = h; q.event.triggered = false } } }, handle: function (c) { var d, e, f; e = []; var g, h = q.makeArray(arguments); c = h[0] = q.event.fix(c || a.event); c.currentTarget = this; d = c.type.indexOf(".") < 0 && !c.exclusive; if (!d) { f = c.type.split("."); c.type = f.shift(); e = f.slice(0).sort(); f = RegExp("(^|\\.)" + e.join("\\.(?:.*\\.)?") + "(\\.|$)") } c.namespace = c.namespace || e.join("."); g = q.data(this, this.nodeType ? "events" : "__events__"); if (typeof g === "function") g = g.events; e = (g || {})[c.type]; if (g && e) { e = e.slice(0); g = 0; for (var i = e.length; g < i; g++) { var j = e[g]; if (d || f.test(j.namespace)) { c.handler = j.handler; c.data = j.data; c.handleObj = j; j = j.handler.apply(this, h); if (j !== b) { c.result = j; if (j === false) { c.preventDefault(); c.stopPropagation() } } if (c.isImmediatePropagationStopped()) break } } } return c.result }, props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), fix: function (a) { if (a[q.expando]) return a; var c = a; a = q.Event(c); for (var d = this.props.length, e; d; ) { e = this.props[--d]; a[e] = c[e] } if (!a.target) a.target = a.srcElement || p; if (a.target.nodeType === 3) a.target = a.target.parentNode; if (!a.relatedTarget && a.fromElement) a.relatedTarget = a.fromElement === a.target ? a.toElement : a.fromElement; if (a.pageX == null && a.clientX != null) { c = p.documentElement; d = p.body; a.pageX = a.clientX + (c && c.scrollLeft || d && d.scrollLeft || 0) - (c && c.clientLeft || d && d.clientLeft || 0); a.pageY = a.clientY + (c && c.scrollTop || d && d.scrollTop || 0) - (c && c.clientTop || d && d.clientTop || 0) } if (a.which == null && (a.charCode != null || a.keyCode != null)) a.which = a.charCode != null ? a.charCode : a.keyCode; if (!a.metaKey && a.ctrlKey) a.metaKey = a.ctrlKey; if (!a.which && a.button !== b) a.which = a.button & 1 ? 1 : a.button & 2 ? 3 : a.button & 4 ? 2 : 0; return a }, guid: 1e8, proxy: q.proxy, special: { ready: { setup: q.bindReady, teardown: q.noop }, live: { add: function (a) { q.event.add(this, g(a.origType, a.selector), q.extend({}, a, { handler: f, guid: a.handler.guid })) }, remove: function (a) { q.event.remove(this, g(a.origType, a.selector), a) } }, beforeunload: { setup: function (a, b, c) { if (q.isWindow(this)) this.onbeforeunload = c }, teardown: function (a, b) { if (this.onbeforeunload === b) this.onbeforeunload = null } }} }; q.removeEvent = p.removeEventListener ? function (a, b, c) { a.removeEventListener && a.removeEventListener(b, c, false) } : function (a, b, c) { a.detachEvent && a.detachEvent("on" + b, c) }; q.Event = function (a) { if (!this.preventDefault) return new q.Event(a); if (a && a.type) { this.originalEvent = a; this.type = a.type } else this.type = a; this.timeStamp = q.now(); this[q.expando] = true }; q.Event.prototype = { preventDefault: function () { this.isDefaultPrevented = d; var a = this.originalEvent; if (a) if (a.preventDefault) a.preventDefault(); else a.returnValue = false }, stopPropagation: function () { this.isPropagationStopped = d; var a = this.originalEvent; if (a) { a.stopPropagation && a.stopPropagation(); a.cancelBubble = true } }, stopImmediatePropagation: function () { this.isImmediatePropagationStopped = d; this.stopPropagation() }, isDefaultPrevented: c, isPropagationStopped: c, isImmediatePropagationStopped: c }; var I = function (a) { var b = a.relatedTarget; try { for (; b && b !== this; ) b = b.parentNode; if (b !== this) { a.type = a.data; q.event.handle.apply(this, arguments) } } catch (c) { } }, J = function (a) { a.type = a.data; q.event.handle.apply(this, arguments) }; q.each({ mouseenter: "mouseover", mouseleave: "mouseout" }, function (a, b) { q.event.special[a] = { setup: function (c) { q.event.add(this, b, c && c.selector ? J : I, a) }, teardown: function (a) { q.event.remove(this, b, a && a.selector ? J : I) } } }); if (!q.support.submitBubbles) q.event.special.submit = { setup: function () { if (this.nodeName.toLowerCase() !== "form") { q.event.add(this, "click.specialSubmit", function (a) { var c = a.target, d = c.type; if ((d === "submit" || d === "image") && q(c).closest("form").length) { a.liveFired = b; return e("submit", this, arguments) } }); q.event.add(this, "keypress.specialSubmit", function (a) { var c = a.target, d = c.type; if ((d === "text" || d === "password") && q(c).closest("form").length && a.keyCode === 13) { a.liveFired = b; return e("submit", this, arguments) } }) } else return false }, teardown: function () { q.event.remove(this, ".specialSubmit") } }; if (!q.support.changeBubbles) { var K, L = function (a) { var b = a.type, c = a.value; if (b === "radio" || b === "checkbox") c = a.checked; else if (b === "select-multiple") c = a.selectedIndex > -1 ? q.map(a.options, function (a) { return a.selected }).join("-") : ""; else if (a.nodeName.toLowerCase() === "select") c = a.selectedIndex; return c }, M = function (a, c) { var d = a.target, e, f; if (!(!C.test(d.nodeName) || d.readOnly)) { e = q.data(d, "_change_data"); f = L(d); if (a.type !== "focusout" || d.type !== "radio") q.data(d, "_change_data", f); if (!(e === b || f === e)) if (e != null || f) { a.type = "change"; a.liveFired = b; return q.event.trigger(a, c, d) } } }; q.event.special.change = { filters: { focusout: M, beforedeactivate: M, click: function (a) { var b = a.target, c = b.type; if (c === "radio" || c === "checkbox" || b.nodeName.toLowerCase() === "select") return M.call(this, a) }, keydown: function (a) { var b = a.target, c = b.type; if (a.keyCode === 13 && b.nodeName.toLowerCase() !== "textarea" || a.keyCode === 32 && (c === "checkbox" || c === "radio") || c === "select-multiple") return M.call(this, a) }, beforeactivate: function (a) { a = a.target; q.data(a, "_change_data", L(a)) } }, setup: function () { if (this.type === "file") return false; for (var a in K) q.event.add(this, a + ".specialChange", K[a]); return C.test(this.nodeName) }, teardown: function () { q.event.remove(this, ".specialChange"); return C.test(this.nodeName) } }; K = q.event.special.change.filters; K.focus = K.beforeactivate } p.addEventListener && q.each({ focus: "focusin", blur: "focusout" }, function (a, b) { function c(a) { a = q.event.fix(a); a.type = b; return q.event.trigger(a, null, a.target) } q.event.special[b] = { setup: function () { H[b]++ === 0 && p.addEventListener(a, c, true) }, teardown: function () { --H[b] === 0 && p.removeEventListener(a, c, true) } } }); q.each(["bind", "one"], function (a, c) { q.fn[c] = function (a, d, e) { if (typeof a === "object") { for (var f in a) this[c](f, d, a[f], e); return this } if (q.isFunction(d) || d === false) { e = d; d = b } var g = c === "one" ? q.proxy(e, function (a) { q(this).unbind(a, g); return e.apply(this, arguments) }) : e; if (a === "unload" && c !== "one") this.one(a, d, e); else { f = 0; for (var h = this.length; f < h; f++) q.event.add(this[f], a, g, d) } return this } }); q.fn.extend({ unbind: function (a, b) { if (typeof a === "object" && !a.preventDefault) for (var c in a) this.unbind(c, a[c]); else { c = 0; for (var d = this.length; c < d; c++) q.event.remove(this[c], a, b) } return this }, delegate: function (a, b, c, d) { return this.live(b, c, d, a) }, undelegate: function (a, b, c) { return arguments.length === 0 ? this.unbind("live") : this.die(b, null, c, a) }, trigger: function (a, b) { return this.each(function () { q.event.trigger(a, b, this) }) }, triggerHandler: function (a, b) { if (this[0]) { var c = q.Event(a); c.preventDefault(); c.stopPropagation(); q.event.trigger(c, b, this[0]); return c.result } }, toggle: function (a) { for (var b = arguments, c = 1; c < b.length; ) q.proxy(a, b[c++]); return this.click(q.proxy(a, function (d) { var e = (q.data(this, "lastToggle" + a.guid) || 0) % c; q.data(this, "lastToggle" + a.guid, e + 1); d.preventDefault(); return b[e].apply(this, arguments) || false })) }, hover: function (a, b) { return this.mouseenter(a).mouseleave(b || a) } }); var N = { focus: "focusin", blur: "focusout", mouseenter: "mouseover", mouseleave: "mouseout" }; q.each(["live", "die"], function (a, c) { q.fn[c] = function (a, d, e, f) { var h, i = 0, j, k, l = f || this.selector; f = f ? this : q(this.context); if (typeof a === "object" && !a.preventDefault) { for (h in a) f[c](h, d, a[h], l); return this } if (q.isFunction(d)) { e = d; d = b } for (a = (a || "").split(" "); (h = a[i++]) != null; ) { j = B.exec(h); k = ""; if (j) { k = j[0]; h = h.replace(B, "") } if (h === "hover") a.push("mouseenter" + k, "mouseleave" + k); else { j = h; if (h === "focus" || h === "blur") { a.push(N[h] + k); h += k } else h = (N[h] || h) + k; if (c === "live") { k = 0; for (var m = f.length; k < m; k++) q.event.add(f[k], "live." + g(h, l), { data: d, selector: l, handler: e, origType: h, origHandler: e, preType: j }) } else f.unbind("live." + g(h, l), e) } } return this } }); q.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".split(" "), function (a, b) { q.fn[b] = function (a, c) { if (c == null) { c = a; a = null } return arguments.length > 0 ? this.bind(b, a, c) : this.trigger(b) }; if (q.attrFn) q.attrFn[b] = true }); a.attachEvent && !a.addEventListener && q(a).bind("unload", function () { for (var a in q.cache) if (q.cache[a].handle) try { q.event.remove(q.cache[a].handle.elem) } catch (b) { } }); (function () { function c(a, b, c, d, e, f) { e = 0; for (var g = d.length; e < g; e++) { var h = d[e]; if (h) { h = h[a]; for (var j = false; h; ) { if (h.sizcache === c) { j = d[h.sizset]; break } if (h.nodeType === 1) { if (!f) { h.sizcache = c; h.sizset = e } if (typeof b !== "string") { if (h === b) { j = true; break } } else if (i.filter(b, [h]).length > 0) { j = h; break } } h = h[a] } d[e] = j } } } function a(a, b, c, d, e, f) { e = 0; for (var g = d.length; e < g; e++) { var h = d[e]; if (h) { h = h[a]; for (var i = false; h; ) { if (h.sizcache === c) { i = d[h.sizset]; break } if (h.nodeType === 1 && !f) { h.sizcache = c; h.sizset = e } if (h.nodeName.toLowerCase() === b) { i = h; break } h = h[a] } d[e] = i } } } var d = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, e = 0, f = Object.prototype.toString, g = false, h = true; [0, 0].sort(function () { h = false; return 0 }); var i = function (a, b, c, e) { c = c || []; var g = b = b || p; if (b.nodeType !== 1 && b.nodeType !== 9) return []; if (!a || typeof a !== "string") return c; var h = [], l, m, o, q, r = true, s = i.isXML(b), u = a, v; do { d.exec(""); if (l = d.exec(u)) { u = l[3]; h.push(l[1]); if (l[2]) { q = l[3]; break } } } while (l); if (h.length > 1 && k.exec(a)) if (h.length === 2 && j.relative[h[0]]) m = t(h[0] + h[1], b); else for (m = j.relative[h[0]] ? [b] : i(h.shift(), b); h.length; ) { a = h.shift(); if (j.relative[a]) a += h.shift(); m = t(a, m) } else { if (!e && h.length > 1 && b.nodeType === 9 && !s && j.match.ID.test(h[0]) && !j.match.ID.test(h[h.length - 1])) { l = i.find(h.shift(), b, s); b = l.expr ? i.filter(l.expr, l.set)[0] : l.set[0] } if (b) { l = e ? { expr: h.pop(), set: n(e)} : i.find(h.pop(), h.length === 1 && (h[0] === "~" || h[0] === "+") && b.parentNode ? b.parentNode : b, s); m = l.expr ? i.filter(l.expr, l.set) : l.set; if (h.length > 0) o = n(m); else r = false; for (; h.length; ) { l = v = h.pop(); if (j.relative[v]) l = h.pop(); else v = ""; if (l == null) l = b; j.relative[v](o, l, s) } } else o = [] } o || (o = m); o || i.error(v || a); if (f.call(o) === "[object Array]") if (r) if (b && b.nodeType === 1) for (a = 0; o[a] != null; a++) { if (o[a] && (o[a] === true || o[a].nodeType === 1 && i.contains(b, o[a]))) c.push(m[a]) } else for (a = 0; o[a] != null; a++) o[a] && o[a].nodeType === 1 && c.push(m[a]); else c.push.apply(c, o); else n(o, c); if (q) { i(q, g, c, e); i.uniqueSort(c) } return c }; i.uniqueSort = function (a) { if (r) { g = h; a.sort(r); if (g) for (var b = 1; b < a.length; b++) a[b] === a[b - 1] && a.splice(b--, 1) } return a }; i.matches = function (a, b) { return i(a, null, null, b) }; i.matchesSelector = function (a, b) { return i(b, null, null, [a]).length > 0 }; i.find = function (a, b, c) { var d; if (!a) return []; for (var e = 0, f = j.order.length; e < f; e++) { var g = j.order[e], h; if (h = j.leftMatch[g].exec(a)) { var i = h[1]; h.splice(1, 1); if (i.substr(i.length - 1) !== "\\") { h[1] = (h[1] || "").replace(/\\/g, ""); d = j.find[g](h, b, c); if (d != null) { a = a.replace(j.match[g], ""); break } } } } d || (d = b.getElementsByTagName("*")); return { set: d, expr: a} }; i.filter = function (a, c, d, e) { for (var f = a, g = [], h = c, k, l, m = c && c[0] && i.isXML(c[0]); a && c.length; ) { for (var n in j.filter) if ((k = j.leftMatch[n].exec(a)) != null && k[2]) { var o = j.filter[n], p, q; q = k[1]; l = false; k.splice(1, 1); if (q.substr(q.length - 1) !== "\\") { if (h === g) g = []; if (j.preFilter[n]) if (k = j.preFilter[n](k, h, d, g, e, m)) { if (k === true) continue } else l = p = true; if (k) for (var r = 0; (q = h[r]) != null; r++) if (q) { p = o(q, k, r, h); var s = e ^ !!p; if (d && p != null) if (s) l = true; else h[r] = false; else if (s) { g.push(q); l = true } } if (p !== b) { d || (h = g); a = a.replace(j.match[n], ""); if (!l) return []; break } } } if (a === f) if (l == null) i.error(a); else break; f = a } return h }; i.error = function (a) { throw "Syntax error, unrecognized expression: " + a }; var j = i.selectors = { order: ["ID", "NAME", "TAG"], match: { ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/, CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/, NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/, ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/, TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/, CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/, POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/, PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/ }, leftMatch: {}, attrMap: { "class": "className", "for": "htmlFor" }, attrHandle: { href: function (a) { return a.getAttribute("href") } }, relative: { "+": function (a, b) { var c = typeof b === "string", d = c && !/\W/.test(b); c = c && !d; if (d) b = b.toLowerCase(); d = 0; for (var e = a.length, f; d < e; d++) if (f = a[d]) { for (; (f = f.previousSibling) && f.nodeType !== 1; ); a[d] = c || f && f.nodeName.toLowerCase() === b ? f || false : f === b } c && i.filter(b, a, true) }, ">": function (a, b) { var c = typeof b === "string", d, e = 0, f = a.length; if (c && !/\W/.test(b)) for (b = b.toLowerCase(); e < f; e++) { if (d = a[e]) { c = d.parentNode; a[e] = c.nodeName.toLowerCase() === b ? c : false } } else { for (; e < f; e++) if (d = a[e]) a[e] = c ? d.parentNode : d.parentNode === b; c && i.filter(b, a, true) } }, "": function (b, d, f) { var g = e++, h = c, i; if (typeof d === "string" && !/\W/.test(d)) { i = d = d.toLowerCase(); h = a } h("parentNode", d, g, b, i, f) }, "~": function (b, d, f) { var g = e++, h = c, i; if (typeof d === "string" && !/\W/.test(d)) { i = d = d.toLowerCase(); h = a } h("previousSibling", d, g, b, i, f) } }, find: { ID: function (a, b, c) { if (typeof b.getElementById !== "undefined" && !c) return (a = b.getElementById(a[1])) && a.parentNode ? [a] : [] }, NAME: function (a, b) { if (typeof b.getElementsByName !== "undefined") { for (var c = [], d = b.getElementsByName(a[1]), e = 0, f = d.length; e < f; e++) d[e].getAttribute("name") === a[1] && c.push(d[e]); return c.length === 0 ? null : c } }, TAG: function (a, b) { return b.getElementsByTagName(a[1]) } }, preFilter: { CLASS: function (a, b, c, d, e, f) { a = " " + a[1].replace(/\\/g, "") + " "; if (f) return a; f = 0; for (var g; (g = b[f]) != null; f++) if (g) if (e ^ (g.className && (" " + g.className + " ").replace(/[\t\n]/g, " ").indexOf(a) >= 0)) c || d.push(g); else if (c) b[f] = false; return false }, ID: function (a) { return a[1].replace(/\\/g, "") }, TAG: function (a) { return a[1].toLowerCase() }, CHILD: function (a) { if (a[1] === "nth") { var b = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(a[2] === "even" && "2n" || a[2] === "odd" && "2n+1" || !/\D/.test(a[2]) && "0n+" + a[2] || a[2]); a[2] = b[1] + (b[2] || 1) - 0; a[3] = b[3] - 0 } a[0] = e++; return a }, ATTR: function (a, b, c, d, e, f) { b = a[1].replace(/\\/g, ""); if (!f && j.attrMap[b]) a[1] = j.attrMap[b]; if (a[2] === "~=") a[4] = " " + a[4] + " "; return a }, PSEUDO: function (a, b, c, e, f) { if (a[1] === "not") if ((d.exec(a[3]) || "").length > 1 || /^\w/.test(a[3])) a[3] = i(a[3], null, null, b); else { a = i.filter(a[3], b, c, true ^ f); c || e.push.apply(e, a); return false } else if (j.match.POS.test(a[0]) || j.match.CHILD.test(a[0])) return true; return a }, POS: function (a) { a.unshift(true); return a } }, filters: { enabled: function (a) { return a.disabled === false && a.type !== "hidden" }, disabled: function (a) { return a.disabled === true }, checked: function (a) { return a.checked === true }, selected: function (a) { return a.selected === true }, parent: function (a) { return !!a.firstChild }, empty: function (a) { return !a.firstChild }, has: function (a, b, c) { return !!i(c[3], a).length }, header: function (a) { return /h\d/i.test(a.nodeName) }, text: function (a) { return "text" === a.type }, radio: function (a) { return "radio" === a.type }, checkbox: function (a) { return "checkbox" === a.type }, file: function (a) { return "file" === a.type }, password: function (a) { return "password" === a.type }, submit: function (a) { return "submit" === a.type }, image: function (a) { return "image" === a.type }, reset: function (a) { return "reset" === a.type }, button: function (a) { return "button" === a.type || a.nodeName.toLowerCase() === "button" }, input: function (a) { return /input|select|textarea|button/i.test(a.nodeName) } }, setFilters: { first: function (a, b) { return b === 0 }, last: function (a, b, c, d) { return b === d.length - 1 }, even: function (a, b) { return b % 2 === 0 }, odd: function (a, b) { return b % 2 === 1 }, lt: function (a, b, c) { return b < c[3] - 0 }, gt: function (a, b, c) { return b > c[3] - 0 }, nth: function (a, b, c) { return c[3] - 0 === b }, eq: function (a, b, c) { return c[3] - 0 === b } }, filter: { PSEUDO: function (a, b, c, d) { var e = b[1], f = j.filters[e]; if (f) return f(a, c, b, d); else if (e === "contains") return (a.textContent || a.innerText || i.getText([a]) || "").indexOf(b[3]) >= 0; else if (e === "not") { b = b[3]; c = 0; for (d = b.length; c < d; c++) if (b[c] === a) return false; return true } else i.error("Syntax error, unrecognized expression: " + e) }, CHILD: function (a, b) { var c = b[1], d = a; switch (c) { case "only": case "first": for (; d = d.previousSibling; ) if (d.nodeType === 1) return false; if (c === "first") return true; d = a; case "last": for (; d = d.nextSibling; ) if (d.nodeType === 1) return false; return true; case "nth": c = b[2]; var e = b[3]; if (c === 1 && e === 0) return true; var f = b[0], g = a.parentNode; if (g && (g.sizcache !== f || !a.nodeIndex)) { var h = 0; for (d = g.firstChild; d; d = d.nextSibling) if (d.nodeType === 1) d.nodeIndex = ++h; g.sizcache = f } d = a.nodeIndex - e; return c === 0 ? d === 0 : d % c === 0 && d / c >= 0 } }, ID: function (a, b) { return a.nodeType === 1 && a.getAttribute("id") === b }, TAG: function (a, b) { return b === "*" && a.nodeType === 1 || a.nodeName.toLowerCase() === b }, CLASS: function (a, b) { return (" " + (a.className || a.getAttribute("class")) + " ").indexOf(b) > -1 }, ATTR: function (a, b) { var c = b[1]; c = j.attrHandle[c] ? j.attrHandle[c](a) : a[c] != null ? a[c] : a.getAttribute(c); var d = c + "", e = b[2], f = b[4]; return c == null ? e === "!=" : e === "=" ? d === f : e === "*=" ? d.indexOf(f) >= 0 : e === "~=" ? (" " + d + " ").indexOf(f) >= 0 : !f ? d && c !== false : e === "!=" ? d !== f : e === "^=" ? d.indexOf(f) === 0 : e === "$=" ? d.substr(d.length - f.length) === f : e === "|=" ? d === f || d.substr(0, f.length + 1) === f + "-" : false }, POS: function (a, b, c, d) { var e = j.setFilters[b[2]]; if (e) return e(a, c, b, d) } } }, k = j.match.POS, l = function (a, b) { return "\\" + (b - 0 + 1) }, m; for (m in j.match) { j.match[m] = RegExp(j.match[m].source + /(?![^\[]*\])(?![^\(]*\))/.source); j.leftMatch[m] = RegExp(/(^(?:.|\r|\n)*?)/.source + j.match[m].source.replace(/\\(\d+)/g, l)) } var n = function (a, b) { a = Array.prototype.slice.call(a, 0); if (b) { b.push.apply(b, a); return b } return a }; try { Array.prototype.slice.call(p.documentElement.childNodes, 0) } catch (o) { n = function (a, b) { var c = b || [], d = 0; if (f.call(a) === "[object Array]") Array.prototype.push.apply(c, a); else if (typeof a.length === "number") for (var e = a.length; d < e; d++) c.push(a[d]); else for (; a[d]; d++) c.push(a[d]); return c } } var r, s; if (p.documentElement.compareDocumentPosition) r = function (a, b) { if (a === b) { g = true; return 0 } if (!a.compareDocumentPosition || !b.compareDocumentPosition) return a.compareDocumentPosition ? -1 : 1; return a.compareDocumentPosition(b) & 4 ? -1 : 1 }; else { r = function (a, b) { var c = [], d = [], e = a.parentNode, f = b.parentNode, h = e; if (a === b) { g = true; return 0 } else if (e === f) return s(a, b); else if (e) { if (!f) return 1 } else return -1; for (; h; ) { c.unshift(h); h = h.parentNode } for (h = f; h; ) { d.unshift(h); h = h.parentNode } e = c.length; f = d.length; for (h = 0; h < e && h < f; h++) if (c[h] !== d[h]) return s(c[h], d[h]); return h === e ? s(a, d[h], -1) : s(c[h], b, 1) }; s = function (a, b, c) { if (a === b) return c; for (a = a.nextSibling; a; ) { if (a === b) return -1; a = a.nextSibling } return 1 } } i.getText = function (a) { for (var b = "", c, d = 0; a[d]; d++) { c = a[d]; if (c.nodeType === 3 || c.nodeType === 4) b += c.nodeValue; else if (c.nodeType !== 8) b += i.getText(c.childNodes) } return b }; (function () { var a = p.createElement("div"), c = "script" + (new Date).getTime(); a.innerHTML = "<a name='" + c + "'/>"; var d = p.documentElement; d.insertBefore(a, d.firstChild); if (p.getElementById(c)) { j.find.ID = function (a, c, d) { if (typeof c.getElementById !== "undefined" && !d) return (c = c.getElementById(a[1])) ? c.id === a[1] || typeof c.getAttributeNode !== "undefined" && c.getAttributeNode("id").nodeValue === a[1] ? [c] : b : [] }; j.filter.ID = function (a, b) { var c = typeof a.getAttributeNode !== "undefined" && a.getAttributeNode("id"); return a.nodeType === 1 && c && c.nodeValue === b } } d.removeChild(a); d = a = null })(); (function () { var a = p.createElement("div"); a.appendChild(p.createComment("")); if (a.getElementsByTagName("*").length > 0) j.find.TAG = function (a, b) { var c = b.getElementsByTagName(a[1]); if (a[1] === "*") { for (var d = [], e = 0; c[e]; e++) c[e].nodeType === 1 && d.push(c[e]); c = d } return c }; a.innerHTML = "<a href='#'></a>"; if (a.firstChild && typeof a.firstChild.getAttribute !== "undefined" && a.firstChild.getAttribute("href") !== "#") j.attrHandle.href = function (a) { return a.getAttribute("href", 2) }; a = null })(); p.querySelectorAll && function () { var a = i, b = p.createElement("div"); b.innerHTML = "<p class='TEST'></p>"; if (!(b.querySelectorAll && b.querySelectorAll(".TEST").length === 0)) { i = function (b, c, d, e) { c = c || p; if (!e && !i.isXML(c)) if (c.nodeType === 9) try { return n(c.querySelectorAll(b), d) } catch (f) { } else if (c.nodeType === 1 && c.nodeName.toLowerCase() !== "object") { var g = c.id, h = c.id = "__sizzle__"; try { return n(c.querySelectorAll("#" + h + " " + b), d) } catch (j) { } finally { if (g) c.id = g; else c.removeAttribute("id") } } return a(b, c, d, e) }; for (var c in a) i[c] = a[c]; b = null } } (); (function () { var a = p.documentElement, b = a.matchesSelector || a.mozMatchesSelector || a.webkitMatchesSelector || a.msMatchesSelector, c = false; try { b.call(p.documentElement, ":sizzle") } catch (d) { c = true } if (b) i.matchesSelector = function (a, d) { try { if (c || !j.match.PSEUDO.test(d)) return b.call(a, d) } catch (e) { } return i(d, null, null, [a]).length > 0 } })(); (function () { var a = p.createElement("div"); a.innerHTML = "<div class='test e'></div><div class='test'></div>"; if (!(!a.getElementsByClassName || a.getElementsByClassName("e").length === 0)) { a.lastChild.className = "e"; if (a.getElementsByClassName("e").length !== 1) { j.order.splice(1, 0, "CLASS"); j.find.CLASS = function (a, b, c) { if (typeof b.getElementsByClassName !== "undefined" && !c) return b.getElementsByClassName(a[1]) }; a = null } } })(); i.contains = p.documentElement.contains ? function (a, b) { return a !== b && (a.contains ? a.contains(b) : true) } : function (a, b) { return !!(a.compareDocumentPosition(b) & 16) }; i.isXML = function (a) { return (a = (a ? a.ownerDocument || a : 0).documentElement) ? a.nodeName !== "HTML" : false }; var t = function (a, b) { for (var c = [], d = "", e, f = b.nodeType ? [b] : b; e = j.match.PSEUDO.exec(a); ) { d += e[0]; a = a.replace(j.match.PSEUDO, "") } a = j.relative[a] ? a + "*" : a; e = 0; for (var g = f.length; e < g; e++) i(a, f[e], c); return i.filter(d, c) }; q.find = i; q.expr = i.selectors; q.expr[":"] = q.expr.filters; q.unique = i.uniqueSort; q.text = i.getText; q.isXMLDoc = i.isXML; q.contains = i.contains })(); var O = /Until$/, P = /^(?:parents|prevUntil|prevAll)/, Q = /,/, R = /^.[^:#\[\.,]*$/, S = Array.prototype.slice, T = q.expr.match.POS; q.fn.extend({ find: function (a) { for (var b = this.pushStack("", "find", a), c = 0, d = 0, e = this.length; d < e; d++) { c = b.length; q.find(a, this[d], b); if (d > 0) for (var f = c; f < b.length; f++) for (var g = 0; g < c; g++) if (b[g] === b[f]) { b.splice(f--, 1); break } } return b }, has: function (a) { var b = q(a); return this.filter(function () { for (var a = 0, c = b.length; a < c; a++) if (q.contains(this, b[a])) return true }) }, not: function (a) { return this.pushStack(h(this, a, false), "not", a) }, filter: function (a) { return this.pushStack(h(this, a, true), "filter", a) }, is: function (a) { return !!a && q.filter(a, this).length > 0 }, closest: function (a, b) { var c = [], d, e, f = this[0]; if (q.isArray(a)) { var g = {}, h, i = 1; if (f && a.length) { d = 0; for (e = a.length; d < e; d++) { h = a[d]; g[h] || (g[h] = q.expr.match.POS.test(h) ? q(h, b || this.context) : h) } for (; f && f.ownerDocument && f !== b; ) { for (h in g) { d = g[h]; if (d.jquery ? d.index(f) > -1 : q(f).is(d)) c.push({ selector: h, elem: f, level: i }) } f = f.parentNode; i++ } } return c } g = T.test(a) ? q(a, b || this.context) : null; d = 0; for (e = this.length; d < e; d++) for (f = this[d]; f; ) if (g ? g.index(f) > -1 : q.find.matchesSelector(f, a)) { c.push(f); break } else { f = f.parentNode; if (!f || !f.ownerDocument || f === b) break } c = c.length > 1 ? q.unique(c) : c; return this.pushStack(c, "closest", a) }, index: function (a) { if (!a || typeof a === "string") return q.inArray(this[0], a ? q(a) : this.parent().children()); return q.inArray(a.jquery ? a[0] : a, this) }, add: function (a, b) { var c = typeof a === "string" ? q(a, b || this.context) : q.makeArray(a), d = q.merge(this.get(), c); return this.pushStack(!c[0] || !c[0].parentNode || c[0].parentNode.nodeType === 11 || !d[0] || !d[0].parentNode || d[0].parentNode.nodeType === 11 ? d : q.unique(d)) }, andSelf: function () { return this.add(this.prevObject) } }); q.each({ parent: function (a) { return (a = a.parentNode) && a.nodeType !== 11 ? a : null }, parents: function (a) { return q.dir(a, "parentNode") }, parentsUntil: function (a, b, c) { return q.dir(a, "parentNode", c) }, next: function (a) { return q.nth(a, 2, "nextSibling") }, prev: function (a) { return q.nth(a, 2, "previousSibling") }, nextAll: function (a) { return q.dir(a, "nextSibling") }, prevAll: function (a) { return q.dir(a, "previousSibling") }, nextUntil: function (a, b, c) { return q.dir(a, "nextSibling", c) }, prevUntil: function (a, b, c) { return q.dir(a, "previousSibling", c) }, siblings: function (a) { return q.sibling(a.parentNode.firstChild, a) }, children: function (a) { return q.sibling(a.firstChild) }, contents: function (a) { return q.nodeName(a, "iframe") ? a.contentDocument || a.contentWindow.document : q.makeArray(a.childNodes) } }, function (a, b) { q.fn[a] = function (c, d) { var e = q.map(this, b, c); O.test(a) || (d = c); if (d && typeof d === "string") e = q.filter(d, e); e = this.length > 1 ? q.unique(e) : e; if ((this.length > 1 || Q.test(d)) && P.test(a)) e = e.reverse(); return this.pushStack(e, a, S.call(arguments).join(",")) } }); q.extend({ filter: function (a, b, c) { if (c) a = ":not(" + a + ")"; return b.length === 1 ? q.find.matchesSelector(b[0], a) ? [b[0]] : [] : q.find.matches(a, b) }, dir: function (a, c, d) { var e = []; for (a = a[c]; a && a.nodeType !== 9 && (d === b || a.nodeType !== 1 || !q(a).is(d)); ) { a.nodeType === 1 && e.push(a); a = a[c] } return e }, nth: function (a, b, c) { b = b || 1; for (var d = 0; a; a = a[c]) if (a.nodeType === 1 && ++d === b) break; return a }, sibling: function (a, b) { for (var c = []; a; a = a.nextSibling) a.nodeType === 1 && a !== b && c.push(a); return c } }); var U = / jQuery\d+="(?:\d+|null)"/g, V = /^\s+/, W = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig, X = /<([\w:]+)/, Y = /<tbody/i, Z = /<|&#?\w+;/, $ = /<(?:script|object|embed|option|style)/i, _ = /checked\s*(?:[^=]|=\s*.checked.)/i, ba = /\=([^="'>\s]+\/)>/g, bb = { 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, "", ""] }; bb.optgroup = bb.option; bb.tbody = bb.tfoot = bb.colgroup = bb.caption = bb.thead; bb.th = bb.td; if (!q.support.htmlSerialize) bb._default = [1, "div<div>", "</div>"]; q.fn.extend({ text: function (a) { if (q.isFunction(a)) return this.each(function (b) { var c = q(this); c.text(a.call(this, b, c.text())) }); if (typeof a !== "object" && a !== b) return this.empty().append((this[0] && this[0].ownerDocument || p).createTextNode(a)); return q.text(this) }, wrapAll: function (a) { if (q.isFunction(a)) return this.each(function (b) { q(this).wrapAll(a.call(this, b)) }); if (this[0]) { var b = q(a, this[0].ownerDocument).eq(0).clone(true); this[0].parentNode && b.insertBefore(this[0]); b.map(function () { for (var a = this; a.firstChild && a.firstChild.nodeType === 1; ) a = a.firstChild; return a }).append(this) } return this }, wrapInner: function (a) { if (q.isFunction(a)) return this.each(function (b) { q(this).wrapInner(a.call(this, b)) }); return this.each(function () { var b = q(this), c = b.contents(); c.length ? c.wrapAll(a) : b.append(a) }) }, wrap: function (a) { return this.each(function () { q(this).wrapAll(a) }) }, unwrap: function () { return this.parent().each(function () { q.nodeName(this, "body") || q(this).replaceWith(this.childNodes) }).end() }, append: function () { return this.domManip(arguments, true, function (a) { this.nodeType === 1 && this.appendChild(a) }) }, prepend: function () { return this.domManip(arguments, true, function (a) { this.nodeType === 1 && this.insertBefore(a, this.firstChild) }) }, before: function () { if (this[0] && this[0].parentNode) return this.domManip(arguments, false, function (a) { this.parentNode.insertBefore(a, this) }); else if (arguments.length) { var a = q(arguments[0]); a.push.apply(a, this.toArray()); return this.pushStack(a, "before", arguments) } }, after: function () { if (this[0] && this[0].parentNode) return this.domManip(arguments, false, function (a) { this.parentNode.insertBefore(a, this.nextSibling) }); else if (arguments.length) { var a = this.pushStack(this, "after", arguments); a.push.apply(a, q(arguments[0]).toArray()); return a } }, remove: function (a, b) { for (var c = 0, d; (d = this[c]) != null; c++) if (!a || q.filter(a, [d]).length) { if (!b && d.nodeType === 1) { q.cleanData(d.getElementsByTagName("*")); q.cleanData([d]) } d.parentNode && d.parentNode.removeChild(d) } return this }, empty: function () { for (var a = 0, b; (b = this[a]) != null; a++) for (b.nodeType === 1 && q.cleanData(b.getElementsByTagName("*")); b.firstChild; ) b.removeChild(b.firstChild); return this }, clone: function (a) { var b = this.map(function () { if (!q.support.noCloneEvent && !q.isXMLDoc(this)) { var a = this.outerHTML, b = this.ownerDocument; if (!a) { a = b.createElement("div"); a.appendChild(this.cloneNode(true)); a = a.innerHTML } return q.clean([a.replace(U, "").replace(ba, '="$1">').replace(V, "")], b)[0] } else return this.cloneNode(true) }); if (a === true) { i(this, b); i(this.find("*"), b.find("*")) } return b }, html: function (a) { if (a === b) return this[0] && this[0].nodeType === 1 ? this[0].innerHTML.replace(U, "") : null; else if (typeof a === "string" && !$.test(a) && (q.support.leadingWhitespace || !V.test(a)) && !bb[(X.exec(a) || ["", ""])[1].toLowerCase()]) { a = a.replace(W, "<$1></$2>"); try { for (var c = 0, d = this.length; c < d; c++) if (this[c].nodeType === 1) { q.cleanData(this[c].getElementsByTagName("*")); this[c].innerHTML = a } } catch (e) { this.empty().append(a) } } else q.isFunction(a) ? this.each(function (b) { var c = q(this); c.html(a.call(this, b, c.html())) }) : this.empty().append(a); return this }, replaceWith: function (a) { if (this[0] && this[0].parentNode) { if (q.isFunction(a)) return this.each(function (b) { var c = q(this), d = c.html(); c.replaceWith(a.call(this, b, d)) }); if (typeof a !== "string") a = q(a).detach(); return this.each(function () { var b = this.nextSibling, c = this.parentNode; q(this).remove(); b ? q(b).before(a) : q(c).append(a) }) } else return this.pushStack(q(q.isFunction(a) ? a() : a), "replaceWith", a) }, detach: function (a) { return this.remove(a, true) }, domManip: function (a, c, d) { var e, f, g = a[0], h = [], i; if (!q.support.checkClone && arguments.length === 3 && typeof g === "string" && _.test(g)) return this.each(function () { q(this).domManip(a, c, d, true) }); if (q.isFunction(g)) return this.each(function (e) { var f = q(this); a[0] = g.call(this, e, c ? f.html() : b); f.domManip(a, c, d) }); if (this[0]) { e = g && g.parentNode; e = q.support.parentNode && e && e.nodeType === 11 && e.childNodes.length === this.length ? { fragment: e} : q.buildFragment(a, this, h); i = e.fragment; if (f = i.childNodes.length === 1 ? i = i.firstChild : i.firstChild) { c = c && q.nodeName(f, "tr"); f = 0; for (var k = this.length; f < k; f++) d.call(c ? q.nodeName(this[f], "table") ? this[f].getElementsByTagName("tbody")[0] || this[f].appendChild(this[f].ownerDocument.createElement("tbody")) : this[f] : this[f], f > 0 || e.cacheable || this.length > 1 ? i.cloneNode(true) : i) } h.length && q.each(h, j) } return this } }); q.buildFragment = function (a, b, c) { var d, e, f; b = b && b[0] ? b[0].ownerDocument || b[0] : p; if (a.length === 1 && typeof a[0] === "string" && a[0].length < 512 && b === p && !$.test(a[0]) && (q.support.checkClone || !_.test(a[0]))) { e = true; if (f = q.fragments[a[0]]) if (f !== 1) d = f } if (!d) { d = b.createDocumentFragment(); q.clean(a, b, d, c) } if (e) q.fragments[a[0]] = f ? d : 1; return { fragment: d, cacheable: e} }; q.fragments = {}; q.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function (a, b) { q.fn[a] = function (c) { var d = []; c = q(c); var e = this.length === 1 && this[0].parentNode; if (e && e.nodeType === 11 && e.childNodes.length === 1 && c.length === 1) { c[b](this[0]); return this } else { e = 0; for (var f = c.length; e < f; e++) { var g = (e > 0 ? this.clone(true) : this).get(); q(c[e])[b](g); d = d.concat(g) } return this.pushStack(d, a, c.selector) } } }); q.extend({ clean: function (a, b, c, d) { b = b || p; if (typeof b.createElement === "undefined") b = b.ownerDocument || b[0] && b[0].ownerDocument || p; for (var e = [], f = 0, g; (g = a[f]) != null; f++) { if (typeof g === "number") g += ""; if (g) { if (typeof g === "string" && !Z.test(g)) g = b.createTextNode(g); else if (typeof g === "string") { g = g.replace(W, "<$1></$2>"); var h = (X.exec(g) || ["", ""])[1].toLowerCase(), i = bb[h] || bb._default, j = i[0], k = b.createElement("div"); for (k.innerHTML = i[1] + g + i[2]; j--; ) k = k.lastChild; if (!q.support.tbody) { j = Y.test(g); h = h === "table" && !j ? k.firstChild && k.firstChild.childNodes : i[1] === "<table>" && !j ? k.childNodes : []; for (i = h.length - 1; i >= 0; --i) q.nodeName(h[i], "tbody") && !h[i].childNodes.length && h[i].parentNode.removeChild(h[i]) } !q.support.leadingWhitespace && V.test(g) && k.insertBefore(b.createTextNode(V.exec(g)[0]), k.firstChild); g = k.childNodes } if (g.nodeType) e.push(g); else e = q.merge(e, g) } } if (c) for (f = 0; e[f]; f++) if (d && q.nodeName(e[f], "script") && (!e[f].type || e[f].type.toLowerCase() === "text/javascript")) d.push(e[f].parentNode ? e[f].parentNode.removeChild(e[f]) : e[f]); else { e[f].nodeType === 1 && e.splice.apply(e, [f + 1, 0].concat(q.makeArray(e[f].getElementsByTagName("script")))); c.appendChild(e[f]) } return e }, cleanData: function (a) { for (var b, c, d = q.cache, e = q.event.special, f = q.support.deleteExpando, g = 0, h; (h = a[g]) != null; g++) if (!(h.nodeName && q.noData[h.nodeName.toLowerCase()])) if (c = h[q.expando]) { if ((b = d[c]) && b.events) for (var i in b.events) e[i] ? q.event.remove(h, i) : q.removeEvent(h, i, b.handle); if (f) delete h[q.expando]; else h.removeAttribute && h.removeAttribute(q.expando); delete d[c] } } }); var bc = /alpha\([^)]*\)/i, bd = /opacity=([^)]*)/, be = /-([a-z])/ig, bf = /([A-Z])/g, bg = /^-?\d+(?:px)?$/i, bh = /^-?\d/, bi = { position: "absolute", visibility: "hidden", display: "block" }, bj = ["Left", "Right"], bk = ["Top", "Bottom"], bl, bm = p.defaultView && p.defaultView.getComputedStyle, bn = function (a, b) { return b.toUpperCase() }; q.fn.css = function (a, c) { if (arguments.length === 2 && c === b) return this; return q.access(this, a, c, true, function (a, c, d) { return d !== b ? q.style(a, c, d) : q.css(a, c) }) }; q.extend({ cssHooks: { opacity: { get: function (a, b) { if (b) { var c = bl(a, "opacity", "opacity"); return c === "" ? "1" : c } else return a.style.opacity } } }, cssNumber: { zIndex: true, fontWeight: true, opacity: true, zoom: true, lineHeight: true }, cssProps: { "float": q.support.cssFloat ? "cssFloat" : "styleFloat" }, style: function (a, c, d, e) { if (!(!a || a.nodeType === 3 || a.nodeType === 8 || !a.style)) { var f, g = q.camelCase(c), h = a.style, i = q.cssHooks[g]; c = q.cssProps[g] || g; if (d !== b) { if (!(typeof d === "number" && isNaN(d) || d == null)) { if (typeof d === "number" && !q.cssNumber[g]) d += "px"; if (!i || !("set" in i) || (d = i.set(a, d)) !== b) try { h[c] = d } catch (j) { } } } else { if (i && "get" in i && (f = i.get(a, false, e)) !== b) return f; return h[c] } } }, css: function (a, c, d) { var e, f = q.camelCase(c), g = q.cssHooks[f]; c = q.cssProps[f] || f; if (g && "get" in g && (e = g.get(a, true, d)) !== b) return e; else if (bl) return bl(a, c, f) }, swap: function (a, b, c) { var d = {}, e; for (e in b) { d[e] = a.style[e]; a.style[e] = b[e] } c.call(a); for (e in b) a.style[e] = d[e] }, camelCase: function (a) { return a.replace(be, bn) } }); q.curCSS = q.css; q.each(["height", "width"], function (a, b) { q.cssHooks[b] = { get: function (a, c, d) { var e; if (c) { if (a.offsetWidth !== 0) e = k(a, b, d); else q.swap(a, bi, function () { e = k(a, b, d) }); return e + "px" } }, set: function (a, b) { if (bg.test(b)) { b = parseFloat(b); if (b >= 0) return b + "px" } else return b } } }); if (!q.support.opacity) q.cssHooks.opacity = { get: function (a, b) { return bd.test((b && a.currentStyle ? a.currentStyle.filter : a.style.filter) || "") ? parseFloat(RegExp.$1) / 100 + "" : b ? "1" : "" }, set: function (a, b) { var c = a.style; c.zoom = 1; var d = q.isNaN(b) ? "" : "alpha(opacity=" + b * 100 + ")", e = c.filter || ""; c.filter = bc.test(e) ? e.replace(bc, d) : c.filter + " " + d } }; if (bm) bl = function (a, c, d) { var e; d = d.replace(bf, "-$1").toLowerCase(); if (!(c = a.ownerDocument.defaultView)) return b; if (c = c.getComputedStyle(a, null)) { e = c.getPropertyValue(d); if (e === "" && !q.contains(a.ownerDocument.documentElement, a)) e = q.style(a, d) } return e }; else if (p.documentElement.currentStyle) bl = function (a, b) { var c, d, e = a.currentStyle && a.currentStyle[b], f = a.style; if (!bg.test(e) && bh.test(e)) { c = f.left; d = a.runtimeStyle.left; a.runtimeStyle.left = a.currentStyle.left; f.left = b === "fontSize" ? "1em" : e || 0; e = f.pixelLeft + "px"; f.left = c; a.runtimeStyle.left = d } return e }; if (q.expr && q.expr.filters) { q.expr.filters.hidden = function (a) { var b = a.offsetHeight; return a.offsetWidth === 0 && b === 0 || !q.support.reliableHiddenOffsets && (a.style.display || q.css(a, "display")) === "none" }; q.expr.filters.visible = function (a) { return !q.expr.filters.hidden(a) } } var bo = q.now(), bp = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, bq = /^(?:select|textarea)/i, br = /^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i, bs = /^(?:GET|HEAD|DELETE)$/, bt = /\[\]$/, bu = /\=\?(&|$)/, bv = /\?/, bw = /([?&])_=[^&]*/, bx = /^(\w+:)?\/\/([^\/?#]+)/, by = /%20/g, bz = /#.*$/, bA = q.fn.load; q.fn.extend({ load: function (a, b, c) { if (typeof a !== "string" && bA) return bA.apply(this, arguments); else if (!this.length) return this; var d = a.indexOf(" "); if (d >= 0) { var e = a.slice(d, a.length); a = a.slice(0, d) } d = "GET"; if (b) if (q.isFunction(b)) { c = b; b = null } else if (typeof b === "object") { b = q.param(b, q.ajaxSettings.traditional); d = "POST" } var f = this; q.ajax({ url: a, type: d, dataType: "html", data: b, complete: function (a, b) { if (b === "success" || b === "notmodified") f.html(e ? q("<div>").append(a.responseText.replace(bp, "")).find(e) : a.responseText); c && f.each(c, [a.responseText, b, a]) } }); return this }, serialize: function () { return q.param(this.serializeArray()) }, serializeArray: function () { return this.map(function () { return this.elements ? q.makeArray(this.elements) : this }).filter(function () { return this.name && !this.disabled && (this.checked || bq.test(this.nodeName) || br.test(this.type)) }).map(function (a, b) { var c = q(this).val(); return c == null ? null : q.isArray(c) ? q.map(c, function (a) { return { name: b.name, value: a} }) : { name: b.name, value: c} }).get() } }); q.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function (a, b) { q.fn[b] = function (a) { return this.bind(b, a) } }); q.extend({ get: function (a, b, c, d) { if (q.isFunction(b)) { d = d || c; c = b; b = null } return q.ajax({ type: "GET", url: a, data: b, success: c, dataType: d }) }, getScript: function (a, b) { return q.get(a, null, b, "script") }, getJSON: function (a, b, c) { return q.get(a, b, c, "json") }, post: function (a, b, c, d) { if (q.isFunction(b)) { d = d || c; c = b; b = {} } return q.ajax({ type: "POST", url: a, data: b, success: c, dataType: d }) }, ajaxSetup: function (a) { q.extend(q.ajaxSettings, a) }, ajaxSettings: { url: location.href, global: true, type: "GET", contentType: "application/x-www-form-urlencoded", processData: true, async: true, xhr: function () { return new a.XMLHttpRequest }, accepts: { xml: "application/xml, text/xml", html: "text/html", script: "text/javascript, application/javascript", json: "application/json, text/javascript", text: "text/plain", _default: "*/*"} }, ajax: function (c) { var d = q.extend(true, {}, q.ajaxSettings, c), e, f, g, h = d.type.toUpperCase(), i = bs.test(h); d.url = d.url.replace(bz, ""); d.context = c && c.context != null ? c.context : d; if (d.data && d.processData && typeof d.data !== "string") d.data = q.param(d.data, d.traditional); if (d.dataType === "jsonp") { if (h === "GET") bu.test(d.url) || (d.url += (bv.test(d.url) ? "&" : "?") + (d.jsonp || "callback") + "=?"); else if (!d.data || !bu.test(d.data)) d.data = (d.data ? d.data + "&" : "") + (d.jsonp || "callback") + "=?"; d.dataType = "json" } if (d.dataType === "json" && (d.data && bu.test(d.data) || bu.test(d.url))) { e = d.jsonpCallback || "jsonp" + bo++; if (d.data) d.data = (d.data + "").replace(bu, "=" + e + "$1"); d.url = d.url.replace(bu, "=" + e + "$1"); d.dataType = "script"; var j = a[e]; a[e] = function (c) { g = c; q.handleSuccess(d, s, f, g); q.handleComplete(d, s, f, g); if (q.isFunction(j)) j(c); else { a[e] = b; try { delete a[e] } catch (h) { } } m && m.removeChild(n) } } if (d.dataType === "script" && d.cache === null) d.cache = false; if (d.cache === false && h === "GET") { var k = q.now(), l = d.url.replace(bw, "$1_=" + k); d.url = l + (l === d.url ? (bv.test(d.url) ? "&" : "?") + "_=" + k : "") } if (d.data && h === "GET") d.url += (bv.test(d.url) ? "&" : "?") + d.data; d.global && q.active++ === 0 && q.event.trigger("ajaxStart"); k = (k = bx.exec(d.url)) && (k[1] && k[1] !== location.protocol || k[2] !== location.host); if (d.dataType === "script" && h === "GET" && k) { var m = p.getElementsByTagName("head")[0] || p.documentElement, n = p.createElement("script"); if (d.scriptCharset) n.charset = d.scriptCharset; n.src = d.url; if (!e) { var o = false; n.onload = n.onreadystatechange = function () { if (!o && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete")) { o = true; q.handleSuccess(d, s, f, g); q.handleComplete(d, s, f, g); n.onload = n.onreadystatechange = null; m && n.parentNode && m.removeChild(n) } } } m.insertBefore(n, m.firstChild); return b } var r = false, s = d.xhr(); if (s) { d.username ? s.open(h, d.url, d.async, d.username, d.password) : s.open(h, d.url, d.async); try { if (d.data != null && !i || c && c.contentType) s.setRequestHeader("Content-Type", d.contentType); if (d.ifModified) { q.lastModified[d.url] && s.setRequestHeader("If-Modified-Since", q.lastModified[d.url]); q.etag[d.url] && s.setRequestHeader("If-None-Match", q.etag[d.url]) } k || s.setRequestHeader("X-Requested-With", "XMLHttpRequest"); s.setRequestHeader("Accept", d.dataType && d.accepts[d.dataType] ? d.accepts[d.dataType] + ", */*; q=0.01" : d.accepts._default) } catch (t) { } if (d.beforeSend && d.beforeSend.call(d.context, s, d) === false) { d.global && q.active-- === 1 && q.event.trigger("ajaxStop"); s.abort(); return false } d.global && q.triggerGlobal(d, "ajaxSend", [s, d]); var u = s.onreadystatechange = function (a) { if (!s || s.readyState === 0 || a === "abort") { r || q.handleComplete(d, s, f, g); r = true; if (s) s.onreadystatechange = q.noop } else if (!r && s && (s.readyState === 4 || a === "timeout")) { r = true; s.onreadystatechange = q.noop; f = a === "timeout" ? "timeout" : !q.httpSuccess(s) ? "error" : d.ifModified && q.httpNotModified(s, d.url) ? "notmodified" : "success"; var b; if (f === "success") try { g = q.httpData(s, d.dataType, d) } catch (c) { f = "parsererror"; b = c } if (f === "success" || f === "notmodified") e || q.handleSuccess(d, s, f, g); else q.handleError(d, s, f, b); e || q.handleComplete(d, s, f, g); a === "timeout" && s.abort(); if (d.async) s = null } }; try { var v = s.abort; s.abort = function () { s && v.call && v.call(s); u("abort") } } catch (w) { } d.async && d.timeout > 0 && setTimeout(function () { s && !r && u("timeout") }, d.timeout); try { s.send(i || d.data == null ? null : d.data) } catch (x) { q.handleError(d, s, null, x); q.handleComplete(d, s, f, g) } d.async || u(); return s } }, param: function (a, c) { var d = [], e = function (a, b) { b = q.isFunction(b) ? b() : b; d[d.length] = encodeURIComponent(a) + "=" + encodeURIComponent(b) }; if (c === b) c = q.ajaxSettings.traditional; if (q.isArray(a) || a.jquery) q.each(a, function () { e(this.name, this.value) }); else for (var f in a) l(f, a[f], c, e); return d.join("&").replace(by, "+") } }); q.extend({ active: 0, lastModified: {}, etag: {}, handleError: function (a, b, c, d) { a.error && a.error.call(a.context, b, c, d); a.global && q.triggerGlobal(a, "ajaxError", [b, a, d]) }, handleSuccess: function (a, b, c, d) { a.success && a.success.call(a.context, d, c, b); a.global && q.triggerGlobal(a, "ajaxSuccess", [b, a]) }, handleComplete: function (a, b, c) { a.complete && a.complete.call(a.context, b, c); a.global && q.triggerGlobal(a, "ajaxComplete", [b, a]); a.global && q.active-- === 1 && q.event.trigger("ajaxStop") }, triggerGlobal: function (a, b, c) { (a.context && a.context.url == null ? q(a.context) : q.event).trigger(b, c) }, httpSuccess: function (a) { try { return !a.status && location.protocol === "file:" || a.status >= 200 && a.status < 300 || a.status === 304 || a.status === 1223 } catch (b) { } return false }, httpNotModified: function (a, b) { var c = a.getResponseHeader("Last-Modified"), d = a.getResponseHeader("Etag"); if (c) q.lastModified[b] = c; if (d) q.etag[b] = d; return a.status === 304 }, httpData: function (a, b, c) { var d = a.getResponseHeader("content-type") || "", e = b === "xml" || !b && d.indexOf("xml") >= 0; a = e ? a.responseXML : a.responseText; e && a.documentElement.nodeName === "parsererror" && q.error("parsererror"); if (c && c.dataFilter) a = c.dataFilter(a, b); if (typeof a === "string") if (b === "json" || !b && d.indexOf("json") >= 0) a = q.parseJSON(a); else if (b === "script" || !b && d.indexOf("javascript") >= 0) q.globalEval(a); return a } }); if (a.ActiveXObject) q.ajaxSettings.xhr = function () { if (a.location.protocol !== "file:") try { return new a.XMLHttpRequest } catch (b) { } try { return new a.ActiveXObject("Microsoft.XMLHTTP") } catch (c) { } }; q.support.ajax = !!q.ajaxSettings.xhr(); var bB = {}, bC = /^(?:toggle|show|hide)$/, bD = /^([+\-]=)?([\d+.\-]+)(.*)$/, bE, bF = [["height", "marginTop", "marginBottom", "paddingTop", "paddingBottom"], ["width", "marginLeft", "marginRight", "paddingLeft", "paddingRight"], ["opacity"]]; q.fn.extend({ show: function (a, b, c) { if (a || a === 0) return this.animate(m("show", 3), a, b, c); else { a = 0; for (b = this.length; a < b; a++) { if (!q.data(this[a], "olddisplay") && this[a].style.display === "none") this[a].style.display = ""; this[a].style.display === "" && q.css(this[a], "display") === "none" && q.data(this[a], "olddisplay", n(this[a].nodeName)) } for (a = 0; a < b; a++) this[a].style.display = q.data(this[a], "olddisplay") || ""; return this } }, hide: function (a, b, c) { if (a || a === 0) return this.animate(m("hide", 3), a, b, c); else { a = 0; for (b = this.length; a < b; a++) { c = q.css(this[a], "display"); c !== "none" && q.data(this[a], "olddisplay", c) } for (a = 0; a < b; a++) this[a].style.display = "none"; return this } }, _toggle: q.fn.toggle, toggle: function (a, b, c) { var d = typeof a === "boolean"; if (q.isFunction(a) && q.isFunction(b)) this._toggle.apply(this, arguments); else a == null || d ? this.each(function () { var b = d ? a : q(this).is(":hidden"); q(this)[b ? "show" : "hide"]() }) : this.animate(m("toggle", 3), a, b, c); return this }, fadeTo: function (a, b, c, d) { return this.filter(":hidden").css("opacity", 0).show().end().animate({ opacity: b }, a, c, d) }, animate: function (a, b, c, d) { var e = q.speed(b, c, d); if (q.isEmptyObject(a)) return this.each(e.complete); return this[e.queue === false ? "each" : "queue"](function () { var b = q.extend({}, e), c, d = this.nodeType === 1, f = d && q(this).is(":hidden"), g = this; for (c in a) { var h = q.camelCase(c); if (c !== h) { a[h] = a[c]; delete a[c]; c = h } if (a[c] === "hide" && f || a[c] === "show" && !f) return b.complete.call(this); if (d && (c === "height" || c === "width")) { b.overflow = [this.style.overflow, this.style.overflowX, this.style.overflowY]; if (q.css(this, "display") === "inline" && q.css(this, "float") === "none") if (q.support.inlineBlockNeedsLayout) if (n(this.nodeName) === "inline") this.style.display = "inline-block"; else { this.style.display = "inline"; this.style.zoom = 1 } else this.style.display = "inline-block" } if (q.isArray(a[c])) { (b.specialEasing = b.specialEasing || {})[c] = a[c][1]; a[c] = a[c][0] } } if (b.overflow != null) this.style.overflow = "hidden"; b.curAnim = q.extend({}, a); q.each(a, function (c, d) { var e = new q.fx(g, b, c); if (bC.test(d)) e[d === "toggle" ? f ? "show" : "hide" : d](a); else { var h = bD.exec(d), i = e.cur(true) || 0; if (h) { var j = parseFloat(h[2]), k = h[3] || "px"; if (k !== "px") { q.style(g, c, (j || 1) + k); i = (j || 1) / e.cur(true) * i; q.style(g, c, i + k) } if (h[1]) j = (h[1] === "-=" ? -1 : 1) * j + i; e.custom(i, j, k) } else e.custom(i, d, "") } }); return true }) }, stop: function (a, b) { var c = q.timers; a && this.queue([]); this.each(function () { for (var a = c.length - 1; a >= 0; a--) if (c[a].elem === this) { b && c[a](true); c.splice(a, 1) } }); b || this.dequeue(); return this } }); q.each({ slideDown: m("show", 1), slideUp: m("hide", 1), slideToggle: m("toggle", 1), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide"} }, function (a, b) { q.fn[a] = function (a, c, d) { return this.animate(b, a, c, d) } }); q.extend({ speed: function (a, b, c) { var d = a && typeof a === "object" ? q.extend({}, a) : { complete: c || !c && b || q.isFunction(a) && a, duration: a, easing: c && b || b && !q.isFunction(b) && b }; d.duration = q.fx.off ? 0 : typeof d.duration === "number" ? d.duration : d.duration in q.fx.speeds ? q.fx.speeds[d.duration] : q.fx.speeds._default; d.old = d.complete; d.complete = function () { d.queue !== false && q(this).dequeue(); q.isFunction(d.old) && d.old.call(this) }; return d }, easing: { linear: function (a, b, c, d) { return c + d * a }, swing: function (a, b, c, d) { return (-Math.cos(a * Math.PI) / 2 + .5) * d + c } }, timers: [], fx: function (a, b, c) { this.options = b; this.elem = a; this.prop = c; if (!b.orig) b.orig = {} } }); q.fx.prototype = { update: function () { this.options.step && this.options.step.call(this.elem, this.now, this); (q.fx.step[this.prop] || q.fx.step._default)(this) }, cur: function () { if (this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null)) return this.elem[this.prop]; var a = parseFloat(q.css(this.elem, this.prop)); return a && a > -1e4 ? a : 0 }, custom: function (a, b, c) { function d(a) { return e.step(a) } this.startTime = q.now(); this.start = a; this.end = b; this.unit = c || this.unit || "px"; this.now = this.start; this.pos = this.state = 0; var e = this; a = q.fx; d.elem = this.elem; if (d() && q.timers.push(d) && !bE) bE = setInterval(a.tick, a.interval) }, show: function () { this.options.orig[this.prop] = q.style(this.elem, this.prop); this.options.show = true; this.custom(this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur()); q(this.elem).show() }, hide: function () { this.options.orig[this.prop] = q.style(this.elem, this.prop); this.options.hide = true; this.custom(this.cur(), 0) }, step: function (a) { var b = q.now(), c = true; if (a || b >= this.options.duration + this.startTime) { this.now = this.end; this.pos = this.state = 1; this.update(); this.options.curAnim[this.prop] = true; for (var d in this.options.curAnim) if (this.options.curAnim[d] !== true) c = false; if (c) { if (this.options.overflow != null && !q.support.shrinkWrapBlocks) { var e = this.elem, f = this.options; q.each(["", "X", "Y"], function (a, b) { e.style["overflow" + b] = f.overflow[a] }) } this.options.hide && q(this.elem).hide(); if (this.options.hide || this.options.show) for (var g in this.options.curAnim) q.style(this.elem, g, this.options.orig[g]); this.options.complete.call(this.elem) } return false } else { a = b - this.startTime; this.state = a / this.options.duration; b = this.options.easing || (q.easing.swing ? "swing" : "linear"); this.pos = q.easing[this.options.specialEasing && this.options.specialEasing[this.prop] || b](this.state, a, 0, 1, this.options.duration); this.now = this.start + (this.end - this.start) * this.pos; this.update() } return true } }; q.extend(q.fx, { tick: function () { for (var a = q.timers, b = 0; b < a.length; b++) a[b]() || a.splice(b--, 1); a.length || q.fx.stop() }, interval: 13, stop: function () { clearInterval(bE); bE = null }, speeds: { slow: 600, fast: 200, _default: 400 }, step: { opacity: function (a) { q.style(a.elem, "opacity", a.now) }, _default: function (a) { if (a.elem.style && a.elem.style[a.prop] != null) a.elem.style[a.prop] = (a.prop === "width" || a.prop === "height" ? Math.max(0, a.now) : a.now) + a.unit; else a.elem[a.prop] = a.now } } }); if (q.expr && q.expr.filters) q.expr.filters.animated = function (a) { return q.grep(q.timers, function (b) { return a === b.elem }).length }; var bG = /^t(?:able|d|h)$/i, bH = /^(?:body|html)$/i; q.fn.offset = "getBoundingClientRect" in p.documentElement ? function (a) { var b = this[0], c; if (a) return this.each(function (b) { q.offset.setOffset(this, a, b) }); if (!b || !b.ownerDocument) return null; if (b === b.ownerDocument.body) return q.offset.bodyOffset(b); try { c = b.getBoundingClientRect() } catch (d) { } var e = b.ownerDocument, f = e.documentElement; if (!c || !q.contains(f, b)) return c || { top: 0, left: 0 }; b = e.body; e = o(e); return { top: c.top + (e.pageYOffset || q.support.boxModel && f.scrollTop || b.scrollTop) - (f.clientTop || b.clientTop || 0), left: c.left + (e.pageXOffset || q.support.boxModel && f.scrollLeft || b.scrollLeft) - (f.clientLeft || b.clientLeft || 0)} } : function (a) { var b = this[0]; if (a) return this.each(function (b) { q.offset.setOffset(this, a, b) }); if (!b || !b.ownerDocument) return null; if (b === b.ownerDocument.body) return q.offset.bodyOffset(b); q.offset.initialize(); var c = b.offsetParent, d = b.ownerDocument, e, f = d.documentElement, g = d.body; e = (d = d.defaultView) ? d.getComputedStyle(b, null) : b.currentStyle; for (var h = b.offsetTop, i = b.offsetLeft; (b = b.parentNode) && b !== g && b !== f; ) { if (q.offset.supportsFixedPosition && e.position === "fixed") break; e = d ? d.getComputedStyle(b, null) : b.currentStyle; h -= b.scrollTop; i -= b.scrollLeft; if (b === c) { h += b.offsetTop; i += b.offsetLeft; if (q.offset.doesNotAddBorder && !(q.offset.doesAddBorderForTableAndCells && bG.test(b.nodeName))) { h += parseFloat(e.borderTopWidth) || 0; i += parseFloat(e.borderLeftWidth) || 0 } c = b.offsetParent } if (q.offset.subtractsBorderForOverflowNotVisible && e.overflow !== "visible") { h += parseFloat(e.borderTopWidth) || 0; i += parseFloat(e.borderLeftWidth) || 0 } e = e } if (e.position === "relative" || e.position === "static") { h += g.offsetTop; i += g.offsetLeft } if (q.offset.supportsFixedPosition && e.position === "fixed") { h += Math.max(f.scrollTop, g.scrollTop); i += Math.max(f.scrollLeft, g.scrollLeft) } return { top: h, left: i} }; q.offset = { initialize: function () { var a = p.body, b = p.createElement("div"), c, d, e, f = parseFloat(q.css(a, "marginTop")) || 0; q.extend(b.style, { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" }); b.innerHTML = "<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>"; a.insertBefore(b, a.firstChild); c = b.firstChild; d = c.firstChild; e = c.nextSibling.firstChild.firstChild; this.doesNotAddBorder = d.offsetTop !== 5; this.doesAddBorderForTableAndCells = e.offsetTop === 5; d.style.position = "fixed"; d.style.top = "20px"; this.supportsFixedPosition = d.offsetTop === 20 || d.offsetTop === 15; d.style.position = d.style.top = ""; c.style.overflow = "hidden"; c.style.position = "relative"; this.subtractsBorderForOverflowNotVisible = d.offsetTop === -5; this.doesNotIncludeMarginInBodyOffset = a.offsetTop !== f; a.removeChild(b); q.offset.initialize = q.noop }, bodyOffset: function (a) { var b = a.offsetTop, c = a.offsetLeft; q.offset.initialize(); if (q.offset.doesNotIncludeMarginInBodyOffset) { b += parseFloat(q.css(a, "marginTop")) || 0; c += parseFloat(q.css(a, "marginLeft")) || 0 } return { top: b, left: c} }, setOffset: function (a, b, c) { var d = q.css(a, "position"); if (d === "static") a.style.position = "relative"; var e = q(a), f = e.offset(), g = q.css(a, "top"), h = q.css(a, "left"), i = d === "absolute" && q.inArray("auto", [g, h]) > -1; d = {}; var j = {}; if (i) j = e.position(); g = i ? j.top : parseInt(g, 10) || 0; h = i ? j.left : parseInt(h, 10) || 0; if (q.isFunction(b)) b = b.call(a, c, f); if (b.top != null) d.top = b.top - f.top + g; if (b.left != null) d.left = b.left - f.left + h; "using" in b ? b.using.call(a, d) : e.css(d) } }; q.fn.extend({ position: function () { if (!this[0]) return null; var a = this[0], b = this.offsetParent(), c = this.offset(), d = bH.test(b[0].nodeName) ? { top: 0, left: 0} : b.offset(); c.top -= parseFloat(q.css(a, "marginTop")) || 0; c.left -= parseFloat(q.css(a, "marginLeft")) || 0; d.top += parseFloat(q.css(b[0], "borderTopWidth")) || 0; d.left += parseFloat(q.css(b[0], "borderLeftWidth")) || 0; return { top: c.top - d.top, left: c.left - d.left} }, offsetParent: function () { return this.map(function () { for (var a = this.offsetParent || p.body; a && !bH.test(a.nodeName) && q.css(a, "position") === "static"; ) a = a.offsetParent; return a }) } }); q.each(["Left", "Top"], function (a, c) { var d = "scroll" + c; q.fn[d] = function (c) { var e = this[0], f; if (!e) return null; if (c !== b) return this.each(function () { if (f = o(this)) f.scrollTo(!a ? c : q(f).scrollLeft(), a ? c : q(f).scrollTop()); else this[d] = c }); else return (f = o(e)) ? "pageXOffset" in f ? f[a ? "pageYOffset" : "pageXOffset"] : q.support.boxModel && f.document.documentElement[d] || f.document.body[d] : e[d] } }); q.each(["Height", "Width"], function (a, c) { var d = c.toLowerCase(); q.fn["inner" + c] = function () { return this[0] ? parseFloat(q.css(this[0], d, "padding")) : null }; q.fn["outer" + c] = function (a) { return this[0] ? parseFloat(q.css(this[0], d, a ? "margin" : "border")) : null }; q.fn[d] = function (a) { var e = this[0]; if (!e) return a == null ? null : this; if (q.isFunction(a)) return this.each(function (b) { var c = q(this); c[d](a.call(this, b, c[d]())) }); return q.isWindow(e) ? e.document.compatMode === "CSS1Compat" && e.document.documentElement["client" + c] || e.document.body["client" + c] : e.nodeType === 9 ? Math.max(e.documentElement["client" + c], e.body["scroll" + c], e.documentElement["scroll" + c], e.body["offset" + c], e.documentElement["offset" + c]) : a === b ? parseFloat(q.css(e, d)) : this.css(d, typeof a === "string" ? a : a + "px") } }) })(window); (function (a) { a.extend(a.fn, { validate: function (b) { if (!this.length) { b && b.debug && window.console && console.warn("nothing selected, can't validate, returning nothing"); return } var c = a.data(this[0], "validator"); if (c) { return c } c = new a.validator(b, this[0]); a.data(this[0], "validator", c); if (c.settings.onsubmit) { this.find("input, button").filter(".cancel").click(function () { c.cancelSubmit = true }); if (c.settings.submitHandler) { this.find("input, button").filter(":submit").click(function () { c.submitButton = this }) } this.submit(function (b) { function d() { if (c.settings.submitHandler) { if (c.submitButton) { var b = a("<input type='hidden'/>").attr("name", c.submitButton.name).val(c.submitButton.value).appendTo(c.currentForm) } c.settings.submitHandler.call(c, c.currentForm); if (c.submitButton) { b.remove() } return false } return true } if (c.settings.debug) b.preventDefault(); if (c.cancelSubmit) { c.cancelSubmit = false; return d() } if (c.form()) { if (c.pendingRequest) { c.formSubmitted = true; return false } return d() } else { c.focusInvalid(); return false } }) } return c }, valid: function () { if (a(this[0]).is("form")) { return this.validate().form() } else { var b = true; var c = a(this[0].form).validate(); this.each(function () { b &= c.element(this) }); return b } }, removeAttrs: function (b) { var c = {}, d = this; a.each(b.split(/\s/), function (a, b) { c[b] = d.attr(b); d.removeAttr(b) }); return c }, rules: function (b, c) { var d = this[0]; if (b) { var e = a.data(d.form, "validator").settings; var f = e.rules; var g = a.validator.staticRules(d); switch (b) { case "add": a.extend(g, a.validator.normalizeRule(c)); f[d.name] = g; if (c.messages) e.messages[d.name] = a.extend(e.messages[d.name], c.messages); break; case "remove": if (!c) { delete f[d.name]; return g } var h = {}; a.each(c.split(/\s/), function (a, b) { h[b] = g[b]; delete g[b] }); return h } } var i = a.validator.normalizeRules(a.extend({}, a.validator.metadataRules(d), a.validator.classRules(d), a.validator.attributeRules(d), a.validator.staticRules(d)), d); if (i.required) { var j = i.required; delete i.required; i = a.extend({ required: j }, i) } return i } }); a.extend(a.expr[":"], { blank: function (b) { return !a.trim("" + b.value) }, filled: function (b) { return !!a.trim("" + b.value) }, unchecked: function (a) { return !a.checked } }); a.validator = function (b, c) { this.settings = a.extend(true, {}, a.validator.defaults, b); this.currentForm = c; this.init() }; a.validator.format = function (b, c) { if (arguments.length == 1) return function () { var c = a.makeArray(arguments); c.unshift(b); return a.validator.format.apply(this, c) }; if (arguments.length > 2 && c.constructor != Array) { c = a.makeArray(arguments).slice(1) } if (c.constructor != Array) { c = [c] } a.each(c, function (a, c) { b = b.replace(new RegExp("\\{" + a + "\\}", "g"), c) }); return b }; a.extend(a.validator, { defaults: { messages: {}, groups: {}, rules: {}, errorClass: "error", validClass: "valid", errorElement: "label", focusInvalid: true, errorContainer: a([]), errorLabelContainer: a([]), onsubmit: true, ignore: [], ignoreTitle: false, onfocusin: function (a) { this.lastActive = a; if (this.settings.focusCleanup && !this.blockFocusCleanup) { this.settings.unhighlight && this.settings.unhighlight.call(this, a, this.settings.errorClass, this.settings.validClass); this.errorsFor(a).hide() } }, onfocusout: function (a) { if (!this.checkable(a) && (a.name in this.submitted || !this.optional(a))) { this.element(a) } }, onkeyup: function (a) { if (a.name in this.submitted || a == this.lastElement) { this.element(a) } }, onclick: function (a) { if (a.name in this.submitted) this.element(a); else if (a.parentNode.name in this.submitted) this.element(a.parentNode) }, highlight: function (b, c, d) { a(b).addClass(c).removeClass(d) }, unhighlight: function (b, c, d) { a(b).removeClass(c).addClass(d) } }, setDefaults: function (b) { a.extend(a.validator.defaults, b) }, messages: { required: "This field is required.", remote: "Please fix this field.", email: "Please enter a valid email address.", url: "Please enter a valid URL.", date: "Please enter a valid date.", dateISO: "Please enter a valid date (ISO).", number: "Please enter a valid number.", digits: "Please enter only digits.", creditcard: "Please enter a valid credit card number.", equalTo: "Please enter the same value again.", accept: "Please enter a value with a valid extension.", maxlength: a.validator.format("Please enter no more than {0} characters."), minlength: a.validator.format("Please enter at least {0} characters."), rangelength: a.validator.format("Please enter a value between {0} and {1} characters long."), range: a.validator.format("Please enter a value between {0} and {1}."), max: a.validator.format("Please enter a value less than or equal to {0}."), min: a.validator.format("Please enter a value greater than or equal to {0}.") }, autoCreateRanges: false, prototype: { init: function () { function b(b) { var c = a.data(this[0].form, "validator"), d = "on" + b.type.replace(/^validate/, ""); c.settings[d] && c.settings[d].call(c, this[0]) } this.labelContainer = a(this.settings.errorLabelContainer); this.errorContext = this.labelContainer.length && this.labelContainer || a(this.currentForm); this.containers = a(this.settings.errorContainer).add(this.settings.errorLabelContainer); this.submitted = {}; this.valueCache = {}; this.pendingRequest = 0; this.pending = {}; this.invalid = {}; this.reset(); var c = this.groups = {}; a.each(this.settings.groups, function (b, d) { a.each(d.split(/\s/), function (a, d) { c[d] = b }) }); var d = this.settings.rules; a.each(d, function (b, c) { d[b] = a.validator.normalizeRule(c) }); a(this.currentForm).validateDelegate(":text, :password, :file, select, textarea", "focusin focusout keyup", b).validateDelegate(":radio, :checkbox, select, option", "click", b); if (this.settings.invalidHandler) a(this.currentForm).bind("invalid-form.validate", this.settings.invalidHandler) }, form: function () { this.checkForm(); a.extend(this.submitted, this.errorMap); this.invalid = a.extend({}, this.errorMap); if (!this.valid()) a(this.currentForm).triggerHandler("invalid-form", [this]); this.showErrors(); return this.valid() }, checkForm: function () { this.prepareForm(); for (var a = 0, b = this.currentElements = this.elements(); b[a]; a++) { this.check(b[a]) } return this.valid() }, element: function (b) { b = this.clean(b); this.lastElement = b; this.prepareElement(b); this.currentElements = a(b); var c = this.check(b); if (c) { delete this.invalid[b.name] } else { this.invalid[b.name] = true } if (!this.numberOfInvalids()) { this.toHide = this.toHide.add(this.containers) } this.showErrors(); return c }, showErrors: function (b) { if (b) { a.extend(this.errorMap, b); this.errorList = []; for (var c in b) { this.errorList.push({ message: b[c], element: this.findByName(c)[0] }) } this.successList = a.grep(this.successList, function (a) { return !(a.name in b) }) } this.settings.showErrors ? this.settings.showErrors.call(this, this.errorMap, this.errorList) : this.defaultShowErrors() }, resetForm: function () { if (a.fn.resetForm) a(this.currentForm).resetForm(); this.submitted = {}; this.prepareForm(); this.hideErrors(); this.elements().removeClass(this.settings.errorClass) }, numberOfInvalids: function () { return this.objectLength(this.invalid) }, objectLength: function (a) { var b = 0; for (var c in a) b++; return b }, hideErrors: function () { this.addWrapper(this.toHide).hide() }, valid: function () { return this.size() == 0 }, size: function () { return this.errorList.length }, focusInvalid: function () { if (this.settings.focusInvalid) { try { a(this.findLastActive() || this.errorList.length && this.errorList[0].element || []).filter(":visible").focus().trigger("focusin") } catch (b) { } } }, findLastActive: function () { var b = this.lastActive; return b && a.grep(this.errorList, function (a) { return a.element.name == b.name }).length == 1 && b }, elements: function () { var b = this, c = {}; return a([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function () { !this.name && b.settings.debug && window.console && console.error("%o has no name assigned", this); if (this.name in c || !b.objectLength(a(this).rules())) return false; c[this.name] = true; return true }) }, clean: function (b) { return a(b)[0] }, errors: function () { return a(this.settings.errorElement + "." + this.settings.errorClass, this.errorContext) }, reset: function () { this.successList = []; this.errorList = []; this.errorMap = {}; this.toShow = a([]); this.toHide = a([]); this.currentElements = a([]) }, prepareForm: function () { this.reset(); this.toHide = this.errors().add(this.containers) }, prepareElement: function (a) { this.reset(); this.toHide = this.errorsFor(a) }, check: function (b) { b = this.clean(b); if (this.checkable(b)) { b = this.findByName(b.name)[0] } var c = a(b).rules(); var d = false; for (method in c) { var e = { method: method, parameters: c[method] }; try { var f = a.validator.methods[method].call(this, b.value.replace(/\r/g, ""), b, e.parameters); if (f == "dependency-mismatch") { d = true; continue } d = false; if (f == "pending") { this.toHide = this.toHide.not(this.errorsFor(b)); return } if (!f) { this.formatAndAdd(b, e); return false } } catch (g) { this.settings.debug && window.console && console.log("exception occured when checking element " + b.id + ", check the '" + e.method + "' method", g); throw g } } if (d) return; if (this.objectLength(c)) this.successList.push(b); return true }, customMetaMessage: function (b, c) { if (!a.metadata) return; var d = this.settings.meta ? a(b).metadata()[this.settings.meta] : a(b).metadata(); return d && d.messages && d.messages[c] }, customMessage: function (a, b) { var c = this.settings.messages[a]; return c && (c.constructor == String ? c : c[b]) }, findDefined: function () { for (var a = 0; a < arguments.length; a++) { if (arguments[a] !== undefined) return arguments[a] } return undefined }, defaultMessage: function (b, c) { return this.findDefined(this.customMessage(b.name, c), this.customMetaMessage(b, c), !this.settings.ignoreTitle && b.title || undefined, a.validator.messages[c], "<strong>Warning: No message defined for " + b.name + "</strong>") }, formatAndAdd: function (a, b) { var c = this.defaultMessage(a, b.method), d = /\$?\{(\d+)\}/g; if (typeof c == "function") { c = c.call(this, b.parameters, a) } else if (d.test(c)) { c = jQuery.format(c.replace(d, "{$1}"), b.parameters) } this.errorList.push({ message: c, element: a }); this.errorMap[a.name] = c; this.submitted[a.name] = c }, addWrapper: function (a) { if (this.settings.wrapper) a = a.add(a.parent(this.settings.wrapper)); return a }, defaultShowErrors: function () { for (var a = 0; this.errorList[a]; a++) { var b = this.errorList[a]; this.settings.highlight && this.settings.highlight.call(this, b.element, this.settings.errorClass, this.settings.validClass); this.showLabel(b.element, b.message) } if (this.errorList.length) { this.toShow = this.toShow.add(this.containers) } if (this.settings.success) { for (var a = 0; this.successList[a]; a++) { this.showLabel(this.successList[a]) } } if (this.settings.unhighlight) { for (var a = 0, c = this.validElements(); c[a]; a++) { this.settings.unhighlight.call(this, c[a], this.settings.errorClass, this.settings.validClass) } } this.toHide = this.toHide.not(this.toShow); this.hideErrors(); this.addWrapper(this.toShow).show() }, validElements: function () { return this.currentElements.not(this.invalidElements()) }, invalidElements: function () { return a(this.errorList).map(function () { return this.element }) }, showLabel: function (b, c) { var d = this.errorsFor(b); if (d.length) { d.removeClass().addClass(this.settings.errorClass); d.attr("generated") && d.html(c) } else { d = a("<" + this.settings.errorElement + "/>").attr({ "for": this.idOrName(b), generated: true }).addClass(this.settings.errorClass).html(c || ""); if (this.settings.wrapper) { d = d.hide().show().wrap("<" + this.settings.wrapper + "/>").parent() } if (!this.labelContainer.append(d).length) this.settings.errorPlacement ? this.settings.errorPlacement(d, a(b)) : d.insertAfter(b) } if (!c && this.settings.success) { d.text(""); typeof this.settings.success == "string" ? d.addClass(this.settings.success) : this.settings.success(d) } this.toShow = this.toShow.add(d) }, errorsFor: function (b) { var c = this.idOrName(b); return this.errors().filter(function () { return a(this).attr("for") == c }) }, idOrName: function (a) { return this.groups[a.name] || (this.checkable(a) ? a.name : a.id || a.name) }, checkable: function (a) { return /radio|checkbox/i.test(a.type) }, findByName: function (b) { var c = this.currentForm; return a(document.getElementsByName(b)).map(function (a, d) { return d.form == c && d.name == b && d || null }) }, getLength: function (b, c) { switch (c.nodeName.toLowerCase()) { case "select": return a("option:selected", c).length; case "input": if (this.checkable(c)) return this.findByName(c.name).filter(":checked").length } return b.length }, depend: function (a, b) { return this.dependTypes[typeof a] ? this.dependTypes[typeof a](a, b) : true }, dependTypes: { "boolean": function (a, b) { return a }, string: function (b, c) { return !!a(b, c.form).length }, "function": function (a, b) { return a(b) } }, optional: function (b) { return !a.validator.methods.required.call(this, a.trim(b.value), b) && "dependency-mismatch" }, startRequest: function (a) { if (!this.pending[a.name]) { this.pendingRequest++; this.pending[a.name] = true } }, stopRequest: function (b, c) { this.pendingRequest--; if (this.pendingRequest < 0) this.pendingRequest = 0; delete this.pending[b.name]; if (c && this.pendingRequest == 0 && this.formSubmitted && this.form()) { a(this.currentForm).submit(); this.formSubmitted = false } else if (!c && this.pendingRequest == 0 && this.formSubmitted) { a(this.currentForm).triggerHandler("invalid-form", [this]); this.formSubmitted = false } }, previousValue: function (b) { return a.data(b, "previousValue") || a.data(b, "previousValue", { old: null, valid: true, message: this.defaultMessage(b, "remote") }) } }, classRuleSettings: { required: { required: true }, email: { email: true }, url: { url: true }, date: { date: true }, dateISO: { dateISO: true }, dateDE: { dateDE: true }, number: { number: true }, numberDE: { numberDE: true }, digits: { digits: true }, creditcard: { creditcard: true} }, addClassRules: function (b, c) { b.constructor == String ? this.classRuleSettings[b] = c : a.extend(this.classRuleSettings, b) }, classRules: function (b) { var c = {}; var d = a(b).attr("class"); d && a.each(d.split(" "), function () { if (this in a.validator.classRuleSettings) { a.extend(c, a.validator.classRuleSettings[this]) } }); return c }, attributeRules: function (b) { var c = {}; var d = a(b); for (method in a.validator.methods) { var e = d.attr(method); if (e) { c[method] = e } } if (c.maxlength && /-1|2147483647|524288/.test(c.maxlength)) { delete c.maxlength } return c }, metadataRules: function (b) { if (!a.metadata) return {}; var c = a.data(b.form, "validator").settings.meta; return c ? a(b).metadata()[c] : a(b).metadata() }, staticRules: function (b) { var c = {}; var d = a.data(b.form, "validator"); if (d.settings.rules) { c = a.validator.normalizeRule(d.settings.rules[b.name]) || {} } return c }, normalizeRules: function (b, c) { a.each(b, function (d, e) { if (e === false) { delete b[d]; return } if (e.param || e.depends) { var f = true; switch (typeof e.depends) { case "string": f = !!a(e.depends, c.form).length; break; case "function": f = e.depends.call(c, c); break } if (f) { b[d] = e.param !== undefined ? e.param : true } else { delete b[d] } } }); a.each(b, function (d, e) { b[d] = a.isFunction(e) ? e(c) : e }); a.each(["minlength", "maxlength", "min", "max"], function () { if (b[this]) { b[this] = Number(b[this]) } }); a.each(["rangelength", "range"], function () { if (b[this]) { b[this] = [Number(b[this][0]), Number(b[this][1])] } }); if (a.validator.autoCreateRanges) { if (b.min && b.max) { b.range = [b.min, b.max]; delete b.min; delete b.max } if (b.minlength && b.maxlength) { b.rangelength = [b.minlength, b.maxlength]; delete b.minlength; delete b.maxlength } } if (b.messages) { delete b.messages } return b }, normalizeRule: function (b) { if (typeof b == "string") { var c = {}; a.each(b.split(/\s/), function () { c[this] = true }); b = c } return b }, addMethod: function (b, c, d) { a.validator.methods[b] = c; a.validator.messages[b] = d != undefined ? d : a.validator.messages[b]; if (c.length < 3) { a.validator.addClassRules(b, a.validator.normalizeRule(b)) } }, methods: { required: function (b, c, d) { if (!this.depend(d, c)) return "dependency-mismatch"; switch (c.nodeName.toLowerCase()) { case "select": var e = a(c).val(); return e && e.length > 0; case "input": if (this.checkable(c)) return this.getLength(b, c) > 0; default: return a.trim(b).length > 0 } }, remote: function (b, c, d) { if (this.optional(c)) return "dependency-mismatch"; var e = this.previousValue(c); if (!this.settings.messages[c.name]) this.settings.messages[c.name] = {}; e.originalMessage = this.settings.messages[c.name].remote; this.settings.messages[c.name].remote = e.message; d = typeof d == "string" && { url: d} || d; if (e.old !== b) { e.old = b; var f = this; this.startRequest(c); var g = {}; g[c.name] = b; a.ajax(a.extend(true, { url: d, mode: "abort", port: "validate" + c.name, dataType: "json", data: g, success: function (d) { f.settings.messages[c.name].remote = e.originalMessage; var g = d === true; if (g) { var h = f.formSubmitted; f.prepareElement(c); f.formSubmitted = h; f.successList.push(c); f.showErrors() } else { var i = {}; var j = e.message = d || f.defaultMessage(c, "remote"); i[c.name] = a.isFunction(j) ? j(b) : j; f.showErrors(i) } e.valid = g; f.stopRequest(c, g) } }, d)); return "pending" } else if (this.pending[c.name]) { return "pending" } return e.valid }, minlength: function (b, c, d) { return this.optional(c) || this.getLength(a.trim(b), c) >= d }, maxlength: function (b, c, d) { return this.optional(c) || this.getLength(a.trim(b), c) <= d }, rangelength: function (b, c, d) { var e = this.getLength(a.trim(b), c); return this.optional(c) || e >= d[0] && e <= d[1] }, min: function (a, b, c) { return this.optional(b) || a >= c }, max: function (a, b, c) { return this.optional(b) || a <= c }, range: function (a, b, c) { return this.optional(b) || a >= c[0] && a <= c[1] }, email: function (a, b) { return this.optional(b) || /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(a) }, url: function (a, b) { return this.optional(b) || /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a) }, date: function (a, b) { return this.optional(b) || !/Invalid|NaN/.test(new Date(a)) }, dateISO: function (a, b) { return this.optional(b) || /^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a) }, number: function (a, b) { return this.optional(b) || /^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(a) }, digits: function (a, b) { return this.optional(b) || /^\d+$/.test(a) }, creditcard: function (a, b) { if (this.optional(b)) return "dependency-mismatch"; if (/[^0-9-]+/.test(a)) return false; var c = 0, d = 0, e = false; a = a.replace(/\D/g, ""); for (var f = a.length - 1; f >= 0; f--) { var g = a.charAt(f); var d = parseInt(g, 10); if (e) { if ((d *= 2) > 9) d -= 9 } c += d; e = !e } return c % 10 == 0 }, accept: function (a, b, c) { c = typeof c == "string" ? c.replace(/,/g, "|") : "png|jpe?g|gif"; return this.optional(b) || a.match(new RegExp(".(" + c + ")$", "i")) }, equalTo: function (b, c, d) { var e = a(d).unbind(".validate-equalTo").bind("blur.validate-equalTo", function () { a(c).valid() }); return b == e.val() } } }); a.format = a.validator.format })(jQuery); (function (a) { var b = a.ajax; var c = {}; a.ajax = function (d) { d = a.extend(d, a.extend({}, a.ajaxSettings, d)); var e = d.port; if (d.mode == "abort") { if (c[e]) { c[e].abort() } return c[e] = b.apply(this, arguments) } return b.apply(this, arguments) } })(jQuery); (function (a) { if (!jQuery.event.special.focusin && !jQuery.event.special.focusout && document.addEventListener) { a.each({ focus: "focusin", blur: "focusout" }, function (b, c) { function d(b) { b = a.event.fix(b); b.type = c; return a.event.handle.call(this, b) } a.event.special[c] = { setup: function () { this.addEventListener(b, d, true) }, teardown: function () { this.removeEventListener(b, d, true) }, handler: function (b) { arguments[0] = a.event.fix(b); arguments[0].type = c; return a.event.handle.apply(this, arguments) } } }) } a.extend(a.fn, { validateDelegate: function (b, c, d) { return this.bind(c, function (c) { var e = a(c.target); if (e.is(b)) { return d.apply(e, arguments) } }) } }) })(jQuery); (function (a) { a.fn.ieffembedfix = function () { var b = "hIEfix.png"; return this.each(function () { if (a.browser.msie) { a(this).css({ filter: 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + pngimgurl + ",sizingMethod=crop', zoom: "1" }) } }) } })(jQuery); (function (a) { a.fn.tweet = function (b) { function e(a) { return Date.parse(a.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i, "$1,$2$4$3")) } function d(a) { var b = arguments.length > 1 ? arguments[1] : new Date; var c = parseInt((b.getTime() - a) / 1e3, 10); var d = ""; if (c < 60) { d = c + " seconds ago" } else if (c < 120) { d = "a minute ago" } else if (c < 45 * 60) { d = parseInt(c / 60, 10).toString() + " minutes ago" } else if (c < 2 * 60 * 60) { d = "an hour ago" } else if (c < 24 * 60 * 60) { d = "" + parseInt(c / 3600, 10).toString() + " hours ago" } else if (c < 48 * 60 * 60) { d = "a day ago" } else { d = parseInt(c / 86400, 10).toString() + " days ago" } return "about " + d } function c() { var a = "https:" == document.location.protocol ? "https:" : "http:"; var b = f.fetch === null ? f.count : f.fetch; if (f.list) { return a + "//" + f.twitter_api_url + "/1/" + f.username[0] + "/lists/" + f.list + "/statuses.json?per_page=" + b + "&callback=?" } else if (f.favorites) { return a + "//" + f.twitter_api_url + "/favorites/" + f.username[0] + ".json?count=" + f.count + "&callback=?" } else if (f.query === null && f.username.length == 1) { return a + "//" + f.twitter_api_url + "/1/statuses/user_timeline.json?screen_name=" + f.username[0] + "&count=" + b + (f.retweets ? "&include_rts=1" : "") + "&callback=?" } else { var c = f.query || "from:" + f.username.join(" OR from:"); return a + "//" + f.twitter_search_url + "/search.json?&q=" + encodeURIComponent(c) + "&rpp=" + b + "&callback=?" } } var f = a.extend({ username: null, list: null, favorites: false, query: null, avatar_size: null, count: 3, fetch: null, retweets: true, intro_text: null, outro_text: null, join_text: null, auto_join_text_default: "i said,", auto_join_text_ed: "i", auto_join_text_ing: "i am", auto_join_text_reply: "i replied to", auto_join_text_url: "i was looking at", loading_text: null, refresh_interval: null, twitter_url: "twitter.com", twitter_api_url: "api.twitter.com", twitter_search_url: "search.twitter.com", template: "{avatar}{time}{join}{text}", comparator: function (a, b) { return b["tweet_time"] - a["tweet_time"] }, filter: function (a) { return true } }, b); a.fn.extend({ linkUrl: function () { var b = []; var c = /\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi; this.each(function () { b.push(this.replace(c, function (a) { var b = /^[a-z]+:/i.test(a) ? a : "http://" + a; return '<a target="_blank" href="' + b + '">' + a + "</a>" })) }); return a(b) }, linkUser: function () { var b = []; var c = /[\@]+(\w+)/gi; this.each(function () { b.push(this.replace(c, '@<a target="_blank" href="http://' + f.twitter_url + '/$1">$1</a>')) }); return a(b) }, linkHash: function () { var b = []; var c = /(?:^| )[\#]+([\w\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u00ff\u0600-\u06ff]+)/gi; var d = f.username && f.username.length == 1 ? "&from=" + f.username.join("%2BOR%2B") : ""; this.each(function () { b.push(this.replace(c, ' <a target="_blank" href="http://' + f.twitter_search_url + "/search?q=&tag=$1&lang=all" + d + '">#$1</a>')) }); return a(b) }, capAwesome: function () { var b = []; this.each(function () { b.push(this.replace(/\b(awesome)\b/gi, '<span class="awesome">$1</span>')) }); return a(b) }, capEpic: function () { var b = []; this.each(function () { b.push(this.replace(/\b(epic)\b/gi, '<span class="epic">$1</span>')) }); return a(b) }, makeHeart: function () { var b = []; this.each(function () { b.push(this.replace(/(<)+[3]/gi, "<tt class='heart'>&#x2665;</tt>")) }); return a(b) } }); return this.each(function (b, g) { var h = a('<ul class="tweet_list">').appendTo(g); var i = '<p class="tweet_intro">' + f.intro_text + "</p>"; var j = '<p class="tweet_outro">' + f.outro_text + "</p>"; var k = a('<p class="loading">' + f.loading_text + "</p>"); if (f.username && typeof f.username == "string") { f.username = [f.username] } var l = function (a) { if (typeof f.template === "string") { var b = f.template; for (var c in a) { var d = a[c]; b = b.replace(new RegExp("{" + c + "}", "g"), d === null ? "" : d) } return b } else return f.template(a) }; if (f.loading_text) a(g).append(k); a(g).bind("load", function () { a.getJSON(c(), function (b) { if (f.loading_text) k.remove(); if (f.intro_text) h.before(i); h.empty(); var c = a.map(b.results || b, function (b) { var c = f.join_text; if (f.join_text == "auto") { if (b.text.match(/^(@([A-Za-z0-9-_]+)) .*/i)) { c = f.auto_join_text_reply } else if (b.text.match(/(^\w+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+) .*/i)) { c = f.auto_join_text_url } else if (b.text.match(/^((\w+ed)|just) .*/im)) { c = f.auto_join_text_ed } else if (b.text.match(/^(\w*ing) .*/i)) { c = f.auto_join_text_ing } else { c = f.auto_join_text_default } } var g = b.from_user || b.user.screen_name; var h = b.source; var i = "http://" + f.twitter_url + "/" + g; var j = f.avatar_size; var k = b.profile_image_url || b.user.profile_image_url; var l = "http://" + f.twitter_url + "/" + g + "/status/" + b.id_str; var m = typeof b.retweeted_status != "undefined"; var n = m ? b.retweeted_status.user.screen_name : null; var o = e(b.created_at); var p = d(o); var q = m ? "RT @" + n + " " + b.retweeted_status.text : b.text; var r = a([q]).linkUrl().linkUser().linkHash()[0]; var s = '<a class="tweet_user" href="' + i + '">' + g + "</a>"; var t = f.join_text ? '<span class="tweet_join"> ' + c + " </span>" : " "; var u = j ? '<a target="_blank" class="tweet_avatar" href="' + i + '"><img src="' + k + '" height="' + j + '" width="' + j + '" alt="' + g + '\'s avatar" title="' + g + '\'s avatar" border="0"/></a>' : ""; var v = '<span class="tweet_time"><a target="_blank" href="' + l + '" title="view tweet on twitter">' + p + "</a></span>"; var w = '<span class="tweet_text">' + a([r]).makeHeart().capAwesome().capEpic()[0] + "</span>"; return { item: b, screen_name: g, user_url: i, avatar_size: j, avatar_url: k, source: h, tweet_url: l, tweet_time: o, tweet_relative_time: p, tweet_raw_text: q, tweet_text: r, retweet: m, retweeted_screen_name: n, user: s, join: t, avatar: u, time: v, text: w} }); c = a.grep(c, f.filter).sort(f.comparator).slice(0, f.count); h.append(a.map(c, function (a) { return "<li>" + l(a) + "</li>" }).join("")).children("li:first").addClass("tweet_first").end().children("li:odd").addClass("tweet_even").end().children("li:even").addClass("tweet_odd"); if (f.outro_text) h.after(j); a(g).trigger("loaded").trigger(c.length === 0 ? "empty" : "full"); if (f.refresh_interval) { window.setTimeout(function () { a(g).trigger("load") }, 1e3 * f.refresh_interval) } }) }).trigger("load") }) } })(jQuery); var swfobject = function () { function v() { if (P) { return } try { var a = E.getElementsByTagName("body")[0].appendChild(f("span")); a.parentNode.removeChild(a) } catch (b) { return } P = true; var c = H.length; for (var d = 0; d < c; d++) { H[d]() } } function u(a) { if (P) { a() } else { H[H.length] = a } } function t(a) { if (typeof D.addEventListener != w) { D.addEventListener("load", a, false) } else { if (typeof E.addEventListener != w) { E.addEventListener("load", a, false) } else { if (typeof D.attachEvent != w) { e(D, "onload", a) } else { if (typeof D.onload == "function") { var b = D.onload; D.onload = function () { b(); a() } } else { D.onload = a } } } } } function s() { if (G) { r() } else { q() } } function r() { var a = E.getElementsByTagName("body")[0]; var b = f(x); b.setAttribute("type", A); var c = a.appendChild(b); if (c) { var d = 0; (function () { if (typeof c.GetVariable != w) { var e = c.GetVariable("$version"); if (e) { e = e.split(" ")[1].split(","); U.pv = [parseInt(e[0], 10), parseInt(e[1], 10), parseInt(e[2], 10)] } } else { if (d < 10) { d++; setTimeout(arguments.callee, 10); return } } a.removeChild(b); c = null; q() })() } else { q() } } function q() { var a = I.length; if (a > 0) { for (var c = 0; c < a; c++) { var e = I[c].id; var f = I[c].callbackFn; var h = { success: false, id: e }; if (U.pv[0] > 0) { var i = g(e); if (i) { if (d(I[c].swfVersion) && !(U.wk && U.wk < 312)) { b(e, true); if (f) { h.success = true; h.ref = p(e); f(h) } } else { if (I[c].expressInstall && o()) { var j = {}; j.data = I[c].expressInstall; j.width = i.getAttribute("width") || "0"; j.height = i.getAttribute("height") || "0"; if (i.getAttribute("class")) { j.styleclass = i.getAttribute("class") } if (i.getAttribute("align")) { j.align = i.getAttribute("align") } var k = {}; var l = i.getElementsByTagName("param"); var q = l.length; for (var r = 0; r < q; r++) { if (l[r].getAttribute("name").toLowerCase() != "movie") { k[l[r].getAttribute("name")] = l[r].getAttribute("value") } } n(j, k, e, f) } else { m(i); if (f) { f(h) } } } } } else { b(e, true); if (f) { var s = p(e); if (s && typeof s.SetVariable != w) { h.success = true; h.ref = s } f(h) } } } } } function p(a) { var b = null; var c = g(a); if (c && c.nodeName == "OBJECT") { if (typeof c.SetVariable != w) { b = c } else { var d = c.getElementsByTagName(x)[0]; if (d) { b = d } } } return b } function o() { return !Q && d("6.0.65") && (U.win || U.mac) && !(U.wk && U.wk < 312) } function n(a, b, c, d) { Q = true; N = d || null; O = { success: false, id: c }; var e = g(c); if (e) { if (e.nodeName == "OBJECT") { L = l(e); M = null } else { L = e; M = c } a.id = B; if (typeof a.width == w || !/%$/.test(a.width) && parseInt(a.width, 10) < 310) { a.width = "310" } if (typeof a.height == w || !/%$/.test(a.height) && parseInt(a.height, 10) < 137) { a.height = "137" } E.title = E.title.slice(0, 47) + " - Flash Player Installation"; var h = U.ie && U.win ? "ActiveX" : "PlugIn", i = "MMredirectURL=" + D.location.toString().replace(/&/g, "%26") + "&MMplayerType=" + h + "&MMdoctitle=" + E.title; if (typeof b.flashvars != w) { b.flashvars += "&" + i } else { b.flashvars = i } if (U.ie && U.win && e.readyState != 4) { var j = f("div"); c += "SWFObjectNew"; j.setAttribute("id", c); e.parentNode.insertBefore(j, e); e.style.display = "none"; (function () { if (e.readyState == 4) { e.parentNode.removeChild(e) } else { setTimeout(arguments.callee, 10) } })() } k(a, b, c) } } function m(a) { if (U.ie && U.win && a.readyState != 4) { var b = f("div"); a.parentNode.insertBefore(b, a); b.parentNode.replaceChild(l(a), b); a.style.display = "none"; (function () { if (a.readyState == 4) { a.parentNode.removeChild(a) } else { setTimeout(arguments.callee, 10) } })() } else { a.parentNode.replaceChild(l(a), a) } } function l(a) { var b = f("div"); if (U.win && U.ie) { b.innerHTML = a.innerHTML } else { var c = a.getElementsByTagName(x)[0]; if (c) { var d = c.childNodes; if (d) { var e = d.length; for (var g = 0; g < e; g++) { if (!(d[g].nodeType == 1 && d[g].nodeName == "PARAM") && !(d[g].nodeType == 8)) { b.appendChild(d[g].cloneNode(true)) } } } } } return b } function k(a, b, c) { var d, e = g(c); if (U.wk && U.wk < 312) { return d } if (e) { if (typeof a.id == w) { a.id = c } if (U.ie && U.win) { var h = ""; for (var i in a) { if (a[i] != Object.prototype[i]) { if (i.toLowerCase() == "data") { b.movie = a[i] } else { if (i.toLowerCase() == "styleclass") { h += ' class="' + a[i] + '"' } else { if (i.toLowerCase() != "classid") { h += " " + i + '="' + a[i] + '"' } } } } } var k = ""; for (var l in b) { if (b[l] != Object.prototype[l]) { k += '<param name="' + l + '" value="' + b[l] + '" />' } } e.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + h + ">" + k + "</object>"; J[J.length] = a.id; d = g(a.id) } else { var m = f(x); m.setAttribute("type", A); for (var n in a) { if (a[n] != Object.prototype[n]) { if (n.toLowerCase() == "styleclass") { m.setAttribute("class", a[n]) } else { if (n.toLowerCase() != "classid") { m.setAttribute(n, a[n]) } } } } for (var o in b) { if (b[o] != Object.prototype[o] && o.toLowerCase() != "movie") { j(m, o, b[o]) } } e.parentNode.replaceChild(m, e); d = m } } return d } function j(a, b, c) { var d = f("param"); d.setAttribute("name", b); d.setAttribute("value", c); a.appendChild(d) } function i(a) { var b = g(a); if (b && b.nodeName == "OBJECT") { if (U.ie && U.win) { b.style.display = "none"; (function () { if (b.readyState == 4) { h(a) } else { setTimeout(arguments.callee, 10) } })() } else { b.parentNode.removeChild(b) } } } function h(a) { var b = g(a); if (b) { for (var c in b) { if (typeof b[c] == "function") { b[c] = null } } b.parentNode.removeChild(b) } } function g(a) { var b = null; try { b = E.getElementById(a) } catch (c) { } return b } function f(a) { return E.createElement(a) } function e(a, b, c) { a.attachEvent(b, c); K[K.length] = [a, b, c] } function d(a) { var b = U.pv, c = a.split("."); c[0] = parseInt(c[0], 10); c[1] = parseInt(c[1], 10) || 0; c[2] = parseInt(c[2], 10) || 0; return b[0] > c[0] || b[0] == c[0] && b[1] > c[1] || b[0] == c[0] && b[1] == c[1] && b[2] >= c[2] ? true : false } function c(a, b, c, d) { if (U.ie && U.mac) { return } var e = E.getElementsByTagName("head")[0]; if (!e) { return } var g = c && typeof c == "string" ? c : "screen"; if (d) { R = null; S = null } if (!R || S != g) { var h = f("style"); h.setAttribute("type", "text/css"); h.setAttribute("media", g); R = e.appendChild(h); if (U.ie && U.win && typeof E.styleSheets != w && E.styleSheets.length > 0) { R = E.styleSheets[E.styleSheets.length - 1] } S = g } if (U.ie && U.win) { if (R && typeof R.addRule == x) { R.addRule(a, b) } } else { if (R && typeof E.createTextNode != w) { R.appendChild(E.createTextNode(a + " {" + b + "}")) } } } function b(a, b) { if (!T) { return } var d = b ? "visible" : "hidden"; if (P && g(a)) { g(a).style.visibility = d } else { c("#" + a, "visibility:" + d) } } function a(a) { var b = /[\\\"<>\.;]/; var c = b.exec(a) != null; return c && typeof encodeURIComponent != w ? encodeURIComponent(a) : a } var w = "undefined", x = "object", y = "Shockwave Flash", z = "ShockwaveFlash.ShockwaveFlash", A = "application/x-shockwave-flash", B = "SWFObjectExprInst", C = "onreadystatechange", D = window, E = document, F = navigator, G = false, H = [s], I = [], J = [], K = [], L, M, N, O, P = false, Q = false, R, S, T = true, U = function () { var a = typeof E.getElementById != w && typeof E.getElementsByTagName != w && typeof E.createElement != w, b = F.userAgent.toLowerCase(), c = F.platform.toLowerCase(), d = c ? /win/.test(c) : /win/.test(b), e = c ? /mac/.test(c) : /mac/.test(b), f = /webkit/.test(b) ? parseFloat(b.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, g = ! +"1", h = [0, 0, 0], i = null; if (typeof F.plugins != w && typeof F.plugins[y] == x) { i = F.plugins[y].description; if (i && !(typeof F.mimeTypes != w && F.mimeTypes[A] && !F.mimeTypes[A].enabledPlugin)) { G = true; g = false; i = i.replace(/^.*\s+(\S+\s+\S+$)/, "$1"); h[0] = parseInt(i.replace(/^(.*)\..*$/, "$1"), 10); h[1] = parseInt(i.replace(/^.*\.(.*)\s.*$/, "$1"), 10); h[2] = /[a-zA-Z]/.test(i) ? parseInt(i.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0 } } else { if (typeof D.ActiveXObject != w) { try { var j = new ActiveXObject(z); if (j) { i = j.GetVariable("$version"); if (i) { g = true; i = i.split(" ")[1].split(","); h = [parseInt(i[0], 10), parseInt(i[1], 10), parseInt(i[2], 10)] } } } catch (k) { } } } return { w3: a, pv: h, wk: f, ie: g, win: d, mac: e} } (), V = function () { if (!U.w3) { return } if (typeof E.readyState != w && E.readyState == "complete" || typeof E.readyState == w && (E.getElementsByTagName("body")[0] || E.body)) { v() } if (!P) { if (typeof E.addEventListener != w) { E.addEventListener("DOMContentLoaded", v, false) } if (U.ie && U.win) { E.attachEvent(C, function () { if (E.readyState == "complete") { E.detachEvent(C, arguments.callee); v() } }); if (D == top) { (function () { if (P) { return } try { E.documentElement.doScroll("left") } catch (a) { setTimeout(arguments.callee, 0); return } v() })() } } if (U.wk) { (function () { if (P) { return } if (!/loaded|complete/.test(E.readyState)) { setTimeout(arguments.callee, 0); return } v() })() } t(v) } } (); var W = function () { if (U.ie && U.win) { window.attachEvent("onunload", function () { var a = K.length; for (var b = 0; b < a; b++) { K[b][0].detachEvent(K[b][1], K[b][2]) } var c = J.length; for (var d = 0; d < c; d++) { i(J[d]) } for (var e in U) { U[e] = null } U = null; for (var f in swfobject) { swfobject[f] = null } swfobject = null }) } } (); return { registerObject: function (a, c, d, e) { if (U.w3 && a && c) { var f = {}; f.id = a; f.swfVersion = c; f.expressInstall = d; f.callbackFn = e; I[I.length] = f; b(a, false) } else { if (e) { e({ success: false, id: a }) } } }, getObjectById: function (a) { if (U.w3) { return p(a) } }, embedSWF: function (a, c, e, f, g, h, i, j, l, m) { var p = { success: false, id: c }; if (U.w3 && !(U.wk && U.wk < 312) && a && c && e && f && g) { b(c, false); u(function () { e += ""; f += ""; var q = {}; if (l && typeof l === x) { for (var r in l) { q[r] = l[r] } } q.data = a; q.width = e; q.height = f; var s = {}; if (j && typeof j === x) { for (var t in j) { s[t] = j[t] } } if (i && typeof i === x) { for (var u in i) { if (typeof s.flashvars != w) { s.flashvars += "&" + u + "=" + i[u] } else { s.flashvars = u + "=" + i[u] } } } if (d(g)) { var v = k(q, s, c); if (q.id == c) { b(c, true) } p.success = true; p.ref = v } else { if (h && o()) { q.data = h; n(q, s, c, m); return } else { b(c, true) } } if (m) { m(p) } }) } else { if (m) { m(p) } } }, switchOffAutoHideShow: function () { T = false }, ua: U, getFlashPlayerVersion: function () { return { major: U.pv[0], minor: U.pv[1], release: U.pv[2]} }, hasFlashPlayerVersion: d, createSWF: function (a, b, c) { if (U.w3) { return k(a, b, c) } else { return undefined } }, showExpressInstall: function (a, b, c, d) { if (U.w3 && o()) { n(a, b, c, d) } }, removeSWF: function (a) { if (U.w3) { i(a) } }, createCSS: function (a, b, d, e) { if (U.w3) { c(a, b, d, e) } }, addDomLoadEvent: u, addLoadEvent: t, getQueryParamValue: function (b) { var c = E.location.search || E.location.hash; if (c) { if (/\?/.test(c)) { c = c.split("?")[1] } if (b == null) { return a(c) } var d = c.split("&"); for (var e = 0; e < d.length; e++) { if (d[e].substring(0, d[e].indexOf("=")) == b) { return a(d[e].substring(d[e].indexOf("=") + 1)) } } } return "" }, expressInstallCallback: function () { if (Q) { var a = g(B); if (a && L) { a.parentNode.replaceChild(L, a); if (M) { b(M, true); if (U.ie && U.win) { L.style.display = "block" } } if (N) { N(O) } } Q = false } } } } (); jQuery.easing["jswing"] = jQuery.easing["swing"]; jQuery.extend(jQuery.easing, { def: "easeOutQuad", swing: function (a, b, c, d, e) { return jQuery.easing[jQuery.easing.def](a, b, c, d, e) }, easeInQuad: function (a, b, c, d, e) { return d * (b /= e) * b + c }, easeOutQuad: function (a, b, c, d, e) { return -d * (b /= e) * (b - 2) + c }, easeInOutQuad: function (a, b, c, d, e) { if ((b /= e / 2) < 1) return d / 2 * b * b + c; return -d / 2 * (--b * (b - 2) - 1) + c }, easeInCubic: function (a, b, c, d, e) { return d * (b /= e) * b * b + c }, easeOutCubic: function (a, b, c, d, e) { return d * ((b = b / e - 1) * b * b + 1) + c }, easeInOutCubic: function (a, b, c, d, e) { if ((b /= e / 2) < 1) return d / 2 * b * b * b + c; return d / 2 * ((b -= 2) * b * b + 2) + c }, easeInQuart: function (a, b, c, d, e) { return d * (b /= e) * b * b * b + c }, easeOutQuart: function (a, b, c, d, e) { return -d * ((b = b / e - 1) * b * b * b - 1) + c }, easeInOutQuart: function (a, b, c, d, e) { if ((b /= e / 2) < 1) return d / 2 * b * b * b * b + c; return -d / 2 * ((b -= 2) * b * b * b - 2) + c }, easeInQuint: function (a, b, c, d, e) { return d * (b /= e) * b * b * b * b + c }, easeOutQuint: function (a, b, c, d, e) { return d * ((b = b / e - 1) * b * b * b * b + 1) + c }, easeInOutQuint: function (a, b, c, d, e) { if ((b /= e / 2) < 1) return d / 2 * b * b * b * b * b + c; return d / 2 * ((b -= 2) * b * b * b * b + 2) + c }, easeInSine: function (a, b, c, d, e) { return -d * Math.cos(b / e * (Math.PI / 2)) + d + c }, easeOutSine: function (a, b, c, d, e) { return d * Math.sin(b / e * (Math.PI / 2)) + c }, easeInOutSine: function (a, b, c, d, e) { return -d / 2 * (Math.cos(Math.PI * b / e) - 1) + c }, easeInExpo: function (a, b, c, d, e) { return b == 0 ? c : d * Math.pow(2, 10 * (b / e - 1)) + c }, easeOutExpo: function (a, b, c, d, e) { return b == e ? c + d : d * (-Math.pow(2, -10 * b / e) + 1) + c }, easeInOutExpo: function (a, b, c, d, e) { if (b == 0) return c; if (b == e) return c + d; if ((b /= e / 2) < 1) return d / 2 * Math.pow(2, 10 * (b - 1)) + c; return d / 2 * (-Math.pow(2, -10 * --b) + 2) + c }, easeInCirc: function (a, b, c, d, e) { return -d * (Math.sqrt(1 - (b /= e) * b) - 1) + c }, easeOutCirc: function (a, b, c, d, e) { return d * Math.sqrt(1 - (b = b / e - 1) * b) + c }, easeInOutCirc: function (a, b, c, d, e) { if ((b /= e / 2) < 1) return -d / 2 * (Math.sqrt(1 - b * b) - 1) + c; return d / 2 * (Math.sqrt(1 - (b -= 2) * b) + 1) + c }, easeInElastic: function (a, b, c, d, e) { var f = 1.70158; var g = 0; var h = d; if (b == 0) return c; if ((b /= e) == 1) return c + d; if (!g) g = e * .3; if (h < Math.abs(d)) { h = d; var f = g / 4 } else var f = g / (2 * Math.PI) * Math.asin(d / h); return -(h * Math.pow(2, 10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g)) + c }, easeOutElastic: function (a, b, c, d, e) { var f = 1.70158; var g = 0; var h = d; if (b == 0) return c; if ((b /= e) == 1) return c + d; if (!g) g = e * .3; if (h < Math.abs(d)) { h = d; var f = g / 4 } else var f = g / (2 * Math.PI) * Math.asin(d / h); return h * Math.pow(2, -10 * b) * Math.sin((b * e - f) * 2 * Math.PI / g) + d + c }, easeInOutElastic: function (a, b, c, d, e) { var f = 1.70158; var g = 0; var h = d; if (b == 0) return c; if ((b /= e / 2) == 2) return c + d; if (!g) g = e * .3 * 1.5; if (h < Math.abs(d)) { h = d; var f = g / 4 } else var f = g / (2 * Math.PI) * Math.asin(d / h); if (b < 1) return -.5 * h * Math.pow(2, 10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g) + c; return h * Math.pow(2, -10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g) * .5 + d + c }, easeInBack: function (a, b, c, d, e, f) { if (f == undefined) f = 1.70158; return d * (b /= e) * b * ((f + 1) * b - f) + c }, easeOutBack: function (a, b, c, d, e, f) { if (f == undefined) f = 1.70158; return d * ((b = b / e - 1) * b * ((f + 1) * b + f) + 1) + c }, easeInOutBack: function (a, b, c, d, e, f) { if (f == undefined) f = 1.70158; if ((b /= e / 2) < 1) return d / 2 * b * b * (((f *= 1.525) + 1) * b - f) + c; return d / 2 * ((b -= 2) * b * (((f *= 1.525) + 1) * b + f) + 2) + c }, easeInBounce: function (a, b, c, d, e) { return d - jQuery.easing.easeOutBounce(a, e - b, 0, d, e) + c }, easeOutBounce: function (a, b, c, d, e) { if ((b /= e) < 1 / 2.75) { return d * 7.5625 * b * b + c } else if (b < 2 / 2.75) { return d * (7.5625 * (b -= 1.5 / 2.75) * b + .75) + c } else if (b < 2.5 / 2.75) { return d * (7.5625 * (b -= 2.25 / 2.75) * b + .9375) + c } else { return d * (7.5625 * (b -= 2.625 / 2.75) * b + .984375) + c } }, easeInOutBounce: function (a, b, c, d, e) { if (b < e / 2) return jQuery.easing.easeInBounce(a, b * 2, 0, d, e) * .5 + c; return jQuery.easing.easeOutBounce(a, b * 2 - e, 0, d, e) * .5 + d * .5 + c } }); (function (a) { a.fn.fbWall = function (b) { var c = a.extend({}, a.fn.fbWall.defaults, b); var d = this; return d.each(function () { function j(a) { var b; if (a == n.id) { b = k.useAvatarAlternative ? k.avatarAlternative : o + a + "/picture?type=square" } else { b = k.useAvatarExternal ? k.avatarExternal : o + a + "/picture?type=square" } return b } function i(a) { var b, c, d, e, f, g, h, i, j, l; var m = a.indexOf(" ") == -1 && a.substr(4, 1) == "-" && a.substr(7, 1) == "-" && a.substr(10, 1) == "T" ? true : false; if (m) { b = a.substr(0, 4); c = parseInt(a.substr(5, 1) == "0" ? a.substr(6, 1) : a.substr(5, 2)) - 1; d = a.substr(8, 2); e = a.substr(11, 2); f = a.substr(14, 2); g = Date.UTC(b, c, d, e, f); h = new Date(g) } else { j = a.split(" "); if (j.length != 6 || j[4] != "at") return a; l = j[5].split(":"); i = l[1].substr(2); f = l[1].substr(0, 2); e = parseInt(l[0]); if (i == "pm") e += 12; h = new Date(j[1] + " " + j[2] + " " + j[3] + " " + e + ":" + f); h.setTime(h.getTime() - 1e3 * 60 * 60 * 7) } d = h.getDate() < 10 ? "0" + h.getDate() : h.getDate(); c = h.getMonth() + 1; c = c < 10 ? "0" + c : c; e = h.getHours(); f = h.getMinutes() < 10 ? "0" + h.getMinutes() : h.getMinutes(); if (k.timeConversion == 12) { i = e < 12 ? "am" : "pm"; if (e == 0) e == 12; else if (e > 12) e = e - 12; if (e < 10) e = "0" + e; return d + "." + c + "." + h.getFullYear() + " at " + e + ":" + f + " " + i } return d + "." + c + "." + h.getFullYear() + " " + k.translateAt + " " + e + ":" + f } function h(a) { if (!a || a == null || a == "undefined" || typeof a == "undefined") return false; else return true } function g(a) { return e(b(f(a))) } function f(a) { return a.replace(/</g, "<").replace(/>/g, ">") } function e(a) { return a.replace(/(\r\n)|(\n\r)|\r|\n/g, "<br>") } function b(a) { return a.replace(/((http|https|ftp):\/\/[\w?=&.\/-;#~%-]+(?![\w\s?&.\/;#~%"=-]*>))/g, '<a href="$1" target="_blank">$1</a>') } $this = a(this); var k = a.meta ? a.extend({}, c, $this.data()) : c; var l = ""; var m; var n; var o = "https://graph.facebook.com/"; d.addClass("fb-wall").addClass("loading").html(""); a.ajax({ url: o + k.id + "?access_token=" + k.accessToken, dataType: "jsonp", success: function (a, b, c) { p(a) } }); var p = function (b) { n = b; if (b == false) { d.removeClass("loading").html("The alias you requested do not exist: " + k.id); return false } if (b.error) { d.removeClass("loading").html(b.error.message); return false } var c = k.showGuestEntries == "true" || k.showGuestEntries == true ? "feed" : "posts"; a.ajax({ url: o + k.id + "/" + c + "?limit=" + k.max + "&access_token=" + k.accessToken, dataType: "jsonp", success: function (a, b, c) { d.removeClass("loading"); q(a) } }) }; var q = function (a) { a = a.data; var b = a.length; var c, e, f, m; for (var o = 0; o < b; o++) { e = a[o].from.id == n.id; f = e && h(n.link); if (!k.showGuestEntries && !e) continue; l += o == 0 ? '<div class="fb-wall-box fb-wall-box-first">' : '<div class="fb-wall-box">'; l += '<a href="http://www.facebook.com/profile.php?id=' + a[o].from.id + '" target="_blank">'; l += '<img class="fb-wall-avatar" src="' + j(a[o].from.id) + '" />'; l += "</a>"; l += '<div class="fb-wall-data">'; l += '<span class="fb-wall-message">'; l += '<a href="http://www.facebook.com/profile.php?id=' + a[o].from.id + '" class="fb-wall-message-from" target="_blank">' + a[o].from.name + "</a> "; if (h(a[o].message)) l += g(a[o].message); l += "</span>"; if (h(a[o].picture) || h(a[o].link) || h(a[o].caption) || h(a[o].description)) { l += h(a[o].picture) ? '<div class="fb-wall-media">' : '<div class="fb-wall-media fb-wall-border-left">'; if (h(a[o].picture)) { if (h(a[o].link)) l += '<a href="' + a[o].link + '" target="_blank" class="fb-wall-media-link">'; l += '<img class="fb-wall-picture" src="' + a[o].picture + '" />'; if (h(a[o].link)) l += "</a>" } l += '<div class="fb-wall-media-container">'; if (h(a[o].name)) l += '<a class="fb-wall-name" href="' + a[o].link + '" target="_blank">' + a[o].name + "</a>"; if (h(a[o].caption)) l += '<a class="fb-wall-caption" href="http://' + a[o].caption + '" target="_blank">' + a[o].caption + "</a>"; if (h(a[o].properties)) { for (var p = 0; p < a[o].properties.length; p++) l += p == 0 ? "<div>" + i(a[o].properties[p].text) + "</div>" : "<div>" + a[o].properties[p].text + "</div>" } if (h(a[o].description)) { m = g(a[o].description); if (m.length > 299) m = m.substr(0, m.lastIndexOf(" ")) + " ..."; l += '<span class="fb-wall-description">' + m + "</span>" } l += "</div>"; l += "</div>" } l += '<span class="fb-wall-date">'; if (h(a[o].icon)) l += '<img class="fb-wall-icon" src="' + a[o].icon + '" title="' + a[o].type + '" alt="" />'; l += i(a[o].created_time) + "</span>"; if (h(a[o].likes)) { if (parseInt(a[o].likes.count) == 1) { l += '<div class="fb-wall-likes"><div><span>' + a[o].likes.data[0].name + "</span> " + k.translateLikesThis + "</div> </div>" } else { l += '<div class="fb-wall-likes"><div><span>' + a[o].likes.count + " " + k.translatePeople + "</span> " + k.translateLikeThis + "</div> </div>" } } if (h(a[o].comments) && h(a[o].comments.data) && (k.showComments == true || k.showComments == "true")) { l += '<div class="fb-wall-comments">'; for (var q = 0; q < a[o].comments.data.length; q++) { l += '<span class="fb-wall-comment">'; l += '<a href="http://www.facebook.com/profile.php?id=' + a[o].comments.data[q].from.id + '" class="fb-wall-comment-avatar" target="_blank">'; l += '<img src="' + j(a[o].comments.data[q].from.id) + '" />'; l += "</a>"; l += '<span class="fb-wall-comment-message">'; l += '<a class="fb-wall-comment-from-name" href="http://www.facebook.com/profile.php?id=' + a[o].comments.data[q].from.id + '" target="_blank">' + a[o].comments.data[q].from.name + "</a> "; l += g(a[o].comments.data[q].message); l += '<span class="fb-wall-comment-from-date">' + i(a[o].comments.data[q].created_time) + "</span>"; l += "</span>"; l += "</span>" } l += "</div>" } l += "</div>"; l += '<div class="fb-wall-clean"></div>'; l += "</div>" } if (b == 0) { l += '<div class="fb-wall-box-first">'; l += '<img class="fb-wall-avatar" src="' + j(n.id) + '" />'; l += '<div class="fb-wall-data">'; l += '<span class="fb-wall-message"><span class="fb-wall-message-from">' + n.name + "</span> " + k.translateErrorNoData + "</span>"; l += "</div>"; l += "</div>" } d.hide().html(l).fadeIn(700) } }) }; a.fn.fbWall.defaults = { avatarAlternative: "avatar-alternative.jpg", avatarExternal: "avatar-external.jpg", id: "neosmart.gmbh", max: 5, showComments: true, showGuestEntries: true, translateAt: "at", translateLikeThis: "like this", translateLikesThis: "likes this", translateErrorNoData: "has not shared any information.", translatePeople: "people", timeConversion: 24, useAvatarAlternative: false, useAvatarExternal: false, accessToken: ""} })(jQuery); (function (a) { a.fn.hoverIntent = function (b, c) { var d = { sensitivity: 7, interval: 100, timeout: 0 }; d = a.extend(d, c ? { over: b, out: c} : b); var e, f, g, h; var i = function (a) { e = a.pageX; f = a.pageY }; var j = function (b, c) { c.hoverIntent_t = clearTimeout(c.hoverIntent_t); if (Math.abs(g - e) + Math.abs(h - f) < d.sensitivity) { a(c).unbind("mousemove", i); c.hoverIntent_s = 1; return d.over.apply(c, [b]) } else { g = e; h = f; c.hoverIntent_t = setTimeout(function () { j(b, c) }, d.interval) } }; var k = function (a, b) { b.hoverIntent_t = clearTimeout(b.hoverIntent_t); b.hoverIntent_s = 0; return d.out.apply(b, [a]) }; var l = function (b) { var c = (b.type == "mouseover" ? b.fromElement : b.toElement) || b.relatedTarget; while (c && c != this) { try { c = c.parentNode } catch (b) { c = this } } if (c == this) { return false } var e = jQuery.extend({}, b); var f = this; if (f.hoverIntent_t) { f.hoverIntent_t = clearTimeout(f.hoverIntent_t) } if (b.type == "mouseover") { g = e.pageX; h = e.pageY; a(f).bind("mousemove", i); if (f.hoverIntent_s != 1) { f.hoverIntent_t = setTimeout(function () { j(e, f) }, d.interval) } } else { a(f).unbind("mousemove", i); if (f.hoverIntent_s == 1) { f.hoverIntent_t = setTimeout(function () { k(e, f) }, d.timeout) } } }; return this.mouseover(l).mouseout(l) } })(jQuery); $(document).ready(function () { function b() { $(this).find("#dropDownMenu").animate({ height: "430px" }, { queue: false, duration: 300, easing: "easeOutExpo" }) } function a() { $(this).find("#dropDownMenu").animate({ height: "0px" }, { queue: false, duration: 500, easing: "easeOutExpo" }) } $("h1, h2, h3, nav, #hPn, #autoMessages, .whatWeDoWidgetButton, #footerTabs ul li, #BlogLinkFooter, .blogpostOnIndexButton, #ContactablesLeft, .footerContactFormRow label, #perProjectTags h4, #casestudiesMenu, .caseStudyContent h4, #aboutContent #right p, #contactContents p, .contactRow label, .contactRowMessage label, .contactOfficeLondon h4, .contactOfficeNottingham h4, address").ieffembedfix(); freeTrialForm(); HightlightTopNavigation(); footerContactFormHightligh(); $(function () { $(window).bind("load", function () { setTimeout(function () { fbWall() }, 1500) }) }); $("#contactablesTab").mouseenter(function () { $(".footerContactFormButton").addClass("contactBtnBg") }); if ($.browser.msie && $.browser.version.substr(0, 1) == 7) { $("#footerTabs ul li:first-child").css("margin", "0px 0px 0px 0px"); $("#footerTabs ul li").css("margin", "0px 19px 0px 0px") } if ($.browser.msie && $.browser.version.substr(0, 1) < 7) { $("#footerTabs ul li:first-child").css("margin", "0px 0px 0px 0px"); $(".visitCasestudyPage a").css("background", "transparent") } else { $("#services ul li").last().css({ height: "63px" }); $("#services ul li a").last().css({ background: "url(/resources/images/menuaLast.png) no-repeat", height: "30px" }) } $("nav ul li#services").hoverIntent({ sensitivity: 1, interval: 100, over: b, timeout: 700, out: a }); var c = $("#services ul li"); c.each(function () { c.mouseenter(function () { $(this).find("span").animate({ left: "-45px" }, { queue: false, duration: 200, easing: "easeOutExpo" }) }); c.mouseleave(function () { $(this).find("span").animate({ left: "20px" }, { queue: false, duration: 200, easing: "easeOutExpo" }) }) }); var d = $("#casestudiesMenu").find("li").find("a"); d.each(function () { d.hover(function () { $(this).addClass("casestudiesMenuCurrent") }, function () { if ($(this).hasClass("casestudiesMenuCurrent")) $(this).removeClass("casestudiesMenuCurrent") }) }); $(".tweet").tweet({ username: "wearealight", avatar_size: 48, count: 3, loading_text: "loading tweets..." }); (function (a) { function c() { a("#footerContentSlider").animate({ marginTop: d[a(this).attr("href").split("#")[1]] }, { duration: 500, easing: "easeInOutQuint" }); a(this).parent().siblings().removeClass("currentTab"); a(this).parent().addClass("currentTab") } function b() { } var d = { explorables: 0, socialised: -515, bloggedDown: -1020, contactables: -1530 }; a("#footerNav a").hoverIntent({ sensitivity: 1, interval: 100, over: c, timeout: 10, out: b }) })(jQuery); $(".talktousButton").click(function () { $("html, body").animate({ scrollTop: $(document).height() }, "slow"); $("#footerNav a").parent().removeClass("currentTab"); $("#footerNav #contactablesTab").addClass("currentTab"); $("#footerContentSlider").delay(300).animate({ marginTop: -1530 }, { duration: 500, easing: "easeInOutQuint" }) }); $("#footerNav a").click(function (a) { a.preventDefault() }); $("#footerContactForm").validate({ errorPlacement: function () { }, submitHandler: function (a) { _gaq.push(["_trackEvent", "FooterFormSubmitted", "FooterFormSubmit"]); a.submit() } }) })
