﻿/*!
 * jQuery JavaScript Library v1.10.2
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2013-07-03T13:48Z
 */
function FastClick(n){"use strict";var i,t=this;if(this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=10,this.layer=n,!n||!n.nodeType)throw new TypeError("Layer must be a document node");(this.onClick=function(){return FastClick.prototype.onClick.apply(t,arguments)},this.onMouse=function(){return FastClick.prototype.onMouse.apply(t,arguments)},this.onTouchStart=function(){return FastClick.prototype.onTouchStart.apply(t,arguments)},this.onTouchEnd=function(){return FastClick.prototype.onTouchEnd.apply(t,arguments)},this.onTouchCancel=function(){return FastClick.prototype.onTouchCancel.apply(t,arguments)},FastClick.notNeeded(n))||(this.deviceIsAndroid&&(n.addEventListener("mouseover",this.onMouse,!0),n.addEventListener("mousedown",this.onMouse,!0),n.addEventListener("mouseup",this.onMouse,!0)),n.addEventListener("click",this.onClick,!0),n.addEventListener("touchstart",this.onTouchStart,!1),n.addEventListener("touchend",this.onTouchEnd,!1),n.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(n.removeEventListener=function(t,i,r){var u=Node.prototype.removeEventListener;t==="click"?u.call(n,t,i.hijacked||i,r):u.call(n,t,i,r)},n.addEventListener=function(t,i,r){var u=Node.prototype.addEventListener;t==="click"?u.call(n,t,i.hijacked||(i.hijacked=function(n){n.propagationStopped||i(n)}),r):u.call(n,t,i,r)}),typeof n.onclick=="function"&&(i=n.onclick,n.addEventListener("click",function(n){i(n)},!1),n.onclick=null))}var Carousel,dataLayer;(function(n,t){function gt(n){var t=n.length,r=i.type(n);return i.isWindow(n)?!1:n.nodeType===1&&t?!0:r==="array"||r!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in n)}function te(n){var t=ni[n]={};return i.each(n.match(s)||[],function(n,i){t[i]=!0}),t}function ur(n,r,u,f){if(i.acceptData(n)){var h,o,c=i.expando,l=n.nodeType,s=l?i.cache:n,e=l?n[c]:n[c]&&c;if(e&&s[e]&&(f||s[e].data)||u!==t||typeof r!="string")return e||(e=l?n[c]=b.pop()||i.guid++:c),s[e]||(s[e]=l?{}:{toJSON:i.noop}),(typeof r=="object"||typeof r=="function")&&(f?s[e]=i.extend(s[e],r):s[e].data=i.extend(s[e].data,r)),o=s[e],f||(o.data||(o.data={}),o=o.data),u!==t&&(o[i.camelCase(r)]=u),typeof r=="string"?(h=o[r],h==null&&(h=o[i.camelCase(r)])):h=o,h}}function fr(n,t,r){if(i.acceptData(n)){var f,o,s=n.nodeType,u=s?i.cache:n,e=s?n[i.expando]:i.expando;if(u[e]){if(t&&(f=r?u[e]:u[e].data,f)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in f)?t=[t]:(t=i.camelCase(t),t=t in f?[t]:t.split(" ")),o=t.length;o--;)delete f[t[o]];if(r?!ti(f):!i.isEmptyObject(f))return}(r||(delete u[e].data,ti(u[e])))&&(s?i.cleanData([n],!0):i.support.deleteExpando||u!=u.window?delete u[e]:u[e]=null)}}}function er(n,r,u){if(u===t&&n.nodeType===1){var f="data-"+r.replace(rr,"-$1").toLowerCase();if(u=n.getAttribute(f),typeof u=="string"){try{u=u==="true"?!0:u==="false"?!1:u==="null"?null:+u+""===u?+u:ir.test(u)?i.parseJSON(u):u}catch(e){}i.data(n,r,u)}else u=t}return u}function ti(n){for(var t in n)if((t!=="data"||!i.isEmptyObject(n[t]))&&t!=="toJSON")return!1;return!0}function ct(){return!0}function g(){return!1}function cr(){try{return r.activeElement}catch(n){}}function ar(n,t){do n=n[t];while(n&&n.nodeType!==1);return n}function fi(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if(typeof t=="string"){if(oe.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}function vr(n){var i=yr.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function gr(n,t){return i.nodeName(n,"table")&&i.nodeName(t.nodeType===1?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function nu(n){return n.type=(i.find.attr(n,"type")!==null)+"/"+n.type,n}function tu(n){var t=ye.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function hi(n,t){for(var u,r=0;(u=n[r])!=null;r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function iu(n,t){if(t.nodeType===1&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;f<o;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function be(n,t){var r,f,u;if(t.nodeType===1){if(r=t.nodeName.toLowerCase(),!i.support.noCloneEvent&&t[i.expando]){u=i._data(t);for(f in u.events)i.removeEvent(t,f,u.handle);t.removeAttribute(i.expando)}r==="script"&&t.text!==n.text?(nu(t).text=n.text,tu(t)):r==="object"?(t.parentNode&&(t.outerHTML=n.outerHTML),i.support.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):r==="input"&&oi.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):r==="option"?t.defaultSelected=t.selected=n.defaultSelected:(r==="input"||r==="textarea")&&(t.defaultValue=n.defaultValue)}}function u(n,r){var s,e,h=0,f=typeof n.getElementsByTagName!==o?n.getElementsByTagName(r||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(r||"*"):t;if(!f)for(f=[],s=n.childNodes||n;(e=s[h])!=null;h++)!r||i.nodeName(e,r)?f.push(e):i.merge(f,u(e,r));return r===t||r&&i.nodeName(n,r)?i.merge([n],f):f}function ke(n){oi.test(n.type)&&(n.defaultChecked=n.checked)}function ou(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=eu.length;i--;)if(t=eu[i]+r,t in n)return t;return u}function ut(n,t){return n=t||n,i.css(n,"display")==="none"||!i.contains(n.ownerDocument,n)}function su(n,t){for(var f,r,o,e=[],u=0,s=n.length;u<s;u++)(r=n[u],r.style)&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||f!=="none"||(r.style.display=""),r.style.display===""&&ut(r)&&(e[u]=i._data(r,"olddisplay",au(r.nodeName)))):e[u]||(o=ut(r),(f&&f!=="none"||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;u<s;u++)(r=n[u],r.style)&&(t&&r.style.display!=="none"&&r.style.display!==""||(r.style.display=t?e[u]||"":"none"));return n}function hu(n,t,i){var r=to.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function cu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:t==="width"?1:0,o=0;e<4;e+=2)r==="margin"&&(o+=i.css(n,r+p[e],!0,f)),u?(r==="content"&&(o-=i.css(n,"padding"+p[e],!0,f)),r!=="margin"&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),r!=="padding"&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function lu(n,t,r){var e=!0,u=t==="width"?n.offsetWidth:n.offsetHeight,f=v(n),o=i.support.boxSizing&&i.css(n,"boxSizing",!1,f)==="border-box";if(u<=0||u==null){if(u=y(n,t,f),(u<0||u==null)&&(u=n.style[t]),lt.test(u))return u;e=o&&(i.support.boxSizingReliable||u===n.style[t]);u=parseFloat(u)||0}return u+cu(n,t,r||(o?"border":"content"),e,f)+"px"}function au(n){var u=r,t=uu[n];return t||(t=vu(n,u),t!=="none"&&t||(rt=(rt||i("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(u.documentElement),u=(rt[0].contentWindow||rt[0].contentDocument).document,u.write("<!doctype html><html><body>"),u.close(),t=vu(n,u),rt.detach()),uu[n]=t),t}function vu(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.remove(),u}function li(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||fo.test(n)?u(n,i):li(n+"["+(typeof i=="object"?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(f in t)li(n+"["+f+"]",t[f],r,u)}function gu(n){return function(t,r){typeof t!="string"&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(s)||[];if(i.isFunction(r))while(u=e[f++])u[0]==="+"?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function nf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===yi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function pi(n,r){var f,u,e=i.ajaxSettings.flatOptions||{};for(u in r)r[u]!==t&&((e[u]?n:f||(f={}))[u]=r[u]);return f&&i.extend(!0,n,f),n}function ao(n,i,r){for(var s,o,f,e,h=n.contents,u=n.dataTypes;u[0]==="*";)u.shift(),o===t&&(o=n.mimeType||i.getResponseHeader("Content-Type"));if(o)for(e in h)if(h[e]&&h[e].test(o)){u.unshift(e);break}if(u[0]in r)f=u[0];else{for(e in r){if(!u[0]||n.converters[e+" "+u[0]]){f=e;break}s||(s=e)}f=f||s}if(f)return f!==u[0]&&u.unshift(f),r[f]}function vo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift(),u)if(u==="*")u=e;else if(e!=="*"&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]],f)){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function rf(){try{return new n.XMLHttpRequest}catch(t){}}function yo(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function ff(){return setTimeout(function(){it=t}),it=i.now()}function ef(n,t,i){for(var u,f=(ft[t]||[]).concat(ft["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function of(n,t,r){var e,o,s=0,l=pt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=it||ff(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;r<e;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),i<1&&e?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:it||ff(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),h=u.props;for(bo(h,u.opts.specialEasing);s<l;s++)if(e=pt[s].call(u,n,h,u.opts),e)return e;return i.map(h,ef,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function bo(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function ko(n,t,r){var u,a,v,c,e,y,s=this,l={},o=n.style,h=n.nodeType&&ut(n),f=i._data(n,"fxshow");r.queue||(e=i._queueHooks(n,"fx"),e.unqueued==null&&(e.unqueued=0,y=e.empty.fire,e.empty.fire=function(){e.unqueued||y()}),e.unqueued++,s.always(function(){s.always(function(){e.unqueued--;i.queue(n,"fx").length||e.empty.fire()})}));n.nodeType===1&&("height"in t||"width"in t)&&(r.overflow=[o.overflow,o.overflowX,o.overflowY],i.css(n,"display")==="inline"&&i.css(n,"float")==="none"&&(i.support.inlineBlockNeedsLayout&&au(n.nodeName)!=="inline"?o.zoom=1:o.display="inline-block"));r.overflow&&(o.overflow="hidden",i.support.shrinkWrapBlocks||s.always(function(){o.overflow=r.overflow[0];o.overflowX=r.overflow[1];o.overflowY=r.overflow[2]}));for(u in t)if(a=t[u],po.exec(a)){if(delete t[u],v=v||a==="toggle",a===(h?"hide":"show"))continue;l[u]=f&&f[u]||i.style(n,u)}if(!i.isEmptyObject(l)){f?"hidden"in f&&(h=f.hidden):f=i._data(n,"fxshow",{});v&&(f.hidden=!h);h?i(n).show():s.done(function(){i(n).hide()});s.done(function(){var t;i._removeData(n,"fxshow");for(t in l)i.style(n,t,l[t])});for(u in l)c=ef(h?f[u]:0,u,s),u in f||(f[u]=c.start,h&&(c.end=c.start,c.start=u==="width"||u==="height"?1:0))}}function f(n,t,i,r,u){return new f.prototype.init(n,t,i,r,u)}function wt(n,t){var r,i={height:n},u=0;for(t=t?1:0;u<4;u+=2-t)r=p[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function sf(n){return i.isWindow(n)?n:n.nodeType===9?n.defaultView||n.parentWindow:!1}var et,bi,o=typeof t,hf=n.location,r=n.document,ki=r.documentElement,cf=n.jQuery,lf=n.$,ot={},b=[],bt="1.10.2",di=b.concat,kt=b.push,l=b.slice,gi=b.indexOf,af=ot.toString,k=ot.hasOwnProperty,dt=bt.trim,i=function(n,t){return new i.fn.init(n,t,bi)},st=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,s=/\S+/g,vf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,yf=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,nr=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,pf=/^[\],:{}\s]*$/,wf=/(?:^|:|,)(?:\s*\[)+/g,bf=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,kf=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,df=/^-ms-/,gf=/-([\da-z])/gi,ne=function(n,t){return t.toUpperCase()},h=function(n){(r.addEventListener||n.type==="load"||r.readyState==="complete")&&(tr(),i.ready())},tr=function(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",h,!1),n.removeEventListener("load",h,!1)):(r.detachEvent("onreadystatechange",h),n.detachEvent("onload",h))},ni,ir,rr,wi,at,nt,tt,tf,vt;i.fn=i.prototype={jquery:bt,constructor:i,init:function(n,u,f){var e,o;if(!n)return this;if(typeof n=="string"){if(e=n.charAt(0)==="<"&&n.charAt(n.length-1)===">"&&n.length>=3?[null,n,null]:yf.exec(n),e&&(e[1]||!u)){if(e[1]){if(u=u instanceof i?u[0]:u,i.merge(this,i.parseHTML(e[1],u&&u.nodeType?u.ownerDocument||u:r,!0)),nr.test(e[1])&&i.isPlainObject(u))for(e in u)i.isFunction(this[e])?this[e](u[e]):this.attr(e,u[e]);return this}if(o=r.getElementById(e[2]),o&&o.parentNode){if(o.id!==e[2])return f.find(n);this.length=1;this[0]=o}return this.context=r,this.selector=n,this}return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n)}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",length:0,toArray:function(){return l.call(this)},get:function(n){return n==null?this.toArray():n<0?this[this.length+n]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.ready.promise().done(n),this},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:kt,sort:[].sort,splice:[].splice};i.fn.init.prototype=i.fn;i.extend=i.fn.extend=function(){var u,o,r,e,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for(typeof n=="boolean"&&(c=n,n=arguments[1]||{},f=2),typeof n=="object"||i.isFunction(n)||(n={}),l===f&&(n=this,--f);f<l;f++)if((s=arguments[f])!=null)for(e in s)(u=n[e],r=s[e],n!==r)&&(c&&r&&(i.isPlainObject(r)||(o=i.isArray(r)))?(o?(o=!1,h=u&&i.isArray(u)?u:[]):h=u&&i.isPlainObject(u)?u:{},n[e]=i.extend(c,h,r)):r!==t&&(n[e]=r));return n};i.extend({expando:"jQuery"+(bt+Math.random()).replace(/\D/g,""),noConflict:function(t){return n.$===i&&(n.$=lf),t&&n.jQuery===i&&(n.jQuery=cf),i},isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!r.body)return setTimeout(i.ready);(i.isReady=!0,n!==!0&&--i.readyWait>0)||(et.resolveWith(r,[i]),i.fn.trigger&&i(r).trigger("ready").off("ready"))}},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray||function(n){return i.type(n)==="array"},isWindow:function(n){return n!=null&&n==n.window},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return n==null?String(n):typeof n=="object"||typeof n=="function"?ot[af.call(n)]||"object":typeof n},isPlainObject:function(n){var r;if(!n||i.type(n)!=="object"||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!k.call(n,"constructor")&&!k.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(i.support.ownLast)for(r in n)return k.call(n,r);for(r in n);return r===t||k.call(n,r)},isEmptyObject:function(n){for(var t in n)return!1;return!0},error:function(n){throw new Error(n);},parseHTML:function(n,t,u){if(!n||typeof n!="string")return null;typeof t=="boolean"&&(u=t,t=!1);t=t||r;var f=nr.exec(n),e=!u&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&i(e).remove(),i.merge([],f.childNodes))},parseJSON:function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t);if(t===null)return t;if(typeof t=="string"&&(t=i.trim(t),t&&pf.test(t.replace(bf,"@").replace(kf,"]").replace(wf,""))))return new Function("return "+t)();i.error("Invalid JSON: "+t)},parseXML:function(r){var u,f;if(!r||typeof r!="string")return null;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return u&&u.documentElement&&!u.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(df,"ms-").replace(gf,ne)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=gt(n);if(i){if(e){for(;r<f;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;r<f;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:dt&&!dt.call("﻿ ")?function(n){return n==null?"":dt.call(n)}:function(n){return n==null?"":(n+"").replace(vf,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(gt(Object(n))?i.merge(r,typeof n=="string"?[n]:n):kt.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(gi)return gi.call(t,n,i);for(r=t.length,i=i?i<0?Math.max(0,r+i):i:0;i<r;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,i){var f=i.length,u=n.length,r=0;if(typeof f=="number")for(;r<f;r++)n[u++]=i[r];else while(i[r]!==t)n[u++]=i[r++];return n.length=u,n},grep:function(n,t,i){var u,f=[],r=0,e=n.length;for(i=!!i;r<e;r++)u=!!t(n[r],r),i!==u&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=gt(n),f=[];if(o)for(;r<e;r++)u=t(n[r],r,i),u!=null&&(f[f.length]=u);else for(r in n)u=t(n[r],r,i),u!=null&&(f[f.length]=u);return di.apply([],f)},guid:1,proxy:function(n,r){var f,u,e;return(typeof r=="string"&&(e=n[r],r=n,n=e),!i.isFunction(n))?t:(f=l.call(arguments,2),u=function(){return n.apply(r||this,f.concat(l.call(arguments)))},u.guid=n.guid=n.guid||i.guid++,u)},access:function(n,r,u,f,e,o,s){var h=0,l=n.length,c=u==null;if(i.type(u)==="object"){e=!0;for(h in u)i.access(n,r,h,u[h],!0,o,s)}else if(f!==t&&(e=!0,i.isFunction(f)||(s=!0),c&&(s?(r.call(n,f),r=null):(c=r,r=function(n,t,r){return c.call(i(n),r)})),r))for(;h<l;h++)r(n[h],u,s?f:f.call(n[h],h,r(n[h],u)));return e?n:c?r.call(n):l?r(n[0],u):o},now:function(){return(new Date).getTime()},swap:function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f}});i.ready.promise=function(t){if(!et)if(et=i.Deferred(),r.readyState==="complete")setTimeout(i.ready);else if(r.addEventListener)r.addEventListener("DOMContentLoaded",h,!1),n.addEventListener("load",h,!1);else{r.attachEvent("onreadystatechange",h);n.attachEvent("onload",h);var u=!1;try{u=n.frameElement==null&&r.documentElement}catch(e){}u&&u.doScroll&&function f(){if(!i.isReady){try{u.doScroll("left")}catch(n){return setTimeout(f,50)}tr();i.ready()}}()}return et.promise(t)};i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ot["[object "+t+"]"]=t.toLowerCase()});bi=i(r);
/*!
 * Sizzle CSS Selector Engine v1.10.2
 * http://sizzlejs.com/
 *
 * Copyright 2013 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2013-07-03
 */
(function(n,t){function u(n,t,i,r){var p,u,f,l,w,a,k,c,g,d;if((t?t.ownerDocument||t:y)!==s&&nt(t),t=t||s,i=i||[],!n||typeof n!="string")return i;if((l=t.nodeType)!==1&&l!==9)return[];if(v&&!r){if(p=or.exec(n))if(f=p[1]){if(l===9)if(u=t.getElementById(f),u&&u.parentNode){if(u.id===f)return i.push(u),i}else return i;else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(f))&&ot(t,u)&&u.id===f)return i.push(u),i}else{if(p[2])return b.apply(i,t.getElementsByTagName(n)),i;if((f=p[3])&&e.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(f)),i}if(e.qsa&&(!h||!h.test(n))){if(c=k=o,g=t,d=l===9&&n,l===1&&t.nodeName.toLowerCase()!=="object"){for(a=pt(n),(k=t.getAttribute("id"))?c=k.replace(cr,"\\$&"):t.setAttribute("id",c),c="[id='"+c+"'] ",w=a.length;w--;)a[w]=c+wt(a[w]);g=ti.test(n)&&t.parentNode||t;d=a.join(",")}if(d)try{return b.apply(i,g.querySelectorAll(d)),i}catch(tt){}finally{k||t.removeAttribute("id")}}}return pr(n.replace(vt,"$1"),t,i,r)}function ri(){function n(i,u){return t.push(i+=" ")>r.cacheLength&&delete n[t.shift()],n[i]=u}var t=[];return n}function c(n){return n[o]=!0,n}function l(n){var t=s.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ui(n,t){for(var u=n.split("|"),i=n.length;i--;)r.attrHandle[u[i]]=t}function bi(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||vi)-(~n.sourceIndex||vi);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function rt(n){return c(function(t){return t=+t,c(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ki(){}function pt(n,t){var e,f,s,o,i,h,c,l=li[n+" "];if(l)return t?0:l.slice(0);for(i=n,h=[],c=r.preFilter;i;){(!e||(f=ir.exec(i)))&&(f&&(i=i.slice(f[0].length)||i),h.push(s=[]));e=!1;(f=rr.exec(i))&&(e=f.shift(),s.push({value:e,type:f[0].replace(vt," ")}),i=i.slice(e.length));for(o in r.filter)(f=yt[o].exec(i))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),i=i.slice(e.length));if(!e)break}return t?i.length:i?u.error(n):li(n,h).slice(0)}function wt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function fi(n,t,i){var r=t.dir,u=i&&r==="parentNode",f=di++;return t.first?function(t,i,f){while(t=t[r])if(t.nodeType===1||u)return n(t,i,f)}:function(t,i,e){var h,s,c,l=p+" "+f;if(e){while(t=t[r])if((t.nodeType===1||u)&&n(t,i,e))return!0}else while(t=t[r])if(t.nodeType===1||u)if(c=t[o]||(t[o]={}),(s=c[r])&&s[0]===l){if((h=s[1])===!0||h===ht)return h===!0}else if(s=c[r]=[l],s[1]=n(t,i,e)||ht,s[1]===!0)return!0}}function ei(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function oi(n,t,i,r,u,f){return r&&!r[o]&&(r=oi(r)),u&&!u[o]&&(u=oi(u,f)),c(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||yr(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?bt(k,p,n,o,s):k,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=bt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?it.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=bt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function si(n){for(var s,u,i,e=n.length,h=r.relative[n[0].type],c=h||r.relative[" "],t=h?1:0,l=fi(function(n){return n===s},c,!0),a=fi(function(n){return it.call(s,n)>-1},c,!0),f=[function(n,t,i){return!h&&(i||t!==lt)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];t<e;t++)if(u=r.relative[n[t].type])f=[fi(ei(f),u)];else{if(u=r.filter[n[t].type].apply(null,n[t].matches),u[o]){for(i=++t;i<e;i++)if(r.relative[n[i].type])break;return oi(t>1&&ei(f),t>1&&wt(n.slice(0,t-1).concat({value:n[t-2].type===" "?"*":""})).replace(vt,"$1"),u,t<i&&si(n.slice(t,i)),i<e&&si(n=n.slice(i)),i<e&&wt(n))}f.push(u)}return ei(f)}function vr(n,t){var f=0,i=t.length>0,e=n.length>0,o=function(o,h,c,l,a){var y,g,k,w=[],d=0,v="0",nt=o&&[],tt=a!=null,it=lt,ut=o||e&&r.find.TAG("*",a&&h.parentNode||h),rt=p+=it==null?1:Math.random()||.1;for(tt&&(lt=h!==s&&h,ht=f);(y=ut[v])!=null;v++){if(e&&y){for(g=0;k=n[g++];)if(k(y,h,c)){l.push(y);break}tt&&(p=rt,ht=++f)}i&&((y=!k&&y)&&d--,o&&nt.push(y))}if(d+=v,i&&v!==d){for(g=0;k=t[g++];)k(nt,w,h,c);if(o){if(d>0)while(v--)nt[v]||w[v]||(w[v]=nr.call(l));w=bt(w)}b.apply(l,w);tt&&!o&&w.length>0&&d+t.length>1&&u.uniqueSort(l)}return tt&&(p=rt,lt=it),nt};return i?c(o):o}function yr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function pr(n,t,i,u){var s,f,o,c,l,h=pt(n);if(!u&&h.length===1){if(f=h[0]=h[0].slice(0),f.length>2&&(o=f[0]).type==="ID"&&e.getById&&t.nodeType===9&&v&&r.relative[f[1].type]){if(t=(r.find.ID(o.matches[0].replace(k,d),t)||[])[0],!t)return i;n=n.slice(f.shift().value.length)}for(s=yt.needsContext.test(n)?0:f.length;s--;){if(o=f[s],r.relative[c=o.type])break;if((l=r.find[c])&&(u=l(o.matches[0].replace(k,d),ti.test(f[0].type)&&t.parentNode||t))){if(f.splice(s,1),n=u.length&&wt(f),!n)return b.apply(i,u),i;break}}}return kt(n,h)(u,t,!v,i,ti.test(n)),i}var ut,e,ht,r,ct,hi,kt,lt,g,nt,s,a,v,h,tt,at,ot,o="sizzle"+-new Date,y=n.document,p=0,di=0,ci=ri(),li=ri(),ai=ri(),ft=!1,dt=function(n,t){return n===t?(ft=!0,0):0},st=typeof t,vi=-2147483648,gi={}.hasOwnProperty,w=[],nr=w.pop,tr=w.push,b=w.push,yi=w.slice,it=w.indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(this[t]===n)return t;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",f="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",pi=et.replace("w","w#"),wi="\\["+f+"*("+et+")"+f+"*(?:([*^$|!~]?=)"+f+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+pi+")|)|)"+f+"*\\]",ni=":("+et+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+wi.replace(3,8)+")*)|.*)\\)|)",vt=new RegExp("^"+f+"+|((?:^|[^\\\\])(?:\\\\.)*)"+f+"+$","g"),ir=new RegExp("^"+f+"*,"+f+"*"),rr=new RegExp("^"+f+"*([>+~]|"+f+")"+f+"*"),ti=new RegExp(f+"*[+~]"),ur=new RegExp("="+f+"*([^\\]'\"]*)"+f+"*\\]","g"),fr=new RegExp(ni),er=new RegExp("^"+pi+"$"),yt={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et.replace("w","w*")+")"),ATTR:new RegExp("^"+wi),PSEUDO:new RegExp("^"+ni),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+f+"*(even|odd|(([+-]|)(\\d*)n|)"+f+"*(?:([+-]|)"+f+"*(\\d+)|))"+f+"*\\)|)","i"),bool:new RegExp("^(?:"+gt+")$","i"),needsContext:new RegExp("^"+f+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+f+"*((?:-\\d)?\\d*)"+f+"*\\)|)(?=[^-]|$)","i")},ii=/^[^{]+\{\s*\[native \w/,or=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,cr=/'|\\/g,k=new RegExp("\\\\([\\da-f]{1,6}"+f+"?|("+f+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)};try{b.apply(w=yi.call(y.childNodes),y.childNodes);w[y.childNodes.length].nodeType}catch(wr){b={apply:w.length?function(n,t){tr.apply(n,yi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}hi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};e=u.support={};nt=u.setDocument=function(n){var t=n?n.ownerDocument||n:y,i=t.defaultView;return t===s||t.nodeType!==9||!t.documentElement?s:(s=t,a=t.documentElement,v=!hi(t),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){nt()}),e.attributes=l(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=l(function(n){return n.appendChild(t.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=l(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",n.getElementsByClassName("i").length===2}),e.getById=l(function(n){return a.appendChild(n).id=o,!t.getElementsByName||!t.getElementsByName(o).length}),e.getById?(r.find.ID=function(n,t){if(typeof t.getElementById!==st&&v){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},r.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==st&&n.getAttributeNode("id");return i&&i.value===t}}),r.find.TAG=e.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!==st)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},r.find.CLASS=e.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!==st&&v)return t.getElementsByClassName(n)},tt=[],h=[],(e.qsa=ii.test(t.querySelectorAll))&&(l(function(n){n.innerHTML="<select><option selected=''><\/option><\/select>";n.querySelectorAll("[selected]").length||h.push("\\["+f+"*(?:value|"+gt+")");n.querySelectorAll(":checked").length||h.push(":checked")}),l(function(n){var i=t.createElement("input");i.setAttribute("type","hidden");n.appendChild(i).setAttribute("t","");n.querySelectorAll("[t^='']").length&&h.push("[*^$]="+f+"*(?:''|\"\")");n.querySelectorAll(":enabled").length||h.push(":enabled",":disabled");n.querySelectorAll("*,:x");h.push(",.*:")})),(e.matchesSelector=ii.test(at=a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&l(function(n){e.disconnectedMatch=at.call(n,"div");at.call(n,"[s!='']:x");tt.push("!=",ni)}),h=h.length&&new RegExp(h.join("|")),tt=tt.length&&new RegExp(tt.join("|")),ot=ii.test(a.contains)||a.compareDocumentPosition?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},dt=a.compareDocumentPosition?function(n,i){if(n===i)return ft=!0,0;var r=i.compareDocumentPosition&&n.compareDocumentPosition&&n.compareDocumentPosition(i);return r?r&1||!e.sortDetached&&i.compareDocumentPosition(n)===r?n===t||ot(y,n)?-1:i===t||ot(y,i)?1:g?it.call(g,n)-it.call(g,i):0:r&4?-1:1:n.compareDocumentPosition?-1:1}:function(n,i){var r,u=0,o=n.parentNode,s=i.parentNode,f=[n],e=[i];if(n===i)return ft=!0,0;if(o&&s){if(o===s)return bi(n,i)}else return n===t?-1:i===t?1:o?-1:s?1:g?it.call(g,n)-it.call(g,i):0;for(r=n;r=r.parentNode;)f.unshift(r);for(r=i;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?bi(f[u],e[u]):f[u]===y?-1:e[u]===y?1:0},t)};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==s&&nt(n),t=t.replace(ur,"='$1']"),e.matchesSelector&&v&&(!tt||!tt.test(t))&&(!h||!h.test(t)))try{var i=at.call(n,t);if(i||e.disconnectedMatch||n.document&&n.document.nodeType!==11)return i}catch(r){}return u(t,s,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==s&&nt(n),ot(n,t)};u.attr=function(n,i){(n.ownerDocument||n)!==s&&nt(n);var f=r.attrHandle[i.toLowerCase()],u=f&&gi.call(r.attrHandle,i.toLowerCase())?f(n,i,!v):t;return u===t?e.attributes||!v?n.getAttribute(i):(u=n.getAttributeNode(i))&&u.specified?u.value:null:u};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ft=!e.detectDuplicates,g=!e.sortStable&&n.slice(0),n.sort(dt),ft){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return n};ct=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=ct(n)}else if(t===3||t===4)return n.nodeValue}else for(;r=n[u];u++)i+=ct(r);return i};r=u.selectors={cacheLength:50,createPseudo:c,match:yt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,d),n[3]=(n[4]||n[5]||"").replace(k,d),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var r,i=!n[5]&&n[2];return yt.CHILD.test(n[0])?null:(n[3]&&n[4]!==t?n[2]=n[4]:i&&fr.test(i)&&(r=pt(i,!0))&&(r=i.indexOf(")",i.length-r)-i.length)&&(n[0]=n[0].slice(0,r),n[2]=i.slice(0,r)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,d).toLowerCase();return n==="*"?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=ci[n+" "];return t||(t=new RegExp("(^|"+f+")"+n+"("+f+"|$)"))&&ci(n,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute!==st&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",e=n.slice(-4)!=="last",f=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,v,w,b=s!==e?"nextSibling":"previousSibling",y=t.parentNode,g=f&&t.nodeName.toLowerCase(),d=!h&&!f;if(y){if(s){while(b){for(c=t;c=c[b];)if(f?c.nodeName.toLowerCase()===g:c.nodeType===1)return!1;w=b=n==="only"&&!w&&"nextSibling"}return!0}if(w=[e?y.firstChild:y.lastChild],e&&d){for(k=y[o]||(y[o]={}),a=k[n]||[],v=a[0]===p&&a[1],l=a[0]===p&&a[2],c=v&&y.childNodes[v];c=++v&&c&&c[b]||(l=v=0)||w.pop();)if(c.nodeType===1&&++l&&c===t){k[n]=[p,v,l];break}}else if(d&&(a=(t[o]||(t[o]={}))[n])&&a[0]===p)l=a[1];else while(c=++v&&c&&c[b]||(l=v=0)||w.pop())if((f?c.nodeName.toLowerCase()===g:c.nodeType===1)&&++l&&(d&&((c[o]||(c[o]={}))[n]=[p,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,t){var f,i=r.pseudos[n]||r.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return i[o]?i(t):i.length>1?(f=[n,n,"",t],r.setFilters.hasOwnProperty(n.toLowerCase())?c(function(n,r){for(var u,f=i(n,t),e=f.length;e--;)u=it.call(n,f[e]),n[u]=!(r[u]=f[e])}):function(n){return i(n,0,f)}):i}},pseudos:{not:c(function(n){var i=[],r=[],t=kt(n.replace(vt,"$1"));return t[o]?c(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:c(function(n){return function(t){return u(n,t).length>0}}),contains:c(function(n){return function(t){return(t.textContent||t.innerText||ct(t)).indexOf(n)>-1}}),lang:c(function(n){return er.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===a},focus:function(n){return n===s.activeElement&&(!s.hasFocus||s.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeName>"@"||n.nodeType===3||n.nodeType===4)return!1;return!0},parent:function(n){return!r.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()===n.type)},first:rt(function(){return[0]}),last:rt(function(n,t){return[t-1]}),eq:rt(function(n,t,i){return[i<0?i+t:i]}),even:rt(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:rt(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:rt(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:rt(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};r.pseudos.nth=r.pseudos.eq;for(ut in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[ut]=lr(ut);for(ut in{submit:!0,reset:!0})r.pseudos[ut]=ar(ut);ki.prototype=r.filters=r.pseudos;r.setFilters=new ki;kt=u.compile=function(n,t){var r,u=[],f=[],i=ai[n+" "];if(!i){for(t||(t=pt(n)),r=t.length;r--;)i=si(t[r]),i[o]?u.push(i):f.push(i);i=ai(n,vr(f,u))}return i};e.sortStable=o.split("").sort(dt).join("")===o;e.detectDuplicates=ft;nt();e.sortDetached=l(function(n){return n.compareDocumentPosition(s.createElement("div"))&1});l(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild.getAttribute("href")==="#"})||ui("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,t.toLowerCase()==="type"?1:2)});e.attributes&&l(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ui("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue});l(function(n){return n.getAttribute("disabled")==null})||ui(gt,function(n,t,i){var r;if(!i)return(r=n.getAttributeNode(t))&&r.specified?r.value:n[t]===!0?t.toLowerCase():null});i.find=u;i.expr=u.selectors;i.expr[":"]=i.expr.pseudos;i.unique=u.uniqueSort;i.text=u.getText;i.isXMLDoc=u.isXML;i.contains=u.contains})(n);ni={};i.Callbacks=function(n){n=typeof n=="string"?ni[n]||te(n):i.extend({},n);var s,f,c,e,o,l,r=[],u=!n.once&&[],a=function(t){for(f=n.memory&&t,c=!0,o=l||0,l=0,e=r.length,s=!0;r&&o<e;o++)if(r[o].apply(t[0],t[1])===!1&&n.stopOnFalse){f=!1;break}s=!1;r&&(u?u.length&&a(u.shift()):f?r=[]:h.disable())},h={add:function(){if(r){var t=r.length;(function u(t){i.each(t,function(t,f){var e=i.type(f);e==="function"?n.unique&&h.has(f)||r.push(f):f&&f.length&&e!=="string"&&u(f)})})(arguments);s?e=r.length:f&&(l=t,a(f))}return this},remove:function(){return r&&i.each(arguments,function(n,t){for(var u;(u=i.inArray(t,r,u))>-1;)r.splice(u,1),s&&(u<=e&&e--,u<=o&&o--)}),this},has:function(n){return n?i.inArray(n,r)>-1:!!(r&&r.length)},empty:function(){return r=[],e=0,this},disable:function(){return r=u=f=t,this},disabled:function(){return!r},lock:function(){return u=t,f||h.disable(),this},locked:function(){return!u},fireWith:function(n,t){return r&&(!c||u)&&(t=t||[],t=[n,t.slice?t.slice():t],s?u.push(t):a(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var s=e[0],o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[s+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return n!=null?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[n^1][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=r!==1||n&&i.isFunction(n.promise)?r:0,f=e===1?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);t<r;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.support=function(t){var a,e,f,h,c,l,v,y,s,u=r.createElement("div");if(u.setAttribute("className","t"),u.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",a=u.getElementsByTagName("*")||[],e=u.getElementsByTagName("a")[0],!e||!e.style||!a.length)return t;h=r.createElement("select");l=h.appendChild(r.createElement("option"));f=u.getElementsByTagName("input")[0];e.style.cssText="top:1px;float:left;opacity:.5";t.getSetAttribute=u.className!=="t";t.leadingWhitespace=u.firstChild.nodeType===3;t.tbody=!u.getElementsByTagName("tbody").length;t.htmlSerialize=!!u.getElementsByTagName("link").length;t.style=/top/.test(e.getAttribute("style"));t.hrefNormalized=e.getAttribute("href")==="/a";t.opacity=/^0.5/.test(e.style.opacity);t.cssFloat=!!e.style.cssFloat;t.checkOn=!!f.value;t.optSelected=l.selected;t.enctype=!!r.createElement("form").enctype;t.html5Clone=r.createElement("nav").cloneNode(!0).outerHTML!=="<:nav><\/:nav>";t.inlineBlockNeedsLayout=!1;t.shrinkWrapBlocks=!1;t.pixelPosition=!1;t.deleteExpando=!0;t.noCloneEvent=!0;t.reliableMarginRight=!0;t.boxSizingReliable=!0;f.checked=!0;t.noCloneChecked=f.cloneNode(!0).checked;h.disabled=!0;t.optDisabled=!l.disabled;try{delete u.test}catch(p){t.deleteExpando=!1}f=r.createElement("input");f.setAttribute("value","");t.input=f.getAttribute("value")==="";f.value="t";f.setAttribute("type","radio");t.radioValue=f.value==="t";f.setAttribute("checked","t");f.setAttribute("name","t");c=r.createDocumentFragment();c.appendChild(f);t.appendChecked=f.checked;t.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked;u.attachEvent&&(u.attachEvent("onclick",function(){t.noCloneEvent=!1}),u.cloneNode(!0).click());for(s in{submit:!0,change:!0,focusin:!0})u.setAttribute(v="on"+s,"t"),t[s+"Bubbles"]=v in n||u.attributes[v].expando===!1;u.style.backgroundClip="content-box";u.cloneNode(!0).style.backgroundClip="";t.clearCloneStyle=u.style.backgroundClip==="content-box";for(s in i(t))break;return t.ownLast=s!=="0",i(function(){var h,e,f,c="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",s=r.getElementsByTagName("body")[0];s&&(h=r.createElement("div"),h.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(h).appendChild(u),u.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",f=u.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",y=f[0].offsetHeight===0,f[0].style.display="",f[1].style.display="none",t.reliableHiddenOffsets=y&&f[0].offsetHeight===0,u.innerHTML="",u.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",i.swap(s,s.style.zoom!=null?{zoom:1}:{},function(){t.boxSizing=u.offsetWidth===4}),n.getComputedStyle&&(t.pixelPosition=(n.getComputedStyle(u,null)||{}).top!=="1%",t.boxSizingReliable=(n.getComputedStyle(u,null)||{width:"4px"}).width==="4px",e=u.appendChild(r.createElement("div")),e.style.cssText=u.style.cssText=c,e.style.marginRight=e.style.width="0",u.style.width="1px",t.reliableMarginRight=!parseFloat((n.getComputedStyle(e,null)||{}).marginRight)),typeof u.style.zoom!==o&&(u.innerHTML="",u.style.cssText=c+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=u.offsetWidth===3,u.style.display="block",u.innerHTML="<div><\/div>",u.firstChild.style.width="5px",t.shrinkWrapBlocks=u.offsetWidth!==3,t.inlineBlockNeedsLayout&&(s.style.zoom=1)),s.removeChild(h),h=u=f=e=null)}),a=h=c=l=e=f=null,t}({});ir=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/;rr=/([A-Z])/g;i.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ti(n)},data:function(n,t,i){return ur(n,t,i)},removeData:function(n,t){return fr(n,t)},_data:function(n,t,i){return ur(n,t,i,!0)},_removeData:function(n,t){return fr(n,t,!0)},acceptData:function(n){if(n.nodeType&&n.nodeType!==1&&n.nodeType!==9)return!1;var t=n.nodeName&&i.noData[n.nodeName.toLowerCase()];return!t||t!==!0&&n.getAttribute("classid")===t}});i.fn.extend({data:function(n,r){var e,f,o=null,s=0,u=this[0];if(n===t){if(this.length&&(o=i.data(u),u.nodeType===1&&!i._data(u,"parsedAttrs"))){for(e=u.attributes;s<e.length;s++)f=e[s].name,f.indexOf("data-")===0&&(f=i.camelCase(f.slice(5)),er(u,f,o[f]));i._data(u,"parsedAttrs",!0)}return o}return typeof n=="object"?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,r)}):u?er(u,n,i.data(u,n)):null},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,t,r){var u;if(n)return t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};u==="inprogress"&&(u=r.shift(),e--);u&&(t==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,r){var u=2;return(typeof n!="string"&&(r=n,n="fx",u--),arguments.length<u)?i.queue(this[0],n):r===t?this:this.each(function(){var t=i.queue(this,n,r);i._queueHooks(this,n);n==="fx"&&t[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},delay:function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,r){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for(typeof n!="string"&&(r=n,n=t),n=n||"fx";s--;)u=i._data(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(r)}});var d,or,ii=/[\t\r\n\f]/g,ie=/\r/g,re=/^(?:input|select|textarea|button|object)$/i,ue=/^(?:a|area)$/i,ri=/^(?:checked|selected)$/i,a=i.support.getSetAttribute,ht=i.support.input;i.fn.extend({attr:function(n,t){return i.access(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})},prop:function(n,t){return i.access(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=t;delete this[n]}catch(i){}})},addClass:function(n){var e,t,r,u,o,f=0,h=this.length,c=typeof n=="string"&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];f<h;f++)if(t=this[f],r=t.nodeType===1&&(t.className?(" "+t.className+" ").replace(ii," "):" "),r){for(o=0;u=e[o++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");t.className=i.trim(r)}return this},removeClass:function(n){var e,r,t,u,o,f=0,h=this.length,c=arguments.length===0||typeof n=="string"&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];f<h;f++)if(r=this[f],t=r.nodeType===1&&(r.className?(" "+r.className+" ").replace(ii," "):""),t){for(o=0;u=e[o++];)while(t.indexOf(" "+u+" ")>=0)t=t.replace(" "+u+" "," ");r.className=n?i.trim(t):""}return this},toggleClass:function(n,t){var r=typeof n;return typeof t=="boolean"&&r==="string"?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if(r==="string")for(var t,f=0,u=i(this),e=n.match(s)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(r===o||r==="boolean")&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;t<r;t++)if(this[t].nodeType===1&&(" "+this[t].className+" ").replace(ii," ").indexOf(i)>=0)return!0;return!1},val:function(n){var u,r,e,f=this[0];return arguments.length?(e=i.isFunction(n),this.each(function(u){var f;this.nodeType===1&&(f=e?n.call(this,u,i(this).val()):n,f==null?f="":typeof f=="number"?f+="":i.isArray(f)&&(f=i.map(f,function(n){return n==null?"":n+""})),r=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f))})):f?(r=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()],r&&"get"in r&&(u=r.get(f,"value"))!==t)?u:(u=f.value,typeof u=="string"?u.replace(ie,""):u==null?"":u):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return t!=null?t:n.text}},select:{get:function(n){for(var e,t,o=n.options,r=n.selectedIndex,u=n.type==="select-one"||r<0,s=u?null:[],h=u?r+1:o.length,f=r<0?h:u?r:0;f<h;f++)if(t=o[f],(t.selected||f===r)&&(i.support.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(e=i(t).val(),u)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i(r).val(),e)>=0)&&(u=!0);return u||(n.selectedIndex=-1),e}}},attr:function(n,r,u){var f,e,s=n.nodeType;if(n&&s!==3&&s!==8&&s!==2){if(typeof n.getAttribute===o)return i.prop(n,r,u);if(s===1&&i.isXMLDoc(n)||(r=r.toLowerCase(),f=i.attrHooks[r]||(i.expr.match.bool.test(r)?or:d)),u!==t)if(u===null)i.removeAttr(n,r);else return f&&"set"in f&&(e=f.set(n,u,r))!==t?e:(n.setAttribute(r,u+""),u);else return f&&"get"in f&&(e=f.get(n,r))!==null?e:(e=i.find.attr(n,r),e==null?t:e)}},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(s);if(f&&n.nodeType===1)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?ht&&a||!ri.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(a?r:u)},attrHooks:{type:{set:function(n,t){if(!i.support.radioValue&&t==="radio"&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(n,r,u){var e,f,s,o=n.nodeType;if(n&&o!==3&&o!==8&&o!==2)return s=o!==1||!i.isXMLDoc(n),s&&(r=i.propFix[r]||r,f=i.propHooks[r]),u!==t?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:n[r]=u:f&&"get"in f&&(e=f.get(n,r))!==null?e:n[r]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):re.test(n.nodeName)||ue.test(n.nodeName)&&n.href?0:-1}}}});or={set:function(n,t,r){return t===!1?i.removeAttr(n,r):ht&&a||!ri.test(r)?n.setAttribute(!a&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,r){var u=i.expr.attrHandle[r]||i.find.attr;i.expr.attrHandle[r]=ht&&a||!ri.test(r)?function(n,r,f){var e=i.expr.attrHandle[r],o=f?t:(i.expr.attrHandle[r]=t)!=u(n,r,f)?r.toLowerCase():null;return i.expr.attrHandle[r]=e,o}:function(n,r,u){return u?t:n[i.camelCase("default-"+r)]?r.toLowerCase():null}});ht&&a||(i.attrHooks.value={set:function(n,t,r){if(i.nodeName(n,"input"))n.defaultValue=t;else return d&&d.set(n,t,r)}});a||(d={set:function(n,i,r){var u=n.getAttributeNode(r);return u||n.setAttributeNode(u=n.ownerDocument.createAttribute(r)),u.value=i+="",r==="value"||i===n.getAttribute(r)?i:t}},i.expr.attrHandle.id=i.expr.attrHandle.name=i.expr.attrHandle.coords=function(n,i,r){var u;return r?t:(u=n.getAttributeNode(i))&&u.value!==""?u.value:null},i.valHooks.button={get:function(n,i){var r=n.getAttributeNode(i);return r&&r.specified?r.value:t},set:d.set},i.attrHooks.contenteditable={set:function(n,t,i){d.set(n,t===""?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]={set:function(n,i){if(i==="")return n.setAttribute(t,"auto"),i}}}));i.support.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});i.support.style||(i.attrHooks.style={get:function(n){return n.style.cssText||t},set:function(n,t){return n.style.cssText=t+""}});i.support.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.support.enctype||(i.propFix.enctype="encoding");i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}};i.support.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});var ui=/^(?:input|select|textarea)$/i,fe=/^key/,ee=/^(?:mouse|contextmenu)|click/,sr=/^(?:focusinfocus|focusoutblur)$/,hr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,r,u,f,e){var b,p,k,w,c,l,a,v,h,d,g,y=i._data(n);if(y){for(u.handler&&(w=u,u=w.handler,e=w.selector),u.guid||(u.guid=i.guid++),(p=y.events)||(p=y.events={}),(l=y.handle)||(l=y.handle=function(n){return typeof i!==o&&(!n||i.event.triggered!==n.type)?i.event.dispatch.apply(l.elem,arguments):t},l.elem=n),r=(r||"").match(s)||[""],k=r.length;k--;)(b=hr.exec(r[k])||[],h=g=b[1],d=(b[2]||"").split(".").sort(),h)&&(c=i.event.special[h]||{},h=(e?c.delegateType:c.bindType)||h,c=i.event.special[h]||{},a=i.extend({type:h,origType:g,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:d.join(".")},w),(v=p[h])||(v=p[h]=[],v.delegateCount=0,c.setup&&c.setup.call(n,f,d,l)!==!1||(n.addEventListener?n.addEventListener(h,l,!1):n.attachEvent&&n.attachEvent("on"+h,l))),c.add&&(c.add.call(n,a),a.handler.guid||(a.handler.guid=u.guid)),e?v.splice(v.delegateCount++,0,a):v.push(a),i.event.global[h]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,h,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(s)||[""],p=t.length;p--;){if(h=hr.exec(t[p])||[],e=k=h[1],w=(h[2]||"").split(".").sort(),!e){for(e in a)i.event.remove(n,e+t[p],r,u,!0);continue}for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],(f||k===o.origType)&&(!r||r.guid===o.guid)&&(!h||h.test(o.namespace))&&(!u||u===o.selector||u==="**"&&o.selector)&&(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(u,f,e,o){var a,v,s,w,l,c,b,p=[e||r],h=k.call(u,"type")?u.type:u,y=k.call(u,"namespace")?u.namespace.split("."):[];if((s=c=e=e||r,e.nodeType!==3&&e.nodeType!==8)&&!sr.test(h+i.event.triggered)&&(h.indexOf(".")>=0&&(y=h.split("."),h=y.shift(),y.sort()),v=h.indexOf(":")<0&&"on"+h,u=u[i.expando]?u:new i.Event(h,typeof u=="object"&&u),u.isTrigger=o?2:3,u.namespace=y.join("."),u.namespace_re=u.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=t,u.target||(u.target=e),f=f==null?[u]:i.makeArray(f,[u]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(w=l.delegateType||h,sr.test(w+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||r)&&p.push(c.defaultView||c.parentWindow||n)}for(b=0;(s=p[b++])&&!u.isPropagationStopped();)u.type=b>1?w:l.bindType||h,a=(i._data(s,"events")||{})[u.type]&&i._data(s,"handle"),a&&a.apply(s,f),a=v&&s[v],a&&i.acceptData(s)&&a.apply&&a.apply(s,f)===!1&&u.preventDefault();if(u.type=h,!o&&!u.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),f)===!1)&&i.acceptData(e)&&v&&e[h]&&!i.isWindow(e)){c=e[v];c&&(e[v]=null);i.event.triggered=h;try{e[h]()}catch(d){}i.event.triggered=t;c&&(e[v]=c)}return u.result}},dispatch:function(n){n=i.event.fix(n);var o,e,r,u,s,h=[],c=l.call(arguments),a=(i._data(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,a),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(r=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(r.namespace))&&(n.handleObj=r,n.data=r.data,e=((i.event.special[r.origType]||{}).handle||r.handler).apply(u.elem,c),e!==t&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,r){var e,o,f,s,c=[],h=r.delegateCount,u=n.target;if(h&&u.nodeType&&(!n.button||n.type!=="click"))for(;u!=this;u=u.parentNode||this)if(u.nodeType===1&&(u.disabled!==!0||n.type!=="click")){for(f=[],s=0;s<h;s++)o=r[s],e=o.selector+" ",f[e]===t&&(f[e]=o.needsContext?i(e,this).index(u)>=0:i.find(e,this,null,[u]).length),f[e]&&f.push(o);f.length&&c.push({elem:u,handlers:f})}return h<r.length&&c.push({elem:this,handlers:r.slice(h)}),c},fix:function(n){if(n[i.expando])return n;var e,o,s,u=n.type,f=n,t=this.fixHooks[u];for(t||(this.fixHooks[u]=t=ee.test(u)?this.mouseHooks:fe.test(u)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||r),n.target.nodeType===3&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return n.which==null&&(n.which=t.charCode!=null?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,i){var u,o,f,e=i.button,s=i.fromElement;return n.pageX==null&&i.clientX!=null&&(o=n.target.ownerDocument||r,f=o.documentElement,u=o.body,n.pageX=i.clientX+(f&&f.scrollLeft||u&&u.scrollLeft||0)-(f&&f.clientLeft||u&&u.clientLeft||0),n.pageY=i.clientY+(f&&f.scrollTop||u&&u.scrollTop||0)-(f&&f.clientTop||u&&u.clientTop||0)),!n.relatedTarget&&s&&(n.relatedTarget=s===n.target?i.toElement:s),n.which||e===t||(n.which=e&1?1:e&2?3:e&4?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cr()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===cr()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(i.nodeName(this,"input")&&this.type==="checkbox"&&this.click)return this.click(),!1},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==t&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===o&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault()?ct:g):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||i.now();this[i.expando]=!0};i.Event.prototype={isDefaultPrevented:g,isPropagationStopped:g,isImmediatePropagationStopped:g,preventDefault:function(){var n=this.originalEvent;(this.isDefaultPrevented=ct,n)&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;(this.isPropagationStopped=ct,n)&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ct;this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.support.submitBubbles||(i.event.special.submit={setup:function(){if(i.nodeName(this,"form"))return!1;i.event.add(this,"click._submit keypress._submit",function(n){var u=n.target,r=i.nodeName(u,"input")||i.nodeName(u,"button")?u.form:t;r&&!i._data(r,"submitBubbles")&&(i.event.add(r,"submit._submit",function(n){n._submit_bubble=!0}),i._data(r,"submitBubbles",!0))})},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){if(i.nodeName(this,"form"))return!1;i.event.remove(this,"._submit")}});i.support.changeBubbles||(i.event.special.change={setup:function(){if(ui.test(this.nodeName))return(this.type==="checkbox"||this.type==="radio")&&(i.event.add(this,"propertychange._change",function(n){n.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1;i.event.add(this,"beforeactivate._change",function(n){var t=n.target;ui.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!ui.test(this.nodeName)}});i.support.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=0,f=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){u++==0&&r.addEventListener(n,f,!0)},teardown:function(){--u==0&&r.removeEventListener(n,f,!0)}}});i.fn.extend({on:function(n,r,u,f,e){var s,o;if(typeof n=="object"){typeof r!="string"&&(u=u||r,r=t);for(s in n)this.on(s,r,u,n[s],e);return this}if(u==null&&f==null?(f=r,u=r=t):f==null&&(typeof r=="string"?(f=u,u=t):(f=u,u=r,r=t)),f===!1)f=g;else if(!f)return this;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),this.each(function(){i.event.add(this,n,f,u,r)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,r,u){var f,e;if(n&&n.preventDefault&&n.handleObj)return f=n.handleObj,i(n.delegateTarget).off(f.namespace?f.origType+"."+f.namespace:f.origType,f.selector,f.handler),this;if(typeof n=="object"){for(e in n)this.off(e,r,n[e]);return this}return(r===!1||typeof r=="function")&&(u=r,r=t),u===!1&&(u=g),this.each(function(){i.event.remove(this,n,u,r)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});var oe=/^.[^:#\[\.,]*$/,se=/^(?:parents|prev(?:Until|All))/,lr=i.expr.match.needsContext,he={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if(typeof n!="string")return this.pushStack(i(n).filter(function(){for(t=0;t<f;t++)if(i.contains(u[t],this))return!0}));for(t=0;t<f;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;t<u;t++)if(i.contains(this,r[t]))return!0})},not:function(n){return this.pushStack(fi(this,n||[],!0))},filter:function(n){return this.pushStack(fi(this,n||[],!1))},is:function(n){return!!fi(this,typeof n=="string"&&lr.test(n)?i(n):n||[],!1).length},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=lr.test(n)||typeof n!="string"?i(n,t||this.context):0;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,n))){r=u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?typeof n=="string"?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){var r=typeof n=="string"?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),u=i.merge(this.get(),r);return this.pushStack(i.unique(u))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return ar(n,"nextSibling")},prev:function(n){return ar(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(he[n]||(f=i.unique(f)),se.test(n)&&(f=f.reverse())),this.pushStack(f)}});i.extend({filter:function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),t.length===1&&u.nodeType===1?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))},dir:function(n,r,u){for(var e=[],f=n[r];f&&f.nodeType!==9&&(u===t||f.nodeType!==1||!i(f).is(u));)f.nodeType===1&&e.push(f),f=f[r];return e},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i}});var yr="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ce=/ jQuery\d+="(?:null|\d+)"/g,pr=new RegExp("<(?:"+yr+")[\\s/>]","i"),ei=/^\s+/,wr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,br=/<([\w:]+)/,kr=/<tbody/i,le=/<|&#?\w+;/,ae=/<(?:script|style|link)/i,oi=/^(?:checkbox|radio)$/i,ve=/checked\s*(?:[^=]|=\s*.checked.)/i,dr=/^$|\/(?:java|ecma)script/i,ye=/^true\/(.*)/,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,e={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:i.support.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},we=vr(r),si=we.appendChild(r.createElement("div"));e.optgroup=e.option;e.tbody=e.tfoot=e.colgroup=e.caption=e.thead;e.th=e.td;i.fn.extend({text:function(n){return i.access(this,function(n){return n===t?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n))},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=gr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=gr(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,e=n?i.filter(n,this):this,f=0;(r=e[f])!=null;f++)t||r.nodeType!==1||i.cleanData(u(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&hi(u(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;(n=this[t])!=null;t++){for(n.nodeType===1&&i.cleanData(u(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return i.access(this,function(n){var r=this[0]||{},f=0,o=this.length;if(n===t)return r.nodeType===1?r.innerHTML.replace(ce,""):t;if(typeof n=="string"&&!ae.test(n)&&(i.support.htmlSerialize||!pr.test(n))&&(i.support.leadingWhitespace||!ei.test(n))&&!e[(br.exec(n)||["",""])[1].toLowerCase()]){n=n.replace(wr,"<$1><\/$2>");try{for(;f<o;f++)r=this[f]||{},r.nodeType===1&&(i.cleanData(u(r,!1)),r.innerHTML=n);r=0}catch(s){}}r&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var t=i.map(this,function(n){return[n.nextSibling,n.parentNode]}),n=0;return this.domManip(arguments,function(r){var u=t[n++],f=t[n++];f&&(u&&u.parentNode!==f&&(u=this.nextSibling),i(this).remove(),f.insertBefore(r,u))},!0),n?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t,r){n=di.apply([],n);var h,f,c,o,v,s,e=0,l=this.length,p=this,w=l-1,a=n[0],y=i.isFunction(a);if(y||!(l<=1||typeof a!="string"||i.support.checkClone||!ve.test(a)))return this.each(function(i){var u=p.eq(i);y&&(n[0]=a.call(this,i,u.html()));u.domManip(n,t,r)});if(l&&(s=i.buildFragment(n,this[0].ownerDocument,!1,!r&&this),h=s.firstChild,s.childNodes.length===1&&(s=h),h)){for(o=i.map(u(s,"script"),nu),c=o.length;e<l;e++)f=s,e!==w&&(f=i.clone(f,!0,!0),c&&i.merge(o,u(f,"script"))),t.call(this[e],f,e);if(c)for(v=o[o.length-1].ownerDocument,i.map(o,tu),e=0;e<c;e++)f=o[e],dr.test(f.type||"")&&!i._data(f,"globalEval")&&i.contains(v,f)&&(f.src?i._evalUrl(f.src):i.globalEval((f.text||f.textContent||f.innerHTML||"").replace(pe,"")));s=h=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),kt.apply(f,u.get());return this.pushStack(f)}});i.extend({clone:function(n,t,r){var f,h,o,e,s,c=i.contains(n.ownerDocument,n);if(i.support.html5Clone||i.isXMLDoc(n)||!pr.test("<"+n.nodeName+">")?o=n.cloneNode(!0):(si.innerHTML=n.outerHTML,si.removeChild(o=si.firstChild)),(!i.support.noCloneEvent||!i.support.noCloneChecked)&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(f=u(o),s=u(n),e=0;(h=s[e])!=null;++e)f[e]&&be(h,f[e]);if(t)if(r)for(s=s||u(n),f=f||u(o),e=0;(h=s[e])!=null;e++)iu(h,f[e]);else iu(n,o);return f=u(o,"script"),f.length>0&&hi(f,!c&&u(n,"script")),f=s=h=null,o},buildFragment:function(n,t,r,f){for(var h,o,w,s,y,p,l,b=n.length,a=vr(t),c=[],v=0;v<b;v++)if(o=n[v],o||o===0)if(i.type(o)==="object")i.merge(c,o.nodeType?[o]:o);else if(le.test(o)){for(s=s||a.appendChild(t.createElement("div")),y=(br.exec(o)||["",""])[1].toLowerCase(),l=e[y]||e._default,s.innerHTML=l[1]+o.replace(wr,"<$1><\/$2>")+l[2],h=l[0];h--;)s=s.lastChild;if(!i.support.leadingWhitespace&&ei.test(o)&&c.push(t.createTextNode(ei.exec(o)[0])),!i.support.tbody)for(o=y==="table"&&!kr.test(o)?s.firstChild:l[1]==="<table>"&&!kr.test(o)?s:0,h=o&&o.childNodes.length;h--;)i.nodeName(p=o.childNodes[h],"tbody")&&!p.childNodes.length&&o.removeChild(p);for(i.merge(c,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=a.lastChild}else c.push(t.createTextNode(o));for(s&&a.removeChild(s),i.support.appendChecked||i.grep(u(c,"input"),ke),v=0;o=c[v++];)if((!f||i.inArray(o,f)===-1)&&(w=i.contains(o.ownerDocument,o),s=u(a.appendChild(o),"script"),w&&hi(s),r))for(h=0;o=s[h++];)dr.test(o.type||"")&&r.push(o);return s=null,a},cleanData:function(n,t){for(var r,e,u,f,c=0,s=i.expando,h=i.cache,l=i.support.deleteExpando,a=i.event.special;(r=n[c])!=null;c++)if((t||i.acceptData(r))&&(u=r[s],f=u&&h[u],f)){if(f.events)for(e in f.events)a[e]?i.event.remove(r,e):i.removeEvent(r,e,f.handle);h[u]&&(delete h[u],l?delete r[s]:typeof r.removeAttribute!==o?r.removeAttribute(s):r[s]=null,b.push(u))}},_evalUrl:function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})}});i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&n.firstChild.nodeType===1;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});var rt,v,y,ci=/alpha\([^)]*\)/i,de=/opacity\s*=\s*([^)]*)/,ge=/^(top|right|bottom|left)$/,no=/^(none|table(?!-c[ea]).+)/,ru=/^margin/,to=new RegExp("^("+st+")(.*)$","i"),lt=new RegExp("^("+st+")(?!px)[a-z%]+$","i"),io=new RegExp("^([+-])=("+st+")","i"),uu={BODY:"block"},ro={position:"absolute",visibility:"hidden",display:"block"},fu={letterSpacing:0,fontWeight:400},p=["Top","Right","Bottom","Left"],eu=["Webkit","O","Moz","ms"];i.fn.extend({css:function(n,r){return i.access(this,function(n,r,u){var e,o,s={},f=0;if(i.isArray(r)){for(o=v(n),e=r.length;f<e;f++)s[r[f]]=i.css(n,r[f],!1,o);return s}return u!==t?i.style(n,r,u):i.css(n,r)},n,r,arguments.length>1)},show:function(){return su(this,!0)},hide:function(){return su(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){ut(this)?i(this).show():i(this).hide()})}});i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=y(n,"opacity");return i===""?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var o,s,e,h=i.camelCase(r),c=n.style;if(r=i.cssProps[h]||(i.cssProps[h]=ou(c,h)),e=i.cssHooks[r]||i.cssHooks[h],u!==t){if(s=typeof u,s==="string"&&(o=io.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,r)),s="number"),u==null||s==="number"&&isNaN(u))return;if(s!=="number"||i.cssNumber[h]||(u+="px"),i.support.clearCloneStyle||u!==""||r.indexOf("background")!==0||(c[r]="inherit"),!e||!("set"in e)||(u=e.set(n,u,f))!==t)try{c[r]=u}catch(l){}}else return e&&"get"in e&&(o=e.get(n,!1,f))!==t?o:c[r]}},css:function(n,r,u,f){var h,e,o,s=i.camelCase(r);return(r=i.cssProps[s]||(i.cssProps[s]=ou(n.style,s)),o=i.cssHooks[r]||i.cssHooks[s],o&&"get"in o&&(e=o.get(n,!0,u)),e===t&&(e=y(n,r,f)),e==="normal"&&r in fu&&(e=fu[r]),u===""||u)?(h=parseFloat(e),u===!0||i.isNumeric(h)?h||0:e):e}});n.getComputedStyle?(v=function(t){return n.getComputedStyle(t,null)},y=function(n,r,u){var s,h,c,o=u||v(n),e=o?o.getPropertyValue(r)||o[r]:t,f=n.style;return o&&(e!==""||i.contains(n.ownerDocument,n)||(e=i.style(n,r)),lt.test(e)&&ru.test(r)&&(s=f.width,h=f.minWidth,c=f.maxWidth,f.minWidth=f.maxWidth=f.width=e,e=o.width,f.width=s,f.minWidth=h,f.maxWidth=c)),e}):r.documentElement.currentStyle&&(v=function(n){return n.currentStyle},y=function(n,i,r){var s,e,o,h=r||v(n),u=h?h[i]:t,f=n.style;return u==null&&f&&f[i]&&(u=f[i]),lt.test(u)&&!ge.test(i)&&(s=f.left,e=n.runtimeStyle,o=e&&e.left,o&&(e.left=n.currentStyle.left),f.left=i==="fontSize"?"1em":u,u=f.pixelLeft+"px",f.left=s,o&&(e.left=o)),u===""?"auto":u});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return n.offsetWidth===0&&no.test(i.css(n,"display"))?i.swap(n,ro,function(){return lu(n,t,u)}):lu(n,t,u)},set:function(n,r,u){var f=u&&v(n);return hu(n,r,u?cu(n,t,u,i.support.boxSizing&&i.css(n,"boxSizing",!1,f)==="border-box",f):0)}}});i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return de.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+t*100+")":"",f=u&&u.filter||r.filter||"";(r.zoom=1,(t>=1||t==="")&&i.trim(f.replace(ci,""))===""&&r.removeAttribute&&(r.removeAttribute("filter"),t===""||u&&!u.filter))||(r.filter=ci.test(f)?f.replace(ci,e):f+" "+e)}});i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,t){if(t)return i.swap(n,{display:"inline-block"},y,[n,"marginRight"])}});!i.support.pixelPosition&&i.fn.position&&i.each(["top","left"],function(n,t){i.cssHooks[t]={get:function(n,r){if(r)return r=y(n,t),lt.test(r)?i(n).position()[t]+"px":r}}})});i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0||!i.support.reliableHiddenOffsets&&(n.style&&n.style.display||i.css(n,"display"))==="none"},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+p[r]+t]=u[r]||u[r-2]||u[0];return f}};ru.test(n)||(i.cssHooks[n+t].set=hu)});var uo=/%20/g,fo=/\[\]$/,yu=/\r?\n/g,eo=/^(?:submit|button|image|reset|file)$/i,oo=/^(?:input|select|textarea|keygen)/i;i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&oo.test(this.nodeName)&&!eo.test(n)&&(this.checked||!oi.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(yu,"\r\n")}}):{name:t.name,value:r.replace(yu,"\r\n")}}).get()}});i.param=function(n,r){var u,f=[],e=function(n,t){t=i.isFunction(t)?t():t==null?"":t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(r===t&&(r=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(u in n)li(u,n[u],r,e);return f.join("&").replace(uo,"+")};i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)}});var w,c,ai=i.now(),vi=/\?/,so=/#.*$/,pu=/([?&])_=[^&]*/,ho=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,co=/^(?:GET|HEAD)$/,lo=/^\/\//,wu=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,bu=i.fn.load,ku={},yi={},du="*/".concat("*");try{c=hf.href}catch(go){c=r.createElement("a");c.href="";c=c.href}w=wu.exec(c.toLowerCase())||[];i.fn.load=function(n,r,u){if(typeof n!="string"&&bu)return bu.apply(this,arguments);var f,s,h,e=this,o=n.indexOf(" ");return o>=0&&(f=n.slice(o,n.length),n=n.slice(0,o)),i.isFunction(r)?(u=r,r=t):r&&typeof r=="object"&&(h="POST"),e.length>0&&i.ajax({url:n,type:h,dataType:"html",data:r}).done(function(n){s=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).complete(u&&function(n,t){e.each(u,s||[n.responseText,t,n])}),this};i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:c,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(w[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":du,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?pi(pi(n,i.ajaxSettings),t):pi(i.ajaxSettings,n)},ajaxPrefilter:gu(ku),ajaxTransport:gu(yi),ajax:function(n,r){function k(n,r,s,c){var a,rt,k,p,w,l=r;o!==2&&(o=2,g&&clearTimeout(g),v=t,d=c||"",f.readyState=n>0?4:0,a=n>=200&&n<300||n===304,s&&(p=ao(u,f,s)),p=vo(u,p,f,a),a?(u.ifModified&&(w=f.getResponseHeader("Last-Modified"),w&&(i.lastModified[e]=w),w=f.getResponseHeader("etag"),w&&(i.etag[e]=w)),n===204||u.type==="HEAD"?l="nocontent":n===304?l="notmodified":(l=p.state,rt=p.data,k=p.error,a=!k)):(k=l,(n||!l)&&(l="error",n<0&&(n=0))),f.status=n,f.statusText=(r||l)+"",a?tt.resolveWith(h,[rt,l,f]):tt.rejectWith(h,[f,l,k]),f.statusCode(b),b=t,y&&nt.trigger(a?"ajaxSuccess":"ajaxError",[f,u,a?rt:k]),it.fireWith(h,[f,l]),y&&(nt.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop")))}typeof n=="object"&&(r=n,n=t);r=r||{};var l,a,e,d,g,y,v,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),b=u.statusCode||{},rt={},ut={},o=0,ft="canceled",f={readyState:0,getResponseHeader:function(n){var t;if(o===2){if(!p)for(p={};t=ho.exec(d);)p[t[1].toLowerCase()]=t[2];t=p[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return o===2?d:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return o||(n=ut[i]=ut[i]||n,rt[n]=t),this},overrideMimeType:function(n){return o||(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(o<2)for(t in n)b[t]=[b[t],n[t]];else f.always(n[f.status]);return this},abort:function(n){var t=n||ft;return v&&v.abort(t),k(0,t),this}};if(tt.promise(f).complete=it.add,f.success=f.done,f.error=f.fail,u.url=((n||u.url||c)+"").replace(so,"").replace(lo,w[1]+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=i.trim(u.dataType||"*").toLowerCase().match(s)||[""],u.crossDomain==null&&(l=wu.exec(u.url.toLowerCase()),u.crossDomain=!!(l&&(l[1]!==w[1]||l[2]!==w[2]||(l[3]||(l[1]==="http:"?"80":"443"))!==(w[3]||(w[1]==="http:"?"80":"443"))))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=i.param(u.data,u.traditional)),nf(ku,u,r,f),o===2)return f;y=u.global;y&&i.active++==0&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!co.test(u.type);e=u.url;u.hasContent||(u.data&&(e=u.url+=(vi.test(e)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=pu.test(e)?e.replace(pu,"$1_="+ai++):e+(vi.test(e)?"&":"?")+"_="+ai++));u.ifModified&&(i.lastModified[e]&&f.setRequestHeader("If-Modified-Since",i.lastModified[e]),i.etag[e]&&f.setRequestHeader("If-None-Match",i.etag[e]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType);f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+du+"; q=0.01":""):u.accepts["*"]);for(a in u.headers)f.setRequestHeader(a,u.headers[a]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||o===2))return f.abort();ft="abort";for(a in{success:1,error:1,complete:1})f[a](u[a]);if(v=nf(yi,u,r,f),v){f.readyState=1;y&&nt.trigger("ajaxSend",[f,u]);u.async&&u.timeout>0&&(g=setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1;v.send(rt,k)}catch(et){if(o<2)k(-1,et);else throw et;}}else k(-1,"No Transport");return f},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,r){return i.get(n,t,r,"script")}});i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({url:n,type:r,dataType:e,data:u,success:f})}});i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}});i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)});i.ajaxTransport("script",function(n){if(n.crossDomain){var u,f=r.head||i("head")[0]||r.documentElement;return{send:function(t,i){u=r.createElement("script");u.async=!0;n.scriptCharset&&(u.charset=n.scriptCharset);u.src=n.url;u.onload=u.onreadystatechange=function(n,t){(t||!u.readyState||/loaded|complete/.test(u.readyState))&&(u.onload=u.onreadystatechange=null,u.parentNode&&u.parentNode.removeChild(u),u=null,t||i(200,"success"))};f.insertBefore(u,f.firstChild)},abort:function(){if(u)u.onload(t,!0)}}}});wi=[];at=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=wi.pop()||i.expando+"_"+ai++;return this[n]=!0,n}});i.ajaxPrefilter("json jsonp",function(r,u,f){var e,s,o,h=r.jsonp!==!1&&(at.test(r.url)?"url":typeof r.data=="string"&&!(r.contentType||"").indexOf("application/x-www-form-urlencoded")&&at.test(r.data)&&"data");if(h||r.dataTypes[0]==="jsonp")return e=r.jsonpCallback=i.isFunction(r.jsonpCallback)?r.jsonpCallback():r.jsonpCallback,h?r[h]=r[h].replace(at,"$1"+e):r.jsonp!==!1&&(r.url+=(vi.test(r.url)?"&":"?")+r.jsonp+"="+e),r.converters["script json"]=function(){return o||i.error(e+" was not called"),o[0]},r.dataTypes[0]="json",s=n[e],n[e]=function(){o=arguments},f.always(function(){n[e]=s;r[e]&&(r.jsonpCallback=u.jsonpCallback,wi.push(e));o&&i.isFunction(s)&&s(o[0]);o=s=t}),"script"});tf=0;vt=n.ActiveXObject&&function(){for(var n in nt)nt[n](t,!0)};i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&rf()||yo()}:rf;tt=i.ajaxSettings.xhr();i.support.cors=!!tt&&"withCredentials"in tt;tt=i.support.ajax=!!tt;tt&&i.ajaxTransport(function(r){if(!r.crossDomain||i.support.cors){var u;return{send:function(f,e){var h,s,o=r.xhr();if(r.username?o.open(r.type,r.url,r.async,r.username,r.password):o.open(r.type,r.url,r.async),r.xhrFields)for(s in r.xhrFields)o[s]=r.xhrFields[s];r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType);r.crossDomain||f["X-Requested-With"]||(f["X-Requested-With"]="XMLHttpRequest");try{for(s in f)o.setRequestHeader(s,f[s])}catch(c){}o.send(r.hasContent&&r.data||null);u=function(n,f){var s,a,l,c;try{if(u&&(f||o.readyState===4))if(u=t,h&&(o.onreadystatechange=i.noop,vt&&delete nt[h]),f)o.readyState!==4&&o.abort();else{c={};s=o.status;a=o.getAllResponseHeaders();typeof o.responseText=="string"&&(c.text=o.responseText);try{l=o.statusText}catch(y){l=""}s||!r.isLocal||r.crossDomain?s===1223&&(s=204):s=c.text?200:404}}catch(v){f||e(-1,v)}c&&e(s,l,c,a)};r.async?o.readyState===4?setTimeout(u):(h=++tf,vt&&(nt||(nt={},i(n).unload(vt)),nt[h]=u),o.onreadystatechange=u):u()},abort:function(){u&&u(t,!0)}}}});var it,yt,po=/^(?:toggle|show|hide)$/,uf=new RegExp("^(?:([+-])=|)("+st+")([a-z%]*)$","i"),wo=/queueHooks$/,pt=[ko],ft={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),u=uf.exec(t),e=u&&u[3]||(i.cssNumber[n]?"":"px"),r=(i.cssNumber[n]||e!=="px"&&+s)&&uf.exec(i.css(f.elem,n)),o=1,h=20;if(r&&r[3]!==e){e=e||r[3];u=u||[];r=+s||1;do o=o||".5",r=r/o,i.style(f.elem,n,r+e);while(o!==(o=f.cur()/s)&&o!==1&&--h)}return u&&(r=f.start=+r||+s||0,f.unit=e,f.end=u[1]?r+(u[1]+1)*u[2]:+u[2]),f}]};i.Animation=i.extend(of,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;u<f;u++)r=n[u],ft[r]=ft[r]||[],ft[r].unshift(t)},prefilter:function(n,t){t?pt.unshift(n):pt.push(n)}});i.Tween=f;f.prototype={constructor:f,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=f.propHooks[this.prop];return n&&n.get?n.get(this):f.propHooks._default.get(this)},run:function(n){var t,r=f.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):f.propHooks._default.set(this),this}};f.prototype.init.prototype=f.prototype;f.propHooks={_default:{get:function(n){var t;return n.elem[n.prop]!=null&&(!n.elem.style||n.elem.style[n.prop]==null)?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(n.elem.style[i.cssProps[n.prop]]!=null||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};f.propHooks.scrollTop=f.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(wt(t,!0),n,i,u)}});i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ut).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=of(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,r,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return typeof n!="string"&&(u=r,r=n,n=t),r&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=n!=null&&n+"queueHooks",e=i.timers,r=i._data(this);if(t)r[t]&&r[t].stop&&f(r[t]);else for(t in r)r[t]&&r[t].stop&&wo.test(t)&&f(r[t]);for(t=e.length;t--;)e[t].elem===this&&(n==null||e[t].queue===n)&&(e[t].anim.stop(u),o=!1,e.splice(t,1));(o||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each({slideDown:wt("show"),slideUp:wt("hide"),slideToggle:wt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.speed=function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.timers=[];i.fx=f.prototype.init;i.fx.tick=function(){var u,n=i.timers,r=0;for(it=i.now();r<n.length;r++)u=n[r],u()||n[r]!==u||n.splice(r--,1);n.length||i.fx.stop();it=t};i.fx.timer=function(n){n()&&i.timers.push(n)&&i.fx.start()};i.fx.interval=13;i.fx.start=function(){yt||(yt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(yt);yt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fx.step={};i.expr&&i.expr.filters&&(i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length});i.fn.offset=function(n){if(arguments.length)return n===t?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,e,f={top:0,left:0},u=this[0],s=u&&u.ownerDocument;if(s)return(r=s.documentElement,!i.contains(r,u))?f:(typeof u.getBoundingClientRect!==o&&(f=u.getBoundingClientRect()),e=sf(s),{top:f.top+(e.pageYOffset||r.scrollTop)-(r.clientTop||0),left:f.left+(e.pageXOffset||r.scrollLeft)-(r.clientLeft||0)})};i.offset={setOffset:function(n,t,r){var f=i.css(n,"position");f==="static"&&(n.style.position="relative");var e=i(n),o=e.offset(),l=i.css(n,"top"),a=i.css(n,"left"),v=(f==="absolute"||f==="fixed")&&i.inArray("auto",[l,a])>-1,u={},s={},h,c;v?(s=e.position(),h=s.top,c=s.left):(h=parseFloat(l)||0,c=parseFloat(a)||0);i.isFunction(t)&&(t=t.call(n,r,o));t.top!=null&&(u.top=t.top-o.top+h);t.left!=null&&(u.left=t.left-o.left+c);"using"in t?t.using.call(n,u):e.css(u)}};i.fn.extend({position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return i.css(u,"position")==="fixed"?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||ki;n&&!i.nodeName(n,"html")&&i.css(n,"position")==="static";)n=n.offsetParent;return n||ki})}});i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var u=/Y/.test(r);i.fn[n]=function(f){return i.access(this,function(n,f,e){var o=sf(n);if(e===t)return o?r in o?o[r]:o.document.documentElement[f]:n[f];o?o.scrollTo(u?i(o).scrollLeft():e,u?e:i(o).scrollTop()):n[f]=e},n,f,arguments.length,null)}});i.each({Height:"height",Width:"width"},function(n,r){i.each({padding:"inner"+n,content:r,"":"outer"+n},function(u,f){i.fn[f]=function(f,e){var o=arguments.length&&(u||typeof f!="boolean"),s=u||(f===!0||e===!0?"margin":"border");return i.access(this,function(r,u,f){var e;return i.isWindow(r)?r.document.documentElement["client"+n]:r.nodeType===9?(e=r.documentElement,Math.max(r.body["scroll"+n],e["scroll"+n],r.body["offset"+n],e["offset"+n],e["client"+n])):f===t?i.css(r,u,s):i.style(r,u,f,s)},r,o?f:t,o,null)}})});i.fn.size=function(){return this.length};i.fn.andSelf=i.fn.addBack;typeof module=="object"&&module&&typeof module.exports=="object"?module.exports=i:(n.jQuery=n.$=i,typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}))})(window),function(n,t,i){function et(n){return!n||n=="loaded"||n=="complete"||n=="uninitialized"}function ct(n,i,u,s,h,l){var a=t.createElement("script"),v,y;s=s||r.errorTimeout;a.src=n;for(y in u)a.setAttribute(y,u[y]);i=l?e:i||c;a.onreadystatechange=a.onload=function(){!v&&et(a.readyState)&&(v=1,i(),a.onload=a.onreadystatechange=null)};o(function(){v||(v=1,i(1))},s);w();h?a.onload():f.parentNode.insertBefore(a,f)}function lt(n,i,u,s,h,l){var a=t.createElement("link"),v;s=s||r.errorTimeout;i=l?e:i||c;a.href=n;a.rel="stylesheet";a.type="text/css";for(v in u)a.setAttribute(v,u[v]);h||(w(),f.parentNode.insertBefore(a,f),o(i,0))}function e(){var n=s.shift();h=1;n?n.t?o(function(){(n.t=="c"?r.injectCss:r.injectJs)(n.s,0,n.a,n.x,n.e,1)},0):(n(),e()):h=0}function at(n,i,c,l,a,v,y){function tt(t){if(!k&&et(p.readyState)&&(nt.r=k=1,h||e(),t)){n!="img"&&o(function(){g.removeChild(p)},50);for(var r in u[i])u[i].hasOwnProperty(r)&&u[i][r].onload();p.onload=p.onreadystatechange=null}}y=y||r.errorTimeout;var p=t.createElement(n),k=0,b=0,nt={t:c,s:i,e:a,a:v,x:y};u[i]===1&&(b=1,u[i]=[]);n=="object"?(p.data=i,p.setAttribute("type","text/css")):(p.src=i,p.type=n);p.width=p.height="0";p.onerror=p.onload=p.onreadystatechange=function(){tt.call(this,b)};s.splice(l,0,nt);n!="img"&&(b||u[i]===2?(w(),g.insertBefore(p,d?null:f),o(tt,y)):u[i].push(p))}function vt(n,t,i,r,u){return h=0,t=t||"j",l(n)?at(t=="c"?ht:it,n,t,this.i++,i,r,u):(s.splice(this.i++,0,n),s.length==1&&e()),this}function ot(){var n=r;return n.loader={load:vt,i:0},n}var v=t.documentElement,o=n.setTimeout,f=t.getElementsByTagName("script")[0],y={}.toString,s=[],h=0,c=function(){},k="MozAppearance"in v.style,d=k&&!!t.createRange().compareNode,g=d?v:f.parentNode,st=n.opera&&y.call(n.opera)=="[object Opera]",nt=!!t.attachEvent&&!st,tt="webkitAppearance"in v.style&&!("async"in t.createElement("script")),it=k?"object":nt||tt?"script":"img",ht=nt?"script":tt?"img":it,rt=Array.isArray||function(n){return y.call(n)=="[object Array]"},p=function(n){return Object(n)===n},l=function(n){return typeof n=="string"},a=function(n){return y.call(n)=="[object Function]"},w=function(){f&&f.parentNode||(f=t.getElementsByTagName("script")[0])},b=[],u={},ut={timeout:function(n,t){return t.length&&(n.timeout=t[0]),n}},ft,r;r=function(n){function v(n){for(var r=n.split("!"),o=b.length,e=r.pop(),s=r.length,i={url:e,origUrl:e,prefixes:r},u,f,t=0;t<s;t++)f=r[t].split("="),u=ut[f.shift()],u&&(i=u(i,f));for(t=0;t<o;t++)i=b[t](i);return i}function s(n){var t=n.split("?")[0];return t.substr(t.lastIndexOf(".")+1)}function o(n,t,r,f,e){var o=v(n),h=o.autoCallback,c=s(o.url);if(!o.bypass){if(t&&(t=a(t)?t:t[n]||t[f]||t[n.split("/").pop().split("?")[0]]),o.instead)return o.instead(n,t,r,f,e);u[o.url]&&o.reexecute!==!0?o.noexec=!0:u[o.url]=1;n&&r.load(o.url,o.forceCSS||!o.forceJS&&"css"==s(o.url)?"c":i,o.noexec,o.attrs,o.timeout);(a(t)||a(h))&&r.load(function(){ot();t&&t(o.origUrl,e,f);h&&h(o.origUrl,e,f);u[o.url]=2})}}function h(n,t){function h(n,u){if(""===n||n){if(l(n))u||(i=function(){var n=[].slice.call(arguments);s.apply(this,n);f()}),o(n,i,t,0,e);else if(p(n)){v=function(){var t=0;for(var i in n)n.hasOwnProperty(i)&&t++;return t}();for(r in n)n.hasOwnProperty(r)&&(u||--v||(a(i)?i=function(){var n=[].slice.call(arguments);s.apply(this,n);f()}:i[r]=function(n){return function(){var t=[].slice.call(arguments);n&&n.apply(this,t);f()}}(s[r])),o(n[r],i,t,r,e))}}else u||f()}var e=!!n.test,y=e?n.yep:n.nope,u=n.load||n.both,i=n.callback||c,s=i,f=n.complete||c,v,r;h(y,!!u||!!n.complete);u&&h(u);u||!n.complete||h("")}var f,t,e=this.yepnope.loader;if(l(n))o(n,0,e,0);else if(rt(n))for(f=0;f<n.length;f++)t=n[f],l(t)?o(t,0,e,0):rt(t)?r(t):p(t)&&h(t,e);else p(n)&&h(n,e)};r.addPrefix=function(n,t){ut[n]=t};r.addFilter=function(n){b.push(n)};r.errorTimeout=1e4;t.readyState==null&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",ft=function(){t.removeEventListener("DOMContentLoaded",ft,0);t.readyState="complete"},0));n.yepnope=ot();n.yepnope.executeStack=e;n.yepnope.injectJs=ct;n.yepnope.injectCss=lt}(this,document);
/**
 * @license
 * Lo-Dash 2.1.0 (Custom Build) <http://lodash.com/>
 * Build: `lodash include="each,defaults,toArray,indexOf,map,size,once,rest,take,throttle,has,isArray,isBoolean,isDate,isElement,isEmpty,isEqual,isFinite,isFunction,isNaN,isNull,isNumber,isObject,isPlainObject,isRegExp,isString,isUndefined,uniqueId" -d -o lodash.custom.js`
 * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
 * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
 * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 * Available under MIT license <http://lodash.com/license>
 */
(function(){function gr(n,t,i){for(var r=(i||0)-1,u=n?n.length:0;++r<u;)if(n[r]===t)return r;return-1}function di(){return wt.pop()||[]}function ri(){return bt.pop()||{args:"",array:null,bottom:"",cache:null,configurable:!1,enumerable:!1,"false":!1,firstArg:"",init:"",keys:null,leading:!1,loop:"",maxWait:0,"null":!1,number:null,object:null,push:null,shadowedProps:null,string:null,top:"",trailing:!1,"true":!1,undefined:!1,useHas:!1,writable:!1}}function ui(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function et(){}function gi(n){n.length=0;wt.length<wi&&wt.push(n)}function ot(n){var t=n.cache;t&&ot(t);n.array=n.cache=n.object=n.number=n.string=null;bt.length<wi&&bt.push(n)}function fi(n,t,i){t||(t=0);typeof i=="undefined"&&(i=n?n.length:0);for(var r=-1,u=i-t||0,f=Array(u<0?0:u);++r<u;)f[r]=n[t+r];return f}function n(){}function ci(n,i,r){var u,f;if(typeof n!="function")return pi;if(typeof i=="undefined"||(u=n.__bindData__||t.funcNames&&!n.name,typeof u=="undefined"&&(f=kt&&tu.call(n),t.funcNames||!f||kr.test(f)||(u=!0),(t.funcNames||!u)&&(u=!t.funcDecomp||kt.test(f),li(n,u))),u!==!0&&u&&u[1]&1))return n;switch(r){case 1:return function(t){return n.call(i,t)};case 2:return function(t,r){return n.call(i,t,r)};case 3:return function(t,r,u){return n.call(i,t,r,u)};case 4:return function(t,r,u,f){return n.call(i,t,r,u,f)}}return yr(n,i)}function p(n,r,h,c,l,a){var v,ot,st,w,tt,ut,g,nt,ht,k,y,ft,et;if(h&&(v=h(n,r),typeof v!="undefined"))return!!v;if(n===r)return n!==0||1/n==1/r;if(ot=typeof n,st=typeof r,n===n&&!(n&&e[ot])&&!(r&&e[st]))return!1;if(n==null||r==null)return n===r;if(w=i.call(n),tt=i.call(r),w==b&&(w=s),tt==b&&(tt=s),w!=tt)return!1;switch(w){case gt:case ni:return+n==+r;case ti:return n!=+n?r!=+r:n==0?1/n==1/r:n==+r;case ii:case d:return n==String(r)}if(ut=w==rt,!ut){if(u.call(n,"__wrapped__ ")||u.call(r,"__wrapped__"))return p(n.__wrapped__||n,r.__wrapped__||r,h,c,l,a);if(w!=s||!t.nodeClass&&(ui(n)||ui(r))||(g=!t.argsObject&&o(n)?Object:n.constructor,nt=!t.argsObject&&o(r)?Object:r.constructor,g!=nt&&!(f(g)&&g instanceof g&&f(nt)&&nt instanceof nt)))return!1}for(ht=!l,l||(l=di()),a||(a=di()),k=l.length;k--;)if(l[k]==n)return a[k]==r;if(y=0,v=!0,l.push(n),a.push(r),ut){if(k=n.length,y=r.length,v=y==n.length,!v&&!c)return v;while(y--)if(ft=k,et=r[y],c){while(ft--)if(v=p(n[ft],et,h,c,l,a))break}else if(!(v=p(n[y],et,h,c,l,a)))break;return v}return it(r,function(t,i,r){if(u.call(r,i))return y++,v=u.call(n,i)&&p(n[i],t,h,c,l,a)}),v&&!c&&it(n,function(n,t,i){if(u.call(i,t))return v=--y>-1}),ht&&(gi(l),gi(a)),v}function at(n,i,r,u,e,o){var y=i&1,w=i&2,p=i&4,k=i&8,h=i&16,a=i&32,d=n,s,b,v;if(!w&&!f(n))throw new TypeError;return(h&&!r.length&&(i&=-17,h=r=!1),a&&!u.length&&(i&=-33,a=u=!1),s=n&&n.__bindData__,s)?(!y||s[1]&1||(s[4]=e),!y&&s[1]&1&&(i|=8),!p||s[1]&4||(s[5]=o),h&&ht.apply(s[2]||(s[2]=[]),r),a&&ht.apply(s[3]||(s[3]=[]),u),s[1]|=i,at.apply(null,s)):(!y||w||p||a||!(t.fastBind||c&&h)?v=function(){var t=arguments,f=y?e:this,s;return(p||h||a)&&(t=hi.call(t),h&&iu.apply(t,r),a&&ht.apply(t,u),p&&t.length<o)?(i|=16,at(n,k?i:i&-4,t,null,e,o)):(w&&(n=f[d]),this instanceof v)?(f=ir(n.prototype),s=n.apply(f,t),l(s)?s:f):n.apply(f,t)}:(h&&(b=[e],ht.apply(b,r)),v=h?c.apply(n,b):c.call(n,e)),li(v,hi.call(arguments)),v)}function tt(){var n=ri(),t,f,s,h,c;for(n.shadowedProps=dt,n.array=n.bottom=n.loop=n.top="",n.init="iterable",n.useHas=!0,f=0;t=arguments[f];f++)for(s in t)n[s]=t[s];return h=n.args,n.firstArg=/^[^,]+/.exec(h)[0],c=Function("baseCreateCallback, errorClass, errorProto, hasOwnProperty, indicatorObject, isArguments, isArray, isString, keys, objectProto, objectTypes, nonEnumProps, stringClass, stringProto, toString","return function("+h+") {\n"+tr(n)+"\n}"),ot(n),c(ci,bi,ei,u,br,o,vt,ai,n.keys,g,e,r,d,nu,i)}function ir(n){return l(n)?ct(n):{}}function rr(n){var e,r;return!(n&&i.call(n)==s)||(e=n.constructor,f(e)&&!(e instanceof e))||!t.argsClass&&o(n)||!t.nodeClass&&ui(n)?!1:t.ownLast?(it(n,function(n,t,i){return r=u.call(i,t),!1}),r!==!1):(it(n,function(n,t){r=t}),typeof r=="undefined"||u.call(n,r))}function o(n){return n&&typeof n=="object"&&typeof n.length=="number"&&i.call(n)==b||!1}function cu(n,t){return n?u.call(n,t):!1}function lu(n){return n===!0||n===!1||i.call(n)==gt}function au(n){return n?typeof n=="object"&&i.call(n)==ni:!1}function vu(n){return n?n.nodeType===1:!1}function yu(n){var u=!0,r,e;return n?(r=i.call(n),e=n.length,r==rt||r==d||(t.argsClass?r==b:o(n))||r==s&&typeof e=="number"&&f(n.splice))?!e:(or(n,function(){return u=!1}),u):u}function pu(n,t,i,r){return p(n,t,typeof i=="function"&&ci(i,r,2))}function wu(n){return ru(n)&&!uu(parseFloat(n))}function f(n){return typeof n=="function"}function l(n){return!!(n&&e[typeof n])}function bu(n){return sr(n)&&n!=+n}function ku(n){return n===null}function sr(n){return typeof n=="number"||i.call(n)==ti}function du(n){return n&&e[typeof n]?i.call(n)==ii:!1}function ai(n){return typeof n=="string"||i.call(n)==d}function gu(n){return typeof n=="undefined"}function cr(n){for(var t=-1,i=w(n),r=i.length,u=Array(r);++t<r;)u[t]=n[i[t]];return u}function lr(n,t,i){if(t&&typeof i=="undefined"&&vt(n)){for(var r=-1,u=n.length;++r<u;)if(t(n[r],r,n)===!1)break}else er(n,t,i);return n}function ar(t,i,r){var u=-1,f=t?t.length:0,e=Array(typeof f=="number"?f:0);if(i=n.createCallback(i,r,3),vt(t))while(++u<f)e[u]=i(t[u],u,t);else er(t,function(n,t,r){e[++u]=i(n,t,r)});return e}function nf(n){var t=n?n.length:0;return typeof t=="number"?t:w(n).length}function tf(n){return n&&typeof n.length=="number"?t.unindexedChars&&ai(n)?n.split(""):fi(n):cr(n)}function vi(t,i,r){var u=0,e=t?t.length:0,f;if(typeof i!="number"&&i!=null)for(f=-1,i=n.createCallback(i,r,3);++f<e&&i(t[f],f,t);)u++;else if(u=i,u==null||r)return t?t[0]:pt;return fi(t,0,fu(nt(0,u),e))}function rf(n,t,i){var u,r;if(typeof i=="number")u=n?n.length:0,i=i<0?nt(0,u+i):i||0;else if(i)return r=vr(n,t),n[r]===t?r:-1;return gr(n,t,i)}function yi(t,i,r){if(typeof i!="number"&&i!=null){var u=0,f=-1,e=t?t.length:0;for(i=n.createCallback(i,r,3);++f<e&&i(t[f],f,t);)u++}else u=i==null||r?1:nt(0,i);return fi(t,u)}function vr(t,i,r,u){var f=0,o=t?t.length:f,e;for(r=r?n.createCallback(r,u,1):pi,i=r(i);f<o;)e=f+o>>>1,r(t[e])<i?f=e+1:o=e;return f}function yr(n,t){return arguments.length>2?at(n,17,hi.call(arguments,2),null,t):at(n,1,null,null,t)}function uf(n,t,i){var f=typeof n;if(n==null||f=="function")return ci(n,t,i);if(f!="object")return function(t){return t[n]};var u=w(n),e=u[0],r=n[e];return u.length==1&&r===r&&!l(r)?function(n){var t=n[e];return r===t&&(r!==0||1/r==1/t)}:function(t){for(var i=u.length,r=!1;i--;)if(!(r=p(t[u[i]],n[u[i]],null,!0)))break;return r}}function pr(n,t,i){var e,r,o,s,h,u,p,c=0,a=!1,v=!0,y,w,b;if(!f(n))throw new TypeError;return t=nt(0,t)||0,i===!0?(y=!0,v=!1):l(i)&&(y=i.leading,a="maxWait"in i&&(nt(t,i.maxWait)||0),v="trailing"in i?i.trailing:v),w=function(){var i=t-(new Date-s),f;i<=0?(r&&clearTimeout(r),f=p,r=u=p=pt,f&&(c=+new Date,o=n.apply(h,e))):u=setTimeout(w,i)},b=function(){u&&clearTimeout(u);r=u=p=pt;(v||a!==t)&&(c=+new Date,o=n.apply(h,e))},function(){var f,i;return e=arguments,s=+new Date,h=this,p=v&&(u||!y),a===!1?f=y&&!u:(r||y||(c=s),i=a-(s-c),i<=0?(r&&(r=clearTimeout(r)),c=s,o=n.apply(h,e)):r||(r=setTimeout(b,i))),u||t===a||(u=setTimeout(w,t)),f&&(o=n.apply(h,e)),o}}function ff(n){var i,t;if(!f(n))throw new TypeError;return function(){return i?t:(i=!0,t=n.apply(this,arguments),n=null,t)}}function ef(n,t,i){var r=!0,u=!0,e;if(!f(n))throw new TypeError;return i===!1?r=!1:l(i)&&(r="leading"in i?i.leading:r,u="trailing"in i?i.trailing:u),i=ri(),i.leading=r,i.maxWait=t,i.trailing=u,e=pr(n,t,i),ot(i),e}function pi(n){return n}function of(n){var t=++wr;return String(n==null?"":n)+t}var pt,wt=[],bt=[],wr=0,br={},wi=40,kr=/^function[ \n\r\t]+\w/,kt=/\bthis\b/,dt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],b="[object Arguments]",rt="[object Array]",gt="[object Boolean]",ni="[object Date]",bi="[object Error]",ki="[object Function]",ti="[object Number]",s="[object Object]",ii="[object RegExp]",d="[object String]",e={boolean:!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},a=e[typeof window]&&window||this,ut=e[typeof exports]&&exports&&!exports.nodeType&&exports,ft=e[typeof module]&&module&&!module.nodeType&&module,dr=ft&&ft.exports===ut&&ut,v=e[typeof global]&&global,t,tr,li,hr;v&&(v.global===v||v.window===v)&&(a=v);var st=[],ei=Error.prototype,g=Object.prototype,nu=String.prototype,h=RegExp("^"+String(g.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),tu=Function.prototype.toString,y=h.test(y=Object.getPrototypeOf)&&y,u=g.hasOwnProperty,ht=st.push,oi=g.propertyIsEnumerable,i=g.toString,iu=st.unshift,nr=function(){try{var t={},n=h.test(n=Object.defineProperty)&&n,i=n(t,t,t)&&n}catch(r){}return i}(),c=h.test(c=i.bind)&&c,ct=h.test(ct=Object.create)&&ct,si=h.test(si=Array.isArray)&&si,ru=a.isFinite,uu=a.isNaN,lt=h.test(lt=Object.keys)&&lt,nt=Math.max,fu=Math.min,hi=st.slice,eu=h.test(a.attachEvent),ou=c&&!/\n|true/.test(c+eu),r={};r[rt]=r[ni]=r[ti]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0};r[gt]=r[d]={constructor:!0,toString:!0,valueOf:!0};r[bi]=r[ki]=r[ii]={constructor:!0,toString:!0};r[s]={constructor:!0},function(){for(var i=dt.length,t,n;i--;){t=dt[i];for(n in r)u.call(r,n)&&!u.call(r[n],t)&&(r[n][t]=!1)}}();t=n.support={},function(){var r=function(){this.x=1},f={"0":1,length:1},u=[],n;r.prototype={valueOf:1,y:1};for(n in new r)u.push(n);for(n in arguments);t.argsClass=i.call(arguments)==b;t.argsObject=arguments.constructor==Object&&!(arguments instanceof Array);t.enumErrorProps=oi.call(ei,"message")||oi.call(ei,"name");t.enumPrototypes=oi.call(r,"prototype");t.fastBind=c&&!ou;t.funcDecomp=!h.test(a.WinRTError)&&kt.test(function(){return this});t.funcNames=typeof Function.name=="string";t.nonEnumArgs=n!=0;t.nonEnumShadows=!/valueOf/.test(u);t.ownLast=u[0]!="x";t.spliceObjects=(st.splice.call(f,0,1),!f[0]);t.unindexedChars="x"[0]+Object("x")[0]!="xx";try{t.nodeClass=!(i.call(document)==s&&!({toString:0}+""))}catch(e){t.nodeClass=!0}}(1);tr=function(n){var i="var index, iterable = "+n.firstArg+", result = "+n.init+";\nif (!iterable) return result;\n"+n.top+";",r;if(n.array?(i+="\nvar length = iterable.length; index = -1;\nif ("+n.array+") {  ",t.unindexedChars&&(i+="\n  if (isString(iterable)) {\n    iterable = iterable.split('')\n  }  "),i+="\n  while (++index < length) {\n    "+n.loop+";\n  }\n}\nelse {  "):t.nonEnumArgs&&(i+="\n  var length = iterable.length; index = -1;\n  if (length && isArguments(iterable)) {\n    while (++index < length) {\n      index += '';\n      "+n.loop+";\n    }\n  } else {  "),t.enumPrototypes&&(i+="\n  var skipProto = typeof iterable == 'function';\n  "),t.enumErrorProps&&(i+="\n  var skipErrorProps = iterable === errorProto || iterable instanceof Error;\n  "),r=[],t.enumPrototypes&&r.push('!(skipProto && index == "prototype")'),t.enumErrorProps&&r.push('!(skipErrorProps && (index == "message" || index == "name"))'),n.useHas&&n.keys)i+="\n  var ownIndex = -1,\n      ownProps = objectTypes[typeof iterable] && keys(iterable),\n      length = ownProps ? ownProps.length : 0;\n\n  while (++ownIndex < length) {\n    index = ownProps[ownIndex];\n",r.length&&(i+="    if ("+r.join(" && ")+") {\n  "),i+=n.loop+";    ",r.length&&(i+="\n    }"),i+="\n  }  ";else if(i+="\n  for (index in iterable) {\n",n.useHas&&r.push("hasOwnProperty.call(iterable, index)"),r.length&&(i+="    if ("+r.join(" && ")+") {\n  "),i+=n.loop+";    ",r.length&&(i+="\n    }"),i+="\n  }    ",t.nonEnumShadows){for(i+="\n\n  if (iterable !== objectProto) {\n    var ctor = iterable.constructor,\n        isProto = iterable === (ctor && ctor.prototype),\n        className = iterable === stringProto ? stringClass : iterable === errorProto ? errorClass : toString.call(iterable),\n        nonEnum = nonEnumProps[className];\n      ",k=0;k<7;k++)i+="\n    index = '"+n.shadowedProps[k]+"';\n    if ((!(isProto && nonEnum[index]) && hasOwnProperty.call(iterable, index))",n.useHas||(i+=" || (!nonEnum[index] && iterable[index] !== objectProto[index])"),i+=") {\n      "+n.loop+";\n    }      ";i+="\n  }    "}return(n.array||t.nonEnumArgs)&&(i+="\n}"),i+(n.bottom+";\nreturn result")};ct||(ir=function(n){if(l(n)){et.prototype=n;var t=new et;et.prototype=null}return t||{}});li=nr?function(n,t){var i=ri();i.value=t;nr(n,"__bindData__",i);ot(i)}:et;t.argsClass||(o=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&u.call(n,"callee")||!1});var vt=si||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&i.call(n)==rt||!1},ur=tt({args:"object",init:"[]",top:"if (!(objectTypes[typeof object])) return result",loop:"result.push(index)"}),w=lt?function(n){return l(n)?t.enumPrototypes&&typeof n=="function"||t.nonEnumArgs&&n.length&&o(n)?ur(n):lt(n):[]}:ur,yt={args:"collection, callback, thisArg",top:"callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3)",array:"typeof length == 'number'",keys:w,loop:"if (callback(iterable[index], index, collection) === false) return result"},su={args:"object, source, guard",top:"var args = arguments,\n    argsIndex = 0,\n    argsLength = typeof guard == 'number' ? 2 : args.length;\nwhile (++argsIndex < argsLength) {\n  iterable = args[argsIndex];\n  if (iterable && objectTypes[typeof iterable]) {",keys:w,loop:"if (typeof result[index] == 'undefined') result[index] = iterable[index]",bottom:"  }\n}"},fr={top:"if (!objectTypes[typeof iterable]) return result;\n"+yt.top,array:!1},er=tt(yt),hu=tt(su),it=tt(yt,fr,{useHas:!1}),or=tt(yt,fr);f(/x/)&&(f=function(n){return typeof n=="function"&&i.call(n)==ki});hr=y?function(n){if(!(n&&i.call(n)==s)||!t.argsClass&&o(n))return!1;var u=n.valueOf,r=typeof u=="function"&&(r=y(u))&&y(r);return r?n==r||y(n)==r:rr(n)}:rr;n.bind=yr;n.createCallback=uf;n.debounce=pr;n.defaults=hu;n.forEach=lr;n.forIn=it;n.forOwn=or;n.keys=w;n.map=ar;n.once=ff;n.rest=yi;n.throttle=ef;n.toArray=tf;n.values=cr;n.collect=ar;n.drop=yi;n.each=lr;n.tail=yi;n.has=cu;n.identity=pi;n.indexOf=rf;n.isArguments=o;n.isArray=vt;n.isBoolean=lu;n.isDate=au;n.isElement=vu;n.isEmpty=yu;n.isEqual=pu;n.isFinite=wu;n.isFunction=f;n.isNaN=bu;n.isNull=ku;n.isNumber=sr;n.isObject=l;n.isPlainObject=hr;n.isRegExp=du;n.isString=ai;n.isUndefined=gu;n.size=nf;n.sortedIndex=vr;n.uniqueId=of;n.first=vi;n.take=vi;n.head=vi;n.VERSION="2.1.0";typeof define=="function"&&typeof define.amd=="object"&&define.amd?(a._=n,define(function(){return n})):ut&&ft?dr?(ft.exports=n)._=n:ut._=n:a._=n}).call(this);!function(n,t,i){function e(n,i){var r=t.createElement(n||"div");for(var u in i)r[u]=i[u];return r}function u(n){for(var t=1,i=arguments.length;t<i;t++)n.appendChild(arguments[t]);return n}function y(n,t,i,r){var u=["opacity",t,~~(n*100),i,r].join("-"),f=.01+i/r*100,e=Math.max(1-(1-n)/t*(100-f),n),h=o.substring(0,o.indexOf("Animation")).toLowerCase(),c=h&&"-"+h+"-"||"";return l[u]||(s.insertRule("@"+c+"keyframes "+u+"{0%{opacity:"+e+"}"+f+"%{opacity:"+n+"}"+(f+.01)+"%{opacity:1}"+(f+t)%100+"%{opacity:"+n+"}100%{opacity:"+e+"}}",s.cssRules.length),l[u]=1),u}function h(n,t){var f=n.style,u,r;if(f[t]!==i)return t;for(t=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<c.length;r++)if(u=c[r]+t,f[u]!==i)return u}function r(n,t){for(var i in t)n.style[h(n,i)||i]=t[i];return n}function a(n){for(var u,r,t=1;t<arguments.length;t++){u=arguments[t];for(r in u)n[r]===i&&(n[r]=u[r])}return n}function v(n){for(var t={x:n.offsetLeft,y:n.offsetTop};n=n.offsetParent;)t.x+=n.offsetLeft,t.y+=n.offsetTop;return t}function f(n){if(!this.spin)return new f(n);this.opts=a(n||{},f.defaults,p)}var c=["webkit","Moz","ms","O"],l={},o,s=function(){var n=e("style",{type:"text/css"});return u(t.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}(),p={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",speed:1,trail:100,opacity:1/4,fps:20,zIndex:2e9,className:"spinner",top:"auto",left:"auto",position:"relative"};f.defaults={};a(f.prototype,{spin:function(n){this.stop();var i=this,t=i.opts,u=i.el=r(e(0,{className:t.className}),{position:t.position,width:0,zIndex:t.zIndex}),c=t.radius+t.length+t.width,f,s;if(n&&(n.insertBefore(u,n.firstChild||null),s=v(n),f=v(u),r(u,{left:(t.left=="auto"?s.x-f.x+(n.offsetWidth>>1):parseInt(t.left,10)+c)+"px",top:(t.top=="auto"?s.y-f.y+(n.offsetHeight>>1):parseInt(t.top,10)+c)+"px"})),u.setAttribute("aria-role","progressbar"),i.lines(u,i.opts),!o){var l=0,a=t.fps,h=a/t.speed,y=(1-t.opacity)/(h*t.trail/100),p=h/t.lines;(function w(){var n,r;for(l++,n=t.lines;n;n--)r=Math.max(1-(l+n*p)%h*y,t.opacity),i.opacity(u,t.lines-n,r,t);i.timeout=i.el&&setTimeout(w,~~(1e3/a))})()}return i},stop:function(){var n=this.el;return n&&(clearTimeout(this.timeout),n.parentNode&&n.parentNode.removeChild(n),this.el=i),this},lines:function(n,t){function s(n,u){return r(e(),{position:"absolute",width:t.length+t.width+"px",height:t.width+"px",background:n,boxShadow:u,transformOrigin:"left",transform:"rotate("+~~(360/t.lines*i+t.rotate)+"deg) translate("+t.radius+"px,0)",borderRadius:(t.corners*t.width>>1)+"px"})}for(var i=0,f;i<t.lines;i++)f=r(e(),{position:"absolute",top:1+~(t.width/2)+"px",transform:t.hwaccel?"translate3d(0,0,0)":"",opacity:t.opacity,animation:o&&y(t.opacity,t.trail,i,t.lines)+" "+1/t.speed+"s linear infinite"}),t.shadow&&u(f,r(s("#000","0 0 4px #000"),{top:"2px"})),u(n,u(f,s(t.color,"0 0 1px rgba(0,0,0,.1)")));return n},opacity:function(n,t,i){t<n.childNodes.length&&(n.childNodes[t].style.opacity=i)}}),function(){function n(n,t){return e("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',t)}var t=r(e("group"),{behavior:"url(#default#VML)"});!h(t,"transform")&&t.adj?(s.addRule(".spin-vml","behavior:url(#default#VML)"),f.prototype.lines=function(t,i){function s(){return r(n("group",{coordsize:o+" "+o,coordorigin:-e+" "+-e}),{width:o,height:o})}function l(t,f,o){u(c,u(r(s(),{rotation:360/i.lines*t+"deg",left:~~f}),u(r(n("roundrect",{arcsize:i.corners}),{width:e,height:i.width,left:i.radius,top:-i.width>>1,filter:o}),n("fill",{color:i.color,opacity:i.opacity}),n("stroke",{opacity:0}))))}var e=i.length+i.width,o=2*e,h=-(i.width+i.length)*2+"px",c=r(s(),{position:"absolute",top:h,left:h}),f;if(i.shadow)for(f=1;f<=i.lines;f++)l(f,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(f=1;f<=i.lines;f++)l(f);return u(t,c)},f.prototype.opacity=function(n,t,i,r){var u=n.firstChild;r=r.shadow&&r.lines||0;u&&t+r<u.childNodes.length&&(u=u.childNodes[t+r],u=u&&u.firstChild,u=u&&u.firstChild,u&&(u.opacity=i))}):o=h(t,"animation")}();typeof define=="function"&&define.amd?define(function(){return f}):n.Spinner=f}(window,document);
/*! waitForImages jQuery Plugin - v2.0.0 - 2015-02-25
* https://github.com/alexanderdickson/waitForImages
* Copyright (c) 2015 Alex Dickson; Licensed MIT */
(function(n){var t="waitForImages";n.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]};n.expr[":"].uncached=function(t){if(!n(t).is('img[src][src!=""]'))return!1;var i=new Image;return i.src=t.src,!i.complete};n.fn.waitForImages=function(){var f=0,e=0,o=n.Deferred(),i,r,u;if(n.isPlainObject(arguments[0])?(u=arguments[0].waitForAll,r=arguments[0].each,i=arguments[0].finished):arguments.length===1&&n.type(arguments[0])==="boolean"?u=arguments[0]:(i=arguments[0],r=arguments[1],u=arguments[2]),i=i||n.noop,r=r||n.noop,u=!!u,!n.isFunction(i)||!n.isFunction(r))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var s=n(this),h=[],c=n.waitForImages.hasImageProperties||[],l=n.waitForImages.hasImageAttributes||[],a=/url\(\s*(['"]?)(.*?)\1\s*\)/g;u?s.find("*").addBack().each(function(){var t=n(this);t.is("img:uncached")&&h.push({src:t.attr("src"),element:t[0]});n.each(c,function(n,i){var r=t.css(i),u;if(!r)return!0;while(u=a.exec(r))h.push({src:u[2],element:t[0]})});n.each(l,function(i,r){var u=t.attr(r),f;if(!u)return!0;f=u.split(",");n.each(f,function(i,r){r=n.trim(r).split(" ")[0];h.push({src:r,element:t[0]})})})}):s.find("img:uncached").each(function(){h.push({src:this.src,element:this})});f=h.length;e=0;f===0&&(i.call(s[0]),o.resolveWith(s[0]));n.each(h,function(u,h){var c=new Image,l="load."+t+" error."+t;n(c).one(l,function a(t){var u=[e,f,t.type=="load"];return e++,r.apply(h.element,u),o.notifyWith(h.element,u),n(this).off(l,a),e==f?(i.call(s[0]),o.resolveWith(s[0]),!1):void 0});c.src=h.src})}),o.promise()}})(jQuery),function(n){"use strict";if(n.Event.prototype.stop)throw new Error("Can not extend jQuery Event in jquery-extensions.js");else n.Event.prototype.stop=function(){this.preventDefault();this.stopPropagation()};n.fn.exists||(n.fn.exists=function(){return this.length>0});n.fn.display||(n.fn.display=function(){return this.css("display","block")});n.fn.setInvisible||(n.fn.setInvisible=function(){return this.css("visibility","hidden")});n.fn.setVisible||(n.fn.setVisible=function(){return this.css("visibility","visible")});n.fn.isVisible||(n.fn.isVisible=function(){return this.filter(":visible").length>0});n.fn.loadImage||(n.fn.loadImage=function(t){function i(i,r){var f=n(r),u;f.data("imgloaded")||(u=f.find(t.selector),u.data(t.dataAttribute)&&u.append('<div class="cover"><img src="'+u.data(t.dataAttribute)+'" alt="'+u.data(t.altAttribute)+'"><\/div>'),f.data("imgloaded",!0))}t=t||{};return _.defaults(t,{selector:".img",dataAttribute:"img",altAttribute:"alt"}),this.each(i),this});n.fn.toggleVertical||(n.fn.toggleVertical=function(n){return this.animate({height:"toggle",opacity:"toggle"},n||300)})}(jQuery),function(){"use strict";_.isJQueryObject||(_.isJQueryObject=function(n){return n&&n instanceof jQuery})}();
/**
 * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
 *
 * @version 0.6.7
 * @codingstandard ftlabs-jsv2
 * @copyright The Financial Times Limited [All Rights Reserved]
 * @license MIT License (see LICENSE.txt)
 */
FastClick.prototype.deviceIsAndroid=navigator.userAgent.indexOf("Android")>0;FastClick.prototype.deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent);FastClick.prototype.deviceIsIOS4=FastClick.prototype.deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent);FastClick.prototype.deviceIsIOSWithBadTarget=FastClick.prototype.deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent);FastClick.prototype.needsClick=function(n){"use strict";switch(n.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(n.disabled)return!0;break;case"input":if(this.deviceIsIOS&&n.type==="file"||n.disabled)return!0;break;case"label":case"video":return!0}return/\bneedsclick\b/.test(n.className)};FastClick.prototype.needsFocus=function(n){"use strict";switch(n.nodeName.toLowerCase()){case"textarea":case"select":return!0;case"input":switch(n.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!n.disabled&&!n.readOnly;default:return/\bneedsfocus\b/.test(n.className)}};FastClick.prototype.sendClick=function(n,t){"use strict";var r,i;document.activeElement&&document.activeElement!==n&&document.activeElement.blur();i=t.changedTouches[0];r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null);r.forwardedTouchEvent=!0;n.dispatchEvent(r)};FastClick.prototype.focus=function(n){"use strict";var t;this.deviceIsIOS&&n.setSelectionRange?(t=n.value.length,n.setSelectionRange(t,t)):n.focus()};FastClick.prototype.updateScrollParent=function(n){"use strict";var i,t;if(i=n.fastClickScrollParent,!i||!i.contains(n)){t=n;do{if(t.scrollHeight>t.offsetHeight){i=t;n.fastClickScrollParent=t;break}t=t.parentElement}while(t)}i&&(i.fastClickLastScrollTop=i.scrollTop)};FastClick.prototype.getTargetElementFromEventTarget=function(n){"use strict";return n.nodeType===Node.TEXT_NODE?n.parentNode:n};FastClick.prototype.onTouchStart=function(n){"use strict";var i,t,r;if(n.targetTouches.length>1)return!0;if(i=this.getTargetElementFromEventTarget(n.target),t=n.targetTouches[0],this.deviceIsIOS){if(r=window.getSelection(),r.rangeCount&&!r.isCollapsed)return!0;if(!this.deviceIsIOS4){if(t.identifier===this.lastTouchIdentifier)return n.preventDefault(),!1;this.lastTouchIdentifier=t.identifier;this.updateScrollParent(i)}}return this.trackingClick=!0,this.trackingClickStart=n.timeStamp,this.targetElement=i,this.touchStartX=t.pageX,this.touchStartY=t.pageY,n.timeStamp-this.lastClickTime<200&&n.preventDefault(),!0};FastClick.prototype.touchHasMoved=function(n){"use strict";var t=n.changedTouches[0],i=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>i||Math.abs(t.pageY-this.touchStartY)>i?!0:!1};FastClick.prototype.findControl=function(n){"use strict";return n.control!==undefined?n.control:n.htmlFor?document.getElementById(n.htmlFor):n.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")};FastClick.prototype.onTouchEnd=function(n){"use strict";var u,e,i,r,f,t=this.targetElement;if(this.touchHasMoved(n)&&(this.trackingClick=!1,this.targetElement=null),!this.trackingClick)return!0;if(n.timeStamp-this.lastClickTime<200)return this.cancelNextClick=!0,!0;if(this.lastClickTime=n.timeStamp,e=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,this.deviceIsIOSWithBadTarget&&(f=n.changedTouches[0],t=document.elementFromPoint(f.pageX-window.pageXOffset,f.pageY-window.pageYOffset)),i=t.tagName.toLowerCase(),i==="label"){if(u=this.findControl(t),u){if(this.focus(t),this.deviceIsAndroid)return!1;t=u}}else if(this.needsFocus(t))return n.timeStamp-e>100||this.deviceIsIOS&&window.top!==window&&i==="input"?(this.targetElement=null,!1):(this.focus(t),this.deviceIsIOS4&&i==="select"||(this.targetElement=null,n.preventDefault()),!1);return this.deviceIsIOS&&!this.deviceIsIOS4&&(r=t.fastClickScrollParent,r&&r.fastClickLastScrollTop!==r.scrollTop)?!0:(this.needsClick(t)||(n.preventDefault(),this.sendClick(t,n)),!1)};FastClick.prototype.onTouchCancel=function(){"use strict";this.trackingClick=!1;this.targetElement=null};FastClick.prototype.onMouse=function(n){"use strict";return this.targetElement?n.forwardedTouchEvent?!0:n.cancelable?!this.needsClick(this.targetElement)||this.cancelNextClick?(n.stopImmediatePropagation?n.stopImmediatePropagation():n.propagationStopped=!0,n.stopPropagation(),n.preventDefault(),!1):!0:!0:!0};FastClick.prototype.onClick=function(n){"use strict";var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):n.target.type==="submit"&&n.detail===0?!0:(t=this.onMouse(n),t||(this.targetElement=null),t)};FastClick.prototype.destroy=function(){"use strict";var n=this.layer;this.deviceIsAndroid&&(n.removeEventListener("mouseover",this.onMouse,!0),n.removeEventListener("mousedown",this.onMouse,!0),n.removeEventListener("mouseup",this.onMouse,!0));n.removeEventListener("click",this.onClick,!0);n.removeEventListener("touchstart",this.onTouchStart,!1);n.removeEventListener("touchend",this.onTouchEnd,!1);n.removeEventListener("touchcancel",this.onTouchCancel,!1)};FastClick.notNeeded=function(n){"use strict";var t;if(typeof ontouchstart=="undefined")return!0;if(/Chrome\/[0-9]+/.test(navigator.userAgent))if(FastClick.prototype.deviceIsAndroid){if(t=document.querySelector("meta[name=viewport]"),t&&t.content.indexOf("user-scalable=no")!==-1)return!0}else return!0;return n.style.msTouchAction==="none"?!0:!1};FastClick.attach=function(n){"use strict";return new FastClick(n)};typeof define!="undefined"&&define.amd?define(function(){"use strict";return FastClick}):typeof module!="undefined"&&module.exports?(module.exports=FastClick.attach,module.exports.FastClick=FastClick):window.FastClick=FastClick,function(n){"use strict";var t=n.event.special,i="D"+ +new Date,r="D"+(+new Date+1);t.scrollstart={setup:function(){var r,u=function(i){var u=this,f=arguments;r?clearTimeout(r):(i.type="scrollstart",n.event.dispatch.apply(u,f));r=setTimeout(function(){r=null},t.scrollend.latency)};n(this).bind("scroll",u).data(i,u)},teardown:function(){n(this).unbind("scroll",n(this).data(i))}};t.scrollend={latency:300,setup:function(){var i,u=function(r){var u=this,f=arguments;i&&clearTimeout(i);i=setTimeout(function(){i=null;r.type="scrollend";n.event.dispatch.apply(u,f)},t.scrollend.latency)};n(this).bind("scroll",u).data(r,u)},teardown:function(){n(this).unbind("scroll",n(this).data(r))}}}(jQuery);LIB.url=function(n,t){"use strict";function u(){var s=n.location.search.substring(1),e=s.split("&"),r,o,u,t,f;for(i={},r=0,o=e.length;r<o;r+=1){if(u=e[r].split("="),u.length!==2)break;t=u[0];f=u[1];i.hasOwnProperty(t)?_.isArray(i[t])?i[t].push(f):i[t]=[i[t],f]:i[t]=f}return i}function e(){var f="",t="?",u,e;_.each(i,function(n,i){if(_.isArray(n))for(u=0,e=n.length;u<e;u+=1)f+=t+i+"="+n[u],t="&";else f+=t+i+"="+n,t="&"});r&&setTimeout(function(){n.history.replaceState({},document.title,n.location.pathname+f)},0)}function f(n,t,f){return r?(u(),i[n]=t,f&&e(),!0):!1}function o(n,t){return f(n,t,!0)}function s(n){return r?_.isPlainObject(n)?(_.each(n,function(n,t){f(t,n,!1)}),e(),!0):arguments.length===2?f(arguments[0],arguments[1],!0):!1:!1}function h(n){return(u(),i.hasOwnProperty(n))?i[n]:t}var i,r=Modernizr.history&&n.history.replaceState;return{getParam:h,setParam:o,setParams:s,params:u(),protocol:n.location.protocol,host:n.location.host,path:n.location.pathname,origin:n.location.protocol+"//"+n.location.host}}(window);LIB.namespace("LIB.ajax");LIB.ajax=function(n){"use strict";return{partial:function(t,i){var r=t.indexOf("?")===-1?"?":"&",u=t+r+"_partial=true";return i=i||{},_.defaults(i,{headers:{},dataType:"html"}),_.defaults(i.headers,{"X-PARTIAL":!0}),n.ajax(u,i)}}}(jQuery);LIB.namespace("LIB.ajaxAutoLoad");LIB.ajaxAutoLoad=function(n){"use strict";n(".ajax-auto-load").each(function(){var t=n(this),i=t.attr("data-ajaxurl");LIB.ajax.partial(i,{dataType:"html",type:"GET",beforeSend:function(){}}).done(function(i){t.replaceWith(n(i))}).error(function(){}).complete(function(){})})}(jQuery);LIB.namespace("LIB.transition");LIB.transition=function(){"use strict";var n;return n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"}[Modernizr.prefixed("transition")],{eventName:n,hasEvent:n!==undefined}}();LIB.namespace("LIB.translations"),function(){"use strict";LIB.translations={add:function(n,t){var i=LIB.translations[n];i=_.isObject(i)?i:{};LIB.translations[n]=_.defaults(t,i)}}}();LIB.namespace("LIB.forceRepaint");LIB.forceRepaint=function(){"use strict";try{document.styleSheets[0].addRule(".xxxxxx","position: relative")}catch(n){}};LIB.namespace("LIB.cursor");LIB.cursor=function(n){"use strict";function i(i){return(_.isJQueryObject(i)?t=i[0]:typeof i=="string"&&(t=n.getElementById(i)),t=t||i,t.nodeName==="INPUT"||t.nodeName==="TEXTAREA")?!0:!1}function r(n,r){if(i(n))if(t.setSelectionRange)t.focus(),t.setSelectionRange(r,r);else if(t.createTextRange){var u=t.createTextRange();u.collapse(!0);u.moveEnd("character",r);u.moveStart("character",r);u.select()}}function u(n){return i(n)&&typeof t.selectionStart=="number"?t.selectionStart:-1}var t;return{set:r,get:u}}(window.document);LIB.namespace("LIB.hasOverflow");LIB.hasOverflow=function(n){"use strict";if(n)return{y:n.offsetHeight<n.scrollHeight,x:n.offsetWidth<n.scrollWidth}};LIB.namespace("LIB.cookie");LIB.cookie=function(){"use strict";function t(n){var t;return(t=new RegExp("(?:^|; )"+encodeURIComponent(n)+"=([^;]*)").exec(document.cookie))?t[1]:null}function n(n,t,i){var r,u="",f="";i=i||{};i.domain&&(f="; domain="+i.domain);i.days&&(r=new Date,r.setTime(r.getTime()+i.days*864e5),u="; expires="+r.toGMTString());document.cookie=n+"="+t+u+f+";path=/"}function i(t,i){var r={days:-1};i&&(r.domain=i);n(t,"",r)}return{get:t,set:n,remove:i}}();LIB.namespace("LIB.setupAutoRedirect");LIB.setupAutoRedirect=function(n){"use strict";var t=$(n),i=t.attr("data-autoredirect-delay")*1e3;window.setTimeout(function(){t.click()},i)};LIB.namespace("LIB.transferToBusiness");LIB.transferToBusiness=function(n){"use strict";var i=$(n),r=i.attr("href"),u=i.attr("data-refreshLegacyLoginUrl"),t=function(){LIB.setCustomerSite("business");window.location.href="/se/organisationer/populateCart.aspx?redirectUrl="+r};return r&&(window.event&&(window.event.preventDefault?window.event.preventDefault():window.event.returnValue=!1),u?$.ajax({type:"PUT",dataType:"json",url:u,success:t,error:t}):t()),!1};LIB.namespace("LIB.setCustomerSite");LIB.setCustomerSite=function(n,t){"use strict";n&&LIB.cookie.set("customertype",n,{days:3650});t&&LIB.cookie.set("culture",t,{days:3650})};LIB.namespace("LIB.isSecureConnection");LIB.isSecureConnection=function(){"use strict";return $("meta[name=security]").length>0?!0:location.protocol==="https:"};LIB.namespace("LIB.events");LIB.events=function(){"use strict";function n(n){this.name=n}return n.prototype.trigger=function(){$(document).trigger(this.name)},n.prototype.on=function(n){$(document).on(this.name,n)},{ajaxSend:new n("ajaxSend"),ajaxSent:new n("ajaxComplete"),domChanged:new n("DOMChanged")}}();LIB.namespace("LIB.$scrollableElement"),function(n){"use strict";function t(n){if(_.isNumber(n.scrollTop))return(n.scrollTop=1,n.scrollTop>0)?(n.scrollTop=0,!0):!1}function i(){for(var i=0,r=arguments.length;i<r;i+=1)if(arguments[i].scrollTop||t(arguments[i]))return $(arguments[i]);return $(n.body)}LIB.$scrollableElement=i(n.body,n.documentElement)}(document);LIB.namespace("LIB.onload"),function(n){"use strict";function i(i){if(t)return i(),!0;$(n).on("load",i);return!1}var t=!1;$(n).on("load",function(){t=!0});LIB.onload=function(n){return typeof n=="function"?i(n):t}}(window);LIB.namespace("LIB.mediaQueryNames"),function(){"use strict";LIB.mediaQueryNames={mobile:{value:1,width:1},"wide-mobile":{value:2,width:480},"narrow-tablet":{value:3,width:640},tablet:{value:4,width:840},desktop:{value:5,width:1024},"wide-desktop":{value:6,width:1200}}}();LIB.namespace("LIB.mediaQuery"),function(n,t,i){"use strict";function r(){function e(n){var i;return n=parseInt(n,10),_.each(t,function(t,r){t.value===n&&(i=r)}),i}function r(n){return _.has(t,n)}function u(n){if(r(n))return t[n].value}function o(){var n;return _.each(t,function(i,r){f>=t[r].width&&(n=r)}),n}function s(n){if(r(n))return f>=t[n].width}var t=LIB.mediaQueryNames,f=Math.max(n.screen.width,n.screen.height);this.setCurrent=function(n){this.current=e(n);this.currentKey=n};this.max=o();this.maxWiderThan=s;this.keys=_.toArray(_.map(t,function(n,t){return t}));this.currentKey=-1;this.current="";this.hasKey=r;this.minWidth=function(n){if(r(n))return t[n].width};this.isNarrowerThan=function(n){if(n!==i&&r(n))return u(this.current)<u(n)};this.isWiderThan=function(n){if(n!==i&&r(n))return u(this.current)>u(n)}}LIB.mediaQuery=new r}(window,document);LIB.namespace("LIB.screen");LIB.screen=function(n){"use strict";function f(n){return typeof n=="string"&&i.hasKey(n)?t>i.minWidth(n):typeof n=="number"?t>parseInt(n,10):void 0}function e(n){return typeof n=="string"&&i.hasKey(n)?t<i.minWidth(n):typeof n=="number"?t<parseInt(n,10):void 0}var r=n.screen.width,u=n.screen.height,t=Math.max(r,u),i=LIB.mediaQuery;return{width:r,height:u,max:t,isWiderThan:f,isNarrowerThan:e}}(window),function(n){"use strict";function t(){var n=u.css("min-height");n!==r&&(r=n,i=parseInt(n,10),LIB.mediaQuery.setCurrent(i),f.trigger("breakpointchange"))}var i,r="",u=$("#detect-breakpoint"),f=$(n);if(LIB.transition.hasEvent)u.on(LIB.transition.eventName,t);else f.on("resize",_.throttle(t,500));t()}(window),function(){"use strict";var n={deliverylocation:'/cassette.axd/script/675a47491e2cbcfbab76a3f3ee71c6054112cc59/Scripts/modules/deliverylocation',discountcode:'/cassette.axd/script/af0a83cc89faae0d954f8c983c01388455977bf1/Scripts/modules/discountcode',placeholder:{test:Modernizr.input.placeholder,nope:'/cassette.axd/script/fb6094f43610ad29801e0359980194e8d0e8147c/Scripts/modules/placeholder'},giftcard:'/cassette.axd/script/e0b45e0c7201b387947b7afc932f014b9f6adcd0/Scripts/modules/giftcard',libraryequipment:'/cassette.axd/script/37f8df0e4371efc8659bd3b1d26f59bbf5751ee5/Scripts/modules/libraryequipment',search:'/cassette.axd/script/7502164267a0804d4389912cfe50ea8f57aaa8f0/Scripts/modules/search',shipping:'/cassette.axd/script/bbdeb0bc3d6255304c7f43e8733c1ab697a6689d/Scripts/modules/shipping',newsletter:'/cassette.axd/script/5a5b6abfee460f07c5771ba6a778f836041d1138/Scripts/modules/newsletter',checkoutconfirmation:'/cassette.axd/script/316a56fbfd3e6e55509e75ff614ea4b6ed38c0a2/Scripts/modules/checkoutconfirmation',infonav:'/cassette.axd/script/b9facc6fa2fdba1a2c249677ac107f67a86d1bb0/Scripts/modules/infonav',customerservice:'/cassette.axd/script/46edba863eb827fe5b242902f06032d8beac47b2/Scripts/modules/customerservice',pagination:'/cassette.axd/script/48d1f4c64cfa40fdd73662e921911ebc58e04c7d/Scripts/modules/pagination',validation:'/cassette.axd/script/25d3003fcd1284a2958f2bc879ab9e13d4d922ee/Scripts/modules/validation',alert:'/cassette.axd/script/ccfdccc386bea431194ded0e90edcd870edd838b/Scripts/modules/alert',reviews:'/cassette.axd/script/b52996c4d884113f58abd8bb7e71f5f2d2bcb24d/Scripts/modules/reviews',wishlist:'/cassette.axd/script/94f4e01739df68b65d21ccbcfc30c2dc8d02dacd/Scripts/modules/wishlist',collections:'/cassette.axd/script/a4d4d22035f103b29a3dbf23fb3ca78903db2f0f/Scripts/modules/collections',checkbox:'/cassette.axd/script/07a82b1381b429b4cc470fcf4af63133bf67b5fd/Scripts/modules/checkbox',sortby:'/cassette.axd/script/93a29eaf146d64e803a59800f657a145000e887a/Scripts/modules/sortby',checkout:'/cassette.axd/script/aac789d51c0fb2b058604fc577a69c059650aacc/Scripts/modules/checkout',fallbackCheckout:'/cassette.axd/script/8730dc58236223d97fd1062dd94a46dbd250cb27/Scripts/modules/fallback-checkout',campaigngroup:'/cassette.axd/script/55609b205a4c3bd8ed8052ed080b5cc0d52178c8/Scripts/modules/campaigngroup',tradedoubler:'/cassette.axd/script/9c54cfbd06476c69aa3b1f3f6c076b91898063b5/Scripts/modules/tradedoubler',productHeight:'/cassette.axd/script/985f8f6b52eabbf6f1cd8d4be1e29d4c730f3f9a/Scripts/modules/set-product-height',showMoreProducts:'/cassette.axd/script/25bd442a519462dd4e95e9427b6f442c30a67665/Scripts/modules/show-more-products',showMoreVariants:'/cassette.axd/script/5908200b7a71a418abfae15c0a1d2d0cbd019e36/Scripts/modules/show-more-variants',setLinkToList:'/cassette.axd/script/ca3d600ecd0233e304b1ddb5480da579a1f99869/Scripts/modules/set-link-to-list',payment:'/cassette.axd/script/7e83c4a0b06d4de8e04bcaaa75e460d2347813bb/Scripts/modules/payment',breadcrumbs:'/cassette.axd/script/dbcc7c7965722be7b98d1db949780b1dc74588e6/Scripts/modules/breadcrumbs',showMoreButton:'/cassette.axd/script/d1bc75abdbd511f7b2c6d5ca8e56d21b7dd09936/Scripts/modules/show-more-button',issuuSampleRead:'/cassette.axd/script/349e2335e364fad8be5514219c99ef0d8448e90c/Scripts/modules/issuu-sample-read'};LIB.namespace("LIB.module.allModules");LIB.module.allModules=n}(),function(n){"use strict";function r(n,t,r){var u="("+r.replace(i,"\\$1")+")";return n.replace(new RegExp(u,"gi"),"<strong>$1<\/strong>")}function t(t,i){this.el=n(t);this.el.attr("autocomplete","off");this.suggestions=[];this.data=[];this.badQueries=[];this.selectedIndex=-1;this.currentValue=this.el.val();this.intervalId=0;this.cachedResponse=[];this.onChangeInterval=null;this.onChange=null;this.ignoreValueChange=!1;this.serviceUrl=i.serviceUrl;this.isLocal=!1;this.options={autoSubmit:!1,minChars:1,maxHeight:300,deferRequestBy:0,width:0,highlight:!0,params:{},fnFormatResult:r,delimiter:null,zIndex:9999};this.initialize();this.setOptions(i);this.el.data("autocomplete",this)}var i=new RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)","g");n.fn.autocomplete=function(i,r){var u;return typeof i=="string"?(u=this.data("autocomplete"),typeof u[i]=="function"&&u[i](r)):u=new t(this.get(0)||n("<input />"),i),u};t.prototype={killerFn:null,initialize:function(){var t=this,i="auto-complete",r=function(n){t.onKeyPress(n)};this.killerFn=function(i){n(i.target).parents(".autocomplete").length===0&&(t.killSuggestions(),t.disableKillerFn())};this.options.width||(this.options.width=this.el.outerWidth());this.mainContainerId="auto-complete-container";n('<div id="'+this.mainContainerId+'"><div class="autocomplete-w1"><div class="autocomplete" id="'+i+'" style="display:none;"><\/div><\/div><\/div>').appendTo(LIB.mediaQuery.isNarrowerThan("tablet")?"#auto-complete-container-narrow":"#auto-complete-container-wide");this.container=n("#"+i);window.opera?this.el.keypress(r):this.el.keydown(r);this.el.keyup(function(n){t.onKeyUp(n)});this.el.blur(function(){t.enableKillerFn()});this.el.change(function(){t.onValueChanged()})},extendOptions:function(t){n.extend(this.options,t)},setOptions:function(t){var i=this.options;this.extendOptions(t);(i.lookup||i.isLocal)&&(this.isLocal=!0,n.isArray(i.lookup)&&(i.lookup={suggestions:i.lookup,data:[]}));n("#"+this.mainContainerId).css({zIndex:i.zIndex})},clearCache:function(){this.cachedResponse=[];this.badQueries=[]},disable:function(){this.disabled=!0},enable:function(){this.disabled=!1},enableKillerFn:function(){var t=this;n(document).bind("click",t.killerFn)},disableKillerFn:function(){var t=this;n(document).unbind("click",t.killerFn)},killSuggestions:function(){var n=this;n.stopKillSuggestions();n.intervalId=window.setInterval(function(){n.hide();n.stopKillSuggestions()},300)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},onValueChanged:function(){this.change(this.selectedIndex)},onKeyPress:function(n){if(!this.disabled&&this.enabled){switch(n.keyCode){case 27:this.el.val(this.currentValue);this.hide();break;case 9:case 13:if(this.selectedIndex===-1){this.hide();return}if(this.select(this.selectedIndex),n.keyCode===9)return;break;case 38:this.moveUp();break;case 40:this.moveDown();break;default:return}n.stopImmediatePropagation();n.preventDefault()}},onKeyUp:function(n){if(!this.disabled){switch(n.keyCode){case 38:case 40:return}if(clearInterval(this.onChangeInterval),this.currentValue!==this.el.val())if(this.options.deferRequestBy>0){var t=this;this.onChangeInterval=setInterval(function(){t.onValueChange()},this.options.deferRequestBy)}else this.onValueChange()}},onValueChange:function(){clearInterval(this.onChangeInterval);this.currentValue=this.el.val();var n=this.getQuery(this.currentValue);if(this.selectedIndex=-1,this.ignoreValueChange){this.ignoreValueChange=!1;return}n===""||n.length<this.options.minChars?this.hide():this.getSuggestions(n)},getQuery:function(t){var i,r;return(i=this.options.delimiter,!i)?n.trim(t):(r=t.split(i),n.trim(r[r.length-1]))},getSuggestionsLocal:function(n){var i,r,f,u,t;for(r=this.options.lookup,f=r.suggestions.length,i={suggestions:[],data:[]},n=n.toLowerCase(),t=0;t<f;t++)u=r.suggestions[t],u.toLowerCase().indexOf(n)===0&&(i.suggestions.push(u),i.data.push(r.data[t]));return i},getSuggestions:function(t){var i,r;i=this.isLocal?this.getSuggestionsLocal(t):this.cachedResponse[t];i&&n.isArray(i.suggestions)?(this.suggestions=i.suggestions,this.data=i.data,this.suggest()):this.isBadQuery(t)||(r=this,r.options.params.query=t,n.get(this.serviceUrl,r.options.params,function(n){r.processResponse(n)},"text"))},isBadQuery:function(n){for(var t=this.badQueries.length;t--;)if(n.indexOf(this.badQueries[t])===0)return!0;return!1},hide:function(){this.enabled=!1;this.selectedIndex=-1;this.container.hide()},suggest:function(){if(this.suggestions.length===0){this.hide();return}var i,f,r,e,o,t,u,s,h;for(i=this,f=this.suggestions.length,e=this.options.fnFormatResult,o=this.getQuery(this.currentValue),s=function(n){return function(){i.activate(n)}},h=function(n){return function(){i.select(n)}},this.container.hide().empty(),t=0;t<f;t++)u=this.suggestions[t],r=n((i.selectedIndex===t?'<div class="selected"':"<div")+' title="'+u+'" data-notify="'+this.data[t]+'">'+e(u,this.data[t],o)+"<\/div>"),r.mouseover(s(t)),r.click(h(t)),this.container.append(r);this.enabled=!0;this.container.show()},processResponse:function(t){var i;try{i=eval("("+t+")")}catch(r){return}n.isArray(i.data)||(i.data=[]);this.options.noCache||(this.cachedResponse[i.query]=i,i.suggestions.length===0&&this.badQueries.push(i.query));i.query===this.getQuery(this.currentValue)&&(this.suggestions=i.suggestions,this.data=i.data,this.suggest())},activate:function(t){var i,r;return(i=this.container.children(),this.selectedIndex!==-1&&i.length>this.selectedIndex&&n(i.get(this.selectedIndex)).removeClass("selected"),this.selectedIndex=t,this.selectedIndex!==-1&&i.length>this.selectedIndex)?(r=i.get(this.selectedIndex),n(r).addClass("selected"),r):null},deactivate:function(n,t){n.className="";this.selectedIndex===t&&(this.selectedIndex=-1)},select:function(n){var t,i;if(t=this.suggestions[n],t){this.el.val(t);this.options.autoSubmit&&(i=this.el.parents("form"),i.length>0&&i.get(0).submit());this.ignoreValueChange=!0;this.hide();this.onSelect(n)}},change:function(t){var e,u,i,r,f;i=this;e=this.suggestions[t];e?(r=i.suggestions[t],f=i.data[t],i.el.val(i.getValue(r))):(r="",f=-1);u=i.options.onChange;n.isFunction(u)&&u(r,f,i.el)},moveUp:function(){if(this.selectedIndex!==-1){if(this.selectedIndex===0){this.container.children().get(0).className="";this.selectedIndex=-1;this.el.val(this.currentValue);return}this.adjustScroll(this.selectedIndex-1)}},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(n){var r,t,i,u;r=this.activate(n);t=r.offsetTop;i=this.container.scrollTop();u=i+this.options.maxHeight-25;t<i?this.container.scrollTop(t):t>u&&this.container.scrollTop(t-this.options.maxHeight+25);this.el.val(this.getValue(this.suggestions[n]))},onSelect:function(t){var i=this,r=i.options.onSelect,u=i.suggestions[t],f=i.data[t];i.el.val(i.getValue(u));n.isFunction(r)&&r(u,f,i.el)},getValue:function(n){var r=this,u=r.options.delimiter,t,i;return u?(t=r.currentValue,i=t.split(u),i.length===1)?n:t.substr(0,t.length-i[i.length-1].length)+n:n}}}(jQuery);LIB.namespace("ADLIB.autocomplete"),function(n,t,i){"use strict";function s(){o.appendTo(LIB.mediaQuery.isNarrowerThan("tablet")?"#auto-complete-container-narrow":"#auto-complete-container-wide")}var u,f,r=n("#q"),e=n(i.head).find("meta[name=viewport]"),o;if(ADLIB.autocomplete.posted=!1,f=new RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)","g"),u={serviceUrl:r.attr("data-autocomplete-path")?r.attr("data-autocomplete-path"):"/autocomplete/show",minChars:1,deferRequestBy:200,fnFormatResult:function(n,t,i){var r="("+i.replace(f,"\\$1")+")(.*)";return n.replace(new RegExp(r,"gi"),"$1<strong>$2<\/strong>")},onSelect:function(t,i){ADLIB.notify.add(i);ADLIB.autocomplete.posted=!0;n("#search-button").click()}},(!LIB.android||LIB.chrome)&&!LIB.isMondo)r.on("focus",function(){e.attr("content","width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no")}).on("blur",function(){e.attr("content","width=device-width, initial-scale=1, maximum-scale=2, user-scalable=yes")});r.autocomplete(u);o=n("#auto-complete-container");s();n(t).on("breakpointchange",s)}(jQuery,window,document);LIB.namespace("ADLIB.menu");ADLIB.menu=function(n){"use strict";function t(n,t){var r=this;t=t||{};_.defaults(t,{toggleEvent:"click"});this.$el=$(n);this._keepPosition=_.debounce(function(){r.setPosition()},100);this.$target=$("<div />");this.$el.on(t.toggleEvent,function(n){n.stopPropagation();r.isExpanded?r.hide():r.show()});this.$el.on(i,function(n){n.preventDefault();n.stopPropagation()})}function f(n){for(var t=0,i=r.length;t<i;t+=1)r[t]!==n&&r[t].isExpanded&&r[t].hide()}function e(n){n.stopPropagation()}function o(n){n.stopPropagation();LIB.mediaQuery.isNarrowerThan("tablet")&&n.preventDefault();f()}var u=$("#main-container, #dropdown-container"),s=$("div[role=banner] .logo-section"),i="click",r=[];return t.prototype.setPosition=function(){if(LIB.mediaQuery.isNarrowerThan("tablet")){this.$target.css("right","");return}var n=this.$target.css("position")==="fixed"?s.offset().left:0;n>0&&(n-=1);this.$target.css("right",n)},t.prototype.target=function(n){return this.$target=$(n),this},t.prototype.show=function(n){if(n)this._showfn=n;else if(!this.isExpanded){this.isExpanded=!0;f(this);this._showfn();this.$el.closest("li").addClass("expanded");u.on(i,o);this.$target.on(i,e)}return this},t.prototype.hide=function(n){return n?this._hidefn=n:(this.isExpanded=!1,this.$el.closest("li").removeClass("expanded"),this._hidefn(),u.off(i,o),this.$target.off(i,e)),this},t.prototype._showfn=function(){ADLIB.animate.slideDown(this.$target);this.setPosition();$(n).on("resize",this._keepPosition)},t.prototype._hidefn=function(){ADLIB.animate.slideUp(this.$target);$(n).off("resize",this._keepPosition)},{toggler:function(n,i){var u=new t(n,i);return r.push(u),u}}}(window);LIB.namespace("ADLIB.animations");ADLIB.animate=function(){"use strict";function i(n,t){n.height();t()}function t(n,t,r){var f=$.Deferred(),u=function(){f.resolve()};return LIB.transition.hasEvent?i(n,function(){n.off(LIB.transition.eventName,u);n.on(LIB.transition.eventName,u);var i=setTimeout(u,r.timeout||1e3);n.addClass("animate");n.css(t);f.always(function(){clearTimeout(i);n.off(LIB.transition.eventName,u);n.removeClass("animate")})}):(n.stop(),n.animate(t,r.duration,r.easing,u)),f}function n(n,i){return i=_.defaults(i||{},{startHeight:function(){return n.children().outerHeight(!0)},endHeight:function(){return n.children().outerHeight(!0)},before:function(){},after:function(){}}),n.height(i.startHeight()),i.before(),t(n,{height:i.endHeight()},{}).always(function(){i.after();n.css("height","")})}function r(t,i){return i=_.defaults(i||{},{before:function(){t.addClass("visible")},startHeight:function(){return 0},after:function(){t.addClass("visible")}}),n(t,i)}function u(t,i){return i=_.defaults(i||{},{endHeight:function(){return 0},after:function(){t.removeClass("visible")}}),n(t,i)}return{css:t,height:n,slideUp:u,slideDown:r}}($),function(){"use strict";var n;$("#main-nav").find(".mega").each(function(t,i){var r=$(i.getAttribute("data-mmcontainer")),u;u=_.once(function(n){r.on("click",".mega-menu-close-slidedown",function(t){this.href===document.URL&&(t.preventDefault(),n.hide(),LIB.$scrollableElement.animate({scrollTop:$(window.location.hash).offset().top},200))});r.on("click",".mega-menu-close",function(t){t.preventDefault();n.hide()})});ADLIB.menu.toggler(i).target(r).show(function(){r.addClass("visible");n=r.find("img.lazy");n.length!==0&&ADLIB.lazyload.load(n);u(this)}).hide(function(){r.removeClass("visible")})})}(),function(n){"use strict";function p(n){var r=$(n),u=r.find("span"),f=r.find(".visible, .toggler, .header-toggler"),e=r.children("li").not(f);this.collapsed=!0;this.collapsedHeight=r.outerHeight();this.showAllHeight=r.find("li").not(f).first().outerHeight()*r.find("li").length;this.heightDifference=this.showAllHeight-this.collapsedHeight;r.addClass("initialized");r.find(".navmenu-toggler").on("click",function(){$("#nav-toggler").click()});r.on("click","> .toggler, > .header-toggler, > .footer-toggler",{_this:this},function(n){n.preventDefault();var f=n.data._this,s=i.outerHeight(),c=o.outerHeight();f.collapsed?(r.addClass("show-all"),e.toggleVertical(),s+f.heightDifference>c&&t.height(s+f.heightDifference),u.html(u.data("hidetext"))):(r.removeClass("show-all"),e.toggleVertical(),s-f.heightDifference<c?t.height("auto"):t.height(s-f.heightDifference),u.html(u.data("showtext")),$("#mobile-nav").find(".container.show-all").outerHeight()>h&&LIB.$scrollableElement.animate({scrollTop:r.offset().top-170},600));f.collapsed=!f.collapsed})}function w(){f.addClass("toggled");e.addClass("visible");u.on("resize",r);s()}function b(){f.removeClass("toggled");e.removeClass("visible");t.height("auto");u.off("resize",r)}function r(){v=c.width()/-2}var u=$(n),h=900,f=$("#nav-toggler"),e=$("#nav-container"),c=$("#nav"),i=$("#mobile-nav"),o=$("#main-container"),t=$(".nav-viewport"),l,a=$("#header"),v,y=[],s;o.before(i).append($("#footer"));s=_.once(function(){i.find(".expandable").each(function(n,t){y.push(new p(t))})});l=ADLIB.menu.toggler("#nav-toggler").target("#nav-container").show(w).hide(b);a.find(".search-box-text").on("click",function(n){$(n.target).find("input").focus()});if(LIB.screen.isNarrowerThan("tablet"))$(window).on("breakpointchange",LIB.forceRepaint);r()}(window);
/*!
jQuery Waypoints - v2.0.5
Copyright (c) 2011-2014 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt
*/
(function(){var t=[].indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(t in this&&this[t]===n)return t;return-1},n=[].slice;(function(n,t){return typeof define=="function"&&define.amd?define("waypoints",["jquery"],function(i){return t(i,n)}):t(n.jQuery,n)})(window,function(i,r){var a,b,v,o,k,h,s,y,u,f,p,w,d,l,c,e;a=i(r);y=t.call(r,"ontouchstart")>=0;o={horizontal:{},vertical:{}};k=1;s={};h="waypoints-context-id";p="resize.waypoints";w="scroll.waypoints";d=1;l="waypoints-waypoint-ids";c="waypoint";e="waypoints";b=function(){function n(n){var t=this;this.$element=n;this.element=n[0];this.didResize=!1;this.didScroll=!1;this.id="context"+k++;this.oldScroll={x:n.scrollLeft(),y:n.scrollTop()};this.waypoints={horizontal:{},vertical:{}};this.element[h]=this.id;s[this.id]=this;n.bind(w,function(){var n;if(!(t.didScroll||y))return t.didScroll=!0,n=function(){return t.doScroll(),t.didScroll=!1},r.setTimeout(n,i[e].settings.scrollThrottle)});n.bind(p,function(){var n;if(!t.didResize)return t.didResize=!0,n=function(){return i[e]("refresh"),t.didResize=!1},r.setTimeout(n,i[e].settings.resizeThrottle)})}return n.prototype.doScroll=function(){var n,t=this;return n={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!y||n.vertical.oldScroll&&n.vertical.newScroll||i[e]("refresh"),i.each(n,function(n,r){var e,f,u;return u=[],f=r.newScroll>r.oldScroll,e=f?r.forward:r.backward,i.each(t.waypoints[n],function(n,t){var i,f;return r.oldScroll<(i=t.offset)&&i<=r.newScroll?u.push(t):r.newScroll<(f=t.offset)&&f<=r.oldScroll?u.push(t):void 0}),u.sort(function(n,t){return n.offset-t.offset}),f||u.reverse(),i.each(u,function(n,t){if(t.options.continuous||n===u.length-1)return t.trigger([e])})}),this.oldScroll={x:n.horizontal.newScroll,y:n.vertical.newScroll}},n.prototype.refresh=function(){var r,t,n,u=this;return n=i.isWindow(this.element),t=this.$element.offset(),this.doScroll(),r={horizontal:{contextOffset:n?0:t.left,contextScroll:n?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:n?0:t.top,contextScroll:n?0:this.oldScroll.y,contextDimension:n?i[e]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},i.each(r,function(n,t){return i.each(u.waypoints[n],function(n,r){var u,e,f,o,s;if(u=r.options.offset,f=r.offset,e=i.isWindow(r.element)?0:r.$element.offset()[t.offsetProp],i.isFunction(u)?u=u.apply(r.element):typeof u=="string"&&(u=parseFloat(u),r.options.offset.indexOf("%")>-1&&(u=Math.ceil(t.contextDimension*u/100))),r.offset=e-t.contextOffset+t.contextScroll-u,(!r.options.onlyOnScroll||f==null)&&r.enabled)return f!==null&&f<(o=t.oldScroll)&&o<=r.offset?r.trigger([t.backward]):f!==null&&f>(s=t.oldScroll)&&s>=r.offset?r.trigger([t.forward]):f===null&&t.oldScroll>=r.offset?r.trigger([t.forward]):void 0})})},n.prototype.checkEmpty=function(){if(i.isEmptyObject(this.waypoints.horizontal)&&i.isEmptyObject(this.waypoints.vertical))return this.$element.unbind([p,w].join(" ")),delete s[this.id]},n}();v=function(){function n(n,t,r){var u,f;r.offset==="bottom-in-view"&&(r.offset=function(){var n;return n=i[e]("viewportHeight"),i.isWindow(t.element)||(n=t.$element.height()),n-i(this).outerHeight()});this.$element=n;this.element=n[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=t;this.enabled=r.enabled;this.id="waypoints"+d++;this.offset=null;this.options=r;t.waypoints[this.axis][this.id]=this;o[this.axis][this.id]=this;u=(f=this.element[l])!=null?f:[];u.push(this.id);this.element[l]=u}return n.prototype.trigger=function(n){if(this.enabled)return this.callback!=null&&this.callback.apply(this.element,n),this.options.triggerOnce?this.destroy():void 0},n.prototype.disable=function(){return this.enabled=!1},n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},n.prototype.destroy=function(){return delete o[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},n.getWaypointsByElement=function(n){var r,t;return(t=n[l],!t)?[]:(r=i.extend({},o.horizontal,o.vertical),i.map(t,function(n){return r[n]}))},n}();f={init:function(n,t){var r;return t=i.extend({},i.fn[c].defaults,t),(r=t.handler)==null&&(t.handler=n),this.each(function(){var u,r,n,f;return u=i(this),n=(f=t.context)!=null?f:i.fn[c].defaults.context,i.isWindow(n)||(n=u.closest(n)),n=i(n),r=s[n[0][h]],r||(r=new b(n)),new v(u,r,t)}),i[e]("refresh"),this},disable:function(){return f._invoke.call(this,"disable")},enable:function(){return f._invoke.call(this,"enable")},destroy:function(){return f._invoke.call(this,"destroy")},prev:function(n,t){return f._traverse.call(this,n,t,function(n,t,i){if(t>0)return n.push(i[t-1])})},next:function(n,t){return f._traverse.call(this,n,t,function(n,t,i){if(t<i.length-1)return n.push(i[t+1])})},_traverse:function(n,t,f){var e,o;return n==null&&(n="vertical"),t==null&&(t=r),o=u.aggregate(t),e=[],this.each(function(){var t;return t=i.inArray(this,o[n]),f(e,t,o[n])}),this.pushStack(e)},_invoke:function(n){return this.each(function(){var t;return t=v.getWaypointsByElement(this),i.each(t,function(t,i){return i[n](),!0})}),this}};i.fn[c]=function(){var r,t;return t=arguments[0],r=2<=arguments.length?n.call(arguments,1):[],f[t]?f[t].apply(this,r):i.isFunction(t)?f.init.apply(this,arguments):i.isPlainObject(t)?f.init.apply(this,[null,t]):t?i.error("The "+t+" method does not exist in jQuery Waypoints."):i.error("jQuery Waypoints needs a callback function or handler option.")};i.fn[c].defaults={context:r,continuous:!0,enabled:!0,horizontal:!1,offset:0,triggerOnce:!1};u={refresh:function(){return i.each(s,function(n,t){return t.refresh()})},viewportHeight:function(){var n;return(n=r.innerHeight)!=null?n:a.height()},aggregate:function(n){var r,t,u;return(r=o,n&&(r=(u=s[i(n)[0][h]])!=null?u.waypoints:void 0),!r)?[]:(t={horizontal:[],vertical:[]},i.each(t,function(n,u){return i.each(r[n],function(n,t){return u.push(t)}),u.sort(function(n,t){return n.offset-t.offset}),t[n]=i.map(u,function(n){return n.element}),t[n]=i.unique(t[n])}),t)},above:function(n){return n==null&&(n=r),u._filter(n,"vertical",function(n,t){return t.offset<=n.oldScroll.y})},below:function(n){return n==null&&(n=r),u._filter(n,"vertical",function(n,t){return t.offset>n.oldScroll.y})},left:function(n){return n==null&&(n=r),u._filter(n,"horizontal",function(n,t){return t.offset<=n.oldScroll.x})},right:function(n){return n==null&&(n=r),u._filter(n,"horizontal",function(n,t){return t.offset>n.oldScroll.x})},enable:function(){return u._invoke("enable")},disable:function(){return u._invoke("disable")},destroy:function(){return u._invoke("destroy")},extendFn:function(n,t){return f[n]=t},_invoke:function(n){var t;return t=i.extend({},o.vertical,o.horizontal),i.each(t,function(t,i){return i[n](),!0})},_filter:function(n,t,r){var u,f;return(u=s[i(n)[0][h]],!u)?[]:(f=[],i.each(u.waypoints[t],function(n,t){if(r(u,t))return f.push(t)}),f.sort(function(n,t){return n.offset-t.offset}),i.map(f,function(n){return n.element}))}};i[e]=function(){var i,t;return t=arguments[0],i=2<=arguments.length?n.call(arguments,1):[],u[t]?u[t].apply(null,i):u.aggregate.call(null,t)};i[e].settings={resizeThrottle:100,scrollThrottle:30};return a.on("load.waypoints",function(){return i[e]("refresh")})})}).call(this);$.waypoints.settings={resizeThrottle:1e3,scrollThrottle:500},function(n,t){"use strict";function r(n,t,i){return i===1||n%i==0}var i=Modernizr.csstransforms&&Modernizr.csstransitions;Carousel=function(n,t){if(n){var r,i=$(n),f=i.find(".carousel-pager"),u=i.find(".carousel-wrapper");t=t||{};r={startSlide:0,speed:300,callback:function(){},visible:1,move:1,carouselType:"default",partialVisible:!1};this.options=_.defaults(t,r);this.index=this.options.startSlide;this.speed=this.options.speed;this.callback=this.options.callback;this.visible=this.options.visible;this.move=this.options.move;this.carouselType=this.options.carouselType;this.partialVisible=this.options.partialVisible;this.carouselWrapper=u[0];this.$carouselWrapper=u;this.carousel=this.carouselWrapper.children[0];this.$carousel=$(this.carousel);this.$pager=f;this.carousel.style.listStyle="none";this.carousel.style.margin=0;this.slides=this.carousel.children;this.$slides=this.$carousel.children();this.length=this.$slides.length;this.lazyLoadInitialized=!1;this.lazyLoadedAll=!1;this.$nextButton=i.find(".carousel-next");this.$prevButton=i.find(".carousel-prev");this.setButtonVisibility();this.init();this.carousel.addEventListener&&(this.carousel.addEventListener("touchstart",this,!1),this.carousel.addEventListener("touchmove",this,!1),this.carousel.addEventListener("touchend",this,!1),this.carousel.addEventListener("touchcancel",this,!1),this.carousel.addEventListener(LIB.transition.eventName,this,!1),window.addEventListener("resize",this,!1));this.$slides.on("focusin",{carousel:this},this.keyboardNavigation);this.$nextButton.on("click",{carousel:this},this.nextButtonClick);this.$prevButton.on("click",{carousel:this},this.prevButtonClick)}};Carousel.prototype={init:function(){this.length<2||(this.setup(),this.slide(this.index,0))},setup:function(){this.length<2||(this.width=this.$carouselWrapper.width(),this.$carousel.width(Math.ceil(this.length*this.width)+"px"),this.slide(this.index,0))},lazyLoadOnSlide:function(){if(this.lazyLoadInitialized&&!this.lazyLoadedAll){if(this.index===0){this.lazyLoadInitialized=!1;this.initLazyLoad();return}this.$slides.addClass("visible").loadImage();this.lazyLoadedAll=!0}},initLazyLoad:function(){if(!this.lazyLoadInitialized){var n,t=this.visible,i=0,r=this.index;switch(this.carouselType){case"hero":i=LIB.mediaQuery.isWiderThan("tablet")?1:0;break;case"menu-one-to-two":case"one-to-four":case"default":i=t===1?1:0}for(t+=this.partialVisible?1:0,this.$carousel.addClass("lazyloaded"),n=0;n<this.length;n+=1)(n===r||n>r&&n<r+t+i)&&this.$slides.eq(n).addClass("visible").loadImage();this.lazyLoadInitialized=!0}},resize:function(n,t){this.visible=n;t&&(this.move=t);this.index>this.length-this.move&&(this.index=this.length-this.move);this.setup();this.setButtonVisibility()},slide:function(n,r){var u=this.carousel.style,f=this.$carousel.closest(".carousel-section-wrapper").parent().find(".theme-content .product-grid");r===t&&(r=this.speed);i?(u[Modernizr.prefixed("transitionDuration")]=r+"ms",u.MozTransform=u.webkitTransform="translate3d("+-(n*this.width)+"px,0,0)",u.msTransform=u.OTransform="translateX("+-(n*this.width)+"px)"):this.$carousel.animate({"margin-left":"-"+n*this.width+"px"},r);f.exists()&&($(this.slides[this.index]).find(".product-grid").append(f.children()),f.hide().append($(this.slides[n]).find(".product-grid").children()).fadeIn());this.index=n;this.lazyLoadOnSlide();this.scrollPager()},swipePossible:function(){return Modernizr.touch&&this.slidePossible()},slidePossible:function(){return this.visible<this.length},createPager:function(){var n,u,o=this.visible,t=this.index+1,s=this,i,f,e=$("<div />"),r;if(i=function(n){n.preventDefault();n.stopPropagation();s.slideTo(parseInt($(n.currentTarget).attr("data-index"),10)-1)},this.$pager.children().length>0)this.$pager.children().each(function(){$(this).on("click",i)});else{for(n=1,u=this.length;n<u+1;n+=1){f=n===t||n>t&&n<t+o?"selected":"";r=$('<a href="#" class="'+f+'" data-index="'+n+'"><span>'+n+"<\/span><\/a>");r.on("click",i);e.append(r)}this.$pager.html(e)}this.$pagerItems=this.$pager.find("a")},scrollPager:function(){if(this.slidePossible())for(var i,f=this.$pagerItems,e=this.visible,u=this.index,n=0,t=this.length;n<t;n+=1)i=n===u||n>u&&n<u+e?"selected":"",r(n,t,this.visible)||(i+=" hide"),f&&(f[n].className=i)},setButtonVisibility:function(){this.slidePossible()?this.createPager():(this.$pager.html(""),this.slideTo(0));this.slidePossible()&&!this.swipePossible()?(this.$prevButton.show(),this.$nextButton.show()):(this.$prevButton.hide(),this.$nextButton.hide())},getPos:function(){return this.index},slideIsVisible:function(n){var i=this.visible,t=this.index;return n===t||n>t&&n<t+i},slideTo:function(n){n>this.length-this.move&&(n=this.length-this.move);n<0&&(n=0);this.slide(n,this.speed)},prev:function(){var n;n=this.index>0?this.index-this.move:this.length-this.move;n<0&&(n=0);this.slide(n,this.speed)},next:function(){var n;n=this.index<this.length-this.move?this.index+this.move:0;n>this.length-this.move&&(n=this.length-this.move);this.slide(n,this.speed)},prevButtonClick:function(n){var t=n.data.carousel;n.stop();t.prev()},nextButtonClick:function(n){var t=n.data.carousel;n.stop();t.next()},keyboardNavigation:function(n){var t=n.data.carousel,i=t.$slides.index(n.delegateTarget);t.slideIsVisible(i)||(n.stop(),t.slideTo(i))},onTouchStart:function(n){this.slidePossible()&&(this.start={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY,time:Number(new Date)},this.isScrolling=t,this.deltaX=0,this.carousel.style[Modernizr.prefixed("transitionDuration")]=0)},onTouchMove:function(n){this.slidePossible()&&(n.touches.length>1||n.scale&&n.scale!==1||(this.deltaX=n.touches[0].pageX-this.start.pageX,this.isScrolling===t&&(this.isScrolling=!!(this.isScrolling||Math.abs(this.deltaX)<Math.abs(n.touches[0].pageY-this.start.pageY))),this.isScrolling||(n.preventDefault(),this.deltaX=this.deltaX/(!this.index&&this.deltaX>0||this.index===this.length-1&&this.deltaX<0?Math.abs(this.deltaX)/this.width+1:1),this.carousel.style[Modernizr.prefixed("transform")]="translate3d("+(this.deltaX-this.index*this.width)+"px,0,0)",n.stopPropagation())))},onTouchEnd:function(){if(this.slidePossible()){var t=this.width*this.visible/4,n,i=Number(new Date)-this.start.time<250&&Math.abs(this.deltaX)>20||Math.abs(this.deltaX)>t,r=!this.index&&this.deltaX>0||this.index===this.length-1&&this.deltaX<0;this.isScrolling||(n=i&&!r?this.deltaX<0?this.move:this.move*-1:0,n=this.index+n>=this.length-this.move?this.length-this.move:this.index+n<0?0:this.index+n,this.slide(n,this.speed))}},transitionEnd:function(n){this.callback(n,this.index,this.$slides[this.index])},handleEvent:function(n){switch(n.type){case"touchstart":this.onTouchStart(n);break;case"touchmove":this.onTouchMove(n);break;case"touchcancel":case"touchend":this.onTouchEnd(n);break;case"webkitTransitionEnd":case"msTransitionEnd":case"oTransitionEnd":case"transitionend":this.transitionEnd(n);break;case"resize":this.setup()}}}}(window);LIB.namespace("ADLIB.notify");ADLIB.notify=function(){"use strict";function r(){$("#wrapper").on("click","[data-notify]",function(){var n=$(this).data("notify"),i=$(this).data("notify-type");t(n,i)})}function t(t,r){r=r||"Click";n.push({Id:t,Type:r});i()}function i(){LIB.cookie.set("notify",JSON.stringify(n))}function u(){LIB.cookie.set("notify",JSON.stringify(n));n=[]}var n=[];LIB.events.ajaxSend.on(u);LIB.events.ajaxSent.on(i);return{init:r,add:t}}(),function(n,t){"use strict";function e(n){var t=$(n.currentTarget).closest(".remember-position"),i=t.attr("id"),r=t.data("pageindex");i&&LIB.cookie.set("searchposition",i);LIB.url.setParams({pn:r},LIB.url.params)}var u=t.body,f,i,r;if(LIB.hasClass(u,"search")){f=LIB.cookie.get("searchposition");i=$("#"+f);r=LIB.url.getParam("pn");$("#search").on("click",".remember-position a",e);if(r&&parseInt(r,10)>1&&i.exists())$(n).on("load",function(){LIB.$scrollableElement.animate({scrollTop:i.offset().top-40},10)})}else LIB.hasClass(u,"product")||LIB.cookie.remove("searchposition")}(window,document),function(n){"use strict";function f(){if(Modernizr.placeholder){var n="placeholder-"+LIB.mediaQuery.current;t.data(n)?t.attr("placeholder",t.data(n)):t.attr("placeholder",u)}}var i=1,r,t=$("#q"),u;LIB.cookie.get("touch")===null&&LIB.cookie.set("touch",Modernizr.touch,{days:365});LIB.cookie.get("screenmax")===null&&LIB.cookie.set("screenmax",LIB.screen.max,{days:365});$(n).on("breakpointchange",function(){var t=n.self.pageYOffset;LIB.mediaQuery.isWiderThan("narrow-tablet")&&t<=i?n.scrollTo(0,1):LIB.mediaQuery.isNarrowerThan("tablet")&&t<=1&&n.scrollTo(0,i);f()});if(u=t.data("placeholder-default"),f(),r=$('meta[name="viewport"]'),LIB.iPhone)$("input, select, textarea").not("#q").on("focus blur",function(n){r.attr("content","width=device-width,initial-scale=1,maximum-scale="+(n.type==="blur"?10:1))})}(window),function(){"use strict";var t=$(".header-block-container").parent(),n=!1;$("#q").on("focus",function(){t.addClass("focus");n=!0;LIB.forceRepaint()}).on("blur",function(){n=!1;ADLIB.autocomplete.posted||n||t.removeClass("focus");LIB.forceRepaint()})}(),function(){"use strict";function r(){f.toggleClass("has-txt");i=!i}var u=$("#search-button.disallow-empty-search"),n=$("#q"),f=$("#search-box"),e=$("#clear-search"),t,i=!1;$("#header").addClass("loaded");n.on("keypress",function(t){if(t.keyCode===13&&u.length!==0&&n.val()==="")return t.preventDefault(),!1});n.on("keyup",function(){(t=n.val(),(t===""&&i||t!==""&&!i)&&r(),LIB.iOS||LIB.chrome)&&(t==="färgerna är för starka!"&&(document.body.style.webkitFilter="grayscale(1)"),t==="låtsas att jag inte har retinaskärm!"&&(document.body.style.webkitFilter="blur(1px)"))});n.val()!==""&&r();e.on("click",function(t){t.preventDefault();r();n.val("").focus()});u.on("click",function(t){if(n.val()==="")return t.preventDefault(),!1})}();LIB.namespace("ADLIB.visibilityToggle");ADLIB.visibilityToggle=function(){"use strict";function n(n){n.preventDefault();n.stopPropagation();$($(n.target).data("container")).toggleClass("visible")}function t(){$("span.visibility-toggler").off("click",n).on("click",n)}return{init:t}}();LIB.namespace("ADLIB.cookieAcceptHandler");ADLIB.cookieAcceptHandler=function(){"use strict";function t(t){t.preventDefault();LIB.cookie.set("adlibrisCookieAccept","true",{days:3650});n.remove()}var n=$("#cookie-information-banner");n.find(".accept-link").on("click",t)};LIB.namespace("LIB.attachFastClick");LIB.attachFastClick=function(n){"use strict";function u(n){if(_.isObject(n)){if(n.nodeType===1){FastClick.attach(n);return}if(n.length){for(t=0,r=n.length;t<r;t+=1)u(n[t]);return}}}var i=document,t,r;i.querySelectorAll&&i.addEventListener&&_.each(n,u)},function(n,t){"use strict";function u(){i.on("scrollstart",function(){r.addClass("disable-hover")});i.on("scrollend",function(){r.removeClass("disable-hover")})}var i=$(n),r=$(t.body);if(Modernizr.touch)i.on("load",u)}(window,document);!Modernizr.touch&&LIB.hasClass(document.body,"keep-fixed")&&function(n,t,i){"use strict";function h(){if(u=s(),!r&&u>=o){e.addClass("scrolled");r=!0;return}r&&u<=o&&(e.removeClass("scrolled"),r=!1)}var f=$(n),e=$(t),r=!1,o=37,u,s=n.pageYOffset!==i?function(){return n.pageYOffset}:function(){return f.scrollTop()};f.on("scroll",h)}(window,document.body);LIB.namespace("LIB.preventMultipleFormPosts"),function(n){"use strict";n(document.body).on("submit","form",function(){n(this).find("input[type=submit]").prop("disabled",!0).addClass("disabled")})}(jQuery);LIB.namespace("LIB.top"),function(){"use strict";LIB.top=function(){return LIB.mediaQuery.isNarrowerThan("tablet")?48:0};LIB.scrollTop=function(){$(document).scrollTop(LIB.top())}}();LIB.namespace("LIB.alert"),function(n){"use strict";var t,i;i=function(){$(document).add($(this)).off("click",$.noty.closeAll)};t=function(){$(document).add($(this)).off("click",$.noty.closeAll).on("click",$.noty.closeAll)};LIB.alert=function(r,u){_.isObject(n.noty)?(u=_.isObject(u)?u:{},LIB.android2x&&(u.onShow=function(){var n=this.$bar.parent(),t=$(window),i;n.css({top:t.scrollTop(),position:"absolute"});i=setInterval(function(){n.css("top",t.scrollTop())},10);setTimeout(function(){clearInterval(i)},4e3)}),_.defaults(u,{text:r,dismissQueue:!0,layout:"top",template:'<div class="noty_message"><span class="noty_text"><\/span><\/div>',animation:{open:{height:"toggle"},close:{height:"toggle"},easing:"swing",speed:125},timeout:4e3,closeWith:[],callback:{onShow:t,afterClose:i}}),n.noty(u)):n.alert(r)}}(window);LIB.namespace("LIB.error"),function(){"use strict";LIB.error=function(n,t,i){t=_.isObject(t)?t:{};var r=[{text:LIB.translations.error.close,addClass:"btn secondary",onClick:function(n){n.close()}}];i&&r.push({text:LIB.translations.error.retry,addClass:"btn",onClick:function(n){n.close();i()}});_.defaults(t,{type:"error",layout:"center",timeout:!1,buttons:r});LIB.alert(n,t)}}();LIB.namespace("LIB.confirm"),function(n){"use strict";LIB.confirm=function(t,i,r){i=i||{};_.isObject(n.noty)?(r=_.isObject(r)?r:{},_.defaults(r,{type:"confirm",buttons:[{addClass:"btn btn-primary",text:"OK",onClick:function(n){n.close();_.isFunction(i.confirm)&&i.confirm()}},{addClass:"btn btn-danger",text:"Cancel",onClick:function(n){n.close();_.isFunction(i.cancel)&&i.cancel()}}]}),LIB.alert(t,r)):n.confirm(t)?_.isFunction(i.confirm)&&i.confirm():_.isFunction(i.cancel)&&i.cancel()};LIB.confirm.customActivated=function(){return _.isObject(n.noty)}}(window),function(){"use strict";function n(n){function e(){if(r==="hero")return 1;var t=n.width()/i.width();return 1/t>.7?1:Math.round(t)}function s(){if(r==="hero")return!1;var t=n.width()/i.width(),u=Math.round(t),f=Math.round(t*5)/5;return u!==f?!0:!1}function h(){var n=e();n!==t&&(t=n,u.resize(t,t))}var u,i=n.find(".carousel"),r=i.data("carouseltype"),o=n.find(".carousel-wrapper li").length,t,f;o===1&&i.addClass("single-item");t=e();f=s();u=new Carousel(n[0],{startSlide:r==="collections"&&t===1?1:0,visible:t,carouselType:r,move:t,partialVisible:f});i.waypoint({offset:"200%",triggerOnce:!0,handler:function(){u.initLazyLoad()}});$(window).on("breakpointchange",h)}$(".carousel-section").each(function(t,i){n($(i))});ADLIB.addCarousel=function(t){n(t)}}();LIB.namespace("ADLIB.cart"),function(n){"use strict";function ct(n,t,i){var r,u;r=function(n){k(n);_.isFunction(t)&&t(n)};u=function(){d();nt();_.isFunction(i)&&i()};g(function(){return LIB.ajax.partial(n,{type:"POST"}).done(r).fail(u)})}function lt(){var n=0;return t.find(".count input").each(function(t,i){n+=parseInt($(i).val(),10)}),n>0?(u.attr("data-itemcount",n).removeClass("empty").parent().parent().removeClass("empty-cart"),$("#cart").addClass("cart--has-items"),u.find(".number-of-items").html(" ("+n+")"),$(".header-block-search").removeClass("empty-cart-adjust")):(u.removeAttr("data-itemcount").addClass("empty").parent().parent().addClass("empty-cart"),$(".header-block-search").addClass("empty-cart-adjust"),$("#cart").removeClass("cart--has-items")),LIB.forceRepaint(),n}function at(n){n.preventDefault();$(n.target).closest("div.gift-card").remove();f(t.find(".total .cart-price").html("&nbsp;")[0]);s()}function vt(n){n.preventDefault();$(n.target).closest("div.discount").remove();f(t.find(".total .cart-price").html("&nbsp;")[0]);s()}function yt(n){n.preventDefault();$(n.target).closest("li").remove();f(t.find(".total .cart-price").html("&nbsp;")[0]);s()}function pt(n){var t=$(n.target);c=t.attr("id");t.off("keyup",rt).on("keyup",rt).off("blur",y).on("blur",y).data("value",t.val())}function rt(n){clearTimeout(b);$(n.target).val()&&(b=setTimeout(function(){y(n)},500))}function y(i){clearTimeout(b);var r=$(i.target),e=r.val(),u=parseInt(e,10);if(e!==r.data("value")){if((_.isNaN(u)||u<1)&&!n.confirm(LIB.translations.cart.confirmRemove)){r.val(r.data("value"));return}r.val(u).data("value",String(u));f(r.parentsUntil("li").find(".cart-price").html("&nbsp;")[0]);f(t.find(".total .cart-price").html("&nbsp;")[0]);f(t.find(".discount .cart-price").html("&nbsp;")[0]);tt=LIB.cursor.get(c);s(function(){bt()})}}function wt(n){n.stop();var t=$(this),r=t.attr("href"),i;LIB.analytics.trackEvent("navigateToCart",t);t.addClass("spin").removeClass("arrow-right");i=f(this,{left:"90%"});g(function(){$(window).on("pagehide",function(){i.stop();t.removeClass("spin").addClass("arrow-right")});window.location.href=r})}function bt(){c&&LIB.cursor.set(c,tt)}function k(n){var t=$($.trim(n));gt(t.html());ut(t)}function ut(n){l.html(n.find("#cart-content-partial").html());n.find("#nav-to-cart").length?(e.show(),e.attr("href",n.find("#nav-to-cart").attr("href"))):e.hide();h.count();h.startCarousel()}function kt(){return o?ft()?r.getItem("cartData")!==null:!1:!1}function dt(){return o?ft()?r.getItem("cartData"):(d(),null):null}function gt(n){o&&(r.setItem("cartData",n),$("#cart").data("user")&&r.setItem("cartUser",$("#cart").data("user")),r.setItem("cartCookie",LIB.cookie.get("cart")))}function d(){o&&(r.removeItem("cartData"),r.removeItem("cartUser"),r.removeItem("cartCookie"))}function ft(){return r.getItem("cartUser")!==$("#cart").data("user")?!1:r.getItem("cartCookie")!==LIB.cookie.get("cart")?!1:!0}function g(n){a+=1;ci();w=w.pipe(n,n);w.always(function(){a-=1;a===0&&li()})}function nt(){u.exists()&&(f(l[0],{radius:8,length:8,width:4,top:"10px",left:"-20px"}),LIB.ajax.partial(u.data("href")).done(function(n){ut($(n))}))}function s(n){var t=$("#form-update-cart"),i=t.serialize();g(function(){return LIB.ajax.partial(t.attr("action"),{type:"POST",data:i}).done(function(t){a===1&&(k(t),ii(t),ri(t),ui(t),hi(t),fi(t),ei(t),oi(t),si(t),_.isFunction(n)&&n())}).fail(function(i,r){r!=="abort"&&(LIB.error(t.data("update-error"),{},function(){s(n)}),ni(),ti())})})}function ni(){i&&ADLIB.shipping.resume()}function ti(){i&&it&&ADLIB.newsletter.resume()}function ii(n){i&&ADLIB.shipping.redraw(n)}function ri(n){i&&ADLIB.giftcard.redraw(n)}function ui(n){i&&ADLIB.discountcode.redraw(n)}function fi(n){i&&it&&ADLIB.newsletter.redraw(n)}function ei(n){i&&ADLIB.deliverylocation&&ADLIB.deliverylocation.redraw(n)}function oi(n){i&&ADLIB.libraryequipment&&ADLIB.libraryequipment.redraw(n)}function si(n){i&&ADLIB.payment&&ADLIB.payment.redraw(n)}function hi(n){i&&!p&&ADLIB.fallbackCheckout.redraw(n)}function ci(){p&&_klarnaCheckout(function(n){n.suspend()})}function li(){p&&_klarnaCheckout(function(n){n.resume()})}function et(){if(typeof _klarnaCheckout=="function")return ADLIB.cart.reset(),!0;setTimeout(et,300)}function f(n,t){t=_.isObject(t)?t:{};_.defaults(t,{color:$(n).css("color"),radius:4,length:4,width:2,lines:9,left:"0"});var i=new Spinner(t);return i.spin(n),i}function ot(){return this.visible=!1,this}var h,c,tt,i=$("#checkout-cart.checkout-state").exists(),it=$("#checkout-newsletter").exists(),p=i&&typeof _klarnaCheckout!="undefined",st=$("body.confirmation").exists(),t=$("#cart"),u=$("#cart-toggler"),l=$("#cart-content"),e=$("#nav-to-cart"),ht,w=$.Deferred().resolve(),a=0,r=n.sessionStorage,o=Modernizr.sessionstorage,b,v;if(!t.exists()){t=$("#checkout-cart");u=$("#cart-toggler");l=$("#cart-content-partial");r.removeItem("cartData");o=!1;u.on("click",function(n){n.stopPropagation();n.preventDefault()})}o&&r.removeItem("dcomCartMarkup");ADLIB.cart.fn=ot.prototype={startCarousel:function(){var n=$("#cart-content").find(".carousel-section").first();n.exists()&&(ht=ADLIB.addCarousel(n))},show:function(){return t.addClass("visible"),this.visible=!0,this},hide:function(){return t.removeClass("visible"),this.visible=!1,this},add:function(n,t,i){return ct(n,t,i),this},update:function(n){return k(n),this},count:lt,getElement:function(){return t},reset:function(){$("#cart").data("user","unknown");d();nt()},submit:function(){s()},setShipping:function(n){t.find('input[name="Cart.ShippingId"]').val(n)},setGiftCard:function(n,i){t.find('input[name="Cart.GiftCard.CardId"]').val(n);t.find('input[name="Cart.GiftCard.Pin"]').val(i)},setDiscountCode:function(n){t.find('input[name="Cart.DiscountCode.Code"]').val(n)},setDeliveryLocation:function(n,i,r,u,f,e){t.find('input[name="Cart.DeliveryLocation.Address"]').val(n);t.find('input[name="Cart.DeliveryLocation.Name"]').val(i);t.find('input[name="Cart.DeliveryLocation.Ort"]').val(r);t.find('input[name="Cart.DeliveryLocation.Rank"]').val(u);t.find('input[name="Cart.DeliveryLocation.Utls"]').val(f);t.find('input[name="Cart.DeliveryLocation.Offset"]').val(e)},setLibraryEquipment:function(n,i){t.find('input[name="'+n+'"]').val(i)},setNewsletter:function(n){t.find('input[name="Cart.Newsletter"]').val(n)},setSelectedZip:function(n){t.find('input[name="Cart.SelectedZip"]').val(n)},setPaymentOptionId:function(n){t.find('input[name="Cart.PaymentOptionId"]').val(n)},onPaymentChange:function(n){ADLIB.fallbackCheckout&&ADLIB.fallbackCheckout.paymentTypeChange(n)},isCreditCardPayment:function(){return ADLIB.payment?ADLIB.payment.isCreditCardPayment():null}};ADLIB.cart=h=new ot;u.data("href",u.attr("href")).attr("href","");i?h.count():kt()?(v=$(dt()),l.html(v.find("#cart-content-partial").html()),v.find("#nav-to-cart").length?(e.show(),e.attr("href",v.find("#nav-to-cart").attr("href"))):e.hide(),h.count()):nt();st&&et();t.on("focus",".count input",pt);t.on("click",".remove",yt);t.on("click",".remove-gift-card",at);t.on("click",".remove-discount-code",vt);t.on("click","#nav-to-cart",wt);t.on("keypress","input",function(n){n.keyCode===13&&(n.preventDefault(),y(n))})}(window);dataLayer=dataLayer||[];LIB.namespace("LIB.analytics");LIB.analytics=function(){"use strict";var r,n,i,t;return n=function(n){LIB.log(n);dataLayer.push({event:n.event,eventCategory:n.eventCategory,eventAction:n.eventAction,eventLabel:n.eventLabel})},t={navigateToCart:function(t){var i=t.data("loginstatus")||"Unknown";n({event:"GAevent",eventCategory:"Button",eventAction:"Went to checkout",eventLabel:i})},addToCart:function(t){var i=t.data("gaqlabel")||"Unknown";n({event:"GAevent",eventCategory:"Button",eventAction:"Added to cart",eventLabel:i})},addToWatchlist:function(t){var i=t.getAttribute("data-gaqlabel")||"Unknown";n({event:"GAevent",eventCategory:"Button",eventAction:"Added to watchlist",eventLabel:i})},redirectToMondo:function(t){var i=t.currentTarget.dataset.gaqlabel||"Unknown";n({event:"GAevent",eventCategory:"Link",eventAction:"Redirect to Mondo",eventLabel:i})},merchandiseShowMoreVariants:function(){n({event:"GAevent",eventCategory:"Button",eventAction:"Show more variants",eventLabel:"Merchandise"})}},i=function(n,i){t.hasOwnProperty(n)&&t[n](i)},r=function(){$("#wrapper a.open-on-mondo, #main  a.open-on-mondo, #account a.open-on-mondo").on("click",t.redirectToMondo);var n,r;n=$("div.no-results");n.length!==0&&(r=n.data("value"),i("searchWithNoResults",r))},$(r),{trackEvent:i}}();LIB.namespace("ADLIB.lazyload");ADLIB.lazyload=function(){"use strict";function n(n,t){var i=$(t);t.setAttribute("src",t.getAttribute("data-original"));i.removeClass("lazy")}function t(t){t.exists()&&$(document.body).waitForImages(function(){t.each(n)})}return{load:t}}(),function(){"use strict";$(".section").waypoint({offset:"150%",triggerOnce:!0,handler:function(){var n=$(this).find("img.lazy");ADLIB.lazyload.load(n)}})}();LIB.namespace("ADLIB.share");ADLIB.share=function(n){"use strict";function t(){if(LIB.mediaQuery.maxWiderThan("tablet")){var r=$("#share-buttons"),t=640,i=480;r.on("click","a",function(r){r.preventDefault();var u=$(r.target);window.open(u.attr("href"),"shareWin","status=0,toolbar=0,location=0,menubar=0,directories=0,resizeable=1,scrollbars=1,left="+(n.width/2-t/2)+",top="+(n.height/2-i/2)+",centerscreen=1,width="+t+",height="+i)})}}return{init:_.once(t)}}(window.screen);LIB.namespace("ADLIB.readFull");ADLIB.readFull=function(){"use strict";function i(){var n=$(this),t=$('<div class="read-full" ><a href="#">'+LIB.translations.shared.readFull+"<\/a><\/div>");return n.after(t),{el:this,$el:n,$readFull:t,listening:!1,showFullListener:function(i){i.preventDefault();n.addClass("full").removeClass("short");t.hide()}}}function r(n){var t=LIB.hasOverflow(n.el).y;if(t&&!n.listening){n.$readFull.show().on("click","a",n.showFullListener);n.listening=!0}!t&&n.listening&&(n.$readFull.hide().off("click","a",n.showFullListener),n.listening=!1)}function t(t){for(var i=0,u=n.length;i<u;i+=1)r(n[i]);typeof t=="function"&&t()}function u(){var n=$(this).parents(".short");t(function(){var t=n;t.next(".read-full").find("a").click()})}function f(){$(document).ready(function(){n=$(".short").map(i);t();$(window).on("resize",_.debounce(t));$(".expand-toggle").on("click",u)})}var n;return{init:f}}();LIB.namespace("ADLIB.expandToggle");ADLIB.expandToggle=function(){"use strict";function n(){$(".expand-toggle").on("click",function(n){n.preventDefault();var t=$(this).closest(".expandable");t.addClass("expanded")})}return{init:n}}();LIB.namespace("ADLIB.showHideToggle");ADLIB.showHideToggle=function(){"use strict";function n(){$(".expand-toggle").on("click",function(n){var t=$(this).find("span");n.preventDefault();$(this).hasClass("show-all")?(t.text(t.data("showtext")),$(this).removeClass("show-all"),$(this).parent().find("li.subcategory").removeClass("visible")):(t.text(t.data("hidetext")),$(this).addClass("show-all"),$(this).parent().find("li.subcategory").addClass("visible"))})}return{init:n}}();LIB.namespace("ADLIB.pagination");ADLIB.pagination=function(){"use strict";function t(t){var i;return n[t]?n[t]:(i=LIB.ajax.partial(t),n[t]=i,i.fail(function(){n[t]=null}),i)}function i(n,r){var u=$(n),o=u.attr("href")||u.attr("data-ajaxurl"),s=u.closest(".section"),h=new Spinner({radius:4,length:4,width:2,lines:9,top:"3px"}),e=$('<div class="spinner-container"/>'),f=u.parent();f.hasClass("loading")||(f.find(".error").remove(),f.prepend(e).addClass("loading"),h.spin(e[0]),t(o).done(function(n){r.apply(u,[s,$.trim(n),o]);LIB.events.domChanged.trigger();e.remove();f.removeClass("loading")}).fail(function(){e.remove();f.removeClass("loading");LIB.error(LIB.translations.error.errorText,{},function(){i(n,r)})}))}var n={};return{init:function(n,t){$("#main").on("click",n,function(n){n.preventDefault();i(this,t)})},prefetch:function(n){$(n).find("a").each(function(){t($(this).attr("href"))})},loadWithCallback:function(n,i,r){t($(n).attr("data-ajaxurl")).done(function(t){i.apply($(n),[$.trim(t)])}).fail(function(){r.apply($(n))})}}}();LIB.namespace("ADLIB.formatsToggle");ADLIB.formatsToggle.open=function(n){"use strict";return $(n).parent().hide().parents(".product-formats").find(".formats.more").show(),$(n).parents(".product-formats").find(".formats").removeClass("more-desktop more-mobile"),!1};LIB.namespace("ADLIB.digitalFormatsToggle");ADLIB.digitalFormatsToggle.open=function(n){"use strict";return $(n).parent().hide().parents(".digital-formats").find(".formats.more").show(),$(n).parents(".digital-formats").find(".formats").removeClass("more-desktop more-mobile"),!1};LIB.namespace("ADLIB.columnBoxExpander");ADLIB.columnBoxExpander.init=function(){"use strict";function n(){var i=null,n=4;i=setInterval(function(){if($(".category-facets--not-loaded").length<1){clearInterval(i);var r=$(".fixed-column .category-facets"),u=r.find("ul").length===3&&r.find("ul ul li").length>n+1;u&&($(".fixed-column .category-facets .column-box").addClass("more").find("ul ul li").slice(0,n).addClass("show"),$(".mobile-filter-inner-wrapper .category-facets .column-box").addClass("more").find("ul ul li").slice(0,n).addClass("show"));t()}},100)}function t(){$(".column-box.more").on("click",".expand",function(n){n.preventDefault();$(this).parents(".more").removeClass("more")})}return n(),!1};LIB.namespace("ADLIB.filterToggler");ADLIB.filterToggler.init=function(){"use strict";var n=$(".mobile-filter-wrapper");n.on("click",".filter-toggle",function(){n.hasClass("expanded")||window.scrollTo(0,n.offset().top);n.toggleClass("expanded")});return!1},function(){"use strict";$(".translation").on("click",function(n){var t=$(this).data("href");t&&(n.preventDefault(),window.location=t)})}();LIB.namespace("ADLIB.searchLinks");ADLIB.searchLinks=function(){"use strict";var n=$("#search-hits");if(Modernizr.touch&&LIB.mediaQuery.maxWiderThan("narrow-tablet"))n.on("click",".item-info .item-meta",function(n){if(LIB.mediaQuery.isWiderThan("narrow-tablet")){var t=$(n.currentTarget).parent().find("a").first();ADLIB.notify.add(t.data("notify"));window.location=t.attr("href")}});n.on("mouseenter focus",".img",function(){LIB.mediaQuery.isWiderThan("narrow-tablet")&&$(this).parent().addClass("hover")});n.on("mouseleave blur",".img",function(){LIB.mediaQuery.isWiderThan("narrow-tablet")&&$(this).parent().removeClass("hover")})};LIB.namespace("ADLIB.carouselProductDescClick");ADLIB.carouselProductDescClick=function(n){"use strict";if(Modernizr.touch&&LIB.mediaQuery.isWiderThan("tablet")){var t=$(n).parent().find(".carousel-product-info a").first();ADLIB.notify.add(t.data("notify"));window.location=t.attr("href")}},function(n){"use strict";LIB.attachFastClick([n.getElementById("header"),n.querySelectorAll("#search .swipe-container"),n.querySelectorAll("#nav .expandable .toggler")])}(document);LIB.namespace("ADLIB.getTwingly");ADLIB.getTwingly=function(){"use strict";var n=document.createElement("script"),t="https:"===document.location.protocol?"https://eu.widgetdata.twingly.com/scripts/widget/twingly.widget.2.0.5-https.min.js":"http://eu.widgetdata.twingly.com/scripts/widget/twingly.widget.2.0.5.min.js";n.src=t;document.body.appendChild(n)};LIB.namespace("LIB.initAddToWatchlistListeners");LIB.initAddToWatchlistListeners=_.once(function(){"use strict";$("a.watch-text.watch").on("click",function(n){n.preventDefault();$(this).parent().find(".add-to-watchlist").first().trigger("click")});$("a.product-page-watchlink.watchable").on("click",function(){$(this).addClass("add-to-watchlist")})});LIB.namespace("LIB.clickPreorder");LIB.clickPreorder=function(n){"use strict";return $(n).parents(".purchase-and-processing").first().find(".add-to-cart:not(.iosredirect)").first().trigger("click"),!1},function(n){"use strict";function i(t,r){var u=n("#account .wrapper"),o=new Spinner,f=n('<div class="overlay"/>'),e=setTimeout(function(){u.prepend(f);o.spin(f[0])},100);return LIB.ajax.partial(t,r).done(function(t){var i=n(t).find(".section > *");clearTimeout(e);ADLIB.animate.height(u.parent(),{before:function(){u.empty().append(i)},after:function(){n.validator.unobtrusive.parse(u[0]);ADLIB.visibilityToggle.init()}})}).fail(function(){clearTimeout(e);f.remove();LIB.error(LIB.translations.error.errorText,{},function(){i(t,r)})})}function u(n){return n.hasClass("no-ajax")||n.closest(".no-ajax").exists()}var t=n("#login-form"),r=!1;n("#account").on("click","input[type=submit], button[type=submit]",function(t){var f=n(this),r=f.closest("form");u(f)||(t.preventDefault(),i(r.attr("action"),{data:r.serialize(),type:r.attr("method")}).done(function(){ADLIB.cart.reset()}))});t.on("submit","form",function(){if(!r){r=!0;t.addClass("submitting");var n={color:"#3a3a3a",radius:8,length:8,width:4,lines:11};t.parent().hasClass("inverted")&&(n.color="#fff");new Spinner(n).spin(t[0])}});n("#account").on("click","a",function(t){var r=n(this);u(r)||(t.preventDefault(),i(r.attr("href")))});LIB.isSecureConnection()&&ADLIB.menu.toggler(".account-toggler").target("#account")}($);LIB.namespace("ADLIB.cartMenu");ADLIB.cartMenu=function(){"use strict";function f(){$("a.add-to-cart:not(.iosredirect)").each(function(n,t){var i=$(t);i.attr("href")&&i.attr("href")!==""&&i.attr("data-href",i.attr("href")).attr("href","")})}function i(t){t.stop();n.hide()}var t=ADLIB.cart,r,u,n,e=$("#checkout-cart.checkout-state").exists();f();LIB.events.domChanged.on(f);u=function(n){n.stopPropagation();var t=$(this);LIB.analytics.trackEvent("addToCart",t);ADLIB.notify.add(t.data("notify"),"AddToCart")};r=function(i){var u=$(this),f=u.find(".add span").first(),e=u.find(".preorder-content"),h=this,o=new Spinner({color:"#fff",radius:4,length:4,width:2,lines:9,zIndex:1}),s=new Spinner({color:"#fff",radius:4,length:4,width:2,lines:9,zIndex:1}),c=u.data("href")||u.attr("href");LIB.analytics.trackEvent("addToCart",u);ADLIB.notify.add(u.data("notify"),"AddToCart");i.preventDefault();i.stopPropagation();f.addClass("hidden");e.parent().addClass("progress");o.spin(f.parent()[0]);s.spin(e.parent()[0]);t.add(c,function(){o.stop();s.stop();f.removeClass("hidden");e.parent().removeClass("progress");n.showNotification()},function(){o.stop();s.stop();e.parent().removeClass("progress");f.removeClass("hidden");LIB.error(LIB.translations.cart.error,{},function(){r.apply(h,[i])})})};$("#wrapper, #cart-content, #main").on("click","a.add-to-cart:not(.iosredirect)",r);$("#wrapper, #cart-content, #main").on("click","a.add-to-cart-no-js:not(.iosredirect)",u);e||(n=ADLIB.menu.toggler("#cart-toggler").target(t.getElement()).show(function(){ADLIB.animate.slideDown(this.$target,{after:function(){ADLIB.cart.startCarousel();$("#dropdown-container").off("touchmove",i).on("touchmove",i)}});this.setPosition();$(window).on("resize",this._keepPosition)}).hide(function(){$("#dropdown-container").off("touchmove",i);ADLIB.animate.slideUp(n.$target,{after:function(){n.$target.removeClass("visible");$(document.body).removeClass("fixed")}});$(window).off("resize",n._keepPosition)}),n.showNotification=function(){LIB.android&&LIB.scrollTop();$(document.body).addClass("fixed");n.setPosition();n.show()});t.getElement().on("click",".show-cart a",function(t){t.preventDefault();t.stopPropagation();n.setPosition();LIB.scrollTop();ADLIB.animate.height(n.$target,{before:function(){$(document.body).removeClass("fixed")}})});t.getElement().on("touchmove",function(n){n.stopPropagation()});t.getElement().find("#close-notification").on("click",i);return n}();LIB.namespace("ADLIB.cartMerge");ADLIB.cartMerge=function(){"use strict";function i(n){var t=n.closest("form"),i=$('<div class="overlay">'),r=t.closest(".section");t.append(i);new Spinner({color:"#fff"}).spin(i[0]);LIB.ajax.partial(t.attr("action"),{type:t.attr("method"),data:t.serialize()}).done(function(n){ADLIB.cart.update(n);ADLIB.animate.slideUp(r,{after:function(){r.remove()}});ADLIB.cartMenu.showNotification()})}function t(n){var t=n.closest(".section");LIB.ajax.partial(n.attr("href")).done(function(n){ADLIB.cart.update(n)});ADLIB.animate.slideUp(t,{after:function(){t.remove()}})}function r(n){n.closest("ul").children().length===1?t(n):n.closest("li").remove()}function u(){n.on("click",".btn.primary",function(n){n.preventDefault();i($(this))});n.on("click",".btn.secondary",function(n){n.preventDefault();t($(this))});n.on("click",".remove",function(n){n.preventDefault();r($(this))})}var n=$("#merge-cart");return{init:u}}();LIB.namespace("ADLIB.watchlist"),function(){"use strict";function t(){$("a.add-to-watchlist").each(function(n,t){var i=$(t);i.attr("href")&&i.attr("href")!==""&&i.attr("data-href",i.attr("href")).attr("href","")})}var n;n=function(n){function e(){t.parent().parent().find(".watch").hide();t.parent().parent().find(".you-watch").show();t.parents(".carousel").length<1&&t.parent().parent().parent().find(".watch-link").show();var n=t.parent().attr("class");n.indexOf("watch-wrapper")>0&&(t.parents(".product-header").find(".whatch-indicator").show(),r.removeClass("progress"));i.show();u.stop()}function o(){u.stop();i.show()}n.preventDefault();n.stopPropagation();var t=$(this),i=t.find(".add .icon").first(),r=t.parent().find(".product-page-watchlink"),u=new Spinner({color:"#fff",radius:4,length:4,width:2,lines:9,zIndex:1}),f=t.data("href")||t.attr("href");i.hide();u.spin(i.parent()[0]);r.length>0&&(u.spin(r.parent()[0]),r.addClass("progress"));LIB.ajax.partial(f,{cache:!1,dataType:"html",type:"POST"}).done(function(){e()}).fail(function(){o()})};t();LIB.events.domChanged.on(t);$("#wrapper #main").on("click","a.add-to-watchlist",n)}();LIB.init(),function(n,t){"use strict";var u=n.createElement("div"),f=LIB.module.allModules,e=LIB.module.modulesIncluded,i,r;i=function(t){var i=n.createElement("script");i.src=t;i.async=!0;u.appendChild(i)};r=function(n){_.each(n,i)};LIB.debug&&(i=r=yepnope);_.each(e,function(n,u){var e=f[u];if(e===t||!_.has(f,u)){LIB.log("JS-module not loaded. Module "+u+" does not exist.","error");return}_.isArray(e)?r(e):_.isString(e)?i(e):yepnope(e);return});n.body.appendChild(u)}(document)