let t,e;const n=new Set,o=document.createElement("link"),i=o.relList&&o.relList.supports&&o.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype,s="instantAllowQueryString"in document.body.dataset,a="instantAllowExternalLinks"in document.body.dataset,r="instantWhitelist"in document.body.dataset,c="instantMousedownShortcut"in document.body.dataset,d=1111;let l=65,u=!1,f=!1,m=!1;if("instantIntensity"in document.body.dataset){const t=document.body.dataset.instantIntensity;if("mousedown"==t.substr(0,"mousedown".length))u=!0,"mousedown-only"==t&&(f=!0);else if("viewport"==t.substr(0,"viewport".length))navigator.connection&&(navigator.connection.saveData||navigator.connection.effectiveType&&navigator.connection.effectiveType.includes("2g"))||("viewport"==t?document.documentElement.clientWidth*document.documentElement.clientHeight<45e4&&(m=!0):"viewport-all"==t&&(m=!0));else{const e=parseInt(t);isNaN(e)||(l=e)}}if(i){const n={capture:!0,passive:!0};if(f||document.addEventListener("touchstart",function(t){e=performance.now();const n=t.target.closest("a");if(!h(n))return;v(n.href)},n),u?c||document.addEventListener("mousedown",function(t){const e=t.target.closest("a");if(!h(e))return;v(e.href)},n):document.addEventListener("mouseover",function(n){if(performance.now()-e{v(o.href),t=void 0},l)},n),c&&document.addEventListener("mousedown",function(t){if(performance.now()-e1||t.metaKey||t.ctrlKey)return;if(!n)return;n.addEventListener("click",function(t){1337!=t.detail&&t.preventDefault()},{capture:!0,passive:!1,once:!0});const o=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1,detail:1337});n.dispatchEvent(o)},n),m){let t;(t=window.requestIdleCallback?t=>{requestIdleCallback(t,{timeout:1500})}:t=>{t()})(()=>{const t=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){const n=e.target;t.unobserve(n),v(n.href)}})});document.querySelectorAll("a").forEach(e=>{h(e)&&t.observe(e)})})}}function p(e){e.relatedTarget&&e.target.closest("a")==e.relatedTarget.closest("a")||t&&(clearTimeout(t),t=void 0)}function h(t){if(t&&t.href&&(!r||"instant"in t.dataset)&&(a||t.origin==location.origin||"instant"in t.dataset)&&["http:","https:"].includes(t.protocol)&&("http:"!=t.protocol||"https:"!=location.protocol)&&(s||!t.search||"instant"in t.dataset)&&!(t.hash&&t.pathname+t.search==location.pathname+location.search||"noInstant"in t.dataset))return!0}function v(t){if(n.has(t))return;const e=document.createElement("link");e.rel="prefetch",e.href=t,document.head.appendChild(e),n.add(t)}; ;(function (factory){ if(typeof define==='function'&&define.amd){ define(['jquery'], factory); }else if(typeof exports==='object'){ factory(require('jquery')); }else{ factory(window.jQuery||window.Zepto); }}(function($){ var CLOSE_EVENT='Close', BEFORE_CLOSE_EVENT='BeforeClose', AFTER_CLOSE_EVENT='AfterClose', BEFORE_APPEND_EVENT='BeforeAppend', MARKUP_PARSE_EVENT='MarkupParse', OPEN_EVENT='Open', CHANGE_EVENT='Change', NS='mfp', EVENT_NS='.' + NS, READY_CLASS='mfp-ready', REMOVING_CLASS='mfp-removing', PREVENT_CLOSE_CLASS='mfp-prevent-close'; var mfp, MagnificPopup=function(){}, _isJQ = !!(window.jQuery), _prevStatus, _window=$(window), _document, _prevContentType, _wrapClasses, _currPopupType; var _mfpOn=function(name, f){ mfp.ev.on(NS + name + EVENT_NS, f); }, _getEl=function(className, appendTo, html, raw){ var el=document.createElement('div'); el.className='mfp-'+className; if(html){ el.innerHTML=html; } if(!raw){ el=$(el); if(appendTo){ el.appendTo(appendTo); }}else if(appendTo){ appendTo.appendChild(el); } return el; }, _mfpTrigger=function(e, data){ mfp.ev.triggerHandler(NS + e, data); if(mfp.st.callbacks){ e=e.charAt(0).toLowerCase() + e.slice(1); if(mfp.st.callbacks[e]){ mfp.st.callbacks[e].apply(mfp, $.isArray(data) ? data:[data]); }} }, _getCloseBtn=function(type){ if(type!==_currPopupType||!mfp.currTemplate.closeBtn){ mfp.currTemplate.closeBtn=$(mfp.st.closeMarkup.replace('%title%', mfp.st.tClose)); _currPopupType=type; } return mfp.currTemplate.closeBtn; }, _checkInstance=function(){ if(!$.magnificPopup.instance){ mfp=new MagnificPopup(); mfp.init(); $.magnificPopup.instance=mfp; }}, supportsTransitions=function(){ var s=document.createElement('p').style, // 's' for style. better to create an element if body yet to exist v=['ms','O','Moz','Webkit']; // 'v' for vendor if(s['transition']!==undefined){ return true; } while(v.length){ if(v.pop() + 'Transition' in s){ return true; }} return false; }; MagnificPopup.prototype={ constructor: MagnificPopup, init: function(){ var appVersion=navigator.appVersion; mfp.isIE7=appVersion.indexOf("MSIE 7.")!==-1; mfp.isIE8=appVersion.indexOf("MSIE 8.")!==-1; mfp.isLowIE=mfp.isIE7||mfp.isIE8; mfp.isAndroid=(/android/gi).test(appVersion); mfp.isIOS=(/iphone|ipad|ipod/gi).test(appVersion); mfp.supportsTransition=supportsTransitions(); mfp.probablyMobile=(mfp.isAndroid||mfp.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent)); _document=$(document); mfp.popupsCache={};}, open: function(data){ var i; if(data.isObj===false){ mfp.items=data.items.toArray(); mfp.index=0; var items=data.items, item; for(i=0; i < items.length; i++){ item=items[i]; if(item.parsed){ item=item.el[0]; } if(item===data.el[0]){ mfp.index=i; break; }} }else{ mfp.items=$.isArray(data.items) ? data.items:[data.items]; mfp.index=data.index||0; } if(mfp.isOpen){ mfp.updateItemHTML(); return; } mfp.types=[]; _wrapClasses=''; if(data.mainEl&&data.mainEl.length){ mfp.ev=data.mainEl.eq(0); }else{ mfp.ev=_document; } if(data.key){ if(!mfp.popupsCache[data.key]){ mfp.popupsCache[data.key]={};} mfp.currTemplate=mfp.popupsCache[data.key]; }else{ mfp.currTemplate={};} mfp.st=$.extend(true, {}, $.magnificPopup.defaults, data); mfp.fixedContentPos=mfp.st.fixedContentPos==='auto' ? !mfp.probablyMobile:mfp.st.fixedContentPos; if(mfp.st.modal){ mfp.st.closeOnContentClick=false; mfp.st.closeOnBgClick=false; mfp.st.showCloseBtn=false; mfp.st.enableEscapeKey=false; } if(!mfp.bgOverlay){ mfp.bgOverlay=_getEl('bg').on('click'+EVENT_NS, function(){ mfp.close(); }); mfp.wrap=_getEl('wrap').attr('tabindex', -1).on('click'+EVENT_NS, function(e){ if(mfp._checkIfClose(e.target)){ mfp.close(); }}); mfp.container=_getEl('container', mfp.wrap); } mfp.contentContainer=_getEl('content'); if(mfp.st.preloader){ mfp.preloader=_getEl('preloader', mfp.container, mfp.st.tLoading); } var modules=$.magnificPopup.modules; for(i=0; i < modules.length; i++){ var n=modules[i]; n=n.charAt(0).toUpperCase() + n.slice(1); mfp['init'+n].call(mfp); } _mfpTrigger('BeforeOpen'); if(mfp.st.showCloseBtn){ if(!mfp.st.closeBtnInside){ mfp.wrap.append(_getCloseBtn()); }else{ _mfpOn(MARKUP_PARSE_EVENT, function(e, template, values, item){ values.close_replaceWith=_getCloseBtn(item.type); }); _wrapClasses +=' mfp-close-btn-in'; }} if(mfp.st.alignTop){ _wrapClasses +=' mfp-align-top'; } if(mfp.fixedContentPos){ mfp.wrap.css({ overflow: mfp.st.overflowY, overflowX: 'hidden', overflowY: mfp.st.overflowY }); }else{ mfp.wrap.css({ top: _window.scrollTop() - parseInt($('html').css('margin-top')), position: 'absolute' }); } if(mfp.st.fixedBgPos===false||(mfp.st.fixedBgPos==='auto'&&!mfp.fixedContentPos)){ mfp.bgOverlay.css({ height: _document.height(), position: 'absolute' }); } if(mfp.st.enableEscapeKey){ _document.on('keyup' + EVENT_NS, function(e){ if(e.keyCode===27){ mfp.close(); }}); } _window.on('resize' + EVENT_NS, function(){ mfp.updateSize(); }); if(!mfp.st.closeOnContentClick){ _wrapClasses +=' mfp-auto-cursor'; } if(_wrapClasses) mfp.wrap.addClass(_wrapClasses); var windowHeight=mfp.wH=_window.height(); var windowStyles={}; if(mfp.fixedContentPos){ if(mfp._hasScrollBar(windowHeight)){ var s=mfp._getScrollbarSize(); if(s){ windowStyles.marginRight=s; }} } if(mfp.fixedContentPos){ if(!mfp.isIE7){ windowStyles.overflow='hidden'; }else{ $('body, html').css('overflow', 'hidden'); }} var classesToadd=mfp.st.mainClass; if(mfp.isIE7){ classesToadd +=' mfp-ie7'; } if(classesToadd){ mfp._addClassToMFP(classesToadd); } mfp.updateItemHTML(); _mfpTrigger('BuildControls'); $('html').css(windowStyles); mfp.bgOverlay.add(mfp.wrap).prependTo(mfp.st.prependTo||$(document.body)); mfp._lastFocusedEl=document.activeElement; setTimeout(function(){ if(mfp.content){ mfp._addClassToMFP(READY_CLASS); mfp._setFocus(); }else{ mfp.bgOverlay.addClass(READY_CLASS); } _document.on('focusin' + EVENT_NS, mfp._onFocusIn); }, 16); mfp.isOpen=true; mfp.updateSize(windowHeight); _mfpTrigger(OPEN_EVENT); return data; }, close: function(){ if(!mfp.isOpen) return; _mfpTrigger(BEFORE_CLOSE_EVENT); mfp.isOpen=false; if(mfp.st.removalDelay&&!mfp.isLowIE&&mfp.supportsTransition){ mfp._addClassToMFP(REMOVING_CLASS); setTimeout(function(){ mfp._close(); }, mfp.st.removalDelay); }else{ mfp._close(); }}, _close: function(){ _mfpTrigger(CLOSE_EVENT); var classesToRemove=REMOVING_CLASS + ' ' + READY_CLASS + ' '; mfp.bgOverlay.detach(); mfp.wrap.detach(); mfp.container.empty(); if(mfp.st.mainClass){ classesToRemove +=mfp.st.mainClass + ' '; } mfp._removeClassFromMFP(classesToRemove); if(mfp.fixedContentPos){ var windowStyles={marginRight: ''}; if(mfp.isIE7){ $('body, html').css('overflow', ''); }else{ windowStyles.overflow=''; } $('html').css(windowStyles); } _document.off('keyup' + EVENT_NS + ' focusin' + EVENT_NS); mfp.ev.off(EVENT_NS); mfp.wrap.attr('class', 'mfp-wrap').removeAttr('style'); mfp.bgOverlay.attr('class', 'mfp-bg'); mfp.container.attr('class', 'mfp-container'); if(mfp.st.showCloseBtn && (!mfp.st.closeBtnInside||mfp.currTemplate[mfp.currItem.type]===true)){ if(mfp.currTemplate.closeBtn) mfp.currTemplate.closeBtn.detach(); } if(mfp._lastFocusedEl){ } mfp.currItem=null; mfp.content=null; mfp.currTemplate=null; mfp.prevHeight=0; _mfpTrigger(AFTER_CLOSE_EVENT); }, updateSize: function(winHeight){ if(mfp.isIOS){ var zoomLevel=document.documentElement.clientWidth / window.innerWidth; var height=window.innerHeight * zoomLevel; mfp.wrap.css('height', height); mfp.wH=height; }else{ mfp.wH=winHeight||_window.height(); } if(!mfp.fixedContentPos){ mfp.wrap.css('height', mfp.wH); } _mfpTrigger('Resize'); }, updateItemHTML: function(){ var item=mfp.items[mfp.index]; mfp.contentContainer.detach(); if(mfp.content) mfp.content.detach(); if(!item.parsed){ item=mfp.parseEl(mfp.index); } var type=item.type; _mfpTrigger('BeforeChange', [mfp.currItem ? mfp.currItem.type:'', type]); mfp.currItem=item; if(!mfp.currTemplate[type]){ var markup=mfp.st[type] ? mfp.st[type].markup:false; _mfpTrigger('FirstMarkupParse', markup); if(markup){ mfp.currTemplate[type]=$(markup); }else{ mfp.currTemplate[type]=true; }} if(_prevContentType&&_prevContentType!==item.type){ mfp.container.removeClass('mfp-'+_prevContentType+'-holder'); } var newContent=mfp['get' + type.charAt(0).toUpperCase() + type.slice(1)](item, mfp.currTemplate[type]); mfp.appendContent(newContent, type); item.preloaded=true; _mfpTrigger(CHANGE_EVENT, item); _prevContentType=item.type; mfp.container.prepend(mfp.contentContainer); _mfpTrigger('AfterChange'); }, appendContent: function(newContent, type){ mfp.content=newContent; if(newContent){ if(mfp.st.showCloseBtn&&mfp.st.closeBtnInside && mfp.currTemplate[type]===true){ if(!mfp.content.find('.mfp-close').length){ mfp.content.append(_getCloseBtn()); }}else{ mfp.content=newContent; }}else{ mfp.content=''; } _mfpTrigger(BEFORE_APPEND_EVENT); mfp.container.addClass('mfp-'+type+'-holder'); mfp.contentContainer.append(mfp.content); }, parseEl: function(index){ var item=mfp.items[index], type; if(item.tagName){ item={ el: $(item) };}else{ type=item.type; item={ data: item, src: item.src };} if(item.el){ var types=mfp.types; for(var i=0; i < types.length; i++){ if(item.el.hasClass('mfp-'+types[i])){ type=types[i]; break; }} item.src=item.el.attr('data-mfp-src'); if(!item.src){ item.src=item.el.attr('href'); }} item.type=type||mfp.st.type||'inline'; item.index=index; item.parsed=true; mfp.items[index]=item; _mfpTrigger('ElementParse', item); return mfp.items[index]; }, addGroup: function(el, options){ var eHandler=function(e){ e.mfpEl=this; mfp._openClick(e, el, options); }; if(!options){ options={};} var eName='click.magnificPopup'; options.mainEl=el; if(options.items){ options.isObj=true; el.off(eName).on(eName, eHandler); }else{ options.isObj=false; if(options.delegate){ el.off(eName).on(eName, options.delegate , eHandler); }else{ options.items=el; el.off(eName).on(eName, eHandler); }} }, _openClick: function(e, el, options){ var midClick=options.midClick!==undefined ? options.midClick:$.magnificPopup.defaults.midClick; if(!midClick&&(e.which===2||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey)){ return; } var disableOn=options.disableOn!==undefined ? options.disableOn:$.magnificPopup.defaults.disableOn; if(disableOn){ if($.isFunction(disableOn)){ if(!disableOn.call(mfp)){ return true; }}else{ if(_window.width() < disableOn){ return true; }} } if(e.type){ e.preventDefault(); if(mfp.isOpen){ e.stopPropagation(); }} options.el=$(e.mfpEl); if(options.delegate){ options.items=el.find(options.delegate); } mfp.open(options); }, updateStatus: function(status, text){ if(mfp.preloader){ if(_prevStatus!==status){ mfp.container.removeClass('mfp-s-'+_prevStatus); } if(!text&&status==='loading'){ text=mfp.st.tLoading; } var data={ status: status, text: text }; _mfpTrigger('UpdateStatus', data); status=data.status; text=data.text; mfp.preloader.html(text); mfp.preloader.find('a').on('click', function(e){ e.stopImmediatePropagation(); }); mfp.container.addClass('mfp-s-'+status); _prevStatus=status; }}, _checkIfClose: function(target){ if($(target).hasClass(PREVENT_CLOSE_CLASS)){ return; } var closeOnContent=mfp.st.closeOnContentClick; var closeOnBg=mfp.st.closeOnBgClick; if(closeOnContent&&closeOnBg){ return true; }else{ if(!mfp.content||$(target).hasClass('mfp-close')||(mfp.preloader&&target===mfp.preloader[0])){ return true; } if((target!==mfp.content[0]&&!$.contains(mfp.content[0], target))){ if(closeOnBg){ if($.contains(document, target)){ return true; }} }else if(closeOnContent){ return true; }} return false; }, _addClassToMFP: function(cName){ mfp.bgOverlay.addClass(cName); mfp.wrap.addClass(cName); }, _removeClassFromMFP: function(cName){ this.bgOverlay.removeClass(cName); mfp.wrap.removeClass(cName); }, _hasScrollBar: function(winHeight){ return((mfp.isIE7 ? _document.height():document.body.scrollHeight) > (winHeight||_window.height())); }, _setFocus: function(){ (mfp.st.focus ? mfp.content.find(mfp.st.focus).eq(0):mfp.wrap).focus(); }, _onFocusIn: function(e){ if(e.target!==mfp.wrap[0]&&!$.contains(mfp.wrap[0], e.target)){ mfp._setFocus(); return false; }}, _parseMarkup: function(template, values, item){ var arr; if(item.data){ values=$.extend(item.data, values); } _mfpTrigger(MARKUP_PARSE_EVENT, [template, values, item]); $.each(values, function(key, value){ if(value===undefined||value===false){ return true; } arr=key.split('_'); if(arr.length > 1){ var el=template.find(EVENT_NS + '-'+arr[0]); if(el.length > 0){ var attr=arr[1]; if(attr==='replaceWith'){ if(el[0]!==value[0]){ el.replaceWith(value); }}else if(attr==='img'){ if(el.is('img')){ el.attr('src', value); }else{ el.replaceWith(''); }}else{ el.attr(arr[1], value); }} }else{ template.find(EVENT_NS + '-'+key).html(value); }}); }, _getScrollbarSize: function(){ if(mfp.scrollbarSize===undefined){ var scrollDiv=document.createElement("div"); scrollDiv.style.cssText='width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;'; document.body.appendChild(scrollDiv); mfp.scrollbarSize=scrollDiv.offsetWidth - scrollDiv.clientWidth; document.body.removeChild(scrollDiv); } return mfp.scrollbarSize; }}; $.magnificPopup={ instance: null, proto: MagnificPopup.prototype, modules: [], open: function(options, index){ _checkInstance(); if(!options){ options={};}else{ options=$.extend(true, {}, options); } options.isObj=true; options.index=index||0; return this.instance.open(options); }, close: function(){ return $.magnificPopup.instance&&$.magnificPopup.instance.close(); }, registerModule: function(name, module){ if(module.options){ $.magnificPopup.defaults[name]=module.options; } $.extend(this.proto, module.proto); this.modules.push(name); }, defaults: { disableOn: 0, key: null, midClick: false, mainClass: '', preloader: true, focus: '', closeOnContentClick: false, closeOnBgClick: true, closeBtnInside: true, showCloseBtn: true, enableEscapeKey: true, modal: false, alignTop: false, removalDelay: 0, prependTo: null, fixedContentPos: 'auto', fixedBgPos: 'auto', overflowY: 'auto', closeMarkup: '', tClose: 'Close (Esc)', tLoading: 'Loading...' }}; $.fn.magnificPopup=function(options){ _checkInstance(); var jqEl=$(this); if(typeof options==="string"){ if(options==='open'){ var items, itemOpts=_isJQ ? jqEl.data('magnificPopup'):jqEl[0].magnificPopup, index=parseInt(arguments[1], 10)||0; if(itemOpts.items){ items=itemOpts.items[index]; }else{ items=jqEl; if(itemOpts.delegate){ items=items.find(itemOpts.delegate); } items=items.eq(index); } mfp._openClick({mfpEl:items}, jqEl, itemOpts); }else{ if(mfp.isOpen) mfp[options].apply(mfp, Array.prototype.slice.call(arguments, 1)); }}else{ options=$.extend(true, {}, options); if(_isJQ){ jqEl.data('magnificPopup', options); }else{ jqEl[0].magnificPopup=options; } mfp.addGroup(jqEl, options); } return jqEl; }; var INLINE_NS='inline', _hiddenClass, _inlinePlaceholder, _lastInlineElement, _putInlineElementsBack=function(){ if(_lastInlineElement){ _inlinePlaceholder.after(_lastInlineElement.addClass(_hiddenClass)).detach(); _lastInlineElement=null; }}; $.magnificPopup.registerModule(INLINE_NS, { options: { hiddenClass: 'hide', markup: '', tNotFound: 'Content not found' }, proto: { initInline: function(){ mfp.types.push(INLINE_NS); _mfpOn(CLOSE_EVENT+'.'+INLINE_NS, function(){ _putInlineElementsBack(); }); }, getInline: function(item, template){ _putInlineElementsBack(); if(item.src){ var inlineSt=mfp.st.inline, el=$(item.src); if(el.length){ var parent=el[0].parentNode; if(parent&&parent.tagName){ if(!_inlinePlaceholder){ _hiddenClass=inlineSt.hiddenClass; _inlinePlaceholder=_getEl(_hiddenClass); _hiddenClass='mfp-'+_hiddenClass; } _lastInlineElement=el.after(_inlinePlaceholder).detach().removeClass(_hiddenClass); } mfp.updateStatus('ready'); }else{ mfp.updateStatus('error', inlineSt.tNotFound); el=$('
'); } item.inlineElement=el; return el; } mfp.updateStatus('ready'); mfp._parseMarkup(template, {}, item); return template; }} }); var AJAX_NS='ajax', _ajaxCur, _removeAjaxCursor=function(){ if(_ajaxCur){ $(document.body).removeClass(_ajaxCur); }}, _destroyAjaxRequest=function(){ _removeAjaxCursor(); if(mfp.req){ mfp.req.abort(); }}; $.magnificPopup.registerModule(AJAX_NS, { options: { settings: null, cursor: 'mfp-ajax-cur', tError: 'The content could not be loaded.' }, proto: { initAjax: function(){ mfp.types.push(AJAX_NS); _ajaxCur=mfp.st.ajax.cursor; _mfpOn(CLOSE_EVENT+'.'+AJAX_NS, _destroyAjaxRequest); _mfpOn('BeforeChange.' + AJAX_NS, _destroyAjaxRequest); }, getAjax: function(item){ if(_ajaxCur){ $(document.body).addClass(_ajaxCur); } mfp.updateStatus('loading'); var opts=$.extend({ url: item.src, success: function(data, textStatus, jqXHR){ var temp={ data:data, xhr:jqXHR }; _mfpTrigger('ParseAjax', temp); mfp.appendContent($(temp.data), AJAX_NS); item.finished=true; _removeAjaxCursor(); mfp._setFocus(); setTimeout(function(){ mfp.wrap.addClass(READY_CLASS); }, 16); mfp.updateStatus('ready'); _mfpTrigger('AjaxContentAdded'); }, error: function(){ _removeAjaxCursor(); item.finished=item.loadError=true; mfp.updateStatus('error', mfp.st.ajax.tError.replace('%url%', item.src)); }}, mfp.st.ajax.settings); mfp.req=$.ajax(opts); return ''; }} }); var _imgInterval, _getTitle=function(item){ if(item.data&&item.data.title!==undefined) return item.data.title; var src=mfp.st.image.titleSrc; if(src){ if($.isFunction(src)){ return src.call(mfp, item); }else if(item.el){ return item.el.attr(src)||''; }} return ''; }; $.magnificPopup.registerModule('image', { options: { markup: '
'+ '
'+ '
'+ '
'+ '
'+ '
'+ '
'+ '
'+ '
'+ '
'+ '
'+ '
', cursor: 'mfp-zoom-out-cur', titleSrc: 'title', verticalFit: true, tError: 'The image could not be loaded.' }, proto: { initImage: function(){ var imgSt=mfp.st.image, ns='.image'; mfp.types.push('image'); _mfpOn(OPEN_EVENT+ns, function(){ if(mfp.currItem.type==='image'&&imgSt.cursor){ $(document.body).addClass(imgSt.cursor); }}); _mfpOn(CLOSE_EVENT+ns, function(){ if(imgSt.cursor){ $(document.body).removeClass(imgSt.cursor); } _window.off('resize' + EVENT_NS); }); _mfpOn('Resize'+ns, mfp.resizeImage); if(mfp.isLowIE){ _mfpOn('AfterChange', mfp.resizeImage); }}, resizeImage: function(){ var item=mfp.currItem; if(!item||!item.img) return; if(mfp.st.image.verticalFit){ var decr=0; if(mfp.isLowIE){ decr=parseInt(item.img.css('padding-top'), 10) + parseInt(item.img.css('padding-bottom'),10); } item.img.css('max-height', mfp.wH-decr); }}, _onImageHasSize: function(item){ if(item.img){ item.hasSize=true; if(_imgInterval){ clearInterval(_imgInterval); } item.isCheckingImgSize=false; _mfpTrigger('ImageHasSize', item); if(item.imgHidden){ if(mfp.content) mfp.content.removeClass('mfp-loading'); item.imgHidden=false; }} }, findImageSize: function(item){ var counter=0, img=item.img[0], mfpSetInterval=function(delay){ if(_imgInterval){ clearInterval(_imgInterval); } _imgInterval=setInterval(function(){ if(img.naturalWidth > 0){ mfp._onImageHasSize(item); return; } if(counter > 200){ clearInterval(_imgInterval); } counter++; if(counter===3){ mfpSetInterval(10); }else if(counter===40){ mfpSetInterval(50); }else if(counter===100){ mfpSetInterval(500); }}, delay); }; mfpSetInterval(1); }, getImage: function(item, template){ var guard=0, onLoadComplete=function(){ if(item){ if(item.img[0].complete){ item.img.off('.mfploader'); if(item===mfp.currItem){ mfp._onImageHasSize(item); mfp.updateStatus('ready'); } item.hasSize=true; item.loaded=true; _mfpTrigger('ImageLoadComplete'); }else{ guard++; if(guard < 200){ setTimeout(onLoadComplete,100); }else{ onLoadError(); }} }}, onLoadError=function(){ if(item){ item.img.off('.mfploader'); if(item===mfp.currItem){ mfp._onImageHasSize(item); mfp.updateStatus('error', imgSt.tError.replace('%url%', item.src)); } item.hasSize=true; item.loaded=true; item.loadError=true; }}, imgSt=mfp.st.image; var el=template.find('.mfp-img'); if(el.length){ var img=document.createElement('img'); img.className='mfp-img'; if(item.el&&item.el.find('img').length){ img.alt=item.el.find('img').attr('alt'); } item.img=$(img).on('load.mfploader', onLoadComplete).on('error.mfploader', onLoadError); img.src=item.src; if(el.is('img')){ item.img=item.img.clone(); } img=item.img[0]; if(img.naturalWidth > 0){ item.hasSize=true; }else if(!img.width){ item.hasSize=false; }} mfp._parseMarkup(template, { title: _getTitle(item), img_replaceWith: item.img }, item); mfp.resizeImage(); if(item.hasSize){ if(_imgInterval) clearInterval(_imgInterval); if(item.loadError){ template.addClass('mfp-loading'); mfp.updateStatus('error', imgSt.tError.replace('%url%', item.src)); }else{ template.removeClass('mfp-loading'); mfp.updateStatus('ready'); } return template; } mfp.updateStatus('loading'); item.loading=true; if(!item.hasSize){ item.imgHidden=true; template.addClass('mfp-loading'); mfp.findImageSize(item); } return template; }} }); var hasMozTransform, getHasMozTransform=function(){ if(hasMozTransform===undefined){ hasMozTransform=document.createElement('p').style.MozTransform!==undefined; } return hasMozTransform; }; $.magnificPopup.registerModule('zoom', { options: { enabled: false, easing: 'ease-in-out', duration: 300, opener: function(element){ return element.is('img') ? element:element.find('img'); }}, proto: { initZoom: function(){ var zoomSt=mfp.st.zoom, ns='.zoom', image; if(!zoomSt.enabled||!mfp.supportsTransition){ return; } var duration=zoomSt.duration, getElToAnimate=function(image){ var newImg=image.clone().removeAttr('style').removeAttr('class').addClass('mfp-animated-image'), transition='all '+(zoomSt.duration/1000)+'s ' + zoomSt.easing, cssObj={ position: 'fixed', zIndex: 9999, left: 0, top: 0, '-webkit-backface-visibility': 'hidden' }, t='transition'; cssObj['-webkit-'+t]=cssObj['-moz-'+t]=cssObj['-o-'+t]=cssObj[t]=transition; newImg.css(cssObj); return newImg; }, showMainContent=function(){ mfp.content.css('visibility', 'visible'); }, openTimeout, animatedImg; _mfpOn('BuildControls'+ns, function(){ if(mfp._allowZoom()){ clearTimeout(openTimeout); mfp.content.css('visibility', 'hidden'); image=mfp._getItemToZoom(); if(!image){ showMainContent(); return; } animatedImg=getElToAnimate(image); animatedImg.css(mfp._getOffset()); mfp.wrap.append(animatedImg); openTimeout=setTimeout(function(){ animatedImg.css(mfp._getOffset(true)); openTimeout=setTimeout(function(){ showMainContent(); setTimeout(function(){ animatedImg.remove(); image=animatedImg=null; _mfpTrigger('ZoomAnimationEnded'); }, 16); }, duration); }, 16); }}); _mfpOn(BEFORE_CLOSE_EVENT+ns, function(){ if(mfp._allowZoom()){ clearTimeout(openTimeout); mfp.st.removalDelay=duration; if(!image){ image=mfp._getItemToZoom(); if(!image){ return; } animatedImg=getElToAnimate(image); } animatedImg.css(mfp._getOffset(true)); mfp.wrap.append(animatedImg); mfp.content.css('visibility', 'hidden'); setTimeout(function(){ animatedImg.css(mfp._getOffset()); }, 16); }}); _mfpOn(CLOSE_EVENT+ns, function(){ if(mfp._allowZoom()){ showMainContent(); if(animatedImg){ animatedImg.remove(); } image=null; }}); }, _allowZoom: function(){ return mfp.currItem.type==='image'; }, _getItemToZoom: function(){ if(mfp.currItem.hasSize){ return mfp.currItem.img; }else{ return false; }}, _getOffset: function(isLarge){ var el; if(isLarge){ el=mfp.currItem.img; }else{ el=mfp.st.zoom.opener(mfp.currItem.el||mfp.currItem); } var offset=el.offset(); var paddingTop=parseInt(el.css('padding-top'),10); var paddingBottom=parseInt(el.css('padding-bottom'),10); offset.top -=($(window).scrollTop() - paddingTop); var obj={ width: el.width(), height: (_isJQ ? el.innerHeight():el[0].offsetHeight) - paddingBottom - paddingTop }; if(getHasMozTransform()){ obj['-moz-transform']=obj['transform']='translate(' + offset.left + 'px,' + offset.top + 'px)'; }else{ obj.left=offset.left; obj.top=offset.top; } return obj; }} }); var IFRAME_NS='iframe', _emptyPage='//about:blank', _fixIframeBugs=function(isShowing){ if(mfp.currTemplate[IFRAME_NS]){ var el=mfp.currTemplate[IFRAME_NS].find('iframe'); if(el.length){ if(!isShowing){ el[0].src=_emptyPage; } if(mfp.isIE8){ el.css('display', isShowing ? 'block':'none'); }} }}; $.magnificPopup.registerModule(IFRAME_NS, { 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(){ mfp.types.push(IFRAME_NS); _mfpOn('BeforeChange', function(e, prevType, newType){ if(prevType!==newType){ if(prevType===IFRAME_NS){ _fixIframeBugs(); }else if(newType===IFRAME_NS){ _fixIframeBugs(true); }} }); _mfpOn(CLOSE_EVENT + '.' + IFRAME_NS, function(){ _fixIframeBugs(); }); }, getIframe: function(item, template){ var embedSrc=item.src; var iframeSt=mfp.st.iframe; $.each(iframeSt.patterns, function(){ if(embedSrc.indexOf(this.index) > -1){ if(this.id){ if(typeof this.id==='string'){ embedSrc=embedSrc.substr(embedSrc.lastIndexOf(this.id)+this.id.length, embedSrc.length); }else{ embedSrc=this.id.call(this, embedSrc); }} embedSrc=this.src.replace('%id%', embedSrc); return false; }}); var dataObj={}; if(iframeSt.srcAction){ dataObj[iframeSt.srcAction]=embedSrc; } mfp._parseMarkup(template, dataObj, item); mfp.updateStatus('ready'); return template; }} }); var _getLoopedId=function(index){ var numSlides=mfp.items.length; if(index > numSlides - 1){ return index - numSlides; }else if(index < 0){ return numSlides + index; } return index; }, _replaceCurrTotal=function(text, curr, total){ return text.replace(/%curr%/gi, curr + 1).replace(/%total%/gi, total); }; $.magnificPopup.registerModule('gallery', { options: { enabled: false, arrowMarkup: '', preload: [0,2], navigateByImgClick: true, arrows: true, tPrev: 'Previous (Left arrow key)', tNext: 'Next (Right arrow key)', tCounter: '%curr% of %total%' }, proto: { initGallery: function(){ var gSt=mfp.st.gallery, ns='.mfp-gallery', supportsFastClick=Boolean($.fn.mfpFastClick); mfp.direction=true; if(!gSt||!gSt.enabled) return false; _wrapClasses +=' mfp-gallery'; _mfpOn(OPEN_EVENT+ns, function(){ if(gSt.navigateByImgClick){ mfp.wrap.on('click'+ns, '.mfp-img', function(){ if(mfp.items.length > 1){ mfp.next(); return false; }}); } _document.on('keydown'+ns, function(e){ if(e.keyCode===37){ mfp.prev(); }else if(e.keyCode===39){ mfp.next(); }}); }); _mfpOn('UpdateStatus'+ns, function(e, data){ if(data.text){ data.text=_replaceCurrTotal(data.text, mfp.currItem.index, mfp.items.length); }}); _mfpOn(MARKUP_PARSE_EVENT+ns, function(e, element, values, item){ var l=mfp.items.length; values.counter=l > 1 ? _replaceCurrTotal(gSt.tCounter, item.index, l):''; }); _mfpOn('BuildControls' + ns, function(){ if(mfp.items.length > 1&&gSt.arrows&&!mfp.arrowLeft){ var markup=gSt.arrowMarkup, arrowLeft=mfp.arrowLeft=$(markup.replace(/%title%/gi, gSt.tPrev).replace(/%dir%/gi, 'left')).addClass(PREVENT_CLOSE_CLASS), arrowRight=mfp.arrowRight=$(markup.replace(/%title%/gi, gSt.tNext).replace(/%dir%/gi, 'right')).addClass(PREVENT_CLOSE_CLASS); var eName=supportsFastClick ? 'mfpFastClick':'click'; arrowLeft[eName](function(){ mfp.prev(); }); arrowRight[eName](function(){ mfp.next(); }); if(mfp.isIE7){ _getEl('b', arrowLeft[0], false, true); _getEl('a', arrowLeft[0], false, true); _getEl('b', arrowRight[0], false, true); _getEl('a', arrowRight[0], false, true); } mfp.container.append(arrowLeft.add(arrowRight)); }}); _mfpOn(CHANGE_EVENT+ns, function(){ if(mfp._preloadTimeout) clearTimeout(mfp._preloadTimeout); mfp._preloadTimeout=setTimeout(function(){ mfp.preloadNearbyImages(); mfp._preloadTimeout=null; }, 16); }); _mfpOn(CLOSE_EVENT+ns, function(){ _document.off(ns); mfp.wrap.off('click'+ns); if(mfp.arrowLeft&&supportsFastClick){ mfp.arrowLeft.add(mfp.arrowRight).destroyMfpFastClick(); } mfp.arrowRight=mfp.arrowLeft=null; }); }, next: function(){ mfp.direction=true; mfp.index=_getLoopedId(mfp.index + 1); mfp.updateItemHTML(); }, prev: function(){ mfp.direction=false; mfp.index=_getLoopedId(mfp.index - 1); mfp.updateItemHTML(); }, goTo: function(newIndex){ mfp.direction=(newIndex >=mfp.index); mfp.index=newIndex; mfp.updateItemHTML(); }, preloadNearbyImages: function(){ var p=mfp.st.gallery.preload, preloadBefore=Math.min(p[0], mfp.items.length), preloadAfter=Math.min(p[1], mfp.items.length), i; for(i=1; i <=(mfp.direction ? preloadAfter:preloadBefore); i++){ mfp._preloadItem(mfp.index+i); } for(i=1; i <=(mfp.direction ? preloadBefore:preloadAfter); i++){ mfp._preloadItem(mfp.index-i); }}, _preloadItem: function(index){ index=_getLoopedId(index); if(mfp.items[index].preloaded){ return; } var item=mfp.items[index]; if(!item.parsed){ item=mfp.parseEl(index); } _mfpTrigger('LazyLoad', item); if(item.type==='image'){ item.img=$('').on('load.mfploader', function(){ item.hasSize=true; }).on('error.mfploader', function(){ item.hasSize=true; item.loadError=true; _mfpTrigger('LazyLoadError', item); }).attr('src', item.src); } item.preloaded=true; }} }); /* Touch Support that might be implemented some day addSwipeGesture: function(){ var startX, moved, multipleTouches; return; var namespace='.mfp', addEventNames=function(pref, down, move, up, cancel){ mfp._tStart=pref + down + namespace; mfp._tMove=pref + move + namespace; mfp._tEnd=pref + up + namespace; mfp._tCancel=pref + cancel + namespace; }; if(window.navigator.msPointerEnabled){ addEventNames('MSPointer', 'Down', 'Move', 'Up', 'Cancel'); }else if('ontouchstart' in window){ addEventNames('touch', 'start', 'move', 'end', 'cancel'); }else{ return; } _window.on(mfp._tStart, function(e){ var oE=e.originalEvent; multipleTouches=moved=false; startX=oE.pageX||oE.changedTouches[0].pageX; }).on(mfp._tMove, function(e){ if(e.originalEvent.touches.length > 1){ multipleTouches=e.originalEvent.touches.length; }else{ moved=true; }}).on(mfp._tEnd + ' ' + mfp._tCancel, function(e){ if(moved&&!multipleTouches){ var oE=e.originalEvent, diff=startX - (oE.pageX||oE.changedTouches[0].pageX); if(diff > 20){ mfp.next(); }else if(diff < -20){ mfp.prev(); }} }); }, */ var RETINA_NS='retina'; $.magnificPopup.registerModule(RETINA_NS, { options: { replaceSrc: function(item){ return item.src.replace(/\.\w+$/, function(m){ return '@2x' + m; }); }, ratio: 1 }, proto: { initRetina: function(){ if(window.devicePixelRatio > 1){ var st=mfp.st.retina, ratio=st.ratio; ratio = !isNaN(ratio) ? ratio:ratio(); if(ratio > 1){ _mfpOn('ImageHasSize' + '.' + RETINA_NS, function(e, item){ item.img.css({ 'max-width': item.img[0].naturalWidth / ratio, 'width': '100%' }); }); _mfpOn('ElementParse' + '.' + RETINA_NS, function(e, item){ item.src=st.replaceSrc(item, ratio); }); }} }} }); /** * FastClick event implementation. (removes 300ms delay on touch devices) * Based on https://developers.google.com/mobile/articles/fast_buttons * * You may use it outside the Magnific Popup by calling just: * * $('.your-el').mfpFastClick(function(){ * console.log('Clicked!'); * }); * * To unbind: * $('.your-el').destroyMfpFastClick(); * * * Note that it's a very basic and simple implementation, it blocks ghost click on the same element where it was bound. * If you need something more advanced, use plugin by FT Labs https://github.com/ftlabs/fastclick * */ (function(){ var ghostClickDelay=1000, supportsTouch='ontouchstart' in window, unbindTouchMove=function(){ _window.off('touchmove'+ns+' touchend'+ns); }, eName='mfpFastClick', ns='.'+eName; $.fn.mfpFastClick=function(callback){ return $(this).each(function(){ var elem=$(this), lock; if(supportsTouch){ var timeout, startX, startY, pointerMoved, point, numPointers; elem.on('touchstart' + ns, function(e){ pointerMoved=false; numPointers=1; point=e.originalEvent ? e.originalEvent.touches[0]:e.touches[0]; startX=point.clientX; startY=point.clientY; _window.on('touchmove'+ns, function(e){ point=e.originalEvent ? e.originalEvent.touches:e.touches; numPointers=point.length; point=point[0]; if(Math.abs(point.clientX - startX) > 10 || Math.abs(point.clientY - startY) > 10){ pointerMoved=true; unbindTouchMove(); }}).on('touchend'+ns, function(e){ unbindTouchMove(); if(pointerMoved||numPointers > 1){ return; } lock=true; e.preventDefault(); clearTimeout(timeout); timeout=setTimeout(function(){ lock=false; }, ghostClickDelay); callback(); }); }); } elem.on('click' + ns, function(){ if(!lock){ callback(); }}); }); }; $.fn.destroyMfpFastClick=function(){ $(this).off('touchstart' + ns + ' click' + ns); if(supportsTouch) _window.off('touchmove'+ns+' touchend'+ns); };})(); _checkInstance(); })); ;(function ($){ "use strict"; var methods=(function (){ var c={ bcClass: 'sf-breadcrumb', menuClass: 'sf-js-enabled', anchorClass: 'sf-with-ul', menuArrowClass: 'sf-arrows' }, ios=(function (){ var ios=/iPhone|iPad|iPod/i.test(navigator.userAgent); if(ios){ $(window).load(function (){ $('body').children().on('click', $.noop); }); } return ios; })(), wp7=(function (){ var style=document.documentElement.style; return ('behavior' in style&&'fill' in style&&/iemobile/i.test(navigator.userAgent)); })(), toggleMenuClasses=function ($menu, o){ var classes=c.menuClass; if(o.cssArrows){ classes +=' ' + c.menuArrowClass; } $menu.toggleClass(classes); }, setPathToCurrent=function ($menu, o){ return $menu.find('li.' + o.pathClass).slice(0, o.pathLevels) .addClass(o.hoverClass + ' ' + c.bcClass) .filter(function (){ return ($(this).children(o.popUpSelector).hide().show().length); }).removeClass(o.pathClass); }, toggleAnchorClass=function ($li){ $li.children('a').toggleClass(c.anchorClass); }, toggleTouchAction=function ($menu){ var touchAction=$menu.css('ms-touch-action'); touchAction=(touchAction==='pan-y') ? 'auto':'pan-y'; $menu.css('ms-touch-action', touchAction); }, applyHandlers=function ($menu, o){ var targets='li:has(' + o.popUpSelector + ')'; if($.fn.hoverIntent&&!o.disableHI){ $menu.hoverIntent(over, out, targets); }else{ $menu .on('mouseenter.superfish', targets, over) .on('mouseleave.superfish', targets, out); } var touchevent='MSPointerDown.superfish'; if(!ios){ touchevent +=' touchend.superfish'; } if(wp7){ touchevent +=' mousedown.superfish'; } $menu .on('focusin.superfish', 'li', over) .on('focusout.superfish', 'li', out) .on(touchevent, 'a', o, touchHandler); }, touchHandler=function (e){ var $this=$(this), $ul=$this.siblings(e.data.popUpSelector); if($ul.length > 0&&$ul.is(':hidden')){ $this.one('click.superfish', false); if(e.type==='MSPointerDown'){ $this.trigger('focus'); }else{ $.proxy(over, $this.parent('li'))(); }} }, over=function (){ var $this=$(this), o=getOptions($this); if($(this).parents('.megamenu').length > 0) return; clearTimeout(o.sfTimer); $this.siblings().superfish('hide').end().superfish('show'); }, out=function (){ var $this=$(this), o=getOptions($this); if(ios){ $.proxy(close, $this, o)(); }else{ clearTimeout(o.sfTimer); o.sfTimer=setTimeout($.proxy(close, $this, o), o.delay); }}, close=function (o){ o.retainPath=($.inArray(this[0], o.$path) > -1); this.superfish('hide'); if(!this.parents('.' + o.hoverClass).length){ o.onIdle.call(getMenu(this)); if(o.$path.length){ $.proxy(over, o.$path)(); }} }, getMenu=function ($el){ return $el.closest('.' + c.menuClass); }, getOptions=function ($el){ return getMenu($el).data('sf-options'); }; return { hide: function (instant){ if(this.length){ var $this=this, o=getOptions($this); if(!o){ return this; } if($(this).hasClass('menu-item-over')&&$(this).hasClass('megamenu')){ return true; } var not=(o.retainPath===true) ? o.$path:'', $ul=$this.find('li.' + o.hoverClass).add(this).not(not).removeClass(o.hoverClass).children(o.popUpSelector), speed=o.speedOut; if(instant){ $ul.show(); speed=0; } o.retainPath=false; o.onBeforeHide.call($ul); if(o.dropdownStyle=='minimal'){ var $this=$(this); o.onHide.call($this); }else{ $ul.stop(true, true).animate(o.animationOut, speed, function (){ var $this=$(this); o.onHide.call($this); }); } if($(this).parents('.megamenu').length > 0) return; if($('#header-outer[data-megamenu-rt="1"]').length > 0&&$('#header-outer[data-transparent-header="true"]').length > 0){ if($('#header-outer.scrolled-down').length==0&&$('#header-outer.small-nav').length==0&&$('#header-outer.detached').length==0){ $('#header-outer').addClass('transparent'); }} } return this; }, show: function (){ if($(this).parents('.megamenu').length > 0) return; var o=getOptions(this); if(!o){ return this; } var $this=this.addClass(o.hoverClass), $ul=$this.children(o.popUpSelector); if($('#header-outer[data-megamenu-rt="1"]').length > 0&&$(this).hasClass('megamenu')){ $('#header-outer').addClass('no-transition'); $('#header-outer').removeClass('transparent'); } o.onBeforeShow.call($ul); if(!$($ul).parents('li').hasClass('megamenu')&&!$($ul).parents('ul').hasClass('sub-menu')&&$ul.offset()){ $ul.addClass('temp-hidden-display'); var docW=$("#top .container").width(); var elm=$ul; var off=elm.offset(); var l=off.left - ($(window).width() - docW)/2; var w=elm.width(); var isEntirelyVisible=(l+w <=$(window).width()-100); if(! isEntirelyVisible){ $ul.parents('li').addClass('edge'); }else{ $ul.parents('li').removeClass('edge'); } $ul.removeClass('temp-hidden-display'); } if(o.dropdownStyle=='minimal'){ o.onShow.call($ul); }else{ $ul.stop(true, true).animate(o.animation, o.speed, function (){ o.onShow.call($ul); }); } if($ul.length > 0&&$ul.parents('.sub-menu').length > 0&&$ul.parent().parent().parent().parent().hasClass('sf-menu')){ if($ul.offset().left + $ul.outerWidth() > $(window).width()){ $ul.addClass('on-left-side'); $ul.find('ul').addClass('on-left-side'); }} return this; }, destroy: function (){ return this.each(function (){ var $this=$(this), o=$this.data('sf-options'), $hasPopUp; if(!o){ return false; } $hasPopUp=$this.find(o.popUpSelector).parent('li'); clearTimeout(o.sfTimer); toggleMenuClasses($this, o); toggleAnchorClass($hasPopUp); toggleTouchAction($this); $this.off('.superfish').off('.hoverIntent'); $hasPopUp.children(o.popUpSelector).attr('style', function (i, style){ return style.replace(/display[^;]+;?/g, ''); }); o.$path.removeClass(o.hoverClass + ' ' + c.bcClass).addClass(o.pathClass); $this.find('.' + o.hoverClass).removeClass(o.hoverClass); o.onDestroy.call($this); $this.removeData('sf-options'); }); }, init: function (op){ return this.each(function (){ var $this=$(this); if($this.data('sf-options')){ return false; } var o=$.extend({}, $.fn.superfish.defaults, op), $hasPopUp=$this.find(o.popUpSelector).parent('li'); o.$path=setPathToCurrent($this, o); $this.data('sf-options', o); toggleMenuClasses($this, o); toggleAnchorClass($hasPopUp); toggleTouchAction($this); applyHandlers($this, o); $hasPopUp.not('.' + c.bcClass).superfish('hide', true); o.onInit.call(this); }); }};})(); $.fn.superfish=function (method, args){ if(methods[method]){ return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); } else if(typeof method==='object'||! method){ return methods.init.apply(this, arguments); }else{ return $.error('Method ' + method + ' does not exist on jQuery.fn.superfish'); }}; $.fn.superfish.defaults={ popUpSelector: 'ul,.sf-mega', hoverClass: 'sfHover', pathClass: 'overrideThisToUse', pathLevels: 1, delay: 800, animation: {opacity: 'show'}, animationOut: {opacity: 'hide'}, speed: 'normal', speedOut: 'fast', cssArrows: true, disableHI: false, onInit: $.noop, onBeforeShow: $.noop, onShow: $.noop, onBeforeHide: $.noop, onHide: $.noop, onIdle: $.noop, onDestroy: $.noop, dropdownStyle: ($('body[data-dropdown-style="minimal"]').length > 0) ? 'minimal':'classic' }; $.fn.extend({ hideSuperfishUl: methods.hide, showSuperfishUl: methods.show }); })(jQuery); function resizeIframe(){var e=document.getElementById("pp_full_res").getElementsByTagName("iframe"),t=e[0].contentWindow.document.body.scrollHeight;e[0].style.height=t+"px",document.getElementsByClassName("pp_content_container")[0].style.height=t+40+"px",document.getElementsByClassName("pp_content")[0].style.height=t+40+"px"}(function(){function e(){}function t(e,t){for(var a=e.length;a--;)if(e[a].listener===t)return a;return-1}function a(e){return function(){return this[e].apply(this,arguments)}}var n=e.prototype,i=this,r=i.EventEmitter;n.getListeners=function(e){var t,a,n=this._getEvents();if("object"==typeof e)for(a in t={},n)n.hasOwnProperty(a)&&e.test(a)&&(t[a]=n[a]);else t=n[e]||(n[e]=[]);return t},n.flattenListeners=function(e){var t,a=[];for(t=0;e.length>t;t+=1)a.push(e[t].listener);return a},n.getListenersAsObject=function(e){var t,a=this.getListeners(e);return a instanceof Array&&((t={})[e]=a),t||a},n.addListener=function(e,a){var n,i=this.getListenersAsObject(e),r="object"==typeof a;for(n in i)i.hasOwnProperty(n)&&-1===t(i[n],a)&&i[n].push(r?a:{listener:a,once:!1});return this},n.on=a("addListener"),n.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},n.once=a("addOnceListener"),n.defineEvent=function(e){return this.getListeners(e),this},n.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},n.removeListener=function(e,a){var n,i,r=this.getListenersAsObject(e);for(i in r)r.hasOwnProperty(i)&&(-1!==(n=t(r[i],a))&&r[i].splice(n,1));return this},n.off=a("removeListener"),n.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},n.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},n.manipulateListeners=function(e,t,a){var n,i,r=e?this.removeListener:this.addListener,o=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(n=a.length;n--;)r.call(this,t,a[n]);else for(n in t)t.hasOwnProperty(n)&&(i=t[n])&&("function"==typeof i?r.call(this,n,i):o.call(this,n,i));return this},n.removeEvent=function(e){var t,a=typeof e,n=this._getEvents();if("string"===a)delete n[e];else if("object"===a)for(t in n)n.hasOwnProperty(t)&&e.test(t)&&delete n[t];else delete this._events;return this},n.removeAllListeners=a("removeEvent"),n.emitEvent=function(e,t){var a,n,i,r=this.getListenersAsObject(e);for(i in r)if(r.hasOwnProperty(i))for(n=r[i].length;n--;)!0===(a=r[i][n]).once&&this.removeListener(e,a.listener),a.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,a.listener);return this},n.trigger=a("emitEvent"),n.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},n.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},n._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},n._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return i.EventEmitter=r,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}).call(this),function(e){function t(t){var a=e.event;return a.target=a.target||a.srcElement||t,a}var a=document.documentElement,n=function(){};a.addEventListener?n=function(e,t,a){e.addEventListener(t,a,!1)}:a.attachEvent&&(n=function(e,a,n){e[a+n]=n.handleEvent?function(){var a=t(e);n.handleEvent.call(n,a)}:function(){var a=t(e);n.call(e,a)},e.attachEvent("on"+a,e[a+n])});var i=function(){};a.removeEventListener?i=function(e,t,a){e.removeEventListener(t,a,!1)}:a.detachEvent&&(i=function(e,t,a){e.detachEvent("on"+t,e[t+a]);try{delete e[t+a]}catch(n){e[t+a]=void 0}});var r={bind:n,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",r):e.eventie=r}(this),function(e){function t(e,t){for(var a in t)e[a]=t[a];return e}function a(e){var t,a=[];if(t=e,"[object Array]"===s.call(t))a=e;else if("number"==typeof e.length)for(var n=0,i=e.length;i>n;n++)a.push(e[n]);else a.push(e);return a}function n(e,n){function s(e,n,r){if(!(this instanceof s))return new s(e,n);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=a(e),this.options=t({},this.options),"function"==typeof n?r=n:t(this.options,n),r&&this.on("always",r),this.getImages(),i&&(this.jqDeferred=new i.Deferred);var o=this;setTimeout(function(){o.check()})}function l(e){this.img=e}function d(e){this.src=e,c[e]=this}s.prototype=new e,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var a=this.elements[e];"IMG"===a.nodeName&&this.addImage(a);for(var n=a.querySelectorAll("img"),i=0,r=n.length;r>i;i++){var o=n[i];this.addImage(o)}}},s.prototype.addImage=function(e){var t=new l(e);this.images.push(t)},s.prototype.check=function(){function e(e,i){return t.options.debug&&o&&r.log("confirm",e,i),t.progress(e),++a===n&&t.complete(),!0}var t=this,a=0,n=this.images.length;if(this.hasAnyBroken=!1,n)for(var i=0;n>i;i++){var s=this.images[i];s.on("confirm",e),s.check()}else this.complete()},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var a=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[a](t)}})},i&&(i.fn.imagesLoaded=function(e,t){return new s(this,e,t).jqDeferred.promise(i(this))}),l.prototype=new e,l.prototype.check=function(){var e=c[this.img.src]||new d(this.img.src);if(e.isConfirmed)this.confirm(e.isLoaded,"cached was confirmed");else if(this.img.complete&&void 0!==this.img.naturalWidth)this.confirm(0!==this.img.naturalWidth,"naturalWidth");else{var t=this;e.on("confirm",function(e,a){return t.confirm(e.isLoaded,a),!0}),e.check()}},l.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var c={};return d.prototype=new e,d.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},d.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},d.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},d.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},d.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},d.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s}var i=e.jQuery,r=e.console,o=void 0!==r,s=Object.prototype.toString;"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],n):e.imagesLoaded=n(e.EventEmitter,e.eventie)}(window),function(){"use strict";function e(n){if(!n)throw new Error("No options passed to Waypoint constructor");if(!n.element)throw new Error("No element option passed to Waypoint constructor");if(!n.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=e.Adapter.extend({},e.defaults,n),this.element=this.options.element,this.adapter=new e.Adapter(this.element),this.callback=n.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=e.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=e.Context.findOrCreateByElement(this.options.context),e.offsetAliases[this.options.offset]&&(this.options.offset=e.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),a[this.key]=this,t+=1}var t=0,a={};e.prototype.queueTrigger=function(e){this.group.queueTrigger(this,e)},e.prototype.trigger=function(e){this.enabled&&this.callback&&this.callback.apply(this,e)},e.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete a[this.key]},e.prototype.disable=function(){return this.enabled=!1,this},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},e.prototype.next=function(){return this.group.next(this)},e.prototype.previous=function(){return this.group.previous(this)},e.invokeAll=function(e){var t=[];for(var n in a)t.push(a[n]);for(var i=0,r=t.length;r>i;i++)t[i][e]()},e.destroyAll=function(){e.invokeAll("destroy")},e.disableAll=function(){e.invokeAll("disable")},e.enableAll=function(){for(var t in e.Context.refreshAll(),a)a[t].enabled=!0;return this},e.refreshAll=function(){e.Context.refreshAll()},e.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},e.viewportWidth=function(){return document.documentElement.clientWidth},e.adapters=[],e.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},e.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=e}(),function(){"use strict";function e(e){window.setTimeout(e,1e3/60)}function t(e){this.element=e,this.Adapter=i.Adapter,this.adapter=new this.Adapter(e),this.key="waypoint-context-"+a,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},e.waypointContextKey=this.key,n[e.waypointContextKey]=this,a+=1,i.windowContext||(i.windowContext=!0,i.windowContext=new t(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var a=0,n={},i=window.Waypoint,r=window.onload;t.prototype.add=function(e){var t=e.options.horizontal?"horizontal":"vertical";this.waypoints[t][e.key]=e,this.refresh()},t.prototype.checkEmpty=function(){var e=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical),a=this.element==this.element.window;e&&t&&!a&&(this.adapter.off(".waypoints"),delete n[this.key])},t.prototype.createThrottledResizeHandler=function(){function e(){t.handleResize(),t.didResize=!1}var t=this;this.adapter.on("resize.waypoints",function(){t.didResize||(t.didResize=!0,i.requestAnimationFrame(e))})},t.prototype.createThrottledScrollHandler=function(){function e(){t.handleScroll(),t.didScroll=!1}var t=this;this.adapter.on("scroll.waypoints",function(){(!t.didScroll||i.isTouch)&&(t.didScroll=!0,i.requestAnimationFrame(e))})},t.prototype.handleResize=function(){i.Context.refreshAll()},t.prototype.handleScroll=function(){var e={},t={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var a in t){var n=t[a],i=n.newScroll>n.oldScroll?n.forward:n.backward;for(var r in this.waypoints[a]){var o=this.waypoints[a][r];if(null!==o.triggerPoint){var s=n.oldScroll=o.triggerPoint;(s&&l||!s&&!l)&&(o.queueTrigger(i),e[o.group.id]=o.group)}}}for(var d in e)e[d].flushTriggers();this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},t.prototype.innerHeight=function(){return this.element==this.element.window?i.viewportHeight():this.adapter.innerHeight()},t.prototype.remove=function(e){delete this.waypoints[e.axis][e.key],this.checkEmpty()},t.prototype.innerWidth=function(){return this.element==this.element.window?i.viewportWidth():this.adapter.innerWidth()},t.prototype.destroy=function(){var e=[];for(var t in this.waypoints)for(var a in this.waypoints[t])e.push(this.waypoints[t][a]);for(var n=0,i=e.length;i>n;n++)e[n].destroy()},t.prototype.refresh=function(){var e,t=this.element==this.element.window,a=t?void 0:this.adapter.offset(),n={};for(var r in this.handleScroll(),e={horizontal:{contextOffset:t?0:a.left,contextScroll:t?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:t?0:a.top,contextScroll:t?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var o=e[r];for(var s in this.waypoints[r]){var l,d,c,h,u=this.waypoints[r][s],p=u.options.offset,f=u.triggerPoint,g=0,m=null==f;u.element!==u.element.window&&(g=u.adapter.offset()[o.offsetProp]),"function"==typeof p?p=p.apply(u):"string"==typeof p&&(p=parseFloat(p),u.options.offset.indexOf("%")>-1&&(p=Math.ceil(o.contextDimension*p/100))),l=o.contextScroll-o.contextOffset,u.triggerPoint=Math.floor(g+l-p),d=f=o.oldScroll,h=!d&&!c,!m&&(d&&c)?(u.queueTrigger(o.backward),n[u.group.id]=u.group):!m&&h?(u.queueTrigger(o.forward),n[u.group.id]=u.group):m&&o.oldScroll>=u.triggerPoint&&(u.queueTrigger(o.forward),n[u.group.id]=u.group)}}return i.requestAnimationFrame(function(){for(var e in n)n[e].flushTriggers()}),this},t.findOrCreateByElement=function(e){return t.findByElement(e)||new t(e)},t.refreshAll=function(){for(var e in n)n[e].refresh()},t.findByElement=function(e){return n[e.waypointContextKey]},window.onload=function(){r&&r(),t.refreshAll()},i.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},i.Context=t}(),function(){"use strict";function e(e,t){return e.triggerPoint-t.triggerPoint}function t(e,t){return t.triggerPoint-e.triggerPoint}function a(e){this.name=e.name,this.axis=e.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}var n={vertical:{},horizontal:{}},i=window.Waypoint;a.prototype.add=function(e){this.waypoints.push(e)},a.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},a.prototype.flushTriggers=function(){for(var a in this.triggerQueues){var n=this.triggerQueues[a],i="up"===a||"left"===a;n.sort(i?t:e);for(var r=0,o=n.length;o>r;r+=1){var s=n[r];(s.options.continuous||r===n.length-1)&&s.trigger([a])}}this.clearTriggerQueues()},a.prototype.next=function(t){this.waypoints.sort(e);var a=i.Adapter.inArray(t,this.waypoints);return a===this.waypoints.length-1?null:this.waypoints[a+1]},a.prototype.previous=function(t){this.waypoints.sort(e);var a=i.Adapter.inArray(t,this.waypoints);return a?this.waypoints[a-1]:null},a.prototype.queueTrigger=function(e,t){this.triggerQueues[t].push(e)},a.prototype.remove=function(e){var t=i.Adapter.inArray(e,this.waypoints);t>-1&&this.waypoints.splice(t,1)},a.prototype.first=function(){return this.waypoints[0]},a.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},a.findOrCreate=function(e){return n[e.axis][e.name]||new a(e)},i.Group=a}(),function(){"use strict";function e(e){this.$element=t(e)}var t=window.jQuery,a=window.Waypoint;t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,a){e.prototype[a]=function(){var e=Array.prototype.slice.call(arguments);return this.$element[a].apply(this.$element,e)}}),t.each(["extend","inArray","isEmptyObject"],function(a,n){e[n]=t[n]}),a.adapters.push({name:"jquery",Adapter:e}),a.Adapter=e}(),function(){"use strict";function e(e){return function(){var a=[],n=arguments[0];return e.isFunction(arguments[0])&&((n=e.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var i=e.extend({},n,{element:this});"string"==typeof i.context&&(i.context=e(this).closest(i.context)[0]),a.push(new t(i))}),a}}var t=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}(),function(e){var t=e(window);e.fn.visible=function(e,a,n){if(!(this.length<1)){var i=this.length>1?this.eq(0):this,r=i.get(0),o=t.width(),s=t.height(),l=(n=n||"both",!0!==a||r.offsetWidth*r.offsetHeight);if("function"==typeof r.getBoundingClientRect){var d=r.getBoundingClientRect(),c=d.top>=0&&d.top0&&d.bottom<=s,u=d.left>=0&&d.left0&&d.right<=o,f=e?c||h:c&&h,g=e?u||p:u&&p;if("both"===n)return l&&f&&g;if("vertical"===n)return l&&f;if("horizontal"===n)return l&&g}else{var m=t.scrollTop(),b=m+s,v=t.scrollLeft(),w=v+o,y=i.offset(),_=y.top,x=_+i.height(),C=y.left,k=C+i.width(),$=!0===e?x:_,T=!0===e?_:x,I=!0===e?k:C,O=!0===e?C:k;if("both"===n)return!!l&&b>=T&&$>=m&&w>=O&&I>=v;if("vertical"===n)return!!l&&b>=T&&$>=m;if("horizontal"===n)return!!l&&w>=O&&I>=v}}}}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,a,n,i){return jQuery.easing[jQuery.easing.def](e,t,a,n,i)},easeInQuad:function(e,t,a,n,i){return n*(t/=i)*t+a},easeOutQuad:function(e,t,a,n,i){return-n*(t/=i)*(t-2)+a},easeInOutQuad:function(e,t,a,n,i){return(t/=i/2)<1?n/2*t*t+a:-n/2*(--t*(t-2)-1)+a},easeInCubic:function(e,t,a,n,i){return n*(t/=i)*t*t+a},easeOutCubic:function(e,t,a,n,i){return n*((t=t/i-1)*t*t+1)+a},easeInOutCubic:function(e,t,a,n,i){return(t/=i/2)<1?n/2*t*t*t+a:n/2*((t-=2)*t*t+2)+a},easeInQuart:function(e,t,a,n,i){return n*(t/=i)*t*t*t+a},easeOutQuart:function(e,t,a,n,i){return-n*((t=t/i-1)*t*t*t-1)+a},easeInOutQuart:function(e,t,a,n,i){return(t/=i/2)<1?n/2*t*t*t*t+a:-n/2*((t-=2)*t*t*t-2)+a},easeInQuint:function(e,t,a,n,i){return n*(t/=i)*t*t*t*t+a},easeOutQuint:function(e,t,a,n,i){return n*((t=t/i-1)*t*t*t*t+1)+a},easeInOutQuint:function(e,t,a,n,i){return(t/=i/2)<1?n/2*t*t*t*t*t+a:n/2*((t-=2)*t*t*t*t+2)+a},easeInSine:function(e,t,a,n,i){return-n*Math.cos(t/i*(Math.PI/2))+n+a},easeOutSine:function(e,t,a,n,i){return n*Math.sin(t/i*(Math.PI/2))+a},easeInOutSine:function(e,t,a,n,i){return-n/2*(Math.cos(Math.PI*t/i)-1)+a},easeInExpo:function(e,t,a,n,i){return 0==t?a:n*Math.pow(2,10*(t/i-1))+a},easeOutExpo:function(e,t,a,n,i){return t==i?a+n:n*(1-Math.pow(2,-10*t/i))+a},easeInOutExpo:function(e,t,a,n,i){return 0==t?a:t==i?a+n:(t/=i/2)<1?n/2*Math.pow(2,10*(t-1))+a:n/2*(2-Math.pow(2,-10*--t))+a},easeInCirc:function(e,t,a,n,i){return-n*(Math.sqrt(1-(t/=i)*t)-1)+a},easeOutCirc:function(e,t,a,n,i){return n*Math.sqrt(1-(t=t/i-1)*t)+a},easeInOutCirc:function(e,t,a,n,i){return(t/=i/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+a:n/2*(Math.sqrt(1-(t-=2)*t)+1)+a},easeInElastic:function(e,t,a,n,i){var r=1.70158,o=0,s=n;if(0==t)return a;if(1==(t/=i))return a+n;if(o||(o=.3*i),sp)&&(r=p,n(o,p)&&(r/=40)),n(o,p)&&(d/=40,h/=40,u/=40),d=Math[d>=1?"floor":"ceil"](d/r),h=Math[h>=1?"floor":"ceil"](h/r),u=Math[u>=1?"floor":"ceil"](u/r),c.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();f=t.clientX-v.left,g=t.clientY-v.top}return t.deltaX=h,t.deltaY=u,t.deltaFactor=r,t.offsetX=f,t.offsetY=g,t.deltaMode=0,s.unshift(t,d,h,u),i&&clearTimeout(i),i=setTimeout(a,200),(e.event.dispatch||e.event.handle).apply(this,s)}}function a(){r=null}function n(e,t){return c.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var i,r,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var d=o.length;d;)e.event.fixHooks[o[--d]]=e.event.mouseHooks;var c=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var a=s.length;a;)this.addEventListener(s[--a],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",c.getLineHeight(this)),e.data(this,"mousewheel-page-height",c.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var a=s.length;a;)this.removeEventListener(s[--a],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var a=e(t),n=a["offsetParent"in e.fn?"offsetParent":"parent"]();return n.length||(n=e("body")),parseInt(n.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),function(e,t,a){jQuery(a).ready(function(e){function n(){(e('body[data-ls="magnific"]').length>0||e('body[data-ls="pretty_photo"]').length>0)&&(e("a.pp").removeClass("pp").addClass("magnific-popup"),e("a[rel^='prettyPhoto']:not([rel*='_gal']):not([rel*='product-gallery']):not([rel*='prettyPhoto['])").removeAttr("rel").addClass("magnific-popup"),e(".wpb_gallery .wpb_gallery_slidesnectarslider_style").each(function(){Math.floor(1e4*Math.random()),e(this).find(".swiper-slide a:not(.ext-url-link)").addClass("pretty_photo")}),e(".wpb_gallery_slides.wpb_flexslider").each(function(){Math.floor(1e4*Math.random()),e(this).find(".slides > li > a").addClass("pretty_photo")}),e(".wpb_gallery_slidesflickity_style").each(function(){Math.floor(1e4*Math.random()),e(this).find(".cell > a:not(.ext-url-link)").addClass("pretty_photo")}),e(".portfolio-items, .wpb_gallery .swiper-slide, .wpb_gallery_slidesflickity_style .cell, .wpb_gallery_slides.wpb_flexslider ul > li, .wpb_gallery .parallax-grid-item").each(function(){e(this).find(".pretty_photo").length>0?e(this).find(".pretty_photo").removeClass("pretty_photo").addClass("gallery").addClass("magnific"):e(this).find('a[rel*="prettyPhoto["]').length>0&&e(this).find('a[rel*="prettyPhoto["]').removeAttr("rel").addClass("gallery").addClass("magnific")}),e("a[data-rel='prettyPhoto[product-gallery]']").each(function(){e(this).removeAttr("data-rel").addClass("magnific").addClass("gallery")}),e("body").hasClass("nectar-auto-lightbox")&&(e(".gallery").each(function(){0==e(this).find('.gallery-icon a[rel^="prettyPhoto"]').length&&(Math.floor(1e4*Math.random()),e(this).find('.gallery-item .gallery-icon a[href*=".jpg"], .gallery-item .gallery-icon a[href*=".png"], .gallery-item .gallery-icon a[href*=".gif"], .gallery-item .gallery-icon a[href*=".jpeg"]').addClass("magnific").addClass("gallery").removeClass("pretty_photo"))}),e(".main-content img").each(function(){e(this).parent().is("[href]")&&!e(this).parent().is(".magnific-popup")&&0==e(this).parents(".product-image").length&&0==e(this).parents(".iosSlider.product-slider").length&&e(this).parent().attr("href").match(/\.(jpg|png|gif)\b/)&&e(this).parent().addClass("magnific-popup").addClass("image-link")})),e("a.magnific-popup:not(.gallery):not(.nectar_video_lightbox)").magnificPopup({type:"image",callbacks:{imageLoadComplete:function(){var e=this;setTimeout(function(){e.wrap.addClass("mfp-image-loaded")},10)},beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim")},open:function(){e.magnificPopup.instance.next=function(){var t=this;this.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){e.magnificPopup.proto.next.call(t)},100)},e.magnificPopup.instance.prev=function(){var t=this;this.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){e.magnificPopup.proto.prev.call(t)},100)}}},fixedContentPos:!1,mainClass:"mfp-zoom-in",removalDelay:400}),e("a.magnific-popup.nectar_video_lightbox, .magnific_nectar_video_lightbox a.link_text, .swiper-slide a[href*=youtube], .swiper-slide a[href*=vimeo], .nectar-video-box a.full-link.magnific-popup").magnificPopup({type:"iframe",fixedContentPos:!1,mainClass:"mfp-zoom-in",removalDelay:400}),e("a.magnific.gallery").each(function(){var t=e(this).closest(".wpb_column").length>0?e(this).closest(".wpb_column"):e(this).parents(".row");t.length>0&&!t.hasClass("lightbox-col")&&(t.magnificPopup({type:"image",delegate:"a.magnific",mainClass:"mfp-zoom-in",fixedContentPos:!1,callbacks:{elementParse:function(t){e(t.el.context).is("[href]")&&-1!=e(t.el.context).attr("href").indexOf("iframe=true")||e(t.el.context).is("[href]")&&-1!=e(t.el.context).attr("href").indexOf("https://www.youtube.com/watch")?t.type="iframe":e(t.el.context).is("[href]")&&-1!=e(t.el.context).attr("href").indexOf("video-popup-")?t.type="inline":t.type="image"},imageLoadComplete:function(){var e=this;setTimeout(function(){e.wrap.addClass("mfp-image-loaded")},10)},beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim")},open:function(){if(e(this.content).find(".mejs-video video").length>0&&e().mediaelementplayer){e(this.content).find(".mejs-video video")[0].player.remove();var t=this;setTimeout(function(){e(t.content).find("video").mediaelementplayer(),e(t.content).find(".mejs-video video")[0].player.play()},50)}e.magnificPopup.instance.next=function(){var t=this;this.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){e.magnificPopup.proto.next.call(t),e(t.content).find(".mejs-video video").length>0&&e(t.content).find(".mejs-video video")[0].play()},100)},e.magnificPopup.instance.prev=function(){var t=this;this.wrap.removeClass("mfp-image-loaded"),setTimeout(function(){e.magnificPopup.proto.prev.call(t),e(t.content).find(".mejs-video video").length>0&&e(t.content).find(".mejs-video video")[0].play()},100)}},close:function(){e(this.content).find(".mejs-video video").length>0&&e(this.content).find(".mejs-video video")[0].load()}},removalDelay:400,gallery:{enabled:!0}}),t.addClass("lightbox-col"))}))}n(),setTimeout(n,500),function(e){e.transit={version:"0.9.9",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:!0,useTransitionEnd:!1};var n=a.createElement("div"),i={};function r(e){if(e in n.style)return e;var t=["Moz","Webkit","O","ms"],a=e.charAt(0).toUpperCase()+e.substr(1);if(e in n.style)return e;for(var i=0;i-1;i.transition=r("transition"),i.transitionDelay=r("transitionDelay"),i.transform=r("transform"),i.transformOrigin=r("transformOrigin"),i.transform3d=(n.style[i.transform]="",n.style[i.transform]="rotateY(90deg)",""!==n.style[i.transform]);var s=i.transitionEnd={transition:"transitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"}[i.transition]||null;for(var l in i)i.hasOwnProperty(l)&&void 0===e.support[l]&&(e.support[l]=i[l]);function d(e){return"string"==typeof e&&this.parse(e),this}function c(e,t,a){!0===t?e.queue(a):t?e.queue(t,a):a()}function h(t,a,n,i){var r,o,s=(r=t,o=[],e.each(r,function(t){t=e.camelCase(t),t=(t=e.transit.propertyMap[t]||e.cssProps[t]||t).replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}),-1===e.inArray(t,o)&&o.push(t)}),o);e.cssEase[n]&&(n=e.cssEase[n]);var l=f(a)+" "+n;parseInt(i,10)>0&&(l+=" "+f(i));var d=[];return e.each(s,function(e,t){d.push(t+" "+l)}),d.join(", ")}function u(t,a){a||(e.cssNumber[t]=!0),e.transit.propertyMap[t]=i.transform,e.cssHooks[t]={get:function(a){return e(a).css("transit:transform").get(t)},set:function(a,n){var i=e(a).css("transit:transform");i.setFromString(t,n),e(a).css({"transit:transform":i})}}}function p(e,t){return"string"!=typeof e||e.match(/^[\-0-9\.]+$/)?""+e+t:e}function f(t){var a=t;return e.fx.speeds[a]&&(a=e.fx.speeds[a]),p(a,"ms")}n=null,e.cssEase={_default:"ease",in:"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"},e.cssHooks["transit:transform"]={get:function(t){return e(t).data("transform")||new d},set:function(t,a){var n=a;n instanceof d||(n=new d(n)),"WebkitTransform"!==i.transform||o?t.style[i.transform]=n.toString():t.style[i.transform]=n.toString(!0),e(t).data("transform",n)}},e.cssHooks.transform={set:e.cssHooks["transit:transform"].set},e.fn.jquery<"1.8"&&(e.cssHooks.transformOrigin={get:function(e){return e.style[i.transformOrigin]},set:function(e,t){e.style[i.transformOrigin]=t}},e.cssHooks.transition={get:function(e){return e.style[i.transition]},set:function(e,t){e.style[i.transition]=t}}),u("scale"),u("translate"),u("rotate"),u("rotateX"),u("rotateY"),u("rotate3d"),u("perspective"),u("skewX"),u("skewY"),u("x",!0),u("y",!0),d.prototype={setFromString:function(e,t){var a="string"==typeof t?t.split(","):t.constructor===Array?t:[t];a.unshift(e),d.prototype.set.apply(this,a)},set:function(e){var t=Array.prototype.slice.apply(arguments,[1]);this.setter[e]?this.setter[e].apply(this,t):this[e]=t.join(",")},get:function(e){return this.getter[e]?this.getter[e].apply(this):this[e]||0},setter:{rotate:function(e){this.rotate=p(e,"deg")},rotateX:function(e){this.rotateX=p(e,"deg")},rotateY:function(e){this.rotateY=p(e,"deg")},scale:function(e,t){void 0===t&&(t=e),this.scale=e+","+t},skewX:function(e){this.skewX=p(e,"deg")},skewY:function(e){this.skewY=p(e,"deg")},perspective:function(e){this.perspective=p(e,"px")},x:function(e){this.set("translate",e,null)},y:function(e){this.set("translate",null,e)},translate:function(e,t){void 0===this._translateX&&(this._translateX=0),void 0===this._translateY&&(this._translateY=0),null!=e&&(this._translateX=p(e,"px")),null!=t&&(this._translateY=p(t,"px")),this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var e=(this.scale||"1,1").split(",");return e[0]&&(e[0]=parseFloat(e[0])),e[1]&&(e[1]=parseFloat(e[1])),e[0]===e[1]?e[0]:e},rotate3d:function(){for(var e=(this.rotate3d||"0,0,0,0deg").split(","),t=0;t<=3;++t)e[t]&&(e[t]=parseFloat(e[t]));return e[3]&&(e[3]=p(e[3],"deg")),e}},parse:function(e){var t=this;e.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(e,a,n){t.setFromString(a,n)})},toString:function(e){var t=[];for(var a in this)if(this.hasOwnProperty(a)){if(!i.transform3d&&("rotateX"===a||"rotateY"===a||"perspective"===a||"transformOrigin"===a))continue;"_"!==a[0]&&(e&&"scale"===a?t.push(a+"3d("+this[a]+",1)"):e&&"translate"===a?t.push(a+"3d("+this[a]+",0)"):t.push(a+"("+this[a]+")"))}return t.join(" ")}},e.fn.transition=e.fn.transit=function(a,n,r,o){var l=this,d=0,u=!0;"function"==typeof n&&(o=n,n=void 0),"function"==typeof r&&(o=r,r=void 0),void 0!==a.easing&&(r=a.easing,delete a.easing),void 0!==a.duration&&(n=a.duration,delete a.duration),void 0!==a.complete&&(o=a.complete,delete a.complete),void 0!==a.queue&&(u=a.queue,delete a.queue),void 0!==a.delay&&(d=a.delay,delete a.delay),void 0===n&&(n=e.fx.speeds._default),void 0===r&&(r=e.cssEase._default),n=f(n);var p=h(a,n,r,d),g=e.transit.enabled&&i.transition?parseInt(n,10)+parseInt(d,10):0;if(0===g){return c(l,u,function(e){l.css(a),o&&o.apply(l),e&&e()}),l}var m={};return c(l,u,function(n){var r,d,c;this.offsetWidth,r=n,d=!1,c=function(){d&&l.unbind(s,c),g>0&&l.each(function(){this.style[i.transition]=m[this]||null}),"function"==typeof o&&o.apply(l),"function"==typeof r&&r()},g>0&&s&&e.transit.useTransitionEnd?(d=!0,l.bind(s,c)):t.setTimeout(c,g),l.each(function(){g>0&&(this.style[i.transition]=p),e(this).css(a)})}),this},e.transit.getTransitionValue=h}(jQuery);var i,r=e.event,o=e.event.handle?"handle":"dispatch";r.special.smartresize={setup:function(){e(this).bind("resize",r.special.smartresize.handler)},teardown:function(){e(this).unbind("resize",r.special.smartresize.handler)},handler:function(e,t){var a=this,n=arguments;e.type="smartresize",i&&clearTimeout(i),i=setTimeout(function(){r[o].apply(a,n)},"execAsap"===t?0:100)}},e.fn.smartresize=function(e){return e?this.bind("smartresize",e):this.trigger("smartresize",["execAsap"])};var s,l=[],d=[],c=[];function h(){e("html").niceScroll({scrollspeed:60,mousescrollstep:40,cursorwidth:15,cursorborder:0,cursorcolor:"#303030",cursorborderradius:6,autohidemode:!1,horizrailenabled:!1}),0==e("#boxed").length?e("body, body #header-outer, body #header-secondary-outer, body #search-outer").css("padding-right","16px"):0==e('body[data-ext-responsive="true"]').length&&e("body").css("padding-right","16px"),e("html").addClass("no-overflow-y")}var u=e("body").attr("data-smooth-scrolling"),p=1==u;function f(){e(".flex-gallery").each(function(){var t=e(this);imagesLoaded(e(this),function(a){t.flexslider({animation:"fade",smoothHeight:!1,animationSpeed:500,useCSS:!1,touch:!0}),e(".flex-gallery .flex-direction-nav li a.flex-next").html(''),e(".flex-gallery .flex-direction-nav li a.flex-prev").html('')})})}function g(){if(0==e(".nectar-flickity:not(.masonry)").length)return!1;var a=[];e(".nectar-flickity:not(.masonry)").each(function(n){e(this).addClass("instance-"+n);var i=!(!e(this).is("[data-free-scroll]")||"true"!=e(this).attr("data-free-scroll")),r=!0,o=!0,s=.025,l="center";if(e(this).is('[data-format="fixed_text_content_fullwidth"]')&&(l="left",r=!1,o=!1,s=.02),1==i&&(r=!1),e(this).attr("data-controls").length>0&&"next_prev_arrows"==e(this).attr("data-controls"))var d=!1,c=!0;else d=!0,c=!1;if(e(this).attr("data-controls").length>0&&"none"==e(this).attr("data-controls"))d=!1,c=!1;var h=!1,u=.025;e(this).is("[data-autoplay]")&&"true"==e(this).attr("data-autoplay")&&(h=!0,u=.019,e(this).is("[data-autoplay-dur]")&&e(this).attr("data-autoplay-dur").length>0&&parseInt(e(this).attr("data-autoplay-dur"))>100&&parseInt(e(this).attr("data-autoplay-dur"))<3e4&&(h=parseInt(e(this).attr("data-autoplay-dur"))));var p,f=e(this);if(a[n]=new Flickity(".nectar-flickity.instance-"+n,{contain:o,draggable:!0,lazyLoad:!1,imagesLoaded:!0,percentPosition:!0,cellAlign:l,selectedAttraction:u,groupCells:r,prevNextButtons:c,freeScroll:i,pageDots:d,resize:!0,selectedAttraction:s,autoPlay:h,pauseAutoPlayOnHover:!1,setGallerySize:!0,wrapAround:!0,accessibility:!1,arrowShape:{x0:20,x1:70,y1:30,x2:70,y2:25,x3:70}}),e(this).is('[data-format="fixed_text_content_fullwidth"]')){var g=navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/);a[n].on("scroll",function(){if(!g){a[n];var i=f.find(".cell").outerWidth()+25,r=e('body[data-header-format="left-header"]').length>0&&e(t).width()>1e3?275:0,o=(e(t).width()+r-f.parents(".main-content").width())/2;o+=parseInt(f.css("margin-left"))+2,a[n].slides.forEach(function(t,a){var r=1,s=0,l=0,d=10,c=1,h=e(t.cells[0].element).offset().left,u=e(".nectar-flickity.instance-"+n+" .cell:nth-child("+(a+1)+")");h-o<0&&h-o>-1*i?(r=1+(h-o)/1500,c=1+(h-o+70)/550,s=-1*(h-o),l=(h-o)/25*-1):(r=1,c=1,s=0,l=0),d=h+5-o<0&&h-o>-1*i?5:10,u.css({"z-index":d}),u.find(".inner-wrap-outer").css({transform:"perspective(800px) translateX("+s+"px) rotateY("+l+"deg) translateZ(0)",opacity:c}),u.find(".inner-wrap").css({transform:"scale("+r+") translateZ(0)"})})}})}a[n].on("dragStart",function(){clearTimeout(p),f.addClass("is-dragging"),f.find(".flickity-prev-next-button").addClass("hidden")}),a[n].on("dragEnd",function(){f.removeClass("is-dragging"),p=setTimeout(function(){f.find(".flickity-prev-next-button").removeClass("hidden")},600)}),e(".flickity-prev-next-button").on("click",function(){clearTimeout(p),e(this).parents(".nectar-flickity").find(".flickity-prev-next-button").addClass("hidden"),p=setTimeout(function(){f.find(".flickity-prev-next-button").removeClass("hidden")},600)}),f.hasClass("nectar-carousel")&&imagesLoaded(f,function(e){m(f)})})}function m(t){var a=0;t.find(".flickity-slider > .cell").css("height","auto"),t.find(".flickity-slider > .cell").each(function(){a=e(this).height()>a?e(this).height():a}),a<10&&(a="auto"),t.find(".flickity-slider > .cell").css("height",a+"px")}function b(){if(0==e(".nectar-flickity.masonry.not-initialized").length)return!1;e(".nectar-flickity.masonry.not-initialized").each(function(){e(this).parents("article").hasClass("large_featured")&&e(this).insertBefore(e(this).parents("article").find(".content-inner"))}),e(".nectar-flickity.masonry.not-initialized").flickity({contain:!0,draggable:!1,lazyLoad:!1,imagesLoaded:!0,percentPosition:!0,prevNextButtons:!0,pageDots:!1,resize:!0,setGallerySize:!0,wrapAround:!0,accessibility:!1}),e(".nectar-flickity.masonry").removeClass("not-initialized"),e(".nectar-flickity.masonry:not(.not-initialized)").each(function(){0==e(this).find(".item-count").length&&(e('
').insertBefore(e(this).find(".flickity-prev-next-button.next")),e(this).find(".item-count").html('1/'+e(this).find(".flickity-slider .cell").length+""),e(this).find(".flickity-prev-next-button, .item-count").wrapAll('
'),e(this).parents("article").hasClass("wide_tall")&&0==e(this).parents(".masonry.material").length&&e(this).find(".control-wrap").insertBefore(e(this)))}),e(".masonry .flickity-prev-next-button.previous, .masonry .flickity-prev-next-button.next").click(function(){e(this).parents(".wide_tall").length>0?e(this).parent().find(".item-count .current").html(e(this).parents("article").find(".nectar-flickity .cell.is-selected").index()+1):e(this).parent().find(".item-count .current").html(e(this).parents(".nectar-flickity").find(".cell.is-selected").index()+1)}),e("body").on("mouseover",".flickity-prev-next-button.next",function(){e(this).parent().find(".flickity-prev-next-button.previous, .item-count").addClass("next-hovered")}),e("body").on("mouseleave",".flickity-prev-next-button.next",function(){e(this).parent().find(".flickity-prev-next-button.previous, .item-count").removeClass("next-hovered")})}1==u&&e(t).width()>690&&e("body").outerHeight(!0)>e(t).height()&&Modernizr.csstransforms3d&&!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)?h():e("body").attr("data-smooth-scrolling","0"),0==p&&0==e("body.material").length&&-1===navigator.platform.toUpperCase().indexOf("MAC")&&!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)&&e(t).width()>690&&0==e("#nectar_fullscreen_rows").length&&function(){function e(){f.keyboardSupport&&l("keydown",r)}function n(){if(a.body){var n=a.body,i=a.documentElement,r=t.innerHeight,o=n.scrollHeight;if(w=a.compatMode.indexOf("CSS")>=0?i:n,u=n,e(),v=!0,top!=self)m=!0;else if(o>r&&(n.offsetHeight<=r||i.offsetHeight<=r)){var s=!1;if(i.style.height="auto",setTimeout(function(){s||i.scrollHeight==a.height||(s=!0,setTimeout(function(){i.style.height=a.height+"px",s=!1},500))},10),w.offsetHeight<=r){var l=a.createElement("div");l.style.clear="both",n.appendChild(l)}}f.fixedBackground||g||(n.style.backgroundAttachment="scroll",i.style.backgroundAttachment="scroll")}}function i(e,n,i,r){if(r||(r=1e3),l=(l=n)>0?1:-1,d=(d=i)>0?1:-1,(b.x!==l||b.y!==d)&&(b.x=l,b.y=d,x=[],k=0),1!=f.accelerationMax){var o=+new Date-k;if(o1&&(s=Math.min(s,f.accelerationMax),n*=s,i*=s)}k=+new Date}var l,d;if(x.push({x:n,y:i,lastX:0>n?.99:-.99,lastY:0>i?.99:-.99,start:+new Date}),!C){var c=e===a.body,u=function(){for(var a=+new Date,o=0,s=0,l=0;l=f.animationTime,m=g?1:p/f.animationTime;f.pulseAlgorithm&&(m=(w=m)>=1?1:0>=w?0:(1==f.pulseNormalize&&(f.pulseNormalize/=h(1)),h(w)));var b=d.x*m-d.lastX>>0,v=d.y*m-d.lastY>>0;o+=b,s+=v,d.lastX+=b,d.lastY+=v,g&&(x.splice(l,1),l--)}var w;c?t.scrollBy(o,s):(o&&(e.scrollLeft+=o),s&&(e.scrollTop+=s)),n||i||(x=[]),x.length?z(u,e,r/f.frameRate+1):C=!1};z(u,e,0),C=!0}}function r(e){var n=e.target,r=e.ctrlKey||e.altKey||e.metaKey||e.shiftKey&&e.keyCode!==_.spacebar;if(/input|textarea|select|embed/i.test(n.nodeName)||n.isContentEditable||e.defaultPrevented||r)return!0;if(d(n,"button")&&e.keyCode===_.spacebar)return!0;var o=0,l=0,c=s(u),h=c.clientHeight;switch(c==a.body&&(h=t.innerHeight),e.keyCode){case _.up:l=-f.arrowScroll;break;case _.down:l=f.arrowScroll;break;case _.spacebar:l=-(e.shiftKey?1:-1)*h*.9;break;case _.pageup:l=.9*-h;break;case _.pagedown:l=.9*h;break;case _.home:l=-c.scrollTop;break;case _.end:var p=c.scrollHeight-c.scrollTop-h;l=p>0?p+10:0;break;case _.left:o=-f.arrowScroll;break;case _.right:o=f.arrowScroll;break;default:return!0}i(c,o,l),e.preventDefault()}function o(e,t){for(var a=e.length;a--;)$[O(e[a])]=t;return t}function s(e){var t=[],n=w.scrollHeight;do{var i=$[O(e)];if(i)return o(t,i);if(t.push(e),n===e.scrollHeight){if(!m||w.clientHeight+10(e*=f.pulseScale)?t=e-(1-Math.exp(-e)):(e-=1,t=(a=Math.exp(-1))+(1-Math.exp(-e))*(1-a)),t*f.pulseNormalize}var u,p={frameRate:150,animationTime:500,stepSize:120,pulseAlgorithm:!0,pulseScale:8,pulseNormalize:1,accelerationDelta:20,accelerationMax:1,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!0,fixedBackground:!0,excluded:""},f=p,g=!1,m=!1,b={x:0,y:0},v=!1,w=a.documentElement,y=[120,120,120],_={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},x=(f=p,[]),C=!1,k=+new Date,$={};setInterval(function(){$={}},1e4);var T,I,O=(I=0,function(e){return e.uniqueID||(e.uniqueID=I++)}),z=t.requestAnimationFrame||t.webkitRequestAnimationFrame||function(e,a,n){t.setTimeout(e,n||1e3/60)},M=/chrome/i.test(t.navigator.userAgent),S=null;"onwheel"in a.createElement("div")?S="wheel":"onmousewheel"in a.createElement("div")&&(S="mousewheel"),S&&M&&(l(S,function(e){v||n();var t=e.target,a=s(t);if(!a||e.defaultPrevented||d(u,"embed")||d(t,"embed")&&/\.pdf/i.test(t.src))return!0;var r=e.wheelDeltaX||0,o=e.wheelDeltaY||0;return r||o||(o=e.wheelDelta||0),!(f.touchpadSupport||!function(e){if(e){e=Math.abs(e),y.push(e),y.shift(),clearTimeout(T);var t=c(y[0],120)&&c(y[1],120)&&c(y[2],120);return!t}}(o))||(Math.abs(r)>1.2&&(r*=f.stepSize/120),Math.abs(o)>1.2&&(o*=f.stepSize/120),i(a,-r,-o),void e.preventDefault())}),l("mousedown",function(e){u=e.target}),l("load",n))}(),f(),setTimeout(g,100),e(".twentytwenty-container").each(function(){var t=e(this);e(this).imagesLoaded(function(){t.twentytwenty()})});var v="",w=e("#nectar_fullscreen_rows[data-mobile-disable]").length>0?e("#nectar_fullscreen_rows").attr("data-mobile-disable"):"off",y=navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/);if(y||(w="off"),"on"==w&&e("#nectar_fullscreen_rows").length>0&&(e("#nectar_fullscreen_rows > .wpb_row[data-fullscreen-anchor-id]").each(function(){e(this).attr("data-fullscreen-anchor-id").length>0&&e(this).attr("id",e(this).attr("data-fullscreen-anchor-id"))}),e(".container-wrap .main-content > .row").css({"padding-bottom":"0"}),e("#nectar_fullscreen_rows > .wpb_row:nth-child(1)").length>0&&e('#header-outer[data-transparent-header="true"]').length>0&&!e("#nectar_fullscreen_rows > .wpb_row:nth-child(1)").hasClass("full-width-content")&&e("#nectar_fullscreen_rows > .wpb_row:nth-child(1)").addClass("extra-top-padding")),e("#nectar_fullscreen_rows").length>0&&"on"!=w||e().fullpage&&"on"!=w){function _(t,a){if(!(e("#boxed").length>0&&j>750))if(e("#nectar_fullscreen_rows > .wpb_row:nth-child("+t+")").find(".span_12.light").length>0?(e("#fp-nav").addClass("light-controls"),"up"==a?e("#header-outer.dark-slide").removeClass("dark-slide"):setTimeout(function(){e("#header-outer.dark-slide").removeClass("dark-slide")},520)):(e("#fp-nav.light-controls").removeClass("light-controls"),"up"==a?e("#header-outer").addClass("dark-slide"):setTimeout(function(){e("#header-outer").addClass("dark-slide")},520)),e("#nectar_fullscreen_rows > .wpb_row:nth-child("+t+")").find('.nectar-slider-wrap[data-fullscreen="true"]').length>0){var n=e("#nectar_fullscreen_rows > .wpb_row:nth-child("+t+")").find('.nectar-slider-wrap[data-fullscreen="true"]');n.is('[data-overall_style="directional"]')&&e("#header-outer #logo span.dark").length>0&&e("#header-outer").addClass("directional-nav-effect").removeClass("dne-disabled"),n.find('.swiper-slide-active[data-color-scheme="light"]').length>0?e("#header-outer").removeClass("dark-slide"):n.find('.swiper-slide-active[data-color-scheme="dark"]').length>0&&e("#header-outer").addClass("dark-slide")}else e("#header-outer").removeClass("directional-nav-effect").addClass("dne-disabled")}var x=[],C=[];function k(){x=[],C=[],e("#nectar_fullscreen_rows > .wpb_row").each(function(t){$id=e(this).is("[data-fullscreen-anchor-id]")?e(this).attr("data-fullscreen-anchor-id"):"",e('#nectar_fullscreen_rows[data-anchors="on"]').length>0&&(-1==$id.indexOf("fws_")?x.push($id):x.push("section-"+(t+1))),e(this).find(".full-page-inner-wrap[data-name]").length>0?C.push(e(this).find(".full-page-inner-wrap").attr("data-name")):C.push(" ")})}function $(){var t=e("#nectar_fullscreen_rows").attr("data-footer");"default"==t?e("#footer-outer").appendTo("#nectar_fullscreen_rows").addClass("fp-auto-height").addClass("fp-section").addClass("wpb_row").attr("data-anchor"," ").wrapInner('
').wrapInner('
').wrapInner('
').wrapInner('
').wrapInner('
'):"last_row"==t?(e("#footer-outer").remove(),e("#nectar_fullscreen_rows > .wpb_row:last-child").attr("id","footer-outer").addClass("fp-auto-height")):e("#footer-outer").remove()}function T(){e(".full-page-inner-wrap .full-page-inner > .span_12 > .wpb_column").each(function(){e(this).find("> .vc_column-inner > .wpb_wrapper").find("> .wpb_row").length>0?(e(this).find("> .vc_column-inner > .wpb_wrapper").addClass("only_rows"),$rowNum=e(this).find("> .vc_column-inner > .wpb_wrapper").find("> .wpb_row").length,e(this).find("> .vc_column-inner > .wpb_wrapper").attr("data-inner-row-num",$rowNum)):e(this).find("> .column-inner-wrap > .column-inner > .wpb_wrapper").find("> .wpb_row").length>0&&(e(this).find("> .column-inner-wrap > .column-inner > .wpb_wrapper").addClass("only_rows"),$rowNum=e(this).find("> .column-inner-wrap > .column-inner > .wpb_wrapper").find("> .wpb_row").length,e(this).find("> .column-inner-wrap > .column-inner > .wpb_wrapper").attr("data-inner-row-num",$rowNum))})}function I(){e(t).width()>=1e3?e('#nectar_fullscreen_rows > .wpb_row .full-page-inner-wrap[data-content-pos="full_height"]').each(function(){e(this).find("> .full-page-inner").css("height","100%");var t=S,a=0,n=0;"none"==e("#nectar_fullscreen_rows").attr("data-animation")?e(this).find("> .full-page-inner > .span_12 ").css("height","100%"):e(this).find("> .full-page-inner > .span_12 ").css("height",S),e(this).find("> .full-page-inner > .span_12 > .wpb_column > .vc_column-inner > .wpb_wrapper").each(function(){a=parseInt(e(this).parents(".wpb_column").css("padding-top")),n=parseInt(e(this).parents(".wpb_column").css("padding-bottom")),t=t>e(this).height()+a+n?t:e(this).height()+a+n}),t>S&&e(this).find("> .full-page-inner > .span_12").height(t).css("float","none")}):e("#nectar_fullscreen_rows > .wpb_row").each(function(){$totalColHeight=0,e(this).find('.fp-scrollable > .fp-scroller > .full-page-inner-wrap-outer > .full-page-inner-wrap[data-content-pos="full_height"] > .full-page-inner > .span_12 > .wpb_column').each(function(){$totalColHeight+=e(this).outerHeight(!0)}),e(this).find(".fp-scrollable > .fp-scroller > .full-page-inner-wrap-outer > .full-page-inner-wrap > .full-page-inner").css("height","100%"),$totalColHeight>e(this).find(".fp-scrollable > .fp-scroller > .full-page-inner-wrap-outer > .full-page-inner-wrap > .full-page-inner").height()&&e(this).find(".fp-scrollable > .fp-scroller > .full-page-inner-wrap-outer > .full-page-inner-wrap > .full-page-inner").height($totalColHeight)})}function O(){$nsSelector='.nectar-slider-wrap[data-fullscreen="true"][data-full-width="true"], .nectar-slider-wrap[data-fullscreen="true"][data-full-width="boxed-full-width"]',(e('.nectar-slider-wrap[data-fullscreen="true"][data-full-width="true"]').length>0||e('.nectar-slider-wrap[data-fullscreen="true"][data-full-width="boxed-full-width"]').length>0)&&(e("#nectar_fullscreen_rows .wpb_row").length>0&&e($nsSelector).find(".swiper-container").attr("data-height",e("#nectar_fullscreen_rows .wpb_row").height()+1),e(t).trigger("resize.nsSliderContent"),e($nsSelector).parents(".full-page-inner").addClass("only-nectar-slider"))}k(),e("#nectar_fullscreen_rows").length>0&&$(),T(),e('#nectar_fullscreen_rows[data-row-bg-animation="ken_burns"] > .wpb_row:first-child .row-bg.using-image').addClass("kenburns"),setTimeout(function(){e('#nectar_fullscreen_rows[data-row-bg-animation="ken_burns"] > .wpb_row:first-child .row-bg.using-image').removeClass("kenburns")},500),-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")&&e('#nectar_fullscreen_rows[data-row-bg-animation="ken_burns"]').attr("data-row-bg-animation","none");var z,M,S=e(t).height(),j=e(t).width(),A=e("#nectar_fullscreen_rows").attr("data-animation");switch(e("#nectar_fullscreen_rows").attr("data-animation-speed")){case"slow":z=1150;break;case"medium":z=850;break;case"fast":z=650;break;default:z=850}function P(){e("#nectar_fullscreen_rows > div:first-child").height();e("#nectar_fullscreen_rows.trans-animation-active").length>0&&requestAnimationFrame(P)}function E(){!0,v=".wpb_row.active ",e(".container-wrap, .container-wrap .main-content > .row").css({"padding-bottom":"0","margin-bottom":"0"}),e("#nectar_fullscreen_rows").fullpage({sectionSelector:"#nectar_fullscreen_rows > .wpb_row",navigation:!0,css3:!0,scrollingSpeed:z,anchors:x,scrollOverflow:!0,navigationPosition:"right",navigationTooltips:C,afterLoad:function(a,n,i,r){if(e("#nectar_fullscreen_rows").hasClass("afterLoaded")){e(".wpb_row:not(.last-before-footer):not(:nth-child("+n+")) .fp-scrollable").each(function(){$scrollable=e(this).data("iscrollInstance"),$scrollable.scrollTo(0,0)}),e(".wpb_row:not(:nth-child("+n+")) .owl-carousel").trigger("to.owl.carousel",[0]);var o=e("#nectar_fullscreen_rows > .wpb_row:nth-child("+n+")").attr("id");e("#nectar_fullscreen_rows > .wpb_row").removeClass("transition-out").removeClass("trans"),e("#nectar_fullscreen_rows > .wpb_row:nth-child("+n+")").removeClass("next-current"),e("#nectar_fullscreen_rows > .wpb_row:nth-child("+n+") .full-page-inner-wrap-outer").css({height:"100%"}),e("#nectar_fullscreen_rows > .wpb_row .full-page-inner-wrap-outer").css({transform:"none"}),"footer-outer"!=o&&0==e("#nectar_fullscreen_rows > .wpb_row:nth-child("+n+").last-before-footer").length&&(na(),navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/)||(!function(){e('img.img-with-animation.animated-in:not([data-animation="none"])').css({transition:"none"}),e('img.img-with-animation.animated-in:not([data-animation="none"])').css({opacity:"0",transform:"none"}).removeClass("animated-in"),e('.col.has-animation.animated-in:not([data-animation*="reveal"]), .wpb_column.has-animation.animated-in:not([data-animation*="reveal"])').css({transition:"none"}),e('.col.has-animation.animated-in:not([data-animation*="reveal"]), .wpb_column.has-animation.animated-in:not([data-animation*="reveal"]), .nectar_cascading_images .cascading-image:not([data-animation="none"]) .inner-wrap').css({opacity:"0",transform:"none",left:"auto",right:"auto"}).removeClass("animated-in"),e('.col.has-animation.boxed:not([data-animation*="reveal"]), .wpb_column.has-animation.boxed:not([data-animation*="reveal"])').addClass("no-pointer-events"),e('.wpb_column.has-animation[data-animation*="reveal"], .nectar_cascading_images').removeClass("animated-in"),j>1e3&&0==e(".using-mobile-browser").length&&(e('.wpb_column.has-animation[data-animation="reveal-from-bottom"] > .column-inner-wrap').css({transition:"none",transform:"translate(0, 100%)"}),e('.wpb_column.has-animation[data-animation="reveal-from-bottom"] > .column-inner-wrap > .column-inner').css({transition:"none",transform:"translate(0, -90%)"}),e('.wpb_column.has-animation[data-animation="reveal-from-top"] > .column-inner-wrap').css({transition:"none",transform:"translate(0, -100%)"}),e('.wpb_column.has-animation[data-animation="reveal-from-top"] > .column-inner-wrap > .column-inner').css({transition:"none",transform:"translate(0, 90%)"}),e('.wpb_column.has-animation[data-animation="reveal-from-left"] > .column-inner-wrap').css({"transition-duration":"0s",transform:"translate(-100%, 0)"}),e('.wpb_column.has-animation[data-animation="reveal-from-left"] > .column-inner-wrap > .column-inner').css({"transition-duration":"0s",transform:"translate(90%, 0)"}),e('.wpb_column.has-animation[data-animation="reveal-from-right"] > .column-inner-wrap').css({"transition-duration":"0s",transform:"translate(100%, 0)"}),e('.wpb_column.has-animation[data-animation="reveal-from-right"] > .column-inner-wrap > .column-inner').css({"transition-duration":"0s",transform:"translate(-90%, 0)"}));e('.wpb_column.has-animation[data-animation*="reveal"] > .column-inner-wrap, .wpb_column.has-animation[data-animation*="reveal"] > .column-inner-wrap > .column-inner').removeClass("no-transform"),e(".wpb_animate_when_almost_visible.animated").removeClass("wpb_start_animation").removeClass("animated"),e('.wpb_column[data-border-animation="true"] .border-wrap.animation').removeClass("animation").removeClass("completed"),e(".nectar-milestone.animated-in").removeClass("animated-in").removeClass("in-sight"),e(".nectar-milestone .symbol").removeClass("in-sight"),e('.nectar-fancy-ul[data-animation="true"]').removeClass("animated-in"),e('.nectar-fancy-ul[data-animation="true"] ul li').css({opacity:"0",left:"-20px"}),e(".nectar-progress-bar").parent().removeClass("completed"),e(".nectar-progress-bar .bar-wrap > span").css({width:"0px"}),e(".nectar-progress-bar .bar-wrap > span > strong").css({opacity:"0"}),e(".nectar-progress-bar .bar-wrap").css({opacity:"0"}),e(".clients.fade-in-animation").removeClass("animated-in"),e(".clients.fade-in-animation > div").css("opacity","0"),e('.owl-carousel[data-enable-animation="true"]').removeClass("animated-in"),e('.owl-carousel[data-enable-animation="true"] .owl-stage > .owl-item').css({transition:"none",opacity:"0",transform:"translate(0, 70px)"}),e('.divider-small-border[data-animate="yes"], .divider-border[data-animate="yes"]').removeClass("completed").css({transition:"none",transform:"scale(0,1)"}),e(".nectar-icon-list").removeClass("completed"),e(".nectar-icon-list-item").removeClass("animated"),e(".portfolio-items .col").removeClass("animated-in"),e(".nectar-split-heading").removeClass("animated-in"),e(".nectar-split-heading .heading-line > div").transit({y:"200%"},0),e('.nectar_image_with_hotspots[data-animation="true"]').removeClass("completed"),e('.nectar_image_with_hotspots[data-animation="true"] .nectar_hotspot_wrap').removeClass("animated-in"),e(".nectar-animated-title").removeClass("completed"),e(".vc_pie_chart").length>0&&vc_pieChart();e('.col.has-animation:not([data-animation*="reveal"]), .wpb_column.has-animation:not([data-animation*="reveal"])').each(function(e){clearTimeout(l[e])})}(),Waypoint.destroyAll(),e("#nectar_fullscreen_rows > .wpb_row.active .nectar-parallax-scene").length>0&&e.each(ze,function(e,t){t.parallax("enable")})),Qe()),"footer-outer"!=o&&(e("#nectar_fullscreen_rows > .wpb_row").removeClass("last-before-footer").css("transform","initial"),e("#nectar_fullscreen_rows > .wpb_row:not(.active):not(#footer-outer)").css({transform:"translateY(0)",left:"-9999px",transition:"none",opacity:"1","will-change":"auto"}),e("#nectar_fullscreen_rows > .wpb_row:not(#footer-outer)").find(".full-page-inner-wrap-outer").css({transition:"none",transform:"none","will-change":"auto"}),e("#nectar_fullscreen_rows > .wpb_row:not(#footer-outer)").find(".fp-tableCell").css({transition:"none",transform:"none","will-change":"auto"}),e("#nectar_fullscreen_rows > .wpb_row:not(#footer-outer)").find(".full-page-inner-wrap-outer > .full-page-inner-wrap > .full-page-inner > .container").css({"backface-visibility":"visible","z-index":"auto"}))}else I(),S=e("#nectar_fullscreen_rows").height(),e("#nectar_fullscreen_rows").addClass("afterLoaded"),setTimeout(function(){t.scrollTo(0,0)},1800),e('#nectar_fullscreen_rows[data-row-bg-animation="ken_burns"] > .wpb_row:first-child .row-bg.using-image').removeClass("kenburns"),O();e("#nectar_fullscreen_rows").removeClass("nextSectionAllowed")},onLeave:function(a,n,i){e("#nectar_fullscreen_rows").addClass("trans-animation-active");var r=e("#nectar_fullscreen_rows > .wpb_row:nth-child("+n+")").attr("id"),o=e("#nectar_fullscreen_rows > .wpb_row:nth-child("+a+")"),s=e("#nectar_fullscreen_rows > .wpb_row:nth-child("+n+")"),l=s.find(".full-page-inner-wrap-outer"),d=s.find(".fp-tableCell"),c=navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/)?"all":"transform";"footer-outer"==r?(o.addClass("last-before-footer"),e("#footer-outer").css("opacity","1")):(e("#nectar_fullscreen_rows > .wpb_row.last-before-footer").css("transform","translateY(0px)"),e("#footer-outer").css("opacity","0")),"footer-outer"==o.attr("id")&&(e("#footer-outer").css({transition:c+" 460ms cubic-bezier(0.60, 0.23, 0.2, 0.93)","backface-visibility":"hidden"}),e("#footer-outer").css({transform:"translateY(45%) translateZ(0)"})),"footer-outer"!=s.attr("id")&&d.find(".full-page-inner-wrap-outer > .full-page-inner-wrap > .full-page-inner > .container").css({"backface-visibility":"hidden","z-index":"110"}),"footer-outer"!=s.attr("id")&&"footer-outer"!=o.attr("id")&&0==e('#nectar_fullscreen_rows[data-animation="none"]').length&&("down"==i?"parallax"==A?(o.css({transition:c+" "+z+"ms cubic-bezier(.29,.23,.13,1)","will-change":"transform",transform:"translateZ(0)","z-index":"100"}),setTimeout(function(){o.css({transform:"translateY(-50%) translateZ(0)"})},60),s.css({"z-index":"1000",top:"0",left:"0"}),d.css({transform:"translateY(100%) translateZ(0)","will-change":"transform"}),l.css({transform:"translateY(-50%) translateZ(0)","will-change":"transform"})):"zoom-out-parallax"==A&&(o.css({transition:"opacity "+z+"ms cubic-bezier(0.37, 0.31, 0.2, 0.85), transform "+z+"ms cubic-bezier(0.37, 0.31, 0.2, 0.85)","z-index":"100","will-change":"transform"}),setTimeout(function(){o.css({transform:"scale(0.77) translateZ(0)",opacity:"0"})},60),s.css({"z-index":"1000",top:"0",left:"0"}),d.css({transform:"translateY(100%) translateZ(0)","will-change":"transform"}),l.css({transform:"translateY(-50%) translateZ(0)","will-change":"transform"})):"parallax"==A?(o.css({transition:c+" "+z+"ms cubic-bezier(.29,.23,.13,1)","z-index":"100","will-change":"transform"}),setTimeout(function(){o.css({transform:"translateY(50%) translateZ(0)"})},60),s.css({"z-index":"1000",top:"0",left:"0"}),d.css({transform:"translateY(-100%) translateZ(0)","will-change":"transform"}),l.css({transform:"translateY(50%) translateZ(0)","will-change":"transform"})):"zoom-out-parallax"==A&&(o.css({transition:"opacity "+z+"ms cubic-bezier(0.37, 0.31, 0.2, 0.85), transform "+z+"ms cubic-bezier(0.37, 0.31, 0.2, 0.85)","z-index":"100","will-change":"transform"}),setTimeout(function(){o.css({transform:"scale(0.77) translateZ(0)",opacity:"0"})},60),s.css({"z-index":"1000",top:"0",left:"0"}),d.css({transform:"translateY(-100%) translateZ(0)","will-change":"transform"}),l.css({transform:"translateY(50%) translateZ(0)","will-change":"transform"})),setTimeout(function(){d.css({transition:c+" "+z+"ms cubic-bezier(.29,.23,.13,1) 0ms",transform:"translateY(0%) translateZ(0)"}),"none"!=A&&(l.css({transition:c+" "+z+"ms cubic-bezier(.29,.23,.13,1) 0ms",transform:"translateY(0%) translateZ(0)"}),-1!=navigator.userAgent.indexOf("Firefox")&&requestAnimationFrame(P))},60)),0==e('#nectar_fullscreen_rows[data-animation="none"]').length&&s.find(".fp-scrollable").length>0&&s.find(".full-page-inner-wrap-outer").css("height",S),setTimeout(function(){"footer-outer"==r&&(o.css("transform","translateY(-"+(e("#footer-outer").height()-1)+"px)"),e("#footer-outer").css({transform:"translateY(45%) translateZ(0)"}),e("#footer-outer").css({"transition-duration":"0s","backface-visibility":"hidden"}),setTimeout(function(){e("#footer-outer").css({transition:c+" 500ms cubic-bezier(0.60, 0.23, 0.2, 0.93)","backface-visibility":"hidden"}),e("#footer-outer").css({transform:"translateY(0%) translateZ(0)"})},30))},30),"footer-outer"!=r&&(e.each(ze,function(e,t){t.parallax("disable")}),_(n,i),setTimeout(function(){!function(a){if(!e('#nectar_fullscreen_rows[data-anchors="on"]').length>0||!a)return;var n=t.location.hash,i=n&&n.length>0?n.substring(1,n.length):"";e('body:not(.mobile) #header-outer[data-has-menu="true"]').length>0&&e("#nectar_fullscreen_rows > .wpb_row:nth-child("+a+")[data-fullscreen-anchor-id]").length>0&&e('header#top nav > ul.sf-menu > li > a[href$="#'+i+'"]').length>0&&(e("header#top nav > ul.sf-menu > li").removeClass("current-menu-item"),e('header#top nav > ul.sf-menu > li > a[href$="'+i+'"]').parent().addClass("current-menu-item"))}(n)},50))},afterResize:function(){S=e("#nectar_fullscreen_rows").height(),j=e(t).width(),I(),O(),e("#footer-outer.active").length>0&&(e(".last-before-footer").addClass("fp-notransition").css("transform","translateY(-"+e("#footer-outer").height()+"px)"),setTimeout(function(){e(".last-before-footer").removeClass("fp-notransition")},10)),e("#footer-outer.active").length>0&&setTimeout(function(){e(".last-before-footer").css("transform","translateY(-"+e("#footer-outer").height()+"px)")},200),clearTimeout(M),M=setTimeout(function(){c.length>0&&e(".svg-icon-holder.animated-in").each(function(t){e(this).css("opacity","1"),c[e(this).attr("id").slice(-1)].finish()})},300)}})}e("#nectar_fullscreen_rows").length>0&&E(),e(t).smartresize(function(){e("#nectar_fullscreen_rows").length>0&&(setTimeout(function(){e(".wpb_row:not(.last-before-footer) .fp-scrollable").each(function(){$scrollable=e(this).data("iscrollInstance"),$scrollable.refresh()})},200),I())}),e("#nectar_fullscreen_rows").length>0&&(_(1,"na"),O())}else(e("#nectar_fullscreen_rows").length>0&&"on"==w||e().fullpage&&"on"==w)&&e("html,body").css({height:"auto","overflow-y":"auto"});function W(){0==e('body[data-header-format="left-header"]').length&&($disableHI=e('body[data-dropdown-style="minimal"]').length>0,e(".sf-menu").superfish({delay:650,speed:"fast",speedOut:"fast",animation:{opacity:"show"}}),e("#header-outer .sf-menu > li:not(.megamenu) > ul > li > ul").each(function(){e(this).offset().left+e(this).outerWidth()>e(t).width()&&(e(this).addClass("on-left-side"),e(this).find("ul").addClass("on-left-side"))}),e('body:not([data-header-format="left-header"]) header#top nav > ul > li.megamenu > ul > li > ul > li:has("> ul")').addClass("has-ul"),e('body[data-megamenu-width="full-width"]').length>0&&e("ul.sub-menu").length>0&&(q(),e(t).on("smartresize",q),e("header#top nav > ul > li.megamenu > .sub-menu").css("box-sizing","content-box")),e("header#top nav > ul.sf-menu > li").on("mouseenter",function(){e(this).addClass("menu-item-over")}),e("header#top nav > ul.sf-menu > li").on("mouseleave",function(){e(this).removeClass("menu-item-over")}),e("header#top nav .megamenu .sub-menu a.sf-with-ul .sf-sub-indicator, header#top .megamenu .sub-menu a .sf-sub-indicator").remove(),e("header#top nav > ul > li.megamenu > ul.sub-menu > li > a").each(function(){"–"==e(this).text()&&e(this).remove()}))}function q(){var a=e(t).width(),n=e("header#top > .container").width();e("header#top nav > ul > li.megamenu > .sub-menu").css({"padding-left":(a-n)/2+"px","padding-right":(a+2-n)/2+"px",width:n,left:"-"+(a-n)/2+"px"})}function H(){t.innerWidth<1e3&&"1"==e("body").attr("data-responsive")?(e("body").addClass("mobile"),e("header#top nav").css("display","none")):(e("body").removeClass("mobile"),e("header#top nav").css("display",""),e("#mobile-menu").hide(),e(".slide-out-widget-area-toggle #toggle-nav .lines-button").removeClass("close"),e(".sf-sub-indicator").css("height",e("a.sf-with-ul").height())),navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/)&&e("body").addClass("using-mobile-browser")}function B(){e(".sf-sub-indicator").css("height",e("a.sf-with-ul").height())}function L(){e('ul.carousel:not(".clients")').each(function(){var a,n,i=e(this),r="true"==e(this).parents(".carousel-wrap").attr("data-full-width")?"auto":3,o="true"==e(this).parents(".carousel-wrap").attr("data-full-width")?"auto":"",s="true"==e(this).parents(".carousel-wrap").attr("data-full-width")?500:453,l="true"==e(this).attr("data-autorotate");if(e("body.ascend").length>0&&"true"!=e(this).parents(".carousel-wrap").attr("data-full-width")||e("body.material").length>0&&"true"!=e(this).parents(".carousel-wrap").attr("data-full-width"))if(e(this).find("li").length%3==0)var d=!0,c=!0;else d=!1,c=!0;else d=!0,c=!0;a=parseInt(e(this).attr("data-scroll-speed"))?parseInt(e(this).attr("data-scroll-speed")):700,n=e(this).is("[data-easing]")?e(this).attr("data-easing"):"linear";var h=i;0==i.find("img").length&&(h=e("body")),imagesLoaded(h,function(h){i.carouFredSel({circular:d,infinite:c,height:"auto",responsive:!0,items:{width:s,visible:{min:1,max:r}},swipe:{onTouch:!0,onMouse:!0,options:{excludedElements:"button, input, select, textarea, .noSwipe",tap:function(a,n){!e(n).attr("href")||e(n).is('[target="_blank"]')||e(n).is('[rel^="prettyPhoto"]')||e(n).is(".magnific-popup")||e(n).is(".magnific")||t.open(e(n).attr("href"),"_self")}},onBefore:function(){i.find(".work-item").trigger("mouseleave"),i.find(".work-item .work-info a").trigger("mouseup")}},scroll:{items:o,easing:n,duration:a,onBefore:function(t){(e("body.ascend").length>0&&"true"!=i.parents(".carousel-wrap").attr("data-full-width")||e("body.material").length>0&&"true"!=i.parents(".carousel-wrap").attr("data-full-width"))&&i.parents(".carousel-wrap").find(".item-count .total").html(Math.ceil(i.find("> li").length/i.triggerHandler("currentVisible").length))},onAfter:function(t){(e("body.ascend").length>0&&"true"!=i.parents(".carousel-wrap").attr("data-full-width")||e("body.material").length>0&&"true"!=i.parents(".carousel-wrap").attr("data-full-width"))&&(i.parents(".carousel-wrap").find(".item-count .current").html(i.triggerHandler("currentPage")+1),i.parents(".carousel-wrap").find(".item-count .total").html(Math.ceil(i.find("> li").length/i.triggerHandler("currentVisible").length)))}},prev:{button:function(){return i.parents(".carousel-wrap").find(".carousel-prev")}},next:{button:function(){return i.parents(".carousel-wrap").find(".carousel-next")}},auto:{play:l}},{transition:!0}).animate({opacity:1},1300),i.parents(".carousel-wrap").wrap('