function getCookies(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),r=0;r0&&t-1 in e))}p.fn=p.prototype={jquery:f,constructor:p,selector:"",length:0,toArray:function(){return r.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:r.call(this)},pushStack:function(e){var t=p.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return p.each(this,e,t)},map:function(e){return this.pushStack(p.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:i,sort:n.sort,splice:n.splice},p.extend=p.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||p.isFunction(a)||(a={}),s===l&&(a=this,s--);l>s;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(c&&r&&(p.isPlainObject(r)||(o=p.isArray(r)))?(o?(o=!1,i=n&&p.isArray(n)?n:[]):i=n&&p.isPlainObject(n)?n:{},a[t]=p.extend(c,i,r)):void 0!==r&&(a[t]=r));return a},p.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===p.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!p.isArray(e)&&e-parseFloat(e)>=0},isPlainObject:function(e){return"object"===p.type(e)&&!e.nodeType&&!p.isWindow(e)&&!(e.constructor&&!c.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?s[l.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=p.trim(e))&&(1===e.indexOf("use strict")?((t=d.createElement("script")).text=e,d.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(m,"ms-").replace(g,v)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r=0,o=e.length,i=y(e);if(n){if(i)for(;o>r&&!1!==t.apply(e[r],n);r++);else for(r in e)if(!1===t.apply(e[r],n))break}else if(i)for(;o>r&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(h,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(y(Object(e))?p.merge(n,"string"==typeof e?[e]:e):i.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:a.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;n>r;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;i>o;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,i=0,a=e.length,s=[];if(y(e))for(;a>i;i++)null!=(r=t(e[i],i,n))&&s.push(r);else for(i in e)null!=(r=t(e[i],i,n))&&s.push(r);return o.apply([],s)},guid:1,proxy:function(e,t){var n,o,i;return"string"==typeof t&&(n=e[t],t=e,e=n),p.isFunction(e)?(o=r.call(arguments,2),i=function(){return e.apply(t||this,o.concat(r.call(arguments)))},i.guid=e.guid=e.guid||p.guid++,i):void 0},now:Date.now,support:u}),p.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){s["[object "+t+"]"]=t.toLowerCase()}));var x=function(e){var t,n,r,o,i,a,s,l,c,u,d,f,p,h,m,g,v,y,x,b="sizzle"+-new Date,w=e.document,A=0,C=0,T=ie(),k=ie(),E=ie(),S=function(e,t){return e===t&&(d=!0),0},N="undefined",$=1<<31,j={}.hasOwnProperty,D=[],L=D.pop,F=D.push,O=D.push,q=D.slice,I=D.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",B=R.replace("w","w#"),P="\\["+H+"*("+R+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+H+"*\\]",U=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",W=new RegExp("^"+H+"+|((?:^|[^\\\\])(?:\\\\.)*)"+H+"+$","g"),_=new RegExp("^"+H+"*,"+H+"*"),z=new RegExp("^"+H+"*([>+~]|"+H+")"+H+"*"),Q=new RegExp("="+H+"*([^\\]'\"]*?)"+H+"*\\]","g"),K=new RegExp(U),Y=new RegExp("^"+B+"$"),X={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ne=new RegExp("\\\\([\\da-f]{1,6}"+H+"?|("+H+")|.)","ig"),re=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{O.apply(D=q.call(w.childNodes),w.childNodes),D[w.childNodes.length].nodeType}catch(e){O={apply:D.length?function(e,t){F.apply(e,q.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,r,o){var i,s,c,u,d,h,v,y,A,C;if((t?t.ownerDocument||t:w)!==p&&f(t),r=r||[],!e||"string"!=typeof e)return r;if(1!==(u=(t=t||p).nodeType)&&9!==u)return[];if(m&&!o){if(i=Z.exec(e))if(c=i[1]){if(9===u){if(!(s=t.getElementById(c))||!s.parentNode)return r;if(s.id===c)return r.push(s),r}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(c))&&x(t,s)&&s.id===c)return r.push(s),r}else{if(i[2])return O.apply(r,t.getElementsByTagName(e)),r;if((c=i[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(r,t.getElementsByClassName(c)),r}if(n.qsa&&(!g||!g.test(e))){if(y=v=b,A=t,C=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(h=a(e),(v=t.getAttribute("id"))?y=v.replace(te,"\\$&"):t.setAttribute("id",y),y="[id='"+y+"'] ",d=h.length;d--;)h[d]=y+me(h[d]);A=ee.test(e)&&pe(t.parentNode)||t,C=h.join(",")}if(C)try{return O.apply(r,A.querySelectorAll(C)),r}catch(e){}finally{v||t.removeAttribute("id")}}}return l(e.replace(W,"$1"),t,r,o)}function ie(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ae(e){return e[b]=!0,e}function se(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),o=e.length;o--;)r.attrHandle[n[o]]=t}function ce(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||$)-(~e.sourceIndex||$);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ue(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return ae((function(t){return t=+t,ae((function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function pe(e){return e&&typeof e.getElementsByTagName!==N&&e}for(t in n=oe.support={},i=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=oe.setDocument=function(e){var t,o=e?e.ownerDocument||e:w,a=o.defaultView;return o!==p&&9===o.nodeType&&o.documentElement?(p=o,h=o.documentElement,m=!i(o),a&&a!==a.top&&(a.addEventListener?a.addEventListener("unload",(function(){f()}),!1):a.attachEvent&&a.attachEvent("onunload",(function(){f()}))),n.attributes=se((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=se((function(e){return e.appendChild(o.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(o.getElementsByClassName)&&se((function(e){return e.innerHTML="
",e.firstChild.className="i",2===e.getElementsByClassName("i").length})),n.getById=se((function(e){return h.appendChild(e).id=b,!o.getElementsByName||!o.getElementsByName(b).length})),n.getById?(r.find.ID=function(e,t){if(typeof t.getElementById!==N&&m){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},r.filter.ID=function(e){var t=e.replace(ne,re);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(ne,re);return function(e){var n=typeof e.getAttributeNode!==N&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==N?t.getElementsByTagName(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==N&&m?t.getElementsByClassName(e):void 0},v=[],g=[],(n.qsa=J.test(o.querySelectorAll))&&(se((function(e){e.innerHTML="",e.querySelectorAll("[msallowclip^='']").length&&g.push("[*^$]="+H+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+H+"*(?:value|"+M+")"),e.querySelectorAll(":checked").length||g.push(":checked")})),se((function(e){var t=o.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+H+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=J.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&se((function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),v.push("!=",U)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(h.compareDocumentPosition),x=t||J.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===o||e.ownerDocument===w&&x(w,e)?-1:t===o||t.ownerDocument===w&&x(w,t)?1:u?I.call(u,e)-I.call(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,s=[e],l=[t];if(!i||!a)return e===o?-1:t===o?1:i?-1:a?1:u?I.call(u,e)-I.call(u,t):0;if(i===a)return ce(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;s[r]===l[r];)r++;return r?ce(s[r],l[r]):s[r]===w?-1:l[r]===w?1:0},o):p},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&f(e),t=t.replace(Q,"='$1']"),!(!n.matchesSelector||!m||v&&v.test(t)||g&&g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return oe(t,p,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==p&&f(e),x(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==p&&f(e);var o=r.attrHandle[t.toLowerCase()],i=o&&j.call(r.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==i?i:n.attributes||!m?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],o=0,i=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(S),d){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return u=null,e},o=oe.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},r=oe.selectors={cacheLength:50,createPseudo:ae,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ne,re),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,re),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&K.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ne,re).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+H+")"+e+"("+H+"|$)"))&&T(e,(function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==N&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=oe.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,f,p,h,m=i!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(g){if(i){for(;m;){for(d=t;d=d[m];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(p=(c=(u=g[b]||(g[b]={}))[e]||[])[0]===A&&c[1],f=c[0]===A&&c[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(f=p=0)||h.pop();)if(1===d.nodeType&&++f&&d===t){u[e]=[A,p,f];break}}else if(y&&(c=(t[b]||(t[b]={}))[e])&&c[0]===A)f=c[1];else for(;(d=++p&&d&&d[m]||(f=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++f||(y&&((d[b]||(d[b]={}))[e]=[A,f]),d!==t)););return(f-=o)===r||f%r==0&&f/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return o[b]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ae((function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=I.call(e,i[a])]=!(n[r]=i[a])})):function(e){return o(e,0,n)}):o}},pseudos:{not:ae((function(e){var t=[],n=[],r=s(e.replace(W,"$1"));return r[b]?ae((function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),!n.pop()}})),has:ae((function(e){return function(t){return oe(e,t).length>0}})),contains:ae((function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}})),lang:ae((function(e){return Y.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(ne,re).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:fe((function(){return[0]})),last:fe((function(e,t){return[t-1]})),eq:fe((function(e,t,n){return[0>n?n+t:n]})),even:fe((function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e})),odd:fe((function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e})),lt:fe((function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e})),gt:fe((function(e,t,n){for(var r=0>n?n+t:n;++rt;t++)r+=e[t].value;return r}function ge(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var s,l,c=[A,i];if(a){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||o){if((s=(l=t[b]||(t[b]={}))[r])&&s[0]===A&&s[1]===i)return c[2]=s[2];if(l[r]=c,c[2]=e(t,n,a))return!0}}}function ve(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function ye(e,t,n,r,o){for(var i,a=[],s=0,l=e.length,c=null!=t;l>s;s++)(i=e[s])&&(!n||n(i,r,o))&&(a.push(i),c&&t.push(s));return a}function xe(e,t,n,r,o,i){return r&&!r[b]&&(r=xe(r)),o&&!o[b]&&(o=xe(o,i)),ae((function(i,a,s,l){var c,u,d,f=[],p=[],h=a.length,m=i||function(e,t,n){for(var r=0,o=t.length;o>r;r++)oe(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!i&&t?m:ye(m,f,e,s,l),v=n?o||(i?e:h||r)?[]:a:g;if(n&&n(g,v,s,l),r)for(c=ye(v,p),r(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[p[u]]=!(g[p[u]]=d));if(i){if(o||e){if(o){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(g[u]=d);o(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=o?I.call(i,d):f[u])>-1&&(i[c]=!(a[c]=d))}}else v=ye(v===a?v.splice(h,v.length):v),o?o(null,a,v,l):O.apply(a,v)}))}function be(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,u=ge((function(e){return e===t}),s,!0),d=ge((function(e){return I.call(t,e)>-1}),s,!0),f=[function(e,n,r){return!a&&(r||n!==c)||((t=n).nodeType?u(e,n,r):d(e,n,r))}];i>l;l++)if(n=r.relative[e[l].type])f=[ge(ve(f),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[b]){for(o=++l;i>o&&!r.relative[e[o].type];o++);return xe(l>1&&ve(f),l>1&&me(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(W,"$1"),n,o>l&&be(e.slice(l,o)),i>o&&be(e=e.slice(o)),i>o&&me(e))}f.push(n)}return ve(f)}function we(e,t){var n=t.length>0,o=e.length>0,i=function(i,a,s,l,u){var d,f,h,m=0,g="0",v=i&&[],y=[],x=c,b=i||o&&r.find.TAG("*",u),w=A+=null==x?1:Math.random()||.1,C=b.length;for(u&&(c=a!==p&&a);g!==C&&null!=(d=b[g]);g++){if(o&&d){for(f=0;h=e[f++];)if(h(d,a,s)){l.push(d);break}u&&(A=w)}n&&((d=!h&&d)&&m--,i&&v.push(d))}if(m+=g,n&&g!==m){for(f=0;h=t[f++];)h(v,y,a,s);if(i){if(m>0)for(;g--;)v[g]||y[g]||(y[g]=L.call(l));y=ye(y)}O.apply(l,y),u&&!i&&y.length>0&&m+t.length>1&&oe.uniqueSort(l)}return u&&(A=w,c=x),v};return n?ae(i):i}return he.prototype=r.filters=r.pseudos,r.setFilters=new he,a=oe.tokenize=function(e,t){var n,o,i,a,s,l,c,u=k[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(a in(!n||(o=_.exec(s)))&&(o&&(s=s.slice(o[0].length)||s),l.push(i=[])),n=!1,(o=z.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(W," ")}),s=s.slice(n.length)),r.filter)!(o=X[a].exec(s))||c[a]&&!(o=c[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?oe.error(e):k(e,l).slice(0)},s=oe.compile=function(e,t){var n,r=[],o=[],i=E[e+" "];if(!i){for(t||(t=a(e)),n=t.length;n--;)(i=be(t[n]))[b]?r.push(i):o.push(i);(i=E(e,we(o,r))).selector=e}return i},l=oe.select=function(e,t,o,i){var l,c,u,d,f,p="function"==typeof e&&e,h=!i&&a(e=p.selector||e);if(o=o||[],1===h.length){if((c=h[0]=h[0].slice(0)).length>2&&"ID"===(u=c[0]).type&&n.getById&&9===t.nodeType&&m&&r.relative[c[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(ne,re),t)||[])[0]))return o;p&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(l=X.needsContext.test(e)?0:c.length;l--&&(u=c[l],!r.relative[d=u.type]);)if((f=r.find[d])&&(i=f(u.matches[0].replace(ne,re),ee.test(c[0].type)&&pe(t.parentNode)||t))){if(c.splice(l,1),!(e=i.length&&me(c)))return O.apply(o,i),o;break}}return(p||s(e,h))(i,t,!m,o,ee.test(e)&&pe(t.parentNode)||t),o},n.sortStable=b.split("").sort(S).join("")===b,n.detectDuplicates=!!d,f(),n.sortDetached=se((function(e){return 1&e.compareDocumentPosition(p.createElement("div"))})),se((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||le("type|href|height|width",(function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&se((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||le("value",(function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue})),se((function(e){return null==e.getAttribute("disabled")}))||le(M,(function(e,t,n){var r;return n?void 0:!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),oe}(e);p.find=x,p.expr=x.selectors,p.expr[":"]=p.expr.pseudos,p.unique=x.uniqueSort,p.text=x.getText,p.isXMLDoc=x.isXML,p.contains=x.contains;var b=p.expr.match.needsContext,w=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,A=/^.[^:#\[\.,]*$/;function C(e,t,n){if(p.isFunction(t))return p.grep(e,(function(e,r){return!!t.call(e,r,e)!==n}));if(t.nodeType)return p.grep(e,(function(e){return e===t!==n}));if("string"==typeof t){if(A.test(t))return p.filter(t,e,n);t=p.filter(t,e)}return p.grep(e,(function(e){return a.call(t,e)>=0!==n}))}p.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?p.find.matchesSelector(r,e)?[r]:[]:p.find.matches(e,p.grep(t,(function(e){return 1===e.nodeType})))},p.fn.extend({find:function(e){var t,n=this.length,r=[],o=this;if("string"!=typeof e)return this.pushStack(p(e).filter((function(){for(t=0;n>t;t++)if(p.contains(o[t],this))return!0})));for(t=0;n>t;t++)p.find(e,o[t],r);return(r=this.pushStack(n>1?p.unique(r):r)).selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(C(this,e||[],!1))},not:function(e){return this.pushStack(C(this,e||[],!0))},is:function(e){return!!C(this,"string"==typeof e&&b.test(e)?p(e):e||[],!1).length}});var T,k=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,E=p.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:k.exec(e))||!n[1]&&t)return!t||t.jquery?(t||T).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof p?t[0]:t,p.merge(this,p.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:d,!0)),w.test(n[1])&&p.isPlainObject(t))for(n in t)p.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(r=d.getElementById(n[2]))&&r.parentNode&&(this.length=1,this[0]=r),this.context=d,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):p.isFunction(e)?void 0!==T.ready?T.ready(e):e(p):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),p.makeArray(e,this))};E.prototype=p.fn,T=p(d);var S=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function $(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}p.extend({dir:function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&p(e).is(n))break;r.push(e)}return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),p.fn.extend({has:function(e){var t=p(e,this),n=t.length;return this.filter((function(){for(var e=0;n>e;e++)if(p.contains(this,t[e]))return!0}))},closest:function(e,t){for(var n,r=0,o=this.length,i=[],a=b.test(e)||"string"!=typeof e?p(e,t||this.context):0;o>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&p.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?p.unique(i):i)},index:function(e){return e?"string"==typeof e?a.call(p(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(p.unique(p.merge(this.get(),p(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),p.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return p.dir(e,"parentNode")},parentsUntil:function(e,t,n){return p.dir(e,"parentNode",n)},next:function(e){return $(e,"nextSibling")},prev:function(e){return $(e,"previousSibling")},nextAll:function(e){return p.dir(e,"nextSibling")},prevAll:function(e){return p.dir(e,"previousSibling")},nextUntil:function(e,t,n){return p.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return p.dir(e,"previousSibling",n)},siblings:function(e){return p.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return p.sibling(e.firstChild)},contents:function(e){return e.contentDocument||p.merge([],e.childNodes)}},(function(e,t){p.fn[e]=function(n,r){var o=p.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=p.filter(r,o)),this.length>1&&(N[e]||p.unique(o),S.test(e)&&o.reverse()),this.pushStack(o)}}));var j,D=/\S+/g,L={};function F(){d.removeEventListener("DOMContentLoaded",F,!1),e.removeEventListener("load",F,!1),p.ready()}p.Callbacks=function(e){e="string"==typeof e?L[e]||function(e){var t=L[e]={};return p.each(e.match(D)||[],(function(e,n){t[n]=!0})),t}(e):p.extend({},e);var t,n,r,o,i,a,s=[],l=!e.once&&[],c=function(d){for(t=e.memory&&d,n=!0,a=o||0,o=0,i=s.length,r=!0;s&&i>a;a++)if(!1===s[a].apply(d[0],d[1])&&e.stopOnFalse){t=!1;break}r=!1,s&&(l?l.length&&c(l.shift()):t?s=[]:u.disable())},u={add:function(){if(s){var n=s.length;!function t(n){p.each(n,(function(n,r){var o=p.type(r);"function"===o?e.unique&&u.has(r)||s.push(r):r&&r.length&&"string"!==o&&t(r)}))}(arguments),r?i=s.length:t&&(o=n,c(t))}return this},remove:function(){return s&&p.each(arguments,(function(e,t){for(var n;(n=p.inArray(t,s,n))>-1;)s.splice(n,1),r&&(i>=n&&i--,a>=n&&a--)})),this},has:function(e){return e?p.inArray(e,s)>-1:!(!s||!s.length)},empty:function(){return s=[],i=0,this},disable:function(){return s=l=t=void 0,this},disabled:function(){return!s},lock:function(){return l=void 0,t||u.disable(),this},locked:function(){return!l},fireWith:function(e,t){return!s||n&&!l||(t=[e,(t=t||[]).slice?t.slice():t],r?l.push(t):c(t)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!n}};return u},p.extend({Deferred:function(e){var t=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return p.Deferred((function(n){p.each(t,(function(t,i){var a=p.isFunction(e[t])&&e[t];o[i[1]]((function(){var e=a&&a.apply(this,arguments);e&&p.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[i[0]+"With"](this===r?n.promise():this,a?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?p.extend(e,r):r}},o={};return r.pipe=r.then,p.each(t,(function(e,i){var a=i[2],s=i[3];r[i[1]]=a.add,s&&a.add((function(){n=s}),t[1^e][2].disable,t[2][2].lock),o[i[0]]=function(){return o[i[0]+"With"](this===o?r:this,arguments),this},o[i[0]+"With"]=a.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(e){var t,n,o,i=0,a=r.call(arguments),s=a.length,l=1!==s||e&&p.isFunction(e.promise)?s:0,c=1===l?e:p.Deferred(),u=function(e,n,o){return function(i){n[e]=this,o[e]=arguments.length>1?r.call(arguments):i,o===t?c.notifyWith(n,o):--l||c.resolveWith(n,o)}};if(s>1)for(t=new Array(s),n=new Array(s),o=new Array(s);s>i;i++)a[i]&&p.isFunction(a[i].promise)?a[i].promise().done(u(i,o,a)).fail(c.reject).progress(u(i,n,t)):--l;return l||c.resolveWith(o,a),c.promise()}}),p.fn.ready=function(e){return p.ready.promise().done(e),this},p.extend({isReady:!1,readyWait:1,holdReady:function(e){e?p.readyWait++:p.ready(!0)},ready:function(e){(!0===e?--p.readyWait:p.isReady)||(p.isReady=!0,!0!==e&&--p.readyWait>0||(j.resolveWith(d,[p]),p.fn.triggerHandler&&(p(d).triggerHandler("ready"),p(d).off("ready"))))}}),p.ready.promise=function(t){return j||(j=p.Deferred(),"complete"===d.readyState?setTimeout(p.ready):(d.addEventListener("DOMContentLoaded",F,!1),e.addEventListener("load",F,!1))),j.promise(t)},p.ready.promise();var O=p.access=function(e,t,n,r,o,i,a){var s=0,l=e.length,c=null==n;if("object"===p.type(n))for(s in o=!0,n)p.access(e,t,s,n[s],!0,i,a);else if(void 0!==r&&(o=!0,p.isFunction(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(p(e),n)})),t))for(;l>s;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:c?t.call(e):l?t(e[0],n):i};function q(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=p.expando+Math.random()}p.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},q.uid=1,q.accepts=p.acceptData,q.prototype={key:function(e){if(!q.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=q.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,p.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,o=this.key(e),i=this.cache[o];if("string"==typeof t)i[t]=n;else if(p.isEmptyObject(i))p.extend(this.cache[o],t);else for(r in t)i[r]=t[r];return i},get:function(e,t){var n=this.cache[this.key(e)];return void 0===t?n:n[t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(r=this.get(e,t))?r:this.get(e,p.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,o,i=this.key(e),a=this.cache[i];if(void 0===t)this.cache[i]={};else{p.isArray(t)?r=t.concat(t.map(p.camelCase)):(o=p.camelCase(t),t in a?r=[t,o]:r=(r=o)in a?[r]:r.match(D)||[]),n=r.length;for(;n--;)delete a[r[n]]}},hasData:function(e){return!p.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var I=new q,M=new q,H=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,R=/([A-Z])/g;function B(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(R,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:H.test(n)?p.parseJSON(n):n)}catch(e){}M.set(e,t,n)}else n=void 0;return n}p.extend({hasData:function(e){return M.hasData(e)||I.hasData(e)},data:function(e,t,n){return M.access(e,t,n)},removeData:function(e,t){M.remove(e,t)},_data:function(e,t,n){return I.access(e,t,n)},_removeData:function(e,t){I.remove(e,t)}}),p.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=M.get(i),1===i.nodeType&&!I.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(0===(r=a[n].name).indexOf("data-")&&(r=p.camelCase(r.slice(5)),B(i,r,o[r])));I.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){M.set(this,e)})):O(this,(function(t){var n,r=p.camelCase(e);if(i&&void 0===t){if(void 0!==(n=M.get(i,e)))return n;if(void 0!==(n=M.get(i,r)))return n;if(void 0!==(n=B(i,r,void 0)))return n}else this.each((function(){var n=M.get(this,r);M.set(this,r,t),-1!==e.indexOf("-")&&void 0!==n&&M.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){M.remove(this,e)}))}}),p.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=I.get(e,t),n&&(!r||p.isArray(n)?r=I.access(e,t,p.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=p.queue(e,t),r=n.length,o=n.shift(),i=p._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,(function(){p.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return I.get(e,n)||I.access(e,n,{empty:p.Callbacks("once memory").add((function(){I.remove(e,[t+"queue",n])}))})}}),p.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.lengthx",u.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var z="undefined";u.focusinBubbles="onfocusin"in e;var Q=/^key/,K=/^(?:mouse|pointer|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,X=/^([^.]*)(?:\.(.+)|)$/;function V(){return!0}function G(){return!1}function J(){try{return d.activeElement}catch(e){}}p.event={global:{},add:function(e,t,n,r,o){var i,a,s,l,c,u,d,f,h,m,g,v=I.get(e);if(v)for(n.handler&&(n=(i=n).handler,o=i.selector),n.guid||(n.guid=p.guid++),(l=v.events)||(l=v.events={}),(a=v.handle)||(a=v.handle=function(t){return typeof p!==z&&p.event.triggered!==t.type?p.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(D)||[""]).length;c--;)h=g=(s=X.exec(t[c])||[])[1],m=(s[2]||"").split(".").sort(),h&&(d=p.event.special[h]||{},h=(o?d.delegateType:d.bindType)||h,d=p.event.special[h]||{},u=p.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&p.expr.match.needsContext.test(o),namespace:m.join(".")},i),(f=l[h])||((f=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,m,a)||e.addEventListener&&e.addEventListener(h,a,!1)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,u):f.push(u),p.event.global[h]=!0)},remove:function(e,t,n,r,o){var i,a,s,l,c,u,d,f,h,m,g,v=I.hasData(e)&&I.get(e);if(v&&(l=v.events)){for(c=(t=(t||"").match(D)||[""]).length;c--;)if(h=g=(s=X.exec(t[c])||[])[1],m=(s[2]||"").split(".").sort(),h){for(d=p.event.special[h]||{},f=l[h=(r?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=f.length;i--;)u=f[i],!o&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(i,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,m,v.handle)||p.removeEvent(e,h,v.handle),delete l[h])}else for(h in l)p.event.remove(e,h+t[c],n,r,!0);p.isEmptyObject(l)&&(delete v.handle,I.remove(e,"events"))}},trigger:function(t,n,r,o){var i,a,s,l,u,f,h,m=[r||d],g=c.call(t,"type")?t.type:t,v=c.call(t,"namespace")?t.namespace.split("."):[];if(a=s=r=r||d,3!==r.nodeType&&8!==r.nodeType&&!Y.test(g+p.event.triggered)&&(g.indexOf(".")>=0&&(v=g.split("."),g=v.shift(),v.sort()),u=g.indexOf(":")<0&&"on"+g,(t=t[p.expando]?t:new p.Event(g,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=v.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:p.makeArray(n,[t]),h=p.event.special[g]||{},o||!h.trigger||!1!==h.trigger.apply(r,n))){if(!o&&!h.noBubble&&!p.isWindow(r)){for(l=h.delegateType||g,Y.test(l+g)||(a=a.parentNode);a;a=a.parentNode)m.push(a),s=a;s===(r.ownerDocument||d)&&m.push(s.defaultView||s.parentWindow||e)}for(i=0;(a=m[i++])&&!t.isPropagationStopped();)t.type=i>1?l:h.bindType||g,(f=(I.get(a,"events")||{})[t.type]&&I.get(a,"handle"))&&f.apply(a,n),(f=u&&a[u])&&f.apply&&p.acceptData(a)&&(t.result=f.apply(a,n),!1===t.result&&t.preventDefault());return t.type=g,o||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(m.pop(),n)||!p.acceptData(r)||u&&p.isFunction(r[g])&&!p.isWindow(r)&&((s=r[u])&&(r[u]=null),p.event.triggered=g,r[g](),p.event.triggered=void 0,s&&(r[u]=s)),t.result}},dispatch:function(e){e=p.event.fix(e);var t,n,o,i,a,s=[],l=r.call(arguments),c=(I.get(this,"events")||{})[e.type]||[],u=p.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(s=p.event.handlers.call(this,e,c),t=0;(i=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(a.namespace))&&(e.handleObj=a,e.data=a.data,void 0!==(o=((p.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,l))&&!1===(e.result=o)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,o,i,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!==this;l=l.parentNode||this)if(!0!==l.disabled||"click"!==e.type){for(r=[],n=0;s>n;n++)void 0===r[o=(i=t[n]).selector+" "]&&(r[o]=i.needsContext?p(o,this).index(l)>=0:p.find(o,this,null,[l]).length),r[o]&&r.push(i);r.length&&a.push({elem:l,handlers:r})}return s]*)\/>/gi,ee=/<([\w:]+)/,te=/<|&#?\w+;/,ne=/<(?:script|style|link)/i,re=/checked\s*(?:[^=]|=\s*.checked.)/i,oe=/^$|\/(?:java|ecma)script/i,ie=/^true\/(.*)/,ae=/^\s*\s*$/g,se={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function le(e,t){return p.nodeName(e,"table")&&p.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ce(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ue(e){var t=ie.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function de(e,t){for(var n=0,r=e.length;r>n;n++)I.set(e[n],"globalEval",!t||I.get(t[n],"globalEval"))}function fe(e,t){var n,r,o,i,a,s,l,c;if(1===t.nodeType){if(I.hasData(e)&&(i=I.access(e),a=I.set(t,i),c=i.events))for(o in delete a.handle,a.events={},c)for(n=0,r=c[o].length;r>n;n++)p.event.add(t,o,c[o][n]);M.hasData(e)&&(s=M.access(e),l=p.extend({},s),M.set(t,l))}}function pe(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&p.nodeName(e,t)?p.merge([e],n):n}function he(e,t){var n=t.nodeName.toLowerCase();"input"===n&&_.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}se.optgroup=se.option,se.tbody=se.tfoot=se.colgroup=se.caption=se.thead,se.th=se.td,p.extend({clone:function(e,t,n){var r,o,i,a,s=e.cloneNode(!0),l=p.contains(e.ownerDocument,e);if(!(u.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||p.isXMLDoc(e)))for(a=pe(s),r=0,o=(i=pe(e)).length;o>r;r++)he(i[r],a[r]);if(t)if(n)for(i=i||pe(e),a=a||pe(s),r=0,o=i.length;o>r;r++)fe(i[r],a[r]);else fe(e,s);return(a=pe(s,"script")).length>0&&de(a,!l&&pe(e,"script")),s},buildFragment:function(e,t,n,r){for(var o,i,a,s,l,c,u=t.createDocumentFragment(),d=[],f=0,h=e.length;h>f;f++)if((o=e[f])||0===o)if("object"===p.type(o))p.merge(d,o.nodeType?[o]:o);else if(te.test(o)){for(i=i||u.appendChild(t.createElement("div")),a=(ee.exec(o)||["",""])[1].toLowerCase(),s=se[a]||se._default,i.innerHTML=s[1]+o.replace(Z,"<$1>")+s[2],c=s[0];c--;)i=i.lastChild;p.merge(d,i.childNodes),(i=u.firstChild).textContent=""}else d.push(t.createTextNode(o));for(u.textContent="",f=0;o=d[f++];)if((!r||-1===p.inArray(o,r))&&(l=p.contains(o.ownerDocument,o),i=pe(u.appendChild(o),"script"),l&&de(i),n))for(c=0;o=i[c++];)oe.test(o.type||"")&&n.push(o);return u},cleanData:function(e){for(var t,n,r,o,i=p.event.special,a=0;void 0!==(n=e[a]);a++){if(p.acceptData(n)&&((o=n[I.expando])&&(t=I.cache[o]))){if(t.events)for(r in t.events)i[r]?p.event.remove(n,r):p.removeEvent(n,r,t.handle);I.cache[o]&&delete I.cache[o]}delete M.cache[n[M.expando]]}}}),p.fn.extend({text:function(e){return O(this,(function(e){return void 0===e?p.text(this):this.empty().each((function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return this.domManip(arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||le(this,e).appendChild(e)}))},prepend:function(){return this.domManip(arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=le(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},remove:function(e,t){for(var n,r=e?p.filter(e,this):this,o=0;null!=(n=r[o]);o++)t||1!==n.nodeType||p.cleanData(pe(n)),n.parentNode&&(t&&p.contains(n.ownerDocument,n)&&de(pe(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(p.cleanData(pe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return p.clone(this,e,t)}))},html:function(e){return O(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ne.test(e)&&!se[(ee.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Z,"<$1>");try{for(;r>n;n++)1===(t=this[n]||{}).nodeType&&(p.cleanData(pe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,(function(t){e=this.parentNode,p.cleanData(pe(this)),e&&e.replaceChild(t,this)})),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=o.apply([],e);var n,r,i,a,s,l,c=0,d=this.length,f=this,h=d-1,m=e[0],g=p.isFunction(m);if(g||d>1&&"string"==typeof m&&!u.checkClone&&re.test(m))return this.each((function(n){var r=f.eq(n);g&&(e[0]=m.call(this,n,r.html())),r.domManip(e,t)}));if(d&&(r=(n=p.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===n.childNodes.length&&(n=r),r)){for(a=(i=p.map(pe(n,"script"),ce)).length;d>c;c++)s=n,c!==h&&(s=p.clone(s,!0,!0),a&&p.merge(i,pe(s,"script"))),t.call(this[c],s,c);if(a)for(l=i[i.length-1].ownerDocument,p.map(i,ue),c=0;a>c;c++)s=i[c],oe.test(s.type||"")&&!I.access(s,"globalEval")&&p.contains(l,s)&&(s.src?p._evalUrl&&p._evalUrl(s.src):p.globalEval(s.textContent.replace(ae,"")))}return this}}),p.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){p.fn[e]=function(e){for(var n,r=[],o=p(e),a=o.length-1,s=0;a>=s;s++)n=s===a?this:this.clone(!0),p(o[s])[t](n),i.apply(r,n.get());return this.pushStack(r)}}));var me,ge={};function ve(t,n){var r,o=p(n.createElement(t)).appendTo(n.body),i=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(o[0]))?r.display:p.css(o[0],"display");return o.detach(),i}function ye(e){var t=d,n=ge[e];return n||("none"!==(n=ve(e,t))&&n||((t=(me=(me||p("")),""!==n?$("#iframeOverlay").load((function(){var e=null;try{e=GetDoc(document.getElementById("iframeOverlay"))}catch(e){}null===e&&isIframe()&&(e=document),null!==e?($(e.body).addClass("isIframe"),$(".modalo").addClass("loaded")):$(".modalo").addClass("loaded")})):$(".modalo").addClass("loaded"),overlay_EventAttached||(document.body.addEventListener("click",clicked),overlay_EventAttached=!0),setTimeout((function(){$(document.body).addClass("overlay")}),0))}}function clicked(e){if(!$(document.body).hasClass("noexit")){var t;if(!e)e=window.event;if(e.target?t=e.target:e.srcElement&&(t=e.srcElement),void 0!==t&&3==t.nodeType&&(t=t.parentNode),void 0===t||"modal"!==t.className){if(overlay_RefreshParent)return void parent.document.location.reload(!0);$(document.body).removeClass("overlay"),$(parent.document.body).removeClass("overlay"),setTimeout((function(){$(document.body).hasClass("overlay")||$(".modalo").html("")}),5e3)}}}function GetDoc(e){return e.contentDocument||e.contentWindow.document}function showAlert(e,t,n,r,o){o&&$(document.body).addClass("noexit"),showOverlay({Contents:'

'+t+"

"+n+"

"})}function toggle(e){var t=document.getElementById(e);"block"===t.style.display?t.style.display="":t.style.display="block"}$(".a-overlay").click((function(e){showOverlay({},e.currentTarget)})),$(document).ready((function(){$("#searchBox").on("input",(function(){$(".boxResult[selected]").attr("selected",!1);var e=$("#searchBox").val();e.trim().length<=1?($("#popUpSearch").empty(),$("#popUpSearch").hide()):(clearTimeout(timeOut),$("body").addClass("isSearching"),$("#popUpSearch").empty(),$("#popUpSearch").css("overflow-y",""),$("#popUpSearch").show(),$("#popUpSearch").append("Searching...."),timeOut=setTimeout((function(){$.getJSON("/api/search-menu/"+e,(function(e){$.each(e,(function(e,t){$("#popUpSearch").empty(),0!=t.length?($("#popUpSearch").css("overflow-y","scroll"),$.each(t,(function(e,t){void 0!==t.kind&&null!==t.kind?$("#popUpSearch").append('
'+(void 0!==t.pagemap.cse_thumbnail&&null!==t.pagemap.cse_thumbnail?'
':"/images/logos/gala-logo-v3.svg")+'
'+t.title+'
'+t.snippet+"
"):null===t.ProdLargeImage&&null===t.FinalPrice||""===t.ProdLargeImage||""===t.FinalPrice||t.isQuoteOnly?null===t.ProdLargeImage&&null===t.FinalPrice||""===t.ProdLargeImage?$("#popUpSearch").append(''):$("#popUpSearch").append('"):$("#popUpSearch").append('
'+t.ProductName+"
Only £"+t.FinalPrice+"
")}))):$("#popUpSearch").append('
No results found.
')}))}))}),500))})),$("#searchBox").on("click",(function(){$("#popUpSearch").empty(),$("#popUpSearch").hide(),$("body").removeClass("isSearching")})),$("#popUpSearch").on("click",".boxResult",(function(){window.location.href=$(this).find("a").attr("href")})),$(document).keydown((function(e){var t=e.keyCode;if($("#searchBox").is(":focus"))"40"==t&&0!=$(".boxResult").length&&(e.preventDefault(),$(".boxResult").first().attr("selected",!0),$("#searchBox:focus").blur());else if(ind=$(".boxResult[selected]").index(),-1!=ind)if(len=$(".boxResult").length,"40"==t)ind!=len-1?(e.preventDefault(),(n=$(".boxResult[selected]")).attr("selected",!1),n.next().attr("selected",!0)):e.preventDefault();else if("38"==t){var n;if(0!=ind)e.preventDefault(),(n=$(".boxResult[selected]")).attr("selected",!1),n.prev().attr("selected",!0);else e.preventDefault()}else"13"==t&&(link=$(".boxResult[selected] a").attr("href"),window.location.href=link)}))})),$("#popUpSearch").on("mouseover",".boxResult",(function(){$("#searchBox:focus").blur(),$(".boxResult[selected]").attr("selected",!1),$(this).attr("selected",!0)}));var MENU_TASK,MENU_TASK_2,MENU_LAST="",MENU_STATUS=0;function toggleMenu(e){clearTimeout(MENU_TASK_2),0==MENU_STATUS?(MENU_TASK_2=setTimeout((function(){openMenu()}),400),switchMenu(e)):switchMenu(e)}function switchMenu(e){for(var t=document.getElementById("test").childNodes,n=0;n100?"1"!==e.style.opacity&&(e.style.opacity="1"):"0"!==e.style.opacity&&(e.style.opacity="0"))}$(".refine .toggleActive").on("click",(function(e){toggleActive(upTo(e.target,"UL"))})),$(".refine .showall.toggleActive").on("click",(function(e){toggleActive($(".refine").first()[0]),window.scrollTo(0,0)})),$(".list-sel .toggleActive").on("click",(function(e){toggleActive($(".refine").first()[0])})),$(window).width()<=768?$(".forcefocus").on("touchstart",(function(e){$(e.target).focus(),$(e.target).click()})):$(".forcefocus").on("mouseover",(function(e){$(e.target).focus()})),ready((function(){var e=document.querySelectorAll('[data-toggle="modal"]');Array.prototype.forEach.call(e,(function(e,t){e.addEventListener("click",(function(e){var t=e.currentTarget.getAttribute("data-target");modalOpen(document.querySelector(t))}),!1)}));var t=document.querySelectorAll('[data-dismiss="modal"]');Array.prototype.forEach.call(t,(function(e,t){e.addEventListener("click",(function(e){modalClose()}),!1)})),jQuery.fn.extend({modal:function(e){switch(console.log(e),e){case"show":modalOpen(this[0]);break;case"hide":modalClose();break;case"toggle":this[0].classList.contains("in")?modalClose():modalOpen(this[0])}}})})),window.addEventListener("scroll",isVisible,{passive:!0}),document.addEventListener("lazybeforeunveil",(function(e){var t="DIV"==e.target.tagName,n=e.target.getAttribute("data-src");t&&(e.target.style.backgroundImage="url("+n+")")}));