/*! davidandgoliath 2014-02-11 */ !function(a){"use strict";a.fn.gMap=function(b,c){var d,e;if(!(window.google&&google.maps||window.google_maps_api_loading)){d=this,e=arguments;var f="callback_"+Math.random().toString().replace(".","");window.google_maps_api_loading=f,window[f]=function(){a.fn.gMap.apply(d,e),a(window).trigger("google-maps-async-loading"),window[f]=null;try{delete window[f]}catch(b){}};var g=window.WPV_FRONT&&window.WPV_FRONT.gmap_api_key?"&key="+WPV_FRONT.gmap_api_key:"";return a.getScript(location.protocol+"//maps.googleapis.com/maps/api/js?v=3&sensor=false&callback="+f+g),this}if((!window.google||!google.maps)&&window.google_maps_api_loading)return d=this,e=arguments,a(window).bind("google-maps-async-loading",function(){a.fn.gMap.apply(d,e)}),this;switch(b){case"addMarker":return a(this).trigger("gMap.addMarker",[c.latitude,c.longitude,c.content,c.icon,c.popup]);case"centerAt":return a(this).trigger("gMap.centerAt",[c.latitude,c.longitude,c.zoom])}var h=a.extend({},a.fn.gMap.defaults,b);return this.each(function(){var b=new google.maps.Map(this),c=new google.maps.Geocoder;h.address?c.geocode({address:h.address},function(a){a&&a.length&&b.setCenter(a[0].geometry.location)}):h.latitude&&h.longitude?b.setCenter(new google.maps.LatLng(h.latitude,h.longitude)):a.isArray(h.markers)&&h.markers.length>0?h.markers[0].address?c.geocode({address:h.markers[0].address},function(a){a&&a.length>0&&b.setCenter(a[0].geometry.location)}):b.setCenter(new google.maps.LatLng(h.markers[0].latitude,h.markers[0].longitude)):b.setCenter(new google.maps.LatLng(34.885931,9.84375)),b.setZoom(h.zoom),b.setMapTypeId(google.maps.MapTypeId[h.maptype]);var d={scrollwheel:h.scrollwheel,disableDoubleClickZoom:!h.doubleclickzoom};h.controls===!1?a.extend(d,{disableDefaultUI:!0}):0!==h.controls.length&&a.extend(d,h.controls,{disableDefaultUI:!0}),b.setOptions(a.extend(d,h.custom));var e=new google.maps.Marker,f=new google.maps.MarkerImage(h.icon.image);if(f.size=new google.maps.Size(h.icon.iconsize[0],h.icon.iconsize[1]),f.anchor=new google.maps.Point(h.icon.iconanchor[0],h.icon.iconanchor[1]),e.setIcon(f),h.icon.shadow){var g=new google.maps.MarkerImage(h.icon.shadow);g.size=new google.maps.Size(h.icon.shadowsize[0],h.icon.shadowsize[1]),g.anchor=new google.maps.Point(h.icon.shadowanchor[0],h.icon.shadowanchor[1]),e.setShadow(g)}a(this).bind("gMap.centerAt",function(a,c,d,e){e&&b.setZoom(e),b.panTo(new google.maps.LatLng(parseFloat(c),parseFloat(d)))});var i;a(this).bind("gMap.addMarker",function(a,c,d,j,k,l){var m=new google.maps.LatLng(parseFloat(c),parseFloat(d)),n=new google.maps.Marker({position:m});if(k?(f=new google.maps.MarkerImage(k.image),f.size=new google.maps.Size(k.iconsize[0],k.iconsize[1]),f.anchor=new google.maps.Point(k.iconanchor[0],k.iconanchor[1]),n.setIcon(f),k.shadow&&(g=new google.maps.MarkerImage(k.shadow),g.size=new google.maps.Size(k.shadowsize[0],k.shadowsize[1]),g.anchor=new google.maps.Point(k.shadowanchor[0],k.shadowanchor[1]),e.setShadow(g))):(n.setIcon(e.getIcon()),n.setShadow(e.getShadow())),j){"_latlng"===j&&(j=c+", "+d);var o=new google.maps.InfoWindow({content:h.html_prepend+j+h.html_append});google.maps.event.addListener(n,"click",function(){i&&i.close(),o.open(b,n),i=o}),l&&o.open(b,n)}n.setMap(b)});for(var j=function(b,c){return function(d){d&&d.length>0&&a(c).trigger("gMap.addMarker",[d[0].geometry.location.lat(),d[0].geometry.location.lng(),b.html,b.icon,b.popup])}},k=0;k',html_append:"",icon:{image:"http://www.google.com/mapfiles/marker.png",shadow:"http://www.google.com/mapfiles/shadow50.png",iconsize:[20,34],shadowsize:[37,34],iconanchor:[9,34],shadowanchor:[6,34]}}}(jQuery),function(a){"use strict";var b,c,d,e,f,g,h,i="Close",j="BeforeClose",k="AfterClose",l="BeforeAppend",m="MarkupParse",n="Open",o="Change",p="mfp",q="."+p,r="mfp-ready",s="mfp-removing",t="mfp-prevent-close",u=function(){},v=!!window.jQuery,w=a(window),x=function(a,c){b.ev.on(p+a+q,c)},y=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},z=function(c,d){b.ev.triggerHandler(p+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},A=function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},B=function(c){return c===h&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),h=c),b.currTemplate.closeBtn},C=function(){a.magnificPopup.instance||(b=new u,b.init(),a.magnificPopup.instance=b)},D=function(c){if(!a(c).hasClass(t)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},E=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};u.prototype={constructor:u,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=E(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document.body),e=a(document),b.popupsCache={}},open:function(c){var d;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var f,h=c.items;for(d=0;d(a||w.height())},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),z(m,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(q+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith(''):d.attr(e[1],c)}}else b.find(q+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.id="mfp-sbm",a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:u.prototype,modules:[],open:function(a,b){return C(),a||(a={}),a.isObj=!0,a.index=b||0,this.instance.open(a)},close:function(){return a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){C();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=v?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else v?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var F,G,H,I="inline",J=function(){H&&(G.after(H.addClass(F)).detach(),H=null)};a.magnificPopup.registerModule(I,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(I),x(i+"."+I,function(){J()})},getInline:function(c,d){if(J(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(G||(F=e.hiddenClass,G=y(F),F="mfp-"+F),H=f.after(G).detach().removeClass(F)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("
");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var K,L="ajax",M=function(){K&&d.removeClass(K)};a.magnificPopup.registerModule(L,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){b.types.push(L),K=b.st.ajax.cursor,x(i+"."+L,function(){M(),b.req&&b.req.abort()})},getAjax:function(c){K&&d.addClass(K),b.updateStatus("loading");var e=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};z("ParseAjax",g),b.appendContent(a(g.data),L),c.finished=!0,M(),A(),setTimeout(function(){b.wrap.addClass(r)},16),b.updateStatus("ready"),z("AjaxContentAdded")},error:function(){M(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(e),""}}});var N,O=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var a=b.st.image,c=".image";b.types.push("image"),x(n+c,function(){"image"===b.currItem.type&&a.cursor&&d.addClass(a.cursor)}),x(i+c,function(){a.cursor&&d.removeClass(a.cursor),w.off("resize"+q)}),x("Resize"+c,b.resizeImage),b.isLowIE&&x("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,N&&clearInterval(N),a.isCheckingImgSize=!1,z("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){N&&clearInterval(N),N=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(N),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,z("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),c.img[0].naturalWidth>0&&(c.hasSize=!0)}return b._parseMarkup(d,{title:O(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(N&&clearInterval(N),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var P,Q=function(){return void 0===P&&(P=void 0!==document.createElement("p").style.MozTransform),P};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a=b.st.zoom,c=".zoom";if(a.enabled&&b.supportsTransition){var d,e,f=a.duration,g=function(b){var c=b.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+a.duration/1e3+"s "+a.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,c.css(e),c},h=function(){b.content.css("visibility","visible")};x("BuildControls"+c,function(){if(b._allowZoom()){if(clearTimeout(d),b.content.css("visibility","hidden"),image=b._getItemToZoom(),!image)return void h();e=g(image),e.css(b._getOffset()),b.wrap.append(e),d=setTimeout(function(){e.css(b._getOffset(!0)),d=setTimeout(function(){h(),setTimeout(function(){e.remove(),image=e=null,z("ZoomAnimationEnded")},16)},f)},16)}}),x(j+c,function(){if(b._allowZoom()){if(clearTimeout(d),b.st.removalDelay=f,!image){if(image=b._getItemToZoom(),!image)return;e=g(image)}e.css(b._getOffset(!0)),b.wrap.append(e),b.content.css("visibility","hidden"),setTimeout(function(){e.css(b._getOffset())},16)}}),x(i+c,function(){b._allowZoom()&&(h(),e&&e.remove())})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(v?d.innerHeight():d[0].offsetHeight)-g-f};return Q()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var R="iframe",S="//about:blank",T=function(a){if(b.currTemplate[R]){var c=b.currTemplate[R].find("iframe");c.length&&(a||(c[0].src=S),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(R,{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(){b.types.push(R),x("BeforeChange",function(a,b,c){b!==c&&(b===R?T():c===R&&T(!0))}),x(i+"."+R,function(){T()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var U=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},V=function(a,b,c){return a.replace("%curr%",b+1).replace("%total%",c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,d=".mfp-gallery",f=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(g+=" mfp-gallery",x(n+d,function(){c.navigateByImgClick&&b.wrap.on("click"+d,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),e.on("keydown"+d,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),x("UpdateStatus"+d,function(a,c){c.text&&(c.text=V(c.text,b.currItem.index,b.items.length))}),x(m+d,function(a,d,e,f){var g=b.items.length;e.counter=g>1?V(c.tCounter,f.index,g):""}),x("BuildControls"+d,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace("%title%",c.tPrev).replace("%dir%","left")).addClass(t),g=b.arrowRight=a(d.replace("%title%",c.tNext).replace("%dir%","right")).addClass(t),h=f?"mfpFastClick":"click";e[h](function(){b.prev()}),g[h](function(){b.next()}),b.isIE7&&(y("b",e[0],!1,!0),y("a",e[0],!1,!0),y("b",g[0],!1,!0),y("a",g[0],!1,!0)),b.container.append(e.add(g))}}),x(o+d,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void x(i+d,function(){e.off(d),b.wrap.off("click"+d),b.arrowLeft&&f&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=U(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=U(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=U(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),z("LazyLoad",d),"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,z("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var W="retina";a.magnificPopup.registerModule(W,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(x("ImageHasSize."+W,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),x("ElementParse."+W,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){w.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,w.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&w.off("touchmove"+f+" touchend"+f)}}()}(window.jQuery||window.Zepto),function(a,b){"use strict";var c,d=a.document,e=a.Modernizr,f=function(a){return a.charAt(0).toUpperCase()+a.slice(1)},g="Moz Webkit O Ms".split(" "),h=function(a){var b,c=d.documentElement.style;if("string"==typeof c[a])return a;a=f(a);for(var e=0,h=g.length;h>e;e++)if(b=g[e]+a,"string"==typeof c[b])return b},i=h("transform"),j=h("transitionProperty"),k={csstransforms:function(){return!!i},csstransforms3d:function(){var a=!!h("perspective");if(a){var c=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),d="@media ("+c.join("transform-3d),(")+"modernizr)",e=b("").appendTo("head"),f=b('
').appendTo("html");a=3===f.height(),f.remove(),e.remove()}return a},csstransitions:function(){return!!j}};if(e)for(c in k)e.hasOwnProperty(c)||e.addTest(c,k[c]);else{e=a.Modernizr={_version:"1.6ish: miniModernizr for Isotope"};var l,m=" ";for(c in k)l=k[c](),e[c]=l,m+=" "+(l?"":"no-")+c;b("html").addClass(m)}if(e.csstransforms){var n=e.csstransforms3d?{translate:function(a){return"translate3d("+a[0]+"px, "+a[1]+"px, 0) "},scale:function(a){return"scale3d("+a+", "+a+", 1) "}}:{translate:function(a){return"translate("+a[0]+"px, "+a[1]+"px) "},scale:function(a){return"scale("+a+") "}},o=function(a,c,d){var e,f,g=b.data(a,"isoTransform")||{},h={},j={};h[c]=d,b.extend(g,h);for(e in g)f=g[e],j[e]=n[e](f);var k=j.translate||"",l=j.scale||"",m=k+l;b.data(a,"isoTransform",g),a.style[i]=m};b.cssNumber.scale=!0,b.cssHooks.scale={set:function(a,b){o(a,"scale",b)},get:function(a){var c=b.data(a,"isoTransform");return c&&c.scale?c.scale:1}},b.fx.step.scale=function(a){b.cssHooks.scale.set(a.elem,a.now+a.unit)},b.cssNumber.translate=!0,b.cssHooks.translate={set:function(a,b){o(a,"translate",b)},get:function(a){var c=b.data(a,"isoTransform");return c&&c.translate?c.translate:[0,0]}}}var p,q;e.csstransitions&&(p={WebkitTransitionProperty:"webkitTransitionEnd",MozTransitionProperty:"transitionend",OTransitionProperty:"oTransitionEnd otransitionend",transitionProperty:"transitionend"}[j],q=h("transitionDuration"));var r,s=b.event,t=b.event.handle?"handle":"dispatch";s.special.smartresize={setup:function(){b(this).bind("resize",s.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",s.special.smartresize.handler)},handler:function(a,b){var c=this,d=arguments;a.type="smartresize",r&&clearTimeout(r),r=setTimeout(function(){s[t].apply(c,d)},"execAsap"===b?0:100)}},b.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},b.Isotope=function(a,c,d){this.element=b(c),this._create(a),this._init(d)};var u=["width","height"],v=b(a);b.Isotope.settings={resizable:!0,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:{opacity:0,scale:.001},visibleStyle:{opacity:1,scale:1},containerStyle:{position:"relative",overflow:"hidden"},animationEngine:"best-available",animationOptions:{queue:!1,duration:800},sortBy:"original-order",sortAscending:!0,resizesContainer:!0,transformsEnabled:!0,itemPositionDataEnabled:!1},b.Isotope.prototype={_create:function(a){this.options=b.extend({},b.Isotope.settings,a),this.styleQueue=[],this.elemCount=0;var c=this.element[0].style;this.originalStyle={};var d=u.slice(0);for(var e in this.options.containerStyle)d.push(e);for(var f=0,g=d.length;g>f;f++)e=d[f],this.originalStyle[e]=c[e]||"";this.element.css(this.options.containerStyle),this._updateAnimationEngine(),this._updateUsingTransforms();var h={"original-order":function(a,b){return b.elemCount++,b.elemCount},random:function(){return Math.random()}};this.options.getSortData=b.extend(this.options.getSortData,h),this.reloadItems(),this.offset={left:parseInt(this.element.css("padding-left")||0,10),top:parseInt(this.element.css("padding-top")||0,10)};var i=this;setTimeout(function(){i.element.addClass(i.options.containerClass)},0),this.options.resizable&&v.bind("smartresize.isotope",function(){i.resize()}),this.element.delegate("."+this.options.hiddenClass,"click",function(){return!1})},_getAtoms:function(a){var b=this.options.itemSelector,c=b?a.filter(b).add(a.find(b)):a,d={position:"absolute"};return c=c.filter(function(a,b){return 1===b.nodeType}),this.usingTransforms&&(d.left=0,d.top=0),c.css(d).addClass(this.options.itemClass),this.updateSortData(c,!0),c},_init:function(a){this.$filteredAtoms=this._filter(this.$allAtoms),this._sort(),this.reLayout(a)},option:function(a){if(b.isPlainObject(a)){this.options=b.extend(!0,this.options,a);var c;for(var d in a)c="_update"+f(d),this[c]&&this[c]()}},_updateAnimationEngine:function(){var a,b=this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,"");switch(b){case"css":case"none":a=!1;break;case"jquery":a=!0;break;default:a=!e.csstransitions}this.isUsingJQueryAnimation=a,this._updateUsingTransforms()},_updateTransformsEnabled:function(){this._updateUsingTransforms()},_updateUsingTransforms:function(){var a=this.usingTransforms=this.options.transformsEnabled&&e.csstransforms&&e.csstransitions&&!this.isUsingJQueryAnimation;a||(delete this.options.hiddenStyle.scale,delete this.options.visibleStyle.scale),this.getPositionStyles=a?this._translate:this._positionAbs},_filter:function(a){var b=""===this.options.filter?"*":this.options.filter;if(!b)return a;var c=this.options.hiddenClass,d="."+c,e=a.filter(d),f=e;if("*"!==b){f=e.filter(b);var g=a.not(d).not(b).addClass(c);this.styleQueue.push({$el:g,style:this.options.hiddenStyle})}return this.styleQueue.push({$el:f,style:this.options.visibleStyle}),f.removeClass(c),a.filter(b)},updateSortData:function(a,c){var d,e,f=this,g=this.options.getSortData;a.each(function(){d=b(this),e={};for(var a in g)e[a]=c||"original-order"!==a?g[a](d,f):b.data(this,"isotope-sort-data")[a];b.data(this,"isotope-sort-data",e)})},_sort:function(){var a=this.options.sortBy,b=this._getSorter,c=this.options.sortAscending?1:-1,d=function(d,e){var f=b(d,a),g=b(e,a);return f===g&&"original-order"!==a&&(f=b(d,"original-order"),g=b(e,"original-order")),(f>g?1:g>f?-1:0)*c};this.$filteredAtoms.sort(d)},_getSorter:function(a,c){return b.data(a,"isotope-sort-data")[c]},_translate:function(a,b){return{translate:[a,b]}},_positionAbs:function(a,b){return{left:a,top:b}},_pushPosition:function(a,b,c){b=Math.round(b+this.offset.left),c=Math.round(c+this.offset.top);var d=this.getPositionStyles(b,c);this.styleQueue.push({$el:a,style:d}),this.options.itemPositionDataEnabled&&a.data("isotope-item-position",{x:b,y:c})},layout:function(a,b){var c=this.options.layoutMode;if(this["_"+c+"Layout"](a),this.options.resizesContainer){var d=this["_"+c+"GetContainerSize"]();this.styleQueue.push({$el:this.element,style:d})}this._processStyleQueue(a,b),this.isLaidOut=!0},_processStyleQueue:function(a,c){var d,f,g,h,i=this.isLaidOut?this.isUsingJQueryAnimation?"animate":"css":"css",j=this.options.animationOptions,k=this.options.onLayout;if(f=function(a,b){b.$el[i](b.style,j)},this._isInserting&&this.isUsingJQueryAnimation)f=function(a,b){d=b.$el.hasClass("no-transition")?"css":i,b.$el[d](b.style,j)};else if(c||k||j.complete){var l=!1,m=[c,k,j.complete],n=this;if(g=!0,h=function(){if(!l){for(var b,c=0,d=m.length;d>c;c++)b=m[c],"function"==typeof b&&b.call(n.element,a,n);l=!0}},this.isUsingJQueryAnimation&&"animate"===i)j.complete=h,g=!1;else if(e.csstransitions){for(var o,r=0,s=this.styleQueue[0],t=s&&s.$el;!t||!t.length;){if(o=this.styleQueue[r++],!o)return; t=o.$el}var u=parseFloat(getComputedStyle(t[0])[q]);u>0&&(f=function(a,b){b.$el[i](b.style,j).one(p,h)},g=!1)}}b.each(this.styleQueue,f),g&&h(),this.styleQueue=[]},resize:function(){this["_"+this.options.layoutMode+"ResizeChanged"]()&&this.reLayout()},reLayout:function(a){this["_"+this.options.layoutMode+"Reset"](),this.layout(this.$filteredAtoms,a)},addItems:function(a,b){var c=this._getAtoms(a);this.$allAtoms=this.$allAtoms.add(c),b&&b(c)},insert:function(a,b){this.element.append(a);var c=this;this.addItems(a,function(a){var d=c._filter(a);c._addHideAppended(d),c._sort(),c.reLayout(),c._revealAppended(d,b)})},appended:function(a,b){var c=this;this.addItems(a,function(a){c._addHideAppended(a),c.layout(a),c._revealAppended(a,b)})},_addHideAppended:function(a){this.$filteredAtoms=this.$filteredAtoms.add(a),a.addClass("no-transition"),this._isInserting=!0,this.styleQueue.push({$el:a,style:this.options.hiddenStyle})},_revealAppended:function(a,b){var c=this;setTimeout(function(){a.removeClass("no-transition"),c.styleQueue.push({$el:a,style:c.options.visibleStyle}),c._isInserting=!1,c._processStyleQueue(a,b)},10)},reloadItems:function(){this.$allAtoms=this._getAtoms(this.element.children())},remove:function(a,b){this.$allAtoms=this.$allAtoms.not(a),this.$filteredAtoms=this.$filteredAtoms.not(a);var c=this,d=function(){a.remove(),b&&b.call(c.element)};a.filter(":not(."+this.options.hiddenClass+")").length?(this.styleQueue.push({$el:a,style:this.options.hiddenStyle}),this._sort(),this.reLayout(d)):d()},shuffle:function(a){this.updateSortData(this.$allAtoms),this.options.sortBy="random",this._sort(),this.reLayout(a)},destroy:function(){var a=this.usingTransforms,b=this.options;this.$allAtoms.removeClass(b.hiddenClass+" "+b.itemClass).each(function(){var b=this.style;b.position="",b.top="",b.left="",b.opacity="",a&&(b[i]="")});var c=this.element[0].style;for(var d in this.originalStyle)c[d]=this.originalStyle[d];this.element.unbind(".isotope").undelegate("."+b.hiddenClass,"click").removeClass(b.containerClass).removeData("isotope"),v.unbind(".isotope")},_getSegments:function(a){var b,c=this.options.layoutMode,d=a?"rowHeight":"columnWidth",e=a?"height":"width",g=a?"rows":"cols",h=this.element[e](),i=this.options[c]&&this.options[c][d]||this.$filteredAtoms["outer"+f(e)](!0)||h;b=Math.floor(h/i),b=Math.max(b,1),this[c][g]=b,this[c][d]=i},_checkIfSegmentsChanged:function(a){var b=this.options.layoutMode,c=a?"rows":"cols",d=this[b][c];return this._getSegments(a),this[b][c]!==d},_masonryReset:function(){this.masonry={},this._getSegments();var a=this.masonry.cols;for(this.masonry.colYs=[];a--;)this.masonry.colYs.push(0)},_masonryLayout:function(a){var c=this,d=c.masonry;a.each(function(){var a=b(this),e=Math.ceil(a.outerWidth(!0)/d.columnWidth);if(e=Math.min(e,d.cols),1===e)c._masonryPlaceBrick(a,d.colYs);else{var f,g,h=d.cols+1-e,i=[];for(g=0;h>g;g++)f=d.colYs.slice(g,g+e),i[g]=Math.max.apply(Math,f);c._masonryPlaceBrick(a,i)}})},_masonryPlaceBrick:function(a,b){for(var c=Math.min.apply(Math,b),d=0,e=0,f=b.length;f>e;e++)if(b[e]===c){d=e;break}var g=this.masonry.columnWidth*d,h=c;this._pushPosition(a,g,h);var i=c+a.outerHeight(!0),j=this.masonry.cols+1-f;for(e=0;j>e;e++)this.masonry.colYs[d+e]=i},_masonryGetContainerSize:function(){var a=Math.max.apply(Math,this.masonry.colYs);return{height:a}},_masonryResizeChanged:function(){return this._checkIfSegmentsChanged()},_fitRowsReset:function(){this.fitRows={x:0,y:0,height:0}},_fitRowsLayout:function(a){var c=this,d=this.element.width(),e=this.fitRows;a.each(function(){var a=b(this),f=a.outerWidth(!0),g=a.outerHeight(!0);0!==e.x&&f+e.x>d&&(e.x=0,e.y=e.height),c._pushPosition(a,e.x,e.y),e.height=Math.max(e.y+g,e.height),e.x+=f})},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResizeChanged:function(){return!0},_cellsByRowReset:function(){this.cellsByRow={index:0},this._getSegments(),this._getSegments(!0)},_cellsByRowLayout:function(a){var c=this,d=this.cellsByRow;a.each(function(){var a=b(this),e=d.index%d.cols,f=Math.floor(d.index/d.cols),g=(e+.5)*d.columnWidth-a.outerWidth(!0)/2,h=(f+.5)*d.rowHeight-a.outerHeight(!0)/2;c._pushPosition(a,g,h),d.index++})},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.$filteredAtoms.length/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.offset.top}},_cellsByRowResizeChanged:function(){return this._checkIfSegmentsChanged()},_straightDownReset:function(){this.straightDown={y:0}},_straightDownLayout:function(a){var c=this;a.each(function(){var a=b(this);c._pushPosition(a,0,c.straightDown.y),c.straightDown.y+=a.outerHeight(!0)})},_straightDownGetContainerSize:function(){return{height:this.straightDown.y}},_straightDownResizeChanged:function(){return!0},_masonryHorizontalReset:function(){this.masonryHorizontal={},this._getSegments(!0);var a=this.masonryHorizontal.rows;for(this.masonryHorizontal.rowXs=[];a--;)this.masonryHorizontal.rowXs.push(0)},_masonryHorizontalLayout:function(a){var c=this,d=c.masonryHorizontal;a.each(function(){var a=b(this),e=Math.ceil(a.outerHeight(!0)/d.rowHeight);if(e=Math.min(e,d.rows),1===e)c._masonryHorizontalPlaceBrick(a,d.rowXs);else{var f,g,h=d.rows+1-e,i=[];for(g=0;h>g;g++)f=d.rowXs.slice(g,g+e),i[g]=Math.max.apply(Math,f);c._masonryHorizontalPlaceBrick(a,i)}})},_masonryHorizontalPlaceBrick:function(a,b){for(var c=Math.min.apply(Math,b),d=0,e=0,f=b.length;f>e;e++)if(b[e]===c){d=e;break}var g=c,h=this.masonryHorizontal.rowHeight*d;this._pushPosition(a,g,h);var i=c+a.outerWidth(!0),j=this.masonryHorizontal.rows+1-f;for(e=0;j>e;e++)this.masonryHorizontal.rowXs[d+e]=i},_masonryHorizontalGetContainerSize:function(){var a=Math.max.apply(Math,this.masonryHorizontal.rowXs);return{width:a}},_masonryHorizontalResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_fitColumnsReset:function(){this.fitColumns={x:0,y:0,width:0}},_fitColumnsLayout:function(a){var c=this,d=this.element.height(),e=this.fitColumns;a.each(function(){var a=b(this),f=a.outerWidth(!0),g=a.outerHeight(!0);0!==e.y&&g+e.y>d&&(e.x=e.width,e.y=0),c._pushPosition(a,e.x,e.y),e.width=Math.max(e.x+f,e.width),e.y+=g})},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResizeChanged:function(){return!0},_cellsByColumnReset:function(){this.cellsByColumn={index:0},this._getSegments(),this._getSegments(!0)},_cellsByColumnLayout:function(a){var c=this,d=this.cellsByColumn;a.each(function(){var a=b(this),e=Math.floor(d.index/d.rows),f=d.index%d.rows,g=(e+.5)*d.columnWidth-a.outerWidth(!0)/2,h=(f+.5)*d.rowHeight-a.outerHeight(!0)/2;c._pushPosition(a,g,h),d.index++})},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.$filteredAtoms.length/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth}},_cellsByColumnResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_straightAcrossReset:function(){this.straightAcross={x:0}},_straightAcrossLayout:function(a){var c=this;a.each(function(){var a=b(this);c._pushPosition(a,c.straightAcross.x,0),c.straightAcross.x+=a.outerWidth(!0)})},_straightAcrossGetContainerSize:function(){return{width:this.straightAcross.x}},_straightAcrossResizeChanged:function(){return!0}},b.fn.imagesLoaded=function(a){function c(){a.call(e,f)}function d(a){var e=a.target;e.src!==h&&-1===b.inArray(e,i)&&(i.push(e),--g<=0&&(setTimeout(c),f.unbind(".imagesLoaded",d)))}var e=this,f=e.find("img").add(e.filter("img")),g=f.length,h="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",i=[];return g||c(),f.bind("load.imagesLoaded error.imagesLoaded",d).each(function(){var a=this.src;this.src=h,this.src=a}),e};var w=function(b){a.console&&a.console.error(b)};b.fn.isotope=function(a,c){if("string"==typeof a){var d=Array.prototype.slice.call(arguments,1);this.each(function(){var c=b.data(this,"isotope");return c?b.isFunction(c[a])&&"_"!==a.charAt(0)?void c[a].apply(c,d):void w("no such method '"+a+"' for isotope instance"):void w("cannot call methods on isotope prior to initialization; attempted to call method '"+a+"'")})}else this.each(function(){var d=b.data(this,"isotope");d?(d.option(a),d._init(c)):b.data(this,"isotope",new b.Isotope(a,this,c))});return this}}(window,jQuery),function(a,b,c){"use strict";function d(a,c){var d=b.createElement("social").style,e="webkit Moz o ms".split(" ");if(c in d)return!0;for(var f=0,g=e.length;g>f;f++)if(e[f]+a in d)return!0;return!1}function e(a){var b=a.split("/");return b.pop(),b.join("/")+"/"}function f(){var a;return c("script").each(function(){var b=this.src||"";return b.match(i.scriptSrcRegex)?(a=e(b),!1):void 0}),a}var g,h,i={isGradeA:!(!("querySelectorAll"in b)||a.blackberry||"ontouchstart"in window||"onmsgesturechange"in window),minCount:1,serviceUrl:"service/index.php",initSelector:".socialcount",classes:{gradeA:"grade-a",active:"active",touch:"touch",noTransforms:"no-transforms",showCounts:"counts",countContent:"count",minCount:"minimum"},thousandCharacter:"K",millionCharacter:"M",missingResultText:"-",selectors:{facebook:".facebook",twitter:".twitter",googleplus:".googleplus"},scriptSrcRegex:/socialcount[\w.]*.js/i,plugins:{init:[],bind:[]},cache:{},removeFileName:e,resolveServiceDir:f,isCssAnimations:function(){return d("AnimationName","animationName")},isCssTransforms:function(){return d("Transform","transform")},getUrl:function(a){return a.attr("data-url")||location.href},getFacebookAction:function(a){return(a.attr("data-facebook-action")||"like").toLowerCase()},isCountsEnabled:function(a){return"true"===a.attr("data-counts")},isSmallSize:function(a){return a.is(".socialcount-small")},getCounts:function(a,b){var d,e,g,j=i.selectors,k=i.cache,l={};for(g in j)d=a.find(j[g]),e=d.find("."+i.classes.countContent),e.length?l[g]=e:(l[g]=h.clone(),d.append(l[g]));return k[b]||(k[b]=c.ajax({url:f()+i.serviceUrl,data:{url:b},dataType:"json"})),k[b].done(function(a){for(var b in a)a.hasOwnProperty(b)&&l[b]&&a[b]>i.minCount&&l[b].addClass(i.classes.minCount).html(i.normalizeCount(a[b]))}),k[b]},init:function(a){var b=i.getFacebookAction(a),c=[b],d=i.isSmallSize(a),e=i.getUrl(a),f=i.plugins.init,g=i.isCountsEnabled(a);i.isGradeA&&c.push(i.classes.gradeA),i.isCssTransforms()||c.push(i.classes.noTransforms),g&&c.push(i.classes.showCounts),a.addClass(c.join(" "));for(var h=0,j=f.length;j>h;h++)f[h].call(a);i.isGradeA&&i.bindEvents(a,e,b,d),g&&!d&&i.getCounts(a,e)},normalizeCount:function(a){return a||0===a?a>=1e6?Math.floor(a/1e6)+i.millionCharacter:a>=1e5?Math.floor(a/1e3)+i.thousandCharacter:a>1e3?(a/1e3).toFixed(1).replace(/\.0/,"")+i.thousandCharacter:a:i.missingResultText},bindEvents:function(a,d,e,f){function h(a,d,e){a.closest("li").bind("mouseenter",function(){c(this).closest("li").addClass("hover")}).bind("mouseleave",function(){c(this).closest("li").removeClass("hover")}),a.one("mouseover",function(){var a,f=c(this),h=f.closest("li"),j=g.clone(),k=c(d),l=c('
').append(k),m=c.Deferred();m.promise().always(function(){var a=h.find("iframe");a.length?a.bind("load",function(){j.remove()}):j.remove()}),h.addClass(i.classes.active).append(j).append(l),e?(a=b.createElement("script"),a.src=e,a.attachEvent?a.attachEvent("onreadystatechange",function(){"complete"===a.readyState&&m.resolve()}):c(a).bind("load",m.resolve),b.body.appendChild(a)):k.is("iframe")&&m.resolve()})}f||(h(a.find(i.selectors.facebook+" a"),''),h(a.find(i.selectors.twitter+" a"),'',"//platform.twitter.com/widgets.js"),h(a.find(i.selectors.googleplus+" a"),'
',"//apis.google.com/js/plusone.js"));for(var j=i.plugins.bind,k=0,l=j.length;l>k;k++)j[k].call(a,h,d,f)}};c(function(){g=c("
").addClass("sc-loading").html(i.isCssAnimations()?new Array(4).join('
'):"Loading"),h=c("").addClass(i.classes.countContent).html(" "),c(i.initSelector).each(function(){var a=c(this);i.init(a)})}),window.SocialCount=i}(window,window.document,jQuery),function(a,b){"use strict";b.classes.pinterest=".pinterest",b.plugins.bind.push(function(a,c){var d=this,e=d.data("share-text"),f=d.data("media");a(d.find(b.classes.pinterest),'',"//assets.pinterest.com/js/pinit.js")})}(jQuery,window.SocialCount),function(){"use strict";jQuery.WPV=jQuery.WPV||{},jQuery.WPV.Constants=jQuery.WPV.Constants||{},jQuery.WPV.MEDIA=jQuery.WPV.MEDIA||{layout:{}},jQuery.fn.originalAnimate=jQuery.fn.originalAnimate||jQuery.fn.animate,jQuery.fn.originalStop=jQuery.fn.originalStop||jQuery.fn.stop,function(a){function b(a,b,c,d){return function(){a--,(0===a&&d||1>a&&!d)&&b.call(c||{})}}a.WPV.reduce_column_count=function(b){if(!a("body").hasClass("responsive-layout"))return b;var c=a(window).width();return 768>c?1:c>=768&&1024>=c?Math.min(b,2):c>1024&&1280>c?Math.min(b,3):b},a.getCssPropertyName=function d(b){d.cache||(d.cache={});var c=String(b).replace(/\-(\w)/g,function(a,b){return b.toUpperCase()});if(!(c in d.cache)){var e,f,g=a("")[0].style,h="",i=["Moz","Webkit","O","Khtml","Ms","ms"];if(void 0!==g[b])h=b;else if(void 0!==g[c])h=c;else for(e=0;e");for(var p in b)l=i.css(p),m=b[p],o.css(p,m),o.css(p)!==l?(j.cssFrom[p]=l,n.push(a.camelCase2dashes(p))):k=!0;return o=null,(n=n.join(", "))?void(a.WPV.Constants.vendor.transition?(j.cssOld[a.WPV.Constants.vendor.transition]=h.style[a.WPV.Constants.vendor.transition],j.cssOld[a.WPV.Constants.vendor.transitionProperty]=h.style[a.WPV.Constants.vendor.transitionProperty],j.cssOld[a.WPV.Constants.vendor.transitionDelay]=h.style[a.WPV.Constants.vendor.transitionDelay],j.cssOld[a.WPV.Constants.vendor.transitionDuration]=h.style[a.WPV.Constants.vendor.transitionDuration],j.cssOld[a.WPV.Constants.vendor.transitionTimingFunction]=h.style[a.WPV.Constants.vendor.transitionTimingFunction],j.cssNew[a.WPV.Constants.vendor.transition]="",j.cssNew[a.WPV.Constants.vendor.transitionProperty]=n,j.cssNew[a.WPV.Constants.vendor.transitionDelay]=(e||0)+"ms",j.cssNew[a.WPV.Constants.vendor.transitionDuration]=j.duration+"ms",j.cssNew[a.WPV.Constants.vendor.transitionTimingFunction]=a.WPV.Constants.Esing[j.easing],j.onTransitionEnd=function(c){c.target===h&&c.propertyName&&(b.hasOwnProperty(c.propertyName)||b.hasOwnProperty(a.camelCase(c.propertyName)))&&i.unsetTransition(1,1)},this.addEventListener(a.WPV.Constants.vendor.transitionEndEvent,j.onTransitionEnd,!1),i.css(j.cssFrom).css(j.cssNew),j.timer=setTimeout(function(){i.unsetTransition(1,1)},j.duration+(e||0)),i.css(b)):i.delay(e||0).originalAnimate(b,{duration:j.duration,easing:j.easing,complete:f,queue:!0})):void(k&&a.isFunction(f)&&i.delay(e||0).queue(function(){f.call(h),i.dequeue()}))})},a.fn.unsetTransition=function(b,c){return this.each(function(d,e){var f=a(e),g=f.data("transitionMetadata");if(a.WPV.Constants.vendor.transition||f.originalStop(1,b&&c),g){if(a.WPV.Constants.vendor.transition)if(g.timer&&clearTimeout(g.timer),e.removeEventListener(a.WPV.Constants.vendor.transitionEndEvent,g.onTransitionEnd,!1),b)f.css(g.cssOld).css(g.props),c&&a.isFunction(g.callback)&&g.callback.call(e);else{var h={};for(var i in g.props)h[i]=f.css(i);f.css(a.WPV.Constants.vendor.transition,"none").css(h).css(g.cssOld)}g=null,f.removeData("transitionMetadata")}})},a.fn.undoTransition=function(b){return this.each(function(c,d){var e=a(d),f=e.data("transitionMetadata");f&&(e.unsetTransition(),b?e.setTransition(f.cssFrom,f.duration,f.easing,f.delay):e.css(f.cssFrom),f=null)})},a.fn.wpvAddClass=function(c,d,e,f,g){var h=b(this.length,g||a.noop,this);return this.delay(f||0).queue(function(){if(jQuery.WPV.Constants.vendor.transition){var b={};b[a.WPV.Constants.vendor.transition]="",b[a.WPV.Constants.vendor.transitionProperty]="all",b[a.WPV.Constants.vendor.transitionDelay]=(f||0)+"ms",b[a.WPV.Constants.vendor.transitionDuration]=(d||0)+"ms",b[a.WPV.Constants.vendor.transitionTimingFunction]=a.WPV.Constants.Esing[e],a(this).css(b).addClass(c)}else a(this).addClass(c,d,e,h)}),this.dequeue()},a.fn.wpvRemoveClass=function(c,d,e,f,g){var h=b(this.length,g||a.noop,this);return this.delay(f||0).queue(function(){if(jQuery.WPV.Constants.vendor.transition){var b={};b[a.WPV.Constants.vendor.transition]="",b[a.WPV.Constants.vendor.transitionProperty]="all",b[a.WPV.Constants.vendor.transitionDelay]=(f||0)+"ms",b[a.WPV.Constants.vendor.transitionDuration]=(d||0)+"ms",b[a.WPV.Constants.vendor.transitionTimingFunction]=a.WPV.Constants.Esing[e],a(this).css(b).removeClass(c)}else a(this).removeClass(c,d,e,h)}),this.dequeue()},function(){function b(a){function d(){f?c[e]=setTimeout(d,500):(i=a()?h.minDelay:Math.min(i+h.step,h.maxDelay),c[e]=setTimeout(d,i))}if(!(this instanceof b))return new b(a);var e,f,g=0,h=this,i=this.minDelay;do e="pool-"+g++;while(e in c);this.start=function(){c[e]=setTimeout(d,0)},this.stop=function(){clearTimeout(c[e])},this.pause=function(){f=!0},this.resume=function(){f=!1}}var c={};b.prototype={minDelay:0,maxDelay:500,step:5},a.AdaptivePool=b}(),function(){function b(b){var c=d[b].elem,e=c.offsetWidth,f=c.offsetHeight,g=0;return e!==d[b].lastWidth&&(d[b].lastWidth=e,g=1),f!==d[b].lastHeight&&(d[b].lastHeight=f,g=1),g?(a(c).trigger("elementResize",{width:e,height:f}),!0):!1}var c=0,d={};a.fn.watchResize=function(e,f){return this.each(function(){var e=a(this).data("resizewatch");if(e&&d.hasOwnProperty(e))d[e].handlers++;else{e="elem_"+c++;var g=0,h=function(){var a=!1;return g||(g=1,a=b(e),g=0),a},i=a.AdaptivePool(h);a.extend(i,f),d[e]={elem:this,lastWidth:this.offsetWidth,lastHeight:this.offsetHeight,handlers:1,pool:i},a(this).data("resizewatch",e),d[e].pool.start()}}).bind("elementResize",e)},a.fn.unwatchResize=function(b){return this.each(function(){var c=a(this).data("resizewatch");c&&(d.hasOwnProperty("key")&&(d[c].pool.stop(),--d[c].handlers<=0&&(delete d[c],a(this).removeData("resizewatch"))),a(this).unbind("elementResize",b))})},a.fn.pauseResizeWatcher=function(){return this.each(function(){var b=a(this).data("resizewatch");b&&d.hasOwnProperty("key")&&d[b].pool.pause()})},a.fn.resumeResizeWatcher=function(){return this.each(function(){var b=a(this).data("resizewatch");b&&d.hasOwnProperty("key")&&d[b].pool.resume()})}}(jQuery),a.fn.nativeSize=function(b){var c=this[0],d={width:0,height:0};if(c){var e,f;b&&(e=c.style.width,f=c.style.height,a(c).css({width:"auto",height:"auto"})),d.width=c.naturalWidth||c.width||a(c).width(),d.height=c.naturalHeight||c.height||a(c).height(),b&&a(c).css({width:e,height:f})}return d},a.fn.toFixedWidth=function(){return this.each(function(){a(this).css("width",a(this).width())})},a.jsPath=function(a,b,c){for(var d,e=a,f=b.replace(/\[['"]?([^\]]+)['"]?\]/g,".$1").split("."),g=f.length,h=[],i=0;g>i;i++){if(h[i]=d=f[i],i===g-1)return arguments.length<3?e[d]:void 0===c?e.hasOwnProperty(d)?(delete e[d],!0):!1:e[d]!==c?(e[d]=c,!0):!1;if(!e.hasOwnProperty(d)){if(2===arguments.length)return void 0;e[d]=isNaN(parseFloat(d))||""+parseFloat(d)!=""+d?{}:[]}e=e[d]}},function(){a.fn.thumbnail=function(b){var c=a.getCssPropertyName("background-size"),d=a.extend({classNames:"bg-thumbnail",resizing:"cover",url:"about:blank",callback:a.noop,autoConfig:!1},b);return this.each(function(b,e){var f,g=a("
").addClass(d.classNames).appendTo(e);return d.url&&"about:blank"!==d.url?(d.autoConfig&&g.css({width:"100%",height:"100%",display:"inline-block",top:0,left:0,position:"relative",margin:0,padding:0,zIndex:1,overflow:"hidden"}),void(c?(f=new Image,f.onload=function(){g.css("backgroundImage","url('"+this.src+"')").setBgSize(d.resizing),d.callback()},f.src=d.url):(f=a("").appendTo(g),d.autoConfig&&f.css({display:"block",position:"absolute",width:"auto",height:"auto",zIndex:2}),f.bind("load",function(){f=this,setTimeout(function(){a(f).show().objectFit(d.resizing,g)},0),d.callback()}).attr("src",d.url)))):void d.callback()})}}(),a.fn.objectFit=function(b,c){return this.each(function(d,e){var f=a(e);if("auto"===b||"none"===b||"crop"===b)return f.css({top:"50%",left:"50%",width:"auto",height:"auto",maxWidth:"none",maxHeight:"none"}).css({marginLeft:-f.width()/2,marginTop:-f.height()/2}),!1;if("crop-top"===b)return f.css({top:0,left:"50%",width:"auto",height:"auto",maxWidth:"none",maxHeight:"none"}).css({marginLeft:-f.width()/2,marginTop:0}),!1;if("fill"===b||"stretch"===b)return f.css({width:"100%",height:"100%",top:0,left:0,marginLeft:0,marginTop:0}),!1;var g={width:c.width(),height:c.height()};if(!g.width||!g.height)return void setTimeout(function(){a(e).objectFit(b,c)},1e3);e.parentNode.parentNode.resizeWatchAttached||(e.parentNode.parentNode.resizeWatchAttached=1,a(e.parentNode.parentNode).watchResize(function(){a(e).objectFit(b,c)},{minDelay:20,maxDelay:500,step:25}));var h,i,j=f.nativeSize(!0);return"contain"===b||"fit"===b?(i=j.height*(g.width/j.width),h=g.width,i>g.height&&(h=j.width*(g.height/j.height),i=g.height),f.css({top:"50%",left:"50%",width:h,height:i,marginLeft:-h/2,marginTop:-i/2}),!1):"cover"===b?(h=g.width,i=j.height*(g.width/j.width),i=c.min_move_x?(e(),g>0?c.wipeLeft.call(d,a):c.wipeRight.call(d,a)):Math.abs(k)>=c.min_move_y&&(e(),k>0?c.wipeDown.call(d,a):c.wipeUp.call(d,a))}}function g(b){if(!c.canUseEvent(b))return!0;if(b.originalEvent.touches){if(b.originalEvent.touches.length>1)return!0;h=b.originalEvent.touches[0].pageX,i=b.originalEvent.touches[0].pageY}else h=b.pageX,i=b.pageY;j=!0,a(d).bind("touchmove",f),c.preventDefaultEvents&&b.preventDefault(),b.stopPropagation()}var h,i,j=!1;a(d).bind("touchstart",g)}),this}}(jQuery)}(),function(a){"use strict";a.fn.wpvEqualHeight=function(b){function c(){var c=e.width();if(c!==f){f=c;var g=0;d.css("height","auto").each(function(){g=Math.max(g,a(this)[b.method]())}),a.WPV.MEDIA.layout["layout-below-medium"]||d.height(g)}}var d=this,e=a(this).closest(".row"),f=0;b=a.extend({},{method:"outerHeight"},b),d.length>1&&(a(window).bind("resize load",c),d.on("tabscreate accordioncreate",function(){f=0,c()}),c())}}(jQuery),function(a){"use strict";var b=!1,c=!1;a(function(){b=!0}),a(document).bind("ready",function(){c=!0}),a.rawContentHandler=function(d){if(a.isFunction(d))if(b){if(!c){var e=a("body")[0];d.call(e,e.childNodes)}a(window).bind("rawContent",function(a,b){d.call(a.target,b||a.target.childNodes)})}else a(function(){a.rawContentHandler(d)})}}(jQuery),function(a){"use strict";function b(a,b){return h.call(a)==="[object "+b+"]"}function c(){window.console&&console.log&&a.each(arguments,function(a,b){console.log(b)})}function d(a,b){return a=parseInt(a,10),isNaN(a)&&(a=void 0===b?0:b),a}function e(a,b,c,d){return"next"===d?1:"prev"===d?-1:a===c-1&&0===b?1:0===a&&b===c-1?-1:b>a?1:-1}function f(){return screen.width<600||screen.height<800}function g(b,c){function e(b){if(b||k._loaded){var c=!1;for(var d in k._resizeHandlers)c=!0,k._resizeHandlers[d](k);c&&k._loaded&&(a(k.element).height(k._getDisplayHeight()),k.resizing(k.options.resizing))}}this.__INST_ID="Slider_"+l++,this._path=[0],this._fxId=null,this._fxUID=null,this._timer=null,this.options={},this._listeners={},this._resizeHandlers={},this.element=a(c).addClass("vamtam-slider loading").css("visibility","hidden")[0],this.slides=[],this._slideshowController={start:0,end:0,pos:0},this.option(a.extend({},g.defaults,b));var f=this;this.options.pauseOnHover&&a(this.element).mouseover(function(){f.pause()}).mouseleave(function(){f.resume()});var h=d(this.options.initialHeight),i=this.options.height;a.isFunction(i)&&(i=i()),i=d(i),h&&h!==i?a(this.element).css("height",Math.abs(d(h,d(i,100)))):a(this.element).css("height",this._getDisplayHeight());var j,k=this;a(window).bind("resize."+this.__INST_ID,function(){var b=a(k.element).width();b&&b!==j&&(j=b,e())});var m;this.filter=function(b,c){if(!f._fxId)throw"No effect has been set yet, so I can't filter the slides now";if(!a.isFunction(g.Effects[f._fxId].uninit))throw"The current effect must have 'uninit' method to be compatible with the filter functionality";m||(m=f.slides),this.showLoadingMask(function(){var d=[];f.foreachSlide(function(a,c,e){c.element=null,e||b(c)===!1||d.push(c)},m),a.VamtamSlider.Effects[f._fxId].uninit(f),a(".slide-wrapper",f.element).remove(),f.slides=d,f._path=[0],f._loaded=!1,f._initAllSlides(function(){a.VamtamSlider.Effects[f._fxId].init(f),setTimeout(function(){f.pos(c||0),f._loaded=!0,f.hideLoadingMask()},0)})})},this._load()}var h=Object.prototype.toString,i=a.getCssPropertyName("background-size"),j=function(){var a=1;return function(){return"uid_"+a++}}(),k={Android:function(){return/Android/i.test(navigator.userAgent)},BlackBerry:function(){return/BlackBerry/i.test(navigator.userAgent)},iPhone:function(){return/iPhone/i.test(navigator.userAgent)},iPad:function(){return/iPad/i.test(navigator.userAgent)},iPod:function(){return/iPod/i.test(navigator.userAgent)},iOS:function(){return this.iPhone()||this.iPad()||this.iPod()},Opera:function(){return/Opera Mini/i.test(navigator.userAgent)},Windows:function(){return/IEMobile/i.test(navigator.userAgent)},Fennec:function(){return/Fennec/i.test(navigator.userAgent)},any:function(){return this.Android()||this.BlackBerry()||this.iOS()||this.Opera()||this.Windows()||this.Fennec()}},l=1;g.defaults={pauseTime:8e3,animationTime:2e3,pauseOnHover:!0,autostart:!0,easing:"swing",effect:"fade",useKeyboard:!0,autoFocus:!1,pager:"auto",resizing:"cover",initialHeight:null,minHeight:100,height:300,maintainAspectRatio:!1,maxWidth:null,loadingMask:!0,captionContainer:null,captionQueue:!0,captionFxEasing:"swing",captionFxDelay:0,initialIndex:0,complexSlidesDuration:3e3,forceNestedAnimationTimes:!1,disableOnMobiles:!1},g.create=function(b,c,d){var e="vamtamSlider";a.fn[b]=function(f){var h="string"==typeof f,i=Array.prototype.slice.call(arguments,1),j=this;if(h&&/\b_/.test(f))return j;if(h)this.each(function(){var c=a(this).data(e);if(!c)throw"cannot call methods on "+b+" prior to initialization; attempted to call method '"+f+"'";var d=a.jsPath(c,f);if(!a.isFunction(d))throw"no such method '"+f+"' for "+b+" widget instance";var g=d.apply(c,i);return g!==c&&void 0!==g?(j=g,!1):void 0});else{var k=a.extend(!0,{},d||g.defaults,f);this.each(function(){var b=a(this).data(e);b?b.option(k):a(this).data(e,new c(k,this))})}return j}},g.prototype={on:function(a,b){a=String(a).toLowerCase(),_listeners[a]||(_listeners[a]=[]),_listeners[a].push(b)},_notify:function(b,c){b=String(b).toLowerCase();var d=this;a.each(_listeners[b]||[],function(b,e){return e.apply(d,a.makeArray(c))})},option:function(b,c){if(null===b)return this.options;if(a.isPlainObject(b)){for(var d in b)this.option(d,b[d]);return this}if(b&&"string"==typeof b){var e;return void 0===c?(e="_getOption_"+b,a.isFunction(this[e])?this[e]():a.jsPath(this.options,b)):(e="_setOption_"+b,a.isFunction(this[e])?this[e](c):a.jsPath(this.options,b,c),this)}},_setOption_loadingMask:function(b){b&&"string"==typeof b?this._loadingMask=a(b).addClass("vamtam-slider-loading-mask"):b?this._loadingMask||(this._loadingMask=a('
').appendTo(this.element)):this._loadingMask=null },_setWindowSizeDependentOption:function(b,c){if(a.isFunction(c)){var d=this;this._resizeHandlers[b]=function(){d.options[b]=c(d)},d.options[b]=c(d)}else this.options[b]=c,b in this._resizeHandlers&&delete this._resizeHandlers[b]},_setOption_maintainAspectRatio:function(a){this._setWindowSizeDependentOption("maintainAspectRatio",a)},_setOption_height:function(a){this._setWindowSizeDependentOption("height",a)},_setOption_captionContainer:function(b){b&&"string"==typeof b?this._captionContainer=a(b):b?this._captionContainer||(this._captionContainer=a('
').appendTo(this.element)):this._captionContainer=null},_getIsHtmlOnly:function(){var b=!0;return a.each(this.slides,function(a,c){return"html"!==c.type?(b=!1,!1):void 0}),b},_getCaptionContainer:function(){return this._captionContainer||this._setOption_captionContainer(!0),this._captionContainer},_initAllSlides:function(a){function b(){++d>=c&&a()}var c=this.countSlides(),d=0,e=this;this.foreachSlide(function(a,c){e._initSlide(c,b)})},_initSlide:function(b,c,d){function e(){if(a.isArray(b.captions)&&b.captions.length){var d=a('
').appendTo(f._getCaptionContainer());a(b.wrapper).data("captionsWrapper",d[0]),a.each(b.captions,function(b,c){var e=a('
');e.html(c.html),c.style&&e.css(c.style),e.appendTo(d)})}c()}var f=this;switch(b.type){case"img":case"image":this._initImageSlide(b,e,d);break;case"html":this._initHtmlSlide(b,e,d);break;case"gallery":this._initGallerySlide(b,e,d);break;default:e()}},_initImageSlide:function(b,d,e){if(b.element)return void d();var f=this;if(b.wrapper=a('
').appendTo(e||f.element),i){b.element=a('
').appendTo(b.wrapper)[0];var g=new Image;if(g.onload=function(){b.element.style.backgroundImage="url('"+this.src+"')",a(b.element).setBgSize(f.options.resizing),setTimeout(function(){g=null},10),d()},"RetinaImagePath"in window&&window.devicePixelRatio>1){var h=new RetinaImagePath(b.url);h.check_2x_variant(function(a){g.src=a?h.at_2x_path:b.url})}else g.src=b.url}else b.element=a('').appendTo(b.wrapper)[0],a(b.element).bind("load",function(){a(this).objectFit(f.options.resizing,a(e||f.element)),d()}).attr("src",b.url);b.style&&a(b.element).css(b.style),b.href&&a(b.wrapper).css({cursor:"pointer"}).click(function(d){if(d.isDefaultPrevented())return!1;if(!a(this).is(".active"))return!1;var e=String(b.hrefTarget||"self").replace(/^_/,"");if("blank"===e||"new"===e)window.open(b.href);else try{window[e].location=b.href}catch(f){c(f)}})},_initHtmlSlide:function(b,c,d){b.element||(b.wrapper=a('
').appendTo(d||this.element),b.element=a('
').appendTo(b.wrapper).html(b.html)[0],b.style&&a(b.element).css(b.style)),c()},_initGallerySlide:function(b,c){b.element&&c();var d=b.children.length,e=0,f=function(){++e>=d&&c()};b.wrapper=a('
').appendTo(this.element);for(var g=0;d>g;g++)this._initSlide(b.children[g],f,b.wrapper)},_getDisplayHeight:function(){var b=this.options.height,c=String(b).toLowerCase(),d=0,e=/^(min|max|avg|auto|0)$/.test(String(b).toLowerCase()),f=a.isFunction(b);if(f&&(b=b(this)),e){b="max"===c||"auto"===c||"0"===c?0:1/0;var g=a(this.element).parent();g.css("minHeight",this.element.scrollHeight),this.element.style.height="auto",a(".slide",this.element).each(function(e,f){var g=f.scrollHeight;return a(f).is(".type-bg-image")&&(g=2/3*f.scrollWidth),"auto"!==c&&"0"!==c||!a(f).is(".active .slide")?void("max"===c||"auto"===c||"0"===c?b=Math.max(b,g):"min"===c?b=Math.min(b,g):"avg"===c&&(d+=g)):(b=g,!1)})}return"avg"===c&&(b=d/this.slides.length),this._initialWidth||(this._initialWidth=a(this.element).width(),this._isHtmlOnly=this._getIsHtmlOnly()),this.options.maintainAspectRatio&&!f&&(b*=a(this.element).width()/(this.options.maxWidth||this._initialWidth)),this.options.minHeight&&(b=Math.max(this.options.minHeight,b)),this.options.maxHeight&&(b=Math.min(this.options.maxHeight,b)),"auto"===c&&(b=Math.max(this.element.scrollHeight,b)),b},showLoadingMask:function(b){this._loadingMask&&a(this._loadingMask).length?a(this._loadingMask).show().setTransition({opacity:1},200,"swing",0,b):(b||a.noop)()},hideLoadingMask:function(b,c){this._loadingMask&&a(this._loadingMask).length?a(this._loadingMask).setTransition({opacity:0},a(this.element).is(".slider-shortcode-wrapper .vamtam-slider")?2:1e3,"swing",c||0,function(){a(this).hide(),(b||a.noop)()}):(b||a.noop)()},_disable:function(){a(this.element).parent().addClass("slider-disabled")},_load:function(){if(this.options.disableOnMobiles){if(f())return this._disable();if(k.any()&&!k.iPad())return this._disable()}var b=this,c=b.options.resizing,d="header-slider"===this.element.id?1500:200,e=a(this.element);b.resizing("none"),e.css({opacity:0,visibility:"visible"}),this._initAllSlides(function(){e.find(".slide-wrapper").css("display","none"),e.pauseResizeWatcher(),e.trigger("beforeExpand",[b]),e.setTransition({height:Math.round(b._getDisplayHeight())},d,"swing",0,function(){b.fx(b.options.effect);for(var d in b)0===d.indexOf("_init_")&&a.isFunction(b[d])&&b[d]();e.bind("slideComplete",function(){"auto"===b.options.height&&e.height(b._getDisplayHeight())}),b.pos(b.options.initialIndex||0,function(){e.trigger("sliderStarted",[b]),b.pause(),"none"!==c&&b.resizing(c),e.watchResize(function(){b.options.maintainAspectRatio&&e.height(b._getDisplayHeight()),b.resizing(b.options.resizing)}),e.resumeResizeWatcher(),e.trigger("elementResize",{width:e.width(),height:e.height()}),e.setTransition({opacity:1},800,"easeInQuad",200,function(){e.trigger("afterExpand",[b]),b.hideLoadingMask(a.noop,200),b._loaded=!0,e.removeClass("loading animated").addClass("loaded"),e.attr("tabindex","-1"),b.options.autoFocus&&"ontouchstart"in document.documentElement&&setTimeout(function(){e.trigger("focus")},500),b.resume();var c="right"===b.options.autostart?1:"left"===b.options.autostart?-1:0;0!==c&&b.start(c),e.trigger("sliderReady",[b])})})})})},_setOption_slides:function(b){var d=a.extend([],b),e=d.length;return e?void(this.slides=d):void c("Slider: Action canceled - the slider has no slides.")},resizing:function(b){if(!b)return this.options.resizing;var c=this;return this.foreachSlide(function(d,e){if(e.element)switch(e.type){case"img":case"image":i?a(e.element).setBgSize(b):a(e.element).objectFit(b,a(c.element));break;case"html":break;case"video":}}),this.options.resizing=b,this},fx:function(d){return d?(b(d,"String")&&g.Effects[d]||(c("Invalid effect '"+d+"' specified. Using 'fade' instead."),d="fade"),d===this._fxId?this:(this._fxId&&(a(this.element).removeClass("effect-"+this._fxId),a.isFunction(g.Effects[this._fxId].uninit)&&g.Effects[this._fxId].uninit(this)),a(this.element).addClass("effect-"+d),a.isFunction(g.Effects[d].init)&&g.Effects[d].init(this),this._fxId=d,this)):this._fxId},countSlides:function(){var a=0;return this.foreachSlide(function(){a++}),a},foreachSlide:function(b,c){function d(c,e){a.each(c,function(a,c){b.call(c,a,c,e),c.children&&d(c.children,c)})}d(c||this.slides)},_getCurrentSlide:function(){for(var a=0,b=this.slides[this._path[a]];++a1},_goIn:function(){this._path.push(0)},_goOut:function(){this._path.pop()},_position:function(){return this._path[this._path.length-1]},pos:function(b,c){var d=this._position();if(!b&&0!==b)return d;var f,h=this.slides.length;switch(b){case"first":f=0;break;case"last":f=h-1;break;case"prev":f=this._position()-1,0>f&&(f=h-1);break;case"next":f=this._position()+1,f>=h&&(f=0);break;default:if(f=parseInt(b,10),isNaN(f)||0>f||f>=h)throw"Invalid goto argument"}if(!(d===f&&this._loaded||a(this.element).is(".animated"))){var i=g.Effects[this.fx()],k=this.options.animationTime,l=0,m=this,n=function(){return function(){2!==++l&&m._loaded||(setTimeout(function(){a(m.element).removeClass("animated").trigger("slideComplete")},100),(c||a.noop)())}}(f);this._fxUID=j();var o={fxUID:this._fxUID,slider:this,newIndex:f,oldIndex:d,callback:n,toShow:a(this.slides[f].wrapper).addClass("active"),toHide:a(),direction:e(d,f,this.slides.length,b),duration:this._loaded?k:1,easing:this.options.easing};this._loaded&&(o.toHide=a(this.slides[d].wrapper).removeClass("active")),m._path[m._path.length-1]=f,a(this.element).trigger("slidePositionChange",[f,d,o.direction]),a(this.element).addClass("animated"),a(this.element).trigger("beforeRun"),i.run(o),this.resizing(this.resizing()),a(this.element).trigger("afterRun"),a.isFunction(i.changeCaptions)?i.changeCaptions(o):this._changeCaptions(o)}},_changeCaptions:function(b){var c=b.toHide.data("captionsWrapper"),d=b.toShow.data("captionsWrapper"),e=this.options.captionFxTime,f=this.options.captionFxDelay||0,g=this.options.captionFxEasing,h=!!this.options.captionQueue,i=a(this.element);i.queue("captions",[]),a(c).find(".caption").each(function(b,c){i.queue("captions",function(){function b(){++d>1&&h&&i.dequeue("captions")}var d=0;a(c).stop(1,0).delay(f||0).animate({opacity:0},{duration:e,easing:g,queue:!1,complete:b}),a(c).wpvRemoveClass("visible",e,g,f,b),h||i.dequeue("captions")})}),i.queue("captions",function(){a(c).stop(1,0).wpvRemoveClass("visible",Math.ceil(e/4),"linear",0),a(d).stop(1,0).wpvAddClass("visible",Math.ceil(e/4),"linear",0),a(c).animate({opacity:0},{duration:Math.ceil(e/4),easing:"linear",queue:!1}),a(d).animate({opacity:1},{duration:Math.ceil(e/4),easing:"linear",queue:!1}),i.dequeue("captions")}),a(d).find(".caption").each(function(b,c){i.queue("captions",function(){a(c).stop(1,0).delay(f||0).animate({opacity:1},{duration:e,easing:g,queue:!1}),a(c).wpvAddClass("visible",e,g,f,function(){h&&i.dequeue("captions")}),h||i.dequeue("captions")})}),i.queue("captions",b.callback||a.noop),i.dequeue("captions")},start:function(b){function c(f){var g=+new Date,h=g-e,i=f._slideshowController;if(e=g,!i.isPaused&&!i.isWaiting){if(!i.remainingTime)return i.remainingTime=f.options.pauseTime,i.pos=0,c(f);i.remainingTime-=h,i.pos=f.options.pauseTime-i.remainingTime,i.remainingTime<=0&&(i.isWaiting=1,setTimeout(function(){f.pos(-1===b?"prev":"next",function(){i.remainingTime=f.options.pauseTime,i.isWaiting=0})},d))}i.lastPos!==i.pos&&(i.lastPos=i.pos,a(f.element).trigger("progress",Math.floor(i.pos/f.options.pauseTime*100))),f._timer=setTimeout(function(){c(f)},d)}var d=200,e=+new Date;null===this._timer&&(c(this),a(this.element).trigger("start",b))},stop:function(){this._timer&&(clearTimeout(this._timer),this._timer=null,this._slideshowController.isWaiting=0,this._slideshowController.isPaused=0,this._slideshowController.remainingTime=0,this._slideshowController.pos=0,a(this.element).trigger("progress",0).trigger("stop"))},pause:function(){this._timer&&(this._slideshowController.isPaused=1,a(this.element).trigger("pause"))},resume:function(){this._timer&&(this._slideshowController.isPaused=0,a(this.element).trigger("resume"))}},g.prototype._init_keyboardNavigation=function(){if(this.options.useKeyboard){var b=this;a(this.element).bind("keydown.vslider",function(a){switch(a.keyCode){case 39:b.pos("next"),a.preventDefault();break;case 37:b.pos("prev"),a.preventDefault()}})}},g.prototype._init_pager=function(){if(this.options.pager){for(var b=a('
    '),c=this.slides.length,d=this,e=function(){var a=b.find("> li").index(this);return a!==d.pos()&&d.pos(b.find("> li").index(this)),!1},f=0;c>f;f++)a("
  • ").appendTo(b).mousedown(e);a(this.element).bind("slidePositionChange.vslider",function(a,c){b.find("li.active").removeClass("active").end().find("li:eq("+c+")").addClass("active")}),b.appendTo(a("auto"===this.options.pager?this.element:this.options.pager))}},g.prototype._init_prevNextButtons=function(){var b=this,c=this.options.nextButton?a(this.options.nextButton):a('
    ').appendTo(this.element);c.mousedown(function(){return b.onNextButtonAction(),!1});var d=this.options.prevButton?a(this.options.prevButton):a('
    ').appendTo(this.element);d.mousedown(function(){return b.onPrevButtonAction(),!1})},g.prototype.onNextButtonAction=function(){this.pos("next")},g.prototype.onPrevButtonAction=function(){this.pos("prev")},g.Effects={},g.CaptionEffects={},g.CaptionEffects.fadeCaptions=function(b){var c=b.toHide.data("captionsWrapper"),d=b.toShow.data("captionsWrapper"),e=a(c).find(".caption"),f=a(d).find(".caption"),g=e.length,h=f.length,i=b.slider.options.captionFxTime||b.duration,j=b.slider.options.captionFxDelay||0,k=b.slider.options.captionFxEasing,l=!!b.slider.options.captionQueue,m=a(b.slider.element),n=Math.ceil(i/4);m.queue("captions",[]),m.queue("captions",function(b){if(g)if(l)e.each(function(c,d){setTimeout(function(){a(d).stop(1,0).animate({opacity:0,avoidCSSTransitions:!0},n,k,function(){a(this).css("display","none"),c>=g-1&&b()})},(j||n/g)*c)});else{var c=0;e.delay(j||0).stop(1,0).animate({opacity:0,avoidCSSTransitions:!0},n,k,function(){a(this).css("display","none"),++c>=g&&b()})}else setTimeout(b,n)}),m.queue("captions",function(b){var e=a.createCountingCallback(2,b);c?a(c).stop(1,0).animate({opacity:0,avoidCSSTransitions:!0},d?2*n:n,"linear",function(){a(this).css("display","none"),e()}):setTimeout(e,n),d?a(d).stop(1,0).css("display","block").delay(c?0:n).animate({opacity:1,avoidCSSTransitions:!0},c?2*n:n,"linear",e):setTimeout(e,n)}),m.queue("captions",function(b){if(h)if(l)f.each(function(c,d){setTimeout(function(){a(d).stop(1,0).css("display","block").animate({opacity:1,avoidCSSTransitions:!0},n,k,function(){c>=h-1&&b()})},(j||n/h)*c)});else{var c=0;f.css({opacity:0,display:"block"}).animate({opacity:1,avoidCSSTransitions:!0},i,k,function(){++c===h&&b()})}else setTimeout(b,n)}),m.queue("captions",b.callback||a.noop),m.dequeue("captions")},g.Effects.fade={init:function(b){var c=Math.max(b.pos(),0);a("> .slide-wrapper",b.element).each(function(b){a(this).css({zIndex:b===c?2:1,opacity:b===c?1:0,display:b===c?"block":"none"})})},run:function(a){a.toHide.stop(1,1).animate({opacity:0},a.duration,a.easing),a.toShow.stop(1,1).css({opacity:0,zIndex:2,display:"block"}).animate({opacity:1},a.duration,a.easing,function(){a.toHide.stop(1,1).css({zIndex:1,display:"none"}),a.callback()})},changeCaptions:g.CaptionEffects.fadeCaptions},g.Effects.slide={init:function(b){var c=Math.max(b.pos(),0);a("> .slide-wrapper",b.element).each(function(b){a(this).css({zIndex:b===c?2:1,opacity:b===c?1:0,display:b===c?"block":"none"})})},run:function(b){b.toShow.stop(1,0).css({opacity:.9,display:"block"});var c=b.toShow.width()*b.direction,d=a.createCountingCallback(2,b.callback);b.toShow.css({left:c,zIndex:2}).animate({left:0,opacity:1,avoidTransforms:!Modernizr.csstransforms3d},b.duration,b.easing,d),b.toHide.length&&b.toHide[0]!==b.toShow[0]?b.toHide.stop(1,0).css({left:0,opacity:1,zIndex:1}).animate({opacity:0,left:-c,avoidTransforms:!Modernizr.csstransforms3d},b.duration,b.easing,function(){a(this).css({display:"none",opacity:1}),d()}):d()},changeCaptions:g.CaptionEffects.fadeCaptions},g.create("vamtamSlider",g,g.defaults),a.VamtamSlider=g}(jQuery),function(a){"use strict";function b(a,b){var g=a.val();return c(a),a.is("[required]")&&e.test(g)?(setTimeout(function(){d(a,"cant-be-empty",b)},0),!1):a.is('[type="email"]')&&!f.test(g)?(d(a,"must-be-email",b),!1):!0}function c(a){a.removeClass("invalid")}function d(b,c,d){var e=b[0].form,f=b.attr("data-"+c);f||(f=g[c]),b.addClass("invalid"),label=a(".error-message",e),label.length||(label=a('
    ')),label=label.stop(1,1).css({left:0,opacity:0}).text(f).appendTo(b.closest(".form-field-wrapper")),label.animate({left:["100%","easeOutExpo"],opacity:[1,"linear"]},500),d||b.trigger("focus")}var e=/^\s*$/,f=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,g={"cant-be-empty":"This field is required","must-be-email":"Please enter a valid email address"};a.fn.validator=function(){return this.filter("form").each(function(c,d){d.noValidate=!0,a(d.elements).not(":button, :checkbox, :radio, :submit, :reset, :hidden, fieldset, label, form").each(function(){var c=a(this);c.wrap(a('').css({position:"relative"})),c.unbind("change.validateForm keyup").bind("change.validateForm keyup",function(d){return"keyup"===d.type&&9===d.keyCode?!0:void c.toggleClass("invalid",!b(a(this),!0))})}),d.validate=function(c){a(".error-message",this).css({opacity:0});for(var d=0;d=k.top&&h-c<=k.left+l&&i+c>=k.left}function c(a,b,c){a.css("opacity",0).attr("src",b).removeClass("loading").addClass("loaded").trigger("jailStartAnimation"),a.originalAnimate({opacity:1},{duration:c.speed,easing:"linear",queue:!1,complete:function(){c.resizeImages&&this.originalCssHeight&&(this.style.height=this.originalCssHeight,delete this.originalCssHeight),a.trigger("jailComplete"),c.callbackAfterEachImage&&c.callbackAfterEachImage.call(this,a,c),c.images&&c.callback&&!c.callback.called&&f(c.images)&&(c.callback.called=!0,c.callback())}})}function d(d){a("img.lazy[data-href]").each(function(e,f){var h=a(f),i=a.extend({timeout:10,effect:!1,speed:400,selector:null,offset:0,event:"scroll",callback:jQuery.noop,callbackAfterEachImage:jQuery.noop,placeholder:!1,resizeImages:!0,container:g},h.data("jailOptions")||{});if(!(d&&"scroll"!==d&&"resize"!==d&&"orientationchange"!==d&&i.event!==d||i.event&&/scroll|resize|orientationchange/i.test(i.event)&&!b(h,i.container)||h.is(".loading"))){h.addClass("loading");var j=new Image,k=f.getAttribute("data-href");f.removeAttribute("data-href"),j.onload=function(){c(h,k,i)},j.src=k}})}function e(a){var b=parseInt(a.getAttribute("width"),10),c=parseInt(a.getAttribute("height"),10);if(!isNaN(b)&&isNaN(c)){a.originalCssHeight=a.style.height||"";var d=a.offsetWidth/b;a.style.height=Math.floor(c*d)+"px"}}function f(b){var c=!0;return b.each(function(){return a(this).hasClass("loaded")?void 0:(c=!1,!1)}),c}var g=a(window);a.fn.asynchImageLoader=a.fn.jail=function(b){var c=a.extend({},b||{},{images:this});return this.data("jailOptions",c),c.resizeImages!==!1&&this.each(function(){e(this)}),c.event||d(),this},g.bind("scroll resize load orientationchange",function(a){d(a.type)}),a(function(){setTimeout(function(){d()},1e3)})}(jQuery),function(a){"use strict";function b(b){return b.attr("data-columns")?a.WPV.reduce_column_count(parseInt(b.attr("data-columns"),10))+(Modernizr.touch?.2:0):1}function c(a){return 1/b(a)}function d(d){var e=d.find(" > li").removeClass("fit"),f=b(d),g=e.length,h=g/f,i=100*c(d)/h,j=100*h;d.css("width",j+"%"),e.each(function(b,c){a(c).css({width:i+"%"})})}function e(b){var c=['
    '];switch(b.arrowButtons){case"buttons-only":c.push(i,j);break;case"left":c.push(i,j,k);break;case"right":c.push(k,i,j);break;case"none":c.push(k);break;default:c.push(i,k,j)}return c.push("
    "),a(c.join(""))}function f(b){var c=a(b).data("scrollBars");if(c){if(c.horizontal){var d=b.scrollWidth,e=100*(b.clientWidth/d),f=100*(b.scrollLeft/d);c.horizontal.find(".scrollbar-btn-main > div").css({width:e+"%",left:f+"%"}).end().toggleClass("disabled",e>=100)}if(c.vertical){var g=b.scrollHeight,h=100*(b.clientHeight/g),i=100*(b.scrollTop/g);c.vertical.find(".scrollbar-btn-main > div").css({height:h+"%",left:i+"%"}).end().toggleClass("disabled",h>=100)}}}function g(b,c){if(c){var d=/MSIE (\d+)/.exec(navigator.userAgent),e=d&&8===d[1]?document:window;c.find(".scrollbar-scrollarea").bind("mousedown",function(c){function d(c){var d=c-f.offset().left,e=i*(d/i);e+=j,e=Math.max(e,0),e=Math.min(e,i-h),b.scrollLeft=Math.ceil(e*(b.scrollWidth/i)),a(b).trigger("scroll")}var f=a(this).find(".scrollbar-btn-main"),g=f.find(" > div").addClass("active"),h=g.width(),i=f.width(),j=g.offset().left-c.pageX;if(c.target===g[0])d(c.pageX);else{var k=b.scrollWidth-b.clientWidth;k*=(c.pageX-f.offset().left)/f.width(),a(b).originalStop(1,0).originalAnimate({scrollLeft:k},{duration:300,easing:"easeInOutCirc",step:function(){a(b).trigger("scroll")},complete:function(){j=g.offset().left-c.pageX}})}return a(e).bind("mousemove.sliderdrag",function(a){return d(a.pageX),!1}),a(e).bind("mouseup.sliderdrag",function(){a(this).unbind(".sliderdrag"),g.removeClass("active")}),!1}),c.find(".scrollbar-btn-left, .scrollbar-btn-right").bind("mouseenter",function(){var c=a(this).hasClass("scrollbar-btn-left"),d=b.scrollWidth-b.clientWidth;a(b).stop(1,0).animate({scrollLeft:c?0:d},{duration:3*Math.abs(c?b.scrollLeft:d-b.scrollLeft),step:function(){a(b).trigger("scroll")},easing:"easeInOutQuint"})}).bind("mouseleave",function(){a(b).stop(1,0)})}}function h(b,c){var d=a(b).data("scrollBars");d||(d={},a(b).data("scrollBars",d)),d.horizontal||(d.horizontal=a(b).next(":first"),d.horizontal.length&&d.horizontal.is(".scrollbar-horizontal")||(d.horizontal=e(c),d.horizontal.insertAfter(b)),g(b,d.horizontal))}var i='
    ',j='
    ',k='
    ';a.fn.vamtamScrollable=function(b){var c=!!a.getCssPropertyName("-webkit-overflow-scrolling");return this.each(function(e,g){c||h(g,b),a(window).bind("resize scroll switchlayout",function(b){("switchlayout"===b.type||"resize"===b.type)&&d(a("> ul",g)),c||f(g)}),d(a("> ul",g)),c||f(g),a(g).addClass("loaded"),"RetinaImage"in window&&window.devicePixelRatio>1&&a(g).find("img").each(function(){new RetinaImage(this)})})}}(jQuery),function(a){"use strict";function b(){j&&window.clearTimeout(j),j=setTimeout(function(){c.trigger("delayedResize")},150)}var c=a(window),d=a("html"),e=a("body").hasClass("responsive-layout"),f=[{min:0,max:479,className:"layout-smallest"},{min:480,max:767,className:"layout-small"},{min:768,max:1023,className:"layout-medium"},{min:1024,max:1/0,className:"layout-max"},{min:1024,max:1280,className:"layout-max-low"},{min:0,max:767,className:"layout-below-medium"},{min:0,max:1023,className:"layout-below-max"}];if(e){var g,h,i=f.length;c.bind("resize.sizeClass load.sizeClass",function(){var a=[],b=[],d={};for(h=0;i>h;h++){var e="(min-width: "+f[h].min+"px)";1/0!==f[h].max&&(e+=" and (max-width: "+f[h].max+"px)"),window.matchMedia(e).matches?(a.push(f[h].className),d[f[h].className]=!0):(b.push(f[h].className),d[f[h].className]=!1)}jQuery.WPV.MEDIA.layout=d,a=a.join(" "),b=b.join(" "),g!==a&&(g=a,c.trigger("switchlayout"))})}else d.removeClass("layout-smallest layout-small layout-medium layout-below-medium layout-below-max").addClass("layout-max"),a.WPV.MEDIA.layout={"layout-max":!0};var j;c.bind("resize",b),a.WPV.MEDIA.is_mobile=function(){var a=!1;return function(b){(/(android|ipad|playbook|silk|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(b)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(b.substr(0,4)))&&(a=!0)}(navigator.userAgent||navigator.vendor||window.opera),a}}(jQuery),function(a){"use strict";a(function(){var b=a("img.lazy").not(".portfolios.sortable img, .portfolios.isotope img, .portfolios.scroll-x img, :animated, .wpv-wrapper img");b.length&&b.addClass("jail-started").jail({speed:800});var c=a(".wpv-wrapper img.lazy");c.length&&c.addClass("jail-started").jail({speed:1400,event:"load"})})}(jQuery),function(a,b){"use strict";a(function(){var c=function(b){var c="";a("body").hasClass("cbox-share-googleplus")&&(c+='
    '),a("body").hasClass("cbox-share-facebook")&&(c+='
    '),a("body").hasClass("cbox-share-twitter")&&(c+='
    '),a("body").hasClass("cbox-share-pinterest")&&(c+='
    ');var d=b.el&&b.el.attr("title")||"";return'"},d=function(a){return"true"===a.attr("data-iframe")?"iframe":a.attr("href").match(/^#/)?"inline":"image"};a.rawContentHandler(function(){a(".lightbox",this).not(".no-lightbox, .size-thumbnail, .cboxElement").each(function(){var e=a(this),f=d(a(this)),g=a('[rel="'+e.attr("rel")+'"]').not(e).filter(".lightbox"),h=g.length,i=[{src:e.attr("href"),type:f}];g.each(function(){i.push({src:a(this).attr("href"),type:d(a(this))})}),e.magnificPopup({items:i,midClick:!0,preload:[1,2],iframe:{patterns:{youtube:{id:function(a){var b=a.match(/youtu(?:\.be|be\.com)\/(?:.*v(?:\/|=)|(?:.*\/)?)([a-zA-Z0-9-_]+)/);return b[1]?b[1]:a}},vimeo:{id:function(a){var b=a.match(/vimeo\.com\/(?:.*#|.*videos?\/)?([0-9]+)/);return b[1]?b[1]:a}},dailymotion:{index:"dailymotion.com",id:function(a){var c=a.match(/^.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/);return null!==c?c[4]!==b?c[4]:c[2]:null}}}},image:{titleSrc:c},gallery:{enabled:h}})})})})}(jQuery),function(a){"use strict";a(function(){var b=function(b,c){if(a.fn.isotope){var d=function(){var b=a(this),e=b.width(),f=a.WPV.reduce_column_count(parseInt(b.attr("data-columns"),10));b.bind("reload-isotope",d);var g=Math.floor(e/f),h=b.find(c),i=b.hasClass("masonry")?"masonry":"fit_rows";(b.hasClass("isotope")||b.hasClass("loop-wrapper")&&!b.hasClass("wpv-isotope-loaded"))&&h.not(".isotope-item").css({opacity:0}),h.removeClass("clearboth");var j={fit_rows:{resizable:!1,layoutMode:"fitRows"},masonry:{resizable:!1,columnWidth:g}};b.addClass("wpv-notransition"),h.css({width:g}),b.removeClass("wpv-notransition"),b.imagesLoaded(function(){if(b.hasClass("isotope")&&b.isotope("appended",h.not(".isotope-item")),b.isotope(j[i]),b.hasClass("loop-wrapper"))b.hasClass("wpv-isotope-loaded")||(b.addClass("wpv-isotope-loaded"),h.animate({opacity:1},1500));else{var a=b.parent();a.data("wpv-isotope-loaded")||b.hasClass("no-isotope-fadein")||(a.data("wpv-isotope-loaded",!0),a.css({height:"auto",opacity:0,overflow:"visible"}),a.transit({opacity:1},1500))}})};a(b).each(d)}},c=function(){b(".portfolios.isotope > ul",">li")};a.rawContentHandler(function(){c(),a(".portfolios.isotope .sort_by_cat a").click(function(b){var c=a(this).attr("data-value"),d=a(this).closest(".isotope").find("> ul");a(this).parent().siblings().find(".active").removeClass("active"),a(this).addClass("active"),d.trigger("portfolioSortStart",[c]),d.isotope({filter:"all"===c?"*":"[data-type~="+c+"]"},function(){d.trigger("portfolioSortComplete",[c])}),b.preventDefault()}).each(function(){var b=a(this).attr("data-value"),c=a(this).closest(".isotope").find("> ul");"all"!==b&&0===c.children().filter("[data-type~="+b+"]").length&&a(this).parent().hide()})}),a.fn.isotope&&a(window).smartresize(c);var d=function(){a(".loop-wrapper.news:not(.scroll-x):not(.masonry)").each(function(){var b=a.WPV.reduce_column_count(parseInt(a(this).attr("data-columns"),10));a("> .page-content",this).removeClass("clearboth").filter(":nth-child("+b+"n+1)").addClass("clearboth")}),b(".loop-wrapper.news.masonry",">.page-content")};a(window).smartresize(d),d()})}(jQuery),function(a){"use strict";a(function(){a.rawContentHandler(function(){a.fn.tabs&&a(".wpv-tabs",this).each(function(){a(this).tabs({activate:function(b,c){var d=c.newTab.context.hash,e=a(d);e.attr("id",""),window.location.hash=d,e.attr("id",d.replace("#",""))},heightStyle:"content"})}),a.fn.accordion&&a(".accordion",this).accordion({heightStyle:"content"}).each(function(){"true"===a(this).attr("data-collapsible")&&a(this).accordion("option","collapsible",!0).accordion("option","active",!1)})})})}(jQuery),function(){"use strict";var a=navigator.userAgent.match(/(iPad|iPhone|iPod)/g);a&&window.document.addEventListener("orientationchange",function(){var a=document.querySelector('meta[name="viewport"]');a&&(a.content.match(/width=device-width/)&&(a.content=a.content.replace(/width=[^,]+/,"width=1")),a.content=a.content.replace(/width=[^,]+/,"width="+window.innerWidth))},!1)}(),function(a,b){"use strict";a(function(){if(a(".menu-item").has(">.sub-menu").addClass("has-submenu"),Modernizr.touch){var c;a(".fixed-header-box .menu-item:has(>.sub-menu) > a").bind("click",function(a){c!==this&&(a.preventDefault(),c=this),a.stopPropagation()}),a(window).bind("click.sub-menu-double-tap",function(){c=b})}a("#main-menu").find(".menu").fadeIn(500)})}(jQuery),function(a){"use strict";a(function(){var b,c,d,e=a(window),f=a("body"),g=a(".fixed-header-box"),h=a("header.main-header"),i=a("#header-middle"),j=a("#main-content"),k=g.find(".second-row"),l=f.hasClass("admin-bar")?28:0,m=g.find(".logo-wrapper"),n=0,o=/MSIE (\d+)/.exec(navigator.userAgent),p=!1,q=46,r=function(){return f.hasClass("sticky-header")&&!(o&&8===parseInt(o[1],10))&&!a.WPV.MEDIA.is_mobile()&&!a.WPV.MEDIA.layout["layout-below-medium"]&&g.length&&k.length },s=function(){return a("#header-slider-container").length&&0===a(".wpv-grid.parallax-bg").length},t=function(){r()&&(b=g.clone().html("").css({"z-index":0,visibility:"hidden",height:g.outerHeight()}).insertAfter(g),g.css({position:"fixed",top:g.offset().top,left:g.offset().left,width:g.outerWidth(),"-webkit-transform":"translateZ(0)"}),s()?(c=i.clone().html("").css({"z-index":0,visibility:"hidden",height:i.outerHeight()}).insertAfter(i),i.css({position:"fixed",top:i.offset().top,left:i.offset().left,width:i.outerWidth(),"z-index":0})):c=null,n=m.removeClass("scrolled").outerHeight(),m.addClass("loaded"),d=setInterval(v,41),p=!0,e.scroll())},u=function(){b&&b.remove(),g.removeClass("static-absolute fixed").css({position:"",top:"",left:"",width:"","-webkit-transform":""}),c&&(c.remove(),i.css({position:"",top:"",left:"",width:"","z-index":0})),m.removeClass("scrolled loaded"),clearInterval(d),p=!1},v=function(){if(p){var a=e.scrollTop();if(h.hasClass("layout-logo-menu"))a>n-q?m.hasClass("scrolled")||(m.addClass("scrolled"),b.transition({height:"-="+(n-q)+"px"},300,"ease"),i.transition({top:"-="+(n-q)+"px"},300,"ease")):m.hasClass("scrolled")&&(m.removeClass("scrolled"),b.transition({height:"+="+(n-q)+"px"},300,"ease"),i.transition({top:"+="+(n-q)+"px"},300,"ease"));else{var c=g.outerHeight(),d=k.height(),f=j.offset().top-l;a+c>=f?f>=a+d?g.css({position:"absolute",top:f-c,left:0}).addClass("static-absolute").removeClass("fixed second-stage-active"):g.css({position:"fixed",top:l+d-c,left:b.offset().left,width:g.outerWidth()}).addClass("second-stage-active"):g.removeClass("static-absolute second-stage-active").css({position:"fixed",top:b.offset().top,left:b.offset().left,width:b.outerWidth()})}g.hasClass("fixed")||g.hasClass("static-absolute")||g.hasClass("second-stage-active")||g.css({position:"fixed",top:b.offset().top,left:b.offset().left,width:g.outerWidth()}).addClass("fixed")}};e.bind("scroll touchmove",v).smartresize(function(){u(),t()}),t()})}(jQuery),function(a){"use strict";var b=a(window),c=.2,d=.7,e=0,f=/MSIE (\d+)/.exec(navigator.userAgent),g=navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&navigator.userAgent.match(/AppleWebKit/);b.resize(function(){e=b.height(),f&&8===parseInt(f[1],10)||g||a.WPV.MEDIA.layout["layout-below-medium"]?a(".wpv-grid.animated-active").removeClass("animated-active").addClass("animated-suspended"):a(".wpv-grid.animated-suspended").removeClass("animated-suspended").addClass("animated-active")}).resize(),b.bind("scroll touchmove load",function(){var e=b.height(),f=a(window).scrollTop()+e,h=d*e;a(".row > .animated-active:not(.animation-ended)").each(function(){var b=Math.max(100,Math.min(h,c*a(this).outerHeight()));return f-b>a(this).offset().top||g?void a(this).addClass("animation-ended"):!1})}).scroll()}(jQuery),function(a){"use strict";var b=a(window),c=b.height(),d=/MSIE (\d+)/.exec(navigator.userAgent);b.bind("resize",function(){c=b.height(),!Modernizr.csscalc||d&&8===parseInt(d[1],10)||a.WPV.MEDIA.is_mobile()||a.WPV.MEDIA.layout["layout-below-medium"]?a(".wpv-grid.parallax-bg").removeClass("parallax-bg").addClass("parallax-bg-suspended"):a(".wpv-grid.parallax-bg-suspended").removeClass("parallax-bg-suspended").addClass("parallax-bg")});var e=function(a,b,d,e,f,g){var h="";switch(a){case"fixed":h=Math.round((e-d)*f)+"px";break;case"to-centre":h="calc(50% - "+Math.round((d+g/2-e-c/2)*f)+"px)"}return b+" "+h};b.bind("scroll touchmove load",function(){var d=b.scrollTop(),f=d+c;a(".wpv-grid.parallax-bg").each(function(){var b=a(this).offset().top,c=a(this).outerHeight();if(!(d>b+c||b>f)){var g=a(".wpv-parallax-bg-img",this);if(g.length){var h=g.css("background-position").split(/\s+/);if(!(h.length<2)){var i=a(this).data("parallax-method"),j=a(this).data("parallax-inertia"),k={"background-position":e(i,h[0],b,d,j,c)};g.css(k)}}}})});var f="position image color size attachment repeat".split(" ");a(function(){a(".wpv-grid.parallax-bg:not(.parallax-loaded)").each(function(){var b=a(this),c={};a.each(f,function(a,d){c["background-"+d]=b.css("background-"+d)}),b.addClass("parallax-loaded").wrapInner(function(){return a("
    ").addClass("wpv-parallax-bg-content")}).prepend(function(){var b=a("
    ").addClass("wpv-parallax-bg-img").css(c);return b}).css("background","")}),b.scroll()})}(jQuery),function(){"use strict";jQuery.WPV=jQuery.WPV||{},function(a){var b=a(window);if(a(function(){if(top!==window&&/vamtam\.com/.test(document.location.href)){var c=0;setInterval(function(){a(window).width()!==c&&(a(window).resize(),setTimeout(function(){a(window).resize()},100),setTimeout(function(){a(window).resize()},200),setTimeout(function(){a(window).resize()},300),setTimeout(function(){a(window).resize()},500),c=a(window).width())},200)}if(function(){var b=0;a(window).resize(function(){a(window).width()!==b&&(setTimeout(function(){a(window).resize()},100),setTimeout(function(){a(window).resize()},200),setTimeout(function(){a(window).resize()},300),b=a(window).width())})}(),a("body").is(".responsive-layout")&&b.triggerHandler("resize.sizeClass"),a("body").is(".pagination-infinite-scrolling")){var d=0;a(window).bind("resize scroll",function(b){var c=a(".lm-btn"),e=b.timeStamp||(new Date).getTime();e-d>500&&1===c.css("opacity")&&a(window).scrollTop()+a(window).height()>=c.offset().top&&(d=e,c.click())})}if(a("html").is(".placeholder")&&a.rawContentHandler(function(){a(".label-to-placeholder label[for]").each(function(){a("#"+a(this).prop("for")).attr("placeholder",a(this).text()),a(this).hide()})}),b.bind("resize.video load.video",function(){a(".portfolio_image_wrapper, .boxed-layout .media-inner, .boxed-layout .loop-wrapper.news .thumbnail, .boxed-layout .portfolio_image .thumbnail, .boxed-layout .wpv-video-frame").find("iframe, object, embed, video").each(function(){var b=a(this);"0"===b.prop("width")&&"0"===b.prop("height")?b.css({width:"100%"}).css({height:9*b.width()/16}):b.css({height:b.prop("height")*b.width()/b.prop("width")})}),setTimeout(function(){a(".mejs-time-rail").css("width","-=1px")},100)}).triggerHandler("resize.video"),a(document).on("mouseover focus click",".animated.flash, .animated.wiggle",function(){a(this).removeClass("animated")}),a.isArray(window.wpvBgSlides)){var e=a("body");e.fastSlider({},wpvBgSlides),a(window).bind("keydown",function(a){switch(a.keyCode||a.which){case 37:e.data("fastSlider")&&e.data("fastSlider").prev();break;case 38:e.data("fastSlider")&&e.data("fastSlider").goToPrevGalleryItem();break;case 39:e.data("fastSlider")&&e.data("fastSlider").next();break;case 40:e.data("fastSlider")&&e.data("fastSlider").goToNextGalleryItem()}})}var f=250;a(".shortcode-tooltip").hover(function(){var b=a(this).find(".tooltip").fadeIn(f).animate({bottom:25},f);b.css({marginLeft:-b.width()/2})},function(){a(this).find(".tooltip").animate({bottom:35},f).fadeOut(f)}),a("#commentform, .searchform").validator(),a(".sitemap li:not(:has(.children))").addClass("single"),a(window).bind("resize scroll",function(){a("#scroll-to-top").toggleClass("visible",window.pageYOffset>0)}),a("#scroll-to-top").click(function(){a("html,body").animate({scrollTop:0},300)}),a(document).on("click",".wpv-animated-page-scroll[href]",function(b){var c=a(a(this).prop("href"));c.length&&(b.preventDefault(),a("html,body").animate({scrollTop:c.offset().top-100}))})}),a("#footer-sidebars .row").each(function(){a(this).find("aside").wpvEqualHeight()}),a(window).resize(function(){a("#footer-sidebars .widget_footer_map:only-child").each(function(){var b=a(this).find(".footer-map-trigger");b.css({height:"","line-height":""});var c=a(this).height(),d=a(this).parent().height(),e=b.height();if(d>c){var f=e+d-c;b.css({height:f,"line-height":f+"px"})}})}).resize(),!Modernizr.lastchild){a("p:empty").hide(),a("*:last-child").addClass("last last-child");var c=a(".main-header .logo");if(c.length){var d=c.find("> img");1===d.length&&c.width(d[0].offsetWidth)}}a("#feedback.slideout").click(function(b){a(this).parent().toggleClass("expanded"),b.preventDefault()}),a.rawContentHandler(function(){a(".row:has(> div.has-background)").each(function(b,c){var d=a(c),e=d.find("> div");e.length>1&&(d.addClass("has-nomargin-column"),e.wpvEqualHeight())}),a(".row:has(.linkarea)").each(function(){a(this).find(".linkarea").wpvEqualHeight({method:"height"})})}),a.rawContentHandler(function(){a(".vamtam-slider").not(".scroll-x .vamtam-slider").touchwipe({preventDefaultEvents:!1,canUseEvent:function(b){return a(b.target).is(".slide, .slide *")},wipeLeft:function(b){b.preventDefault(),a(this).closest(".vamtam-slider").vamtamSlider("pos","next")},wipeRight:function(b){b.preventDefault(),a(this).closest(".vamtam-slider").vamtamSlider("pos","prev")}}),a(".fast-slider").touchwipe({canUseEvent:function(b){return a(b.target).is("#container")},wipeLeft:function(){a(this).data("fastSlider")&&a(this).data("fastSlider").prev()},wipeRight:function(){a(this).data("fastSlider")&&a(this).data("fastSlider").next()},wipeDown:function(){a(this).data("fastSlider")&&a(this).data("fastSlider").goToPrevGalleryItem()},wipeUp:function(){a(this).data("fastSlider")&&a(this).data("fastSlider").goToNextGalleryItem()}})}),a("body").on("mouseenter",".linkarea[data-hoverclass]",function(){a(this).addClass(this.getAttribute("data-hoverclass"))}).on("mouseleave",".linkarea[data-hoverclass]",function(){a(this).removeClass(this.getAttribute("data-hoverclass"))}).on("mousedown",".linkarea[data-activeclass]",function(){a(this).addClass(this.getAttribute("data-activeclass"))}).on("mouseup",".linkarea[data-activeclass]",function(){a(this).removeClass(this.getAttribute("data-activeclass"))}).on("click",".linkarea[data-href]",function(a){if(a.isDefaultPrevented())return!1;var b=this.getAttribute("data-href");if(b){a.preventDefault(),a.stopImmediatePropagation();try{var c=String(this.getAttribute("data-target")||"self").replace(/^_/,"");"blank"===c||"new"===c?window.open(b):window[c].location=b}catch(d){}}}),b.triggerHandler("resize.sizeClass"),a(window).bind("load",function(){setTimeout(function(){a(window).trigger("resize")},1)})}(jQuery)}(),function(a){"use strict";var b=function(){var b=a(this);if(!(b.closest(".animated-active:not(.animation-ended)").length>0||b.data("closed-at")&&+new Date-b.data("closed-at")<300)){var c=b.clone();setTimeout(function(){var d=a.WPV.MEDIA.layout["layout-below-medium"]?b.width():b.parent().width();if(c.css({width:d,position:"absolute",left:b.parent().position().left+parseFloat(b.parent().css("padding-left"),10),top:b.parent().position().top,zIndex:1e10}).addClass("transitionable"),b.attr("id")||b.attr("id","hover-id-"+Math.round(1e8*Math.random())),c.attr("id")||c.attr("id","hover-clone-id-"+Math.round(1e8*Math.random())),0!==a("#"+b.attr("id")+":hover").length){b.css({visibility:"hidden"}),c.appendTo(b.closest(".row")).addClass("state-hover"),c.find(".shrinking .icon").transit({"font-size":Math.min(100,d-15)},200,"easeOutQuad");var e=c.find(".services-content").slideDown({duration:200,easing:"easeOutQuad"}),f=setInterval(function(){Modernizr.touch||0!==a("#"+c.attr("id")+":hover").length||(clearInterval(f),c.trigger("mouseleave"))},500),g=function(){a(this).hasClass("state-hover")&&(c.removeClass("state-hover"),c.find(".shrinking .icon").transit({"font-size":60},200,"easeOutQuad"),e.slideUp({duration:200,easing:"easeOutQuad",complete:function(){c.remove(),b.css({visibility:"visible"}).data("closed-at",+new Date)}}))};Modernizr.touch?(c.unbind("click.shrinking_open"),c.find("a").unbind("touchstart.shrinking").bind("touchstart.shrinking",function(b){a(this).is(".shrinking a")?b.preventDefault():b.stopPropagation()}),a("body").bind("touchstart.shrinking_close"+c.attr("id"),function(){a("body").unbind("touchstart.shrinking_close"+c.attr("id")),g.call(c)})):c.unbind("mouseleave.shrinking").bind("mouseleave.shrinking",g)}},20)}};a.rawContentHandler(function(){var c=a(".services:has(.shrinking)");Modernizr.touch?c.unbind("click.shrinking_open").bind("click.shrinking_open",function(a){b.call(this),a.preventDefault()}):c.unbind("mouseenter.shrinking").bind("mouseenter.shrinking",b)});var c=function(){a(".services:not(.transitionable) .shrinking").each(function(){var b=a(this).width();a(this).height(b),a(this).find(".icon").css({"line-height":b+"px"}),a(this).closest(".services").prev().css({width:b})})};a(window).bind("resize",c),c()}(jQuery),function(a){"use strict";var b=/iPad|iPod|iPhone/i.test(navigator.userAgent),c=Modernizr.csstransforms3d&&!b,d=c?"transition":"animate",e=function(a){window.console&&window.console.error(a)};jQuery.easing.wpvsin=function(a,b,c,d){return Math.sin(a*Math.PI/2)*d+c},jQuery.easing.wpvcos=function(a,b,c,d){return c+d-Math.cos(a*Math.PI/2)*d},a.WPV.expandable=function(b,e){b=a(b);var f=this,g=b.find(">.open"),h=b.find(">.closed"),i=b.attr("data-hoverbg"),j=b.attr("data-hoverfg"),k=h.css("background"),l=h.css("color");f.doOpen=function(){var f=a.WPV.MEDIA.layout["layout-below-medium"]?Math.max(e.duration,400):e.duration,k=g.outerHeight();k||(g.css({height:"auto"}),k=g.outerHeight(),g.css({height:0})),f=Math.max(f,k/200*f),h.queue(h.queue().slice(0,1)),g.queue(g.queue().slice(0,1)),h[d]({y:-k,background:i,color:j},f,e.easing,function(){b.removeClass("state-closed").addClass("state-open")}),h.find("p")[d]({background:i,color:j},f,e.easing),c?g.transition({y:-k,perspective:e.perspective,rotateX:0},f,e.easing):g.animate({y:-k,height:k},f,e.easing)},f.doClose=function(){var f=a.WPV.MEDIA.layout["layout-below-medium"]?Math.max(e.duration,400):e.duration,i=g.outerHeight();i||(g.css({height:"auto"}),i=g.outerHeight(),g.css({height:0})),f=Math.max(f,i/200*f),h.queue(h.queue().slice(0,1)),g.queue(g.queue().slice(0,1)),h[d]({y:0,background:k,color:l},f,e.easing,function(){b.removeClass("state-open").addClass("state-closed")}),h.find("p")[d]({background:k,color:l},f,e.easing),c?g.transition({y:0,perspective:e.perspective,rotateX:-90},f,e.easing):g.animate({y:0,height:0},f,e.easing)},f.init=function(){b.addClass("state-closed"),b.addClass(c?"expandable-animation-3d":"expandable-animation-2d"),Modernizr.touch?(b.unbind("click.expandable").bind("click.expandable",function(a){b.hasClass("state-open")?(f.doClose(),a.stopPropagation()):f.doOpen()}),a("body").bind("touchstart.expandable_close"+b.attr("id"),function(){a("body").unbind("touchstart.expandable_close"+b.attr("id")),f.doClose()})):b.bind("mouseenter.expandable",f.doOpen).bind("mouseleave.expandable",f.doClose),b.find("a").bind("click",function(a){b.hasClass("state-closed")&&a.preventDefault()})};var m={duration:250,perspective:"10000px",easing:"linear"};e=a.extend({},m,e),this.init()},a.fn.wpv_expandable=function(b,c){if("string"==typeof b){var d=Array.prototype.slice.call(arguments,1);this.each(function(){var c=a.data(this,"wpv_expandable");return c?a.isFunction(c[b])&&"_"!==b.charAt(0)?void a.WPV.expandable[b].apply(c,d):void e("no such method '"+b+"' for expandable instance"):void e("cannot call methods on expandable prior to initialization; attempted to call method '"+b+"'")})}else this.each(function(){var d=a.data(this,"wpv_expandable");d?(d.option(b),d._init(c)):a.data(this,"wpv_expandable",new a.WPV.expandable(this,b,c))});return this},a(".services.has-more").wpv_expandable()}(jQuery),function(a){"use strict";a(function(){var b=a("#header-slider-container.layerslider").find(".layerslider-fixed-wrapper"),c=b.find(">div:first");if(c.length){var d=!1,e=0,f=function(){return c.height()>0||e++>5?void b.height("auto"):void(d=setTimeout(f,500))};d=setTimeout(f,0)}})}(jQuery),function(a){"use strict";var b=/iPad|iPod|iPhone/i.test(navigator.userAgent);a(function(){function c(a){var b="",c="",d=a.indexOf(b),e=a.indexOf(c);return d>-1&&e>-1&&(a=a.substring(0,d)+a.substr(e+c.length)),a}a("body").on("click.pagination",".load-more",function(){if(b)return!0;var d=a("a.lm-btn",this).attr("href");if(!d)return!0;if(a(this).is(":animated"))return!1;var e=a(this),f=e.prev(),g=f.is("section.portfolios > ul")?"section.portfolios > ul":f.is(".loop-wrapper")?".loop-wrapper.paginated":null;return g&&(a(this).addClass("loading").find("> *").animate({opacity:0}),a.ajax({url:d,dataType:"text",data:{reduced:1},cache:!1,success:function(b){b=c(b),b=a(a.parseHTML(b,document,!0));var d=b.find("article"),h=a(g,d);if(h.length){var i=h.children().css("opacity",0);try{f.append(i)}catch(j){"log"in window.console&&console.log("can't append these properly: ",i,j)}f.hasClass("masonry")&&(i.removeClass("clearboth"),f.trigger("reload-isotope")),Modernizr.lastchild||(f.find("p:empty").hide(),f.find(".last-child").each(function(){a(this).is(":last-child")||a(this).removeClass("last-child")}),f.find("*:last-child").addClass("last-child")),f.trigger("rawContent",i.get()),"mediaelementplayer"in jQuery.fn?a(".wp-audio-shortcode, .wp-video-shortcode").mediaelementplayer():(b.filter("#mediaelement-css, #wp-mediaelement-css").appendTo(a("head")),b.filter("script").each(function(b,c){a(c).prop("src").match("mediaelement-and-player")&&jQuery.getScript(a(c).prop("src"),function(){a(".wp-audio-shortcode, .wp-video-shortcode").mediaelementplayer()})}));var k=f.height();f.is(":not(.masonry)")&&(f.height(k),f.css("height","auto"),f.children().animate({opacity:1},1e3));var l=a(".load-more",d);l.length?e.html(l.html()).removeClass("loading").find("> *").animate({opacity:1},600,"linear"):e.slideUp().remove(),a(window).trigger("resize").trigger("scroll"),d=h=k=l=null}}})),!1})})}(jQuery),function(a){"use strict";a.rawContentHandler(function(b){var c=a(".portfolios.scroll-x, .loop-wrapper.scroll-x, .woocommerce-scrollable.scroll-x",b||document);c.find("img.lazy").not(".jail-started, .loaded").addClass("jail-started").jail({speed:1e3,event:!1}),c.vamtamScrollable({arrowButtons:"buttons-only"})})}(jQuery);