﻿/* Contains, in order:
 * jquery-1.4.4.min.js
 * jquery.prettyPhoto.min.js
 * jquery-css-transform.min.js
 * jquery-animate-css-rotate-scale.min.js
*/
(function (aC, z) { var Y = aC.document; var a = (function () { var a2 = function (bn, bo) { return new a2.fn.init(bn, bo) }, bi = aC.jQuery, a4 = aC.$, a0, bm = /^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/, aV = /^.[^:#\[\.,]*$/, ba = /\S/, aX = /\s/, a6 = /^\s+/, a1 = /\s+$/, aS = /\W/, a5 = /\d/, aY = /^<(\w+)\s*\/?>(?:<\/\1>)?$/, bb = /^[\],:{}\s]*$/, bk = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, bd = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, a7 = /(?:^|:|,)(?:\s*\[)+/g, aU = /(webkit)[ \/]([\w.]+)/, bf = /(opera)(?:.*version)?[ \/]([\w.]+)/, be = /(msie) ([\w.]+)/, bg = /(mozilla)(?:.*? rv:([\w.]+))?/, bl = navigator.userAgent, bj, bh = false, aZ = [], aP, a9 = Object.prototype.toString, a3 = Object.prototype.hasOwnProperty, aW = Array.prototype.push, a8 = Array.prototype.slice, bc = String.prototype.trim, aQ = Array.prototype.indexOf, aT = {}; a2.fn = a2.prototype = { init: function (bn, bq) { var bp, br, bo, bs; if (!bn) { return this } if (bn.nodeType) { this.context = this[0] = bn; this.length = 1; return this } if (bn === "body" && !bq && Y.body) { this.context = Y; this[0] = Y.body; this.selector = "body"; this.length = 1; return this } if (typeof bn === "string") { bp = bm.exec(bn); if (bp && (bp[1] || !bq)) { if (bp[1]) { bs = (bq ? bq.ownerDocument || bq : Y); bo = aY.exec(bn); if (bo) { if (a2.isPlainObject(bq)) { bn = [Y.createElement(bo[1])]; a2.fn.attr.call(bn, bq, true) } else { bn = [bs.createElement(bo[1])] } } else { bo = a2.buildFragment([bp[1]], [bs]); bn = (bo.cacheable ? bo.fragment.cloneNode(true) : bo.fragment).childNodes } return a2.merge(this, bn) } else { br = Y.getElementById(bp[2]); if (br && br.parentNode) { if (br.id !== bp[2]) { return a0.find(bn) } this.length = 1; this[0] = br } this.context = Y; this.selector = bn; return this } } else { if (!bq && !aS.test(bn)) { this.selector = bn; this.context = Y; bn = Y.getElementsByTagName(bn); return a2.merge(this, bn) } else { if (!bq || bq.jquery) { return (bq || a0).find(bn) } else { return a2(bq).find(bn) } } } } else { if (a2.isFunction(bn)) { return a0.ready(bn) } } if (bn.selector !== z) { this.selector = bn.selector; this.context = bn.context } return a2.makeArray(bn, this) }, selector: "", jquery: "1.4.4", length: 0, size: function () { return this.length }, toArray: function () { return a8.call(this, 0) }, get: function (bn) { return bn == null ? this.toArray() : (bn < 0 ? this.slice(bn)[0] : this[bn]) }, pushStack: function (bo, bq, bn) { var bp = a2(); if (a2.isArray(bo)) { aW.apply(bp, bo) } else { a2.merge(bp, bo) } bp.prevObject = this; bp.context = this.context; if (bq === "find") { bp.selector = this.selector + (this.selector ? " " : "") + bn } else { if (bq) { bp.selector = this.selector + "." + bq + "(" + bn + ")" } } return bp }, each: function (bo, bn) { return a2.each(this, bo, bn) }, ready: function (bn) { a2.bindReady(); if (a2.isReady) { bn.call(Y, a2) } else { if (aZ) { aZ.push(bn) } } return this }, eq: function (bn) { return bn === -1 ? this.slice(bn) : this.slice(bn, +bn + 1) }, first: function () { return this.eq(0) }, last: function () { return this.eq(-1) }, slice: function () { return this.pushStack(a8.apply(this, arguments), "slice", a8.call(arguments).join(",")) }, map: function (bn) { return this.pushStack(a2.map(this, function (bp, bo) { return bn.call(bp, bo, bp) })) }, end: function () { return this.prevObject || a2(null) }, push: aW, sort: [].sort, splice: [].splice }; a2.fn.init.prototype = a2.fn; a2.extend = a2.fn.extend = function () { var bw, bp, bn, bo, bt, bu, bs = arguments[0] || {}, br = 1, bq = arguments.length, bv = false; if (typeof bs === "boolean") { bv = bs; bs = arguments[1] || {}; br = 2 } if (typeof bs !== "object" && !a2.isFunction(bs)) { bs = {} } if (bq === br) { bs = this; --br } for (; br < bq; br++) { if ((bw = arguments[br]) != null) { for (bp in bw) { bn = bs[bp]; bo = bw[bp]; if (bs === bo) { continue } if (bv && bo && (a2.isPlainObject(bo) || (bt = a2.isArray(bo)))) { if (bt) { bt = false; bu = bn && a2.isArray(bn) ? bn : [] } else { bu = bn && a2.isPlainObject(bn) ? bn : {} } bs[bp] = a2.extend(bv, bu, bo) } else { if (bo !== z) { bs[bp] = bo } } } } } return bs }; a2.extend({ noConflict: function (bn) { aC.$ = a4; if (bn) { aC.jQuery = bi } return a2 }, isReady: false, readyWait: 1, ready: function (bq) { if (bq === true) { a2.readyWait-- } if (!a2.readyWait || (bq !== true && !a2.isReady)) { if (!Y.body) { return setTimeout(a2.ready, 1) } a2.isReady = true; if (bq !== true && --a2.readyWait > 0) { return } if (aZ) { var bp, bn = 0, bo = aZ; aZ = null; while ((bp = bo[bn++])) { bp.call(Y, a2) } if (a2.fn.trigger) { a2(Y).trigger("ready").unbind("ready") } } } }, bindReady: function () { if (bh) { return } bh = true; if (Y.readyState === "complete") { return setTimeout(a2.ready, 1) } if (Y.addEventListener) { Y.addEventListener("DOMContentLoaded", aP, false); aC.addEventListener("load", a2.ready, false) } else { if (Y.attachEvent) { Y.attachEvent("onreadystatechange", aP); aC.attachEvent("onload", a2.ready); var bn = false; try { bn = aC.frameElement == null } catch (bo) { } if (Y.documentElement.doScroll && bn) { aR() } } } }, isFunction: function (bn) { return a2.type(bn) === "function" }, isArray: Array.isArray || function (bn) { return a2.type(bn) === "array" }, isWindow: function (bn) { return bn && typeof bn === "object" && "setInterval" in bn }, isNaN: function (bn) { return bn == null || !a5.test(bn) || isNaN(bn) }, type: function (bn) { return bn == null ? String(bn) : aT[a9.call(bn)] || "object" }, isPlainObject: function (bo) { if (!bo || a2.type(bo) !== "object" || bo.nodeType || a2.isWindow(bo)) { return false } if (bo.constructor && !a3.call(bo, "constructor") && !a3.call(bo.constructor.prototype, "isPrototypeOf")) { return false } var bn; for (bn in bo) { } return bn === z || a3.call(bo, bn) }, isEmptyObject: function (bo) { for (var bn in bo) { return false } return true }, error: function (bn) { throw bn }, parseJSON: function (bn) { if (typeof bn !== "string" || !bn) { return null } bn = a2.trim(bn); if (bb.test(bn.replace(bk, "@").replace(bd, "]").replace(a7, ""))) { return aC.JSON && aC.JSON.parse ? aC.JSON.parse(bn) : (new Function("return " + bn))() } else { a2.error("Invalid JSON: " + bn) } }, noop: function () { }, globalEval: function (bp) { if (bp && ba.test(bp)) { var bo = Y.getElementsByTagName("head")[0] || Y.documentElement, bn = Y.createElement("script"); bn.type = "text/javascript"; if (a2.support.scriptEval) { bn.appendChild(Y.createTextNode(bp)) } else { bn.text = bp } bo.insertBefore(bn, bo.firstChild); bo.removeChild(bn) } }, nodeName: function (bo, bn) { return bo.nodeName && bo.nodeName.toUpperCase() === bn.toUpperCase() }, each: function (bq, bu, bp) { var bo, br = 0, bs = bq.length, bn = bs === z || a2.isFunction(bq); if (bp) { if (bn) { for (bo in bq) { if (bu.apply(bq[bo], bp) === false) { break } } } else { for (; br < bs; ) { if (bu.apply(bq[br++], bp) === false) { break } } } } else { if (bn) { for (bo in bq) { if (bu.call(bq[bo], bo, bq[bo]) === false) { break } } } else { for (var bt = bq[0]; br < bs && bu.call(bt, br, bt) !== false; bt = bq[++br]) { } } } return bq }, trim: bc ? function (bn) { return bn == null ? "" : bc.call(bn) } : function (bn) { return bn == null ? "" : bn.toString().replace(a6, "").replace(a1, "") }, makeArray: function (bq, bo) { var bn = bo || []; if (bq != null) { var bp = a2.type(bq); if (bq.length == null || bp === "string" || bp === "function" || bp === "regexp" || a2.isWindow(bq)) { aW.call(bn, bq) } else { a2.merge(bn, bq) } } return bn }, inArray: function (bp, bq) { if (bq.indexOf) { return bq.indexOf(bp) } for (var bn = 0, bo = bq.length; bn < bo; bn++) { if (bq[bn] === bp) { return bn } } return -1 }, merge: function (br, bp) { var bq = br.length, bo = 0; if (typeof bp.length === "number") { for (var bn = bp.length; bo < bn; bo++) { br[bq++] = bp[bo] } } else { while (bp[bo] !== z) { br[bq++] = bp[bo++] } } br.length = bq; return br }, grep: function (bo, bt, bn) { var bp = [], bs; bn = !!bn; for (var bq = 0, br = bo.length; bq < br; bq++) { bs = !!bt(bo[bq], bq); if (bn !== bs) { bp.push(bo[bq]) } } return bp }, map: function (bo, bt, bn) { var bp = [], bs; for (var bq = 0, br = bo.length; bq < br; bq++) { bs = bt(bo[bq], bq, bn); if (bs != null) { bp[bp.length] = bs } } return bp.concat.apply([], bp) }, guid: 1, proxy: function (bp, bo, bn) { if (arguments.length === 2) { if (typeof bo === "string") { bn = bp; bp = bn[bo]; bo = z } else { if (bo && !a2.isFunction(bo)) { bn = bo; bo = z } } } if (!bo && bp) { bo = function () { return bp.apply(bn || this, arguments) } } if (bp) { bo.guid = bp.guid = bp.guid || bo.guid || a2.guid++ } return bo }, access: function (bn, bv, bt, bp, bs, bu) { var bo = bn.length; if (typeof bv === "object") { for (var bq in bv) { a2.access(bn, bq, bv[bq], bp, bs, bt) } return bn } if (bt !== z) { bp = !bu && bp && a2.isFunction(bt); for (var br = 0; br < bo; br++) { bs(bn[br], bv, bp ? bt.call(bn[br], br, bs(bn[br], bv)) : bt, bu) } return bn } return bo ? bs(bn[0], bv) : z }, now: function () { return (new Date()).getTime() }, uaMatch: function (bo) { bo = bo.toLowerCase(); var bn = aU.exec(bo) || bf.exec(bo) || be.exec(bo) || bo.indexOf("compatible") < 0 && bg.exec(bo) || []; return { browser: bn[1] || "", version: bn[2] || "0"} }, browser: {} }); a2.each("Boolean Number String Function Array Date RegExp Object".split(" "), function (bo, bn) { aT["[object " + bn + "]"] = bn.toLowerCase() }); bj = a2.uaMatch(bl); if (bj.browser) { a2.browser[bj.browser] = true; a2.browser.version = bj.version } if (a2.browser.webkit) { a2.browser.safari = true } if (aQ) { a2.inArray = function (bn, bo) { return aQ.call(bo, bn) } } if (!aX.test("\xA0")) { a6 = /^[\s\xA0]+/; a1 = /[\s\xA0]+$/ } a0 = a2(Y); if (Y.addEventListener) { aP = function () { Y.removeEventListener("DOMContentLoaded", aP, false); a2.ready() } } else { if (Y.attachEvent) { aP = function () { if (Y.readyState === "complete") { Y.detachEvent("onreadystatechange", aP); a2.ready() } } } } function aR() { if (a2.isReady) { return } try { Y.documentElement.doScroll("left") } catch (bn) { setTimeout(aR, 1); return } a2.ready() } return (aC.jQuery = aC.$ = a2) })(); (function () { a.support = {}; var aW = Y.documentElement, aV = Y.createElement("script"), aP = Y.createElement("div"), aQ = "script" + a.now(); aP.style.display = "none"; aP.innerHTML = "   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>"; var aZ = aP.getElementsByTagName("*"), aX = aP.getElementsByTagName("a")[0], aY = Y.createElement("select"), aR = aY.appendChild(Y.createElement("option")); if (!aZ || !aZ.length || !aX) { return } a.support = { leadingWhitespace: aP.firstChild.nodeType === 3, tbody: !aP.getElementsByTagName("tbody").length, htmlSerialize: !!aP.getElementsByTagName("link").length, style: /red/.test(aX.getAttribute("style")), hrefNormalized: aX.getAttribute("href") === "/a", opacity: /^0.55$/.test(aX.style.opacity), cssFloat: !!aX.style.cssFloat, checkOn: aP.getElementsByTagName("input")[0].value === "on", optSelected: aR.selected, deleteExpando: true, optDisabled: false, checkClone: false, scriptEval: false, noCloneEvent: true, boxModel: null, inlineBlockNeedsLayout: false, shrinkWrapBlocks: false, reliableHiddenOffsets: true }; aY.disabled = true; a.support.optDisabled = !aR.disabled; aV.type = "text/javascript"; try { aV.appendChild(Y.createTextNode("window." + aQ + "=1;")) } catch (aT) { } aW.insertBefore(aV, aW.firstChild); if (aC[aQ]) { a.support.scriptEval = true; delete aC[aQ] } try { delete aV.test } catch (aT) { a.support.deleteExpando = false } aW.removeChild(aV); if (aP.attachEvent && aP.fireEvent) { aP.attachEvent("onclick", function a0() { a.support.noCloneEvent = false; aP.detachEvent("onclick", a0) }); aP.cloneNode(true).fireEvent("onclick") } aP = Y.createElement("div"); aP.innerHTML = "<input type='radio' name='radiotest' checked='checked'/>"; var aS = Y.createDocumentFragment(); aS.appendChild(aP.firstChild); a.support.checkClone = aS.cloneNode(true).cloneNode(true).lastChild.checked; a(function () { var a2 = Y.createElement("div"); a2.style.width = a2.style.paddingLeft = "1px"; Y.body.appendChild(a2); a.boxModel = a.support.boxModel = a2.offsetWidth === 2; if ("zoom" in a2.style) { a2.style.display = "inline"; a2.style.zoom = 1; a.support.inlineBlockNeedsLayout = a2.offsetWidth === 2; a2.style.display = ""; a2.innerHTML = "<div style='width:4px;'></div>"; a.support.shrinkWrapBlocks = a2.offsetWidth !== 2 } a2.innerHTML = "<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>"; var a1 = a2.getElementsByTagName("td"); a.support.reliableHiddenOffsets = a1[0].offsetHeight === 0; a1[0].style.display = ""; a1[1].style.display = "none"; a.support.reliableHiddenOffsets = a.support.reliableHiddenOffsets && a1[0].offsetHeight === 0; a2.innerHTML = ""; Y.body.removeChild(a2).style.display = "none"; a2 = a1 = null }); var aU = function (a1) { var a3 = Y.createElement("div"); a1 = "on" + a1; var a2 = (a1 in a3); if (!a2) { a3.setAttribute(a1, "return;"); a2 = typeof a3[a1] === "function" } a3 = null; return a2 }; a.support.submitBubbles = aU("submit"); a.support.changeBubbles = aU("change"); aW = aV = aP = aZ = aX = null })(); var aJ = {}, aj = /^(?:\{.*\}|\[.*\])$/; a.extend({ cache: {}, uuid: 0, expando: "jQuery" + a.now(), noData: { embed: true, object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", applet: true }, data: function (aR, aQ, aU) { if (!a.acceptData(aR)) { return } aR = aR == aC ? aJ : aR; var aT = aR.nodeType, aV = aT ? aR[a.expando] : null, aP = a.cache, aS; if (aT && !aV && typeof aQ === "string" && aU === z) { return } if (!aT) { aP = aR } else { if (!aV) { aR[a.expando] = aV = ++a.uuid } } if (typeof aQ === "object") { if (aT) { aP[aV] = a.extend(aP[aV], aQ) } else { a.extend(aP, aQ) } } else { if (aT && !aP[aV]) { aP[aV] = {} } } aS = aT ? aP[aV] : aP; if (aU !== z) { aS[aQ] = aU } return typeof aQ === "string" ? aS[aQ] : aS }, removeData: function (aR, aQ) { if (!a.acceptData(aR)) { return } aR = aR == aC ? aJ : aR; var aT = aR.nodeType, aV = aT ? aR[a.expando] : aR, aP = a.cache, aS = aT ? aP[aV] : aV; if (aQ) { if (aS) { delete aS[aQ]; if (aT && a.isEmptyObject(aS)) { a.removeData(aR) } } } else { if (aT && a.support.deleteExpando) { delete aR[a.expando] } else { if (aR.removeAttribute) { aR.removeAttribute(a.expando) } else { if (aT) { delete aP[aV] } else { for (var aU in aR) { delete aR[aU] } } } } } }, acceptData: function (aQ) { if (aQ.nodeName) { var aP = a.noData[aQ.nodeName.toLowerCase()]; if (aP) { return !(aP === true || aQ.getAttribute("classid") !== aP) } } return true } }); a.fn.extend({ data: function (aT, aV) { var aU = null; if (typeof aT === "undefined") { if (this.length) { var aP = this[0].attributes, aR; aU = a.data(this[0]); for (var aS = 0, aQ = aP.length; aS < aQ; aS++) { aR = aP[aS].name; if (aR.indexOf("data-") === 0) { aR = aR.substr(5); ax(this[0], aR, aU[aR]) } } } return aU } else { if (typeof aT === "object") { return this.each(function () { a.data(this, aT) }) } } var aW = aT.split("."); aW[1] = aW[1] ? "." + aW[1] : ""; if (aV === z) { aU = this.triggerHandler("getData" + aW[1] + "!", [aW[0]]); if (aU === z && this.length) { aU = a.data(this[0], aT); aU = ax(this[0], aT, aU) } return aU === z && aW[1] ? this.data(aW[0]) : aU } else { return this.each(function () { var aY = a(this), aX = [aW[0], aV]; aY.triggerHandler("setData" + aW[1] + "!", aX); a.data(this, aT, aV); aY.triggerHandler("changeData" + aW[1] + "!", aX) }) } }, removeData: function (aP) { return this.each(function () { a.removeData(this, aP) }) } }); function ax(aQ, aP, aR) { if (aR === z && aQ.nodeType === 1) { aR = aQ.getAttribute("data-" + aP); if (typeof aR === "string") { try { aR = aR === "true" ? true : aR === "false" ? false : aR === "null" ? null : !a.isNaN(aR) ? parseFloat(aR) : aj.test(aR) ? a.parseJSON(aR) : aR } catch (aS) { } a.data(aQ, aP, aR) } else { aR = z } } return aR } a.extend({ queue: function (aQ, aP, aS) { if (!aQ) { return } aP = (aP || "fx") + "queue"; var aR = a.data(aQ, aP); if (!aS) { return aR || [] } if (!aR || a.isArray(aS)) { aR = a.data(aQ, aP, a.makeArray(aS)) } else { aR.push(aS) } return aR }, dequeue: function (aS, aR) { aR = aR || "fx"; var aP = a.queue(aS, aR), aQ = aP.shift(); if (aQ === "inprogress") { aQ = aP.shift() } if (aQ) { if (aR === "fx") { aP.unshift("inprogress") } aQ.call(aS, function () { a.dequeue(aS, aR) }) } } }); a.fn.extend({ queue: function (aP, aQ) { if (typeof aP !== "string") { aQ = aP; aP = "fx" } if (aQ === z) { return a.queue(this[0], aP) } return this.each(function (aS) { var aR = a.queue(this, aP, aQ); if (aP === "fx" && aR[0] !== "inprogress") { a.dequeue(this, aP) } }) }, dequeue: function (aP) { return this.each(function () { a.dequeue(this, aP) }) }, delay: function (aQ, aP) { aQ = a.fx ? a.fx.speeds[aQ] || aQ : aQ; aP = aP || "fx"; return this.queue(aP, function () { var aR = this; setTimeout(function () { a.dequeue(aR, aP) }, aQ) }) }, clearQueue: function (aP) { return this.queue(aP || "fx", []) } }); var ah = /[\n\t]/g, aG = /\s+/, al = /\r/g, aF = /^(?:href|src|style)$/, c = /^(?:button|input)$/i, u = /^(?:button|input|object|select|textarea)$/i, g = /^a(?:rea)?$/i, H = /^(?:radio|checkbox)$/i; a.props = { "for": "htmlFor", "class": "className", readonly: "readOnly", maxlength: "maxLength", cellspacing: "cellSpacing", rowspan: "rowSpan", colspan: "colSpan", tabindex: "tabIndex", usemap: "useMap", frameborder: "frameBorder" }; a.fn.extend({ attr: function (aP, aQ) { return a.access(this, aP, aQ, true, a.attr) }, removeAttr: function (aP, aQ) { return this.each(function () { a.attr(this, aP, ""); if (this.nodeType === 1) { this.removeAttribute(aP) } }) }, addClass: function (aW) { if (a.isFunction(aW)) { return this.each(function (aZ) { var aY = a(this); aY.addClass(aW.call(this, aZ, aY.attr("class"))) }) } if (aW && typeof aW === "string") { var aP = (aW || "").split(aG); for (var aS = 0, aR = this.length; aS < aR; aS++) { var aQ = this[aS]; if (aQ.nodeType === 1) { if (!aQ.className) { aQ.className = aW } else { var aT = " " + aQ.className + " ", aV = aQ.className; for (var aU = 0, aX = aP.length; aU < aX; aU++) { if (aT.indexOf(" " + aP[aU] + " ") < 0) { aV += " " + aP[aU] } } aQ.className = a.trim(aV) } } } } return this }, removeClass: function (aU) { if (a.isFunction(aU)) { return this.each(function (aY) { var aX = a(this); aX.removeClass(aU.call(this, aY, aX.attr("class"))) }) } if ((aU && typeof aU === "string") || aU === z) { var aV = (aU || "").split(aG); for (var aR = 0, aQ = this.length; aR < aQ; aR++) { var aT = this[aR]; if (aT.nodeType === 1 && aT.className) { if (aU) { var aS = (" " + aT.className + " ").replace(ah, " "); for (var aW = 0, aP = aV.length; aW < aP; aW++) { aS = aS.replace(" " + aV[aW] + " ", " ") } aT.className = a.trim(aS) } else { aT.className = "" } } } } return this }, toggleClass: function (aS, aQ) { var aR = typeof aS, aP = typeof aQ === "boolean"; if (a.isFunction(aS)) { return this.each(function (aU) { var aT = a(this); aT.toggleClass(aS.call(this, aU, aT.attr("class"), aQ), aQ) }) } return this.each(function () { if (aR === "string") { var aV, aU = 0, aT = a(this), aW = aQ, aX = aS.split(aG); while ((aV = aX[aU++])) { aW = aP ? aW : !aT.hasClass(aV); aT[aW ? "addClass" : "removeClass"](aV) } } else { if (aR === "undefined" || aR === "boolean") { if (this.className) { a.data(this, "__className__", this.className) } this.className = this.className || aS === false ? "" : a.data(this, "__className__") || "" } } }) }, hasClass: function (aP) { var aS = " " + aP + " "; for (var aR = 0, aQ = this.length; aR < aQ; aR++) { if ((" " + this[aR].className + " ").replace(ah, " ").indexOf(aS) > -1) { return true } } return false }, val: function (aX) { if (!arguments.length) { var aR = this[0]; if (aR) { if (a.nodeName(aR, "option")) { var aQ = aR.attributes.value; return !aQ || aQ.specified ? aR.value : aR.text } if (a.nodeName(aR, "select")) { var aV = aR.selectedIndex, aY = [], aZ = aR.options, aU = aR.type === "select-one"; if (aV < 0) { return null } for (var aS = aU ? aV : 0, aW = aU ? aV + 1 : aZ.length; aS < aW; aS++) { var aT = aZ[aS]; if (aT.selected && (a.support.optDisabled ? !aT.disabled : aT.getAttribute("disabled") === null) && (!aT.parentNode.disabled || !a.nodeName(aT.parentNode, "optgroup"))) { aX = a(aT).val(); if (aU) { return aX } aY.push(aX) } } return aY } if (H.test(aR.type) && !a.support.checkOn) { return aR.getAttribute("value") === null ? "on" : aR.value } return (aR.value || "").replace(al, "") } return z } var aP = a.isFunction(aX); return this.each(function (a2) { var a1 = a(this), a3 = aX; if (this.nodeType !== 1) { return } if (aP) { a3 = aX.call(this, a2, a1.val()) } if (a3 == null) { a3 = "" } else { if (typeof a3 === "number") { a3 += "" } else { if (a.isArray(a3)) { a3 = a.map(a3, function (a4) { return a4 == null ? "" : a4 + "" }) } } } if (a.isArray(a3) && H.test(this.type)) { this.checked = a.inArray(a1.val(), a3) >= 0 } else { if (a.nodeName(this, "select")) { var a0 = a.makeArray(a3); a("option", this).each(function () { this.selected = a.inArray(a(this).val(), a0) >= 0 }); if (!a0.length) { this.selectedIndex = -1 } } else { this.value = a3 } } }) } }); a.extend({ attrFn: { val: true, css: true, html: true, text: true, data: true, width: true, height: true, offset: true }, attr: function (aQ, aP, aV, aY) { if (!aQ || aQ.nodeType === 3 || aQ.nodeType === 8) { return z } if (aY && aP in a.attrFn) { return a(aQ)[aP](aV) } var aR = aQ.nodeType !== 1 || !a.isXMLDoc(aQ), aU = aV !== z; aP = aR && a.props[aP] || aP; var aT = aF.test(aP); if (aP === "selected" && !a.support.optSelected) { var aW = aQ.parentNode; if (aW) { aW.selectedIndex; if (aW.parentNode) { aW.parentNode.selectedIndex } } } if ((aP in aQ || aQ[aP] !== z) && aR && !aT) { if (aU) { if (aP === "type" && c.test(aQ.nodeName) && aQ.parentNode) { a.error("type property can't be changed") } if (aV === null) { if (aQ.nodeType === 1) { aQ.removeAttribute(aP) } } else { aQ[aP] = aV } } if (a.nodeName(aQ, "form") && aQ.getAttributeNode(aP)) { return aQ.getAttributeNode(aP).nodeValue } if (aP === "tabIndex") { var aX = aQ.getAttributeNode("tabIndex"); return aX && aX.specified ? aX.value : u.test(aQ.nodeName) || g.test(aQ.nodeName) && aQ.href ? 0 : z } return aQ[aP] } if (!a.support.style && aR && aP === "style") { if (aU) { aQ.style.cssText = "" + aV } return aQ.style.cssText } if (aU) { aQ.setAttribute(aP, "" + aV) } if (!aQ.attributes[aP] && (aQ.hasAttribute && !aQ.hasAttribute(aP))) { return z } var aS = !a.support.hrefNormalized && aR && aT ? aQ.getAttribute(aP, 2) : aQ.getAttribute(aP); return aS === null ? z : aS } }); var at = /\.(.*)$/, aE = /^(?:textarea|input|select)$/i, B = /\./g, P = / /g, ad = /[^\w\s.|`]/g, w = function (aP) { return aP.replace(ad, "\\$&") }, v = { focusin: 0, focusout: 0 }; a.event = { add: function (aT, aX, a3, aV) { if (aT.nodeType === 3 || aT.nodeType === 8) { return } if (a.isWindow(aT) && (aT !== aC && !aT.frameElement)) { aT = aC } if (a3 === false) { a3 = aH } else { if (!a3) { return } } var aR, a1; if (a3.handler) { aR = a3; a3 = aR.handler } if (!a3.guid) { a3.guid = a.guid++ } var aY = a.data(aT); if (!aY) { return } var aP = aT.nodeType ? "events" : "__events__", a2 = aY[aP], aW = aY.handle; if (typeof a2 === "function") { aW = a2.handle; a2 = a2.events } else { if (!a2) { if (!aT.nodeType) { aY[aP] = aY = function () { } } aY.events = a2 = {} } } if (!aW) { aY.handle = aW = function () { return typeof a !== "undefined" && !a.event.triggered ? a.event.handle.apply(aW.elem, arguments) : z } } aW.elem = aT; aX = aX.split(" "); var a0, aU = 0, aQ; while ((a0 = aX[aU++])) { a1 = aR ? a.extend({}, aR) : { handler: a3, data: aV }; if (a0.indexOf(".") > -1) { aQ = a0.split("."); a0 = aQ.shift(); a1.namespace = aQ.slice(0).sort().join(".") } else { aQ = []; a1.namespace = "" } a1.type = a0; if (!a1.guid) { a1.guid = a3.guid } var aS = a2[a0], aZ = a.event.special[a0] || {}; if (!aS) { aS = a2[a0] = []; if (!aZ.setup || aZ.setup.call(aT, aV, aQ, aW) === false) { if (aT.addEventListener) { aT.addEventListener(a0, aW, false) } else { if (aT.attachEvent) { aT.attachEvent("on" + a0, aW) } } } } if (aZ.add) { aZ.add.call(aT, a1); if (!a1.handler.guid) { a1.handler.guid = a3.guid } } aS.push(a1); a.event.global[a0] = true } aT = null }, global: {}, remove: function (a5, aZ, aR, aV) { if (a5.nodeType === 3 || a5.nodeType === 8) { return } if (aR === false) { aR = aH } var a8, aU, aW, a2, a3 = 0, aS, aX, a0, aT, aY, aP, a7, a1 = a5.nodeType ? "events" : "__events__", a4 = a.data(a5), aQ = a4 && a4[a1]; if (!a4 || !aQ) { return } if (typeof aQ === "function") { a4 = aQ; aQ = aQ.events } if (aZ && aZ.type) { aR = aZ.handler; aZ = aZ.type } if (!aZ || typeof aZ === "string" && aZ.charAt(0) === ".") { aZ = aZ || ""; for (aU in aQ) { a.event.remove(a5, aU + aZ) } return } aZ = aZ.split(" "); while ((aU = aZ[a3++])) { a7 = aU; aP = null; aS = aU.indexOf(".") < 0; aX = []; if (!aS) { aX = aU.split("."); aU = aX.shift(); a0 = new RegExp("(^|\\.)" + a.map(aX.slice(0).sort(), w).join("\\.(?:.*\\.)?") + "(\\.|$)") } aY = aQ[aU]; if (!aY) { continue } if (!aR) { for (a2 = 0; a2 < aY.length; a2++) { aP = aY[a2]; if (aS || a0.test(aP.namespace)) { a.event.remove(a5, a7, aP.handler, a2); aY.splice(a2--, 1) } } continue } aT = a.event.special[aU] || {}; for (a2 = aV || 0; a2 < aY.length; a2++) { aP = aY[a2]; if (aR.guid === aP.guid) { if (aS || a0.test(aP.namespace)) { if (aV == null) { aY.splice(a2--, 1) } if (aT.remove) { aT.remove.call(a5, aP) } } if (aV != null) { break } } } if (aY.length === 0 || aV != null && aY.length === 1) { if (!aT.teardown || aT.teardown.call(a5, aX) === false) { a.removeEvent(a5, aU, a4.handle) } a8 = null; delete aQ[aU] } } if (a.isEmptyObject(aQ)) { var a6 = a4.handle; if (a6) { a6.elem = null } delete a4.events; delete a4.handle; if (typeof a4 === "function") { a.removeData(a5, a1) } else { if (a.isEmptyObject(a4)) { a.removeData(a5) } } } }, trigger: function (aQ, aV, aS) { var aZ = aQ.type || aQ, aU = arguments[3]; if (!aU) { aQ = typeof aQ === "object" ? aQ[a.expando] ? aQ : a.extend(a.Event(aZ), aQ) : a.Event(aZ); if (aZ.indexOf("!") >= 0) { aQ.type = aZ = aZ.slice(0, -1); aQ.exclusive = true } if (!aS) { aQ.stopPropagation(); if (a.event.global[aZ]) { a.each(a.cache, function () { if (this.events && this.events[aZ]) { a.event.trigger(aQ, aV, this.handle.elem) } }) } } if (!aS || aS.nodeType === 3 || aS.nodeType === 8) { return z } aQ.result = z; aQ.target = aS; aV = a.makeArray(aV); aV.unshift(aQ) } aQ.currentTarget = aS; var aW = aS.nodeType ? a.data(aS, "handle") : (a.data(aS, "__events__") || {}).handle; if (aW) { aW.apply(aS, aV) } var a1 = aS.parentNode || aS.ownerDocument; try { if (!(aS && aS.nodeName && a.noData[aS.nodeName.toLowerCase()])) { if (aS["on" + aZ] && aS["on" + aZ].apply(aS, aV) === false) { aQ.result = false; aQ.preventDefault() } } } catch (a0) { } if (!aQ.isPropagationStopped() && a1) { a.event.trigger(aQ, aV, a1, true) } else { if (!aQ.isDefaultPrevented()) { var aR, aX = aQ.target, aP = aZ.replace(at, ""), a2 = a.nodeName(aX, "a") && aP === "click", aY = a.event.special[aP] || {}; if ((!aY._default || aY._default.call(aS, aQ) === false) && !a2 && !(aX && aX.nodeName && a.noData[aX.nodeName.toLowerCase()])) { try { if (aX[aP]) { aR = aX["on" + aP]; if (aR) { aX["on" + aP] = null } a.event.triggered = true; aX[aP]() } } catch (aT) { } if (aR) { aX["on" + aP] = aR } a.event.triggered = false } } } }, handle: function (aP) { var aY, aR, aQ, a0, aZ, aU = [], aW = a.makeArray(arguments); aP = aW[0] = a.event.fix(aP || aC.event); aP.currentTarget = this; aY = aP.type.indexOf(".") < 0 && !aP.exclusive; if (!aY) { aQ = aP.type.split("."); aP.type = aQ.shift(); aU = aQ.slice(0).sort(); a0 = new RegExp("(^|\\.)" + aU.join("\\.(?:.*\\.)?") + "(\\.|$)") } aP.namespace = aP.namespace || aU.join("."); aZ = a.data(this, this.nodeType ? "events" : "__events__"); if (typeof aZ === "function") { aZ = aZ.events } aR = (aZ || {})[aP.type]; if (aZ && aR) { aR = aR.slice(0); for (var aT = 0, aS = aR.length; aT < aS; aT++) { var aX = aR[aT]; if (aY || a0.test(aX.namespace)) { aP.handler = aX.handler; aP.data = aX.data; aP.handleObj = aX; var aV = aX.handler.apply(this, aW); if (aV !== z) { aP.result = aV; if (aV === false) { aP.preventDefault(); aP.stopPropagation() } } if (aP.isImmediatePropagationStopped()) { break } } } } return aP.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 (aS) { if (aS[a.expando]) { return aS } var aQ = aS; aS = a.Event(aQ); for (var aR = this.props.length, aU; aR; ) { aU = this.props[--aR]; aS[aU] = aQ[aU] } if (!aS.target) { aS.target = aS.srcElement || Y } if (aS.target.nodeType === 3) { aS.target = aS.target.parentNode } if (!aS.relatedTarget && aS.fromElement) { aS.relatedTarget = aS.fromElement === aS.target ? aS.toElement : aS.fromElement } if (aS.pageX == null && aS.clientX != null) { var aT = Y.documentElement, aP = Y.body; aS.pageX = aS.clientX + (aT && aT.scrollLeft || aP && aP.scrollLeft || 0) - (aT && aT.clientLeft || aP && aP.clientLeft || 0); aS.pageY = aS.clientY + (aT && aT.scrollTop || aP && aP.scrollTop || 0) - (aT && aT.clientTop || aP && aP.clientTop || 0) } if (aS.which == null && (aS.charCode != null || aS.keyCode != null)) { aS.which = aS.charCode != null ? aS.charCode : aS.keyCode } if (!aS.metaKey && aS.ctrlKey) { aS.metaKey = aS.ctrlKey } if (!aS.which && aS.button !== z) { aS.which = (aS.button & 1 ? 1 : (aS.button & 2 ? 3 : (aS.button & 4 ? 2 : 0))) } return aS }, guid: 100000000, proxy: a.proxy, special: { ready: { setup: a.bindReady, teardown: a.noop }, live: { add: function (aP) { a.event.add(this, j(aP.origType, aP.selector), a.extend({}, aP, { handler: S, guid: aP.handler.guid })) }, remove: function (aP) { a.event.remove(this, j(aP.origType, aP.selector), aP) } }, beforeunload: { setup: function (aR, aQ, aP) { if (a.isWindow(this)) { this.onbeforeunload = aP } }, teardown: function (aQ, aP) { if (this.onbeforeunload === aP) { this.onbeforeunload = null } } }} }; a.removeEvent = Y.removeEventListener ? function (aQ, aP, aR) { if (aQ.removeEventListener) { aQ.removeEventListener(aP, aR, false) } } : function (aQ, aP, aR) { if (aQ.detachEvent) { aQ.detachEvent("on" + aP, aR) } }; a.Event = function (aP) { if (!this.preventDefault) { return new a.Event(aP) } if (aP && aP.type) { this.originalEvent = aP; this.type = aP.type } else { this.type = aP } this.timeStamp = a.now(); this[a.expando] = true }; function aH() { return false } function d() { return true } a.Event.prototype = { preventDefault: function () { this.isDefaultPrevented = d; var aP = this.originalEvent; if (!aP) { return } if (aP.preventDefault) { aP.preventDefault() } else { aP.returnValue = false } }, stopPropagation: function () { this.isPropagationStopped = d; var aP = this.originalEvent; if (!aP) { return } if (aP.stopPropagation) { aP.stopPropagation() } aP.cancelBubble = true }, stopImmediatePropagation: function () { this.isImmediatePropagationStopped = d; this.stopPropagation() }, isDefaultPrevented: aH, isPropagationStopped: aH, isImmediatePropagationStopped: aH }; var O = function (aQ) { var aP = aQ.relatedTarget; try { while (aP && aP !== this) { aP = aP.parentNode } if (aP !== this) { aQ.type = aQ.data; a.event.handle.apply(this, arguments) } } catch (aR) { } }, an = function (aP) { aP.type = aP.data; a.event.handle.apply(this, arguments) }; a.each({ mouseenter: "mouseover", mouseleave: "mouseout" }, function (aQ, aP) { a.event.special[aQ] = { setup: function (aR) { a.event.add(this, aP, aR && aR.selector ? an : O, aQ) }, teardown: function (aR) { a.event.remove(this, aP, aR && aR.selector ? an : O) } } }); if (!a.support.submitBubbles) { a.event.special.submit = { setup: function (aQ, aP) { if (this.nodeName.toLowerCase() !== "form") { a.event.add(this, "click.specialSubmit", function (aT) { var aS = aT.target, aR = aS.type; if ((aR === "submit" || aR === "image") && a(aS).closest("form").length) { aT.liveFired = z; return aq("submit", this, arguments) } }); a.event.add(this, "keypress.specialSubmit", function (aT) { var aS = aT.target, aR = aS.type; if ((aR === "text" || aR === "password") && a(aS).closest("form").length && aT.keyCode === 13) { aT.liveFired = z; return aq("submit", this, arguments) } }) } else { return false } }, teardown: function (aP) { a.event.remove(this, ".specialSubmit") } } } if (!a.support.changeBubbles) { var aI, f = function (aQ) { var aP = aQ.type, aR = aQ.value; if (aP === "radio" || aP === "checkbox") { aR = aQ.checked } else { if (aP === "select-multiple") { aR = aQ.selectedIndex > -1 ? a.map(aQ.options, function (aS) { return aS.selected }).join("-") : "" } else { if (aQ.nodeName.toLowerCase() === "select") { aR = aQ.selectedIndex } } } return aR }, M = function M(aR) { var aP = aR.target, aQ, aS; if (!aE.test(aP.nodeName) || aP.readOnly) { return } aQ = a.data(aP, "_change_data"); aS = f(aP); if (aR.type !== "focusout" || aP.type !== "radio") { a.data(aP, "_change_data", aS) } if (aQ === z || aS === aQ) { return } if (aQ != null || aS) { aR.type = "change"; aR.liveFired = z; return a.event.trigger(aR, arguments[1], aP) } }; a.event.special.change = { filters: { focusout: M, beforedeactivate: M, click: function (aR) { var aQ = aR.target, aP = aQ.type; if (aP === "radio" || aP === "checkbox" || aQ.nodeName.toLowerCase() === "select") { return M.call(this, aR) } }, keydown: function (aR) { var aQ = aR.target, aP = aQ.type; if ((aR.keyCode === 13 && aQ.nodeName.toLowerCase() !== "textarea") || (aR.keyCode === 32 && (aP === "checkbox" || aP === "radio")) || aP === "select-multiple") { return M.call(this, aR) } }, beforeactivate: function (aQ) { var aP = aQ.target; a.data(aP, "_change_data", f(aP)) } }, setup: function (aR, aQ) { if (this.type === "file") { return false } for (var aP in aI) { a.event.add(this, aP + ".specialChange", aI[aP]) } return aE.test(this.nodeName) }, teardown: function (aP) { a.event.remove(this, ".specialChange"); return aE.test(this.nodeName) } }; aI = a.event.special.change.filters; aI.focus = aI.beforeactivate } function aq(aQ, aR, aP) { aP[0].type = aQ; return a.event.handle.apply(aR, aP) } if (Y.addEventListener) { a.each({ focus: "focusin", blur: "focusout" }, function (aR, aP) { a.event.special[aP] = { setup: function () { if (v[aP]++ === 0) { Y.addEventListener(aR, aQ, true) } }, teardown: function () { if (--v[aP] === 0) { Y.removeEventListener(aR, aQ, true) } } }; function aQ(aS) { aS = a.event.fix(aS); aS.type = aP; return a.event.trigger(aS, null, aS.target) } }) } a.each(["bind", "one"], function (aQ, aP) { a.fn[aP] = function (aW, aX, aV) { if (typeof aW === "object") { for (var aT in aW) { this[aP](aT, aX, aW[aT], aV) } return this } if (a.isFunction(aX) || aX === false) { aV = aX; aX = z } var aU = aP === "one" ? a.proxy(aV, function (aY) { a(this).unbind(aY, aU); return aV.apply(this, arguments) }) : aV; if (aW === "unload" && aP !== "one") { this.one(aW, aX, aV) } else { for (var aS = 0, aR = this.length; aS < aR; aS++) { a.event.add(this[aS], aW, aU, aX) } } return this } }); a.fn.extend({ unbind: function (aT, aS) { if (typeof aT === "object" && !aT.preventDefault) { for (var aR in aT) { this.unbind(aR, aT[aR]) } } else { for (var aQ = 0, aP = this.length; aQ < aP; aQ++) { a.event.remove(this[aQ], aT, aS) } } return this }, delegate: function (aP, aQ, aS, aR) { return this.live(aQ, aS, aR, aP) }, undelegate: function (aP, aQ, aR) { if (arguments.length === 0) { return this.unbind("live") } else { return this.die(aQ, null, aR, aP) } }, trigger: function (aP, aQ) { return this.each(function () { a.event.trigger(aP, aQ, this) }) }, triggerHandler: function (aP, aR) { if (this[0]) { var aQ = a.Event(aP); aQ.preventDefault(); aQ.stopPropagation(); a.event.trigger(aQ, aR, this[0]); return aQ.result } }, toggle: function (aR) { var aP = arguments, aQ = 1; while (aQ < aP.length) { a.proxy(aR, aP[aQ++]) } return this.click(a.proxy(aR, function (aS) { var aT = (a.data(this, "lastToggle" + aR.guid) || 0) % aQ; a.data(this, "lastToggle" + aR.guid, aT + 1); aS.preventDefault(); return aP[aT].apply(this, arguments) || false })) }, hover: function (aP, aQ) { return this.mouseenter(aP).mouseleave(aQ || aP) } }); var am = { focus: "focusin", blur: "focusout", mouseenter: "mouseover", mouseleave: "mouseout" }; a.each(["live", "die"], function (aQ, aP) { a.fn[aP] = function (a0, aX, a2, aT) { var a1, aY = 0, aZ, aS, a4, aV = aT || this.selector, aR = aT ? this : a(this.context); if (typeof a0 === "object" && !a0.preventDefault) { for (var a3 in a0) { aR[aP](a3, aX, a0[a3], aV) } return this } if (a.isFunction(aX)) { a2 = aX; aX = z } a0 = (a0 || "").split(" "); while ((a1 = a0[aY++]) != null) { aZ = at.exec(a1); aS = ""; if (aZ) { aS = aZ[0]; a1 = a1.replace(at, "") } if (a1 === "hover") { a0.push("mouseenter" + aS, "mouseleave" + aS); continue } a4 = a1; if (a1 === "focus" || a1 === "blur") { a0.push(am[a1] + aS); a1 = a1 + aS } else { a1 = (am[a1] || a1) + aS } if (aP === "live") { for (var aW = 0, aU = aR.length; aW < aU; aW++) { a.event.add(aR[aW], "live." + j(a1, aV), { data: aX, selector: aV, handler: a2, origType: a1, origHandler: a2, preType: a4 }) } } else { aR.unbind("live." + j(a1, aV), a2) } } return this } }); function S(a0) { var aX, aS, a6, aU, aP, a2, aZ, a1, aY, a5, aW, aV, a4, a3 = [], aT = [], aQ = a.data(this, this.nodeType ? "events" : "__events__"); if (typeof aQ === "function") { aQ = aQ.events } if (a0.liveFired === this || !aQ || !aQ.live || a0.button && a0.type === "click") { return } if (a0.namespace) { aV = new RegExp("(^|\\.)" + a0.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)") } a0.liveFired = this; var aR = aQ.live.slice(0); for (aZ = 0; aZ < aR.length; aZ++) { aP = aR[aZ]; if (aP.origType.replace(at, "") === a0.type) { aT.push(aP.selector) } else { aR.splice(aZ--, 1) } } aU = a(a0.target).closest(aT, a0.currentTarget); for (a1 = 0, aY = aU.length; a1 < aY; a1++) { aW = aU[a1]; for (aZ = 0; aZ < aR.length; aZ++) { aP = aR[aZ]; if (aW.selector === aP.selector && (!aV || aV.test(aP.namespace))) { a2 = aW.elem; a6 = null; if (aP.preType === "mouseenter" || aP.preType === "mouseleave") { a0.type = aP.preType; a6 = a(a0.relatedTarget).closest(aP.selector)[0] } if (!a6 || a6 !== a2) { a3.push({ elem: a2, handleObj: aP, level: aW.level }) } } } } for (a1 = 0, aY = a3.length; a1 < aY; a1++) { aU = a3[a1]; if (aS && aU.level > aS) { break } a0.currentTarget = aU.elem; a0.data = aU.handleObj.data; a0.handleObj = aU.handleObj; a4 = aU.handleObj.origHandler.apply(aU.elem, arguments); if (a4 === false || a0.isPropagationStopped()) { aS = aU.level; if (a4 === false) { aX = false } if (a0.isImmediatePropagationStopped()) { break } } } return aX } function j(aQ, aP) { return (aQ && aQ !== "*" ? aQ + "." : "") + aP.replace(B, "`").replace(P, "&") } a.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 (aQ, aP) { a.fn[aP] = function (aS, aR) { if (aR == null) { aR = aS; aS = null } return arguments.length > 0 ? this.bind(aP, aS, aR) : this.trigger(aP) }; if (a.attrFn) { a.attrFn[aP] = true } }); if (aC.attachEvent && !aC.addEventListener) { a(aC).bind("unload", function () { for (var aQ in a.cache) { if (a.cache[aQ].handle) { try { a.event.remove(a.cache[aQ].handle.elem) } catch (aP) { } } } }) } (function () { var a4 = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, aX = 0, aS = Object.prototype.toString, a3 = false, aW = true; [0, 0].sort(function () { aW = false; return 0 }); var aQ = function (bb, a6, be, bf) { be = be || []; a6 = a6 || Y; var bh = a6; if (a6.nodeType !== 1 && a6.nodeType !== 9) { return [] } if (!bb || typeof bb !== "string") { return be } var a8, bj, bm, a7, bi, bl, bk, bd, ba = true, a9 = aQ.isXML(a6), bc = [], bg = bb; do { a4.exec(""); a8 = a4.exec(bg); if (a8) { bg = a8[3]; bc.push(a8[1]); if (a8[2]) { a7 = a8[3]; break } } } while (a8); if (bc.length > 1 && aY.exec(bb)) { if (bc.length === 2 && aT.relative[bc[0]]) { bj = aV(bc[0] + bc[1], a6) } else { bj = aT.relative[bc[0]] ? [a6] : aQ(bc.shift(), a6); while (bc.length) { bb = bc.shift(); if (aT.relative[bb]) { bb += bc.shift() } bj = aV(bb, bj) } } } else { if (!bf && bc.length > 1 && a6.nodeType === 9 && !a9 && aT.match.ID.test(bc[0]) && !aT.match.ID.test(bc[bc.length - 1])) { bi = aQ.find(bc.shift(), a6, a9); a6 = bi.expr ? aQ.filter(bi.expr, bi.set)[0] : bi.set[0] } if (a6) { bi = bf ? { expr: bc.pop(), set: aP(bf)} : aQ.find(bc.pop(), bc.length === 1 && (bc[0] === "~" || bc[0] === "+") && a6.parentNode ? a6.parentNode : a6, a9); bj = bi.expr ? aQ.filter(bi.expr, bi.set) : bi.set; if (bc.length > 0) { bm = aP(bj) } else { ba = false } while (bc.length) { bl = bc.pop(); bk = bl; if (!aT.relative[bl]) { bl = "" } else { bk = bc.pop() } if (bk == null) { bk = a6 } aT.relative[bl](bm, bk, a9) } } else { bm = bc = [] } } if (!bm) { bm = bj } if (!bm) { aQ.error(bl || bb) } if (aS.call(bm) === "[object Array]") { if (!ba) { be.push.apply(be, bm) } else { if (a6 && a6.nodeType === 1) { for (bd = 0; bm[bd] != null; bd++) { if (bm[bd] && (bm[bd] === true || bm[bd].nodeType === 1 && aQ.contains(a6, bm[bd]))) { be.push(bj[bd]) } } } else { for (bd = 0; bm[bd] != null; bd++) { if (bm[bd] && bm[bd].nodeType === 1) { be.push(bj[bd]) } } } } } else { aP(bm, be) } if (a7) { aQ(a7, bh, be, bf); aQ.uniqueSort(be) } return be }; aQ.uniqueSort = function (a7) { if (aR) { a3 = aW; a7.sort(aR); if (a3) { for (var a6 = 1; a6 < a7.length; a6++) { if (a7[a6] === a7[a6 - 1]) { a7.splice(a6--, 1) } } } } return a7 }; aQ.matches = function (a6, a7) { return aQ(a6, null, null, a7) }; aQ.matchesSelector = function (a6, a7) { return aQ(a7, null, null, [a6]).length > 0 }; aQ.find = function (bd, a6, be) { var bc; if (!bd) { return [] } for (var a9 = 0, a8 = aT.order.length; a9 < a8; a9++) { var ba, bb = aT.order[a9]; if ((ba = aT.leftMatch[bb].exec(bd))) { var a7 = ba[1]; ba.splice(1, 1); if (a7.substr(a7.length - 1) !== "\\") { ba[1] = (ba[1] || "").replace(/\\/g, ""); bc = aT.find[bb](ba, a6, be); if (bc != null) { bd = bd.replace(aT.match[bb], ""); break } } } } if (!bc) { bc = a6.getElementsByTagName("*") } return { set: bc, expr: bd} }; aQ.filter = function (bh, bg, bk, ba) { var bc, a6, a8 = bh, bm = [], be = bg, bd = bg && bg[0] && aQ.isXML(bg[0]); while (bh && bg.length) { for (var bf in aT.filter) { if ((bc = aT.leftMatch[bf].exec(bh)) != null && bc[2]) { var bl, bj, a7 = aT.filter[bf], a9 = bc[1]; a6 = false; bc.splice(1, 1); if (a9.substr(a9.length - 1) === "\\") { continue } if (be === bm) { bm = [] } if (aT.preFilter[bf]) { bc = aT.preFilter[bf](bc, be, bk, bm, ba, bd); if (!bc) { a6 = bl = true } else { if (bc === true) { continue } } } if (bc) { for (var bb = 0; (bj = be[bb]) != null; bb++) { if (bj) { bl = a7(bj, bc, bb, be); var bi = ba ^ !!bl; if (bk && bl != null) { if (bi) { a6 = true } else { be[bb] = false } } else { if (bi) { bm.push(bj); a6 = true } } } } } if (bl !== z) { if (!bk) { be = bm } bh = bh.replace(aT.match[bf], ""); if (!a6) { return [] } break } } } if (bh === a8) { if (a6 == null) { aQ.error(bh) } else { break } } a8 = bh } return be }; aQ.error = function (a6) { throw "Syntax error, unrecognized expression: " + a6 }; var aT = aQ.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 (a6) { return a6.getAttribute("href") } }, relative: { "+": function (bc, a7) { var a9 = typeof a7 === "string", bb = a9 && !/\W/.test(a7), bd = a9 && !bb; if (bb) { a7 = a7.toLowerCase() } for (var a8 = 0, a6 = bc.length, ba; a8 < a6; a8++) { if ((ba = bc[a8])) { while ((ba = ba.previousSibling) && ba.nodeType !== 1) { } bc[a8] = bd || ba && ba.nodeName.toLowerCase() === a7 ? ba || false : ba === a7 } } if (bd) { aQ.filter(a7, bc, true) } }, ">": function (bc, a7) { var bb, ba = typeof a7 === "string", a8 = 0, a6 = bc.length; if (ba && !/\W/.test(a7)) { a7 = a7.toLowerCase(); for (; a8 < a6; a8++) { bb = bc[a8]; if (bb) { var a9 = bb.parentNode; bc[a8] = a9.nodeName.toLowerCase() === a7 ? a9 : false } } } else { for (; a8 < a6; a8++) { bb = bc[a8]; if (bb) { bc[a8] = ba ? bb.parentNode : bb.parentNode === a7 } } if (ba) { aQ.filter(a7, bc, true) } } }, "": function (a9, a7, bb) { var ba, a8 = aX++, a6 = a5; if (typeof a7 === "string" && !/\W/.test(a7)) { a7 = a7.toLowerCase(); ba = a7; a6 = a2 } a6("parentNode", a7, a8, a9, ba, bb) }, "~": function (a9, a7, bb) { var ba, a8 = aX++, a6 = a5; if (typeof a7 === "string" && !/\W/.test(a7)) { a7 = a7.toLowerCase(); ba = a7; a6 = a2 } a6("previousSibling", a7, a8, a9, ba, bb) } }, find: { ID: function (a7, a8, a9) { if (typeof a8.getElementById !== "undefined" && !a9) { var a6 = a8.getElementById(a7[1]); return a6 && a6.parentNode ? [a6] : [] } }, NAME: function (a8, bb) { if (typeof bb.getElementsByName !== "undefined") { var a7 = [], ba = bb.getElementsByName(a8[1]); for (var a9 = 0, a6 = ba.length; a9 < a6; a9++) { if (ba[a9].getAttribute("name") === a8[1]) { a7.push(ba[a9]) } } return a7.length === 0 ? null : a7 } }, TAG: function (a6, a7) { return a7.getElementsByTagName(a6[1]) } }, preFilter: { CLASS: function (a9, a7, a8, a6, bc, bd) { a9 = " " + a9[1].replace(/\\/g, "") + " "; if (bd) { return a9 } for (var ba = 0, bb; (bb = a7[ba]) != null; ba++) { if (bb) { if (bc ^ (bb.className && (" " + bb.className + " ").replace(/[\t\n]/g, " ").indexOf(a9) >= 0)) { if (!a8) { a6.push(bb) } } else { if (a8) { a7[ba] = false } } } } return false }, ID: function (a6) { return a6[1].replace(/\\/g, "") }, TAG: function (a7, a6) { return a7[1].toLowerCase() }, CHILD: function (a6) { if (a6[1] === "nth") { var a7 = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(a6[2] === "even" && "2n" || a6[2] === "odd" && "2n+1" || !/\D/.test(a6[2]) && "0n+" + a6[2] || a6[2]); a6[2] = (a7[1] + (a7[2] || 1)) - 0; a6[3] = a7[3] - 0 } a6[0] = aX++; return a6 }, ATTR: function (ba, a7, a8, a6, bb, bc) { var a9 = ba[1].replace(/\\/g, ""); if (!bc && aT.attrMap[a9]) { ba[1] = aT.attrMap[a9] } if (ba[2] === "~=") { ba[4] = " " + ba[4] + " " } return ba }, PSEUDO: function (ba, a7, a8, a6, bb) { if (ba[1] === "not") { if ((a4.exec(ba[3]) || "").length > 1 || /^\w/.test(ba[3])) { ba[3] = aQ(ba[3], null, null, a7) } else { var a9 = aQ.filter(ba[3], a7, a8, true ^ bb); if (!a8) { a6.push.apply(a6, a9) } return false } } else { if (aT.match.POS.test(ba[0]) || aT.match.CHILD.test(ba[0])) { return true } } return ba }, POS: function (a6) { a6.unshift(true); return a6 } }, filters: { enabled: function (a6) { return a6.disabled === false && a6.type !== "hidden" }, disabled: function (a6) { return a6.disabled === true }, checked: function (a6) { return a6.checked === true }, selected: function (a6) { a6.parentNode.selectedIndex; return a6.selected === true }, parent: function (a6) { return !!a6.firstChild }, empty: function (a6) { return !a6.firstChild }, has: function (a8, a7, a6) { return !!aQ(a6[3], a8).length }, header: function (a6) { return (/h\d/i).test(a6.nodeName) }, text: function (a6) { return "text" === a6.type }, radio: function (a6) { return "radio" === a6.type }, checkbox: function (a6) { return "checkbox" === a6.type }, file: function (a6) { return "file" === a6.type }, password: function (a6) { return "password" === a6.type }, submit: function (a6) { return "submit" === a6.type }, image: function (a6) { return "image" === a6.type }, reset: function (a6) { return "reset" === a6.type }, button: function (a6) { return "button" === a6.type || a6.nodeName.toLowerCase() === "button" }, input: function (a6) { return (/input|select|textarea|button/i).test(a6.nodeName) } }, setFilters: { first: function (a7, a6) { return a6 === 0 }, last: function (a8, a7, a6, a9) { return a7 === a9.length - 1 }, even: function (a7, a6) { return a6 % 2 === 0 }, odd: function (a7, a6) { return a6 % 2 === 1 }, lt: function (a8, a7, a6) { return a7 < a6[3] - 0 }, gt: function (a8, a7, a6) { return a7 > a6[3] - 0 }, nth: function (a8, a7, a6) { return a6[3] - 0 === a7 }, eq: function (a8, a7, a6) { return a6[3] - 0 === a7 } }, filter: { PSEUDO: function (a8, bd, bc, be) { var a6 = bd[1], a7 = aT.filters[a6]; if (a7) { return a7(a8, bc, bd, be) } else { if (a6 === "contains") { return (a8.textContent || a8.innerText || aQ.getText([a8]) || "").indexOf(bd[3]) >= 0 } else { if (a6 === "not") { var a9 = bd[3]; for (var bb = 0, ba = a9.length; bb < ba; bb++) { if (a9[bb] === a8) { return false } } return true } else { aQ.error("Syntax error, unrecognized expression: " + a6) } } } }, CHILD: function (a6, a9) { var bc = a9[1], a7 = a6; switch (bc) { case "only": case "first": while ((a7 = a7.previousSibling)) { if (a7.nodeType === 1) { return false } } if (bc === "first") { return true } a7 = a6; case "last": while ((a7 = a7.nextSibling)) { if (a7.nodeType === 1) { return false } } return true; case "nth": var a8 = a9[2], bf = a9[3]; if (a8 === 1 && bf === 0) { return true } var bb = a9[0], be = a6.parentNode; if (be && (be.sizcache !== bb || !a6.nodeIndex)) { var ba = 0; for (a7 = be.firstChild; a7; a7 = a7.nextSibling) { if (a7.nodeType === 1) { a7.nodeIndex = ++ba } } be.sizcache = bb } var bd = a6.nodeIndex - bf; if (a8 === 0) { return bd === 0 } else { return (bd % a8 === 0 && bd / a8 >= 0) } } }, ID: function (a7, a6) { return a7.nodeType === 1 && a7.getAttribute("id") === a6 }, TAG: function (a7, a6) { return (a6 === "*" && a7.nodeType === 1) || a7.nodeName.toLowerCase() === a6 }, CLASS: function (a7, a6) { return (" " + (a7.className || a7.getAttribute("class")) + " ").indexOf(a6) > -1 }, ATTR: function (bb, a9) { var a8 = a9[1], a6 = aT.attrHandle[a8] ? aT.attrHandle[a8](bb) : bb[a8] != null ? bb[a8] : bb.getAttribute(a8), bc = a6 + "", ba = a9[2], a7 = a9[4]; return a6 == null ? ba === "!=" : ba === "=" ? bc === a7 : ba === "*=" ? bc.indexOf(a7) >= 0 : ba === "~=" ? (" " + bc + " ").indexOf(a7) >= 0 : !a7 ? bc && a6 !== false : ba === "!=" ? bc !== a7 : ba === "^=" ? bc.indexOf(a7) === 0 : ba === "$=" ? bc.substr(bc.length - a7.length) === a7 : ba === "|=" ? bc === a7 || bc.substr(0, a7.length + 1) === a7 + "-" : false }, POS: function (ba, a7, a8, bb) { var a6 = a7[2], a9 = aT.setFilters[a6]; if (a9) { return a9(ba, a8, a7, bb) } } } }; var aY = aT.match.POS, aU = function (a7, a6) { return "\\" + (a6 - 0 + 1) }; for (var a1 in aT.match) { aT.match[a1] = new RegExp(aT.match[a1].source + (/(?![^\[]*\])(?![^\(]*\))/.source)); aT.leftMatch[a1] = new RegExp(/(^(?:.|\r|\n)*?)/.source + aT.match[a1].source.replace(/\\(\d+)/g, aU)) } var aP = function (a7, a6) { a7 = Array.prototype.slice.call(a7, 0); if (a6) { a6.push.apply(a6, a7); return a6 } return a7 }; try { Array.prototype.slice.call(Y.documentElement.childNodes, 0)[0].nodeType } catch (aZ) { aP = function (ba, a9) { var a8 = 0, a7 = a9 || []; if (aS.call(ba) === "[object Array]") { Array.prototype.push.apply(a7, ba) } else { if (typeof ba.length === "number") { for (var a6 = ba.length; a8 < a6; a8++) { a7.push(ba[a8]) } } else { for (; ba[a8]; a8++) { a7.push(ba[a8]) } } } return a7 } } var aR, a0; if (Y.documentElement.compareDocumentPosition) { aR = function (a7, a6) { if (a7 === a6) { a3 = true; return 0 } if (!a7.compareDocumentPosition || !a6.compareDocumentPosition) { return a7.compareDocumentPosition ? -1 : 1 } return a7.compareDocumentPosition(a6) & 4 ? -1 : 1 } } else { aR = function (be, bd) { var bb, a7, a8 = [], a6 = [], ba = be.parentNode, bc = bd.parentNode, bf = ba; if (be === bd) { a3 = true; return 0 } else { if (ba === bc) { return a0(be, bd) } else { if (!ba) { return -1 } else { if (!bc) { return 1 } } } } while (bf) { a8.unshift(bf); bf = bf.parentNode } bf = bc; while (bf) { a6.unshift(bf); bf = bf.parentNode } bb = a8.length; a7 = a6.length; for (var a9 = 0; a9 < bb && a9 < a7; a9++) { if (a8[a9] !== a6[a9]) { return a0(a8[a9], a6[a9]) } } return a9 === bb ? a0(be, a6[a9], -1) : a0(a8[a9], bd, 1) }; a0 = function (a7, a6, a8) { if (a7 === a6) { return a8 } var a9 = a7.nextSibling; while (a9) { if (a9 === a6) { return -1 } a9 = a9.nextSibling } return 1 } } aQ.getText = function (a6) { var a7 = "", a9; for (var a8 = 0; a6[a8]; a8++) { a9 = a6[a8]; if (a9.nodeType === 3 || a9.nodeType === 4) { a7 += a9.nodeValue } else { if (a9.nodeType !== 8) { a7 += aQ.getText(a9.childNodes) } } } return a7 }; (function () { var a7 = Y.createElement("div"), a8 = "script" + (new Date()).getTime(), a6 = Y.documentElement; a7.innerHTML = "<a name='" + a8 + "'/>"; a6.insertBefore(a7, a6.firstChild); if (Y.getElementById(a8)) { aT.find.ID = function (ba, bb, bc) { if (typeof bb.getElementById !== "undefined" && !bc) { var a9 = bb.getElementById(ba[1]); return a9 ? a9.id === ba[1] || typeof a9.getAttributeNode !== "undefined" && a9.getAttributeNode("id").nodeValue === ba[1] ? [a9] : z : [] } }; aT.filter.ID = function (bb, a9) { var ba = typeof bb.getAttributeNode !== "undefined" && bb.getAttributeNode("id"); return bb.nodeType === 1 && ba && ba.nodeValue === a9 } } a6.removeChild(a7); a6 = a7 = null })(); (function () { var a6 = Y.createElement("div"); a6.appendChild(Y.createComment("")); if (a6.getElementsByTagName("*").length > 0) { aT.find.TAG = function (a7, bb) { var ba = bb.getElementsByTagName(a7[1]); if (a7[1] === "*") { var a9 = []; for (var a8 = 0; ba[a8]; a8++) { if (ba[a8].nodeType === 1) { a9.push(ba[a8]) } } ba = a9 } return ba } } a6.innerHTML = "<a href='#'></a>"; if (a6.firstChild && typeof a6.firstChild.getAttribute !== "undefined" && a6.firstChild.getAttribute("href") !== "#") { aT.attrHandle.href = function (a7) { return a7.getAttribute("href", 2) } } a6 = null })(); if (Y.querySelectorAll) { (function () { var a6 = aQ, a9 = Y.createElement("div"), a8 = "__sizzle__"; a9.innerHTML = "<p class='TEST'></p>"; if (a9.querySelectorAll && a9.querySelectorAll(".TEST").length === 0) { return } aQ = function (be, bd, ba, bc) { bd = bd || Y; be = be.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']"); if (!bc && !aQ.isXML(bd)) { if (bd.nodeType === 9) { try { return aP(bd.querySelectorAll(be), ba) } catch (bg) { } } else { if (bd.nodeType === 1 && bd.nodeName.toLowerCase() !== "object") { var bb = bd.getAttribute("id"), bh = bb || a8; if (!bb) { bd.setAttribute("id", bh) } try { return aP(bd.querySelectorAll("#" + bh + " " + be), ba) } catch (bf) { } finally { if (!bb) { bd.removeAttribute("id") } } } } } return a6(be, bd, ba, bc) }; for (var a7 in a6) { aQ[a7] = a6[a7] } a9 = null })() } (function () { var a6 = Y.documentElement, a8 = a6.matchesSelector || a6.mozMatchesSelector || a6.webkitMatchesSelector || a6.msMatchesSelector, a7 = false; try { a8.call(Y.documentElement, "[test!='']:sizzle") } catch (a9) { a7 = true } if (a8) { aQ.matchesSelector = function (ba, bc) { bc = bc.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']"); if (!aQ.isXML(ba)) { try { if (a7 || !aT.match.PSEUDO.test(bc) && !/!=/.test(bc)) { return a8.call(ba, bc) } } catch (bb) { } } return aQ(bc, null, null, [ba]).length > 0 } } })(); (function () { var a6 = Y.createElement("div"); a6.innerHTML = "<div class='test e'></div><div class='test'></div>"; if (!a6.getElementsByClassName || a6.getElementsByClassName("e").length === 0) { return } a6.lastChild.className = "e"; if (a6.getElementsByClassName("e").length === 1) { return } aT.order.splice(1, 0, "CLASS"); aT.find.CLASS = function (a7, a8, a9) { if (typeof a8.getElementsByClassName !== "undefined" && !a9) { return a8.getElementsByClassName(a7[1]) } }; a6 = null })(); function a2(a7, bc, bb, bf, bd, be) { for (var a9 = 0, a8 = bf.length; a9 < a8; a9++) { var a6 = bf[a9]; if (a6) { var ba = false; a6 = a6[a7]; while (a6) { if (a6.sizcache === bb) { ba = bf[a6.sizset]; break } if (a6.nodeType === 1 && !be) { a6.sizcache = bb; a6.sizset = a9 } if (a6.nodeName.toLowerCase() === bc) { ba = a6; break } a6 = a6[a7] } bf[a9] = ba } } } function a5(a7, bc, bb, bf, bd, be) { for (var a9 = 0, a8 = bf.length; a9 < a8; a9++) { var a6 = bf[a9]; if (a6) { var ba = false; a6 = a6[a7]; while (a6) { if (a6.sizcache === bb) { ba = bf[a6.sizset]; break } if (a6.nodeType === 1) { if (!be) { a6.sizcache = bb; a6.sizset = a9 } if (typeof bc !== "string") { if (a6 === bc) { ba = true; break } } else { if (aQ.filter(bc, [a6]).length > 0) { ba = a6; break } } } a6 = a6[a7] } bf[a9] = ba } } } if (Y.documentElement.contains) { aQ.contains = function (a7, a6) { return a7 !== a6 && (a7.contains ? a7.contains(a6) : true) } } else { if (Y.documentElement.compareDocumentPosition) { aQ.contains = function (a7, a6) { return !!(a7.compareDocumentPosition(a6) & 16) } } else { aQ.contains = function () { return false } } } aQ.isXML = function (a6) { var a7 = (a6 ? a6.ownerDocument || a6 : 0).documentElement; return a7 ? a7.nodeName !== "HTML" : false }; var aV = function (a6, bd) { var bb, a9 = [], ba = "", a8 = bd.nodeType ? [bd] : bd; while ((bb = aT.match.PSEUDO.exec(a6))) { ba += bb[0]; a6 = a6.replace(aT.match.PSEUDO, "") } a6 = aT.relative[a6] ? a6 + "*" : a6; for (var bc = 0, a7 = a8.length; bc < a7; bc++) { aQ(a6, a8[bc], a9) } return aQ.filter(ba, a9) }; a.find = aQ; a.expr = aQ.selectors; a.expr[":"] = a.expr.filters; a.unique = aQ.uniqueSort; a.text = aQ.getText; a.isXMLDoc = aQ.isXML; a.contains = aQ.contains })(); var L = /Until$/, V = /^(?:parents|prevUntil|prevAll)/, aA = /,/, aM = /^.[^:#\[\.,]*$/, D = Array.prototype.slice, x = a.expr.match.POS; a.fn.extend({ find: function (aP) { var aR = this.pushStack("", "find", aP), aU = 0; for (var aS = 0, aQ = this.length; aS < aQ; aS++) { aU = aR.length; a.find(aP, this[aS], aR); if (aS > 0) { for (var aV = aU; aV < aR.length; aV++) { for (var aT = 0; aT < aU; aT++) { if (aR[aT] === aR[aV]) { aR.splice(aV--, 1); break } } } } } return aR }, has: function (aQ) { var aP = a(aQ); return this.filter(function () { for (var aS = 0, aR = aP.length; aS < aR; aS++) { if (a.contains(this, aP[aS])) { return true } } }) }, not: function (aP) { return this.pushStack(ac(this, aP, false), "not", aP) }, filter: function (aP) { return this.pushStack(ac(this, aP, true), "filter", aP) }, is: function (aP) { return !!aP && a.filter(aP, this).length > 0 }, closest: function (aZ, aQ) { var aW = [], aT, aR, aY = this[0]; if (a.isArray(aZ)) { var aV, aS, aU = {}, aP = 1; if (aY && aZ.length) { for (aT = 0, aR = aZ.length; aT < aR; aT++) { aS = aZ[aT]; if (!aU[aS]) { aU[aS] = a.expr.match.POS.test(aS) ? a(aS, aQ || this.context) : aS } } while (aY && aY.ownerDocument && aY !== aQ) { for (aS in aU) { aV = aU[aS]; if (aV.jquery ? aV.index(aY) > -1 : a(aY).is(aV)) { aW.push({ selector: aS, elem: aY, level: aP }) } } aY = aY.parentNode; aP++ } } return aW } var aX = x.test(aZ) ? a(aZ, aQ || this.context) : null; for (aT = 0, aR = this.length; aT < aR; aT++) { aY = this[aT]; while (aY) { if (aX ? aX.index(aY) > -1 : a.find.matchesSelector(aY, aZ)) { aW.push(aY); break } else { aY = aY.parentNode; if (!aY || !aY.ownerDocument || aY === aQ) { break } } } } aW = aW.length > 1 ? a.unique(aW) : aW; return this.pushStack(aW, "closest", aZ) }, index: function (aP) { if (!aP || typeof aP === "string") { return a.inArray(this[0], aP ? a(aP) : this.parent().children()) } return a.inArray(aP.jquery ? aP[0] : aP, this) }, add: function (aP, aQ) { var aS = typeof aP === "string" ? a(aP, aQ || this.context) : a.makeArray(aP), aR = a.merge(this.get(), aS); return this.pushStack(t(aS[0]) || t(aR[0]) ? aR : a.unique(aR)) }, andSelf: function () { return this.add(this.prevObject) } }); function t(aP) { return !aP || !aP.parentNode || aP.parentNode.nodeType === 11 } a.each({ parent: function (aQ) { var aP = aQ.parentNode; return aP && aP.nodeType !== 11 ? aP : null }, parents: function (aP) { return a.dir(aP, "parentNode") }, parentsUntil: function (aQ, aP, aR) { return a.dir(aQ, "parentNode", aR) }, next: function (aP) { return a.nth(aP, 2, "nextSibling") }, prev: function (aP) { return a.nth(aP, 2, "previousSibling") }, nextAll: function (aP) { return a.dir(aP, "nextSibling") }, prevAll: function (aP) { return a.dir(aP, "previousSibling") }, nextUntil: function (aQ, aP, aR) { return a.dir(aQ, "nextSibling", aR) }, prevUntil: function (aQ, aP, aR) { return a.dir(aQ, "previousSibling", aR) }, siblings: function (aP) { return a.sibling(aP.parentNode.firstChild, aP) }, children: function (aP) { return a.sibling(aP.firstChild) }, contents: function (aP) { return a.nodeName(aP, "iframe") ? aP.contentDocument || aP.contentWindow.document : a.makeArray(aP.childNodes) } }, function (aP, aQ) { a.fn[aP] = function (aT, aR) { var aS = a.map(this, aQ, aT); if (!L.test(aP)) { aR = aT } if (aR && typeof aR === "string") { aS = a.filter(aR, aS) } aS = this.length > 1 ? a.unique(aS) : aS; if ((this.length > 1 || aA.test(aR)) && V.test(aP)) { aS = aS.reverse() } return this.pushStack(aS, aP, D.call(arguments).join(",")) } }); a.extend({ filter: function (aR, aP, aQ) { if (aQ) { aR = ":not(" + aR + ")" } return aP.length === 1 ? a.find.matchesSelector(aP[0], aR) ? [aP[0]] : [] : a.find.matches(aR, aP) }, dir: function (aR, aQ, aT) { var aP = [], aS = aR[aQ]; while (aS && aS.nodeType !== 9 && (aT === z || aS.nodeType !== 1 || !a(aS).is(aT))) { if (aS.nodeType === 1) { aP.push(aS) } aS = aS[aQ] } return aP }, nth: function (aT, aP, aR, aS) { aP = aP || 1; var aQ = 0; for (; aT; aT = aT[aR]) { if (aT.nodeType === 1 && ++aQ === aP) { break } } return aT }, sibling: function (aR, aQ) { var aP = []; for (; aR; aR = aR.nextSibling) { if (aR.nodeType === 1 && aR !== aQ) { aP.push(aR) } } return aP } }); function ac(aS, aR, aP) { if (a.isFunction(aR)) { return a.grep(aS, function (aU, aT) { var aV = !!aR.call(aU, aT, aU); return aV === aP }) } else { if (aR.nodeType) { return a.grep(aS, function (aU, aT) { return (aU === aR) === aP }) } else { if (typeof aR === "string") { var aQ = a.grep(aS, function (aT) { return aT.nodeType === 1 }); if (aM.test(aR)) { return a.filter(aR, aQ, !aP) } else { aR = a.filter(aR, aQ) } } } } return a.grep(aS, function (aU, aT) { return (a.inArray(aU, aR) >= 0) === aP }) } var Q = / jQuery\d+="(?:\d+|null)"/g, W = /^\s+/, G = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig, b = /<([\w:]+)/, p = /<tbody/i, J = /<|&#?\w+;/, C = /<(?:script|object|embed|option|style)/i, i = /checked\s*(?:[^=]|=\s*.checked.)/i, F = /\=([^="'>\s]+\/)>/g, Z = { 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, "", ""] }; Z.optgroup = Z.option; Z.tbody = Z.tfoot = Z.colgroup = Z.caption = Z.thead; Z.th = Z.td; if (!a.support.htmlSerialize) { Z._default = [1, "div<div>", "</div>"] } a.fn.extend({ text: function (aP) { if (a.isFunction(aP)) { return this.each(function (aR) { var aQ = a(this); aQ.text(aP.call(this, aR, aQ.text())) }) } if (typeof aP !== "object" && aP !== z) { return this.empty().append((this[0] && this[0].ownerDocument || Y).createTextNode(aP)) } return a.text(this) }, wrapAll: function (aP) { if (a.isFunction(aP)) { return this.each(function (aR) { a(this).wrapAll(aP.call(this, aR)) }) } if (this[0]) { var aQ = a(aP, this[0].ownerDocument).eq(0).clone(true); if (this[0].parentNode) { aQ.insertBefore(this[0]) } aQ.map(function () { var aR = this; while (aR.firstChild && aR.firstChild.nodeType === 1) { aR = aR.firstChild } return aR }).append(this) } return this }, wrapInner: function (aP) { if (a.isFunction(aP)) { return this.each(function (aQ) { a(this).wrapInner(aP.call(this, aQ)) }) } return this.each(function () { var aQ = a(this), aR = aQ.contents(); if (aR.length) { aR.wrapAll(aP) } else { aQ.append(aP) } }) }, wrap: function (aP) { return this.each(function () { a(this).wrapAll(aP) }) }, unwrap: function () { return this.parent().each(function () { if (!a.nodeName(this, "body")) { a(this).replaceWith(this.childNodes) } }).end() }, append: function () { return this.domManip(arguments, true, function (aP) { if (this.nodeType === 1) { this.appendChild(aP) } }) }, prepend: function () { return this.domManip(arguments, true, function (aP) { if (this.nodeType === 1) { this.insertBefore(aP, this.firstChild) } }) }, before: function () { if (this[0] && this[0].parentNode) { return this.domManip(arguments, false, function (aQ) { this.parentNode.insertBefore(aQ, this) }) } else { if (arguments.length) { var aP = a(arguments[0]); aP.push.apply(aP, this.toArray()); return this.pushStack(aP, "before", arguments) } } }, after: function () { if (this[0] && this[0].parentNode) { return this.domManip(arguments, false, function (aQ) { this.parentNode.insertBefore(aQ, this.nextSibling) }) } else { if (arguments.length) { var aP = this.pushStack(this, "after", arguments); aP.push.apply(aP, a(arguments[0]).toArray()); return aP } } }, remove: function (aP, aS) { for (var aQ = 0, aR; (aR = this[aQ]) != null; aQ++) { if (!aP || a.filter(aP, [aR]).length) { if (!aS && aR.nodeType === 1) { a.cleanData(aR.getElementsByTagName("*")); a.cleanData([aR]) } if (aR.parentNode) { aR.parentNode.removeChild(aR) } } } return this }, empty: function () { for (var aP = 0, aQ; (aQ = this[aP]) != null; aP++) { if (aQ.nodeType === 1) { a.cleanData(aQ.getElementsByTagName("*")) } while (aQ.firstChild) { aQ.removeChild(aQ.firstChild) } } return this }, clone: function (aQ) { var aP = this.map(function () { if (!a.support.noCloneEvent && !a.isXMLDoc(this)) { var aS = this.outerHTML, aR = this.ownerDocument; if (!aS) { var aT = aR.createElement("div"); aT.appendChild(this.cloneNode(true)); aS = aT.innerHTML } return a.clean([aS.replace(Q, "").replace(F, '="$1">').replace(W, "")], aR)[0] } else { return this.cloneNode(true) } }); if (aQ === true) { m(this, aP); m(this.find("*"), aP.find("*")) } return aP }, html: function (aR) { if (aR === z) { return this[0] && this[0].nodeType === 1 ? this[0].innerHTML.replace(Q, "") : null } else { if (typeof aR === "string" && !C.test(aR) && (a.support.leadingWhitespace || !W.test(aR)) && !Z[(b.exec(aR) || ["", ""])[1].toLowerCase()]) { aR = aR.replace(G, "<$1></$2>"); try { for (var aQ = 0, aP = this.length; aQ < aP; aQ++) { if (this[aQ].nodeType === 1) { a.cleanData(this[aQ].getElementsByTagName("*")); this[aQ].innerHTML = aR } } } catch (aS) { this.empty().append(aR) } } else { if (a.isFunction(aR)) { this.each(function (aU) { var aT = a(this); aT.html(aR.call(this, aU, aT.html())) }) } else { this.empty().append(aR) } } } return this }, replaceWith: function (aP) { if (this[0] && this[0].parentNode) { if (a.isFunction(aP)) { return this.each(function (aS) { var aR = a(this), aQ = aR.html(); aR.replaceWith(aP.call(this, aS, aQ)) }) } if (typeof aP !== "string") { aP = a(aP).detach() } return this.each(function () { var aR = this.nextSibling, aQ = this.parentNode; a(this).remove(); if (aR) { a(aR).before(aP) } else { a(aQ).append(aP) } }) } else { return this.pushStack(a(a.isFunction(aP) ? aP() : aP), "replaceWith", aP) } }, detach: function (aP) { return this.remove(aP, true) }, domManip: function (aV, aZ, aY) { var aS, aT, aU, aX, aW = aV[0], aQ = []; if (!a.support.checkClone && arguments.length === 3 && typeof aW === "string" && i.test(aW)) { return this.each(function () { a(this).domManip(aV, aZ, aY, true) }) } if (a.isFunction(aW)) { return this.each(function (a1) { var a0 = a(this); aV[0] = aW.call(this, a1, aZ ? a0.html() : z); a0.domManip(aV, aZ, aY) }) } if (this[0]) { aX = aW && aW.parentNode; if (a.support.parentNode && aX && aX.nodeType === 11 && aX.childNodes.length === this.length) { aS = { fragment: aX} } else { aS = a.buildFragment(aV, this, aQ) } aU = aS.fragment; if (aU.childNodes.length === 1) { aT = aU = aU.firstChild } else { aT = aU.firstChild } if (aT) { aZ = aZ && a.nodeName(aT, "tr"); for (var aR = 0, aP = this.length; aR < aP; aR++) { aY.call(aZ ? aB(this[aR], aT) : this[aR], aR > 0 || aS.cacheable || this.length > 1 ? aU.cloneNode(true) : aU) } } if (aQ.length) { a.each(aQ, aL) } } return this } }); function aB(aP, aQ) { return a.nodeName(aP, "table") ? (aP.getElementsByTagName("tbody")[0] || aP.appendChild(aP.ownerDocument.createElement("tbody"))) : aP } function m(aR, aP) { var aQ = 0; aP.each(function () { if (this.nodeName !== (aR[aQ] && aR[aQ].nodeName)) { return } var aW = a.data(aR[aQ++]), aV = a.data(this, aW), aS = aW && aW.events; if (aS) { delete aV.handle; aV.events = {}; for (var aU in aS) { for (var aT in aS[aU]) { a.event.add(this, aU, aS[aU][aT], aS[aU][aT].data) } } } }) } a.buildFragment = function (aU, aS, aQ) { var aT, aP, aR, aV = (aS && aS[0] ? aS[0].ownerDocument || aS[0] : Y); if (aU.length === 1 && typeof aU[0] === "string" && aU[0].length < 512 && aV === Y && !C.test(aU[0]) && (a.support.checkClone || !i.test(aU[0]))) { aP = true; aR = a.fragments[aU[0]]; if (aR) { if (aR !== 1) { aT = aR } } } if (!aT) { aT = aV.createDocumentFragment(); a.clean(aU, aV, aT, aQ) } if (aP) { a.fragments[aU[0]] = aR ? aT : 1 } return { fragment: aT, cacheable: aP} }; a.fragments = {}; a.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function (aP, aQ) { a.fn[aP] = function (aR) { var aU = [], aX = a(aR), aW = this.length === 1 && this[0].parentNode; if (aW && aW.nodeType === 11 && aW.childNodes.length === 1 && aX.length === 1) { aX[aQ](this[0]); return this } else { for (var aV = 0, aS = aX.length; aV < aS; aV++) { var aT = (aV > 0 ? this.clone(true) : this).get(); a(aX[aV])[aQ](aT); aU = aU.concat(aT) } return this.pushStack(aU, aP, aX.selector) } } }); a.extend({ clean: function (aR, aT, a0, aV) { aT = aT || Y; if (typeof aT.createElement === "undefined") { aT = aT.ownerDocument || aT[0] && aT[0].ownerDocument || Y } var a1 = []; for (var aZ = 0, aU; (aU = aR[aZ]) != null; aZ++) { if (typeof aU === "number") { aU += "" } if (!aU) { continue } if (typeof aU === "string" && !J.test(aU)) { aU = aT.createTextNode(aU) } else { if (typeof aU === "string") { aU = aU.replace(G, "<$1></$2>"); var a2 = (b.exec(aU) || ["", ""])[1].toLowerCase(), aS = Z[a2] || Z._default, aY = aS[0], aQ = aT.createElement("div"); aQ.innerHTML = aS[1] + aU + aS[2]; while (aY--) { aQ = aQ.lastChild } if (!a.support.tbody) { var aP = p.test(aU), aX = a2 === "table" && !aP ? aQ.firstChild && aQ.firstChild.childNodes : aS[1] === "<table>" && !aP ? aQ.childNodes : []; for (var aW = aX.length - 1; aW >= 0; --aW) { if (a.nodeName(aX[aW], "tbody") && !aX[aW].childNodes.length) { aX[aW].parentNode.removeChild(aX[aW]) } } } if (!a.support.leadingWhitespace && W.test(aU)) { aQ.insertBefore(aT.createTextNode(W.exec(aU)[0]), aQ.firstChild) } aU = aQ.childNodes } } if (aU.nodeType) { a1.push(aU) } else { a1 = a.merge(a1, aU) } } if (a0) { for (aZ = 0; a1[aZ]; aZ++) { if (aV && a.nodeName(a1[aZ], "script") && (!a1[aZ].type || a1[aZ].type.toLowerCase() === "text/javascript")) { aV.push(a1[aZ].parentNode ? a1[aZ].parentNode.removeChild(a1[aZ]) : a1[aZ]) } else { if (a1[aZ].nodeType === 1) { a1.splice.apply(a1, [aZ + 1, 0].concat(a.makeArray(a1[aZ].getElementsByTagName("script")))) } a0.appendChild(a1[aZ]) } } } return a1 }, cleanData: function (aQ) { var aT, aR, aP = a.cache, aW = a.event.special, aV = a.support.deleteExpando; for (var aU = 0, aS; (aS = aQ[aU]) != null; aU++) { if (aS.nodeName && a.noData[aS.nodeName.toLowerCase()]) { continue } aR = aS[a.expando]; if (aR) { aT = aP[aR]; if (aT && aT.events) { for (var aX in aT.events) { if (aW[aX]) { a.event.remove(aS, aX) } else { a.removeEvent(aS, aX, aT.handle) } } } if (aV) { delete aS[a.expando] } else { if (aS.removeAttribute) { aS.removeAttribute(a.expando) } } delete aP[aR] } } } }); function aL(aP, aQ) { if (aQ.src) { a.ajax({ url: aQ.src, async: false, dataType: "script" }) } else { a.globalEval(aQ.text || aQ.textContent || aQ.innerHTML || "") } if (aQ.parentNode) { aQ.parentNode.removeChild(aQ) } } var R = /alpha\([^)]*\)/i, X = /opacity=([^)]*)/, ap = /-([a-z])/ig, r = /([A-Z])/g, aD = /^-?\d+(?:px)?$/i, aK = /^-?\d/, az = { position: "absolute", visibility: "hidden", display: "block" }, T = ["Left", "Right"], av = ["Top", "Bottom"], K, af, ao, h = function (aP, aQ) { return aQ.toUpperCase() }; a.fn.css = function (aP, aQ) { if (arguments.length === 2 && aQ === z) { return this } return a.access(this, aP, aQ, true, function (aS, aR, aT) { return aT !== z ? a.style(aS, aR, aT) : a.css(aS, aR) }) }; a.extend({ cssHooks: { opacity: { get: function (aR, aQ) { if (aQ) { var aP = K(aR, "opacity", "opacity"); return aP === "" ? "1" : aP } else { return aR.style.opacity } } } }, cssNumber: { zIndex: true, fontWeight: true, opacity: true, zoom: true, lineHeight: true }, cssProps: { "float": a.support.cssFloat ? "cssFloat" : "styleFloat" }, style: function (aR, aQ, aW, aS) { if (!aR || aR.nodeType === 3 || aR.nodeType === 8 || !aR.style) { return } var aV, aT = a.camelCase(aQ), aP = aR.style, aX = a.cssHooks[aT]; aQ = a.cssProps[aT] || aT; if (aW !== z) { if (typeof aW === "number" && isNaN(aW) || aW == null) { return } if (typeof aW === "number" && !a.cssNumber[aT]) { aW += "px" } if (!aX || !("set" in aX) || (aW = aX.set(aR, aW)) !== z) { try { aP[aQ] = aW } catch (aU) { } } } else { if (aX && "get" in aX && (aV = aX.get(aR, false, aS)) !== z) { return aV } return aP[aQ] } }, css: function (aU, aT, aQ) { var aS, aR = a.camelCase(aT), aP = a.cssHooks[aR]; aT = a.cssProps[aR] || aR; if (aP && "get" in aP && (aS = aP.get(aU, true, aQ)) !== z) { return aS } else { if (K) { return K(aU, aT, aR) } } }, swap: function (aS, aR, aT) { var aP = {}; for (var aQ in aR) { aP[aQ] = aS.style[aQ]; aS.style[aQ] = aR[aQ] } aT.call(aS); for (aQ in aR) { aS.style[aQ] = aP[aQ] } }, camelCase: function (aP) { return aP.replace(ap, h) } }); a.curCSS = a.css; a.each(["height", "width"], function (aQ, aP) { a.cssHooks[aP] = { get: function (aT, aS, aR) { var aU; if (aS) { if (aT.offsetWidth !== 0) { aU = k(aT, aP, aR) } else { a.swap(aT, az, function () { aU = k(aT, aP, aR) }) } if (aU <= 0) { aU = K(aT, aP, aP); if (aU === "0px" && ao) { aU = ao(aT, aP, aP) } if (aU != null) { return aU === "" || aU === "auto" ? "0px" : aU } } if (aU < 0 || aU == null) { aU = aT.style[aP]; return aU === "" || aU === "auto" ? "0px" : aU } return typeof aU === "string" ? aU : aU + "px" } }, set: function (aR, aS) { if (aD.test(aS)) { aS = parseFloat(aS); if (aS >= 0) { return aS + "px" } } else { return aS } } } }); if (!a.support.opacity) { a.cssHooks.opacity = { get: function (aQ, aP) { return X.test((aP && aQ.currentStyle ? aQ.currentStyle.filter : aQ.style.filter) || "") ? (parseFloat(RegExp.$1) / 100) + "" : aP ? "1" : "" }, set: function (aS, aT) { var aR = aS.style; aR.zoom = 1; var aP = a.isNaN(aT) ? "" : "alpha(opacity=" + aT * 100 + ")", aQ = aR.filter || ""; aR.filter = R.test(aQ) ? aQ.replace(R, aP) : aR.filter + " " + aP } } } if (Y.defaultView && Y.defaultView.getComputedStyle) { af = function (aU, aP, aS) { var aR, aT, aQ; aS = aS.replace(r, "-$1").toLowerCase(); if (!(aT = aU.ownerDocument.defaultView)) { return z } if ((aQ = aT.getComputedStyle(aU, null))) { aR = aQ.getPropertyValue(aS); if (aR === "" && !a.contains(aU.ownerDocument.documentElement, aU)) { aR = a.style(aU, aS) } } return aR } } if (Y.documentElement.currentStyle) { ao = function (aT, aR) { var aU, aP, aQ = aT.currentStyle && aT.currentStyle[aR], aS = aT.style; if (!aD.test(aQ) && aK.test(aQ)) { aU = aS.left; aP = aT.runtimeStyle.left; aT.runtimeStyle.left = aT.currentStyle.left; aS.left = aR === "fontSize" ? "1em" : (aQ || 0); aQ = aS.pixelLeft + "px"; aS.left = aU; aT.runtimeStyle.left = aP } return aQ === "" ? "auto" : aQ } } K = af || ao; function k(aR, aQ, aP) { var aT = aQ === "width" ? T : av, aS = aQ === "width" ? aR.offsetWidth : aR.offsetHeight; if (aP === "border") { return aS } a.each(aT, function () { if (!aP) { aS -= parseFloat(a.css(aR, "padding" + this)) || 0 } if (aP === "margin") { aS += parseFloat(a.css(aR, "margin" + this)) || 0 } else { aS -= parseFloat(a.css(aR, "border" + this + "Width")) || 0 } }); return aS } if (a.expr && a.expr.filters) { a.expr.filters.hidden = function (aR) { var aQ = aR.offsetWidth, aP = aR.offsetHeight; return (aQ === 0 && aP === 0) || (!a.support.reliableHiddenOffsets && (aR.style.display || a.css(aR, "display")) === "none") }; a.expr.filters.visible = function (aP) { return !a.expr.filters.hidden(aP) } } var ab = a.now(), ay = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, l = /^(?:select|textarea)/i, ar = /^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i, ai = /^(?:GET|HEAD)$/, U = /\[\]$/, n = /\=\?(&|$)/, A = /\?/, aO = /([?&])_=[^&]*/, y = /^(\w+:)?\/\/([^\/?#]+)/, e = /%20/g, aN = /#.*$/, s = a.fn.load; a.fn.extend({ load: function (aR, aU, aV) { if (typeof aR !== "string" && s) { return s.apply(this, arguments) } else { if (!this.length) { return this } } var aT = aR.indexOf(" "); if (aT >= 0) { var aP = aR.slice(aT, aR.length); aR = aR.slice(0, aT) } var aS = "GET"; if (aU) { if (a.isFunction(aU)) { aV = aU; aU = null } else { if (typeof aU === "object") { aU = a.param(aU, a.ajaxSettings.traditional); aS = "POST" } } } var aQ = this; a.ajax({ url: aR, type: aS, dataType: "html", data: aU, complete: function (aX, aW) { if (aW === "success" || aW === "notmodified") { aQ.html(aP ? a("<div>").append(aX.responseText.replace(ay, "")).find(aP) : aX.responseText) } if (aV) { aQ.each(aV, [aX.responseText, aW, aX]) } } }); return this }, serialize: function () { return a.param(this.serializeArray()) }, serializeArray: function () { return this.map(function () { return this.elements ? a.makeArray(this.elements) : this }).filter(function () { return this.name && !this.disabled && (this.checked || l.test(this.nodeName) || ar.test(this.type)) }).map(function (aP, aQ) { var aR = a(this).val(); return aR == null ? null : a.isArray(aR) ? a.map(aR, function (aT, aS) { return { name: aQ.name, value: aT} }) : { name: aQ.name, value: aR} }).get() } }); a.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function (aP, aQ) { a.fn[aQ] = function (aR) { return this.bind(aQ, aR) } }); a.extend({ get: function (aP, aR, aS, aQ) { if (a.isFunction(aR)) { aQ = aQ || aS; aS = aR; aR = null } return a.ajax({ type: "GET", url: aP, data: aR, success: aS, dataType: aQ }) }, getScript: function (aP, aQ) { return a.get(aP, null, aQ, "script") }, getJSON: function (aP, aQ, aR) { return a.get(aP, aQ, aR, "json") }, post: function (aP, aR, aS, aQ) { if (a.isFunction(aR)) { aQ = aQ || aS; aS = aR; aR = {} } return a.ajax({ type: "POST", url: aP, data: aR, success: aS, dataType: aQ }) }, ajaxSetup: function (aP) { a.extend(a.ajaxSettings, aP) }, ajaxSettings: { url: location.href, global: true, type: "GET", contentType: "application/x-www-form-urlencoded", processData: true, async: true, xhr: function () { return new aC.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 (a6) { var aZ = a.extend(true, {}, a.ajaxSettings, a6), ba, a5, a9, aR = aZ.type.toUpperCase(), a2 = ai.test(aR); aZ.url = aZ.url.replace(aN, ""); aZ.context = a6 && a6.context != null ? a6.context : aZ; if (aZ.data && aZ.processData && typeof aZ.data !== "string") { aZ.data = a.param(aZ.data, aZ.traditional) } if (aZ.dataType === "jsonp") { if (aR === "GET") { if (!n.test(aZ.url)) { aZ.url += (A.test(aZ.url) ? "&" : "?") + (aZ.jsonp || "callback") + "=?" } } else { if (!aZ.data || !n.test(aZ.data)) { aZ.data = (aZ.data ? aZ.data + "&" : "") + (aZ.jsonp || "callback") + "=?" } } aZ.dataType = "json" } if (aZ.dataType === "json" && (aZ.data && n.test(aZ.data) || n.test(aZ.url))) { ba = aZ.jsonpCallback || ("jsonp" + ab++); if (aZ.data) { aZ.data = (aZ.data + "").replace(n, "=" + ba + "$1") } aZ.url = aZ.url.replace(n, "=" + ba + "$1"); aZ.dataType = "script"; var a3 = aC[ba]; aC[ba] = function (bc) { if (a.isFunction(a3)) { a3(bc) } else { aC[ba] = z; try { delete aC[ba] } catch (bb) { } } a9 = bc; a.handleSuccess(aZ, aV, a5, a9); a.handleComplete(aZ, aV, a5, a9); if (aS) { aS.removeChild(a7) } } } if (aZ.dataType === "script" && aZ.cache === null) { aZ.cache = false } if (aZ.cache === false && a2) { var aP = a.now(); var a8 = aZ.url.replace(aO, "$1_=" + aP); aZ.url = a8 + ((a8 === aZ.url) ? (A.test(aZ.url) ? "&" : "?") + "_=" + aP : "") } if (aZ.data && a2) { aZ.url += (A.test(aZ.url) ? "&" : "?") + aZ.data } if (aZ.global && a.active++ === 0) { a.event.trigger("ajaxStart") } var a4 = y.exec(aZ.url), aT = a4 && (a4[1] && a4[1].toLowerCase() !== location.protocol || a4[2].toLowerCase() !== location.host); if (aZ.dataType === "script" && aR === "GET" && aT) { var aS = Y.getElementsByTagName("head")[0] || Y.documentElement; var a7 = Y.createElement("script"); if (aZ.scriptCharset) { a7.charset = aZ.scriptCharset } a7.src = aZ.url; if (!ba) { var a0 = false; a7.onload = a7.onreadystatechange = function () { if (!a0 && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete")) { a0 = true; a.handleSuccess(aZ, aV, a5, a9); a.handleComplete(aZ, aV, a5, a9); a7.onload = a7.onreadystatechange = null; if (aS && a7.parentNode) { aS.removeChild(a7) } } } } aS.insertBefore(a7, aS.firstChild); return z } var aX = false; var aV = aZ.xhr(); if (!aV) { return } if (aZ.username) { aV.open(aR, aZ.url, aZ.async, aZ.username, aZ.password) } else { aV.open(aR, aZ.url, aZ.async) } try { if ((aZ.data != null && !a2) || (a6 && a6.contentType)) { aV.setRequestHeader("Content-Type", aZ.contentType) } if (aZ.ifModified) { if (a.lastModified[aZ.url]) { aV.setRequestHeader("If-Modified-Since", a.lastModified[aZ.url]) } if (a.etag[aZ.url]) { aV.setRequestHeader("If-None-Match", a.etag[aZ.url]) } } if (!aT) { aV.setRequestHeader("X-Requested-With", "XMLHttpRequest") } aV.setRequestHeader("Accept", aZ.dataType && aZ.accepts[aZ.dataType] ? aZ.accepts[aZ.dataType] + ", */*; q=0.01" : aZ.accepts._default) } catch (aW) { } if (aZ.beforeSend && aZ.beforeSend.call(aZ.context, aV, aZ) === false) { if (aZ.global && a.active-- === 1) { a.event.trigger("ajaxStop") } aV.abort(); return false } if (aZ.global) { a.triggerGlobal(aZ, "ajaxSend", [aV, aZ]) } var aY = aV.onreadystatechange = function (bb) { if (!aV || aV.readyState === 0 || bb === "abort") { if (!aX) { a.handleComplete(aZ, aV, a5, a9) } aX = true; if (aV) { aV.onreadystatechange = a.noop } } else { if (!aX && aV && (aV.readyState === 4 || bb === "timeout")) { aX = true; aV.onreadystatechange = a.noop; a5 = bb === "timeout" ? "timeout" : !a.httpSuccess(aV) ? "error" : aZ.ifModified && a.httpNotModified(aV, aZ.url) ? "notmodified" : "success"; var bc; if (a5 === "success") { try { a9 = a.httpData(aV, aZ.dataType, aZ) } catch (bd) { a5 = "parsererror"; bc = bd } } if (a5 === "success" || a5 === "notmodified") { if (!ba) { a.handleSuccess(aZ, aV, a5, a9) } } else { a.handleError(aZ, aV, a5, bc) } if (!ba) { a.handleComplete(aZ, aV, a5, a9) } if (bb === "timeout") { aV.abort() } if (aZ.async) { aV = null } } } }; try { var aQ = aV.abort; aV.abort = function () { if (aV) { Function.prototype.call.call(aQ, aV) } aY("abort") } } catch (a1) { } if (aZ.async && aZ.timeout > 0) { setTimeout(function () { if (aV && !aX) { aY("timeout") } }, aZ.timeout) } try { aV.send(a2 || aZ.data == null ? null : aZ.data) } catch (aU) { a.handleError(aZ, aV, null, aU); a.handleComplete(aZ, aV, a5, a9) } if (!aZ.async) { aY() } return aV }, param: function (aP, aR) { var aQ = [], aT = function (aU, aV) { aV = a.isFunction(aV) ? aV() : aV; aQ[aQ.length] = encodeURIComponent(aU) + "=" + encodeURIComponent(aV) }; if (aR === z) { aR = a.ajaxSettings.traditional } if (a.isArray(aP) || aP.jquery) { a.each(aP, function () { aT(this.name, this.value) }) } else { for (var aS in aP) { o(aS, aP[aS], aR, aT) } } return aQ.join("&").replace(e, "+") } }); function o(aQ, aS, aP, aR) { if (a.isArray(aS) && aS.length) { a.each(aS, function (aU, aT) { if (aP || U.test(aQ)) { aR(aQ, aT) } else { o(aQ + "[" + (typeof aT === "object" || a.isArray(aT) ? aU : "") + "]", aT, aP, aR) } }) } else { if (!aP && aS != null && typeof aS === "object") { if (a.isEmptyObject(aS)) { aR(aQ, "") } else { a.each(aS, function (aU, aT) { o(aQ + "[" + aU + "]", aT, aP, aR) }) } } else { aR(aQ, aS) } } } a.extend({ active: 0, lastModified: {}, etag: {}, handleError: function (aQ, aS, aP, aR) { if (aQ.error) { aQ.error.call(aQ.context, aS, aP, aR) } if (aQ.global) { a.triggerGlobal(aQ, "ajaxError", [aS, aQ, aR]) } }, handleSuccess: function (aQ, aS, aP, aR) { if (aQ.success) { aQ.success.call(aQ.context, aR, aP, aS) } if (aQ.global) { a.triggerGlobal(aQ, "ajaxSuccess", [aS, aQ]) } }, handleComplete: function (aQ, aR, aP) { if (aQ.complete) { aQ.complete.call(aQ.context, aR, aP) } if (aQ.global) { a.triggerGlobal(aQ, "ajaxComplete", [aR, aQ]) } if (aQ.global && a.active-- === 1) { a.event.trigger("ajaxStop") } }, triggerGlobal: function (aR, aQ, aP) { (aR.context && aR.context.url == null ? a(aR.context) : a.event).trigger(aQ, aP) }, httpSuccess: function (aQ) { try { return !aQ.status && location.protocol === "file:" || aQ.status >= 200 && aQ.status < 300 || aQ.status === 304 || aQ.status === 1223 } catch (aP) { } return false }, httpNotModified: function (aS, aP) { var aR = aS.getResponseHeader("Last-Modified"), aQ = aS.getResponseHeader("Etag"); if (aR) { a.lastModified[aP] = aR } if (aQ) { a.etag[aP] = aQ } return aS.status === 304 }, httpData: function (aU, aS, aR) { var aQ = aU.getResponseHeader("content-type") || "", aP = aS === "xml" || !aS && aQ.indexOf("xml") >= 0, aT = aP ? aU.responseXML : aU.responseText; if (aP && aT.documentElement.nodeName === "parsererror") { a.error("parsererror") } if (aR && aR.dataFilter) { aT = aR.dataFilter(aT, aS) } if (typeof aT === "string") { if (aS === "json" || !aS && aQ.indexOf("json") >= 0) { aT = a.parseJSON(aT) } else { if (aS === "script" || !aS && aQ.indexOf("javascript") >= 0) { a.globalEval(aT) } } } return aT } }); if (aC.ActiveXObject) { a.ajaxSettings.xhr = function () { if (aC.location.protocol !== "file:") { try { return new aC.XMLHttpRequest() } catch (aQ) { } } try { return new aC.ActiveXObject("Microsoft.XMLHTTP") } catch (aP) { } } } a.support.ajax = !!a.ajaxSettings.xhr(); var E = {}, aa = /^(?:toggle|show|hide)$/, ak = /^([+\-]=)?([\d+.\-]+)(.*)$/, aw, ae = [["height", "marginTop", "marginBottom", "paddingTop", "paddingBottom"], ["width", "marginLeft", "marginRight", "paddingLeft", "paddingRight"], ["opacity"]]; a.fn.extend({ show: function (aS, aV, aU) { var aR, aT; if (aS || aS === 0) { return this.animate(au("show", 3), aS, aV, aU) } else { for (var aQ = 0, aP = this.length; aQ < aP; aQ++) { aR = this[aQ]; aT = aR.style.display; if (!a.data(aR, "olddisplay") && aT === "none") { aT = aR.style.display = "" } if (aT === "" && a.css(aR, "display") === "none") { a.data(aR, "olddisplay", q(aR.nodeName)) } } for (aQ = 0; aQ < aP; aQ++) { aR = this[aQ]; aT = aR.style.display; if (aT === "" || aT === "none") { aR.style.display = a.data(aR, "olddisplay") || "" } } return this } }, hide: function (aR, aU, aT) { if (aR || aR === 0) { return this.animate(au("hide", 3), aR, aU, aT) } else { for (var aQ = 0, aP = this.length; aQ < aP; aQ++) { var aS = a.css(this[aQ], "display"); if (aS !== "none") { a.data(this[aQ], "olddisplay", aS) } } for (aQ = 0; aQ < aP; aQ++) { this[aQ].style.display = "none" } return this } }, _toggle: a.fn.toggle, toggle: function (aR, aQ, aS) { var aP = typeof aR === "boolean"; if (a.isFunction(aR) && a.isFunction(aQ)) { this._toggle.apply(this, arguments) } else { if (aR == null || aP) { this.each(function () { var aT = aP ? aR : a(this).is(":hidden"); a(this)[aT ? "show" : "hide"]() }) } else { this.animate(au("toggle", 3), aR, aQ, aS) } } return this }, fadeTo: function (aP, aS, aR, aQ) { return this.filter(":hidden").css("opacity", 0).show().end().animate({ opacity: aS }, aP, aR, aQ) }, animate: function (aT, aQ, aS, aR) { var aP = a.speed(aQ, aS, aR); if (a.isEmptyObject(aT)) { return this.each(aP.complete) } return this[aP.queue === false ? "each" : "queue"](function () { var aW = a.extend({}, aP), a0, aX = this.nodeType === 1, aY = aX && a(this).is(":hidden"), aU = this; for (a0 in aT) { var aV = a.camelCase(a0); if (a0 !== aV) { aT[aV] = aT[a0]; delete aT[a0]; a0 = aV } if (aT[a0] === "hide" && aY || aT[a0] === "show" && !aY) { return aW.complete.call(this) } if (aX && (a0 === "height" || a0 === "width")) { aW.overflow = [this.style.overflow, this.style.overflowX, this.style.overflowY]; if (a.css(this, "display") === "inline" && a.css(this, "float") === "none") { if (!a.support.inlineBlockNeedsLayout) { this.style.display = "inline-block" } else { var aZ = q(this.nodeName); if (aZ === "inline") { this.style.display = "inline-block" } else { this.style.display = "inline"; this.style.zoom = 1 } } } } if (a.isArray(aT[a0])) { (aW.specialEasing = aW.specialEasing || {})[a0] = aT[a0][1]; aT[a0] = aT[a0][0] } } if (aW.overflow != null) { this.style.overflow = "hidden" } aW.curAnim = a.extend({}, aT); a.each(aT, function (a2, a6) { var a5 = new a.fx(aU, aW, a2); if (aa.test(a6)) { a5[a6 === "toggle" ? aY ? "show" : "hide" : a6](aT) } else { var a4 = ak.exec(a6), a7 = a5.cur() || 0; if (a4) { var a1 = parseFloat(a4[2]), a3 = a4[3] || "px"; if (a3 !== "px") { a.style(aU, a2, (a1 || 1) + a3); a7 = ((a1 || 1) / a5.cur()) * a7; a.style(aU, a2, a7 + a3) } if (a4[1]) { a1 = ((a4[1] === "-=" ? -1 : 1) * a1) + a7 } a5.custom(a7, a1, a3) } else { a5.custom(a7, a6, "") } } }); return true }) }, stop: function (aQ, aP) { var aR = a.timers; if (aQ) { this.queue([]) } this.each(function () { for (var aS = aR.length - 1; aS >= 0; aS--) { if (aR[aS].elem === this) { if (aP) { aR[aS](true) } aR.splice(aS, 1) } } }); if (!aP) { this.dequeue() } return this } }); function au(aQ, aP) { var aR = {}; a.each(ae.concat.apply([], ae.slice(0, aP)), function () { aR[this] = aQ }); return aR } a.each({ slideDown: au("show", 1), slideUp: au("hide", 1), slideToggle: au("toggle", 1), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" }, fadeToggle: { opacity: "toggle"} }, function (aP, aQ) { a.fn[aP] = function (aR, aT, aS) { return this.animate(aQ, aR, aT, aS) } }); a.extend({ speed: function (aR, aS, aQ) { var aP = aR && typeof aR === "object" ? a.extend({}, aR) : { complete: aQ || !aQ && aS || a.isFunction(aR) && aR, duration: aR, easing: aQ && aS || aS && !a.isFunction(aS) && aS }; aP.duration = a.fx.off ? 0 : typeof aP.duration === "number" ? aP.duration : aP.duration in a.fx.speeds ? a.fx.speeds[aP.duration] : a.fx.speeds._default; aP.old = aP.complete; aP.complete = function () { if (aP.queue !== false) { a(this).dequeue() } if (a.isFunction(aP.old)) { aP.old.call(this) } }; return aP }, easing: { linear: function (aR, aS, aP, aQ) { return aP + aQ * aR }, swing: function (aR, aS, aP, aQ) { return ((-Math.cos(aR * Math.PI) / 2) + 0.5) * aQ + aP } }, timers: [], fx: function (aQ, aP, aR) { this.options = aP; this.elem = aQ; this.prop = aR; if (!aP.orig) { aP.orig = {} } } }); a.fx.prototype = { update: function () { if (this.options.step) { this.options.step.call(this.elem, this.now, this) } (a.fx.step[this.prop] || a.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 aP = parseFloat(a.css(this.elem, this.prop)); return aP && aP > -10000 ? aP : 0 }, custom: function (aU, aT, aS) { var aP = this, aR = a.fx; this.startTime = a.now(); this.start = aU; this.end = aT; this.unit = aS || this.unit || "px"; this.now = this.start; this.pos = this.state = 0; function aQ(aV) { return aP.step(aV) } aQ.elem = this.elem; if (aQ() && a.timers.push(aQ) && !aw) { aw = setInterval(aR.tick, aR.interval) } }, show: function () { this.options.orig[this.prop] = a.style(this.elem, this.prop); this.options.show = true; this.custom(this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur()); a(this.elem).show() }, hide: function () { this.options.orig[this.prop] = a.style(this.elem, this.prop); this.options.hide = true; this.custom(this.cur(), 0) }, step: function (aS) { var aX = a.now(), aT = true; if (aS || aX >= this.options.duration + this.startTime) { this.now = this.end; this.pos = this.state = 1; this.update(); this.options.curAnim[this.prop] = true; for (var aU in this.options.curAnim) { if (this.options.curAnim[aU] !== true) { aT = false } } if (aT) { if (this.options.overflow != null && !a.support.shrinkWrapBlocks) { var aR = this.elem, aY = this.options; a.each(["", "X", "Y"], function (aZ, a0) { aR.style["overflow" + a0] = aY.overflow[aZ] }) } if (this.options.hide) { a(this.elem).hide() } if (this.options.hide || this.options.show) { for (var aP in this.options.curAnim) { a.style(this.elem, aP, this.options.orig[aP]) } } this.options.complete.call(this.elem) } return false } else { var aQ = aX - this.startTime; this.state = aQ / this.options.duration; var aV = this.options.specialEasing && this.options.specialEasing[this.prop]; var aW = this.options.easing || (a.easing.swing ? "swing" : "linear"); this.pos = a.easing[aV || aW](this.state, aQ, 0, 1, this.options.duration); this.now = this.start + ((this.end - this.start) * this.pos); this.update() } return true } }; a.extend(a.fx, { tick: function () { var aQ = a.timers; for (var aP = 0; aP < aQ.length; aP++) { if (!aQ[aP]()) { aQ.splice(aP--, 1) } } if (!aQ.length) { a.fx.stop() } }, interval: 13, stop: function () { clearInterval(aw); aw = null }, speeds: { slow: 600, fast: 200, _default: 400 }, step: { opacity: function (aP) { a.style(aP.elem, "opacity", aP.now) }, _default: function (aP) { if (aP.elem.style && aP.elem.style[aP.prop] != null) { aP.elem.style[aP.prop] = (aP.prop === "width" || aP.prop === "height" ? Math.max(0, aP.now) : aP.now) + aP.unit } else { aP.elem[aP.prop] = aP.now } } } }); if (a.expr && a.expr.filters) { a.expr.filters.animated = function (aP) { return a.grep(a.timers, function (aQ) { return aP === aQ.elem }).length } } function q(aR) { if (!E[aR]) { var aP = a("<" + aR + ">").appendTo("body"), aQ = aP.css("display"); aP.remove(); if (aQ === "none" || aQ === "") { aQ = "block" } E[aR] = aQ } return E[aR] } var I = /^t(?:able|d|h)$/i, N = /^(?:body|html)$/i; if ("getBoundingClientRect" in Y.documentElement) { a.fn.offset = function (a2) { var aS = this[0], aV; if (a2) { return this.each(function (a3) { a.offset.setOffset(this, a2, a3) }) } if (!aS || !aS.ownerDocument) { return null } if (aS === aS.ownerDocument.body) { return a.offset.bodyOffset(aS) } try { aV = aS.getBoundingClientRect() } catch (aZ) { } var a1 = aS.ownerDocument, aQ = a1.documentElement; if (!aV || !a.contains(aQ, aS)) { return aV || { top: 0, left: 0} } var aW = a1.body, aX = ag(a1), aU = aQ.clientTop || aW.clientTop || 0, aY = aQ.clientLeft || aW.clientLeft || 0, aP = (aX.pageYOffset || a.support.boxModel && aQ.scrollTop || aW.scrollTop), aT = (aX.pageXOffset || a.support.boxModel && aQ.scrollLeft || aW.scrollLeft), a0 = aV.top + aP - aU, aR = aV.left + aT - aY; return { top: a0, left: aR} } } else { a.fn.offset = function (a0) { var aU = this[0]; if (a0) { return this.each(function (a1) { a.offset.setOffset(this, a0, a1) }) } if (!aU || !aU.ownerDocument) { return null } if (aU === aU.ownerDocument.body) { return a.offset.bodyOffset(aU) } a.offset.initialize(); var aX, aR = aU.offsetParent, aQ = aU, aZ = aU.ownerDocument, aS = aZ.documentElement, aV = aZ.body, aW = aZ.defaultView, aP = aW ? aW.getComputedStyle(aU, null) : aU.currentStyle, aY = aU.offsetTop, aT = aU.offsetLeft; while ((aU = aU.parentNode) && aU !== aV && aU !== aS) { if (a.offset.supportsFixedPosition && aP.position === "fixed") { break } aX = aW ? aW.getComputedStyle(aU, null) : aU.currentStyle; aY -= aU.scrollTop; aT -= aU.scrollLeft; if (aU === aR) { aY += aU.offsetTop; aT += aU.offsetLeft; if (a.offset.doesNotAddBorder && !(a.offset.doesAddBorderForTableAndCells && I.test(aU.nodeName))) { aY += parseFloat(aX.borderTopWidth) || 0; aT += parseFloat(aX.borderLeftWidth) || 0 } aQ = aR; aR = aU.offsetParent } if (a.offset.subtractsBorderForOverflowNotVisible && aX.overflow !== "visible") { aY += parseFloat(aX.borderTopWidth) || 0; aT += parseFloat(aX.borderLeftWidth) || 0 } aP = aX } if (aP.position === "relative" || aP.position === "static") { aY += aV.offsetTop; aT += aV.offsetLeft } if (a.offset.supportsFixedPosition && aP.position === "fixed") { aY += Math.max(aS.scrollTop, aV.scrollTop); aT += Math.max(aS.scrollLeft, aV.scrollLeft) } return { top: aY, left: aT} } } a.offset = { initialize: function () { var aP = Y.body, aQ = Y.createElement("div"), aT, aV, aU, aW, aR = parseFloat(a.css(aP, "marginTop")) || 0, aS = "<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.extend(aQ.style, { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" }); aQ.innerHTML = aS; aP.insertBefore(aQ, aP.firstChild); aT = aQ.firstChild; aV = aT.firstChild; aW = aT.nextSibling.firstChild.firstChild; this.doesNotAddBorder = (aV.offsetTop !== 5); this.doesAddBorderForTableAndCells = (aW.offsetTop === 5); aV.style.position = "fixed"; aV.style.top = "20px"; this.supportsFixedPosition = (aV.offsetTop === 20 || aV.offsetTop === 15); aV.style.position = aV.style.top = ""; aT.style.overflow = "hidden"; aT.style.position = "relative"; this.subtractsBorderForOverflowNotVisible = (aV.offsetTop === -5); this.doesNotIncludeMarginInBodyOffset = (aP.offsetTop !== aR); aP.removeChild(aQ); aP = aQ = aT = aV = aU = aW = null; a.offset.initialize = a.noop }, bodyOffset: function (aP) { var aR = aP.offsetTop, aQ = aP.offsetLeft; a.offset.initialize(); if (a.offset.doesNotIncludeMarginInBodyOffset) { aR += parseFloat(a.css(aP, "marginTop")) || 0; aQ += parseFloat(a.css(aP, "marginLeft")) || 0 } return { top: aR, left: aQ} }, setOffset: function (aS, a1, aV) { var aW = a.css(aS, "position"); if (aW === "static") { aS.style.position = "relative" } var aU = a(aS), aQ = aU.offset(), aP = a.css(aS, "top"), aZ = a.css(aS, "left"), a0 = (aW === "absolute" && a.inArray("auto", [aP, aZ]) > -1), aY = {}, aX = {}, aR, aT; if (a0) { aX = aU.position() } aR = a0 ? aX.top : parseInt(aP, 10) || 0; aT = a0 ? aX.left : parseInt(aZ, 10) || 0; if (a.isFunction(a1)) { a1 = a1.call(aS, aV, aQ) } if (a1.top != null) { aY.top = (a1.top - aQ.top) + aR } if (a1.left != null) { aY.left = (a1.left - aQ.left) + aT } if ("using" in a1) { a1.using.call(aS, aY) } else { aU.css(aY) } } }; a.fn.extend({ position: function () { if (!this[0]) { return null } var aR = this[0], aQ = this.offsetParent(), aS = this.offset(), aP = N.test(aQ[0].nodeName) ? { top: 0, left: 0} : aQ.offset(); aS.top -= parseFloat(a.css(aR, "marginTop")) || 0; aS.left -= parseFloat(a.css(aR, "marginLeft")) || 0; aP.top += parseFloat(a.css(aQ[0], "borderTopWidth")) || 0; aP.left += parseFloat(a.css(aQ[0], "borderLeftWidth")) || 0; return { top: aS.top - aP.top, left: aS.left - aP.left} }, offsetParent: function () { return this.map(function () { var aP = this.offsetParent || Y.body; while (aP && (!N.test(aP.nodeName) && a.css(aP, "position") === "static")) { aP = aP.offsetParent } return aP }) } }); a.each(["Left", "Top"], function (aQ, aP) { var aR = "scroll" + aP; a.fn[aR] = function (aU) { var aS = this[0], aT; if (!aS) { return null } if (aU !== z) { return this.each(function () { aT = ag(this); if (aT) { aT.scrollTo(!aQ ? aU : a(aT).scrollLeft(), aQ ? aU : a(aT).scrollTop()) } else { this[aR] = aU } }) } else { aT = ag(aS); return aT ? ("pageXOffset" in aT) ? aT[aQ ? "pageYOffset" : "pageXOffset"] : a.support.boxModel && aT.document.documentElement[aR] || aT.document.body[aR] : aS[aR] } } }); function ag(aP) { return a.isWindow(aP) ? aP : aP.nodeType === 9 ? aP.defaultView || aP.parentWindow : false } a.each(["Height", "Width"], function (aQ, aP) { var aR = aP.toLowerCase(); a.fn["inner" + aP] = function () { return this[0] ? parseFloat(a.css(this[0], aR, "padding")) : null }; a.fn["outer" + aP] = function (aS) { return this[0] ? parseFloat(a.css(this[0], aR, aS ? "margin" : "border")) : null }; a.fn[aR] = function (aT) { var aU = this[0]; if (!aU) { return aT == null ? null : this } if (a.isFunction(aT)) { return this.each(function (aX) { var aW = a(this); aW[aR](aT.call(this, aX, aW[aR]())) }) } if (a.isWindow(aU)) { return aU.document.compatMode === "CSS1Compat" && aU.document.documentElement["client" + aP] || aU.document.body["client" + aP] } else { if (aU.nodeType === 9) { return Math.max(aU.documentElement["client" + aP], aU.body["scroll" + aP], aU.documentElement["scroll" + aP], aU.body["offset" + aP], aU.documentElement["offset" + aP]) } else { if (aT === z) { var aV = a.css(aU, aR), aS = parseFloat(aV); return a.isNaN(aS) ? aV : aS } else { return this.css(aR, typeof aT === "string" ? aT : aT + "px") } } } } }) })(window);
// prettyPhoto
(function (a) { a.prettyPhoto = { version: "3.0" }; a.fn.prettyPhoto = function (d) { d = jQuery.extend({ animation_speed: "fast", slideshow: false, autoplay_slideshow: false, for_friskies_pix: false, opacity: 0.8, show_title: true, allow_resize: true, default_width: 500, default_height: 344, counter_separator_label: "/", theme: "facebook", hideflash: false, wmode: "opaque", autoplay: true, modal: false, overlay_gallery: true, keyboard_shortcuts: true, changepicturecallback: function () { }, callback: function () { }, markup: '<div class="pp_pic_holder">       <div class="pp_top">        <div class="pp_left"></div>        <div class="pp_middle"></div>        <div class="pp_right"></div>       </div>       <div class="pp_content_container">        <div class="pp_left">        <div class="pp_right">         <div class="pp_content">         <div class="ppt">&nbsp;</div>         <div class="ppd">&nbsp;</div>          <a class="pp_close" href="#">Close</a>          <div class="pp_loaderIcon"></div>          <div class="pp_fade">           <a href="#" class="pp_expand" title="Expand the image">Expand</a>           <div class="pp_hoverContainer">            <a class="pp_next" href="#">next</a>            <a class="pp_previous" href="#">previous</a>           </div>           <div id="pp_full_res"></div>          <div class="pp_details clearfix">          </div>          </div>         </div>        </div>        </div>       </div>       <div class="pp_bottom">        <div class="pp_left"></div>        <div class="pp_middle"></div>        <div class="pp_right"></div>       </div>      </div>      <div class="pp_overlay"></div>', gallery_markup: "", image_markup: '<img id="fullResImage" src="" />', flash_markup: '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>', quicktime_markup: '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>', iframe_markup: '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>', inline_markup: '<div class="pp_inline clearfix">{content}</div>', custom_markup: "" }, d); var i = this, h = false, s, m, n, o, r, u, e = a(window).height(), x = a(window).width(), f; doresize = true, scroll_pos = v(); a(window).unbind("resize").resize(function () { l(); q() }); if (d.keyboard_shortcuts) { a(document).unbind("keydown").keydown(function (y) { if (typeof $pp_pic_holder != "undefined") { if ($pp_pic_holder.is(":visible")) { switch (y.keyCode) { case 37: a.prettyPhoto.changePage("previous"); break; case 39: a.prettyPhoto.changePage("next"); break; case 27: if (!settings.modal) { a.prettyPhoto.close() } break } return false } } }) } a.prettyPhoto.initialize = function () { settings = d; if (a.browser.msie && parseInt(a.browser.version) == 6) { settings.theme = "light_square" } t(this); if (settings.allow_resize) { a(window).scroll(function () { l() }) } l(); set_position = jQuery.inArray(a(this).attr("href"), pp_images); a.prettyPhoto.open(); return false }; a.prettyPhoto.open = function (y) { if (typeof settings == "undefined") { settings = d; if (a.browser.msie && a.browser.version == 6) { settings.theme = "light_square" } t(y.target); pp_images = a.makeArray(arguments[0]); pp_titles = (arguments[1]) ? a.makeArray(arguments[1]) : a.makeArray(""); pp_descriptions = (arguments[2]) ? a.makeArray(arguments[2]) : a.makeArray(""); isSet = (pp_images.length > 1) ? true : false; set_position = 0 } if (a.browser.msie && a.browser.version == 6) { a("select").css("visibility", "hidden") } if (settings.hideflash) { a("object,embed").css("visibility", "hidden") } g(a(pp_images).size()); a(".pp_loaderIcon").show(); if ($ppt.is(":hidden")) { $ppt.css("opacity", 0).show() } $pp_overlay.show().fadeTo(settings.animation_speed, settings.opacity); $pp_pic_holder.find(".currentTextHolder").text((set_position + 1) + settings.counter_separator_label + a(pp_images).size()); $pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])); (settings.show_title && pp_titles[set_position] != "" && typeof pp_titles[set_position] != "undefined") ? $ppt.html(unescape(pp_titles[set_position])) : $ppt.html("&nbsp;"); movie_width = (parseFloat(b("width", pp_images[set_position]))) ? b("width", pp_images[set_position]) : settings.default_width.toString(); movie_height = (parseFloat(b("height", pp_images[set_position]))) ? b("height", pp_images[set_position]) : settings.default_height.toString(); if (movie_width.indexOf("%") != -1 || movie_height.indexOf("%") != -1) { movie_height = parseFloat((a(window).height() * parseFloat(movie_height) / 100) - 150); movie_width = parseFloat((a(window).width() * parseFloat(movie_width) / 100) - 150); h = true } else { h = false } $pp_pic_holder.fadeIn(function () { imgPreloader = ""; switch (w(pp_images[set_position])) { case "image": imgPreloader = new Image(); nextImage = new Image(); if (isSet && set_position > a(pp_images).size()) { nextImage.src = pp_images[set_position + 1] } prevImage = new Image(); if (isSet && pp_images[set_position - 1]) { prevImage.src = pp_images[set_position - 1] } $pp_pic_holder.find("#pp_full_res")[0].innerHTML = settings.image_markup; $pp_pic_holder.find("#fullResImage").attr("src", pp_images[set_position]); imgPreloader.onload = function () { s = k(imgPreloader.width, imgPreloader.height); _showContent() }; imgPreloader.onerror = function () { alert("Image cannot be loaded. Make sure the path is correct and image exist."); a.prettyPhoto.close() }; imgPreloader.src = pp_images[set_position]; break; case "youtube": s = k(movie_width, movie_height); movie = "http://www.youtube.com/v/" + b("v", pp_images[set_position]); if (settings.autoplay) { movie += "&autoplay=1" } toInject = settings.flash_markup.replace(/{width}/g, s.width).replace(/{height}/g, s.height).replace(/{wmode}/g, settings.wmode).replace(/{path}/g, movie); break; case "vimeo": s = k(movie_width, movie_height); movie_id = pp_images[set_position]; var A = /http:\/\/(www\.)?vimeo.com\/(\d+)/; var z = movie_id.match(A); movie = "http://player.vimeo.com/video/" + z[2] + "?title=0&amp;byline=0&amp;portrait=0"; if (settings.autoplay) { movie += "&autoplay=1;" } vimeo_width = s.width + "/embed/?moog_width=" + s.width; toInject = settings.iframe_markup.replace(/{width}/g, vimeo_width).replace(/{height}/g, s.height).replace(/{path}/g, movie); break; case "quicktime": s = k(movie_width, movie_height); s.height += 15; s.contentHeight += 15; s.containerHeight += 15; toInject = settings.quicktime_markup.replace(/{width}/g, s.width).replace(/{height}/g, s.height).replace(/{wmode}/g, settings.wmode).replace(/{path}/g, pp_images[set_position]).replace(/{autoplay}/g, settings.autoplay); break; case "flash": s = k(movie_width, movie_height); flash_vars = pp_images[set_position]; flash_vars = flash_vars.substring(pp_images[set_position].indexOf("flashvars") + 10, pp_images[set_position].length); filename = pp_images[set_position]; filename = filename.substring(0, filename.indexOf("?")); toInject = settings.flash_markup.replace(/{width}/g, s.width).replace(/{height}/g, s.height).replace(/{wmode}/g, settings.wmode).replace(/{path}/g, filename + "?" + flash_vars); break; case "iframe": s = k(movie_width, movie_height); frame_url = pp_images[set_position]; frame_url = frame_url.substr(0, frame_url.indexOf("iframe") - 1); toInject = settings.iframe_markup.replace(/{width}/g, s.width).replace(/{height}/g, s.height).replace(/{path}/g, frame_url); break; case "custom": s = k(movie_width, movie_height); toInject = settings.custom_markup; break; case "inline": myClone = a(pp_images[set_position]).clone().css({ width: settings.default_width }).wrapInner('<div id="pp_full_res"><div class="pp_inline clearfix"></div></div>').appendTo(a("body")); s = k(a(myClone).width(), a(myClone).height()); a(myClone).remove(); toInject = settings.inline_markup.replace(/{content}/g, a(pp_images[set_position]).html()); break } if (!imgPreloader) { $pp_pic_holder.find("#pp_full_res")[0].innerHTML = toInject; _showContent() } }); return false }; a.prettyPhoto.changePage = function (y) { currentGalleryPage = 0; if (y == "previous") { set_position--; if (set_position < 0) { set_position = 0; return } } else { if (y == "next") { set_position++; if (set_position > a(pp_images).size() - 1) { set_position = 0 } } else { set_position = y } } if (!doresize) { doresize = true } a(".pp_contract").removeClass("pp_contract").addClass("pp_expand"); j(function () { a.prettyPhoto.open() }) }; a.prettyPhoto.changeGalleryPage = function (y) { if (y == "next") { currentGalleryPage++; if (currentGalleryPage > totalPage) { currentGalleryPage = 0 } } else { if (y == "previous") { currentGalleryPage--; if (currentGalleryPage < 0) { currentGalleryPage = totalPage } } else { currentGalleryPage = y } } itemsToSlide = (currentGalleryPage == totalPage) ? pp_images.length - ((totalPage) * itemsPerPage) : itemsPerPage; $pp_pic_holder.find(".pp_gallery li").each(function (z) { a(this).animate({ left: (z * itemWidth) - ((itemsToSlide * itemWidth) * currentGalleryPage) }) }) }; a.prettyPhoto.startSlideshow = function () { if (typeof f == "undefined") { $pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function () { a.prettyPhoto.stopSlideshow(); return false }); f = setInterval(a.prettyPhoto.startSlideshow, settings.slideshow) } else { a.prettyPhoto.changePage("next") } }; a.prettyPhoto.stopSlideshow = function () { $pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function () { a.prettyPhoto.startSlideshow(); return false }); clearInterval(f); f = undefined }; a.prettyPhoto.close = function () { clearInterval(f); $pp_pic_holder.stop().find("object,embed").css("visibility", "hidden"); a("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed, function () { a(this).remove() }); $pp_overlay.fadeOut(settings.animation_speed, function () { if (a.browser.msie && a.browser.version == 6) { a("select").css("visibility", "visible") } if (settings.hideflash) { a("object,embed").css("visibility", "visible") } a(this).remove(); a(window).unbind("scroll"); settings.callback(); doresize = true; m = false; delete settings }) }; _showContent = function () { a(".pp_loaderIcon").hide(); $ppt.fadeTo(settings.animation_speed, 1); projectedTop = scroll_pos.scrollTop + ((e / 2) - (s.containerHeight / 2)); if (projectedTop < 0) { projectedTop = 0 } $pp_pic_holder.find(".pp_content").animate({ height: s.contentHeight }, settings.animation_speed); $pp_pic_holder.animate({ top: projectedTop, left: (x / 2) - (s.containerWidth / 2), width: s.containerWidth }, settings.animation_speed, function () { $pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(s.height).width(s.width); $pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed); if (isSet && w(pp_images[set_position]) == "image") { $pp_pic_holder.find(".pp_hoverContainer").show() } else { $pp_pic_holder.find(".pp_hoverContainer").hide() } if (s.resized) { a("a.pp_expand,a.pp_contract").fadeIn(settings.animation_speed) } if (settings.autoplay_slideshow && !f && !m) { a.prettyPhoto.startSlideshow() } settings.changepicturecallback(); m = true }); c() }; function j(y) { $pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility", "hidden"); $pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed, function () { a(".pp_loaderIcon").show(); y() }) } function g(y) { if (set_position == y - 1) { $pp_pic_holder.find("a.pp_next").css("visibility", "hidden"); $pp_pic_holder.find("a.pp_next").addClass("disabled").unbind("click") } else { $pp_pic_holder.find("a.pp_next").css("visibility", "visible"); $pp_pic_holder.find("a.pp_next.disabled").removeClass("disabled").bind("click", function () { a.prettyPhoto.changePage("next"); return false }) } if (set_position == 0) { $pp_pic_holder.find("a.pp_previous").css("visibility", "hidden").addClass("disabled").unbind("click") } else { $pp_pic_holder.find("a.pp_previous.disabled").css("visibility", "visible").removeClass("disabled").bind("click", function () { a.prettyPhoto.changePage("previous"); return false }) } (y > 1) ? a(".pp_nav").show() : a(".pp_nav").hide() } function k(z, y) { resized = false; p(z, y); imageWidth = z, imageHeight = y; if (((u > x) || (r > e)) && doresize && settings.allow_resize && !h) { resized = true, fitting = false; while (!fitting) { if ((u > x)) { imageWidth = (x - 200); imageHeight = (y / z) * imageWidth } else { if ((r > e)) { imageHeight = (e - 200); imageWidth = (z / y) * imageHeight } else { fitting = true } } r = imageHeight, u = imageWidth } p(imageWidth, imageHeight) } return { width: Math.floor(imageWidth), height: Math.floor(imageHeight), containerHeight: Math.floor(r), containerWidth: Math.floor(u) + 40, contentHeight: Math.floor(n), contentWidth: Math.floor(o), resized: resized} } function p(z, y) { z = parseFloat(z); y = parseFloat(y); $pp_details = $pp_pic_holder.find(".pp_details"); if (settings.theme != "light_square") { $pp_details.html('<a class="note" href="' + pp_images[set_position] + '" target="_blank">LINK TO THIS IMAGE</a><br/><br/>') } $pp_details.width(z); detailsHeight = parseFloat($pp_details.css("marginTop")) + parseFloat($pp_details.css("marginBottom")); $pp_details = $pp_details.clone().appendTo(a("body")).css({ position: "absolute", top: -10000 }); detailsHeight += $pp_details.height(); detailsHeight = (detailsHeight <= 34) ? 36 : detailsHeight; if (a.browser.msie && a.browser.version == 7) { detailsHeight += 8 } $pp_details.remove(); n = y + detailsHeight; o = z; r = n + $ppt.height() + $pp_pic_holder.find(".pp_top").height() + $pp_pic_holder.find(".pp_bottom").height(); u = z } function w(y) { if (y.match(/youtube\.com\/watch/i)) { return "youtube" } else { if (y.match(/vimeo\.com/i)) { return "vimeo" } else { if (y.indexOf(".mov") != -1) { return "quicktime" } else { if (y.indexOf(".swf") != -1) { return "flash" } else { if (y.indexOf("iframe") != -1) { return "iframe" } else { if (y.indexOf("custom") != -1) { return "custom" } else { if (y.substr(0, 1) == "#") { return "inline" } else { return "image" } } } } } } } } function l() { if (doresize && typeof $pp_pic_holder != "undefined") { scroll_pos = v(); titleHeight = $ppt.height(), contentHeight = $pp_pic_holder.height(), contentwidth = $pp_pic_holder.width(); projectedTop = (e / 2) + scroll_pos.scrollTop - (contentHeight / 2); $pp_pic_holder.css({ top: projectedTop, left: (x / 2) + scroll_pos.scrollLeft - (contentwidth / 2) }) } } function v() { if (self.pageYOffset) { return { scrollTop: self.pageYOffset, scrollLeft: self.pageXOffset} } else { if (document.documentElement && document.documentElement.scrollTop) { return { scrollTop: document.documentElement.scrollTop, scrollLeft: document.documentElement.scrollLeft} } else { if (document.body) { return { scrollTop: document.body.scrollTop, scrollLeft: document.body.scrollLeft} } } } } function q() { e = a(window).height(), x = a(window).width(); if (typeof $pp_overlay != "undefined") { $pp_overlay.height(a(document).height()) } } function c() { if (isSet && settings.overlay_gallery && w(pp_images[set_position]) == "image") { itemWidth = 52 + 5; navWidth = (settings.theme == "facebook") ? 58 : 38; itemsPerPage = Math.floor((s.containerWidth - 100 - navWidth) / itemWidth); itemsPerPage = (itemsPerPage < pp_images.length) ? itemsPerPage : pp_images.length; totalPage = Math.ceil(pp_images.length / itemsPerPage) - 1; if (totalPage == 0) { navWidth = 0; $pp_pic_holder.find(".pp_gallery .pp_arrow_next,.pp_gallery .pp_arrow_previous").hide() } else { $pp_pic_holder.find(".pp_gallery .pp_arrow_next,.pp_gallery .pp_arrow_previous").show() } galleryWidth = itemsPerPage * itemWidth + navWidth; $pp_pic_holder.find(".pp_gallery").width(galleryWidth).css("margin-left", -(galleryWidth / 2)); $pp_pic_holder.find(".pp_gallery ul").width(itemsPerPage * itemWidth).find("li.selected").removeClass("selected"); goToPage = (Math.floor(set_position / itemsPerPage) <= totalPage) ? Math.floor(set_position / itemsPerPage) : totalPage; if (itemsPerPage) { $pp_pic_holder.find(".pp_gallery").hide().show().removeClass("disabled") } else { $pp_pic_holder.find(".pp_gallery").hide().addClass("disabled") } a.prettyPhoto.changeGalleryPage(goToPage); $pp_pic_holder.find(".pp_gallery ul li:eq(" + set_position + ")").addClass("selected") } else { $pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave"); $pp_pic_holder.find(".pp_gallery").hide() } } function t(y) { theRel = a(y).attr("rel"); galleryRegExp = /\[(?:.*)\]/; isSet = (galleryRegExp.exec(theRel)) ? true : false; pp_images = (isSet) ? jQuery.map(i, function (D, C) { if (a(D).attr("rel").indexOf(theRel) != -1) { return a(D).attr("href") } }) : a.makeArray(a(y).attr("href")); pp_titles = (isSet) ? jQuery.map(i, function (D, C) { if (a(D).attr("rel").indexOf(theRel) != -1) { return (a(D).find("img").attr("alt")) ? a(D).find("img").attr("alt") : "" } }) : a.makeArray(a(y).find("img").attr("alt")); pp_descriptions = (isSet) ? jQuery.map(i, function (D, C) { if (a(D).attr("rel").indexOf(theRel) != -1) { return (a(D).attr("title")) ? a(D).attr("title") : "" } }) : a.makeArray(a(y).attr("title")); a("body").append(settings.markup); $pp_pic_holder = a(".pp_pic_holder"), $ppt = a(".ppt"), $pp_overlay = a("div.pp_overlay"); if (isSet && settings.overlay_gallery) { currentGalleryPage = 0; toInject = ""; for (var A = 0; A < pp_images.length; A++) { var B = new RegExp("(.*?).(jpg|jpeg|png|gif)$"); var z = B.exec(pp_images[A]); if (!z) { classname = "default" } else { classname = "" } toInject += "<li class='" + classname + "'><a href='#'><img src='" + pp_images[A] + "' width='50' alt='' /></a></li>" } toInject = settings.gallery_markup.replace(/{gallery}/g, toInject); $pp_pic_holder.find("#pp_full_res").after(toInject); $pp_pic_holder.find(".pp_gallery .pp_arrow_next").click(function () { a.prettyPhoto.changeGalleryPage("next"); a.prettyPhoto.stopSlideshow(); return false }); $pp_pic_holder.find(".pp_gallery .pp_arrow_previous").click(function () { a.prettyPhoto.changeGalleryPage("previous"); a.prettyPhoto.stopSlideshow(); return false }); $pp_pic_holder.find(".pp_content").hover(function () { $pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn() }, function () { $pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut() }); itemWidth = 52 + 5; $pp_pic_holder.find(".pp_gallery ul li").each(function (C) { a(this).css({ position: "absolute", left: C * itemWidth }); a(this).find("a").unbind("click").click(function () { a.prettyPhoto.changePage(C); a.prettyPhoto.stopSlideshow(); return false }) }) } if (settings.slideshow) { $pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>'); $pp_pic_holder.find(".pp_nav .pp_play").click(function () { a.prettyPhoto.startSlideshow(); return false }) } $pp_pic_holder.attr("class", "pp_pic_holder " + settings.theme); $pp_overlay.css({ opacity: 0, height: a(document).height(), width: a(document).width() }).bind("click", function () { if (!settings.modal) { a.prettyPhoto.close() } }); a("a.pp_close").bind("click", function () { a.prettyPhoto.close(); return false }); a("a.pp_expand").bind("click", function (C) { if (a(this).hasClass("pp_expand")) { a(this).removeClass("pp_expand").addClass("pp_contract"); doresize = false } else { a(this).removeClass("pp_contract").addClass("pp_expand"); doresize = true } j(function () { a.prettyPhoto.open() }); return false }); $pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click", function () { a.prettyPhoto.changePage("previous"); a.prettyPhoto.stopSlideshow(); return false }); $pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click", function () { a.prettyPhoto.changePage("next"); a.prettyPhoto.stopSlideshow(); return false }); l() } return this.unbind("click").click(a.prettyPhoto.initialize) }; function b(e, d) { e = e.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var c = "[\\?&]" + e + "=([^&#]*)"; var g = new RegExp(c); var f = g.exec(d); return (f == null) ? "" : f[1] } })(jQuery);
// css-transform
(function (b) { function c(e) { var d = ["transform", "WebkitTransform", "MozTransform", "msTransform", "OTransform"]; var f; while (f = d.shift()) { if (typeof e.style[f] != "undefined") { return f } } return "transform" } var a = b.fn.css; b.fn.css = function (d, e) { if (typeof b.props.transform == "undefined" && (d == "transform" || (typeof d == "object" && typeof d.transform != "undefined"))) { b.props.transform = c(this.get(0)) } if (b.props.transform != "transform") { if (d == "transform") { d = b.props.transform; if (typeof e == "undefined" && jQuery.style) { return jQuery.style(this.get(0), d) } } else { if (typeof d == "object" && typeof d.transform != "undefined") { d[b.props.transform] = d.transform; delete d.transform } } } return a.apply(this, arguments) } })(jQuery);
// animate-css-rotate-scale
(function(d){var c="deg";d.fn.rotate=function(g){var f=d(this).css("transform")||"none";if(typeof g=="undefined"){if(f){var e=f.match(/rotate\(([^)]+)\)/);if(e&&e[1]){return e[1]}}return 0}var e=g.toString().match(/^(-?\d+(\.\d+)?)(.+)?$/);if(e){if(e[3]){c=e[3]}d(this).css("transform",f.replace(/none|rotate\([^)]*\)/,"")+"rotate("+e[1]+c+")")}return this};d.fn.scale=function(i,h,f){var g=d(this).css("transform");if(typeof i=="undefined"){if(g){var e=g.match(/scale\(([^)]+)\)/);if(e&&e[1]){return e[1]}}return 1}d(this).css("transform",g.replace(/none|scale\([^)]*\)/,"")+"scale("+i+")");return this};var b=d.fx.prototype.cur;d.fx.prototype.cur=function(){if(this.prop=="rotate"){return parseFloat(d(this.elem).rotate())}else{if(this.prop=="scale"){return parseFloat(d(this.elem).scale())}}return b.apply(this,arguments)};d.fx.step.rotate=function(e){d(e.elem).rotate(e.now+c)};d.fx.step.scale=function(e){d(e.elem).scale(e.now)};var a=d.fn.animate;d.fn.animate=function(f){if(typeof f.rotate!="undefined"){var e=f.rotate.toString().match(/^(([+-]=)?(-?\d+(\.\d+)?))(.+)?$/);if(e&&e[5]){c=e[5]}f.rotate=e[1]}return a.apply(this,arguments)}})(jQuery);
