!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d):void 0},now:function(){return+new Date},support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}if(f=d.getElementById(e[2]),f&&f.parentNode){if(f.id!==e[2])return A.find(a);this.length=1,this[0]=f}return this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||(e=n.uniqueSort(e)),D.test(a)&&(e=e.reverse())),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=!0,c||j.disable(),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.addEventListener?(d.removeEventListener("DOMContentLoaded",K),a.removeEventListener("load",K)):(d.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(d.addEventListener||"load"===a.event.type||"complete"===d.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll)a.setTimeout(n.ready);else if(d.addEventListener)d.addEventListener("DOMContentLoaded",K),a.addEventListener("load",K);else{d.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&d.documentElement}catch(e){}c&&c.doScroll&&!function f(){if(!n.isReady){try{c.doScroll("left")}catch(b){return a.setTimeout(f,50)}J(),n.ready()}}()}return I.promise(b)},n.ready.promise();var L;for(L in n(l))break;l.ownFirst="0"===L,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c,e;c=d.getElementsByTagName("body")[0],c&&c.style&&(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",l.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(e))}),function(){var a=d.createElement("div");l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}a=null}();var M=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b},N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0; }return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(M(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),"object"!=typeof b&&"function"!=typeof b||(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}function S(a,b,c){if(M(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthh;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Z=/^(?:checkbox|radio)$/i,$=/<([\w:-]+)/,_=/^$|\/(?:java|ecma)script/i,aa=/^\s+/,ba="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ca(a){var b=ba.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}!function(){var a=d.createElement("div"),b=d.createDocumentFragment(),c=d.createElement("input");a.innerHTML="
a",l.leadingWhitespace=3===a.firstChild.nodeType,l.tbody=!a.getElementsByTagName("tbody").length,l.htmlSerialize=!!a.getElementsByTagName("link").length,l.html5Clone="<:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,b.appendChild(c),l.appendChecked=c.checked,a.innerHTML="",l.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,b.appendChild(a),c=d.createElement("input"),c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),l.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!!a.addEventListener,a[n.expando]=1,l.attributes=!a.getAttribute(n.expando)}();var da={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:l.htmlSerialize?[0,"",""]:[1,"X
","
"]};da.optgroup=da.option,da.tbody=da.tfoot=da.colgroup=da.caption=da.thead,da.th=da.td;function ea(a,b){var c,d,e=0,f="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,ea(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function fa(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}var ga=/<|&#?\w+;/,ha=/r;r++)if(g=a[r],g||0===g)if("object"===n.type(g))n.merge(q,g.nodeType?[g]:g);else if(ga.test(g)){i=i||p.appendChild(b.createElement("div")),j=($.exec(g)||["",""])[1].toLowerCase(),m=da[j]||da._default,i.innerHTML=m[1]+n.htmlPrefilter(g)+m[2],f=m[0];while(f--)i=i.lastChild;if(!l.leadingWhitespace&&aa.test(g)&&q.push(b.createTextNode(aa.exec(g)[0])),!l.tbody){g="table"!==j||ha.test(g)?""!==m[1]||ha.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;while(f--)n.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k)}n.merge(q,i.childNodes),i.textContent="";while(i.firstChild)i.removeChild(i.firstChild);i=p.lastChild}else q.push(b.createTextNode(g));i&&p.removeChild(i),l.appendChecked||n.grep(ea(q,"input"),ia),r=0;while(g=q[r++])if(d&&n.inArray(g,d)>-1)e&&e.push(g);else if(h=n.contains(g.ownerDocument,g),i=ea(p.appendChild(g),"script"),h&&fa(i),c){f=0;while(g=i[f++])_.test(g.type||"")&&c.push(g)}return i=null,p}!function(){var b,c,e=d.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b]=c in a)||(e.setAttribute(c,"t"),l[b]=e.attributes[c].expando===!1);e=null}();var ka=/^(?:input|select|textarea)$/i,la=/^key/,ma=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,na=/^(?:focusinfocus|focusoutblur)$/,oa=/^([^.]*)(?:\.(.+)|)/;function pa(){return!0}function qa(){return!1}function ra(){try{return d.activeElement}catch(a){}}function sa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)sa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=qa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return"undefined"==typeof n||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(G)||[""],h=b.length;while(h--)f=oa.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=oa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(i=m=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!na.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),h=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),l=n.event.special[q]||{},f||!l.trigger||l.trigger.apply(e,c)!==!1)){if(!f&&!l.noBubble&&!n.isWindow(e)){for(j=l.delegateType||q,na.test(j+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i),m=i;m===(e.ownerDocument||d)&&p.push(m.defaultView||m.parentWindow||a)}o=0;while((i=p[o++])&&!b.isPropagationStopped())b.type=o>1?j:l.bindType||q,g=(n._data(i,"events")||{})[b.type]&&n._data(i,"handle"),g&&g.apply(i,c),g=h&&i[h],g&&g.apply&&M(i)&&(b.result=g.apply(i,c),b.result===!1&&b.preventDefault());if(b.type=q,!f&&!b.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),c)===!1)&&M(e)&&h&&e[q]&&!n.isWindow(e)){m=e[h],m&&(e[h]=null),n.event.triggered=q;try{e[q]()}catch(s){}n.event.triggered=void 0,m&&(e[h]=m)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]","i"),va=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wa=/\s*$/g,Aa=ca(d),Ba=Aa.appendChild(d.createElement("div"));function Ca(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Da(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function Ea(a){var b=ya.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Fa(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Ga(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(Da(b).text=a.text,Ea(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Z.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}}function Ha(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&xa.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),Ha(f,b,c,d)});if(o&&(k=ja(b,a[0].ownerDocument,!1,a,d),e=k.firstChild,1===k.childNodes.length&&(k=e),e||d)){for(i=n.map(ea(k,"script"),Da),h=i.length;o>m;m++)g=k,m!==p&&(g=n.clone(g,!0,!0),h&&n.merge(i,ea(g,"script"))),c.call(a[m],g,m);if(h)for(j=i[i.length-1].ownerDocument,n.map(i,Ea),m=0;h>m;m++)g=i[m],_.test(g.type||"")&&!n._data(g,"globalEval")&&n.contains(j,g)&&(g.src?n._evalUrl&&n._evalUrl(g.src):n.globalEval((g.text||g.textContent||g.innerHTML||"").replace(za,"")));k=e=null}return a}function Ia(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(ea(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&fa(ea(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(va,"<$1>")},clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!ua.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Ba.innerHTML=a.outerHTML,Ba.removeChild(f=Ba.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=ea(f),h=ea(a),g=0;null!=(e=h[g]);++g)d[g]&&Ga(e,d[g]);if(b)if(c)for(h=h||ea(a),d=d||ea(f),g=0;null!=(e=h[g]);g++)Fa(e,d[g]);else Fa(a,f);return d=ea(f,"script"),d.length>0&&fa(d,!i&&ea(a,"script")),d=h=e=null,f},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.attributes,m=n.event.special;null!=(d=a[h]);h++)if((b||M(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k||"undefined"==typeof d.removeAttribute?d[i]=void 0:d.removeAttribute(i),c.push(f))}}}),n.fn.extend({domManip:Ha,detach:function(a){return Ia(this,a,!0)},remove:function(a){return Ia(this,a)},text:function(a){return Y(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||d).createTextNode(a))},null,a,arguments.length)},append:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.appendChild(a)}})},prepend:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(ea(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return Y(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(ta,""):void 0;if("string"==typeof a&&!wa.test(a)&&(l.htmlSerialize||!ua.test(a))&&(l.leadingWhitespace||!aa.test(a))&&!da[($.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ea(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ha(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(ea(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],f=n(a),h=f.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(f[d])[b](c),g.apply(e,c.get());return this.pushStack(e)}});var Ja,Ka={HTML:"block",BODY:"block"};function La(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function Ma(a){var b=d,c=Ka[a];return c||(c=La(a,b),"none"!==c&&c||(Ja=(Ja||n("')}else{var W=c.find(".upb_video-src");if(hosted_wrapper=W.parent(),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&"display_control"!=v)"display_control"!=v&&(""!=j&&W.parent().find(".video-controls").hide(),W.remove());else{if(jQuery("",{type:"video/mp4",src:e}).appendTo(W),"undefined"!=typeof f&&""!==f){var X="";f.match(/.ogg/i)?X="video/ogg":f.match(/.webm/i)&&(X="video/webm"),""!=X&&jQuery("",{type:X,src:f}).appendTo(W)}"muted"==g&&W.attr({"data-mute":"muted"}),"loop"==h&&W.attr({loop:h}),W.attr({preload:"auto"}),u===!0?(W.addClass("enable-on-viewport"),W.addClass("hosted-video"),b()):"autoplay"==i&&W.attr({autoplay:i})}}""!=j&&(console.log(W),W.is(".utube")?W.css({"background-image":"url("+j+")"}):hosted_wrapper.css({"background-image":"url("+j+")"})),jQuery(".upb_video-src").each(function(a,b){var c=jQuery(b).attr("data-mute");if("undefined"==typeof c&&(c=!1),"muted"===c){var d=jQuery(b)[0];d.muted="muted"}})}),this},jQuery.fn.ultimate_bg_shift=function(){return jQuery(this).each(function(){var a=jQuery(this),b=a.data("ultimate-bg"),c=a.data("ultimate-bg-style"),e=a.prev().css("background-color"),f=a.data("bg-img-repeat"),g=a.data("bg-img-size"),h=a.data("bg-img-position"),i=a.data("parallx_sense"),j=a.data("bg-override"),k=a.data("bg_img_attach"),l=a.data("upb-bg-animation"),m="",n=a.data("overlay"),m=a.data("overlay-color"),o=a.data("overlay-pattern"),p=a.data("overlay-pattern-opacity"),q=a.data("overlay-pattern-size"),r=a.data("overlay-pattern-attachment"),s=a.data("fadeout"),t=a.data("fadeout-percentage"),u=a.data("parallax-content"),v=a.data("parallax-content-sense"),w=a.data("bg-animation"),x=a.data("bg-animation-type"),y=a.data("animation-repeat"),z=a.data("row-effect-mobile-disable"),A=a.data("img-parallax-mobile-disable"),B=a.data("hide-row"),C=a.data("rtl"),D="",E="",F=a.data("custom-vc-row"),G=a.data("vc"),H=a.data("theme-support"),I=a.data("is_old_vc");"undefined"!=typeof F&&""!==F||(F="wpb_row"),"undefined"==typeof G&&(G=0),"undefined"==typeof I&&(I=!1),"undefined"==typeof H&&(H="disable"),a.data("multi-color-overlay")&&(D=a.data("multi-color-overlay"),E=a.data("multi-color-overlay-opacity"));var J=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css="";if("undefined"!=typeof n&&"true"===n.toString()&&(""!=o&&(""!=q&&(q="background-size:"+q+"px;"),"undefined"!=typeof r&&""!=r&&(overlay_pattern_attachment_css="background-attachment:"+r+";"),overlay_pattern_html='
'),""!=m&&(overlay_color_html='
'),""!=D&&(overlay_multi_color_html='
'),J=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),1==I||"enable"==H)if(a.prev().is("p")||a.prev().is("style"))var K=a.prev().prev();else var K=a.prev();else var K=a.prevAll("."+F+":first");K.css("position","relative");var L=K.attr("class");if("browser_size"==j&&(K.wrapInner('
'),a.parent().find(".upb-background-text-wrapper").addClass("full-browser-size"),a.parent().find(".upb-background-text-wrapper").find(".upb-background-text").addClass(L)),"parallax_content_value"==u){K.addClass("vc-row-translate"),K.attr("data-parallax-content-sense",v),K.wrapInner('
');var M=K.css("padding-top"),N=K.css("padding-bottom");K.find(".vc-row-translate-wrapper").css({"padding-top":M,"padding-bottom":N}),K[0].style.setProperty("padding-top","0px","important"),K[0].style.setProperty("padding-bottom","0px","important")}""!=B&&(K.addClass("ult-vc-hide-row"),K.attr("data-hide-row",B)),K.attr("data-rtl",C),K.prepend('
'+J+"
"),a.remove(),d(a,K),a=K,a.attr("data-row-effect-mobile-disable",z),a.attr("data-img-parallax-mobile-disable",A),"fadeout_row_value"==s&&(a.addClass("vc-row-fade"),a.attr("data-fadeout-percentage",t)),a.css("background-image",""),a=a.find(".upb_row_bg"),a.attr("data-upb_br_animation",l),"automatic"!=g?a.css({"background-size":g}):a.addClass("upb_bg_size_automatic"),a.css({"background-repeat":f,"background-position":h,"background-color":e}),"vcpb-fs-jquery"==c||"vcpb-mlvp-jquery"==c?a.attr("data-img-array",b):a.css({"background-image":b,"background-attachment":k}),a.attr("data-parallax_sense",i),a.attr("data-bg-override",j),a.attr("data-bg-animation",w),a.attr("data-bg-animation-type",x),a.attr("data-animation-repeat",y),a.addClass(c);var O=function(){var b,c,d,e,f;if(d=a.parent(),"full"==j&&(d=jQuery("body"),e=0),"ex-full"==j&&(d=jQuery("html"),e=0),!isNaN(j)){for(var g=0;gwh&&(wh=h),a.parent().css("height",wh+"px"),a.parent().find(".upb-background-text-wrapper").css("height",wh+"px")}};O(),jQuery(window).load(function(){O()}),jQuery(window).resize(function(){O()})}),this},jQuery.fn.ultimate_grad_shift=function(){return jQuery(this).each(function(){var a=jQuery(this),b=a.data("grad"),c=(a.data("grad-type"),a.data("grad-custom-degree"),jQuery(this).data("bg-override")),e=a.data("overlay"),f=a.data("overlay-color"),g=a.data("overlay-pattern"),h=a.data("overlay-pattern-opacity"),i=a.data("overlay-pattern-size"),j=a.data("overlay-pattern-attachment"),k=a.data("upb-bg-animation"),l=a.data("fadeout"),m=a.data("fadeout-percentage"),n=a.data("parallax-content"),o=a.data("parallax-content-sense"),p=a.data("row-effect-mobile-disable"),q=a.data("hide-row"),r=a.data("rtl"),s="",t="",u=a.data("custom-vc-row"),v=a.data("vc"),w=a.data("theme-support"),x=a.data("is_old_vc");if("undefined"!=typeof u&&""!==u||(u="wpb_row"),"undefined"==typeof v&&(v=0),"undefined"==typeof x&&(x=!1),"undefined"==typeof w&&(w="disable"),a.data("multi-color-overlay")&&(s=a.data("multi-color-overlay"),t=a.data("multi-color-overlay-opacity")),1==x||"enable"==w)if(a.prev().is("p")||a.prev().is("style"))var y=a.prev().prev();else var y=a.prev();else var y=a.prevAll("."+u+":first");y.css("position","relative");var z=y.attr("class");a.remove();var A=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css="";if("undefined"!=typeof e&&"true"===e.toString()&&(""!=g&&(""!=i&&(i="background-size:"+i+"px;"),"undefined"!=typeof j&&""!=j&&(overlay_pattern_attachment_css="background-attachment:"+j+";"),overlay_pattern_html='
'),""!=f&&(overlay_color_html='
'),""!=s&&(overlay_multi_color_html='
'),A=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),"browser_size"==c&&(y.wrapInner('
'),y.find(".upb-background-text-wrapper").find(".upb-background-text").addClass(z),y.addClass("full-browser-size")),"parallax_content_value"==n){y.addClass("vc-row-translate"),y.attr("data-parallax-content-sense",o),y.wrapInner('
');var B=y.css("padding-top"),C=y.css("padding-bottom");y.find(".vc-row-translate-wrapper").css({"padding-top":B,"padding-bottom":C}),y[0].style.setProperty("padding-top","0px","important"),y[0].style.setProperty("padding-bottom","0px","important")}""!=q&&(y.addClass("ult-vc-hide-row"),y.attr("data-hide-row",q)),y.attr("data-rtl",r),y.prepend('
'+A+"
"),d(a,y),a=y,a.attr("data-row-effect-mobile-disable",p),"fadeout_row_value"==l&&(a.addClass("vc-row-fade"),a.attr("data-fadeout-percentage",m)),a.css("background-image",""),a=a.find(".upb_row_bg"),a.attr("data-upb_br_animation",k),b=b.replace("url(data:image/svg+xml;base64,","");var D=b.indexOf(";");b=b.substring(D+1),a.attr("style",b),a.attr("data-bg-override",c),"browser_size"==c&&a.parent().find(".upb-background-text-wrapper").addClass("full-browser-size");var E=function(){var b,d,e,f,g;if(e=a.parent(),"full"==c&&(e=jQuery("body"),f=0),"ex-full"==c&&(e=jQuery("html"),f=0),!isNaN(c)){for(var h=0;hwh&&(wh=i),a.parent().css("height",wh+"px"),a.parent().find(".upb-background-text-wrapper").css("height",wh+"px")}};E(),jQuery(window).load(function(){E()}),jQuery(window).resize(function(){E()})}),this},jQuery.fn.ultimate_bg_color_shift=function(){return jQuery(this).each(function(){var a=jQuery(this),b=jQuery(this).data("bg-override"),c=jQuery(this).data("bg-color"),e=a.data("fadeout"),f=a.data("fadeout-percentage"),g=a.data("parallax-content"),h=a.data("parallax-content-sense"),i=a.data("row-effect-mobile-disable"),j=a.data("overlay"),k=a.data("overlay-color"),l=a.data("overlay-pattern"),m=a.data("overlay-pattern-opacity"),n=a.data("overlay-pattern-size"),o=a.data("overlay-pattern-attachment"),p=a.data("hide-row"),q=a.data("rtl"),r="",s="",t=a.data("vc"),u=a.data("theme-support"),v=a.data("custom-vc-row"),w=a.data("is_old_vc");if("undefined"!=typeof v&&""!==v||(v="wpb_row"),"undefined"==typeof t&&(t=0),"undefined"==typeof w&&(w=!1),"undefined"==typeof u&&(u="disable"),a.data("multi-color-overlay")&&(r=a.data("multi-color-overlay"),s=a.data("multi-color-overlay-opacity")),1==w||"enable"==u)if(a.prev().is("p")||a.prev().is("style"))var x=a.prev().prev();else var x=a.prev();else var x=a.prevAll("."+v+":first");x.css("position","relative");var y=x.attr("class"),z=overlay_color_html=overlay_pattern_html=overlay_multi_color_html=overlay_pattern_attachment_css="";if("undefined"!=typeof j&&"true"===j.toString()&&(""!=l&&(""!=n&&(n="background-size:"+n+"px;"),"undefined"!=typeof o&&""!=o&&(overlay_pattern_attachment_css="background-attachment:"+o+";"),overlay_pattern_html='
'),""!=k&&(overlay_color_html='
'),""!=r&&(overlay_multi_color_html='
'),z=overlay_color_html+overlay_pattern_html+overlay_multi_color_html),"browser_size"==b)x.wrapInner('
'),x.find(".upb-background-text-wrapper").find(".upb-background-text").addClass(y);else;if(""!=p&&(x.addClass("ult-vc-hide-row"),x.attr("data-hide-row",p)),x.attr("data-rtl",q),"parallax_content_value"==g){x.addClass("vc-row-translate"),x.wrapInner('
'),x.attr("data-parallax-content-sense",h);var A=x.css("padding-top"),B=x.css("padding-bottom");x.find(".vc-row-translate-wrapper").css({"padding-top":A,"padding-bottom":B}),x[0].style.setProperty("padding-top","0px","important"),x[0].style.setProperty("padding-bottom","0px","important")}x.prepend('
'+z+"
"),d(a,x),a.remove(),a=x,a.attr("data-row-effect-mobile-disable",i),"fadeout_row_value"==e&&(a.addClass("vc-row-fade"),a.attr("data-fadeout-percentage",f)),a.css("background-image",""),a=a.find(".upb_row_bg"),a.css({background:c}),a.attr("data-bg-override",b),"browser_size"==b&&a.parent().find(".upb-background-text-wrapper").addClass("full-browser-size");var C=function(){var c,d,e,f,g;if(e=a.parent(),"full"==b&&(e=jQuery("body"),f=0),"ex-full"==b&&(e=jQuery("html"),f=0),!isNaN(b)){for(var h=0;hwh&&(wh=i),a.parent().css("height",wh+"px"),a.parent().find(".upb-background-text-wrapper").css("height",wh+"px")}};C(),jQuery(window).load(function(){C()}),jQuery(window).resize(function(){C()})}),this},jQuery.fn.ultimate_parallax_animation=function(a){function b(){var b,g=jQuery(window).scrollTop();e.each(function(){if("upb_fade_animation"==jQuery(this).data("upb_br_animation")){b=jQuery(this).offset().top;var e=jQuery(this),h=e.offset().top,i=d(e);if(h+ig+c-100)return;var j=f-g;if(h+i-c');var l=k.css("padding-top"),m=k.css("padding-bottom");k.find(".vc-row-translate-wrapper").css({"padding-top":l,"padding-bottom":m}),k[0].style.setProperty("padding-top","0px","important"),k[0].style.setProperty("padding-bottom","0px","important")}}),jQuery(".upb_no_bg").remove();var h=function(){jQuery(".upb_row_bg").each(function(){var a,b,c=jQuery(this).data("bg-override"),d=jQuery(this).data("theme-support"),e=jQuery(this).data("row");if(b="undefined"!=typeof d&&"enable"!==d?jQuery(this).parents("."+e+":first"):jQuery(this).parent(),b.addClass("vc_row-has-fill"),"browser_size"==c&&(a=jQuery("html")),"ex-full"==c)a=jQuery("html");else if("full"==c)a=jQuery("body");else if(!isNaN(c)){a=b;for(var f=0;f0&&(left=0),jQuery(this).css({width:i,left:j}),"browser_size"==c){var k=(a.width(),a.height(),b.width(),b.height()),l=b.find(".upb-background-text").height(),m=jQuery(window).height();if(l>k)var n=l;else var n=m;b.css("min-height",n+"px"),b.find(".upb-background-text-wrapper").css("min-height",n+"px")}}),jQuery(".upb_video-bg").each(function(a,b){var c,d,e=jQuery(this).data("bg-override"),f=jQuery(this).attr("data-rtl"),h=jQuery(this).data("theme-support"),i=jQuery(this).data("row");if(d="undefined"!=typeof h&&"enable"!==h?jQuery(this).parents("."+i+":first"):jQuery(this).parent(),"true"==d.attr("data-vc-full-width")||1==d.attr("data-vc-full-width")?d.addClass("uvc-vc-full-width"):d.addClass("uvc-row"),"browser_size"==e)c=jQuery("html"),jQuery(this).parents(".upb_video_class").css("overflow","visible");else if("ex-full"==e)c=jQuery("html"), jQuery(this).parents(".upb_video_class").css("overflow","visible");else if("full"==e)c=jQuery("body"),jQuery(this).parents(".upb_video_class").css("overflow","visible");else if(isNaN(e)||0==e)c=d;else{c=d;for(var j=1;j<=e&&!c.is("html");j++)c=c.parent()}var k=(parseInt(c.css("paddingLeft")),parseInt(c.css("paddingRight")),parseInt(c.css("marginLeft")),c.outerWidth()),l=k,m=jQuery(this).offset().left,n=jQuery(this).position().left,o=c.offset().left,p=o-m;n<0&&(p=n+p),0==a&&(g=n),g>0&&(p=g),p>0&&(p=0),"undefined"==typeof f||f!==!0&&"true"!==f?jQuery(this).css({width:k,"min-width":k,left:p}):jQuery(this).css({width:k,"min-width":k,right:p});var q=16/9,r=(jQuery(window).width(),jQuery(window).height());d.find("video").height();if("browser_size"==e)var s=d.find(".upb_video-text").height();else var s=d.height();if(k<960){var t=16/9*s;k=t+k}pHeight=Math.ceil(k/q),children=jQuery(this).children(),children.removeClass("ult-make-full-height"),s>l&&children.addClass("ult-make-full-height");var u=jQuery(this).css("background-image");if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))"undefined"!=typeof u&&"none"!=u||(children.css({"max-height":"auto",height:"auto"}),d.css("min-height","auto"));else if("browser_size"==e){if(s>r)var v=s;else var v=r;d.addClass("video-browser-size"),d.find(".upb-background-text-wrapper").addClass("full-browser-size"),d.css("min-height",v+"px"),d.find(".upb_video-text-wrapper").length>0&&(d.find(".upb_video-text-wrapper").addClass("full-browser-size"),d.find(".upb_video-text-wrapper").css("min-height",v+"px"))}})};h(),jQuery(window).load(function(){h(),f()}),jQuery(window).resize(function(){h(),f()}),jQuery(document).ajaxComplete(function(a,b,c){jQuery(".upb_content_video, .upb_content_iframe").prev().is("p")?jQuery(".upb_content_video, .upb_content_iframe").prev().prev().css("background-image","").css("background-repeat",""):jQuery(".upb_content_video, .upb_content_iframe").prev().css("background-image","").css("background-repeat",""),jQuery(".upb_content_video").ultimate_video_bg(),jQuery(".upb_bg_img").ultimate_bg_shift(),jQuery(".upb_content_iframe").ultimate_video_bg(),jQuery(".upb_grad").ultimate_grad_shift(),jQuery(".upb_color").ultimate_bg_color_shift()}),jQuery(".video-controls").click(function(a){var b=jQuery(this).attr("data-action"),c=jQuery(this).parent().find(".upb_video-src");"pause"==b?(jQuery(this).attr("data-action","play"),c[0].play(),jQuery(this).html('')):(jQuery(this).attr("data-action","pause"),c[0].pause(),jQuery(this).html('')),c.hasClass("enable-on-viewport")&&c.addClass("override-controls")}),e(),f(),jQuery(".vcpb-animated").each(function(a,b){var c=jQuery(b).data("animation-repeat");jQuery(this).css({"background-repeat":c});var d=jQuery(b).parent().attr("data-img-parallax-mobile-disable");if(d="undefined"==typeof d?"false":d.toString(),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))var e="true";else var e="false";if("true"==e&&"true"==d)var f="true";else var f="false";if("false"==f){var g=10;""!=jQuery(this).attr("data-parallax_sense")&&(g=jQuery(this).attr("data-parallax_sense")),g=100-g;var h=jQuery(this).attr("data-bg-animation-type"),i=jQuery(this).attr("data-bg-animation"),j=0,k=h;setInterval(function(a){"right-animation"==i||"bottom-animation"==i?j-=1:j+=1,jQuery(b).css("backgroundPosition","h"==k?j+"px 0":"0 "+j+"px")},g)}})})}(jQuery),function(a,b,c){function d(){a(".ult-content-box").each(function(c,d){var f=a(d).css("background-color")||"",i=a(d).data("border_color")||"transparent",j=a(d).css("box-shadow")||"",k=a(d).data("hover_bg_color")||a(d).css("background-color"),l=a(d).data("hover_border_color")||"transparent",m=a(d).data("hover_box_shadow")||a(d).css("box-shadow");a(d).hover(function(){a(d).css("background-color",k),a(d).css("border-color",l),a(d).css("box-shadow",m)},function(){a(d).css("background-color",f),a(d).css("border-color",i),a(d).css("box-shadow",j)});var n={},o=a(d).data("responsive_margins");"undefined"!=typeof o&&null!=o&&(n=g(o));var p={},q=a(d).data("normal_margins");p="undefined"!=typeof q&&null!=q?g(q):e(d);var r=a(b).width()||"";""!=r&&(r>=768?h(p,d):h(n,d))})}function e(b){var c={};c["margin-left"]=f(a(b).css("margin-left")),c["margin-right"]=f(a(b).css("margin-right")),c["margin-top"]=f(a(b).css("margin-top")),c["margin-bottom"]=f(a(b).css("margin-bottom"));var d="";return a.each(c,function(a,b){"undefined"!=typeof b&&null!=b&&(d+=a+":"+b+"px;")}),a(b).attr("data-normal_margins",d),c}function f(a){var b;return"undefined"!=typeof a&&null!=a&&(b=a.split("px"),b=parseInt(b[0])),b}function g(b){var d={},e=b.split(";");return"undefined"!=typeof e&&null!=e&&a.each(e,function(a,b){if(typeof b!=c&&null!=b){var e=b.split(":");if(typeof e[0]!=c&&null!=e[0]&&typeof e[1]!=c&&null!=e[1])switch(e[0]){case"margin":d.margin=e[1];break;case"margin-left":d["margin-left"]=e[1];break;case"margin-right":d["margin-right"]=e[1];break;case"margin-top":d["margin-top"]=e[1];break;case"margin-bottom":d["margin-bottom"]=e[1]}}}),d}function h(b,c){a.isEmptyObject(b)||a.each(b,function(b,d){"undefined"!=typeof d&&null!=d&&a(c).css(b,d)})}jQuery(b).load(function(a){d()}),jQuery(b).resize(function(a){d()}),jQuery(document).ready(function(a){d()})}(jQuery,window),jQuery(window).load(function(){var a=function(){var a="",b="",c="",d="",e="",f="";jQuery(".ult-responsive").each(function(g,h){var i=jQuery(h),j=i.attr("data-responsive-json-new"),k=i.data("ultimate-target"),l="",m="",n="",o="",p="",q="";"undefined"==typeof j&&null==j||jQuery.each(jQuery.parseJSON(j),function(a,b){var c=a;if("undefined"!=typeof b&&null!=b){var d=b.split(";");jQuery.each(d,function(a,b){if("undefined"!=typeof b||null!=b){var d=b.split(":");switch(d[0]){case"large_screen":l+=c+":"+d[1]+";";break;case"desktop":m+=c+":"+d[1]+";";break;case"tablet":n+=c+":"+d[1]+";";break;case"tablet_portrait":o+=c+":"+d[1]+";";break;case"mobile_landscape":p+=c+":"+d[1]+";";break;case"mobile":q+=c+":"+d[1]+";"}}})}}),""!=q&&(f+=k+"{"+q+"}"),""!=p&&(e+=k+"{"+p+"}"),""!=o&&(d+=k+"{"+o+"}"),""!=n&&(c+=k+"{"+n+"}"),""!=m&&(b+=k+"{"+m+"}"),""!=l&&(a+=k+"{"+l+"}")});var g="",jQuery("head").append(g)};a(),jQuery(".ult_countdown-dateAndTime").each(function(){var a=new Date(jQuery(this).html()),b=(60*jQuery(this).data("time-zone"),jQuery(this).data("countformat")),c=jQuery(this).data("labels"),d=c.split(","),e=jQuery(this).data("labels2"),f=e.split(","),g=function(){return new Date(jQuery(this).data("time-now"))},h=function(a){var b=jQuery(".ult_countdown-dateAndTime").attr("data-responsive-json-new"),c=jQuery(".ult_countdown-dateAndTime").attr("data-ultimate-target"),d=jQuery(".ult_countdown").attr("data-responsive-json-new"),e=jQuery(".ult_countdown").attr("data-ultimate-target");jQuery(".ult_countdown-period").addClass("ult-responsive"),jQuery(this).find(".ult_countdown-amount").attr({"data-ultimate-target":c,"data-responsive-json-new":b}),jQuery(this).find(".ult_countdown-period").attr({"data-ultimate-target":e,"data-responsive-json-new":d}),jQuery(this).find(".ult_countdown-amount").css({color:jQuery(this).data("tick-col")}),jQuery(this).find(".ult_countdown-amount").addClass("ult-responsive"),jQuery(this).find(".ult_countdown-period").css({"font-size":jQuery(this).data("tick-p-size"),color:jQuery(this).data("tick-p-col")}),jQuery(this).find(".ult_countdown-amount").css({"border-color":jQuery(this).data("br-color"),"border-width":jQuery(this).data("br-size"),"border-style":jQuery(this).data("br-style"),"border-radius":jQuery(this).data("br-radius"),background:jQuery(this).data("bg-color"),padding:jQuery(this).data("padd")}),"bold"==jQuery(this).data("tick-style")?jQuery(this).find(".ult_countdown-amount").css("font-weight","bold"):"italic"==jQuery(this).data("tick-style")?jQuery(this).find(".ult_countdown-amount").css("font-style","italic"):"boldnitalic"==jQuery(this).data("tick-style")&&(jQuery(this).find(".ult_countdown-amount").css("font-weight","bold"),jQuery(this).find(".ult_countdown-amount").css("font-style","italic")),"bold"==jQuery(this).data("tick-p-style")?jQuery(this).find(".ult_countdown-period").css("font-weight","bold"):"italic"==jQuery(this).data("tick-p-style")?jQuery(this).find(".ult_countdown-period").css("font-style","italic"):"boldnitalic"==jQuery(this).data("tick-p-style")&&(jQuery(this).find(".ult_countdown-period").css("font-weight","bold"),jQuery(this).find(".ult_countdown-period").css("font-style","italic"))};jQuery(this).hasClass("ult-usrtz")?jQuery(this).ult_countdown({labels:d,labels1:f,until:a,format:b,padZeroes:!0,onTick:h}):jQuery(this).ult_countdown({labels:d,labels1:f,until:a,format:b,padZeroes:!0,onTick:h,serverSync:g})})}),function(){var a=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=function b(c){function d(){!a&&this._init&&this._init.apply(this,arguments)}var e=this.prototype;a=!0;var f=new this;a=!1;for(var g in c)f[g]="function"==typeof c[g]&&"function"==typeof e[g]?function(a,b){return function(){var c=this._super;this._super=function(b){return e[a].apply(this,b)};var d=b.apply(this,arguments);return this._super=c,d}}(g,c[g]):c[g];return d.prototype=f,d.prototype.constructor=d,d.extend=b,d}}(),function($){function camelCase(a){return a.replace(/-([a-z])/g,function(a,b){return b.toUpperCase()})}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var a=camelCase(this.name);$[a]=this,$.fn[a]=function(b){var c=Array.prototype.slice.call(arguments,1);return $[a]._isNotChained(b,c)?$[a][b].apply($[a],[this[0]].concat(c)):this.each(function(){if("string"==typeof b){if("_"===b[0]||!$[a][b])throw"Unknown method: "+b;$[a][b].apply($[a],[this].concat(c))}else $[a]._attach(this,b)})}},setDefaults:function(a){$.extend(this.defaultOptions,a||{})},_isNotChained:function(a,b){return"option"===a&&(0===b.length||1===b.length&&"string"==typeof b[0])||$.inArray(a,this._getters)>-1},_attach:function(a,b){if(a=$(a),!a.hasClass(this._getMarker())){a.addClass(this._getMarker()),b=$.extend({},this.defaultOptions,this._getMetadata(a),b||{});var c=$.extend({name:this.name,elem:a,options:b},this._instSettings(a,b));a.data(this.name,c),this._postAttach(a,c),this.option(a,b)}},_instSettings:function(a,b){return{}},_postAttach:function(a,b){},_getMetadata:function(d){try{var f=d.data(this.name.toLowerCase())||"";f=f.replace(/'/g,'"'),f=f.replace(/([a-zA-Z0-9]+):/g,function(a,b,c){var d=f.substring(0,c).match(/"/g);return d&&d.length%2!==0?b+":":'"'+b+'":'}),f=$.parseJSON("{"+f+"}");for(var g in f){var h=f[g];"string"==typeof h&&h.match(/^new Date\((.*)\)$/)&&(f[g]=eval(h))}return f}catch(e){return{}}},_getInst:function(a){return $(a).data(this.name)||{}},option:function(a,b,c){a=$(a);var d=a.data(this.name);if(!b||"string"==typeof b&&null==c){var e=(d||{}).options;return e&&b?e[b]:e}if(a.hasClass(this._getMarker())){var e=b||{};"string"==typeof b&&(e={},e[b]=c),this._optionsChanged(a,d,e),$.extend(d.options,e)}},_optionsChanged:function(a,b,c){},destroy:function(a){a=$(a),a.hasClass(this._getMarker())&&(this._preDestroy(a,this._getInst(a)),a.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(a,b){}}),$.JQPlugin={createPlugin:function(a,b){"object"==typeof a&&(b=a,a="JQPlugin"),a=camelCase(a);var c=camelCase(b.name);JQClass.classes[c]=JQClass.classes[a].extend(b),new JQClass.classes[c]}}}(jQuery),function(a){var b="ult_countdown",c=0,d=1,e=2,f=3,g=4,h=5,i=6;a.JQPlugin.createPlugin({name:b,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:!1,padZeroes:!1,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{"":{labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1}},_getters:["getTimes"],_rtlClass:b+"-rtl",_sectionClass:b+"-section",_amountClass:b+"-amount",_periodClass:b+"-period",_rowClass:b+"-row",_holdingClass:b+"-holding",_showClass:b+"-show",_descrClass:b+"-descr",_timerElems:[],_init:function(){function b(a){var h=a<1e12?e?performance.now()+performance.timing.navigationStart:d():a||d();h-g>=1e3&&(c._updateElems(),g=h),f(b)}var c=this;this._super(),this._serverSyncs=[];var d="function"==typeof Date.now?Date.now:function(){return(new Date).getTime()},e=window.performance&&"function"==typeof window.performance.now,f=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null,g=0;!f||a.noRequestAnimationFrame?(a.noRequestAnimationFrame=null,setInterval(function(){c._updateElems()},980)):(g=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||d(),f(b))},UTCDate:function(a,b,c,d,e,f,g,h){"object"==typeof b&&b.constructor==Date&&(h=b.getMilliseconds(),g=b.getSeconds(),f=b.getMinutes(),e=b.getHours(),d=b.getDate(),c=b.getMonth(),b=b.getFullYear());var i=new Date;return i.setUTCFullYear(b),i.setUTCDate(1),i.setUTCMonth(c||0),i.setUTCDate(d||1),i.setUTCHours(e||0),i.setUTCMinutes((f||0)-(Math.abs(a)<30?60*a:a)),i.setUTCSeconds(g||0),i.setUTCMilliseconds(h||0),i},periodsToSeconds:function(a){return 31557600*a[0]+2629800*a[1]+604800*a[2]+86400*a[3]+3600*a[4]+60*a[5]+a[6]},_instSettings:function(a,b){return{_periods:[0,0,0,0,0,0,0]}},_addElem:function(a){this._hasElem(a)||this._timerElems.push(a)},_hasElem:function(b){return a.inArray(b,this._timerElems)>-1},_removeElem:function(b){this._timerElems=a.map(this._timerElems,function(a){return a==b?null:a})},_updateElems:function(){for(var a=this._timerElems.length-1;a>=0;a--)this._updateCountdown(this._timerElems[a])},_optionsChanged:function(b,c,d){d.layout&&(d.layout=d.layout.replace(/</g,"<").replace(/>/g,">")),this._resetExtraLabels(c.options,d);var e=c.options.timezone!=d.timezone;a.extend(c.options,d),this._adjustSettings(b,c,null!=d.until||null!=d.since||e);var f=new Date;(c._since&&c._sincef)&&this._addElem(b[0]),this._updateCountdown(b,c)},_updateCountdown:function(b,c){if(b=b.jquery?b:a(b),c=c||b.data(this.name)){if(b.html(this._generateHTML(c)).toggleClass(this._rtlClass,c.options.isRTL),a.isFunction(c.options.onTick)){var d="lap"!=c._hold?c._periods:this._calculatePeriods(c,c._show,c.options.significant,new Date);1!=c.options.tickInterval&&this.periodsToSeconds(d)%c.options.tickInterval!=0||c.options.onTick.apply(b[0],[d])}var e="pause"!=c._hold&&(c._since?c._now.getTime()=c._until.getTime());if(e&&!c._expiring){if(c._expiring=!0,this._hasElem(b[0])||c.options.alwaysExpire){if(this._removeElem(b[0]),a.isFunction(c.options.onExpiry)&&c.options.onExpiry.apply(b[0],[]),c.options.expiryText){var f=c.options.layout;c.options.layout=c.options.expiryText,this._updateCountdown(b[0],c),c.options.layout=f}c.options.expiryUrl&&(window.location=c.options.expiryUrl)}c._expiring=!1}else"pause"==c._hold&&this._removeElem(b[0])}},_resetExtraLabels:function(a,b){var c=!1;for(var d in b)if("whichLabels"!=d&&d.match(/[Ll]abels/)){c=!0;break}if(c)for(var d in a)d.match(/[Ll]abels[02-9]|compactLabels1/)&&(a[d]=null)},_adjustSettings:function(b,c,d){for(var e,f=0,g=null,h=0;h0,n[o]="?"!=b._show[o]||k?b._show[o]:null,l+=n[o]?1:0,m-=b._periods[o]>0?1:0;for(var p=[!1,!1,!1,!1,!1,!1,!1],o=i;o>=c;o--)b._show[o]&&(b._periods[o]?p[o]=!0:(p[o]=m>0,m--));var q=b.options.compact?b.options.compactLabels:b.options.labels,r=b.options.whichLabels||this._normalLabels,s=function(a){var c=b.options["compactLabels"+r(b._periods[a])];return n[a]?j._translateDigits(b,b._periods[a])+(c?c[a]:q[a])+" ":""},t=b.options.padZeroes?2:1,u=function(a){var c=b.options["labels"+r(b._periods[a])];return!b.options.significant&&n[a]||b.options.significant&&p[a]?''+j._minDigits(b,b._periods[a],t)+''+(c?c[a]:q[a])+"":""};return b.options.layout?this._buildLayout(b,n,b.options.layout,b.options.compact,b.options.significant,p):(b.options.compact?''+s(c)+s(d)+s(e)+s(f)+(n[g]?this._minDigits(b,b._periods[g],2):"")+(n[h]?(n[g]?b.options.timeSeparator:"")+this._minDigits(b,b._periods[h],2):"")+(n[i]?(n[g]||n[h]?b.options.timeSeparator:"")+this._minDigits(b,b._periods[i],2):""):''+u(c)+u(d)+u(e)+u(f)+u(g)+u(h)+u(i))+""+(b.options.description?''+b.options.description+"":"")},_buildLayout:function(b,j,k,l,m,n){for(var o=b.options[l?"compactLabels":"labels"],p=b.options.whichLabels||this._normalLabels,q=function(a){return(b.options[(l?"compactLabels":"labels")+p(b._periods[a])]||o)[a]},r=function(a,c){return b.options.digits[Math.floor(a/c)%10]},s={desc:b.options.description,sep:b.options.timeSeparator,yl:q(c),yn:this._minDigits(b,b._periods[c],1),ynn:this._minDigits(b,b._periods[c],2),ynnn:this._minDigits(b,b._periods[c],3),y1:r(b._periods[c],1),y10:r(b._periods[c],10),y100:r(b._periods[c],100),y1000:r(b._periods[c],1e3),ol:q(d),on:this._minDigits(b,b._periods[d],1),onn:this._minDigits(b,b._periods[d],2),onnn:this._minDigits(b,b._periods[d],3),o1:r(b._periods[d],1),o10:r(b._periods[d],10),o100:r(b._periods[d],100),o1000:r(b._periods[d],1e3),wl:q(e),wn:this._minDigits(b,b._periods[e],1),wnn:this._minDigits(b,b._periods[e],2),wnnn:this._minDigits(b,b._periods[e],3),w1:r(b._periods[e],1),w10:r(b._periods[e],10),w100:r(b._periods[e],100),w1000:r(b._periods[e],1e3),dl:q(f),dn:this._minDigits(b,b._periods[f],1),dnn:this._minDigits(b,b._periods[f],2),dnnn:this._minDigits(b,b._periods[f],3),d1:r(b._periods[f],1),d10:r(b._periods[f],10),d100:r(b._periods[f],100),d1000:r(b._periods[f],1e3),hl:q(g),hn:this._minDigits(b,b._periods[g],1),hnn:this._minDigits(b,b._periods[g],2),hnnn:this._minDigits(b,b._periods[g],3),h1:r(b._periods[g],1),h10:r(b._periods[g],10),h100:r(b._periods[g],100),h1000:r(b._periods[g],1e3),ml:q(h),mn:this._minDigits(b,b._periods[h],1),mnn:this._minDigits(b,b._periods[h],2),mnnn:this._minDigits(b,b._periods[h],3),m1:r(b._periods[h],1),m10:r(b._periods[h],10),m100:r(b._periods[h],100),m1000:r(b._periods[h],1e3),sl:q(i),sn:this._minDigits(b,b._periods[i],1),snn:this._minDigits(b,b._periods[i],2),snnn:this._minDigits(b,b._periods[i],3),s1:r(b._periods[i],1),s10:r(b._periods[i],10),s100:r(b._periods[i],100),s1000:r(b._periods[i],1e3)},t=k,u=c;u<=i;u++){var v="yowdhms".charAt(u),w=new RegExp("\\{"+v+"<\\}([\\s\\S]*)\\{"+v+">\\}","g");t=t.replace(w,!m&&j[u]||m&&n[u]?"$1":"")}return a.each(s,function(a,b){var c=new RegExp("\\{"+a+"\\}","g");t=t.replace(c,b)}),t},_minDigits:function(a,b,c){return b=""+b,b.length>=c?this._translateDigits(a,b):(b="0000000000"+b,this._translateDigits(a,b.substr(b.length-c)))},_translateDigits:function(a,b){return(""+b).replace(/[0-9]/g,function(b){return a.options.digits[b]})},_determineShow:function(a){var b=a.options.format,j=[];return j[c]=b.match("y")?"?":b.match("Y")?"!":null,j[d]=b.match("o")?"?":b.match("O")?"!":null,j[e]=b.match("w")?"?":b.match("W")?"!":null,j[f]=b.match("d")?"?":b.match("D")?"!":null,j[g]=b.match("h")?"?":b.match("H")?"!":null,j[h]=b.match("m")?"?":b.match("M")?"!":null,j[i]=b.match("s")?"?":b.match("S")?"!":null,j},_calculatePeriods:function(a,b,j,k){a._now=k,a._now.setMilliseconds(0);var l=new Date(a._now.getTime());a._since?k.getTime()a._until.getTime()&&(a._now=k=l));var m=[0,0,0,0,0,0,0];if(b[c]||b[d]){var n=this._getDaysInMonth(k.getFullYear(),k.getMonth()),o=this._getDaysInMonth(l.getFullYear(),l.getMonth()),p=l.getDate()==k.getDate()||l.getDate()>=Math.min(n,o)&&k.getDate()>=Math.min(n,o),q=function(a){return 60*(60*a.getHours()+a.getMinutes())+a.getSeconds()},r=Math.max(0,12*(l.getFullYear()-k.getFullYear())+l.getMonth()-k.getMonth()+(l.getDate()t&&k.setDate(t),k.setFullYear(k.getFullYear()+m[c]),k.setMonth(k.getMonth()+m[d]),s&&k.setDate(t)}var u=Math.floor((l.getTime()-k.getTime())/1e3),v=function(a,c){m[a]=b[a]?Math.floor(u/c):0,u-=m[a]*c};if(v(e,604800),v(f,86400),v(g,3600),v(h,60),v(i,1),u>0&&!a._since)for(var w=[1,12,4.3482,7,24,60,60],x=i,y=1,z=i;z>=c;z--)b[z]&&(m[x]>=y&&(m[x]=0,u=1),u>0&&(m[z]++,u=0,x=z,y=1)),y*=w[z];if(j)for(var z=c;z<=i;z++)j&&m[z]?j--:j||(m[z]=0);return m}})}(jQuery),jQuery(document).ready(function(){jQuery(".ult_colorlink").hover(function(){var a=jQuery(this).data("style");if("Style_6"==a){var b=jQuery(this).find(".ult_btn6_link_top").data("color");jQuery(this).find(".ult_btn6_link_top").css("text-shadow","10px 0 "+b+", -10px 0 "+b),jQuery(this).find(".ult_btn6_link_top").css("color",b)}if("Style_10"==a){var c=jQuery(this).find(".ult_btn10_span").data("bhover"),d=jQuery(this).find(".ult_btn10_span").data("bstyle");" "!=d&&(jQuery(this).find(".ult_btn10_span").css("border-top-style","solid"),jQuery(this).find(".ult_btn10_span").css("border-top-color",c))}var e=jQuery(this).data("texthover"),f=jQuery(this).data("bghover");jQuery(this).css("color",e),jQuery(this).find(".ult_btn10_span").css("color",e),"Style_2"==a&&jQuery(this).find(".ult_btn10_span").css("background",f)},function(){var a=jQuery(this).data("style");if("Style_6"==a&&jQuery(this).find(".ult_btn6_link_top").removeAttr("style"),"Style_10"==a){var b=jQuery(this).find(".ult_btn10_span").data("color"),c=jQuery(this).find(".ult_btn10_span").data("bstyle");" "!=c&&(jQuery(this).find(".ult_btn10_span").css("border-top-style",c),jQuery(this).find(".ult_btn10_span").css("border-top-color",b))}var d=jQuery(this).data("textcolor"),e=jQuery(this).data("bgcolor");jQuery(this).css("color",d),jQuery(this).find(".ult_btn10_span").css("color",d),"Style_2"==a&&jQuery(this).find(".ult_btn10_span").css("background",e)})}),jQuery(window).load(function(){ult_creative_link_ht()}),jQuery(document).ready(function(a){ult_creative_link_ht()}),jQuery(window).resize(function(a){ult_creative_link_ht()}),function(a){"use strict";function b(a,b,c){if("img"===c){var d=parseInt(b.outerHeight()),e=d/2;a.css("padding-top",e+"px"),a.parent().css("margin-top",e+20+"px"),b.css("top",-d+"px")}else{var d=parseInt(b.outerHeight()),e=d/2;a.css("padding-top",e+"px"),a.parent().css("margin-top",e+20+"px"),b.css("top",-d+"px")}}function c(b){b.find(".timeline-icon-block").length>0&&a(".timeline-block").each(function(b,c){var d=a(this).find(".timeline-header-block"),e=a(this).find(".timeline-icon-block");e.css({position:"absolute"});var f=e.outerHeight(),g=e.outerWidth(),h=-(g/2),i=parseInt(d.find(".timeline-header").css("padding-left").replace(/[^\d.]/g,""));a(this).hasClass("timeline-post-left")?(e.css({left:h,right:"auto"}),d.css({"padding-left":g/2+i+"px"})):a(this).hasClass("timeline-post-right")&&(e.css({left:"auto",right:h}),d.css({"padding-right":g/2+i+"px"}));var j=d.height(),k=j/2,l=f/2,m=k-l;e.css({top:m});var n=e.offset().left,o=a(window).width();(0>n||o=e?c.find(".ult-new-ib-content").hide():c.find(".ult-new-ib-content").show()}})}function g(){var b="";a(".ult-spacer").each(function(c,d){var e=a(d).data("id"),f=(a("body").width(),a(d).data("height-mobile")),g=a(d).data("height-mobile-landscape"),h=a(d).data("height-tab"),i=a(d).data("height-tab-portrait"),j=a(d).data("height");""!=j&&(b+=" .spacer-"+e+" { height:"+j+"px } "),""==h&&"0"!=h&&0!=h||(b+=" @media (max-width: 1199px){ .spacer-"+e+" { height:"+h+"px }} "),"undefined"==typeof i||""==i&&"0"!=i&&0!=i||(b+=" @media (max-width: 991px){ .spacer-"+e+" { height:"+i+"px }} "),"undefined"==typeof g||""==g&&"0"!=g&&0!=g||(b+=" @media (max-width: 767px){ .spacer-"+e+" { height:"+g+"px }} "),""==f&&"0"!=f&&0!=f||(b+=" @media (max-width: 479px){ .spacer-"+e+" { height:"+f+"px }} ")}),""!=b&&(b="",a("head").append(b))}a.fn.vc_translate_row=function(){var b=a(window).scrollTop(),c=a(window).height();a(this).each(function(d,e){var f=a(e).attr("data-row-effect-mobile-disable");if(f="undefined"==typeof f?"false":f.toString(),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))var g="true";else var g="false";if("true"==g&&"true"==f)var h="true";else var h="false";if("false"==h){var i=0,j=a(e).outerHeight(),k=a(e).offset().top,l=k-b,m=l+j,n=a(e).attr("data-parallax-content-sense"),o=n/100,p=0,q=c-c*(i/100);if(m<=q&&l<=0){if(j>c)var p=(c-m)*o;else var p=-(l*o);p<0&&(p=0)}else p=0;var r=".upb_row_bg,.upb_video-wrapper,.ult-vc-seperator,.ult-easy-separator-wrapper";a(e).find(".vc-row-translate-wrapper").children().each(function(b,c){jQuery(c).is(r)||a(c).css({transform:"translate3d(0,"+p+"px,0)","-webkit-transform":"translate3d(0,"+p+"px,0)","-ms-transform":"translate3d(0,"+p+"px,0)"})})}})},a.fn.vc_fade_row=function(){var b=a(window).scrollTop(),c=a(window).height();a(this).each(function(d,e){var f=a(e).attr("data-row-effect-mobile-disable");if(f="undefined"==typeof f?"false":f.toString(),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))var g="true";else var g="false";if("true"==g&&"true"==f)var h="true";else var h="false";if("false"==h){var i=0,j=a(e).data("fadeout-percentage");j=100-j;var k=a(e).outerHeight(),l=a(e).offset().top,m=l-b,n=m+k,o=1,p=c-c*(j/100),q=(p-n)/p*(1-i);q>0&&(o=1-q),n<=p?(o1&&(o=1),a(e).children().each(function(b,c){var d=".upb_row_bg,.upb_video-wrapper,.ult-vc-seperator";a(c).is(d)||a(c).css({opacity:o})})):a(e).children().each(function(b,c){a(c).css({opacity:o})})}})},jQuery(document).ready(function(){g()}),jQuery(window).scroll(function(){var b=jQuery(".ult-no-mobile").length;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&b>=1?jQuery(".ult-animation").css("opacity",1):d(),a(".vc-row-fade").vc_fade_row(),a(".vc-row-translate").vc_translate_row()}),jQuery(window).load(function(){jQuery(".ult-banner-block-custom-height").each(function(a,b){var c=jQuery(this).find("img"),d=jQuery(this).width(),e=jQuery(this).height();c.width();d>e&&c.css({width:"100%",height:"auto"})});var b=0,d=0,e=function(){jQuery(".ifb-jq-height").each(function(){jQuery(this).find(".ifb-back").css("height","auto"), jQuery(this).find(".ifb-front").css("height","auto");var a=parseInt(jQuery(this).find(".ifb-front > div").outerHeight(!0)),b=parseInt(jQuery(this).find(".ifb-back > div").outerHeight(!0)),c=a>b?a:b;jQuery(this).find(".ifb-front").css("height",c+"px"),jQuery(this).find(".ifb-back").css("height",c+"px"),jQuery(this).hasClass("vertical_door_flip")?jQuery(this).find(".ifb-flip-box").css("height",c+"px"):jQuery(this).hasClass("horizontal_door_flip")?jQuery(this).find(".ifb-flip-box").css("height",c+"px"):jQuery(this).hasClass("style_9")&&jQuery(this).find(".ifb-flip-box").css("height",c+"px")}),jQuery(".ifb-auto-height").each(function(){if(jQuery(this).hasClass("horizontal_door_flip")||jQuery(this).hasClass("vertical_door_flip")){var a=parseInt(jQuery(this).find(".ifb-front > div").outerHeight()),b=parseInt(jQuery(this).find(".ifb-back > div").outerHeight()),c=a>b?a:b;jQuery(this).find(".ifb-flip-box").css("height",c+"px")}})};navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1?setTimeout(function(){e()},500):e(),jQuery(document).on("ultAdvancedTabClicked",function(a,b){e()}),jQuery(window).resize(function(){b++,setTimeout(function(){d++,b==d&&e()},500)});var g=0;jQuery(window).resize(function(){f(),jQuery(".csstime.smile-icon-timeline-wrap").each(function(){c(jQuery(this))}),a(".jstime .timeline-wrapper").each(function(){c(jQuery(this))}),"none"==jQuery(".smile-icon-timeline-wrap.jstime .timeline-line").css("display")?0===g&&(a(".jstime .timeline-wrapper").masonry("destroy"),g=1):1==g&&(jQuery(".jstime .timeline-wrapper").masonry({itemSelector:".timeline-block"}),setTimeout(function(){jQuery(".jstime .timeline-wrapper").masonry({itemSelector:".timeline-block",width:"401px"}),jQuery(this).find(".timeline-block").each(function(){jQuery(this).css("left","initial"),"0px"==jQuery(this).css("left")?jQuery(this).addClass("timeline-post-left"):jQuery(this).addClass("timeline-post-right")}),g=0},300))}),a(".smile-icon-timeline-wrap").each(function(){var b=jQuery(this).data("timeline-cutom-width");b&&jQuery(this).css("width",2*b+40+"px");var d=parseInt(jQuery(this).width()),e=parseInt(jQuery(this).find(".timeline-block").width()),f=d-2*e-40;f=f/d*100,a(".jstime .timeline-wrapper").each(function(){jQuery(this).masonry({itemSelector:".timeline-block"})}),setTimeout(function(){a(".jstime .timeline-wrapper").each(function(){jQuery(this).find(".timeline-block").each(function(){"0px"==jQuery(this).css("left")?jQuery(this).addClass("timeline-post-left"):jQuery(this).addClass("timeline-post-right"),c(jQuery(this))}),jQuery(".timeline-block").each(function(){var a=parseInt(jQuery(this).css("top"))-parseInt(jQuery(this).next().css("top"));a<14&&a>0||0==a?jQuery(this).next().addClass("time-clash-right"):a>-14&&jQuery(this).next().addClass("time-clash-left")})}),jQuery(".timeline-post-right").each(function(){var a=jQuery(this).find(".timeline-icon-block").clone();jQuery(this).find(".timeline-icon-block").remove(),jQuery(this).find(".timeline-header-block").after(a)}),jQuery(".smile-icon-timeline-wrap").each(function(){var a=jQuery(this).data("time_block_bg_color");jQuery(this).find(".timeline-block").css("background-color",a),jQuery(this).find(".timeline-post-left.timeline-block l").css("border-left-color",a),jQuery(this).find(".timeline-post-right.timeline-block l").css("border-right-color",a),jQuery(this).find(".feat-item").css("background-color",a),jQuery(this).find(".feat-item").find(".feat-top").length>0?jQuery(this).find(".feat-item l").css("border-top-color",a):jQuery(this).find(".feat-item l").css("border-bottom-color",a)}),jQuery(".jstime.timeline_preloader").remove(),jQuery(".smile-icon-timeline-wrap.jstime").css("opacity","1")},1e3),jQuery(this).find(".timeline-wrapper").each(function(){""===jQuery(this).text().trim()&&jQuery(this).remove()}),jQuery(this).find(".timeline-line ").next().hasClass("timeline-separator-text")||jQuery(this).find(".timeline-line").prepend("");var g=jQuery(this).data("time_sep_color"),h=jQuery(this).data("time_sep_bg_color"),i=jQuery(".smile-icon-timeline-wrap .timeline-line").css("border-right-color");jQuery(this).find(".timeline-dot").css("background-color",h),jQuery(this).find(".timeline-line z").css("background-color",h),jQuery(this).find(".timeline-line o").css("background-color",h),jQuery(this).find(".timeline-separator-text").css("color",g),jQuery(this).find(".timeline-separator-text .sep-text").css("background-color",h),jQuery(this).find(".ult-timeline-arrow s").css("border-color","rgba(255, 255, 255, 0) "+i),jQuery(this).find(".feat-item .ult-timeline-arrow s").css("border-color",i+" rgba(255, 255, 255, 0)"),jQuery(this).find(".timeline-block").css("border-color",i),jQuery(this).find(".feat-item").css("border-color",i)})}),jQuery(document).ready(function(a){var e=jQuery(".ult-no-mobile").length;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&e>=1?jQuery(".ult-animation").css("opacity",1):d(),f(),jQuery(".ubtn").hover(function(){var a=jQuery(this);a.find(".ubtn-text").css("color",a.data("hover")),a.find(".ubtn-hover").css("background",a.data("hover-bg")).addClass("ubtn-hover-active");var b=""!=a.data("hover-bg")&&a.data("hover-bg");setTimeout(function(){b!==!1&&a.hasClass(".ubtn-fade-bg")&&a.css("background",a.data("hover-bg"))},150);var c=a.attr("style");if(""!=a.data("shadow-hover")){a.css("box-shadow");c+="box-shadow:"+a.data("shadow-hover")}if(a.attr("style",c),""!=a.data("border-hover")&&a.css("border-color",a.data("border-hover")),"none"!=a.data("shadow-click")){var d=a.data("shd-shadow")-3;""!=a.is(".shd-left")?a.css({right:d}):""!=a.is(".shd-right")?a.css({left:d}):""!=a.is(".shd-top")?a.css({bottom:d}):""!=a.is(".shd-bottom")&&a.css({top:d})}},function(){var a=jQuery(this);a.find(".ubtn-text").removeAttr("style"),a.find(".ubtn-hover").removeClass("ubtn-hover-active"),a.css("background",a.data("bg"));var b=a.data("border-color"),c=a.attr("style");""!=a.data("shadow-hover")&&(c+="box-shadow:"+a.data("shadow")),a.attr("style",c),""!=a.data("border-hover")&&a.css("border-color",b),"none"!=a.data("shadow-click")&&(a.removeClass("no-ubtn-shadow"),""!=a.is(".shd-left")?a.css({right:"auto"}):""!=a.is(".shd-right")?a.css({left:"auto"}):""!=a.is(".shd-top")?a.css({bottom:"auto"}):""!=a.is(".shd-bottom")&&a.css({top:"auto"}))}),jQuery(".ubtn").on("focus blur mousedown mouseup",function(a){var b=jQuery(this);"none"!=b.data("shadow-click")&&setTimeout(function(){b.is(":focus")?(b.addClass("no-ubtn-shadow"),""!=b.is(".shd-left")?b.css({right:b.data("shd-shadow")+"px"}):""!=b.is(".shd-right")?b.css({left:b.data("shd-shadow")+"px"}):""!=b.is(".shd-top")?b.css({bottom:b.data("shd-shadow")+"px"}):""!=b.is(".shd-bottom")&&b.css({top:b.data("shd-shadow")+"px"})):(b.removeClass("no-ubtn-shadow"),""!=b.is(".shd-left")?b.css({right:"auto"}):""!=b.is(".shd-right")?b.css({left:"auto"}):""!=b.is(".shd-top")?b.css({bottom:"auto"}):""!=b.is(".shd-bottom")&&b.css({top:"auto"}))},0)}),jQuery(".ubtn").focusout(function(){var a=jQuery(this);a.removeClass("no-ubtn-shadow"),""!=a.is(".shd-left")?a.css({right:"auto"}):""!=a.is(".shd-right")?a.css({left:"auto"}):""!=a.is(".shd-top")?a.css({bottom:"auto"}):""!=a.is(".shd-bottom")&&a.css({top:"auto"})}),jQuery(".smile-icon-timeline-wrap.jstime").css("opacity","0"),jQuery(".jstime.timeline_preloader").css("opacity","1"),jQuery(".smile-icon-timeline-wrap.csstime .timeline-wrapper").each(function(){jQuery(".csstime .timeline-block:even").addClass("timeline-post-left"),jQuery(".csstime .timeline-block:odd").addClass("timeline-post-right")}),jQuery(".csstime .timeline-post-right").each(function(){jQuery(this).css("float","right"),jQuery("
").insertAfter(jQuery(this))}),jQuery(".csstime.smile-icon-timeline-wrap").each(function(){var a=jQuery(this).data("time_block_bg_color");jQuery(this).find(".timeline-block").css("background-color",a),jQuery(this).find(".timeline-post-left.timeline-block l").css("border-left-color",a),jQuery(this).find(".timeline-post-right.timeline-block l").css("border-right-color",a),jQuery(this).find(".feat-item").css("background-color",a),jQuery(this).find(".feat-item").find(".feat-top").length>0?jQuery(this).find(".feat-item l").css("border-top-color",a):jQuery(this).find(".feat-item l").css("border-bottom-color",a),c(jQuery(this))}),jQuery(".aio-icon, .aio-icon-img, .flip-box, .ultb3-info, .icon_list_icon, .ult-banner-block, .uavc-list-icon, .ult_tabs, .icon_list_connector").each(function(){if(jQuery(this).attr("data-animation")){var b=jQuery(this).attr("data-animation"),c="delay-"+jQuery(this).attr("data-animation-delay");if("undefined"==typeof b||""===b)return!1;a(this).bsf_appear(function(){var a=jQuery(this);a.addClass("animated").addClass(b),a.addClass("animated").addClass(c)})}}),jQuery(".stats-block").each(function(){a(this).bsf_appear(function(){var a=parseFloat(jQuery(this).find(".stats-number").data("counter-value")),b=jQuery(this).find(".stats-number").data("counter-value")+" ",c=parseInt(jQuery(this).find(".stats-number").data("speed")),d=jQuery(this).find(".stats-number").data("id"),e=jQuery(this).find(".stats-number").data("separator"),f=jQuery(this).find(".stats-number").data("decimal"),g=b.split(".");g=g[1]?g[1].length-1:0;var h=!0;"none"==f&&(f=""),h="none"!=e;var i={useEasing:!0,useGrouping:h,separator:e,decimal:f},j=new countUp(d,0,a,g,c,i);setTimeout(function(){j.start()},500)})}),jQuery(document).on("click","#page",function(){jQuery(".ifb-hover").removeClass("ifb-hover")}),jQuery(document).on("hover",".ifb-flip-box",function(a){a.stopPropagation(),jQuery(this).toggleClass("ifb-hover")}),jQuery(".ifb-flip-box").each(function(a,b){jQuery(this).parent().hasClass("style_9")&&(jQuery(this).hover(function(){jQuery(this).addClass("ifb-door-hover")},function(){jQuery(this).removeClass("ifb-door-hover")}),jQuery(this).on("click",function(){jQuery(this).toggleClass("ifb-door-right-open"),jQuery(this).removeClass("ifb-door-hover")}))}),jQuery(document).on("click",".ifb-flip-box",function(a){a.stopPropagation(),jQuery(document).trigger("ultFlipBoxClicked",jQuery(this))}),jQuery(".vertical_door_flip .ifb-front").each(function(){jQuery(this).wrap('
'),jQuery(this).parent().clone().removeClass("ifb-front-1").addClass("ifb-front-2").insertAfter(jQuery(this).parent())}),jQuery(".reverse_vertical_door_flip .ifb-back").each(function(){jQuery(this).wrap('
'),jQuery(this).parent().clone().removeClass("ifb-back-1").addClass("ifb-back-2").insertAfter(jQuery(this).parent())}),jQuery(".horizontal_door_flip .ifb-front").each(function(){jQuery(this).wrap('
'),jQuery(this).parent().clone().removeClass("ifb-front-1").addClass("ifb-front-2").insertAfter(jQuery(this).parent())}),jQuery(".reverse_horizontal_door_flip .ifb-back").each(function(){jQuery(this).wrap('
'),jQuery(this).parent().clone().removeClass("ifb-back-1").addClass("ifb-back-2").insertAfter(jQuery(this).parent())}),jQuery(".style_9 .ifb-front").each(function(){jQuery(this).wrap('
'),jQuery(this).parent().clone().removeClass("ifb-front-1").addClass("ifb-front-2").insertAfter(jQuery(this).parent())}),jQuery(".style_9 .ifb-back").each(function(){jQuery(this).wrap('
'),jQuery(this).parent().clone().removeClass("ifb-back-1").addClass("ifb-back-2").insertAfter(jQuery(this).parent())});var g=/^((?!chrome).)*safari/i.test(navigator.userAgent);g&&(jQuery(".vertical_door_flip").each(function(a,b){var c=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-c/2+"px"),jQuery(this).find(".ifb-multiple-front").css("width","50.2%")}),jQuery(".horizontal_door_flip").each(function(a,b){var c=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-c/2+"px"),jQuery(this).find(".ifb-multiple-front").css("height","50.2%")}),jQuery(".reverse_vertical_door_flip").each(function(a,b){var c=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-c/2+"px")}),jQuery(".reverse_horizontal_door_flip").each(function(a,b){var c=jQuery(this).find(".flip_link").outerHeight();jQuery(this).find(".flip_link").css("top",-c/2+"px"),jQuery(this).find(".ifb-back").css("position","inherit")})),jQuery(".square_box-icon").each(function(a,c){var d=jQuery(this);if(jQuery(this).find(".aio-icon-img").length>0){var e=jQuery(this).find(".aio-icon-img");b(d,e,"img"),e.find(".img-icon").load(function(){b(d,e,"icon")})}else{var e=jQuery(this).find(".aio-icon");b(d,e,"icon"),jQuery(window).load(function(){b(d,e,"icon")})}})})}(jQuery),jQuery(document).ready(function(){function a(){jQuery(".ult-new-ib").each(function(a,b){var c=jQuery(this).data("min-height")||"";jQuery(this).find(".ult-new-ib-img").data("min-height")||"",jQuery(this).find(".ult-new-ib-img").data("max-width")||"";if(""!=c){jQuery(this).addClass("ult-ib2-min-height"),jQuery(this).css("height",c),jQuery(this).find(".ult-new-ib-img").removeClass("ult-ib2-toggle-size");var d=(jQuery(this).find(".ult-new-ib-img").width(),jQuery(this).find(".ult-new-ib-img").height()),e=jQuery(this).width();(e<=c||d0&&a()}),jQuery(".ui-accordion").bind("accordionactivate",function(b,c){jQuery(this).find(".ultimate-map-wrapper").length>0&&a()}),jQuery(document).on("onUVCModalPopupOpen",function(){a()}),jQuery(document).on("UVCMapResize",function(){a()})}),function(a){a(document).ready(function(){var b=a(window).width();if(b>300&&b<768);else if(b>768&&b<1015);else;a(document).on("mouseenter",".ult_dual1",function(){var b=a(this).find(".ult-dual-btn-1").attr("class"),c=b.split(" "),b=c[1]+c[2];if("Style1"==b){var d=a(this).find(".ult-dual-btn-1").data("bghovercolor");a(this)[0].style.setProperty("background-color",d,"important")}if("Style2"==b)var d=a(this).find(".ult-dual-btn-1").data("bghovercolor");if("Style3"==b){var d=a(this).find(".ult-dual-btn-1").data("bghovercolor");a(this).css({"box-shadow":" inset 0 0 20px 50px "+d})}if("undefined"!=b){var e=a(this).find(".ult-dual-btn-1").data("icon_hover_color");a(this).find(".ult-dual-btn-1").find(".aio-icon").css({color:e});var f=a(this).find(".ult-dual-btn-1").data("iconbghovercolor");a(this).find(".ult-dual-btn-1").find(".aio-icon").css({background:f});var g=a(this).find(".ult-dual-btn-1").data("iconhoverborder");a(this).find(".ult-dual-btn-1").find(".aio-icon").css({"border-color":g}),a(this).find(".ult-dual-btn-1").find(".aio-icon-img").css({background:f}),a(this).find(".ult-dual-btn-1").find(".aio-icon-img").css({"border-color":g});var h=a(this).find(".ult-dual-btn-1").data("texthovercolor");a(this).find(".ult-dual-btn-1").find(".ult-dual-button-title").css({color:h})}}),a(document).on("mouseleave",".ult_dual1",function(){var b=a(this).find(".ult-dual-btn-1").attr("class"),c=b.split(" "),b=c[1]+c[2];if("Style1"==b){var d=a(this).find(".ult-dual-btn-1").data("bgcolor");a(this)[0].style.setProperty("background-color",d,"important")}if("Style2"==b)var d=a(this).find(".ult-dual-btn-1").data("bgcolor");if("Style3"==b){var d=a(this).find(".ult-dual-btn-1").data("bgcolor");a(this).css({"box-shadow":"inset 0px 0 0 0 "+d})}if("undefined"!=b){var e=a(this).find(".ult-dual-btn-1").data("icon_color");a(this).find(".ult-dual-btn-1").find(".aio-icon").css({color:e});var f=a(this).find(".ult-dual-btn-1").data("textcolor");a(this).find(".ult-dual-btn-1").find(".ult-dual-button-title").css({color:f});var g=a(this).find(".ult-dual-btn-1").data("iconbgcolor");a(this).find(".ult-dual-btn-1").find(".aio-icon").css({background:g});var h=a(this).find(".ult-dual-btn-1").data("iconborder");a(this).find(".ult-dual-btn-1").find(".aio-icon").css({"border-color":h}),a(this).find(".ult-dual-btn-1").find(".aio-icon-img").css({background:g}),a(this).find(".ult-dual-btn-1").find(".aio-icon-img").css({"border-color":h})}}),a(document).on("mouseenter",".ult_dual2",function(){var b=a(this).find(".ult-dual-btn-2").attr("class"),c=b.split(" "),b=c[1]+c[2];if("Style1"==b){var d=a(this).find(".ult-dual-btn-2").data("bghovercolor");a(this)[0].style.setProperty("background-color",d,"important")}if("Style2"==b)var d=a(this).find(".ult-dual-btn-2").data("bghovercolor");if("Style3"==b){var d=a(this).find(".ult-dual-btn-2").data("bghovercolor");a(this).css({"box-shadow":" inset 0 0 20px 50px "+d})}if("undefined"!=b){var e=a(this).find(".ult-dual-btn-2").data("icon_hover_color");a(this).find(".ult-dual-btn-2").find(".aio-icon").css({color:e});var f=a(this).find(".ult-dual-btn-2").data("texthovercolor");a(this).find(".ult-dual-btn-2").find(".ult-dual-button-title").css({color:f});var g=a(this).find(".ult-dual-btn-2").data("iconbghovercolor");a(this).find(".ult-dual-btn-2").find(".aio-icon").css({background:g});var h=a(this).find(".ult-dual-btn-2").data("iconhoverborder");a(this).find(".ult-dual-btn-2").find(".aio-icon").css({"border-color":h}),a(this).find(".ult-dual-btn-2").find(".aio-icon-img").css({background:g}),a(this).find(".ult-dual-btn-2").find(".aio-icon-img").css({"border-color":h})}}),a(document).on("mouseleave",".ult_dual2",function(){var b=a(this).find(".ult-dual-btn-2").attr("class"),c=b.split(" "),b=c[1]+c[2];if("Style1"==b){var d=a(this).find(".ult-dual-btn-2").data("bgcolor");a(this)[0].style.setProperty("background-color",d,"important")}if("Style2"==b)var d=a(this).find(".ult-dual-btn-2").data("bgcolor");if("Style3"==b){var d=a(this).find(".ult-dual-btn-2").data("bghovercolor");a(this).css({"box-shadow":" inset 0 0 0 0 "+d})}if("undefined"!=b){var e=a(this).find(".ult-dual-btn-2").data("icon_color");a(this).find(".ult-dual-btn-2").find(".aio-icon").css({color:e});var f=a(this).find(".ult-dual-btn-2").data("textcolor");a(this).find(".ult-dual-btn-2").find(".ult-dual-button-title").css({color:f});var g=a(this).find(".ult-dual-btn-2").data("iconbgcolor");a(this).find(".ult-dual-btn-2").find(".aio-icon").css({background:g});var h=a(this).find(".ult-dual-btn-2").data("iconborder");a(this).find(".ult-dual-btn-2").find(".aio-icon").css({"border-color":h}),a(this).find(".ult-dual-btn-2").find(".aio-icon-img").css({background:g}),a(this).find(".ult-dual-btn-2").find(".aio-icon-img").css({"border-color":h})}})}),a(document).on("mouseenter",".ult_main_dualbtn",function(){a(this).data("bhcolor")}),a(document).on("mouseleave",".ult_main_dualbtn",function(){a(this).data("bcolor")})}(jQuery),jQuery(document).ready(function(a){jQuery(".ult_main_dualbtn").each(function(a){var b=jQuery(this).find(".ult_dual1").outerHeight();b=parseInt(b);var c=jQuery(this).find(".ult_dual2").outerHeight();c=parseInt(c),b>c?(jQuery(this).find(".ult_dual2").css({height:b}),jQuery(this).find(".ult_dual1").css({height:b})):b0)var e=jQuery(b).parents(".wpb_column");else if(jQuery(b).parents(".wpb_column").length>0)var e=jQuery(b).parents(".wpb_row");else var e=jQuery(b).parent();if("full"==c&&(e=jQuery("body"),d="false"),"ex-full"==c&&(e=jQuery("html"),d="false"),!isNaN(c))for(var a=1;a0&&(a=!0),c.body.removeChild(b),a}function f(b,c,d){this.child=b,this._$child=a(b),this.parent=c,this.options={className:"fixto-fixed",top:0},this._setOptions(d)}function g(a,b,c){f.call(this,a,b,c),this._replacer=new j.MimicNode(a),this._ghostNode=this._replacer.replacer,this._saveStyles(),this._saveViewportHeight(),this._proxied_onscroll=this._bind(this._onscroll,this),this._proxied_onresize=this._bind(this._onresize,this),this.start()}function h(a,b,c){f.call(this,a,b,c),this.start()}var i=function(){var a={getAll:function(a){return c.defaultView.getComputedStyle(a)},get:function(a,b){return this.getAll(a)[b]},toFloat:function(a){return parseFloat(a,10)||0},getFloat:function(a,b){return this.toFloat(this.get(a,b))},_getAllCurrentStyle:function(a){return a.currentStyle}};return c.documentElement.currentStyle&&(a.getAll=a._getAllCurrentStyle),a}(),j=function(){function b(a){this.element=a,this.replacer=c.createElement("div"),this.replacer.style.visibility="hidden",this.hide(),a.parentNode.insertBefore(this.replacer,a)}b.prototype={replace:function(){var a=this.replacer.style,b=i.getAll(this.element);a.width=this._width(),a.height=this._height(),a.marginTop=b.marginTop,a.marginBottom=b.marginBottom,a.marginLeft=b.marginLeft,a.marginRight=b.marginRight,a.cssFloat=b.cssFloat,a.styleFloat=b.styleFloat,a.position=b.position,a.top=b.top,a.right=b.right,a.bottom=b.bottom,a.left=b.left,a.display=b.display},hide:function(){this.replacer.style.display="none"},_width:function(){return this.element.getBoundingClientRect().width+"px"},_widthOffset:function(){return this.element.offsetWidth+"px"},_height:function(){return this.element.getBoundingClientRect().height+"px"},_heightOffset:function(){return this.element.offsetHeight+"px"},destroy:function(){a(this.replacer).remove();for(var b in this)this.hasOwnProperty(b)&&(this[b]=null)}};var d=c.documentElement.getBoundingClientRect();return d.width||(b.prototype._width=b.prototype._widthOffset,b.prototype._height=b.prototype._heightOffset),{MimicNode:b,computedStyle:i}}();d.prototype={_vendors:{webkit:{cssPrefix:"-webkit-",jsPrefix:"Webkit"},moz:{cssPrefix:"-moz-",jsPrefix:"Moz"},ms:{cssPrefix:"-ms-",jsPrefix:"ms"},opera:{cssPrefix:"-o-",jsPrefix:"O"}},_prefixJsProperty:function(a,b){return a.jsPrefix+b[0].toUpperCase()+b.substr(1)},_prefixValue:function(a,b){return a.cssPrefix+b},_valueSupported:function(a,b,c){try{return c.style[a]=b,c.style[a]===b}catch(d){return!1}},propertySupported:function(a){return void 0!==c.documentElement.style[a]},getJsProperty:function(a){if(this.propertySupported(a))return a;if(this._vendor)return this._prefixJsProperty(this._vendor,a);var b;for(var c in this._vendors)if(b=this._prefixJsProperty(this._vendors[c],a),this.propertySupported(b))return this._vendor=this._vendors[c],b;return null},getCssValue:function(a,b){var d=c.createElement("div"),e=this.getJsProperty(a);if(this._valueSupported(e,b,d))return b;var f;if(this._vendor&&(f=this._prefixValue(this._vendor,b),this._valueSupported(e,f,d)))return f;for(var g in this._vendors)if(f=this._prefixValue(this._vendors[g],b),this._valueSupported(e,f,d))return this._vendor=this._vendors[g],f;return null}};var k,l,m=new d,n=m.getJsProperty("transform"),o=m.getCssValue("position","sticky"),p=m.getCssValue("position","fixed"),q="Microsoft Internet Explorer"===navigator.appName;q&&(l=parseFloat(navigator.appVersion.split("MSIE")[1])),f.prototype={_mindtop:function(){var a=0;if(this._$mind)for(var b,c,d=0,e=this._$mind.length;dthis._parentBottom||this._scrollTopthis._fullOffset("offsetTop",this.child)-this.options.top-this._mindtop()&&this._viewportHeight>this.child.offsetHeight+i.toFloat(a.marginTop)+i.toFloat(a.marginBottom)&&(this._fix(),this._adjust())}},_adjust:function(){var a=0,b=this._mindtop(),c=0,d=i.getAll(this.child),e=null;k&&(e=this._getContext(),e&&(e.getBoundingClientRect().top>0?a-=e.getBoundingClientRect().top:a=Math.abs(e.getBoundingClientRect().top))),c=this._parentBottom-this._scrollTop-(this.child.offsetHeight+i.toFloat(d.marginBottom)+b+this.options.top),c>0&&(c=0),this.child.style.top=c+b+a+this.options.top-i.toFloat(d.marginTop)+"px"},_fullOffset:function(a,b,c){for(var d=b[a],e=b.offsetParent;null!==e&&e!==c;)d+=e[a],e=e.offsetParent;return d},_getContext:function(){for(var a,b,d=this.child,e=null;!e;){if(a=d.parentNode,a===c.documentElement)return null;if(b=i.getAll(a),"none"!==b[n]){e=a;break}d=a}return e},_fix:function(){var a=this.child,b=a.style,d=i.getAll(a),e=a.getBoundingClientRect().left,f=d.width;if(this._saveStyles(),c.documentElement.currentStyle&&(f=a.offsetWidth-(i.toFloat(d.paddingLeft)+i.toFloat(d.paddingRight)+i.toFloat(d.borderLeftWidth)+i.toFloat(d.borderRightWidth))+"px"),k){var g=this._getContext();g&&(e=a.getBoundingClientRect().left-g.getBoundingClientRect().left)}this._replacer.replace(),b.left=e-i.toFloat(d.marginLeft)+"px",b.width=f,b.position="fixed",b.top=this._mindtop()+this.options.top-i.toFloat(d.marginTop)+"px",this._$child.addClass(this.options.className),this.fixed=!0},_unfix:function(){var a=this.child.style;this._replacer.hide(),a.position=this._childOriginalPosition,a.top=this._childOriginalTop,a.width=this._childOriginalWidth,a.left=this._childOriginalLeft,this._$child.removeClass(this.options.className),this.fixed=!1},_saveStyles:function(){var a=this.child.style;this._childOriginalPosition=a.position,this._childOriginalTop=a.top,this._childOriginalWidth=a.width,this._childOriginalLeft=a.left},_onresize:function(){this.refresh()},_saveViewportHeight:function(){this._viewportHeight=b.innerHeight||c.documentElement.clientHeight},_stop:function(){this._unfix(),a(b).unbind("scroll",this._proxied_onscroll),a(this._toresize).unbind("resize",this._proxied_onresize); },_start:function(){this._onscroll(),a(b).bind("scroll",this._proxied_onscroll),a(this._toresize).bind("resize",this._proxied_onresize)},_destroy:function(){this._replacer.destroy()},refresh:function(){this._saveViewportHeight(),this._unfix(),this._onscroll()}}),h.prototype=new f,a.extend(h.prototype,{_start:function(){var a=i.getAll(this.child);this._childOriginalPosition=a.position,this._childOriginalTop=a.top,this.child.style.position=o,this.refresh()},_stop:function(){this.child.style.position=this._childOriginalPosition,this.child.style.top=this._childOriginalTop},refresh:function(){this.child.style.top=this._mindtop()+this.options.top+"px"}});var r=function(a,b,c){return o&&!c||o&&c&&c.useNativeSticky!==!1?new h(a,b,c):p?(void 0===k&&(k=e()),new g(a,b,c)):"Neither fixed nor sticky positioning supported"};return l<8&&(r=function(){return"not supported"}),a.fn.fixTo=function(b,c){var d=a(b),e=0;return this.each(function(){var f=a(this).data("fixto-instance");if(f){var g=b;f[g].call(f,c)}else a(this).data("fixto-instance",r(this,d[e],c));e++})},{FixToContainer:g,fixTo:r,computedStyle:i,mimicNode:j}}(window.jQuery,window,document);!function(a,b,c){function d(){a(".flip-box").each(function(c,d){var e=(a(document).width(),b.innerWidth);if(""!=e)if(e>=768){var f=a(this).attr("data-min-height")||"";if(""!=f){if(a(this).hasClass("ifb-custom-height")){if(a(this).css("height",f),a(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")){var g=(a(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle"),a(this).find(".ifb-back").outerHeight());g=parseInt(f);var h=a(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight();h=parseInt(h),h>=g&&a(this).find(".ifb-back").find(".ifb-flip-box-section").addClass("ifb_disable_middle")}if(a(this).find(".ifb-front").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")){var i=a(this).find(".ifb-front").outerHeight();i=parseInt(f);var j=a(this).find(".ifb-front").find(".ifb-flip-box-section").outerHeight();j=parseInt(j),j>=i&&a(this).find(".ifb-front").find(".ifb-flip-box-section").addClass("ifb_disable_middle")}}}else if(a(this).hasClass("ifb-jq-height")){var k=a(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight();k=parseInt(k);var l=a(this).find(".ifb-front").find(".ifb-flip-box-section").outerHeight();l=parseInt(l),k>=l?a(this).find(".ifb-face").css("height",k):a(this).find(".ifb-face").css("height",l)}else if(a(this).hasClass("ifb-auto-height")&&a(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")){var g=(a(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle"),a(this).find(".ifb-back").outerHeight());g=parseInt(g);var h=a(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight();h=parseInt(h),h>=g&&a(this).find(".ifb-back").find(".ifb-flip-box-section").addClass("ifb_disable_middle")}}else{var f=a(this).attr("data-min-height")||"";if(a(this).hasClass("style_9")){a(this).css("height","initial");var m=a(this).find(".ifb-front-1 .ifb-front").outerHeight(),n=a(this).find(".ifb-back-1 .ifb-back").outerHeight();m>n?a(this).css("height",m):a(this).css("height",n)}else if(a(this).hasClass("ifb-jq-height")){var k=a(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight();k=parseInt(k);var l=a(this).find(".ifb-front").find(".ifb-flip-box-section").outerHeight();l=parseInt(l),k>=l?a(this).find(".ifb-face").css("height",k):a(this).find(".ifb-face").css("height",l)}else if(a(this).hasClass("ifb-auto-height")){if(a(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")){var g=(a(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle"),a(this).find(".ifb-back").outerHeight());g=parseInt(g);var h=a(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight();h=parseInt(h),h>g&&a(this).find(".ifb-back").find(".ifb-flip-box-section").addClass("ifb_disable_middle")}}else if(a(this).hasClass("ifb-custom-height")){if(""!=f){if(a(this).css("height",f),a(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")){var g=(a(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle"),a(this).find(".ifb-back").outerHeight());g=parseInt(g);var h=a(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight();h=parseInt(h),h>=g&&a(this).find(".ifb-back").find(".ifb-flip-box-section").addClass("ifb_disable_middle")}if(a(this).find(".ifb-front").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")){var i=a(this).find(".ifb-front").outerHeight();i=parseInt(i);var j=a(this).find(".ifb-front").find(".ifb-flip-box-section").outerHeight();j=parseInt(j),j>=i?a(this).find(".ifb-front").find(".ifb-flip-box-section").addClass("ifb_disable_middle"):a(this).find(".ifb-front").find(".ifb-flip-box-section").addClass("ifb_disable_middle")}}}else a(this).css("height","initial")}})}a(b).load(function(a){d()}),a(document).ready(function(a){d()}),a(b).resize(function(a){d()})}(jQuery,window),function(a){function b(){var a=0;$jh(".uvc-heading").each(function(){var b,c,d,e=$jh(this).outerWidth(),f=$jh(this).attr("data-hline_width"),g=$jh(this).attr("data-hicon_type"),h=$jh(this).attr("data-halign"),i=$jh(this).attr("data-hspacer");if("line_with_icon"==i){var j=$jh(this).attr("id");a=$jh(this).attr("data-hfixer"),a="undefined"==typeof a||""===a?0:parseInt(a);var k=e/2;$jh(this).find(".dynamic_ultimate_heading_css").remove(),d="auto"==f||f>e?e:f;var l=d/2;"selector"==g?(c=$jh(this).find(".aio-icon").outerWidth(),b=$jh(this).find(".aio-icon").outerHeight()):(c=$jh(this).find(".aio-icon-img").outerWidth(),b=$jh(this).find(".aio-icon-img").outerHeight());var m=c/2,n=k-m+c+a,o=l;if(b+=3,$jh(this).find(".uvc-heading-spacer").height(b),"center"==h){$jh(this).find(".aio-icon-img").css({margin:"0 auto"});var p="#"+j+" .uvc-heading-spacer.line_with_icon:before{right:"+n+"px;}#"+j+" .uvc-heading-spacer.line_with_icon:after{left:"+n+"px;}"}else if("left"==h){$jh(this).find(".aio-icon-img").css({float:h});var p="";p=""!=d?"#"+j+" .uvc-heading-spacer.line_with_icon:before{left:"+(c+a)+"px;right:auto;}#"+j+" .uvc-heading-spacer.line_with_icon:after{left:"+(o+c+a)+"px;right:auto;}":"#"+j+" .uvc-heading-spacer.line_with_icon:before{right:"+(n-c-2*a)+"px;}#"+j+" .uvc-heading-spacer.line_with_icon:after{left:"+(n-a)+"px;}"}else if("right"==h){$jh(this).find(".aio-icon-img").css({float:h});var p="";p=""!=d?"#"+j+" .uvc-heading-spacer.line_with_icon:before{right:"+(c+a)+"px;left:auto;}#"+j+" .uvc-heading-spacer.line_with_icon:after{right:"+(o+c+a)+"px;left:auto;}":"#"+j+" .uvc-heading-spacer.line_with_icon:before{right:"+(n-a)+"px;}#"+j+" .uvc-heading-spacer.line_with_icon:after{left:"+(n-c-2*a)+"px;}"}var q=$jh(this).attr("data-hborder_style"),r=$jh(this).attr("data-hborder_color"),s=$jh(this).attr("data-hborder_height");"auto"==f&&"center"==h&&(o=Math.floor(o-c+a));var t='
";$jh(this).prepend(t)}else"line_only"==i&&("right"==h||"left"==h?$jh(this).find(".uvc-heading-spacer").find(".uvc-headings-line").css({float:h}):$jh(this).find(".uvc-heading-spacer").find(".uvc-headings-line").css({margin:"0 auto"}))})}$jh=a.noConflict(),$jh(document).ready(function(a){b(),$jh(window).resize(function(a){b()})}),a(window).load(function(a){b(),jQuery(".ult_exp_section").select(function(){var a=jQuery(this).parent().find(".uvc-heading").length;a>0&&b()})})}(jQuery),function(a){function b(){a(".ultimate-call-to-action").each(function(b,c){var d=a(c).data("override");if(0!=d){a(c).css({"margin-left":0});var e="true";if(a(c).parents(".wpb_row").length>0)var f=a(c).parents(".wpb_row");else if(a(c).parents(".wpb_column").length>0)var f=a(c).parents(".wpb_column");else var f=a(c).parent();if("full"==d&&(f=a("body"),e="false"),"ex-full"==d&&(f=a("html"),e="false"),!isNaN(d))for(var b=1;b<=d&&"HTML"!=f.prop("tagName");b++)f=f.parent();var g=f.outerWidth(),h=a(c).offset().left,i=(a(c).position().left,f.offset().left),j=f.position().left,k=i-h;"full"!=d&&"ex-full"!=d&&(k=i-j),a(c).css({width:g,"margin-left":k})}})}a(document).ready(function(){a(document).on("mouseenter",".ultimate-call-to-action",function(){a(this).addClass("ultimate-call-to-action-hover");var b=a(this).data("background-hover");a(this).css({"background-color":b})}),a(document).on("mouseleave",".ultimate-call-to-action",function(){a(this).removeClass("ultimate-call-to-action-hover");var b=a(this).data("background");a(this).css({"background-color":b})}),b(),a(window).resize(function(){b()})})}(jQuery),function(a,b,c){function d(b,c){this.bodyOverflowX,this.callbacks={hide:[],show:[]},this.checkInterval=null,this.Content,this.$el=a(b),this.$elProxy,this.elProxyPosition,this.enabled=!0,this.options=a.extend({},i,c),this.mouseIsOverProxy=!1,this.namespace="ult-tooltipster-"+Math.round(1e5*Math.random()),this.Status="hidden",this.timerHide=null,this.timerShow=null,this.$tooltip,this.options.iconTheme=this.options.iconTheme.replace(".",""),this.options.theme=this.options.theme.replace(".",""),this._init()}function e(b,c){var d=!0;return a.each(b,function(a,e){if("undefined"==typeof c[a]||b[a]!==c[a])return d=!1,!1}),d}function f(){return!k&&j}function g(){var a=c.body||c.documentElement,b=a.style,d="transition";if("string"==typeof b[d])return!0;v=["Moz","Webkit","Khtml","O","ms"],d=d.charAt(0).toUpperCase()+d.substr(1);for(var e=0;e
'),b.$elProxy.text(b.options.icon)):b.options.iconCloning?b.$elProxy=b.options.icon.clone(!0):b.$elProxy=b.options.icon,b.$elProxy.insertAfter(b.$el)):b.$elProxy=b.$el,"hover"==b.options.trigger?(b.$elProxy.on("mouseenter."+b.namespace,function(){f()&&!b.options.touchDevices||(b.mouseIsOverProxy=!0,b._show())}).on("mouseleave."+b.namespace,function(){f()&&!b.options.touchDevices||(b.mouseIsOverProxy=!1)}),j&&b.options.touchDevices&&b.$elProxy.on("touchstart."+b.namespace,function(){b._showNow()})):"click"==b.options.trigger&&b.$elProxy.on("click."+b.namespace,function(){f()&&!b.options.touchDevices||b._show()})}},_responsive:function(){var a="",b="",c="",d="",e="",f="";jQuery(".ult-responsive").each(function(g,h){var i=jQuery(h),j=i.attr("data-responsive-json-new"),k=i.data("ultimate-target"),l="",m="",n="",o="",p="",q="";jQuery(h).hasClass("ult-tooltipster-content"),"undefined"==typeof j&&null==j||jQuery.each(jQuery.parseJSON(j),function(a,b){var c=a;if("undefined"!=typeof b&&null!=b){var d=b.split(";");jQuery.each(d,function(a,b){if("undefined"!=typeof b||null!=b){var d=b.split(":");switch(d[0]){case"large_screen":l+=c+":"+d[1]+";";break;case"desktop":m+=c+":"+d[1]+";";break;case"tablet":n+=c+":"+d[1]+";";break;case"tablet_portrait":o+=c+":"+d[1]+";";break;case"mobile_landscape":p+=c+":"+d[1]+";";break;case"mobile":q+=c+":"+d[1]+";"}}})}}),""!=q&&(f+=k+"{"+q+"}"),""!=p&&(e+=k+"{"+p+"}"),""!=o&&(d+=k+"{"+o+"}"),""!=n&&(c+=k+"{"+n+"}"),""!=m&&(b+=k+"{"+m+"}"),""!=l&&(a+=k+"{"+l+"}")});var g="",jQuery("head").append(g)},_show:function(){var a=this;"shown"!=a.Status&&"appearing"!=a.Status&&(a.options.delay?a.timerShow=setTimeout(function(){("click"==a.options.trigger||"hover"==a.options.trigger&&a.mouseIsOverProxy)&&(a._showNow(),a._responsive())},a.options.delay):a._showNow()),a._responsive()},_showNow:function(c){var d=this;d.options.functionBefore.call(d.$el,d.$el,function(){if(d.enabled&&null!==d.Content){c&&d.callbacks.show.push(c),d.callbacks.hide=[],clearTimeout(d.timerShow),d.timerShow=null,clearTimeout(d.timerHide),d.timerHide=null,d.options.onlyOne&&a(".ult-tooltipstered").not(d.$el).each(function(b,c){var d=a(c),e=d.data("ult-tooltipster-ns");a.each(e,function(a,b){var c=d.data(b),e=c.status(),f=c.option("autoClose");"hidden"!==e&&"disappearing"!==e&&f&&c.hide()})});var e=function(){d.Status="shown",a.each(d.callbacks.show,function(a,b){b.call(d.$el)}),d.callbacks.show=[]};if("hidden"!==d.Status){var f=0;"disappearing"===d.Status?(d.Status="appearing",g()?(d.$tooltip.clearQueue().removeClass("ult-tooltipster-dying").addClass("ult-tooltipster-"+d.options.animation+"-show"),d.options.speed>0&&d.$tooltip.delay(d.options.speed),d.$tooltip.queue(e)):d.$tooltip.stop().fadeIn(e)):"shown"===d.Status&&e()}else{d.Status="appearing";var f=d.options.speed,h=BaseStyle="";d.options.ultCustomTooltipStyle&&(h=d.options.ultContentStyle?d.options.ultContentStyle:"",BaseStyle=d.options.ultBaseStyle?d.options.ultBaseStyle:""),d.bodyOverflowX=a("body").css("overflow-x"),a("body").css("overflow-x","hidden");var i="ult-tooltipster-"+d.options.animation,k="-webkit-transition-duration: "+d.options.speed+"ms; -webkit-animation-duration: "+d.options.speed+"ms; -moz-transition-duration: "+d.options.speed+"ms; -moz-animation-duration: "+d.options.speed+"ms; -o-transition-duration: "+d.options.speed+"ms; -o-animation-duration: "+d.options.speed+"ms; -ms-transition-duration: "+d.options.speed+"ms; -ms-animation-duration: "+d.options.speed+"ms; transition-duration: "+d.options.speed+"ms; animation-duration: "+d.options.speed+"ms;",l=d.options.minWidth?"min-width:"+Math.round(d.options.minWidth)+"px;":"",m=d.options.maxWidth?"max-width:"+Math.round(d.options.maxWidth)+"px;":"",n=d.options.interactive?"pointer-events: auto;":"";if(BaseStyle=BaseStyle+" "+l+" "+m+" "+n+" "+k,d.$tooltip=a('
'),g()&&d.$tooltip.addClass(i),d._content_insert(),d.$tooltip.appendTo("body"),d.reposition(),d.options.functionReady.call(d.$el,d.$el,d.$tooltip),g()?(d.$tooltip.addClass(i+"-show"),d.options.speed>0&&d.$tooltip.delay(d.options.speed),d.$tooltip.queue(e)):d.$tooltip.css("display","none").fadeIn(d.options.speed,e),d._interval_set(),a(b).on("scroll."+d.namespace+" resize."+d.namespace,function(){d.reposition()}),d.options.autoClose)if(a("body").off("."+d.namespace),"hover"==d.options.trigger)if(j&&setTimeout(function(){a("body").on("touchstart."+d.namespace,function(){d.hide()})},0),d.options.interactive){j&&d.$tooltip.on("touchstart."+d.namespace,function(a){a.stopPropagation()});var o=null;d.$elProxy.add(d.$tooltip).on("mouseleave."+d.namespace+"-autoClose",function(){clearTimeout(o),o=setTimeout(function(){d.hide()},d.options.interactiveTolerance)}).on("mouseenter."+d.namespace+"-autoClose",function(){clearTimeout(o)})}else d.$elProxy.on("mouseleave."+d.namespace+"-autoClose",function(){d.hide()});else"click"==d.options.trigger&&(setTimeout(function(){a("body").on("click."+d.namespace+" touchstart."+d.namespace,function(){d.hide()})},0),d.options.interactive&&d.$tooltip.on("click."+d.namespace+" touchstart."+d.namespace,function(a){a.stopPropagation()}))}d.options.timer>0&&(d.timerHide=setTimeout(function(){d.timerHide=null,d.hide()},d.options.timer+f))}})},_interval_set:function(){var b=this;b.checkInterval=setInterval(function(){if(0===a("body").find(b.$el).length||0===a("body").find(b.$elProxy).length||"hidden"==b.Status||0===a("body").find(b.$tooltip).length)"shown"!=b.Status&&"appearing"!=b.Status||b.hide(),b._interval_cancel();else if(b.options.positionTracker){var c=b._repositionInfo(b.$elProxy),d=!1;e(c.dimension,b.elProxyPosition.dimension)&&("fixed"===b.$elProxy.css("position")?e(c.position,b.elProxyPosition.position)&&(d=!0):e(c.offset,b.elProxyPosition.offset)&&(d=!0)),d||b.reposition()}},200)},_interval_cancel:function(){clearInterval(this.checkInterval),this.checkInterval=null},_content_set:function(a){"object"==typeof a&&null!==a&&this.options.contentCloning&&(a=a.clone(!0)),this.Content=a},_content_insert:function(){var a=this,b=this.$tooltip.find(".ult-tooltipster-content");"string"!=typeof a.Content||a.options.contentAsHTML?b.empty().append(a.Content):b.text(a.Content)},_update:function(a){var b=this;b._content_set(a),null!==b.Content?"hidden"!==b.Status&&(b._content_insert(),b.reposition(),b.options.updateAnimation&&(g()?(b.$tooltip.css({width:"","-webkit-transition":"all "+b.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-moz-transition":"all "+b.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-o-transition":"all "+b.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-ms-transition":"all "+b.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms",transition:"all "+b.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms"}).addClass("ult-tooltipster-content-changing"),setTimeout(function(){"hidden"!=b.Status&&(b.$tooltip.removeClass("ult-tooltipster-content-changing"),setTimeout(function(){"hidden"!==b.Status&&b.$tooltip.css({"-webkit-transition":b.options.speed+"ms","-moz-transition":b.options.speed+"ms","-o-transition":b.options.speed+"ms","-ms-transition":b.options.speed+"ms",transition:b.options.speed+"ms"})},b.options.speed))},b.options.speed)):b.$tooltip.fadeTo(b.options.speed,.5,function(){"hidden"!=b.Status&&b.$tooltip.fadeTo(b.options.speed,1)}))):b.hide()},_repositionInfo:function(a){return{dimension:{height:a.outerHeight(!1),width:a.outerWidth(!1)},offset:a.offset(),position:{left:parseInt(a.css("left")),top:parseInt(a.css("top"))}}},hide:function(c){var d=this;c&&d.callbacks.hide.push(c),d.callbacks.show=[],clearTimeout(d.timerShow),d.timerShow=null,clearTimeout(d.timerHide),d.timerHide=null;var e=function(){a.each(d.callbacks.hide,function(a,b){b.call(d.$el)}),d.callbacks.hide=[]};if("shown"==d.Status||"appearing"==d.Status){d.Status="disappearing";var f=function(){d.Status="hidden","object"==typeof d.Content&&null!==d.Content&&d.Content.detach(),d.$tooltip.remove(),d.$tooltip=null,a(b).off("."+d.namespace),a("body").off("."+d.namespace).css("overflow-x",d.bodyOverflowX),a("body").off("."+d.namespace),d.$elProxy.off("."+d.namespace+"-autoClose"),d.options.functionAfter.call(d.$el,d.$el),e()};g()?(d.$tooltip.clearQueue().removeClass("ult-tooltipster-"+d.options.animation+"-show").addClass("ult-tooltipster-dying"),d.options.speed>0&&d.$tooltip.delay(d.options.speed),d.$tooltip.queue(f)):d.$tooltip.stop().fadeOut(d.options.speed,f)}else"hidden"==d.Status&&e();return d},show:function(a){return this._showNow(a),this},update:function(a){return this.content(a)},content:function(a){return"undefined"==typeof a?this.Content:(this._update(a),this)},reposition:function(){function c(){var c=a(b).scrollLeft();C-c<0&&(f=C-c,C=c),C+i-c>g&&(f=C-(g+c-i),C=g+c-i)}function d(c,d){h.offset.top-a(b).scrollTop()-j-F-12<0&&d.indexOf("top")>-1&&(H=c),h.offset.top+h.dimension.height+j+12+F>a(b).scrollTop()+a(b).height()&&d.indexOf("bottom")>-1&&(H=c,E=h.offset.top-j-F-12)}var e=this;if(0!==a("body").find(e.$tooltip).length){e.$tooltip.css("width",""),e.elProxyPosition=e._repositionInfo(e.$elProxy);var f=null,g=a(b).width(),h=e.elProxyPosition,i=e.$tooltip.outerWidth(!1),j=(e.$tooltip.innerWidth()+1,e.$tooltip.outerHeight(!1));if(e.$elProxy.is("area")){var k=e.$elProxy.attr("shape"),l=e.$elProxy.parent().attr("name"),m=a('img[usemap="#'+l+'"]'),n=m.offset().left,o=m.offset().top,p=void 0!==e.$elProxy.attr("coords")?e.$elProxy.attr("coords").split(","):void 0;if("circle"==k){var q=parseInt(p[0]),r=parseInt(p[1]),s=parseInt(p[2]);h.dimension.height=2*s,h.dimension.width=2*s,h.offset.top=o+r-s,h.offset.left=n+q-s}else if("rect"==k){var q=parseInt(p[0]),r=parseInt(p[1]),t=parseInt(p[2]),u=parseInt(p[3]);h.dimension.height=u-r,h.dimension.width=t-q,h.offset.top=o+r,h.offset.left=n+q}else if("poly"==k){for(var v=0,w=0,x=0,y=0,z="even",A=0;Ax&&(x=B,0===A&&(v=x)),By&&(y=B,1==A&&(w=y)),Bg){var K=2*parseFloat(e.$tooltip.css("border-width")),L=i+C-K;e.$tooltip.css("width",L+"px"),j=e.$tooltip.outerHeight(!1),C=h.offset.left-G-L-12-K,J=h.offset.top+j-(h.offset.top+h.dimension.height),E=h.offset.top-J/2-F}else C<0&&(C=h.offset.left+G+h.dimension.width+12,f="left")}if("right"==H){C=h.offset.left+G+h.dimension.width+12,D=h.offset.left-G-i-12;var J=h.offset.top+j-(h.offset.top+h.dimension.height);if(E=h.offset.top-J/2-F,C+i>g&&D<0){var K=2*parseFloat(e.$tooltip.css("border-width")),L=g-C-K;e.$tooltip.css("width",L+"px"),j=e.$tooltip.outerHeight(!1),J=h.offset.top+j-(h.offset.top+h.dimension.height),E=h.offset.top-J/2-F}else C+i>g&&(C=h.offset.left-G-i-12,f="right")}if(e.options.arrow){var M="ult-tooltipster-arrow-"+H;if(e.options.arrowColor.length<1)var N=e.$tooltip.css("background-color");else var N=e.options.arrowColor;if(f?"left"==f?(M="ult-tooltipster-arrow-right",f=""):"right"==f?(M="ult-tooltipster-arrow-left",f=""):f="left:"+Math.round(f)+"px;":f="","top"==H||"top-left"==H||"top-right"==H)var O=parseFloat(e.$tooltip.css("border-bottom-width")),P=e.$tooltip.css("border-bottom-color");else if("bottom"==H||"bottom-left"==H||"bottom-right"==H)var O=parseFloat(e.$tooltip.css("border-top-width")),P=e.$tooltip.css("border-top-color");else if("left"==H)var O=parseFloat(e.$tooltip.css("border-right-width")),P=e.$tooltip.css("border-right-color");else if("right"==H)var O=parseFloat(e.$tooltip.css("border-left-width")),P=e.$tooltip.css("border-left-color");else var O=parseFloat(e.$tooltip.css("border-bottom-width")),P=e.$tooltip.css("border-bottom-color");O>1&&O++;var Q="";if(0!==O){var R="",S="border-color: "+P+";";M.indexOf("bottom")!==-1?R="margin-top: -"+Math.round(O)+"px;":M.indexOf("top")!==-1?R="margin-bottom: -"+Math.round(O)+"px;":M.indexOf("left")!==-1?R="margin-right: -"+Math.round(O)+"px;":M.indexOf("right")!==-1&&(R="margin-left: -"+Math.round(O)+"px;"),Q=''}e.$tooltip.find(".ult-tooltipster-arrow").remove();var T='
'+Q+'
';e.$tooltip.append(T)}e.$tooltip.css({top:Math.round(E)+"px",left:Math.round(C)+"px"})}return e},enable:function(){return this.enabled=!0,this},disable:function(){return this.hide(),this.enabled=!1,this},destroy:function(){var b=this;b.hide(),b.$el[0]!==b.$elProxy[0]&&b.$elProxy.remove(),b.$el.removeData(b.namespace).off("."+b.namespace);var c=b.$el.data("ult-tooltipster-ns");if(1===c.length){var d="string"==typeof b.Content?b.Content:a("
").append(b.Content).html();b.$el.removeClass("ult-tooltipstered").attr("title",d).removeData(b.namespace).removeData("ult-tooltipster-ns").off("."+b.namespace)}else c=a.grep(c,function(a,c){return a!==b.namespace}),b.$el.data("ult-tooltipster-ns",c);return b},elementIcon:function(){return this.$el[0]!==this.$elProxy[0]?this.$elProxy[0]:void 0},elementTooltip:function(){return this.$tooltip?this.$tooltip[0]:void 0},option:function(a,b){return"undefined"==typeof b?this.options[a]:(this.options[a]=b,this)},status:function(){return this.Status}},a.fn[h]=function(){var b=arguments;if(0===this.length){if("string"==typeof b[0]){var c=!0;switch(b[0]){case"setDefaults":a.extend(i,b[1]);break;default:c=!1}return!!c||this}return this}if("string"==typeof b[0]){var e="#*$~&";return this.each(function(){var c=a(this).data("ult-tooltipster-ns"),d=c?a(this).data(c[0]):null;if(!d)throw new Error("You called Tooltipster's \""+b[0]+'" method on an uninitialized element');if("function"!=typeof d[b[0]])throw new Error('Unknown method .ult-tooltipster("'+b[0]+'")');var f=d[b[0]](b[1],b[2]);if(f!==d)return e=f,!1}),"#*$~&"!==e?e:this}var f=[],g=b[0]&&"undefined"!=typeof b[0].multiple,h=g&&b[0].multiple||!g&&i.multiple,j=b[0]&&"undefined"!=typeof b[0].debug,k=j&&b[0].debug||!j&&i.debug;return this.each(function(){var c=!1,e=a(this).data("ult-tooltipster-ns"),g=null;e?h?c=!0:k&&console.log('Tooltipster: one or more tooltips are already attached to this element: ignoring. Use the "multiple" option to attach more tooltips.'):c=!0,c&&(g=new d(this,b[0]),e||(e=[]),e.push(g.namespace),a(this).data("ult-tooltipster-ns",e),a(this).data(g.namespace,g)),f.push(g)}),h?f:this};var j=!!("ontouchstart"in b),k=!1;a("body").one("mousemove",function(){k=!0})}(jQuery,window,document),function(a,b,c){a(document).ready(function(c){function d(){var b="",d="";a('a[href="#"]').click(function(a){a.preventDefault()}),c(".ult_hotspot_container.ult-hotspot-tooltip-wrapper").each(function(){c(this);c(this).data("opacity")||.5;c(".ult-hotspot-tooltip[data-link_style='tootip']",c(this)).each(function(){if(a(this).find(".aio-icon-img").length>0)var e=a(this).find(".aio-icon-img").outerHeight(!0),f=a(this).find(".aio-icon-img").outerWidth(!0);else var e=jQuery(this).find(".aio-icon").outerHeight(!0),f=jQuery(this).find(".aio-icon").outerWidth(!0);var g=Math.round(e/2),h=Math.round(f/2),i=c(this).data("tooltipanimation"),j=c(this).data("trigger")||"hover",k=c(this).data("arrowposition")||"top",l=c(this).data("bubble-arrow"),m=c(this).data("tooltip-content-style"),n=c(this).data("tooltip-base-style"),o=c(this).find(".hotspot-tooltip-content").html();c(this).data("tooltip-offsety")||0;o=c(this).find(".hotspot-tooltip-content").html(o).text();var p=c(this).data("mycust-id");b=c(this).data("ultimate-target"),d=c(this).data("responsive-json-new"),d=JSON.stringify(d),"top"==k&&(g=0),"bottom"==k&&(g=e),"left"==k&&(g=-g,h=0),"right"==k&&(h=f,g=-g),/firefox/.test(navigator.userAgent.toLowerCase())&&(h=0,g=0),c(this).ulttooltipster({content:o,position:k,offsetX:h,offsetY:g,ultCustomTooltipStyle:!0,ultContentStyle:m,ultBaseStyle:n,arrow:l,delay:100,speed:300,interactive:!0,animation:i,trigger:j,contentAsHTML:1,ult_adv_id:p,responsive_json_new:d,ultimate_target:b})})})}d(),setTimeout(function(){a(b).load(function(){if(a(".ult_hotspot_container").length>0){var b=a(".ult_hotspot_container").find(".ult-hotspot-tooltip").attr("data-status")||"hide";"show"===b&&a(".ult-tooltipstered").ulttooltipster("destroy"),d()}})},700),a(document).ajaxComplete(function(a,b,c){d()})})}(jQuery,window),function(a,b,c){function d(b,c,d,e,f,g){""!=c&&(c>=768?a(b).find(".ult-ih-item, .ult-ih-img, .ult-ih-image-block, .ult-ih-list-item").css({height:d,width:e}):a(b).find(".ult-ih-item, .ult-ih-img, .ult-ih-image-block, .ult-ih-list-item").css({height:f,width:g}))}function e(){a(".ult-ih-list").each(function(c,e){var f=a(e).attr("data-shape"),g=a(e).attr("data-height"),h=a(e).attr("data-width"),i=a(e).attr("data-res_height"),j=a(e).attr("data-res_width"),k=jQuery(b).width()||"";a(e).find("li").each(function(){a(e).find(".ult-ih-item").addClass("ult-ih-"+f),d(e,k,g,h,i,j)})})}a(b).load(function(){a(".ult-ih-container").css({visibility:"visible",opacity:1})}),a(document).ready(function(){e(),a(document).ajaxComplete(function(a,b,c){e()})}),a(b).resize(function(){e()})}(jQuery,window),function(a){a(document).ready(function(){a(document).trigger("ultImageSeparator")}),a(window).load(function(){a(document).trigger("ultImageSeparator")}),a(document).on("ultImageSeparator",function(b){a(".ult-easy-separator-wrapper").each(function(b,c){var d=a(this).attr("data-vc-row"),e=a(this).parents("."+d+":first");e.hasClass("upb-background-text")&&(e=e.parents("."+d+":first")),a(this).appendTo(e).find(".ult-no-animation").css({opacity:"1"})})})}(jQuery),function(a){function b(){a(".ultb3-box").each(function(b,c){var d=a(c).outerHeight(),e=a(c).find(".ultb3-info").outerHeight(),f=(d-e)/2;a(c).find(".ultb3-info").css({top:f})})}a(document).ready(function(){b(),a(window).resize(function(){b()}),jQuery(".ultb3-box .ultb3-info").each(function(){if(jQuery(this).attr("data-animation")){jQuery(this).css("opacity","0");var a=jQuery(this).attr("data-animation"),b="delay-"+jQuery(this).attr("data-animation-delay");jQuery(this).bsf_appear(function(){var c=jQuery(this);c.addClass("animated").addClass(a),c.addClass("animated").addClass(b),c.css("opacity","1")},{accY:-70})}})}),a(window).load(function(){b()})}(jQuery),jQuery(window).load(function(a){info_box_set_auto_height()}),jQuery(document).ready(function(a){info_box_set_auto_height(),jQuery(window).resize(function(a){info_box_set_auto_height()})});var resizedd=0,time_f_arr=[];jQuery(document).ready(function(){make_info_circle(".info-c-full-br",0),responsive_check(".info-c-full-br"),calculate_clipped_circle(),jQuery(".clipped-info-circle").each(function(a,b){var c=jQuery(this).outerHeight(),d=jQuery(this).outerWidth();jQuery(this).attr("data-first-width",d),jQuery(this).attr("data-first-height",c)}),jQuery(window).resize(function(){resizedd++,make_info_circle(".info-c-full-br",resizedd),calculate_clipped_circle()}),jQuery(window).load(function(){resizedd++,make_info_circle(".info-c-full-br",resizedd),calculate_clipped_circle()}),jQuery(document).on("ultAdvancedTabClicked",function(){resizedd++,make_info_circle(".info-c-full-br",resizedd),calculate_clipped_circle()}),jQuery(".info-c-full-br").each(function(){"click"==jQuery(this).data("focus-on")&&jQuery(this).find(".icon-circle-list .info-circle-icons").click(function(){ var a=jQuery(this);jQuery(this).parents(".info-c-full-br").attr("data-slide-true","false"),show_next_info_circle(a)}),"hover"==jQuery(this).data("focus-on")&&jQuery(this).find(".icon-circle-list .info-circle-icons").hover(function(){var a=jQuery(this);jQuery(this).parents(".info-c-full-br").attr("data-slide-true","false"),show_next_info_circle(a)},function(){})}),setTimeout(function(){jQuery(".info-c-full-br").each(function(){var a=jQuery(this).data("slide-duration");a||(a=.2),jQuery(this).attr("data-slide-number","1"),info_circle_slide(1e3*a,jQuery(this));var b=jQuery(this).find(".info-circle-icons").eq(0);show_next_info_circle(b)})},1e3)}),jQuery(window).load(function(){jQuery(".info-c-full-br").each(function(){"on"==jQuery(this).attr("data-slide-true")&&jQuery(this).hover(function(){jQuery(this).attr("data-slide-true","off")},function(){jQuery(this).attr("data-slide-true","on")})})}),jQuery(document).ready(function(a){jQuery(".icon_list_item").each(function(a,b){var c=jQuery(this),d=c.find(".info-circle-img-icon").length;d>=1&&c.closest("ul.smile_icon_list").addClass("ic-resp-img")})}),function(a){a.fn.bsf_appear=function(b,c){var d=a.extend({data:void 0,one:!0,accX:0,accY:0},c);return this.each(function(){var c=a(this);if(c.bsf_appeared=!1,!b)return void c.trigger("bsf_appear",d.data);var e=a(window),f=function(){if(!c.is(":visible"))return void(c.bsf_appeared=!1);var a=e.scrollLeft(),b=e.scrollTop(),f=c.offset(),g=f.left,h=f.top,i=d.accX,j=d.accY,k=c.height(),l=e.height(),m=c.width(),n=e.width();h+k+j>=b&&h<=b+l+j&&g+m+i>=a&&g<=a+n+i?c.bsf_appeared||c.trigger("bsf_appear",d.data):c.bsf_appeared=!1},g=function(){if(c.bsf_appeared=!0,d.one){e.unbind("scroll",f);var g=a.inArray(f,a.fn.bsf_appear.checks);g>=0&&a.fn.bsf_appear.checks.splice(g,1)}b.apply(this,arguments)};d.one?c.one("bsf_appear",d.data,g):c.bind("bsf_appear",d.data,g),e.scroll(f),a.fn.bsf_appear.checks.push(f),f()})},a.extend(a.fn.bsf_appear,{checks:[],timeout:null,checkAll:function(){var b=a.fn.bsf_appear.checks.length;if(b>0)for(;b--;)a.fn.bsf_appear.checks[b]()},run:function(){a.fn.bsf_appear.timeout?clearTimeout(a.fn.bsf_appear.timeout):a.fn.bsf_appear.timeout=setTimeout(a.fn.bsf_appear.checkAll,20)}}),a.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(b,c){var d=a.fn[c];d&&(a.fn[c]=function(){var b=d.apply(this,arguments);return a.fn.bsf_appear.run(),b})})}(jQuery),function(){var a,b;a=this.jQuery||window.jQuery,b=a(window),a.fn.stick_in_parent=function(c){var d,e,f,g,h,i,j,k,l,m,n,o;for(null==c&&(c={}),o=c.sticky_class,i=c.inner_scrolling,n=c.recalc_every,m=c.parent,l=c.offset_top,k=c.spacer,f=c.bottoming,null==l&&(l=0),null==m&&(m=void 0),null==i&&(i=!0),null==o&&(o="is_stuck"),d=a(document),null==f&&(f=!0),g=function(c,e,g,h,j,p,q,r){var s,t,u,v,w,x,y,z,A,B,C,D;if(!c.data("sticky_kit")){if(c.data("sticky_kit",!0),w=d.height(),y=c.parent(),null!=m&&(y=y.closest(m)),!y.length)throw"failed to find stick parent";if(u=!1,s=!1,C=null!=k?k&&c.closest(k):a("
"),C&&C.css("position",c.css("position")),z=function(){var a,b,f;if(!r)return w=d.height(),a=parseInt(y.css("border-top-width"),10),b=parseInt(y.css("padding-top"),10),e=parseInt(y.css("padding-bottom"),10),g=y.offset().top+a+b,h=y.height(),u&&(u=!1,s=!1,null==k&&(c.insertAfter(C),C.detach()),c.css({position:"",top:"",width:"",bottom:""}).removeClass(o),f=!0),j=c.offset().top-(parseInt(c.css("margin-top"),10)||0)-l,p=c.outerHeight(!0),q=c.css("float"),C&&C.css({width:c.outerWidth(!0),height:p,display:c.css("display"),"vertical-align":c.css("vertical-align"),float:q}),f?D():void 0},z(),p!==h)return v=void 0,x=l,B=n,D=function(){var a,m,t,A,D,E;if(!r)return t=!1,null!=B&&(B-=1,B<=0&&(B=n,z(),t=!0)),t||d.height()===w||(z(),t=!0),A=b.scrollTop(),null!=v&&(m=A-v),v=A,u?(f&&(D=A+p+x>h+g,s&&!D&&(s=!1,c.css({position:"fixed",bottom:"",top:x}).trigger("sticky_kit:unbottom"))),AE&&(s||(x-=m,x=Math.max(E-p,x),x=Math.min(l,x),u&&c.css({top:x+"px"}))))):A>j&&(u=!0,a={position:"fixed",top:x},a.width="border-box"===c.css("box-sizing")?c.outerWidth()+"px":c.width()+"px",c.css(a).addClass(o),null==k&&(c.after(C),"left"!==q&&"right"!==q||C.append(c)),c.trigger("sticky_kit:stick")),u&&f&&(null==D&&(D=A+p+x>h+g),!s&&D)?(s=!0,"static"===y.css("position")&&y.css({position:"relative"}),c.css({position:"absolute",bottom:e,top:"auto"}).trigger("sticky_kit:bottom")):void 0},A=function(){return z(),D()},t=function(){if(r=!0,b.off("touchmove",D),b.off("scroll",D),b.off("resize",A),a(document.body).off("sticky_kit:recalc",A),c.off("sticky_kit:detach",t),c.removeData("sticky_kit"),c.css({position:"",bottom:"",top:"",width:""}),y.position("position",""),u)return null==k&&("left"!==q&&"right"!==q||c.insertAfter(C),C.remove()),c.removeClass(o)},b.on("touchmove",D),b.on("scroll",D),b.on("resize",A),a(document.body).on("sticky_kit:recalc",A),c.on("sticky_kit:detach",t),setTimeout(D,0)}},h=0,j=this.length;hb?c:b,f=f>d?f:d});var A=f+"px "+c+"px 35px";h.css("padding",A)}"on"==r&&(x.find(".ult-description").each(function(){var b=a(this).outerHeight();g=g>b?g:b}),g=g+30+"px",x.find(".ult-desc-wrap").css("min-height",g)),h.find(".ui-slider-labels").children(".ui-slider-label-ticks").css("background",k);var B={},C="background";B[C]=o;var D=y.find(".ui-slider-handle");y.css("background",k),D.css(B),y.find(".ui-slider-range").css("background",n)})}),function(a){a(document).ready(function(){a(".ult-carousel-wrapper").each(function(){var b=a(this);if(b.hasClass("ult_full_width")){b.css("left",0),b.css("right",0);var c=b.attr("data-rtl"),d=a("html").outerWidth(),e=0,f=b.offset().left,g=Math.abs(e-f),h=g;"true"===c||c===!0?b.css({position:"relative",right:"-"+h+"px",width:d+"px"}):b.css({position:"relative",left:"-"+h+"px",width:d+"px"})}}),a(".ult-carousel-wrapper").each(function(b,c){var d=a(c).data("gutter"),e=a(c).attr("id");if(""!=d){var f="";a("head").append(f)}}),a(window).resize(function(){a(".ult-carousel-wrapper").each(function(){var b=a(this);if(b.hasClass("ult_full_width")){var c=b.attr("data-rtl");b.removeAttr("style");var d=a("html").outerWidth(),e=0,f=b.offset().left,g=Math.abs(e-f),h=g;"true"===c||c===!0?b.css({position:"relative",right:"-"+h+"px",width:d+"px"}):b.css({position:"relative",left:"-"+h+"px",width:d+"px"})}})})}),a(window).load(function(){a(".ult-carousel-wrapper").each(function(){var b=a(this);if(b.hasClass("ult_full_width")){b.css("left",0),b.css("right",0);var c=0,d=b.offset().left,e=Math.abs(c-d),f=b.attr("data-rtl"),g=a("html").outerWidth(),h=e;"true"===f||f===!0?b.css({position:"relative",right:"-"+h+"px",width:g+"px"}):b.css({position:"relative",left:"-"+h+"px",width:g+"px"})}})})}(jQuery),!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function b(b,d){var e,f=this;f.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(b),appendDots:a(b),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('
":"
"),o="function"==typeof l?l(i.state.currPage):l.join(i.state.currPage),a._debug("heading into ajax",o),s="html"===i.dataType||"json"===i.dataType?i.dataType:"html+callback",i.appendCallback&&"html"===i.dataType&&(s+="+callback"),s){case"html+callback":a._debug("Using HTML via .load() method"),n.load(o+" "+i.itemSelector,e,function(t){a._loadcallback(n,t,o)});break;case"html":a._debug("Using "+s.toUpperCase()+" via $.ajax() method"),t.ajax({url:o,dataType:i.dataType,complete:function(t,e){(r=void 0!==t.isResolved?t.isResolved():"success"===e||"notmodified"===e)?a._loadcallback(n,t.responseText,o):a._error("end")}});break;case"json":a._debug("Using "+s.toUpperCase()+" via $.ajax() method"),t.ajax({dataType:"json",type:"GET",url:o,success:function(t,s,l){if(r=void 0!==l.isResolved?l.isResolved():"success"===s||"notmodified"===s,i.appendCallback)if(i.template!==e){var c=i.template(t);n.append(c),r?a._loadcallback(n,c):a._error("end")}else a._debug("template must be defined."),a._error("end");else r?a._loadcallback(n,t,o):a._error("end")},error:function(){a._debug("JSON ajax request failed."),a._error("end")}})}},retrieve:function(i){i=i||null;var n=this.options;if(n.behavior&&this["retrieve_"+n.behavior]!==e)this["retrieve_"+n.behavior].call(this,i);else{if(n.state.isDestroyed)return this._debug("Instance is destroyed"),!1;n.state.isDuringAjax=!0,n.loading.start.call(t(n.contentSelector)[0],n)}},scroll:function(){var t=this.options,i=t.state;t.behavior&&this["scroll_"+t.behavior]!==e?this["scroll_"+t.behavior].call(this):i.isDuringAjax||i.isInvalidPage||i.isDone||i.isDestroyed||i.isPaused||this._nearbottom()&&this.retrieve()},toggle:function(){this._pausing()},unbind:function(){this._binding("unbind")},update:function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))}},t.fn.infinitescroll=function(e,i){switch(typeof e){case"string":var n=Array.prototype.slice.call(arguments,1);this.each(function(){var i=t.data(this,"infinitescroll");return!!i&&(!(!t.isFunction(i[e])||"_"===e.charAt(0))&&void i[e].apply(i,n))});break;case"object":this.each(function(){var n=t.data(this,"infinitescroll");n?n.update(e):(n=new t.infinitescroll(e,i,this)).failed||t.data(this,"infinitescroll",n)})}return this};var i,n=t.event;n.special.smartscroll={setup:function(){t(this).bind("scroll",n.special.smartscroll.handler)},teardown:function(){t(this).unbind("scroll",n.special.smartscroll.handler)},handler:function(e,n){var o=this,s=arguments;e.type="smartscroll",i&&clearTimeout(i),i=setTimeout(function(){t(o).trigger("smartscroll",s)},"execAsap"===n?0:100)}},t.fn.smartscroll=function(t){return t?this.bind("smartscroll",t):this.trigger("smartscroll",["execAsap"])}}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){(a=a||e||t.jQuery)&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){return function(t,e,n){var o,s="$()."+i+'("'+e+'")';return t.each(function(t,l){var c=a.data(l,i);if(c){var h=c[e];if(h&&"_"!=e.charAt(0)){var u=h.apply(c,n);o=void 0===o?u:o}else r(s+" is not a valid method")}else r(i+" not initialized. Cannot call methods, i.e. "+s)}),void 0!==o?o:t}(this,t,o.call(arguments,1))}return function(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new s(n,e),a.data(n,i,o))})}(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,s=t.console,r=void 0===s?function(){}:function(t){s.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var s=this._onceEvents&&this._onceEvents[t];o;){var r=s&&s[o];r&&(this.off(t,o),delete s[o]),o.apply(this,e),o=i[n+=r?0:1]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function e(t){var e=getComputedStyle(t);return e||o("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function i(o){if(function(){if(!a){a=!0;var o=document.createElement("div");o.style.width="200px",o.style.padding="1px 2px 3px 4px",o.style.borderStyle="solid",o.style.borderWidth="1px 2px 3px 4px",o.style.boxSizing="border-box";var s=document.body||document.documentElement;s.appendChild(o);var r=e(o);i.isBoxSizeOuter=n=200==t(r.width),s.removeChild(o)}}(),"string"==typeof o&&(o=document.querySelector(o)),o&&"object"==typeof o&&o.nodeType){var l=e(o);if("none"==l.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;ei&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(i,n,o,s,r,a){return e(t,i,n,o,s,r,a)}):"object"==typeof module&&module.exports?module.exports=e(t,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope/js/item"),require("isotope/js/layout-mode"),require("isotope/js/layout-modes/masonry"),require("isotope/js/layout-modes/fit-rows"),require("isotope/js/layout-modes/vertical")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,i,n,o,s,r){var a=t.jQuery,l=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},c=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});c.Item=s,c.LayoutMode=r;var h=c.prototype;h._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var t in r.modes)this._initLayoutMode(t)},h.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},h._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;ia||ra?1:-1)*(l?1:-1)}}return 0}}([].concat.apply(t,this.sortHistory),this.options.sortAscending);this.filteredItems.sort(e),t!=this.sortHistory[0]&&this.sortHistory.unshift(t)}},h._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},h._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},h._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},h._manageStamp=function(t){this._mode()._manageStamp(t)},h._getContainerSize=function(){return this._mode()._getContainerSize()},h.needsResizeLayout=function(){return this._mode().needsResizeLayout()},h.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},h.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},h._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},h.insert=function(t){var e=this.addItems(t);if(e.length){var i,n,o=e.length;for(i=0;i=e&&a<=e+u+c&&r+d+l>=t&&r<=t+p+l?i.appeared||i.trigger("appear",n.data):i.appeared=!1}else i.appeared=!1},r=function(){if(i.appeared=!0,n.one){o.unbind("scroll",s);var r=t.inArray(s,t.fn.appear.checks);r>=0&&t.fn.appear.checks.splice(r,1)}e.apply(this,arguments)};n.one?i.one("appear",n.data,r):i.bind("appear",n.data,r),o.scroll(s),t.fn.appear.checks.push(s),s()}else i.trigger("appear",n.data)})},t.extend(t.fn.appear,{checks:[],timeout:null,checkAll:function(){var e=t.fn.appear.checks.length;if(e>0)for(;e--;)"function"==typeof t.fn.appear.checks[e]&&t.fn.appear.checks[e]()},run:function(){t.fn.appear.timeout&&clearTimeout(t.fn.appear.timeout),t.fn.appear.timeout=setTimeout(t.fn.appear.checkAll,20)}}),t.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(e,i){var n=t.fn[i];n&&(t.fn[i]=function(){var e=n.apply(this,arguments);return t.fn.appear.run(),e})})}(jQuery),function(t,e){"object"==typeof exports?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(t.jQuery)}(this,function(t){var e=function(t,e){var i,n=document.createElement("canvas");t.appendChild(n),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(n);var o=n.getContext("2d");n.width=n.height=e.size;var s=1;window.devicePixelRatio>1&&(s=window.devicePixelRatio,n.style.width=n.style.height=[e.size,"px"].join(""),n.width=n.height=e.size*s,o.scale(s,s)),o.translate(e.size/2,e.size/2),o.rotate((e.rotate/180-.5)*Math.PI);var r=(e.size-e.lineWidth)/2;e.scaleColor&&e.scaleLength&&(r-=e.scaleLength+2),Date.now=Date.now||function(){return+new Date};var a=function(t,e,i){var n=(i=Math.min(Math.max(-1,i||0),1))<=0;o.beginPath(),o.arc(0,0,r,0,2*Math.PI*i,n),o.strokeStyle=t,o.lineWidth=e,o.stroke()},l=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},c=function(){e.scaleColor&&function(){var t,i;o.lineWidth=1,o.fillStyle=e.scaleColor,o.save();for(var n=24;n>0;--n)n%6==0?(i=e.scaleLength,t=0):(i=.6*e.scaleLength,t=e.scaleLength-i),o.fillRect(-e.size/2+t,0,i,1),o.rotate(Math.PI/12);o.restore()}(),e.trackColor&&a(e.trackColor,e.lineWidth,1)};this.getCanvas=function(){return n},this.getCtx=function(){return o},this.clear=function(){o.clearRect(e.size/-2,e.size/-2,e.size,e.size)},this.draw=function(t){e.scaleColor||e.trackColor?o.getImageData&&o.putImageData?i?o.putImageData(i,0,0):(c(),i=o.getImageData(0,0,e.size*s,e.size*s)):(this.clear(),c()):this.clear(),o.lineCap=e.lineCap;var n;n="function"==typeof e.barColor?e.barColor(t):e.barColor,a(n,e.lineWidth,t/100)}.bind(this),this.animate=function(t,i){var n=Date.now();e.onStart(t,i);var o=function(){var s=Math.min(Date.now()-n,e.animate.duration),r=e.easing(this,s,t,i-t,e.animate.duration);this.draw(r),e.onStep(t,i,r),s>=e.animate.duration?e.onStop(t,i):l(o)}.bind(this);l(o)}.bind(this)};t.fn.easyPieChart=function(i){return this.each(function(){var n;t.data(this,"easyPieChart")||(n=t.extend({},i,t(this).data()),t.data(this,"easyPieChart",new function(t,i){var n={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e+i:-n/2*(--e*(e-2)-1)+i},onStart:function(t,e){},onStep:function(t,e,i){},onStop:function(t,e){}};if(void 0!==e)n.renderer=e;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");n.renderer=SVGRenderer}var o={},s=0,r=function(){this.el=t,this.options=o;for(var e in n)n.hasOwnProperty(e)&&(o[e]=i&&void 0!==i[e]?i[e]:n[e],"function"==typeof o[e]&&(o[e]=o[e].bind(this)));"string"==typeof o.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[o.easing])?o.easing=jQuery.easing[o.easing]:o.easing=n.easing,"number"==typeof o.animate&&(o.animate={duration:o.animate,enabled:!0}),"boolean"!=typeof o.animate||o.animate||(o.animate={duration:1e3,enabled:o.animate}),this.renderer=new o.renderer(t,o),this.renderer.draw(s),t.dataset&&t.dataset.percent?this.update(parseFloat(t.dataset.percent)):t.getAttribute&&t.getAttribute("data-percent")&&this.update(parseFloat(t.getAttribute("data-percent")))}.bind(this);this.update=function(t){return t=parseFloat(t),o.animate.enabled?this.renderer.animate(s,t):this.renderer.draw(t),s=t,this}.bind(this),this.disableAnimation=function(){return o.animate.enabled=!1,this},this.enableAnimation=function(){return o.animate.enabled=!0,this},r()}(this,n)))})}}),function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null};if(!document.getElementById("fit-vids-style")){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("div");o.innerHTML='

x

',n.appendChild(o.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];i.customSelector&&e.push(i.customSelector);var n=t(this).find(e.join(","));(n=n.not("object object")).each(function(){var e=t(this);if(!("embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){var i=("object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height())/(isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10));if(!e.attr("id")){var n="fitvid"+Math.floor(999999*Math.random());e.attr("id",n)}e.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*i+"%"),e.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t:t(jQuery)}(function(t){function e(e){var r=e||window.event,a=l.call(arguments,1),c=0,u=0,d=0,p=0,f=0,m=0;if(e=t.event.fix(r),e.type="mousewheel","detail"in r&&(d=-1*r.detail),"wheelDelta"in r&&(d=r.wheelDelta),"wheelDeltaY"in r&&(d=r.wheelDeltaY),"wheelDeltaX"in r&&(u=-1*r.wheelDeltaX),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(u=-1*d,d=0),c=0===d?u:d,"deltaY"in r&&(c=d=-1*r.deltaY),"deltaX"in r&&(u=r.deltaX,0===d&&(c=-1*u)),0!==d||0!==u){if(1===r.deltaMode){var g=t.data(this,"mousewheel-line-height");c*=g,d*=g,u*=g}else if(2===r.deltaMode){var v=t.data(this,"mousewheel-page-height");c*=v,d*=v,u*=v}if(p=Math.max(Math.abs(d),Math.abs(u)),(!s||p=1?"floor":"ceil"](c/s),u=Math[u>=1?"floor":"ceil"](u/s),d=Math[d>=1?"floor":"ceil"](d/s),h.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=e.clientX-y.left,m=e.clientY-y.top}return e.deltaX=u,e.deltaY=d,e.deltaFactor=s,e.offsetX=f,e.offsetY=m,e.deltaMode=0,a.unshift(e,c,u,d),o&&clearTimeout(o),o=setTimeout(i,200),(t.event.dispatch||t.event.handle).apply(this,a)}}function i(){s=null}function n(t,e){return h.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}var o,s,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(t.event.fixHooks)for(var c=r.length;c;)t.event.fixHooks[r[--c]]=t.event.mouseHooks;var h=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=a.length;i;)this.addEventListener(a[--i],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",h.getLineHeight(this)),t.data(this,"mousewheel-page-height",h.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=a.length;i;)this.removeEventListener(a[--i],e,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var i=t(e),n=i["offsetParent"in t.fn?"offsetParent":"parent"]();return n.length||(n=t("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})});var scrolltotop={setting:{startline:100,scrollto:0,scrollduration:1e3,fadeduration:[500,100]},controlHTML:'',controlattrs:{offsetx:10,offsety:10},anchorkeyword:"#top",state:{isvisible:!1,shouldvisible:!1},scrollup:function(){this.cssfixedsupport||this.$control.css({opacity:0});var t=isNaN(this.setting.scrollto)?this.setting.scrollto:parseInt(this.setting.scrollto);t="string"==typeof t&&1==jQuery("#"+t).length?jQuery("#"+t).offset().top:0,this.$body.animate({scrollTop:t},this.setting.scrollduration)},keepfixed:function(){var t=jQuery(window),e=t.scrollLeft()+t.width()-this.$control.width()-this.controlattrs.offsetx,i=t.scrollTop()+t.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:e+"px",top:i+"px"})},togglecontrol:function(){var t=jQuery(window).scrollTop();this.cssfixedsupport||this.keepfixed(),this.state.shouldvisible=t>=this.setting.startline,this.state.shouldvisible&&!this.state.isvisible?(this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]),this.state.isvisible=!0):0==this.state.shouldvisible&&this.state.isvisible&&(this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]),this.state.isvisible=!1)},init:function(){jQuery(document).ready(function(t){var e=scrolltotop,i=document.all;e.cssfixedsupport=!i||i&&"CSS1Compat"==document.compatMode&&window.XMLHttpRequest,e.$body=t(window.opera?"CSS1Compat"==document.compatMode?"html":"body":"html,body"),e.$control=t('
'+e.controlHTML+"
").css({position:e.cssfixedsupport?"fixed":"absolute",bottom:e.controlattrs.offsety,opacity:0,cursor:"pointer"}).attr({title:""}).click(function(){return e.scrollup(),!1}).appendTo("body"),document.all&&!window.XMLHttpRequest&&""!=e.$control.text()&&e.$control.css({width:e.$control.width()}),e.togglecontrol(),t('a[href="'+e.anchorkeyword+'"]').click(function(){return e.scrollup(),!1}),t(window).bind("scroll resize",function(t){e.togglecontrol()})})}};!function(t){var e=-1,i=-1,n=function(t){return parseFloat(t)||0},o=function(e){var i={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(i,e):("boolean"==typeof e?i.byRow=e:"remove"===e&&(i.remove=!0),i)},s=t.fn.matchHeight=function(e){var i=o(e);if(i.remove){var n=this;return this.css(i.property,""),t.each(s._groups,function(t,e){e.elements=e.elements.not(n)}),this}return this.length<=1&&!i.target?this:(s._groups.push({elements:this,options:i}),s._apply(this,i),this)};s._groups=[],s._throttle=80,s._maintainScroll=!1,s._beforeUpdate=null,s._afterUpdate=null,s._apply=function(e,i){var r=o(i),a=t(e),l=[a],c=t(window).scrollTop(),h=t("html").outerHeight(!0),u=a.parents().filter(":hidden");return u.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),u.css("display","block"),r.byRow&&!r.target&&(a.each(function(){var e=t(this),i="inline-block"===e.css("display")?"inline-block":"block";e.data("style-cache",e.attr("style")),e.css({display:i,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px"})}),l=function(e){var i=null,o=[];return t(e).each(function(){var e=t(this),s=e.offset().top-n(e.css("margin-top")),r=o.length>0?o[o.length-1]:null;null===r?o.push(e):Math.floor(Math.abs(i-s))<=1?o[o.length-1]=r.add(e):o.push(e),i=s}),o}(a),a.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(l,function(e,i){var o=t(i),s=0;if(r.target)s=r.target.outerHeight(!1);else{if(r.byRow&&o.length<=1)return void o.css(r.property,"");o.each(function(){var e=t(this),i={display:"inline-block"===e.css("display")?"inline-block":"block"};i[r.property]="",e.css(i),e.outerHeight(!1)>s&&(s=e.outerHeight(!1)),e.css("display","")})}o.each(function(){var e=t(this),i=0;r.target&&e.is(r.target)||("border-box"!==e.css("box-sizing")&&(i+=n(e.css("border-top-width"))+n(e.css("border-bottom-width")),i+=n(e.css("padding-top"))+n(e.css("padding-bottom"))),e.css(r.property,s-i))})}),u.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),s._maintainScroll&&t(window).scrollTop(c/h*t("html").outerHeight(!0)),this},s._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var i=t(this),n=i.attr("data-mh")||i.attr("data-match-height");e[n]=n in e?e[n].add(i):i}),t.each(e,function(){this.matchHeight(!0)})};var r=function(e){s._beforeUpdate&&s._beforeUpdate(e,s._groups),t.each(s._groups,function(){s._apply(this.elements,this.options)}),s._afterUpdate&&s._afterUpdate(e,s._groups)};s._update=function(n,o){if(o&&"resize"===o.type){var a=t(window).width();if(a===e)return;e=a}n?-1===i&&(i=setTimeout(function(){r(o),i=-1},s._throttle)):r(o)},t(s._applyDataApi),t(window).bind("load",function(t){s._update(!1,t)}),t(window).bind("resize orientationchange",function(t){s._update(!0,t)})}(jQuery),window.Modernizr=function(t,e,i){function n(t){m.cssText=t}function o(t,e){return typeof t===e}function s(t,e){return!!~(""+t).indexOf(e)}function r(t,e){for(var n in t){var o=t[n];if(!s(o,"-")&&m[o]!==i)return"pfx"!=e||o}return!1}function a(t,e,n){for(var s in t){var r=e[t[s]];if(r!==i)return!1===n?t[s]:o(r,"function")?r.bind(n||e):r}return!1}function l(t,e,i){var n=t.charAt(0).toUpperCase()+t.slice(1),s=(t+" "+y.join(n+" ")+n).split(" ");return o(e,"string")||o(e,"undefined")?r(s,e):(s=(t+" "+w.join(n+" ")+n).split(" "),a(s,e,i))}var c,h,u={},d=e.documentElement,p="modernizr",f=e.createElement(p),m=f.style,g=" -webkit- -moz- -o- -ms- ".split(" "),v="Webkit Moz O ms",y=v.split(" "),w=v.toLowerCase().split(" "),_={},b=[],C=b.slice,x=function(t,i,n,o){var s,r,a,l,c=e.createElement("div"),h=e.body,u=h||e.createElement("body");if(parseInt(n,10))for(;n--;)a=e.createElement("div"),a.id=o?o[n]:p+(n+1),c.appendChild(a);return s=["­",'"].join(""),c.id=p,(h?c:u).innerHTML+=s,u.appendChild(c),h||(u.style.background="",u.style.overflow="hidden",l=d.style.overflow,d.style.overflow="hidden",d.appendChild(u)),r=i(c,t),h?c.parentNode.removeChild(c):(u.parentNode.removeChild(u),d.style.overflow=l),!!r},A={}.hasOwnProperty;h=o(A,"undefined")||o(A.call,"undefined")?function(t,e){return e in t&&o(t.constructor.prototype[e],"undefined")}:function(t,e){return A.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError;var i=C.call(arguments,1),n=function(){if(this instanceof n){var o=function(){};o.prototype=e.prototype;var s=new o,r=e.apply(s,i.concat(C.call(arguments)));return Object(r)===r?r:s}return e.apply(t,i.concat(C.call(arguments)))};return n}),_.touch=function(){var i;return"ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch?i=!0:x(["@media (",g.join("touch-enabled),("),p,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(t){i=9===t.offsetTop}),i},_.csstransforms3d=function(){var t=!!l("perspective");return t&&"webkitPerspective"in d.style&&x("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(e,i){t=9===e.offsetLeft&&3===e.offsetHeight}),t},_.csstransitions=function(){return l("transition")};for(var I in _)h(_,I)&&(c=I.toLowerCase(),u[c]=_[I](),b.push((u[c]?"":"no-")+c));return u.addTest=function(t,e){if("object"==typeof t)for(var n in t)h(t,n)&&u.addTest(n,t[n]);else{if(t=t.toLowerCase(),u[t]!==i)return u;e="function"==typeof e?e():e,d.className+=" "+(e?"":"no-")+t,u[t]=e}return u},n(""),f=null,function(t,e){function i(){var t=f.elements;return"string"==typeof t?t.split(" "):t}function n(t){var e=p[t[u]];return e||(e={},d++,t[u]=d,p[d]=e),e}function o(t,i,o){if(i||(i=e),a)return i.createElement(t);o||(o=n(i));var s;return!(s=o.cache[t]?o.cache[t].cloneNode():h.test(t)?(o.cache[t]=o.createElem(t)).cloneNode():o.createElem(t)).canHaveChildren||c.test(t)||s.tagUrn?s:o.frag.appendChild(s)}function s(t){t||(t=e);var s=n(t);return f.shivCSS&&!r&&!s.hasCSS&&(s.hasCSS=!!function(t,e){var i=t.createElement("p"),n=t.getElementsByTagName("head")[0]||t.documentElement;return i.innerHTML="x",n.insertBefore(i.lastChild,n.firstChild)}(t,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),a||function(t,e){e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocumentFragment,e.frag=e.createFrag()),t.createElement=function(i){return f.shivMethods?o(i,t,e):e.createElem(i)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace(/[\w\-]+/g,function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'")'})+");return n}")(f,e.frag)}(t,s),t}var r,a,l=t.html5||{},c=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,h=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,u="_html5shiv",d=0,p={};!function(){try{var t=e.createElement("a");t.innerHTML="",r="hidden"in t,a=1==t.childNodes.length||function(){e.createElement("a");var t=e.createDocumentFragment();return void 0===t.cloneNode||void 0===t.createDocumentFragment||void 0===t.createElement}()}catch(t){r=!0,a=!0}}();var f={elements:l.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==l.shivCSS,supportsUnknownElements:a,shivMethods:!1!==l.shivMethods,type:"default",shivDocument:s,createElement:o,createDocumentFragment:function(t,o){if(t||(t=e),a)return t.createDocumentFragment();for(var s=(o=o||n(t)).frag.cloneNode(),r=0,l=i(),c=l.length;r(t||c.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(i){if(i.target!==e.wrap[0]&&!t.contains(e.wrap[0],i.target))return e._setFocus(),!1},_parseMarkup:function(e,i,n){var o;n.data&&(i=t.extend(n.data,i)),d("MarkupParse",[e,i,n]),t.each(i,function(i,n){if(void 0===n||!1===n)return!0;if((o=i.split("_")).length>1){var s=e.find(".mfp-"+o[0]);if(s.length>0){var r=o[1];"replaceWith"===r?s[0]!==n[0]&&s.replaceWith(n):"img"===r?s.is("img")?s.attr("src",n):s.replaceWith(t("").attr("src",n).attr("class",s.attr("class"))):s.attr(o[1],n)}}else e.find(".mfp-"+i).html(n)})},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e.scrollbarSize}},t.magnificPopup={instance:null,proto:a.prototype,modules:[],open:function(e,i){return f(),e=e?t.extend(!0,{},e):{},e.isObj=!0,e.index=i||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,i){i.options&&(t.magnificPopup.defaults[e]=i.options),t.extend(this.proto,i.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},t.fn.magnificPopup=function(i){f();var n=t(this);if("string"==typeof i)if("open"===i){var o,s=l?n.data("magnificPopup"):n[0].magnificPopup,r=parseInt(arguments[1],10)||0;s.items?o=s.items[r]:(o=n,s.delegate&&(o=o.find(s.delegate)),o=o.eq(r)),e._openClick({mfpEl:o},n,s)}else e.isOpen&&e[i].apply(e,Array.prototype.slice.call(arguments,1));else i=t.extend(!0,{},i),l?n.data("magnificPopup",i):n[0].magnificPopup=i,e.addGroup(n,i);return n};var m,g,v,y=function(){v&&(g.after(v.addClass(m)).detach(),v=null)};t.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push("inline"),h("Close.inline",function(){y()})},getInline:function(i,n){if(y(),i.src){var o=e.st.inline,s=t(i.src);if(s.length){var r=s[0].parentNode;r&&r.tagName&&(g||(m=o.hiddenClass,g=u(m),m="mfp-"+m),v=s.after(g).detach().removeClass(m)),e.updateStatus("ready")}else e.updateStatus("error",o.tNotFound),s=t("
");return i.inlineElement=s,s}return e.updateStatus("ready"),e._parseMarkup(n,{},i),n}}});var w,_=function(){w&&t(document.body).removeClass(w)},b=function(){_(),e.req&&e.req.abort()};t.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){e.types.push("ajax"),w=e.st.ajax.cursor,h("Close.ajax",b),h("BeforeChange.ajax",b)},getAjax:function(i){w&&t(document.body).addClass(w),e.updateStatus("loading");var n=t.extend({url:i.src,success:function(n,o,s){var r={data:n,xhr:s};d("ParseAjax",r),e.appendContent(t(r.data),"ajax"),i.finished=!0,_(),e._setFocus(),setTimeout(function(){e.wrap.addClass("mfp-ready")},16),e.updateStatus("ready"),d("AjaxContentAdded")},error:function(){_(),i.finished=i.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",i.src))}},e.st.ajax.settings);return e.req=t.ajax(n),""}}});var C;t.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var i=e.st.image,n=".image";e.types.push("image"),h("Open"+n,function(){"image"===e.currItem.type&&i.cursor&&t(document.body).addClass(i.cursor)}),h("Close"+n,function(){i.cursor&&t(document.body).removeClass(i.cursor),c.off("resize.mfp")}),h("Resize"+n,e.resizeImage),e.isLowIE&&h("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var i=0;e.isLowIE&&(i=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-i)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,C&&clearInterval(C),t.isCheckingImgSize=!1,d("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var i=0,n=t.img[0],o=function(s){C&&clearInterval(C),C=setInterval(function(){n.naturalWidth>0?e._onImageHasSize(t):(i>200&&clearInterval(C),3===++i?o(10):40===i?o(50):100===i&&o(500))},s)};o(1)},getImage:function(i,n){var o=0,s=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,d("ImageLoadComplete")):++o<200?setTimeout(s,100):r())},r=function(){i&&(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("error",a.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},a=e.st.image,l=n.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=t(c).on("load.mfploader",s).on("error.mfploader",r),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),(c=i.img[0]).naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return e._parseMarkup(n,{title:function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var n=e.st.image.titleSrc;if(n){if(t.isFunction(n))return n.call(e,i);if(i.el)return i.el.attr(n)||""}return""}(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?(C&&clearInterval(C),i.loadError?(n.addClass("mfp-loading"),e.updateStatus("error",a.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),e.updateStatus("ready")),n):(e.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),e.findImageSize(i)),n)}}});var x;t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,i=e.st.zoom,n=".zoom";if(i.enabled&&e.supportsTransition){var o,s,r=i.duration,a=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+i.duration/1e3+"s "+i.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},s="transition";return o["-webkit-"+s]=o["-moz-"+s]=o["-o-"+s]=o[s]=n,e.css(o),e},l=function(){e.content.css("visibility","visible")};h("BuildControls"+n,function(){if(e._allowZoom()){if(clearTimeout(o),e.content.css("visibility","hidden"),!(t=e._getItemToZoom()))return void l();(s=a(t)).css(e._getOffset()),e.wrap.append(s),o=setTimeout(function(){s.css(e._getOffset(!0)),o=setTimeout(function(){l(),setTimeout(function(){s.remove(),t=s=null,d("ZoomAnimationEnded")},16)},r)},16)}}),h("BeforeClose"+n,function(){if(e._allowZoom()){if(clearTimeout(o),e.st.removalDelay=r,!t){if(!(t=e._getItemToZoom()))return;s=a(t)}s.css(e._getOffset(!0)),e.wrap.append(s),e.content.css("visibility","hidden"),setTimeout(function(){s.css(e._getOffset())},16)}}),h("Close"+n,function(){e._allowZoom()&&(l(),s&&s.remove(),t=null)})}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return!!e.currItem.hasSize&&e.currItem.img},_getOffset:function(i){var n,o=(n=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem)).offset(),s=parseInt(n.css("padding-top"),10),r=parseInt(n.css("padding-bottom"),10);o.top-=t(window).scrollTop()-s;var a={width:n.width(),height:(l?n.innerHeight():n[0].offsetHeight)-r-s};return void 0===x&&(x=void 0!==document.createElement("p").style.MozTransform),x?a["-moz-transform"]=a.transform="translate("+o.left+"px,"+o.top+"px)":(a.left=o.left,a.top=o.top),a}}});var A=function(t){if(e.currTemplate.iframe){var i=e.currTemplate.iframe.find("iframe");i.length&&(t||(i[0].src="//about:blank"),e.isIE8&&i.css("display",t?"block":"none"))}};t.magnificPopup.registerModule("iframe",{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){e.types.push("iframe"),h("BeforeChange",function(t,e,i){e!==i&&("iframe"===e?A():"iframe"===i&&A(!0))}),h("Close.iframe",function(){A()})},getIframe:function(i,n){var o=i.src,s=e.st.iframe;t.each(s.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var r={};return s.srcAction&&(r[s.srcAction]=o),e._parseMarkup(n,r,i),e.updateStatus("ready"),n}}});var I=function(t){var i=e.items.length;return t>i-1?t-i:t<0?i+t:t},E=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=e.st.gallery,o=".mfp-gallery";if(e.direction=!0,!i||!i.enabled)return!1;s+=" mfp-gallery",h("Open"+o,function(){i.navigateByImgClick&&e.wrap.on("click"+o,".mfp-img",function(){if(e.items.length>1)return e.next(),!1}),n.on("keydown"+o,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),h("UpdateStatus"+o,function(t,i){i.text&&(i.text=E(i.text,e.currItem.index,e.items.length))}),h("MarkupParse"+o,function(t,n,o,s){var r=e.items.length;o.counter=r>1?E(i.tCounter,s.index,r):""}),h("BuildControls"+o,function(){if(e.items.length>1&&i.arrows&&!e.arrowLeft){var n=i.arrowMarkup,o=e.arrowLeft=t(n.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),s=e.arrowRight=t(n.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");o.click(function(){e.prev()}),s.click(function(){e.next()}),e.container.append(o.add(s))}}),h("Change"+o,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),h("Close"+o,function(){n.off(o),e.wrap.off("click"+o),e.arrowRight=e.arrowLeft=null})},next:function(){e.direction=!0,e.index=I(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=I(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,i=e.st.gallery.preload,n=Math.min(i[0],e.items.length),o=Math.min(i[1],e.items.length);for(t=1;t<=(e.direction?o:n);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?n:o);t++)e._preloadItem(e.index-t)},_preloadItem:function(i){if(i=I(i),!e.items[i].preloaded){var n=e.items[i];n.parsed||(n=e.parseEl(i)),d("LazyLoad",n),"image"===n.type&&(n.img=t('').on("load.mfploader",function(){n.hasSize=!0}).on("error.mfploader",function(){n.hasSize=!0,n.loadError=!0,d("LazyLoadError",n)}).attr("src",n.src)),n.preloaded=!0}}}});t.magnificPopup.registerModule("retina",{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,i=t.ratio;(i=isNaN(i)?i():i)>1&&(h("ImageHasSize.retina",function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})}),h("ElementParse.retina",function(e,n){n.src=t.replaceSrc(n,i)}))}}}}),f()}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(i),i}:t(jQuery)}(function(t){"use strict";var e="selectric",i="Input Items Open Disabled TempShow HideSelect Wrapper Hover Responsive Above Scroll Group GroupLabel",n=".sl",o={onChange:function(e){t(e).change()},maxHeight:300,keySearchTimeout:500,arrowButtonMarkup:'',disableOnMobile:!0,openOnHover:!1,hoverIntentTimeout:500,expandToItemText:!1,responsive:!1,preventWindowScroll:!0,inheritOriginalWidth:!1,allowWrap:!0,customClass:{prefix:e,camelCase:!1},optionsItemBuilder:"{text}",labelBuilder:"{text}"},s={add:function(t,e,i){this[t]||(this[t]={}),this[t][e]=i},remove:function(t,e){delete this[t][e]}},r={replaceDiacritics:function(t){for(var e="40-46 50-53 54-57 62-70 71-74 61 47 77".replace(/\d+/g,"\\3$&").split(" "),i=e.length;i--;)t=t.toLowerCase().replace(RegExp("["+e[i]+"]","g"),"aeiouncy".charAt(i));return t},format:function(t){var e=arguments;return(""+t).replace(/{(\d+|(\w+))}/g,function(t,i,n){return n&&e[1]?e[1][n]:e[i]})},nextEnabledItem:function(t,e){for(;t[e=(e+1)%t.length].disabled;);return e},previousEnabledItem:function(t,e){for(;t[e=(e>0?e:t.length)-1].disabled;);return e},toDash:function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},triggerCallback:function(i,n){var o=n.element,a=n.options["on"+i];t.isFunction(a)&&a.call(o,o,n),s[i]&&t.each(s[i],function(){this.call(o,o,n)}),t(o).trigger(e+"-"+r.toDash(i),n)}},a=t(document),l=t(window);t.fn[e]=function(s){return this.each(function(){var c=t.data(this,e);c&&!c.disableOnMobile?""+s===s&&c[s]?c[s]():c.init(s):t.data(this,e,new function(s,c){function h(e){if(L.options=t.extend(!0,{},o,L.options,e),L.classes={},L.element=s,r.triggerCallback("BeforeInit",L),L.options.disableOnMobile&&Q)L.disableOnMobile=!0;else{w(!0);var n=L.options.customClass,a=i.split(" "),l=D.width();t.each(a,function(t,e){var i=n.prefix+e;L.classes[e.toLowerCase()]=n.camelCase?i:r.toDash(i)}),_=t("",{class:L.classes.input,readonly:Q}),b=t("
",{class:L.classes.items,tabindex:-1}),C=t("
",{class:L.classes.scroll}),x=t("
",{class:n.prefix,html:L.options.arrowButtonMarkup}),A=t('

'),I=D.wrap("

").parent().append(x.prepend(A),b,_),j={open:f,close:g,destroy:w,refresh:d,init:h},D.on(j).wrap('
'),t.extend(L,j),O=L.options.labelBuilder,L.options.inheritOriginalWidth&&l>0&&I.width(l),u()}}function u(){L.items=[];var e=D.children(),i="
    ",o=D.find("option"),s=o.index(o.filter(":selected")),a=0;z=S=~s?s:0,(M=e.length)&&(e.each(function(){function e(){var e=t(this),n=e.html(),o=e.prop("disabled"),s=L.options.optionsItemBuilder;L.items[a]={element:e,value:e.val(),text:n,slug:r.replaceDiacritics(n),disabled:o},i+=r.format('
  • {3}
  • ',a,t.trim([a==z?"selected":"",a==M-1?"last":"",o?"disabled":""].join(" ")),t.isFunction(s)?s(L.items[a],e,a):r.format(s,L.items[a])),a++}var n=t(this);if(n.is("optgroup")){var o=n.prop("disabled"),s=n.children();i+=r.format('
    • {3}
    • ',t.trim([L.classes.group,o?"disabled":"",n.prop("class")].join(" ")),L.classes.grouplabel,n.prop("label")),o&&s.prop("disabled",!0),s.each(e),i+="
    "}else e.call(n)}),b.append(C.html(i+"
")),A.html(t.isFunction(O)?O(L.items[z]):r.format(O,L.items[z]))),x.add(D).add(I).add(_).off(n),I.prop("class",[L.classes.wrapper,D.prop("class").replace(/\S+/g,L.options.customClass.prefix+"-$&"),L.options.responsive?L.classes.responsive:""].join(" ")),D.prop("disabled")?(I.addClass(L.classes.disabled),_.prop("disabled",!0)):(R=!0,I.removeClass(L.classes.disabled).on("mouseenter"+n+" mouseleave"+n,function(e){t(this).toggleClass(L.classes.hover),L.options.openOnHover&&(clearTimeout(L.closeTimer),"mouseleave"==e.type?L.closeTimer=setTimeout(g,L.options.hoverIntentTimeout):f())}),x.on("click"+n,function(t){P?g():f(t)}),_.prop({tabindex:W,disabled:!1}).on("keypress"+n,p).on("keydown"+n,function(t){p(t),clearTimeout(L.resetStr),L.resetStr=setTimeout(function(){_.val("")},L.options.keySearchTimeout);var e=t.keyCode||t.which;if(e>36&&e<41){if(!L.options.allowWrap&&(e<39&&0==S||e>38&&S+1==L.items.length))return;v(r[(e<39?"previous":"next")+"EnabledItem"](L.items,S))}}).on("focusin"+n,function(t){P||f(t)}).on("oninput"in _[0]?"input":"keyup",function(){_.val().length&&t.each(L.items,function(t,e){if(RegExp("^"+_.val(),"i").test(e.slug)&&!e.disabled)return v(t),!1})}),D.prop("tabindex",!1),E=t("li",b.removeAttr("style")).on({mousedown:function(t){t.preventDefault(),t.stopPropagation()},click:function(){return v(t(this).data("index"),!0),!1}}).filter("[data-index]")),r.triggerCallback("Init",L)}function d(){r.triggerCallback("Refresh",L),u()}function p(t){var e=t.keyCode||t.which;13==e&&t.preventDefault(),/^(9|13|27)$/.test(e)&&(t.stopPropagation(),v(S,!0))}function f(i){r.triggerCallback("BeforeOpen",L),i&&(i.preventDefault(),i.stopPropagation()),R&&(function(){var t=b.closest(":visible").children(":hidden").addClass(L.classes.tempshow),e=L.options.maxHeight,i=b.outerWidth(),n=x.outerWidth()-(i-b.width());!L.options.expandToItemText||n>i?B=n:(b.css("overflow","scroll"),I.width(9e4),B=b.width(),b.css("overflow",""),I.width("")),b.width(B).height()>e&&b.height(e),t.removeClass(L.classes.tempshow)}(),t("."+L.classes.hideselect,"."+L.classes.open).children()[e]("close"),P=!0,k=b.outerHeight(),T=b.height(),I.addClass(L.classes.open),_.val(""),i&&"focusin"!==i.type&&_.focus(),a.on("click"+n,g).on("scroll"+n,m),m(),L.options.preventWindowScroll&&a.on("mousewheel"+n+" DOMMouseScroll"+n,"."+L.classes.scroll,function(e){var i=e.originalEvent,n=t(this).scrollTop(),o=0;"detail"in i&&(o=-1*i.detail),"wheelDelta"in i&&(o=i.wheelDelta),"wheelDeltaY"in i&&(o=i.wheelDeltaY),"deltaY"in i&&(o=-1*i.deltaY),(n==this.scrollHeight-T&&o<0||0==n&&o>0)&&e.preventDefault()}),y(S),r.triggerCallback("Open",L))}function m(){var t=l.scrollTop(),e=l.height(),i=I.offset().top,n=!(i+I.outerHeight()+k<=t+e)&&i-k>t;I.toggleClass(L.classes.above,n)}function g(){if(r.triggerCallback("BeforeClose",L),z!=S){r.triggerCallback("BeforeChange",L);var e=L.items[S].text;D.prop("selectedIndex",z=S).data("value",e),A.html(t.isFunction(O)?O(L.items[S]):r.format(O,L.items[S])),r.triggerCallback("Change",L)}a.off(n),I.removeClass(L.classes.open),P=!1,r.triggerCallback("Close",L)}function v(t,e){void 0!=t&&(L.items[t].disabled||(E.removeClass("selected").eq(S=t).addClass("selected"),y(t),e&&g()))}function y(t){var e=E.eq(t).outerHeight(),i=E[t].offsetTop,n=C.scrollTop(),o=i+2*e;C.scrollTop(o>n+k?o-k:i-el.failure_limit)return!1}else i.trigger("appear"),e=0})}var r,a=this,l={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:e,data_attribute:"original",data_srcset:"srcset",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return n&&(void 0!==n.failurelimit&&(n.failure_limit=n.failurelimit,delete n.failurelimit),void 0!==n.effectspeed&&(n.effect_speed=n.effectspeed,delete n.effectspeed),t.extend(l,n)),r=void 0===l.container||l.container===e?o:t(l.container),0===l.event.indexOf("scroll")&&r.bind(l.event,function(){return s()}),this.each(function(){var e=this,i=t(e);e.loaded=!1,void 0!==i.attr("src")&&!1!==i.attr("src")||i.is("img")&&i.attr("src",l.placeholder),i.one("appear",function(){if(!this.loaded){if(l.appear){var n=a.length;l.appear.call(e,n,l)}t("").bind("load",function(){var n=i.attr("data-"+l.data_attribute),o=i.attr("data-"+l.data_srcset);i.hide(),i.is("img")?(i.attr("src",n),o&&i.attr("srcset",o)):i.css("background-image","url('"+n+"')"),i[l.effect](l.effect_speed),e.loaded=!0;var s=t.grep(a,function(t){return!t.loaded});if(a=t(s),l.load){var r=a.length;l.load.call(e,r,l)}}).attr("src",i.attr("data-"+l.data_attribute))}}),0!==l.event.indexOf("scroll")&&i.bind(l.event,function(){e.loaded||i.trigger("appear")}),i.is(":hidden")&&!e.loaded&&i.trigger("appear")}),o.bind("resize",function(){s()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&o.bind("pageshow",function(e){e.originalEvent&&e.originalEvent.persisted&&a.each(function(){t(this).trigger("appear")})}),t(i).ready(function(){s()}),this},t.belowthefold=function(i,n){return(void 0===n.container||n.container===e?(e.innerHeight?e.innerHeight:o.height())+o.scrollTop():t(n.container).offset().top+t(n.container).height())<=t(i).offset().top-n.threshold},t.rightoffold=function(i,n){return(void 0===n.container||n.container===e?o.width()+o.scrollLeft():t(n.container).offset().left+t(n.container).width())<=t(i).offset().left-n.threshold},t.abovethetop=function(i,n){return(void 0===n.container||n.container===e?o.scrollTop():t(n.container).offset().top)>=t(i).offset().top+n.threshold+t(i).height()},t.leftofbegin=function(i,n){return(void 0===n.container||n.container===e?o.scrollLeft():t(n.container).offset().left)>=t(i).offset().left+n.threshold+t(i).width()},t.inviewport=function(e,i){return!(t.rightoffold(e,i)||t.leftofbegin(e,i)||t.belowthefold(e,i)||t.abovethetop(e,i))},t.extend(t.expr[":"],{"below-the-fold":function(e){return t.belowthefold(e,{threshold:0})},"above-the-top":function(e){return!t.belowthefold(e,{threshold:0})},"right-of-screen":function(e){return t.rightoffold(e,{threshold:0})},"left-of-screen":function(e){return!t.rightoffold(e,{threshold:0})},"in-viewport":function(e){return t.inviewport(e,{threshold:0})},"above-the-fold":function(e){return!t.belowthefold(e,{threshold:0})},"right-of-fold":function(e){return t.rightoffold(e,{threshold:0})},"left-of-fold":function(e){return!t.rightoffold(e,{threshold:0})}})}(jQuery,window,document),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):t.jQuery)}(this,function(t){"use strict";function e(t){var e,i,n,o,s,r,a,l={};for(a=0,r=(s=t.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,",").split(",")).length;a").addClass(c.className).css({position:"absolute","z-index":-1,top:0,left:0,bottom:0,right:0,overflow:"hidden","-webkit-background-size":"cover","-moz-background-size":"cover","-o-background-size":"cover","background-size":"cover","background-color":c.bgColor,"background-repeat":"no-repeat","background-position":h.x+" "+h.y}),"object"==typeof s&&(s.poster?r=s.poster:s.mp4?r=s.mp4:s.webm?r=s.webm:s.ogv&&(r=s.ogv)),"detect"===u?function(e,i){var n=function(){i(this.src)};t('').on("load",n),t('').on("load",n),t('').on("load",n),t('').on("load",n)}(r,function(t){i.css("background-image","url("+t+")")}):"none"!==u&&i.css("background-image","url("+r+"."+u+")"),"static"===l.css("position")&&l.css("position","relative"),l.prepend(i),"object"==typeof s?(s.mp4&&(a+=''),s.webm&&(a+=''),s.ogv&&(a+=''),e=n.$video=t("")):e=n.$video=t('');try{e.prop({autoplay:c.autoplay,loop:c.loop,volume:c.volume,muted:c.muted,defaultMuted:c.muted,playbackRate:c.playbackRate,defaultPlaybackRate:c.playbackRate})}catch(t){throw new Error(o)}e.css({margin:"auto",position:"absolute","z-index":-1,top:h.y,left:h.x,"-webkit-transform":"translate(-"+h.x+", -"+h.y+")","-ms-transform":"translate(-"+h.x+", -"+h.y+")","-moz-transform":"translate(-"+h.x+", -"+h.y+")",transform:"translate(-"+h.x+", -"+h.y+")",visibility:"hidden",opacity:0}).one("canplaythrough.vide",function(){n.resize()}).one("playing.vide",function(){e.css({visibility:"visible",opacity:1}),i.css("background-image","none")}),l.on("resize.vide",function(){c.resizing&&n.resize()}),i.append(e)},i.prototype.getVideoObject=function(){return this.$video[0]},i.prototype.resize=function(){if(this.$video){var t=this.$wrapper,e=this.$video,i=e[0],n=i.videoHeight,o=i.videoWidth,s=t.height(),r=t.width();r/o>s/n?e.css({width:r+2,height:"auto"}):e.css({width:"auto",height:s+2})}},i.prototype.destroy=function(){delete t.vide.lookup[this.index],this.$video&&this.$video.off("vide"),this.$element.off("vide").removeData("vide"),this.$wrapper.remove()},t.vide={lookup:[]},t.fn.vide=function(e,n){var o;return this.each(function(){(o=t.data(this,"vide"))&&o.destroy(),(o=new i(this,e,n)).index=t.vide.lookup.push(o)-1,t.data(this,"vide",o)}),this},t(document).ready(function(){var e=t(window);e.on("resize.vide",function(){for(var e,i=t.vide.lookup.length,n=0;n").css(o.extend({},t)),l.data.outer=o("
").css(o.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px",direction:"ltr"},t)).append(l.data.inner).appendTo("body"),l.data.outer.scrollLeft(1e3).scrollTop(1e3);var i={height:Math.ceil(l.data.outer.offset().top-l.data.inner.offset().top||0),width:Math.ceil(l.data.outer.offset().left-l.data.inner.offset().left||0)};return l.data.inner.remove(),l.data.outer.remove(),i}function n(t,i){return o(e).on({"blur.scrollbar":function(){o(e).add("body").off(".scrollbar"),t&&t()},"dragstart.scrollbar":function(o){return o.preventDefault(),!1},"mouseup.scrollbar":function(){o(e).add("body").off(".scrollbar"),t&&t()}}),o("body").on({"selectstart.scrollbar":function(o){return o.preventDefault(),!1}}),i&&i.preventDefault(),!1}function s(o){var e=o.originalEvent;return(!e.axis||e.axis!==e.HORIZONTAL_AXIS)&&!e.wheelDeltaX}var r="px",a=!1,l={data:{index:0,name:"scrollbar"},macosx:/mac/i.test(navigator.platform),mobile:/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.userAgent),overlay:null,scroll:null,scrolls:[],webkit:/webkit/i.test(navigator.userAgent)&&!/edge\/\d+/i.test(navigator.userAgent),log:function(){}},h={autoScrollSize:!0,autoUpdate:!0,debug:!1,disableBodyScroll:!1,duration:200,ignoreMobile:!0,ignoreOverlay:!0,scrollStep:30,showArrows:!1,stepScrolling:!0,type:"simple",scrollx:null,scrolly:null,onDestroy:null,onInit:null,onScroll:null,onUpdate:null},d=function(e,n){a=o("body").hasClass("rtl"),l.scroll||(l.log("Init jQuery Scrollbar v0.2.5"),l.overlay=function(){var o=i(!0);return!(o.height||o.width)}(),l.scroll=i(),p(),o(t).resize(function(){var o=!1;if(l.scroll&&(l.scroll.height||l.scroll.width)){var e=i();e.height==l.scroll.height&&e.width==l.scroll.width||(l.scroll=e,o=!0)}p(o)})),this.container=e,this.options=o.extend({},h,t.jQueryScrollbarOptions||{}),this.scrollTo=null,this.scrollx={},this.scrolly={},this.init(n)};d.prototype={destroy:function(){if(this.wrapper){var t=this.container.scrollLeft(),i=this.container.scrollTop();this.container.insertBefore(this.wrapper).css({height:"",margin:""}).removeClass("scroll-content").removeClass("scroll-scrollx_visible").removeClass("scroll-scrolly_visible").off(".scrollbar").scrollLeft(t).scrollTop(i),this.scrollx.scrollbar.removeClass("scroll-scrollx_visible").find("div").andSelf().off(".scrollbar"),this.scrolly.scrollbar.removeClass("scroll-scrolly_visible").find("div").andSelf().off(".scrollbar"),this.wrapper.remove(),o(e).add("body").off(".scrollbar"),o.isFunction(this.options.onDestroy)&&this.options.onDestroy.apply(this,[this.container])}},getScrollbar:function(e){var t=this.options["scroll"+e],i={advanced:'
',simple:'
'},n=i[this.options.type]?this.options.type:"advanced";return t=t?"string"==typeof t?o(t).appendTo(this.wrapper):o(t):o("
").addClass("scroll-element").html(i[n]).appendTo(this.wrapper),this.options.showArrows&&t.addClass("scroll-element_arrows_visible"),t.addClass("scroll-"+e)},init:function(t){var i=this,h=this.container,d=this.containerWrapper||h,c=o.extend(this.options,t||{}),p={x:this.scrollx,y:this.scrolly},g=this.wrapper,m={scrollLeft:h.scrollLeft(),scrollTop:h.scrollTop()};if(l.mobile&&c.ignoreMobile||l.overlay&&c.ignoreOverlay||l.macosx&&!l.webkit)return!1;if(g)a?d.css({height:"","margin-bottom":-1*l.scroll.height+r,"margin-left":-1*l.scroll.width+r}):d.css({height:"","margin-bottom":-1*l.scroll.height+r,"margin-right":-1*l.scroll.width+r});else{if(this.wrapper=g=o("
").addClass("scroll-wrapper").addClass(h.attr("class")).css("position","absolute"==h.css("position")?"absolute":"relative").insertBefore(h).append(h),h.is("textarea")&&(this.containerWrapper=d=o("
").insertBefore(h).append(h),g.addClass("scroll-textarea")),a?d.addClass("scroll-content").css({height:"","margin-bottom":-1*l.scroll.height+r,"margin-left":-1*l.scroll.width+r}):d.addClass("scroll-content").css({height:"","margin-bottom":-1*l.scroll.height+r,"margin-right":-1*l.scroll.width+r}),h.on("scroll.scrollbar",function(e){o.isFunction(c.onScroll)&&c.onScroll.call(i,{maxScroll:p.y.maxScrollOffset,scroll:h.scrollTop(),size:p.y.size,visible:p.y.visible},{maxScroll:p.x.maxScrollOffset,scroll:h.scrollLeft(),size:p.x.size,visible:p.x.visible}),p.x.isVisible&&p.x.scroller.css(a?"right":"left",h.scrollLeft()*p.x.kx+r),p.y.isVisible&&p.y.scroller.css("top",h.scrollTop()*p.y.kx+r)}),g.on("scroll",function(){g.scrollTop(0).scrollLeft(0)}),c.disableBodyScroll){var f=function(o){return s(o)?p.y.isVisible&&p.y.mousewheel(o):p.x.isVisible&&p.x.mousewheel(o),o.preventDefault(),!1};g.on({"MozMousePixelScroll.scrollbar":f,"mousewheel.scrollbar":f}),l.mobile&&g.on("touchstart.scrollbar",function(t){var i=t.originalEvent.touches&&t.originalEvent.touches[0]||t,n={pageX:i.pageX,pageY:i.pageY};if(a)s={right:h.scrollLeft(),top:h.scrollTop()};else var s={left:h.scrollLeft(),top:h.scrollTop()};o(e).on({"touchmove.scrollbar":function(o){var e=o.originalEvent.targetTouches&&o.originalEvent.targetTouches[0]||o;h.scrollLeft(a?s.right:s.left+n.pageX-e.pageX),h.scrollTop(s.top+n.pageY-e.pageY),o.preventDefault()},"touchend.scrollbar":function(){o(e).off(".scrollbar")}})})}o.isFunction(c.onInit)&&c.onInit.apply(this,[h])}o.each(p,function(t,r){var l=null,d=1,m="x"==t?"scrollLeft":"scrollTop",f=c.scrollStep,u=function(){var o=h[m]();h[m](o+f),1==d&&o+f>=w&&(o=h[m]()),-1==d&&o+f<=w&&(o=h[m]()),h[m]()==o&&l&&l()},w=0;r.scrollbar||(r.scrollbar=i.getScrollbar(t),r.scroller=r.scrollbar.find(".scroll-bar"),r.mousewheel=function(o){if(!r.isVisible||"x"==t&&s(o))return!0;if("y"==t&&!s(o))return p.x.mousewheel(o),!0;var e=-1*o.originalEvent.wheelDelta||o.originalEvent.detail,n=r.size-r.visible-r.offset;return e||("x"===t&&o.originalEvent.deltaX?e=40*o.originalEvent.deltaX:"y"===t&&o.originalEvent.deltaY&&(e=40*o.originalEvent.deltaY)),w<=0&&e<0||w>=n&&e>0||((w+=e)<0&&(w=0),w>n&&(w=n),i.scrollTo=i.scrollTo||{},i.scrollTo[m]=w,setTimeout(function(){i.scrollTo&&(h.stop().animate(i.scrollTo,240,"linear",function(){w=h[m]()}),i.scrollTo=null)},1),o.preventDefault(),!1)},r.scrollbar.on({"MozMousePixelScroll.scrollbar":r.mousewheel,"mousewheel.scrollbar":r.mousewheel,"mouseenter.scrollbar":function(){w=h[m]()}}),r.triggerEvent=function(o){return!!r.mousewheel(o)||(o.preventDefault,!1)},g.on({"MozMousePixelScroll.scrollbar":r.triggerEvent,"mousewheel.scrollbar":r.triggerEvent,"mouseenter.scrollbar":function(){w=h[m]()}}),r.scrollbar.find(".scroll-arrow, .scroll-element_track").on("mousedown.scrollbar",function(e){if(1!=e.which)return!0;d=1;var s={eventOffset:e["x"==t?"pageX":"pageY"],maxScrollValue:r.size-r.visible-r.offset,scrollbarOffset:r.scroller.offset()["x"==t?a?"right":"left":"top"],scrollbarSize:r.scroller["x"==t?"outerWidth":"outerHeight"]()},p=0,g=0;return o(this).hasClass("scroll-arrow")?(d=o(this).hasClass("scroll-arrow_more")?1:-1,f=c.scrollStep*d,w=d>0?s.maxScrollValue:0):(d=s.eventOffset>s.scrollbarOffset+s.scrollbarSize?1:s.eventOffset1,t.isVisible?(t.scrollbar.addClass(i),n.scrollbar.addClass(i),d.addClass(i)):(t.scrollbar.removeClass(i),n.scrollbar.removeClass(i),d.removeClass(i)),"y"==e&&(t.isVisible||t.size=0;)l.scrolls.splice(o.inArray(s,l.scrolls),1)}else"string"!=typeof e&&(s=new d(n,e),n.data("scrollbar",s),l.scrolls.push(s));return!0}),i},o.fn.scrollbar.options=h,t.angular&&t.angular.module("jQueryScrollbar",[]).directive("jqueryScrollbar",function(){return{link:function(o,e){e.scrollbar(o.options).on("$destroy",function(){e.scrollbar("destroy")})},restring:"AC",scope:{options:"=jqueryScrollbar"}}});var c=0,p=function(o){var e,t,i,n,s,r,a;for(e=0;e'),e.$elem.css("position","absolute")),e.zoomLock=1,e.scrollingLock=!1,e.changeBgSize=!1,e.currentZoomLevel=e.options.zoomLevel,e.nzOffset=e.$elem.offset(),e.ctOffset=e.$container.offset(),e.widthRatio=e.largeWidth/e.currentZoomLevel/e.nzWidth,e.heightRatio=e.largeHeight/e.currentZoomLevel/e.nzHeight,"window"==e.options.zoomType&&(e.zoomWindowStyle="overflow: hidden;background-position: 0px 0px;text-align:center;background-color: "+String(e.options.zoomWindowBgColour)+";width: "+String(e.options.zoomWindowWidth)+"px;height: "+String(e.options.zoomWindowHeight)+"px;float: left;background-size: "+e.largeWidth/e.currentZoomLevel+"px "+e.largeHeight/e.currentZoomLevel+"px;display: none;z-index:100;border: "+String(e.options.borderSize)+"px solid "+e.options.borderColour+";background-repeat: no-repeat;position: absolute;"),"inner"==e.options.zoomType){e.$elem.css("border-left-width");e.zoomWindowStyle="overflow: hidden;margin-left: -"+String(e.options.borderSize)+"px;margin-top: -"+String(e.options.borderSize)+"px;background-position: 0px 0px;width: "+String(e.nzWidth)+"px;height: "+String(e.nzHeight)+"px;float: left;display: none;cursor:"+e.options.cursor+";border: "+String(e.options.borderSize)+"px solid "+e.options.borderColour+";background-repeat: no-repeat;position: absolute;"}"window"==e.options.zoomType&&(e.nzHeight
'),e.$container.append(e.zoomContainer),e.options.containLensZoom&&"lens"==e.options.zoomType&&e.zoomContainer.css("overflow","hidden"),"inner"!=e.options.zoomType&&(e.zoomLens=o("
 
").appendTo(e.zoomContainer).click(function(){e.$elem.trigger("click")}),e.options.tint&&(e.tintContainer=o("
").addClass("tintContainer"),e.zoomTint=o("
"),e.zoomLens.wrap(e.tintContainer),e.zoomTintcss=e.zoomLens.after(e.zoomTint),e.zoomTintImage=o('').appendTo(e.zoomLens).click(function(){e.$elem.trigger("click")}))),isNaN(e.options.zoomWindowPosition)?e.zoomWindow=o("
 
").appendTo(e.$container).click(function(){e.$elem.trigger("click")}):e.zoomWindow=o("
 
").appendTo(e.zoomContainer).click(function(){e.$elem.trigger("click")}),e.zoomWindowContainer=o("
").addClass("zoomWindowContainer").css("width",e.options.zoomWindowWidth),e.zoomWindow.wrap(e.zoomWindowContainer),"lens"==e.options.zoomType&&e.zoomLens.css({backgroundImage:"url('"+e.imageSrc+"')"}),"window"==e.options.zoomType&&e.zoomWindow.css({backgroundImage:"url('"+e.imageSrc+"')"}),"inner"==e.options.zoomType&&e.zoomWindow.css({backgroundImage:"url('"+e.imageSrc+"')"}),e.$elem.bind("touchmove",function(o){o.preventDefault();var t=o.originalEvent.touches[0]||o.originalEvent.changedTouches[0];e.setPosition(t)}),e.zoomContainer.bind("touchmove",function(o){"inner"==e.options.zoomType&&e.showHideWindow("show"),o.preventDefault();var t=o.originalEvent.touches[0]||o.originalEvent.changedTouches[0];e.setPosition(t)}),e.zoomContainer.bind("touchend",function(o){e.showHideWindow("hide"),e.options.showLens&&e.showHideLens("hide"),e.options.tint&&"inner"!=e.options.zoomType&&e.showHideTint("hide")}),e.$elem.bind("touchend",function(o){e.showHideWindow("hide"),e.options.showLens&&e.showHideLens("hide"),e.options.tint&&"inner"!=e.options.zoomType&&e.showHideTint("hide")}),e.options.showLens&&(e.zoomLens.bind("touchmove",function(o){o.preventDefault();var t=o.originalEvent.touches[0]||o.originalEvent.changedTouches[0];e.setPosition(t)}),e.zoomLens.bind("touchend",function(o){e.showHideWindow("hide"),e.options.showLens&&e.showHideLens("hide"),e.options.tint&&"inner"!=e.options.zoomType&&e.showHideTint("hide")})),e.$elem.bind("mousemove",function(o){0==e.overWindow&&e.setElements("show"),e.lastX===o.clientX&&e.lastY===o.clientY||(e.setPosition(o),e.currentLoc=o),e.lastX=o.clientX,e.lastY=o.clientY}),e.zoomContainer.bind("mousemove",function(o){0==e.overWindow&&e.setElements("show"),e.lastX===o.clientX&&e.lastY===o.clientY||(e.setPosition(o),e.currentLoc=o),e.lastX=o.clientX,e.lastY=o.clientY}),"inner"!=e.options.zoomType&&e.zoomLens.bind("mousemove",function(o){e.lastX===o.clientX&&e.lastY===o.clientY||(e.setPosition(o),e.currentLoc=o),e.lastX=o.clientX,e.lastY=o.clientY}),e.options.tint&&"inner"!=e.options.zoomType&&e.zoomTint.bind("mousemove",function(o){e.lastX===o.clientX&&e.lastY===o.clientY||(e.setPosition(o),e.currentLoc=o),e.lastX=o.clientX,e.lastY=o.clientY}),"inner"==e.options.zoomType&&e.zoomWindow.bind("mousemove",function(o){e.lastX===o.clientX&&e.lastY===o.clientY||(e.setPosition(o),e.currentLoc=o),e.lastX=o.clientX,e.lastY=o.clientY}),e.zoomContainer.add(e.$elem).mouseenter(function(){0==e.overWindow&&e.setElements("show")}).mouseleave(function(){e.scrollLock||e.setElements("hide")}),"inner"!=e.options.zoomType&&e.zoomWindow.mouseenter(function(){e.overWindow=!0,e.setElements("hide")}).mouseleave(function(){e.overWindow=!1}),e.options.zoomLevel,e.options.minZoomLevel?e.minZoomLevel=e.options.minZoomLevel:e.minZoomLevel=2*e.options.scrollZoomIncrement,e.options.scrollZoom&&e.zoomContainer.add(e.$elem).bind("mousewheel DOMMouseScroll MozMousePixelScroll",function(t){e.scrollLock=!0,clearTimeout(o.data(this,"timer")),o.data(this,"timer",setTimeout(function(){e.scrollLock=!1},250));var i=t.originalEvent.wheelDelta||-1*t.originalEvent.detail;return t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),i/120>0?e.currentZoomLevel>=e.minZoomLevel&&e.changeZoomLevel(e.currentZoomLevel-e.options.scrollZoomIncrement):e.options.maxZoomLevel?e.currentZoomLevel<=e.options.maxZoomLevel&&e.changeZoomLevel(parseFloat(e.currentZoomLevel)+e.options.scrollZoomIncrement):e.changeZoomLevel(parseFloat(e.currentZoomLevel)+e.options.scrollZoomIncrement),!1}))},setElements:function(o){if(!this.options.zoomEnabled)return!1;"show"==o&&this.isWindowSet&&("inner"==this.options.zoomType&&this.showHideWindow("show"),"window"==this.options.zoomType&&this.showHideWindow("show"),this.options.showLens&&this.showHideLens("show"),this.options.tint&&"inner"!=this.options.zoomType&&this.showHideTint("show")),"hide"==o&&("window"==this.options.zoomType&&this.showHideWindow("hide"),this.options.tint||this.showHideWindow("hide"),this.options.showLens&&this.showHideLens("hide"),this.options.tint&&this.showHideTint("hide"))},setPosition:function(o){if(!this.options.zoomEnabled)return!1;this.nzHeight=this.$elem.height(),this.nzWidth=this.$elem.width(),this.nzOffset=this.$elem.offset(),this.ctOffset=this.$container.offset(),this.options.tint&&"inner"!=this.options.zoomType&&(this.zoomTint.css({top:0}),this.zoomTint.css({left:0})),this.options.responsive&&!this.options.scrollZoom&&this.options.showLens&&(this.nzHeightthis.nzHeight-this.zoomLens.height()/2-2*this.options.lensBorderSize,this.Eloppos=this.mouseLeft<0+this.zoomLens.width()/2,this.Eroppos=this.mouseLeft>this.nzWidth-this.zoomLens.width()/2-2*this.options.lensBorderSize),"inner"==this.options.zoomType&&(this.Etoppos=this.mouseTopthis.nzHeight-this.nzHeight/2/this.heightRatio,this.Eloppos=this.mouseLeft<0+this.nzWidth/2/this.widthRatio,this.Eroppos=this.mouseLeft>this.nzWidth-this.nzWidth/2/this.widthRatio-2*this.options.lensBorderSize),this.mouseLeft<=0||this.mouseTop<0||this.mouseLeft>this.nzWidth||this.mouseTop>this.nzHeight?this.setElements("hide"):(this.options.showLens&&(this.lensLeftPos=String(this.mouseLeft-this.zoomLens.width()/2),this.lensTopPos=String(this.mouseTop-this.zoomLens.height()/2)),this.Etoppos&&(this.lensTopPos=0),this.Eloppos&&(this.windowLeftPos=0,this.lensLeftPos=0,this.tintpos=0),"window"==this.options.zoomType&&(this.Eboppos&&(this.lensTopPos=Math.max(this.nzHeight-this.zoomLens.height()-2*this.options.lensBorderSize,0)),this.Eroppos&&(this.lensLeftPos=this.nzWidth-this.zoomLens.width()-2*this.options.lensBorderSize)),"inner"==this.options.zoomType&&(this.Eboppos&&(this.lensTopPos=Math.max(this.nzHeight-2*this.options.lensBorderSize,0)),this.Eroppos&&(this.lensLeftPos=this.nzWidth-this.nzWidth-2*this.options.lensBorderSize)),"lens"==this.options.zoomType&&(this.windowLeftPos=String(-1*((o.pageX-this.nzOffset.left)*this.widthRatio-this.zoomLens.width()/2)),this.windowTopPos=String(-1*((o.pageY-this.nzOffset.top)*this.heightRatio-this.zoomLens.height()/2)),this.zoomLens.css({backgroundPosition:this.windowLeftPos+"px "+this.windowTopPos+"px"}),this.changeBgSize&&(this.nzHeight>this.nzWidth?("lens"==this.options.zoomType&&this.zoomLens.css({"background-size":this.largeWidth/this.newvalueheight+"px "+this.largeHeight/this.newvalueheight+"px"}),this.zoomWindow.css({"background-size":this.largeWidth/this.newvalueheight+"px "+this.largeHeight/this.newvalueheight+"px"})):("lens"==this.options.zoomType&&this.zoomLens.css({"background-size":this.largeWidth/this.newvaluewidth+"px "+this.largeHeight/this.newvaluewidth+"px"}),this.zoomWindow.css({"background-size":this.largeWidth/this.newvaluewidth+"px "+this.largeHeight/this.newvaluewidth+"px"})),this.changeBgSize=!1),this.setWindowPostition(o)),this.options.tint&&"inner"!=this.options.zoomType&&this.setTintPosition(o),"window"==this.options.zoomType&&this.setWindowPostition(o),"inner"==this.options.zoomType&&this.setWindowPostition(o),this.options.showLens&&(this.fullwidth&&"lens"!=this.options.zoomType&&(this.lensLeftPos=0),this.zoomLens.css({left:this.lensLeftPos+"px",top:this.lensTopPos+"px"})))},showHideWindow:function(o){"show"==o&&(this.isWindowActive||(this.options.zoomWindowFadeIn?this.zoomWindow.stop(!0,!0,!1).fadeIn(this.options.zoomWindowFadeIn):this.zoomWindow.show(),this.isWindowActive=!0)),"hide"==o&&this.isWindowActive&&(this.options.zoomWindowFadeOut?this.zoomWindow.stop(!0,!0).fadeOut(this.options.zoomWindowFadeOut):this.zoomWindow.hide(),this.isWindowActive=!1)},showHideLens:function(o){"show"==o&&(this.isLensActive||(this.options.lensFadeIn?this.zoomLens.stop(!0,!0,!1).fadeIn(this.options.lensFadeIn):this.zoomLens.show(),this.isLensActive=!0)),"hide"==o&&this.isLensActive&&(this.options.lensFadeOut?this.zoomLens.stop(!0,!0).fadeOut(this.options.lensFadeOut):this.zoomLens.hide(),this.isLensActive=!1)},showHideTint:function(o){"show"==o&&(this.isTintActive||(this.options.zoomTintFadeIn?this.zoomTint.css({opacity:this.options.tintOpacity}).animate().stop(!0,!0).fadeIn("slow"):(this.zoomTint.css({opacity:this.options.tintOpacity}).animate(),this.zoomTint.show()),this.isTintActive=!0)),"hide"==o&&this.isTintActive&&(this.options.zoomTintFadeOut?this.zoomTint.stop(!0,!0).fadeOut(this.options.zoomTintFadeOut):this.zoomTint.hide(),this.isTintActive=!1)},setLensPostition:function(o){},setWindowPostition:function(e){var t=this;if(isNaN(t.options.zoomWindowPosition))t.externalContainer=o("#"+t.options.zoomWindowPosition),t.externalContainerWidth=t.externalContainer.width(),t.externalContainerHeight=t.externalContainer.height(),t.externalContainerOffset=t.externalContainer.offset(),t.windowOffsetTop=t.externalContainerOffset.top,t.windowOffsetLeft=t.externalContainerOffset.left;else switch(t.options.zoomWindowPosition){case 1:t.windowOffsetTop=t.options.zoomWindowOffety,t.windowOffsetLeft=+t.nzWidth;break;case 2:t.options.zoomWindowHeight>t.nzHeight&&(t.windowOffsetTop=-1*(t.options.zoomWindowHeight/2-t.nzHeight/2),t.windowOffsetLeft=t.nzWidth);break;case 3:t.windowOffsetTop=t.nzHeight-t.zoomWindow.height()-2*t.options.borderSize,t.windowOffsetLeft=t.nzWidth;break;case 4:t.windowOffsetTop=t.nzHeight,t.windowOffsetLeft=t.nzWidth;break;case 5:t.windowOffsetTop=t.nzHeight,t.windowOffsetLeft=t.nzWidth-t.zoomWindow.width()-2*t.options.borderSize;break;case 6:t.options.zoomWindowHeight>t.nzHeight&&(t.windowOffsetTop=t.nzHeight,t.windowOffsetLeft=-1*(t.options.zoomWindowWidth/2-t.nzWidth/2+2*t.options.borderSize));break;case 7:t.windowOffsetTop=t.nzHeight,t.windowOffsetLeft=0;break;case 8:t.windowOffsetTop=t.nzHeight,t.windowOffsetLeft=-1*(t.zoomWindow.width()+2*t.options.borderSize);break;case 9:t.windowOffsetTop=t.nzHeight-t.zoomWindow.height()-2*t.options.borderSize,t.windowOffsetLeft=-1*(t.zoomWindow.width()+2*t.options.borderSize);break;case 10:t.options.zoomWindowHeight>t.nzHeight&&(t.windowOffsetTop=-1*(t.options.zoomWindowHeight/2-t.nzHeight/2),t.windowOffsetLeft=-1*(t.zoomWindow.width()+2*t.options.borderSize));break;case 11:t.windowOffsetTop=t.options.zoomWindowOffety,t.windowOffsetLeft=-1*(t.zoomWindow.width()+2*t.options.borderSize);break;case 12:t.windowOffsetTop=-1*(t.zoomWindow.height()+2*t.options.borderSize),t.windowOffsetLeft=-1*(t.zoomWindow.width()+2*t.options.borderSize);break;case 13:t.windowOffsetTop=-1*(t.zoomWindow.height()+2*t.options.borderSize),t.windowOffsetLeft=0;break;case 14:t.options.zoomWindowHeight>t.nzHeight&&(t.windowOffsetTop=-1*(t.zoomWindow.height()+2*t.options.borderSize),t.windowOffsetLeft=-1*(t.options.zoomWindowWidth/2-t.nzWidth/2+2*t.options.borderSize));break;case 15:t.windowOffsetTop=-1*(t.zoomWindow.height()+2*t.options.borderSize),t.windowOffsetLeft=t.nzWidth-t.zoomWindow.width()-2*t.options.borderSize;break;case 16:t.windowOffsetTop=-1*(t.zoomWindow.height()+2*t.options.borderSize),t.windowOffsetLeft=t.nzWidth;break;default:t.windowOffsetTop=t.options.zoomWindowOffety,t.windowOffsetLeft=t.nzWidth}t.isWindowSet=!0,t.windowOffsetTop=t.windowOffsetTop+t.options.zoomWindowOffety,t.windowOffsetLeft=t.windowOffsetLeft+t.options.zoomWindowOffetx,t.zoomWindow.css({top:t.windowOffsetTop}),t.zoomWindow.css({left:t.windowOffsetLeft}),"inner"==t.options.zoomType&&(t.zoomWindow.css({top:0}),t.zoomWindow.css({left:0})),t.windowLeftPos=String(-1*((e.pageX-t.nzOffset.left)*t.widthRatio-t.zoomWindow.width()/2)),t.windowTopPos=String(-1*((e.pageY-t.nzOffset.top)*t.heightRatio-t.zoomWindow.height()/2)),t.Etoppos&&(t.windowTopPos=0),t.Eloppos&&(t.windowLeftPos=0),t.Eboppos&&(t.windowTopPos=-1*(t.largeHeight/t.currentZoomLevel-t.zoomWindow.height())),t.Eroppos&&(t.windowLeftPos=-1*(t.largeWidth/t.currentZoomLevel-t.zoomWindow.width())),t.fullheight&&(t.windowTopPos=0),t.fullwidth&&(t.windowLeftPos=0),"window"!=t.options.zoomType&&"inner"!=t.options.zoomType||(1==t.zoomLock&&(t.widthRatio<=1&&(t.windowLeftPos=0),t.heightRatio<=1&&(t.windowTopPos=0)),t.largeHeightt.nzWidth?("lens"==t.options.zoomType&&t.zoomLens.css({"background-size":t.largeWidth/t.newvalueheight+"px "+t.largeHeight/t.newvalueheight+"px"}),t.zoomWindow.css({"background-size":t.largeWidth/t.newvalueheight+"px "+t.largeHeight/t.newvalueheight+"px"})):("lens"!=t.options.zoomType&&t.zoomLens.css({"background-size":t.largeWidth/t.newvaluewidth+"px "+t.largeHeight/t.newvalueheight+"px"}),t.zoomWindow.css({"background-size":t.largeWidth/t.newvaluewidth+"px "+t.largeHeight/t.newvaluewidth+"px"})),t.changeBgSize=!1),t.zoomWindow.css({backgroundPosition:t.windowLeftPos+"px "+t.windowTopPos+"px"}),t.scrollingLock=!1,t.loop=!1):(t.changeBgSize&&(t.nzHeight>t.nzWidth?("lens"==t.options.zoomType&&t.zoomLens.css({"background-size":t.largeWidth/t.newvalueheight+"px "+t.largeHeight/t.newvalueheight+"px"}),t.zoomWindow.css({"background-size":t.largeWidth/t.newvalueheight+"px "+t.largeHeight/t.newvalueheight+"px"})):("lens"!=t.options.zoomType&&t.zoomLens.css({"background-size":t.largeWidth/t.newvaluewidth+"px "+t.largeHeight/t.newvaluewidth+"px"}),t.zoomWindow.css({"background-size":t.largeWidth/t.newvaluewidth+"px "+t.largeHeight/t.newvaluewidth+"px"})),t.changeBgSize=!1),t.zoomWindow.css({backgroundPosition:t.xp+"px "+t.yp+"px"}))},16))):(t.changeBgSize&&(t.nzHeight>t.nzWidth?("lens"==t.options.zoomType&&t.zoomLens.css({"background-size":t.largeWidth/t.newvalueheight+"px "+t.largeHeight/t.newvalueheight+"px"}),t.zoomWindow.css({"background-size":t.largeWidth/t.newvalueheight+"px "+t.largeHeight/t.newvalueheight+"px"})):("lens"==t.options.zoomType&&t.zoomLens.css({"background-size":t.largeWidth/t.newvaluewidth+"px "+t.largeHeight/t.newvaluewidth+"px"}),t.largeHeight/t.newvaluewidth
'),i.$elem.after(i.spinner)),i.options.onImageSwap(i.$elem),n.onload=function(){i.largeWidth=n.width,i.largeHeight=n.height,i.zoomImage=t,void 0!==i.zoomWindow&&(i.zoomWindow.css({"background-size":i.largeWidth+"px "+i.largeHeight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth+"px "+i.largeHeight+"px"}),i.swapAction(e,t))},n.src=t},swapAction:function(e,t){var i=this,n=new Image;if(n.onload=function(){i.nzHeight=n.height,i.nzWidth=n.width,i.options.onImageSwapComplete(i.$elem),i.doneCallback()},n.src=e,i.currentZoomLevel=i.options.zoomLevel,i.options.maxZoomLevel=!1,"lens"==i.options.zoomType&&i.zoomLens.css({backgroundImage:"url('"+t+"')"}),"window"==i.options.zoomType&&i.zoomWindow.css({backgroundImage:"url('"+t+"')"}),"inner"==i.options.zoomType&&i.zoomWindow.css({backgroundImage:"url('"+t+"')"}),i.currentImage=t,i.options.imageCrossfade){var s=i.$elem,r=s.clone();if(i.$elem.attr("src",e),i.$elem.after(r),r.stop(!0).fadeOut(i.options.imageCrossfade,function(){o(this).remove()}),i.$elem.width("auto").removeAttr("width"),i.$elem.height("auto").removeAttr("height"),s.fadeIn(i.options.imageCrossfade),i.options.tint&&"inner"!=i.options.zoomType){var a=i.zoomTintImage,l=a.clone();i.zoomTintImage.attr("src",t),i.zoomTintImage.after(l),l.stop(!0).fadeOut(i.options.imageCrossfade,function(){o(this).remove()}),a.fadeIn(i.options.imageCrossfade),i.zoomTint.css({height:i.$elem.height()}),i.zoomTint.css({width:i.$elem.width()})}i.zoomContainer.css("height",i.$elem.height()),i.zoomContainer.css("width",i.$elem.width()),"inner"==i.options.zoomType&&(i.options.constrainType||(i.zoomWrap.parent().css("height",i.$elem.height()),i.zoomWrap.parent().css("width",i.$elem.width()),i.zoomWindow.css("height",i.$elem.height()),i.zoomWindow.css("width",i.$elem.width()))),i.options.imageCrossfade&&(i.zoomWrap.css("height",i.$elem.height()),i.zoomWrap.css("width",i.$elem.width()))}else i.$elem.attr("src",e),i.options.tint&&(i.zoomTintImage.attr("src",t),i.zoomTintImage.attr("height",i.$elem.height()),i.zoomTintImage.css({height:i.$elem.height()}),i.zoomTint.css({height:i.$elem.height()})),i.zoomContainer.css("height",i.$elem.height()),i.zoomContainer.css("width",i.$elem.width()),i.options.imageCrossfade&&(i.zoomWrap.css("height",i.$elem.height()),i.zoomWrap.css("width",i.$elem.width()));i.options.constrainType&&("height"==i.options.constrainType&&(i.zoomContainer.css("height",i.options.constrainSize),i.zoomContainer.css("width","auto"),i.options.imageCrossfade?(i.zoomWrap.css("height",i.options.constrainSize),i.zoomWrap.css("width","auto"),i.constwidth=i.zoomWrap.width()):(i.$elem.css("height",i.options.constrainSize),i.$elem.css("width","auto"),i.constwidth=i.$elem.width()),"inner"==i.options.zoomType&&(i.zoomWrap.parent().css("height",i.options.constrainSize),i.zoomWrap.parent().css("width",i.constwidth),i.zoomWindow.css("height",i.options.constrainSize),i.zoomWindow.css("width",i.constwidth)),i.options.tint&&(i.tintContainer.css("height",i.options.constrainSize),i.tintContainer.css("width",i.constwidth),i.zoomTint.css("height",i.options.constrainSize),i.zoomTint.css("width",i.constwidth),i.zoomTintImage.css("height",i.options.constrainSize),i.zoomTintImage.css("width",i.constwidth))),"width"==i.options.constrainType&&(i.zoomContainer.css("height","auto"),i.zoomContainer.css("width",i.options.constrainSize),i.options.imageCrossfade?(i.zoomWrap.css("height","auto"),i.zoomWrap.css("width",i.options.constrainSize),i.constheight=i.zoomWrap.height()):(i.$elem.css("height","auto"),i.$elem.css("width",i.options.constrainSize),i.constheight=i.$elem.height()),"inner"==i.options.zoomType&&(i.zoomWrap.parent().css("height",i.constheight),i.zoomWrap.parent().css("width",i.options.constrainSize),i.zoomWindow.css("height",i.constheight),i.zoomWindow.css("width",i.options.constrainSize)),i.options.tint&&(i.tintContainer.css("height",i.constheight),i.tintContainer.css("width",i.options.constrainSize),i.zoomTint.css("height",i.constheight),i.zoomTint.css("width",i.options.constrainSize),i.zoomTintImage.css("height",i.constheight),i.zoomTintImage.css("width",i.options.constrainSize))))},doneCallback:function(){this.options.loadingIcon&&this.spinner.hide(),this.nzOffset=this.$elem.offset(),this.nzWidth=this.$elem.width(),this.nzHeight=this.$elem.height(),this.currentZoomLevel=this.options.zoomLevel,this.widthRatio=this.largeWidth/this.nzWidth,this.heightRatio=this.largeHeight/this.nzHeight,"window"==this.options.zoomType&&(this.nzHeightmaxheightnewvalue&&(newvalue=maxheightnewvalue),newvalue>maxwidthtnewvalue&&(newvalue=maxwidthtnewvalue),maxheightnewvalue<=newvalue?(this.heightRatio=this.largeHeight/newvalue/this.nzHeight,newvalue>maxheightnewvalue?this.newvalueheight=maxheightnewvalue:this.newvalueheight=newvalue,this.fullheight=!0):(this.heightRatio=this.largeHeight/newvalue/this.nzHeight,newvalue>maxheightnewvalue?this.newvalueheight=maxheightnewvalue:this.newvalueheight=newvalue,this.fullheight=!1),maxwidthtnewvalue<=newvalue?(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,newvalue>maxwidthtnewvalue?this.newvaluewidth=maxwidthtnewvalue:this.newvaluewidth=newvalue,this.fullwidth=!0):(this.widthRatio=this.largeWidth/newvalue/this.nzWidth,this.newvaluewidth=newvalue,this.fullwidth=!1)),scrcontinue=!1,"inner"==this.options.zoomType&&(this.nzWidth>this.nzHeight&&(this.newvaluewidth<=maxwidthtnewvalue?scrcontinue=!0:(scrcontinue=!1,this.fullheight=!0,this.fullwidth=!0)),this.nzHeight>this.nzWidth&&(this.newvaluewidth<=maxwidthtnewvalue?scrcontinue=!0:(scrcontinue=!1,this.fullheight=!0,this.fullwidth=!0))),"inner"!=this.options.zoomType&&(scrcontinue=!0),scrcontinue&&(this.zoomLock=0,this.changeZoom=!0,this.options.zoomWindowHeight/this.heightRatio<=this.nzHeight&&(this.currentZoomLevel=this.newvalueheight,"lens"!=this.options.zoomType&&"inner"!=this.options.zoomType&&(this.changeBgSize=!0,this.zoomLens.css({height:String(this.options.zoomWindowHeight/this.heightRatio)+"px"})),"lens"!=this.options.zoomType&&"inner"!=this.options.zoomType||(this.changeBgSize=!0)),this.options.zoomWindowWidth/this.widthRatio<=this.nzWidth&&("inner"!=this.options.zoomType&&this.newvaluewidth>this.newvalueheight&&(this.currentZoomLevel=this.newvaluewidth),"lens"!=this.options.zoomType&&"inner"!=this.options.zoomType&&(this.changeBgSize=!0,this.zoomLens.css({width:String(this.options.zoomWindowWidth/this.widthRatio)+"px"})),"lens"!=this.options.zoomType&&"inner"!=this.options.zoomType||(this.changeBgSize=!0)),"inner"==this.options.zoomType&&(this.changeBgSize=!0,this.nzWidth>this.nzHeight&&(this.currentZoomLevel=this.newvaluewidth),this.nzHeight>this.nzWidth&&(this.currentZoomLevel=this.newvaluewidth))),this.setPosition(this.currentLoc)},closeAll:function(){self.zoomWindow&&self.zoomWindow.hide(),self.zoomLens&&self.zoomLens.hide(),self.zoomTint&&self.zoomTint.hide()},changeState:function(o){"enable"==o&&(this.options.zoomEnabled=!0),"disable"==o&&(this.options.zoomEnabled=!1)}};o.fn.elevateZoom=function(e){return this.each(function(){var t=Object.create(n);t.init(e,this),o.data(this,"elevateZoom",t)})},o.fn.elevateZoom.options={zoomActivation:"hover",zoomEnabled:!0,preloading:1,zoomLevel:1,scrollZoom:!1,scrollZoomIncrement:.1,minZoomLevel:!1,maxZoomLevel:!1,easing:!1,easingAmount:12,lensSize:200,zoomWindowWidth:400,zoomWindowHeight:400,zoomWindowOffetx:0,zoomWindowOffety:0,zoomWindowPosition:1,zoomWindowBgColour:"#fff",lensFadeIn:!1,lensFadeOut:!1,debug:!1,zoomWindowFadeIn:!1,zoomWindowFadeOut:!1,zoomWindowAlwaysShow:!1,zoomTintFadeIn:!1,zoomTintFadeOut:!1,borderSize:4,showLens:!0,borderColour:"#888",lensBorderSize:1,lensBorderColour:"#000",lensShape:"square",zoomType:"window",containLensZoom:!1,lensColour:"white",lensOpacity:.4,lenszoom:!1,tint:!1,tintColour:"#333",tintOpacity:.4,gallery:!1,galleryActiveClass:"zoomGalleryActive",imageCrossfade:!1,constrainType:!1,constrainSize:!1,loadingIcon:!1,cursor:"default",responsive:!0,onComplete:o.noop,onZoomedImageLoaded:function(){},onImageSwap:o.noop,onImageSwapComplete:o.noop,zoomContainer:"body"}}(jQuery,window,document),function(o,e,t,i){"use strict";var n=t("html"),s=t(o),r=t(e),a=t.fancybox=function(){a.open.apply(this,arguments)},l=navigator.userAgent.match(/msie/i),h=null,d=void 0!==e.createTouch,c=function(o){return o&&o.hasOwnProperty&&o instanceof t},p=function(o){return o&&"string"===t.type(o)},g=function(o){return p(o)&&o.indexOf("%")>0},m=function(o){return o&&!(o.style.overflow&&"hidden"===o.style.overflow)&&(o.clientWidth&&o.scrollWidth>o.clientWidth||o.clientHeight&&o.scrollHeight>o.clientHeight)},f=function(o,e){var t=parseInt(o,10)||0;return e&&g(o)&&(t=a.getViewport()[e]/100*t),Math.ceil(t)},u=function(o,e){return f(o,e)+"px"};t.extend(a,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!d,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'
',image:'',iframe:'",error:'

The requested content cannot be loaded.
Please try again later.

',closeBtn:'',next:'',prev:'',loading:'
'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:t.noop,beforeLoad:t.noop,afterLoad:t.noop,beforeShow:t.noop,afterShow:t.noop,beforeChange:t.noop,beforeClose:t.noop,afterClose:t.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(o,e){if(o&&(t.isPlainObject(e)||(e={}),!1!==a.close(!0)))return t.isArray(o)||(o=c(o)?t(o).get():[o]),t.each(o,function(i,n){var s,r,l,h,d,g,m,f={};"object"===t.type(n)&&(n.nodeType&&(n=t(n)),c(n)?(f={href:n.data("fancybox-href")||n.attr("href"),title:t("
").text(n.data("fancybox-title")||n.attr("title")||"").html(),isDom:!0,element:n},t.metadata&&t.extend(!0,f,n.metadata())):f=n),s=e.href||f.href||(p(n)?n:null),r=void 0!==e.title?e.title:f.title||"",!(h=(l=e.content||f.content)?"html":e.type||f.type)&&f.isDom&&((h=n.data("fancybox-type"))||(h=(d=n.prop("class").match(/fancybox\.(\w+)/))?d[1]:null)),p(s)&&(h||(a.isImage(s)?h="image":a.isSWF(s)?h="swf":"#"===s.charAt(0)?h="inline":p(n)&&(h="html",l=n)),"ajax"===h&&(s=(g=s.split(/\s+/,2)).shift(),m=g.shift())),l||("inline"===h?s?l=t(p(s)?s.replace(/.*(?=#[^\s]+$)/,""):s):f.isDom&&(l=n):"html"===h?l=s:h||s||!f.isDom||(h="inline",l=n)),t.extend(f,{href:s,type:h,content:l,title:r,selector:m}),o[i]=f}),a.opts=t.extend(!0,{},a.defaults,e),void 0!==e.keys&&(a.opts.keys=!!e.keys&&t.extend({},a.defaults.keys,e.keys)),a.group=o,a._start(a.opts.index)},cancel:function(){var o=a.coming;o&&!1===a.trigger("onCancel")||(a.hideLoading(),o&&(a.ajaxLoad&&a.ajaxLoad.abort(),a.ajaxLoad=null,a.imgPreload&&(a.imgPreload.onload=a.imgPreload.onerror=null),o.wrap&&o.wrap.stop(!0,!0).trigger("onReset").remove(),a.coming=null,a.current||a._afterZoomOut(o)))},close:function(o){a.cancel(),!1!==a.trigger("beforeClose")&&(a.unbindEvents(),a.isActive&&(a.isOpen&&!0!==o?(a.isOpen=a.isOpened=!1,a.isClosing=!0,t(".fancybox-item, .fancybox-nav").remove(),a.wrap.stop(!0,!0).removeClass("fancybox-opened"),a.transitions[a.current.closeMethod]()):(t(".fancybox-wrap").stop(!0).trigger("onReset").remove(),a._afterZoomOut())))},play:function(o){var e=function(){clearTimeout(a.player.timer)},t=function(){e(),a.current&&a.player.isActive&&(a.player.timer=setTimeout(a.next,a.current.playSpeed))},i=function(){e(),r.unbind(".player"),a.player.isActive=!1,a.trigger("onPlayEnd")};!0===o||!a.player.isActive&&!1!==o?a.current&&(a.current.loop||a.current.index=i.index?"next":"prev"],a.router=t||"jumpto",i.loop&&(o<0&&(o=i.group.length+o%i.group.length),o%=i.group.length),void 0!==i.group[o]&&(a.cancel(),a._start(o)))},reposition:function(o,e){var i,n=a.current,s=n?n.wrap:null;s&&(i=a._getPosition(e),o&&"scroll"===o.type?(delete i.position,s.stop(!0,!0).animate(i,200)):(s.css(i),n.pos=t.extend({},n.dim,i)))},update:function(o){var e=o&&o.originalEvent&&o.originalEvent.type,t=!e||"orientationchange"===e;t&&(clearTimeout(h),h=null),a.isOpen&&!h&&(h=setTimeout(function(){var i=a.current;i&&!a.isClosing&&(a.wrap.removeClass("fancybox-tmp"),(t||"load"===e||"resize"===e&&i.autoResize)&&a._setDimension(),"scroll"===e&&i.canShrink||a.reposition(o),a.trigger("onUpdate"),h=null)},t&&!d?0:300))},toggle:function(o){a.isOpen&&(a.current.fitToView="boolean"===t.type(o)?o:!a.current.fitToView,d&&(a.wrap.removeAttr("style").addClass("fancybox-tmp"),a.trigger("onUpdate")),a.update())},hideLoading:function(){r.unbind(".loading"),t("#fancybox-loading").remove()},showLoading:function(){var o,e;a.hideLoading(),o=t(a.opts.tpl.loading).click(a.cancel).appendTo("body"),r.bind("keydown.loading",function(o){27===(o.which||o.keyCode)&&(o.preventDefault(),a.cancel())}),a.defaults.fixed||(e=a.getViewport(),o.css({position:"absolute",top:.5*e.h+e.y,left:.5*e.w+e.x})),a.trigger("onLoading")},getViewport:function(){var e=a.current&&a.current.locked||!1,t={x:s.scrollLeft(),y:s.scrollTop()};return e&&e.length?(t.w=e[0].clientWidth,t.h=e[0].clientHeight):(t.w=d&&o.innerWidth?o.innerWidth:s.width(),t.h=d&&o.innerHeight?o.innerHeight:s.height()),t},unbindEvents:function(){a.wrap&&c(a.wrap)&&a.wrap.unbind(".fb"),r.unbind(".fb"),s.unbind(".fb")},bindEvents:function(){var o,e=a.current;e&&(s.bind("orientationchange.fb"+(d?"":" resize.fb")+(e.autoCenter&&!e.locked?" scroll.fb":""),a.update),(o=e.keys)&&r.bind("keydown.fb",function(i){var n=i.which||i.keyCode,s=i.target||i.srcElement;if(27===n&&a.coming)return!1;i.ctrlKey||i.altKey||i.shiftKey||i.metaKey||s&&(s.type||t(s).is("[contenteditable]"))||t.each(o,function(o,s){return e.group.length>1&&void 0!==s[n]?(a[o](s[n]),i.preventDefault(),!1):t.inArray(n,s)>-1?(a[o](),i.preventDefault(),!1):void 0})}),t.fn.mousewheel&&e.mouseWheel&&a.wrap.bind("mousewheel.fb",function(o,i,n,s){for(var r=o.target||null,l=t(r),h=!1;l.length&&!(h||l.is(".fancybox-skin")||l.is(".fancybox-wrap"));)h=m(l[0]),l=t(l).parent();0===i||h||a.group.length>1&&!e.canShrink&&(s>0||n>0?a.prev(s>0?"down":"left"):(s<0||n<0)&&a.next(s<0?"up":"right"),o.preventDefault())}))},trigger:function(o,e){var i,n=e||a.coming||a.current;if(n){if(t.isFunction(n[o])&&(i=n[o].apply(n,Array.prototype.slice.call(arguments,1))),!1===i)return!1;n.helpers&&t.each(n.helpers,function(e,i){i&&a.helpers[e]&&t.isFunction(a.helpers[e][o])&&a.helpers[e][o](t.extend(!0,{},a.helpers[e].defaults,i),n)})}r.trigger(o)},isImage:function(o){return p(o)&&o.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(o){return p(o)&&o.match(/\.(swf)((\?|#).*)?$/i)},_start:function(o){var e,i,n,s,r,l={};if(o=f(o),!(e=a.group[o]||null))return!1;if(l=t.extend(!0,{},a.opts,e),s=l.margin,r=l.padding,"number"===t.type(s)&&(l.margin=[s,s,s,s]),"number"===t.type(r)&&(l.padding=[r,r,r,r]),l.modal&&t.extend(!0,l,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),l.autoSize&&(l.autoWidth=l.autoHeight=!0),"auto"===l.width&&(l.autoWidth=!0),"auto"===l.height&&(l.autoHeight=!0),l.group=a.group,l.index=o,a.coming=l,!1!==a.trigger("beforeLoad")){if(n=l.type,i=l.href,!n)return a.coming=null,!(!a.current||!a.router||"jumpto"===a.router)&&(a.current.index=o,a[a.router](a.direction));if(a.isActive=!0,"image"!==n&&"swf"!==n||(l.autoHeight=l.autoWidth=!1,l.scrolling="visible"),"image"===n&&(l.aspectRatio=!0),"iframe"===n&&d&&(l.scrolling="scroll"),l.wrap=t(l.tpl.wrap).addClass("fancybox-"+(d?"mobile":"desktop")+" fancybox-type-"+n+" fancybox-tmp "+l.wrapCSS).appendTo(l.parent||"body"),t.extend(l,{skin:t(".fancybox-skin",l.wrap),outer:t(".fancybox-outer",l.wrap),inner:t(".fancybox-inner",l.wrap)}),t.each(["Top","Right","Bottom","Left"],function(o,e){l.skin.css("padding"+e,u(l.padding[o]))}),a.trigger("onReady"),"inline"===n||"html"===n){if(!l.content||!l.content.length)return a._error("content")}else if(!i)return a._error("href");"image"===n?a._loadImage():"ajax"===n?a._loadAjax():"iframe"===n?a._loadIframe():a._afterLoad()}else a.coming=null},_error:function(o){t.extend(a.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:o,content:a.coming.tpl.error}),a._afterLoad()},_loadImage:function(){var o=a.imgPreload=new Image;o.onload=function(){this.onload=this.onerror=null,a.coming.width=this.width/a.opts.pixelRatio,a.coming.height=this.height/a.opts.pixelRatio,a._afterLoad()},o.onerror=function(){this.onload=this.onerror=null,a._error("image")},o.src=a.coming.href,!0!==o.complete&&a.showLoading()},_loadAjax:function(){var o=a.coming;a.showLoading(),a.ajaxLoad=t.ajax(t.extend({},o.ajax,{url:o.href,error:function(o,e){a.coming&&"abort"!==e?a._error("ajax",o):a.hideLoading()},success:function(e,t){"success"===t&&(o.content=e,a._afterLoad())}}))},_loadIframe:function(){var o=a.coming,e=t(o.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",d?"auto":o.iframe.scrolling).attr("src",o.href);t(o.wrap).bind("onReset",function(){try{t(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(o){}}),o.iframe.preload&&(a.showLoading(),e.one("load",function(){t(this).data("ready",1),d||t(this).bind("load.fb",a.update),t(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),a._afterLoad()})),o.content=e.appendTo(o.inner),o.iframe.preload||a._afterLoad()},_preloadImages:function(){var o,e,t=a.group,i=a.current,n=t.length,s=i.preload?Math.min(i.preload,n-1):0;for(e=1;e<=s;e+=1)"image"===(o=t[(i.index+e)%n]).type&&o.href&&((new Image).src=o.href)},_afterLoad:function(){var o,e,i,n,s,r,l=a.coming,h=a.current,d="fancybox-placeholder";if(a.hideLoading(),l&&!1!==a.isActive){if(!1===a.trigger("afterLoad",l,h))return l.wrap.stop(!0).trigger("onReset").remove(),void(a.coming=null);switch(h&&(a.trigger("beforeChange",h),h.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),a.unbindEvents(),o=l,e=l.content,i=l.type,n=l.scrolling,t.extend(a,{wrap:o.wrap,skin:o.skin,outer:o.outer,inner:o.inner,current:o,previous:h}),s=o.href,i){case"inline":case"ajax":case"html":o.selector?e=t("
").html(e).find(o.selector):c(e)&&(e.data(d)||e.data(d,t('
').insertAfter(e).hide()),e=e.show().detach(),o.wrap.bind("onReset",function(){t(this).find(e).length&&e.hide().replaceAll(e.data(d)).data(d,!1)}));break;case"image":e=o.tpl.image.replace(/\{href\}/g,s);break;case"swf":e='',r="",t.each(o.swf,function(o,t){e+='',r+=" "+o+'="'+t+'"'}),e+='"}c(e)&&e.parent().is(o.inner)||o.inner.append(e),a.trigger("beforeShow"),o.inner.css("overflow","yes"===n?"scroll":"no"===n?"hidden":n),a._setDimension(),a.reposition(),a.isOpen=!1,a.coming=null,a.bindEvents(),a.isOpened?h.prevMethod&&a.transitions[h.prevMethod]():t(".fancybox-wrap").not(o.wrap).stop(!0).trigger("onReset").remove(),a.transitions[a.isOpened?o.nextMethod:o.openMethod](),a._preloadImages()}},_setDimension:function(){var o,e,i,n,s,r,l,h,d,c,p,m,w,z,v,b=a.getViewport(),x=0,y=!1,W=!1,T=a.wrap,L=a.skin,S=a.inner,H=a.current,k=H.width,C=H.height,O=H.minWidth,I=H.minHeight,P=H.maxWidth,E=H.maxHeight,R=H.scrolling,$=H.scrollOutside?H.scrollbarWidth:0,A=H.margin,_=f(A[1]+A[3]),Z=f(A[0]+A[2]);if(T.add(L).add(S).width("auto").height("auto").removeClass("fancybox-tmp"),o=f(L.outerWidth(!0)-L.width()),e=f(L.outerHeight(!0)-L.height()),i=_+o,n=Z+e,s=g(k)?(b.w-i)*f(k)/100:k,r=g(C)?(b.h-n)*f(C)/100:C,"iframe"===H.type){if(z=H.content,H.autoHeight&&z&&1===z.data("ready"))try{z[0].contentWindow.document.location&&(S.width(s).height(9999),v=z.contents().find("body"),$&&v.css("overflow-x","hidden"),r=v.outerHeight(!0))}catch(o){}}else(H.autoWidth||H.autoHeight)&&(S.addClass("fancybox-tmp"),H.autoWidth||S.width(s),H.autoHeight||S.height(r),H.autoWidth&&(s=S.width()),H.autoHeight&&(r=S.height()),S.removeClass("fancybox-tmp"));if(k=f(s),C=f(r),d=s/r,O=f(g(O)?f(O,"w")-i:O),P=f(g(P)?f(P,"w")-i:P),I=f(g(I)?f(I,"h")-n:I),E=f(g(E)?f(E,"h")-n:E),l=P,h=E,H.fitToView&&(P=Math.min(b.w-i,P),E=Math.min(b.h-n,E)),m=b.w-_,w=b.h-Z,H.aspectRatio?(k>P&&(C=f((k=P)/d)),C>E&&(k=f((C=E)*d)),km||p>w)&&k>O&&C>I&&!(x++>19);)C=Math.max(I,Math.min(E,C-10)),(k=f(C*d))P&&(C=f((k=P)/d)),S.width(k).height(C),T.width(k+o),c=T.width(),p=T.height();else k=Math.max(O,Math.min(k,k-(c-m))),C=Math.max(I,Math.min(C,C-(p-w)));$&&"auto"===R&&Cm||p>w)&&k>O&&C>I,W=H.aspectRatio?kI&&C1)&&a.inner.css("cursor","pointer").bind("click.fb",function(e){t(e.target).is("a")||t(e.target).parent().is("a")||(e.preventDefault(),a[o.closeClick?"close":"next"]())}),o.closeBtn&&t(o.tpl.closeBtn).appendTo(a.skin).bind("click.fb",function(o){o.preventDefault(),a.close()}),o.arrows&&a.group.length>1&&((o.loop||o.index>0)&&t(o.tpl.prev).appendTo(a.outer).bind("click.fb",a.prev),(o.loop||o.index
').appendTo(e&&e.length?e:"body"),this.fixed=!1,o.fixed&&a.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(o){var e=this;o=t.extend({},this.defaults,o),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(o),this.fixed||(s.bind("resize.overlay",t.proxy(this.update,this)),this.update()),o.closeClick&&this.overlay.bind("click.overlay",function(o){if(t(o.target).hasClass("fancybox-overlay"))return a.isActive?a.close():e.close(),!1}),this.overlay.css(o.css).show()},close:function(){s.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(t(".fancybox-margin").removeClass("fancybox-margin"),this.el.removeClass("fancybox-lock"),s.scrollTop(this.scrollV).scrollLeft(this.scrollH)),t(".fancybox-overlay").remove().hide(),t.extend(this,{overlay:null,fixed:!1})},update:function(){var o,t="100%";this.overlay.width(t).height("100%"),l?(o=Math.max(e.documentElement.offsetWidth,e.body.offsetWidth),r.width()>o&&(t=r.width())):r.width()>s.width()&&(t=r.width()),this.overlay.width(t).height(r.height())},onReady:function(o,e){var i=this.overlay;t(".fancybox-overlay").stop(!0,!0),i||this.create(o),o.locked&&this.fixed&&e.fixed&&(e.locked=this.overlay.append(e.wrap),e.fixed=!1),!0===o.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(o,e){e.locked&&!this.el.hasClass("fancybox-lock")&&(!1!==this.fixPosition&&t("*:not(object)").filter(function(){return"fixed"===t(this).css("position")&&!t(this).hasClass("fancybox-overlay")&&!t(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin"),this.scrollV=s.scrollTop(),this.scrollH=s.scrollLeft(),this.el.addClass("fancybox-lock"),s.scrollTop(this.scrollV).scrollLeft(this.scrollH)),this.open(o)},onUpdate:function(){this.fixed||this.update()},afterClose:function(o){this.overlay&&!a.coming&&this.overlay.fadeOut(o.speedOut,t.proxy(this.close,this))}},a.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(o){var e,i,n=a.current,s=n.title,r=o.type;if(t.isFunction(s)&&(s=s.call(n.element,n)),p(s)&&""!==t.trim(s)){switch(e=t('
'+s+"
"),r){case"inside":i=a.skin;break;case"outside":i=a.wrap;break;case"over":i=a.inner;break;default:i=a.skin,e.appendTo("body"),l&&e.width(e.width()),e.wrapInner(''),a.current.margin[2]+=Math.abs(f(e.css("margin-bottom")))}e["top"===o.position?"prependTo":"appendTo"](i)}}},t.fn.fancybox=function(o){var e,i=t(this),n=this.selector||"",s=function(s){var r,l,h=t(this).blur(),d=e;s.ctrlKey||s.altKey||s.shiftKey||s.metaKey||h.is(".fancybox-wrap")||(r=o.groupAttr||"data-fancybox-group",(l=h.attr(r))||(r="rel",l=h.get(0)[r]),l&&""!==l&&"nofollow"!==l&&(d=(h=(h=n.length?t(n):i).filter("["+r+'="'+l+'"]')).index(this)),o.index=d,!1!==a.open(h,o)&&s.preventDefault())};return o=o||{},e=o.index||0,n&&!1!==o.live?r.undelegate(n,"click.fb-start").delegate(n+":not('.fancybox-item, .fancybox-nav')","click.fb-start",s):i.unbind("click.fb-start").bind("click.fb-start",s),this.filter("[data-fancybox-start=1]").trigger("click"),this},r.ready(function(){var e,i;void 0===t.scrollbarWidth&&(t.scrollbarWidth=function(){var o=t('
').appendTo("body"),e=o.children(),i=e.innerWidth()-e.height(99).innerWidth();return o.remove(),i}),void 0===t.support.fixedPosition&&(t.support.fixedPosition=function(){var o=t('
').appendTo("body"),e=20===o[0].offsetTop||15===o[0].offsetTop;return o.remove(),e}()),t.extend(a.defaults,{scrollbarWidth:t.scrollbarWidth(),fixed:t.support.fixedPosition,parent:t("body")}),e=t(o).width(),n.addClass("fancybox-lock-test"),i=t(o).width(),n.removeClass("fancybox-lock-test"),t("").appendTo("head")})}(window,document,jQuery);