(function(a){a(document).ready(function(){a('<div class="select-arrow"></div>').insertAfter(a("div.field > select"));a("#acf-field-cover_slider").next().remove();a(".row_layout .field_type-wysiwyg").each(function(){a(this).children("td.label").remove();a(this).children("td:first-child").attr("colspan","2")});a(".field ul.acf-checkbox-list li label").each(function(){if(a(this).children(".checkbox").prop("checked")){a(this).css("backgroundPosition","0px -21px");a(this).addClass("checked")}});a("#acf_3362, #acf_acf_content-editor").insertAfter(".field_key-field_52af1e0e9d2d9");a("#acf_3362, #acf_acf_content-editor").insertAfter(".field_key-field_530238f0d553c");a("#acf_1307, #acf_acf_fullscreen-cover").insertAfter(".field_key-field_52f2469819e07");a("#acf_1307, #acf_acf_fullscreen-cover").insertAfter(".field_key-field_51ef0717531f2");a(".smp-video-button").click(function(){var c="."+a(this).attr("data-video-id");var b=a(this).attr("data-vimeo-id");if(!a(this).hasClass("smp-open")){a(c).find(".responsive-video").append('<iframe src="https://player.vimeo.com/video/'+b+'" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>');a(c).stop().slideDown(500);a(this).addClass("smp-open")}else{a(c).stop().slideUp(500,function(){a(c).find(".responsive-video").html("")});a(this).removeClass("smp-open")}});a("#publish").click(function(){window.onbeforeunload=null});a(".install-demo-portfolio").click(function(){var c=confirm("Are you sure you want to import the demo portfolio?");if(c==false){return}a(".import-portfolio").fadeOut("fast",function(){a(".import-state").fadeIn("fast")});var b={action:"semplice_import"};a.post(ajaxurl,b,function(d){a(".import-state .import-loader").remove();a(".import-state").append('<div class="import-response">'+d+"</div>")})});a("body").on("click",".close-import",function(){a(".import-assets").remove()})})})(jQuery);
/*!
 * imagesLoaded PACKAGED v3.1.4
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
;
/*!
 * EventEmitter v4.2.6 - git.io/ee
 * Oliver Caldwell
 * MIT license
 * @preserve
 */
(function(){function c(){}var m=c.prototype;var w=this;var y=w.EventEmitter;function h(A,B){var z=A.length;while(z--){if(A[z].listener===B){return z}}return -1}function k(z){return function A(){return this[z].apply(this,arguments)}}m.getListeners=function u(z){var C=this._getEvents();var A;var B;if(typeof z==="object"){A={};for(B in C){if(C.hasOwnProperty(B)&&z.test(B)){A[B]=C[B]}}}else{A=C[z]||(C[z]=[])}return A};m.flattenListeners=function s(B){var z=[];var A;for(A=0;A<B.length;A+=1){z.push(B[A].listener)}return z};m.getListenersAsObject=function e(z){var B=this.getListeners(z);var A;if(B instanceof Array){A={};A[z]=B}return A||B};m.addListener=function f(z,C){var B=this.getListenersAsObject(z);var D=typeof C==="object";var A;for(A in B){if(B.hasOwnProperty(A)&&h(B[A],C)===-1){B[A].push(D?C:{listener:C,once:false})}}return this};m.on=k("addListener");m.addOnceListener=function a(z,A){return this.addListener(z,{listener:A,once:true})};m.once=k("addOnceListener");m.defineEvent=function q(z){this.getListeners(z);return this};m.defineEvents=function r(z){for(var A=0;A<z.length;A+=1){this.defineEvent(z[A])}return this};m.removeListener=function b(z,D){var C=this.getListenersAsObject(z);var A;var B;for(B in C){if(C.hasOwnProperty(B)){A=h(C[B],D);if(A!==-1){C[B].splice(A,1)}}}return this};m.off=k("removeListener");m.addListeners=function n(z,A){return this.manipulateListeners(false,z,A)};m.removeListeners=function t(z,A){return this.manipulateListeners(true,z,A)};m.manipulateListeners=function g(A,B,D){var C;var E;var F=A?this.removeListener:this.addListener;var z=A?this.removeListeners:this.addListeners;if(typeof B==="object"&&!(B instanceof RegExp)){for(C in B){if(B.hasOwnProperty(C)&&(E=B[C])){if(typeof E==="function"){F.call(this,C,E)}else{z.call(this,C,E)}}}}else{C=D.length;while(C--){F.call(this,B,D[C])}}return this};m.removeEvent=function p(z){var C=typeof z;var B=this._getEvents();var A;if(C==="string"){delete B[z]}else{if(C==="object"){for(A in B){if(B.hasOwnProperty(A)&&z.test(A)){delete B[A]}}}else{delete this._events}}return this};m.removeAllListeners=k("removeEvent");m.emitEvent=function v(z,B){var E=this.getListenersAsObject(z);var F;var D;var C;var A;for(C in E){if(E.hasOwnProperty(C)){D=E[C].length;while(D--){F=E[C][D];if(F.once===true){this.removeListener(z,F.listener)}A=F.listener.apply(this,B||[]);if(A===this._getOnceReturnValue()){this.removeListener(z,F.listener)}}}}return this};m.trigger=k("emitEvent");m.emit=function l(z){var A=Array.prototype.slice.call(arguments,1);return this.emitEvent(z,A)};m.setOnceReturnValue=function j(z){this._onceReturnValue=z;return this};m._getOnceReturnValue=function o(){if(this.hasOwnProperty("_onceReturnValue")){return this._onceReturnValue}else{return true}};m._getEvents=function d(){return this._events||(this._events={})};c.noConflict=function x(){w.EventEmitter=y;return c};if(typeof define==="function"&&define.amd){define("eventEmitter/EventEmitter",[],function(){return c})}else{if(typeof module==="object"&&module.exports){module.exports=c}else{this.EventEmitter=c}}}.call(this));
/*!
 * eventie v1.0.4
 * event binding helper
 *   eventie.bind( elem, 'click', myFn )
 *   eventie.unbind( elem, 'click', myFn )
 */
(function(e){var b=document.documentElement;var f=function(){};function a(h){var g=e.event;g.target=g.target||g.srcElement||h;return g}if(b.addEventListener){f=function(j,h,g){j.addEventListener(h,g,false)}}else{if(b.attachEvent){f=function(j,h,g){j[h+g]=g.handleEvent?function(){var k=a(j);g.handleEvent.call(g,k)}:function(){var k=a(j);g.call(j,k)};j.attachEvent("on"+h,j[h+g])}}}var d=function(){};if(b.removeEventListener){d=function(j,h,g){j.removeEventListener(h,g,false)}}else{if(b.detachEvent){d=function(k,h,g){k.detachEvent("on"+h,k[h+g]);try{delete k[h+g]}catch(j){k[h+g]=undefined}}}}var c={bind:f,unbind:d};if(typeof define==="function"&&define.amd){define("eventie/eventie",c)}else{e.eventie=c}})(this);
/*!
 * imagesLoaded v3.1.4
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
(function(b,a){if(typeof define==="function"&&define.amd){define(["eventEmitter/EventEmitter","eventie/eventie"],function(d,c){return a(b,d,c)})}else{if(typeof exports==="object"){module.exports=a(b,require("eventEmitter"),require("eventie"))}else{b.imagesLoaded=a(b,b.EventEmitter,b.eventie)}}})(this,function factory(j,n,m){var g=j.jQuery;var e=j.console;var c=typeof e!=="undefined";function k(q,p){for(var r in p){q[r]=p[r]}return q}var o=Object.prototype.toString;function h(p){return o.call(p)==="[object Array]"}function d(s){var r=[];if(h(s)){r=s}else{if(typeof s.length==="number"){for(var q=0,p=s.length;q<p;q++){r.push(s[q])}}else{r.push(s)}}return r}function f(r,q,p){if(!(this instanceof f)){return new f(r,q)}if(typeof r==="string"){r=document.querySelectorAll(r)}this.elements=d(r);this.options=k({},this.options);if(typeof q==="function"){p=q}else{k(this.options,q)}if(p){this.on("always",p)}this.getImages();if(g){this.jqDeferred=new g.Deferred()}var s=this;setTimeout(function(){s.check()})}f.prototype=new n();f.prototype.options={};f.prototype.getImages=function(){this.images=[];for(var s=0,p=this.elements.length;s<p;s++){var t=this.elements[s];if(t.nodeName==="IMG"){this.addImage(t)}var v=t.querySelectorAll("img");for(var r=0,u=v.length;r<u;r++){var q=v[r];this.addImage(q)}}};f.prototype.addImage=function(p){var q=new l(p);this.images.push(q)};f.prototype.check=function(){var u=this;var q=0;var s=this.images.length;this.hasAnyBroken=false;if(!s){this.complete();return}function r(w,v){if(u.options.debug&&c){e.log("confirm",w,v)}u.progress(w);q++;if(q===s){u.complete()}return true}for(var p=0;p<s;p++){var t=this.images[p];t.on("confirm",r);t.check()}};f.prototype.progress=function(p){this.hasAnyBroken=this.hasAnyBroken||!p.isLoaded;var q=this;setTimeout(function(){q.emit("progress",q,p);if(q.jqDeferred&&q.jqDeferred.notify){q.jqDeferred.notify(q,p)}})};f.prototype.complete=function(){var p=this.hasAnyBroken?"fail":"done";this.isComplete=true;var q=this;setTimeout(function(){q.emit(p,q);q.emit("always",q);if(q.jqDeferred){var r=q.hasAnyBroken?"reject":"resolve";q.jqDeferred[r](q)}})};if(g){g.fn.imagesLoaded=function(q,r){var p=new f(this,q,r);return p.jqDeferred.promise(g(this))}}function l(p){this.img=p}l.prototype=new n();l.prototype.check=function(){var p=b[this.img.src]||new a(this.img.src);if(p.isConfirmed){this.confirm(p.isLoaded,"cached was confirmed");return}if(this.img.complete&&this.img.naturalWidth!==undefined){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}var q=this;p.on("confirm",function(r,s){q.confirm(r.isLoaded,s);return true});p.check()};l.prototype.confirm=function(p,q){this.isLoaded=p;this.emit("confirm",this,q)};var b={};function a(p){this.src=p;b[p]=this}a.prototype=new n();a.prototype.check=function(){if(this.isChecked){return}var p=new Image();m.bind(p,"load",this);m.bind(p,"error",this);p.src=this.src;this.isChecked=true};a.prototype.handleEvent=function(p){var q="on"+p.type;if(this[q]){this[q](p)}};a.prototype.onload=function(p){this.confirm(true,"onload");this.unbindProxyEvents(p)};a.prototype.onerror=function(p){this.confirm(false,"onerror");this.unbindProxyEvents(p)};a.prototype.confirm=function(p,q){this.isConfirmed=true;this.isLoaded=p;this.emit("confirm",this,q)};a.prototype.unbindProxyEvents=function(p){m.unbind(p.target,"load",this);m.unbind(p.target,"error",this)};return f});(function(){function d(o,k){var p;k=k||{};this.trackingClick=false;this.trackingClickStart=0;this.targetElement=null;this.touchStartX=0;this.touchStartY=0;this.lastTouchIdentifier=0;this.touchBoundary=k.touchBoundary||10;this.layer=o;this.tapDelay=k.tapDelay||200;this.tapTimeout=k.tapTimeout||700;if(d.notNeeded(o)){return}function q(r,l){return function(){return r.apply(l,arguments)}}var j=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"];var n=this;for(var m=0,h=j.length;m<h;m++){n[j[m]]=q(n[j[m]],n)}if(b){o.addEventListener("mouseover",this.onMouse,true);o.addEventListener("mousedown",this.onMouse,true);o.addEventListener("mouseup",this.onMouse,true)}o.addEventListener("click",this.onClick,true);o.addEventListener("touchstart",this.onTouchStart,false);o.addEventListener("touchmove",this.onTouchMove,false);o.addEventListener("touchend",this.onTouchEnd,false);o.addEventListener("touchcancel",this.onTouchCancel,false);if(!Event.prototype.stopImmediatePropagation){o.removeEventListener=function(r,t,l){var s=Node.prototype.removeEventListener;if(r==="click"){s.call(o,r,t.hijacked||t,l)}else{s.call(o,r,t,l)}};o.addEventListener=function(s,t,r){var l=Node.prototype.addEventListener;if(s==="click"){l.call(o,s,t.hijacked||(t.hijacked=function(u){if(!u.propagationStopped){t(u)}}),r)}else{l.call(o,s,t,r)}}}if(typeof o.onclick==="function"){p=o.onclick;o.addEventListener("click",function(l){p(l)},false);o.onclick=null}}var c=navigator.userAgent.indexOf("Windows Phone")>=0;var b=navigator.userAgent.indexOf("Android")>0&&!c;var g=/iP(ad|hone|od)/.test(navigator.userAgent)&&!c;var e=g&&(/OS 4_\d(_\d)?/).test(navigator.userAgent);var f=g&&(/OS [6-7]_\d/).test(navigator.userAgent);var a=navigator.userAgent.indexOf("BB10")>0;d.prototype.needsClick=function(h){switch(h.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(h.disabled){return true}break;case"input":if((g&&h.type==="file")||h.disabled){return true}break;case"label":case"iframe":case"video":return true}return(/\bneedsclick\b/).test(h.className)};d.prototype.needsFocus=function(h){switch(h.nodeName.toLowerCase()){case"textarea":return true;case"select":return !b;case"input":switch(h.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return false}return !h.disabled&&!h.readOnly;default:return(/\bneedsfocus\b/).test(h.className)}};d.prototype.sendClick=function(j,k){var h,l;if(document.activeElement&&document.activeElement!==j){document.activeElement.blur()}l=k.changedTouches[0];h=document.createEvent("MouseEvents");h.initMouseEvent(this.determineEventType(j),true,true,window,1,l.screenX,l.screenY,l.clientX,l.clientY,false,false,false,false,0,null);h.forwardedTouchEvent=true;j.dispatchEvent(h)};d.prototype.determineEventType=function(h){if(b&&h.tagName.toLowerCase()==="select"){return"mousedown"}return"click"};d.prototype.focus=function(h){var j;if(g&&h.setSelectionRange&&h.type.indexOf("date")!==0&&h.type!=="time"&&h.type!=="month"){j=h.value.length;h.setSelectionRange(j,j)}else{h.focus()}};d.prototype.updateScrollParent=function(j){var k,h;k=j.fastClickScrollParent;if(!k||!k.contains(j)){h=j;do{if(h.scrollHeight>h.offsetHeight){k=h;j.fastClickScrollParent=h;break}h=h.parentElement}while(h)}if(k){k.fastClickLastScrollTop=k.scrollTop}};d.prototype.getTargetElementFromEventTarget=function(h){if(h.nodeType===Node.TEXT_NODE){return h.parentNode}return h};d.prototype.onTouchStart=function(k){var h,l,j;if(k.targetTouches.length>1){return true}h=this.getTargetElementFromEventTarget(k.target);l=k.targetTouches[0];if(g){j=window.getSelection();if(j.rangeCount&&!j.isCollapsed){return true}if(!e){if(l.identifier&&l.identifier===this.lastTouchIdentifier){k.preventDefault();return false}this.lastTouchIdentifier=l.identifier;this.updateScrollParent(h)}}this.trackingClick=true;this.trackingClickStart=k.timeStamp;this.targetElement=h;this.touchStartX=l.pageX;this.touchStartY=l.pageY;if((k.timeStamp-this.lastClickTime)<this.tapDelay){k.preventDefault()}return true};d.prototype.touchHasMoved=function(h){var k=h.changedTouches[0],j=this.touchBoundary;if(Math.abs(k.pageX-this.touchStartX)>j||Math.abs(k.pageY-this.touchStartY)>j){return true}return false};d.prototype.onTouchMove=function(h){if(!this.trackingClick){return true}if(this.targetElement!==this.getTargetElementFromEventTarget(h.target)||this.touchHasMoved(h)){this.trackingClick=false;this.targetElement=null}return true};d.prototype.findControl=function(h){if(h.control!==undefined){return h.control}if(h.htmlFor){return document.getElementById(h.htmlFor)}return h.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")};d.prototype.onTouchEnd=function(k){var m,l,j,o,n,h=this.targetElement;if(!this.trackingClick){return true}if((k.timeStamp-this.lastClickTime)<this.tapDelay){this.cancelNextClick=true;return true}if((k.timeStamp-this.trackingClickStart)>this.tapTimeout){return true}this.cancelNextClick=false;this.lastClickTime=k.timeStamp;l=this.trackingClickStart;this.trackingClick=false;this.trackingClickStart=0;if(f){n=k.changedTouches[0];h=document.elementFromPoint(n.pageX-window.pageXOffset,n.pageY-window.pageYOffset)||h;h.fastClickScrollParent=this.targetElement.fastClickScrollParent}j=h.tagName.toLowerCase();if(j==="label"){m=this.findControl(h);if(m){this.focus(h);if(b){return false}h=m}}else{if(this.needsFocus(h)){if((k.timeStamp-l)>100||(g&&window.top!==window&&j==="input")){this.targetElement=null;return false}this.focus(h);this.sendClick(h,k);if(!g||j!=="select"){this.targetElement=null;k.preventDefault()}return false}}if(g&&!e){o=h.fastClickScrollParent;if(o&&o.fastClickLastScrollTop!==o.scrollTop){return true}}if(!this.needsClick(h)){k.preventDefault();this.sendClick(h,k)}return false};d.prototype.onTouchCancel=function(){this.trackingClick=false;this.targetElement=null};d.prototype.onMouse=function(h){if(!this.targetElement){return true}if(h.forwardedTouchEvent){return true}if(!h.cancelable){return true}if(!this.needsClick(this.targetElement)||this.cancelNextClick){if(h.stopImmediatePropagation){h.stopImmediatePropagation()}else{h.propagationStopped=true}h.stopPropagation();h.preventDefault();return false}return true};d.prototype.onClick=function(h){var j;if(this.trackingClick){this.targetElement=null;this.trackingClick=false;return true}if(h.target.type==="submit"&&h.detail===0){return true}j=this.onMouse(h);if(!j){this.targetElement=null}return j};d.prototype.destroy=function(){var h=this.layer;if(b){h.removeEventListener("mouseover",this.onMouse,true);h.removeEventListener("mousedown",this.onMouse,true);h.removeEventListener("mouseup",this.onMouse,true)}h.removeEventListener("click",this.onClick,true);h.removeEventListener("touchstart",this.onTouchStart,false);h.removeEventListener("touchmove",this.onTouchMove,false);h.removeEventListener("touchend",this.onTouchEnd,false);h.removeEventListener("touchcancel",this.onTouchCancel,false)};d.notNeeded=function(j){var h;var m;var l;var k;if(typeof window.ontouchstart==="undefined"){return true}m=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1];if(m){if(b){h=document.querySelector("meta[name=viewport]");if(h){if(h.content.indexOf("user-scalable=no")!==-1){return true}if(m>31&&document.documentElement.scrollWidth<=window.outerWidth){return true}}}else{return true}}if(a){l=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/);if(l[1]>=10&&l[2]>=3){h=document.querySelector("meta[name=viewport]");if(h){if(h.content.indexOf("user-scalable=no")!==-1){return true}if(document.documentElement.scrollWidth<=window.outerWidth){return true}}}}if(j.style.msTouchAction==="none"||j.style.touchAction==="manipulation"){return true}k=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1];if(k>=27){h=document.querySelector("meta[name=viewport]");if(h&&(h.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)){return true}}if(j.style.touchAction==="none"||j.style.touchAction==="manipulation"){return true}return false};d.attach=function(j,h){return new d(j,h)};if(typeof define==="function"&&typeof define.amd==="object"&&define.amd){define(function(){return d})}else{if(typeof module!=="undefined"&&module.exports){module.exports=d.attach;module.exports.FastClick=d}else{window.FastClick=d}}}());jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e},easeOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return g*Math.pow(2,-10*h)*Math.sin((h*l-j)*(2*Math.PI)/k)+m+e},easeInOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l/2)==2){return e+m}if(!k){k=l*(0.3*1.5)}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k)*0.5+m+e},easeInBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return j/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return j/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});
/*!
 * jQuery Transit - CSS3 transitions and transformations
 * (c) 2011-2014 Rico Sta. Cruz
 * MIT Licensed.
 *
 * http://ricostacruz.com/jquery.transit
 * http://github.com/rstacruz/jquery.transit
 */
;(function(a,b){if(typeof define==="function"&&define.amd){define(["jquery"],b)}else{if(typeof exports==="object"){module.exports=b(require("jquery"))}else{b(a.jQuery)}}}(this,function(l){l.transit={version:"0.9.12",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:true,useTransitionEnd:false};var d=document.createElement("div");var r={};function b(w){if(w in d.style){return w}var v=["Moz","Webkit","O","ms"];var s=w.charAt(0).toUpperCase()+w.substr(1);for(var u=0;u<v.length;++u){var t=v[u]+s;if(t in d.style){return t}}}function e(){d.style[r.transform]="";d.style[r.transform]="rotateY(90deg)";return d.style[r.transform]!==""}var a=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;r.transition=b("transition");r.transitionDelay=b("transitionDelay");r.transform=b("transform");r.transformOrigin=b("transformOrigin");r.filter=b("Filter");r.transform3d=e();var j={transition:"transitionend",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"};var f=r.transitionEnd=j[r.transition]||null;for(var q in r){if(r.hasOwnProperty(q)&&typeof l.support[q]==="undefined"){l.support[q]=r[q]}}d=null;l.cssEase={_default:"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeInCubic:"cubic-bezier(.550,.055,.675,.190)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};l.cssHooks["transit:transform"]={get:function(s){return l(s).data("transform")||new k()},set:function(t,s){var u=s;if(!(u instanceof k)){u=new k(u)}if(r.transform==="WebkitTransform"&&!a){t.style[r.transform]=u.toString(true)}else{t.style[r.transform]=u.toString()}l(t).data("transform",u)}};l.cssHooks.transform={set:l.cssHooks["transit:transform"].set};l.cssHooks.filter={get:function(s){return s.style[r.filter]},set:function(s,t){s.style[r.filter]=t}};if(l.fn.jquery<"1.8"){l.cssHooks.transformOrigin={get:function(s){return s.style[r.transformOrigin]},set:function(s,t){s.style[r.transformOrigin]=t}};l.cssHooks.transition={get:function(s){return s.style[r.transition]},set:function(s,t){s.style[r.transition]=t}}}o("scale");o("scaleX");o("scaleY");o("translate");o("rotate");o("rotateX");o("rotateY");o("rotate3d");o("perspective");o("skewX");o("skewY");o("x",true);o("y",true);function k(s){if(typeof s==="string"){this.parse(s)}return this}k.prototype={setFromString:function(u,t){var s=(typeof t==="string")?t.split(","):(t.constructor===Array)?t:[t];s.unshift(u);k.prototype.set.apply(this,s)},set:function(t){var s=Array.prototype.slice.apply(arguments,[1]);if(this.setter[t]){this.setter[t].apply(this,s)}else{this[t]=s.join(",")}},get:function(s){if(this.getter[s]){return this.getter[s].apply(this)}else{return this[s]||0}},setter:{rotate:function(s){this.rotate=p(s,"deg")},rotateX:function(s){this.rotateX=p(s,"deg")},rotateY:function(s){this.rotateY=p(s,"deg")},scale:function(s,t){if(t===undefined){t=s}this.scale=s+","+t},skewX:function(s){this.skewX=p(s,"deg")},skewY:function(s){this.skewY=p(s,"deg")},perspective:function(s){this.perspective=p(s,"px")},x:function(s){this.set("translate",s,null)},y:function(s){this.set("translate",null,s)},translate:function(s,t){if(this._translateX===undefined){this._translateX=0}if(this._translateY===undefined){this._translateY=0}if(s!==null&&s!==undefined){this._translateX=p(s,"px")}if(t!==null&&t!==undefined){this._translateY=p(t,"px")}this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var t=(this.scale||"1,1").split(",");if(t[0]){t[0]=parseFloat(t[0])}if(t[1]){t[1]=parseFloat(t[1])}return(t[0]===t[1])?t[0]:t},rotate3d:function(){var u=(this.rotate3d||"0,0,0,0deg").split(",");for(var t=0;t<=3;++t){if(u[t]){u[t]=parseFloat(u[t])}}if(u[3]){u[3]=p(u[3],"deg")}return u}},parse:function(t){var s=this;t.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(u,w,v){s.setFromString(w,v)})},toString:function(u){var t=[];for(var s in this){if(this.hasOwnProperty(s)){if((!r.transform3d)&&((s==="rotateX")||(s==="rotateY")||(s==="perspective")||(s==="transformOrigin"))){continue}if(s[0]!=="_"){if(u&&(s==="scale")){t.push(s+"3d("+this[s]+",1)")}else{if(u&&(s==="translate")){t.push(s+"3d("+this[s]+",0)")}else{t.push(s+"("+this[s]+")")}}}}}return t.join(" ")}};function n(t,s,u){if(s===true){t.queue(u)}else{if(s){t.queue(s,u)}else{t.each(function(){u.call(this)})}}}function h(t){var s=[];l.each(t,function(u){u=l.camelCase(u);u=l.transit.propertyMap[u]||l.cssProps[u]||u;u=c(u);if(r[u]){u=c(r[u])}if(l.inArray(u,s)===-1){s.push(u)}});return s}function g(t,w,y,s){var u=h(t);if(l.cssEase[y]){y=l.cssEase[y]}var x=""+m(w)+" "+y;if(parseInt(s,10)>0){x+=" "+m(s)}var v=[];l.each(u,function(A,z){v.push(z+" "+x)});return v.join(", ")}l.fn.transition=l.fn.transit=function(B,u,A,E){var F=this;var w=0;var y=true;var s=l.extend(true,{},B);if(typeof u==="function"){E=u;u=undefined}if(typeof u==="object"){A=u.easing;w=u.delay||0;y=typeof u.queue==="undefined"?true:u.queue;E=u.complete;u=u.duration}if(typeof A==="function"){E=A;A=undefined}if(typeof s.easing!=="undefined"){A=s.easing;delete s.easing}if(typeof s.duration!=="undefined"){u=s.duration;delete s.duration}if(typeof s.complete!=="undefined"){E=s.complete;delete s.complete}if(typeof s.queue!=="undefined"){y=s.queue;delete s.queue}if(typeof s.delay!=="undefined"){w=s.delay;delete s.delay}if(typeof u==="undefined"){u=l.fx.speeds._default}if(typeof A==="undefined"){A=l.cssEase._default}u=m(u);var G=g(s,u,A,w);var D=l.transit.enabled&&r.transition;var v=D?(parseInt(u,10)+parseInt(w,10)):0;if(v===0){var C=function(H){F.css(s);if(E){E.apply(F)}if(H){H()}};n(F,y,C);return F}var z={};var t=function(J){var I=false;var H=function(){if(I){F.unbind(f,H)}if(v>0){F.each(function(){this.style[r.transition]=(z[this]||null)})}if(typeof E==="function"){E.apply(F)}if(typeof J==="function"){J()}};if((v>0)&&(f)&&(l.transit.useTransitionEnd)){I=true;F.bind(f,H)}else{window.setTimeout(H,v)}F.each(function(){if(v>0){this.style[r.transition]=G}l(this).css(s)})};var x=function(H){this.offsetWidth;t(H)};n(F,y,x);return this};function o(t,s){if(!s){l.cssNumber[t]=true}l.transit.propertyMap[t]=r.transform;l.cssHooks[t]={get:function(v){var u=l(v).css("transit:transform");return u.get(t)},set:function(v,w){var u=l(v).css("transit:transform");u.setFromString(t,w);l(v).css({"transit:transform":u})}}}function c(s){return s.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function p(t,s){if((typeof t==="string")&&(!t.match(/^[\-0-9\.]+$/))){return t}else{return""+t+s}}function m(t){var s=t;if(typeof s==="string"&&(!s.match(/^[\-0-9\.]+/))){s=l.fx.speeds[s]||l.fx.speeds._default}return p(s,"ms")}l.transit.getTransitionValue=g;return l}));
/*!
* MediaElement.js
* HTML5 <video> and <audio> shim and player
* http://mediaelementjs.com/
*
* Creates a JavaScript object that mimics HTML5 MediaElement API
* for browsers that don't understand HTML5 or can't play the provided codec
* Can play MP4 (H.264), Ogg, WebM, FLV, WMV, WMA, ACC, and MP3
*
* Copyright 2010-2014, John Dyer (http://j.hn)
* License: MIT
*
*/
;var mejs=mejs||{};mejs.version="2.14.2";mejs.meIndex=0;mejs.plugins={silverlight:[{version:[3,0],types:["video/mp4","video/m4v","video/mov","video/wmv","audio/wma","audio/m4a","audio/mp3","audio/wav","audio/mpeg"]}],flash:[{version:[9,0,124],types:["video/mp4","video/m4v","video/mov","video/flv","video/rtmp","video/x-flv","audio/flv","audio/x-flv","audio/mp3","audio/m4a","audio/mpeg","video/youtube","video/x-youtube"]}],youtube:[{version:null,types:["video/youtube","video/x-youtube","audio/youtube","audio/x-youtube"]}],vimeo:[{version:null,types:["video/vimeo","video/x-vimeo"]}]};mejs.Utility={encodeUrl:function(a){return encodeURIComponent(a)},escapeHTML:function(a){return a.toString().split("&").join("&amp;").split("<").join("&lt;").split('"').join("&quot;")},absolutizeUrl:function(a){var b=document.createElement("div");b.innerHTML='<a href="'+this.escapeHTML(a)+'">x</a>';return b.firstChild.href},getScriptPath:function(o){var l=0,g,m="",c="",h,e,b,a,d,f=document.getElementsByTagName("script"),n=f.length,k=o.length;for(;l<n;l++){b=f[l].src;h=b.lastIndexOf("/");if(h>-1){d=b.substring(h+1);a=b.substring(0,h+1)}else{d=b;a=""}for(g=0;g<k;g++){c=o[g];e=d.indexOf(c);if(e>-1){m=a;break}}if(m!==""){break}}return m},secondsToTimeCode:function(c,g,a,b){if(typeof a=="undefined"){a=false}else{if(typeof b=="undefined"){b=25}}var f=Math.floor(c/3600)%24,d=Math.floor(c/60)%60,h=Math.floor(c%60),e=Math.floor(((c%1)*b).toFixed(3)),j=((g||f>0)?(f<10?"0"+f:f)+":":"")+(d<10?"0"+d:d)+":"+(h<10?"0"+h:h)+((a)?":"+(e<10?"0"+e:e):"");return j},timeCodeToSeconds:function(c,k,d,e){if(typeof d=="undefined"){d=false}else{if(typeof e=="undefined"){e=25}}var f=c.split(":"),a=parseInt(f[0],10),b=parseInt(f[1],10),h=parseInt(f[2],10),j=0,g=0;if(d){j=parseInt(f[3])/e}g=(a*3600)+(b*60)+h+j;return g},convertSMPTEtoSeconds:function(a){if(typeof a!="string"){return false}a=a.replace(",",".");var d=0,b=(a.indexOf(".")!=-1)?a.split(".")[1].length:0,e=1;a=a.split(":").reverse();for(var c=0;c<a.length;c++){e=1;if(c>0){e=Math.pow(60,c)}d+=Number(a[c])*e}return Number(d.toFixed(b))},removeSwf:function(b){var a=document.getElementById(b);if(a&&/object|embed/i.test(a.nodeName)){if(mejs.MediaFeatures.isIE){a.style.display="none";(function(){if(a.readyState==4){mejs.Utility.removeObjectInIE(b)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.removeChild(a)}}},removeObjectInIE:function(c){var b=document.getElementById(c);if(b){for(var a in b){if(typeof b[a]=="function"){b[a]=null}}b.parentNode.removeChild(b)}}};mejs.PluginDetector={hasPluginVersion:function(c,a){var b=this.plugins[c];a[1]=a[1]||0;a[2]=a[2]||0;return(b[0]>a[0]||(b[0]==a[0]&&b[1]>a[1])||(b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]))?true:false},nav:window.navigator,ua:window.navigator.userAgent.toLowerCase(),plugins:[],addPlugin:function(d,c,e,a,b){this.plugins[d]=this.detectPlugin(c,e,a,b)},detectPlugin:function(g,b,c,k){var h=[0,0,0],j,d,a;if(typeof(this.nav.plugins)!="undefined"&&typeof this.nav.plugins[g]=="object"){j=this.nav.plugins[g].description;if(j&&!(typeof this.nav.mimeTypes!="undefined"&&this.nav.mimeTypes[b]&&!this.nav.mimeTypes[b].enabledPlugin)){h=j.replace(g,"").replace(/^\s+/,"").replace(/\sr/gi,".").split(".");for(d=0;d<h.length;d++){h[d]=parseInt(h[d].match(/\d+/),10)}}}else{if(typeof(window.ActiveXObject)!="undefined"){try{a=new ActiveXObject(c);if(a){h=k(a)}}catch(f){}}}return h}};mejs.PluginDetector.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(b){var a=[],c=b.GetVariable("$version");if(c){c=c.split(" ")[1].split(",");a=[parseInt(c[0],10),parseInt(c[1],10),parseInt(c[2],10)]}return a});mejs.PluginDetector.addPlugin("silverlight","Silverlight Plug-In","application/x-silverlight-2","AgControl.AgControl",function(b){var a=[0,0,0,0],c=function(f,d,e,g){while(f.isVersionSupported(d[0]+"."+d[1]+"."+d[2]+"."+d[3])){d[e]+=g}d[e]-=g};c(b,a,0,1);c(b,a,1,1);c(b,a,2,10000);c(b,a,2,1000);c(b,a,2,100);c(b,a,2,10);c(b,a,2,1);c(b,a,3,1);return a});mejs.MediaFeatures={init:function(){var f=this,k=document,j=mejs.PluginDetector.nav,c=mejs.PluginDetector.ua.toLowerCase(),b,a,g=["source","track","audio","video"];f.isiPad=(c.match(/ipad/i)!==null);f.isiPhone=(c.match(/iphone/i)!==null);f.isiOS=f.isiPhone||f.isiPad;f.isAndroid=(c.match(/android/i)!==null);f.isBustedAndroid=(c.match(/android 2\.[12]/)!==null);f.isBustedNativeHTTPS=(location.protocol==="https:"&&(c.match(/android [12]\./)!==null||c.match(/macintosh.* version.* safari/)!==null));f.isIE=(j.appName.toLowerCase().indexOf("microsoft")!=-1||j.appName.toLowerCase().match(/trident/gi)!==null);f.isChrome=(c.match(/chrome/gi)!==null);f.isFirefox=(c.match(/firefox/gi)!==null);f.isWebkit=(c.match(/webkit/gi)!==null);f.isGecko=(c.match(/gecko/gi)!==null)&&!f.isWebkit&&!f.isIE;f.isOpera=(c.match(/opera/gi)!==null);f.hasTouch=("ontouchstart" in window);f.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect;for(b=0;b<g.length;b++){a=document.createElement(g[b])}f.supportsMediaTag=(typeof a.canPlayType!=="undefined"||f.isBustedAndroid);try{a.canPlayType("video/mp4")}catch(h){f.supportsMediaTag=false}f.hasSemiNativeFullScreen=(typeof a.webkitEnterFullscreen!=="undefined");f.hasNativeFullscreen=(typeof a.requestFullscreen!=="undefined");f.hasWebkitNativeFullScreen=(typeof a.webkitRequestFullScreen!=="undefined");f.hasMozNativeFullScreen=(typeof a.mozRequestFullScreen!=="undefined");f.hasMsNativeFullScreen=(typeof a.msRequestFullscreen!=="undefined");f.hasTrueNativeFullScreen=(f.hasWebkitNativeFullScreen||f.hasMozNativeFullScreen||f.hasMsNativeFullScreen);f.nativeFullScreenEnabled=f.hasTrueNativeFullScreen;if(f.hasMozNativeFullScreen){f.nativeFullScreenEnabled=document.mozFullScreenEnabled}else{if(f.hasMsNativeFullScreen){f.nativeFullScreenEnabled=document.msFullscreenEnabled}}if(f.isChrome){f.hasSemiNativeFullScreen=false}if(f.hasTrueNativeFullScreen){f.fullScreenEventName="";if(f.hasWebkitNativeFullScreen){f.fullScreenEventName="webkitfullscreenchange"}else{if(f.hasMozNativeFullScreen){f.fullScreenEventName="mozfullscreenchange"}else{if(f.hasMsNativeFullScreen){f.fullScreenEventName="MSFullscreenChange"}}}f.isFullScreen=function(){if(a.mozRequestFullScreen){return k.mozFullScreen}else{if(a.webkitRequestFullScreen){return k.webkitIsFullScreen}else{if(a.hasMsNativeFullScreen){return k.msFullscreenElement!==null}}}};f.requestFullScreen=function(d){if(f.hasWebkitNativeFullScreen){d.webkitRequestFullScreen()}else{if(f.hasMozNativeFullScreen){d.mozRequestFullScreen()}else{if(f.hasMsNativeFullScreen){d.msRequestFullscreen()}}}};f.cancelFullScreen=function(){if(f.hasWebkitNativeFullScreen){document.webkitCancelFullScreen()}else{if(f.hasMozNativeFullScreen){document.mozCancelFullScreen()}else{if(f.hasMsNativeFullScreen){document.msExitFullscreen()}}}}}if(f.hasSemiNativeFullScreen&&c.match(/mac os x 10_5/i)){f.hasNativeFullScreen=false;f.hasSemiNativeFullScreen=false}}};mejs.MediaFeatures.init();mejs.HtmlMediaElement={pluginType:"native",isFullScreen:false,setCurrentTime:function(a){this.currentTime=a},setMuted:function(a){this.muted=a},setVolume:function(a){this.volume=a},stop:function(){this.pause()},setSrc:function(a){var c=this.getElementsByTagName("source");while(c.length>0){this.removeChild(c[0])}if(typeof a=="string"){this.src=a}else{var b,d;for(b=0;b<a.length;b++){d=a[b];if(this.canPlayType(d.type)){this.src=d.src;break}}}},setVideoSize:function(b,a){this.width=b;this.height=a}};mejs.PluginMediaElement=function(b,c,a){this.id=b;this.pluginType=c;this.src=a;this.events={};this.attributes={}};mejs.PluginMediaElement.prototype={pluginElement:null,pluginType:"",isFullScreen:false,playbackRate:-1,defaultPlaybackRate:-1,seekable:[],played:[],paused:true,ended:false,seeking:false,duration:0,error:null,tagName:"",muted:false,volume:1,currentTime:0,play:function(){if(this.pluginApi!=null){if(this.pluginType=="youtube"||this.pluginType=="vimeo"){this.pluginApi.playVideo()}else{this.pluginApi.playMedia()}this.paused=false}},load:function(){if(this.pluginApi!=null){if(this.pluginType=="youtube"||this.pluginType=="vimeo"){}else{this.pluginApi.loadMedia()}this.paused=false}},pause:function(){if(this.pluginApi!=null){if(this.pluginType=="youtube"||this.pluginType=="vimeo"){this.pluginApi.pauseVideo()}else{this.pluginApi.pauseMedia()}this.paused=true}},stop:function(){if(this.pluginApi!=null){if(this.pluginType=="youtube"||this.pluginType=="vimeo"){this.pluginApi.stopVideo()}else{this.pluginApi.stopMedia()}this.paused=true}},canPlayType:function(e){var d,c,a,b=mejs.plugins[this.pluginType];for(d=0;d<b.length;d++){a=b[d];if(mejs.PluginDetector.hasPluginVersion(this.pluginType,a.version)){for(c=0;c<a.types.length;c++){if(e==a.types[c]){return"probably"}}}}return""},positionFullscreenButton:function(a,c,b){if(this.pluginApi!=null&&this.pluginApi.positionFullscreenButton){this.pluginApi.positionFullscreenButton(Math.floor(a),Math.floor(c),b)}},hideFullscreenButton:function(){if(this.pluginApi!=null&&this.pluginApi.hideFullscreenButton){this.pluginApi.hideFullscreenButton()}},setSrc:function(a){if(typeof a=="string"){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(a));this.src=mejs.Utility.absolutizeUrl(a)}else{var b,c;for(b=0;b<a.length;b++){c=a[b];if(this.canPlayType(c.type)){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(c.src));this.src=mejs.Utility.absolutizeUrl(a);break}}}},setCurrentTime:function(a){if(this.pluginApi!=null){if(this.pluginType=="youtube"||this.pluginType=="vimeo"){this.pluginApi.seekTo(a)}else{this.pluginApi.setCurrentTime(a)}this.currentTime=a}},setVolume:function(a){if(this.pluginApi!=null){if(this.pluginType=="youtube"||this.pluginType=="vimeo"){this.pluginApi.setVolume(a*100)}else{this.pluginApi.setVolume(a)}this.volume=a}},setMuted:function(a){if(this.pluginApi!=null){if(this.pluginType=="youtube"||this.pluginType=="vimeo"){if(a){this.pluginApi.mute()}else{this.pluginApi.unMute()}this.muted=a;this.dispatchEvent("volumechange")}else{this.pluginApi.setMuted(a)}this.muted=a}},setVideoSize:function(b,a){if(this.pluginElement.style){this.pluginElement.style.width=b+"px";this.pluginElement.style.height=a+"px"}if(this.pluginApi!=null&&this.pluginApi.setVideoSize){this.pluginApi.setVideoSize(b,a)}},setFullscreen:function(a){if(this.pluginApi!=null&&this.pluginApi.setFullscreen){this.pluginApi.setFullscreen(a)}},enterFullScreen:function(){if(this.pluginApi!=null&&this.pluginApi.setFullscreen){this.setFullscreen(true)}},exitFullScreen:function(){if(this.pluginApi!=null&&this.pluginApi.setFullscreen){this.setFullscreen(false)}},addEventListener:function(b,c,a){this.events[b]=this.events[b]||[];this.events[b].push(c)},removeEventListener:function(a,d){if(!a){this.events={};return true}var c=this.events[a];if(!c){return true}if(!d){this.events[a]=[];return true}for(var b=0;b<c.length;b++){if(c[b]===d){this.events[a].splice(b,1);return true}}return false},dispatchEvent:function(a){var c,b,d=this.events[a];if(d){b=Array.prototype.slice.call(arguments,1);for(c=0;c<d.length;c++){d[c].apply(null,b)}}},hasAttribute:function(a){return(a in this.attributes)},removeAttribute:function(a){delete this.attributes[a]},getAttribute:function(a){if(this.hasAttribute(a)){return this.attributes[a]}return""},setAttribute:function(a,b){this.attributes[a]=b},remove:function(){mejs.Utility.removeSwf(this.pluginElement.id);mejs.MediaPluginBridge.unregisterPluginElement(this.pluginElement.id)}};mejs.MediaPluginBridge={pluginMediaElements:{},htmlMediaElements:{},registerPluginElement:function(c,a,b){this.pluginMediaElements[c]=a;this.htmlMediaElements[c]=b},unregisterPluginElement:function(a){delete this.pluginMediaElements[a];delete this.htmlMediaElements[a]},initPlugin:function(c){var a=this.pluginMediaElements[c],b=this.htmlMediaElements[c];if(a){switch(a.pluginType){case"flash":a.pluginElement=a.pluginApi=document.getElementById(c);break;case"silverlight":a.pluginElement=document.getElementById(a.id);a.pluginApi=a.pluginElement.Content.MediaElementJS;break}if(a.pluginApi!=null&&a.success){a.success(a,b)}}},fireEvent:function(h,c,b){var g,f,a,d=this.pluginMediaElements[h];if(!d){return}g={type:c,target:d};for(f in b){d[f]=b[f];g[f]=b[f]}a=b.bufferedTime||0;g.target.buffered=g.buffered={start:function(e){return 0},end:function(e){return a},length:1};d.dispatchEvent(g.type,g)}};mejs.MediaElementDefaults={mode:"auto",plugins:["flash","silverlight","youtube","vimeo"],enablePluginDebug:false,httpsBasicAuthSite:false,type:"",pluginPath:mejs.Utility.getScriptPath(["mediaelement.js","mediaelement.min.js","mediaelement-and-player.js","mediaelement-and-player.min.js"]),flashName:"flashmediaelement.swf",flashStreamer:"",enablePluginSmoothing:false,enablePseudoStreaming:false,pseudoStreamingStartQueryParam:"start",silverlightName:"silverlightmediaelement.xap",defaultVideoWidth:480,defaultVideoHeight:270,pluginWidth:-1,pluginHeight:-1,pluginVars:[],timerRate:250,startVolume:0.8,success:function(){},error:function(){}};mejs.MediaElement=function(a,b){return mejs.HtmlMediaElementShim.create(a,b)};mejs.HtmlMediaElementShim={create:function(e,d){var n=mejs.MediaElementDefaults,k=(typeof(e)=="string")?document.getElementById(e):e,h=k.tagName.toLowerCase(),g=(h==="audio"||h==="video"),b=(g)?k.getAttribute("src"):k.getAttribute("href"),l=k.getAttribute("poster"),f=k.getAttribute("autoplay"),j=k.getAttribute("preload"),m=k.getAttribute("controls"),a,c;for(c in d){n[c]=d[c]}b=(typeof b=="undefined"||b===null||b=="")?null:b;l=(typeof l=="undefined"||l===null)?"":l;j=(typeof j=="undefined"||j===null||j==="false")?"none":j;f=!(typeof f=="undefined"||f===null||f==="false");m=!(typeof m=="undefined"||m===null||m==="false");a=this.determinePlayback(k,n,mejs.MediaFeatures.supportsMediaTag,g,b);a.url=(a.url!==null)?mejs.Utility.absolutizeUrl(a.url):"";if(a.method=="native"){if(mejs.MediaFeatures.isBustedAndroid){k.src=a.url;k.addEventListener("click",function(){k.play()},false)}return this.updateNative(a,n,f,j)}else{if(a.method!==""){return this.createPlugin(a,n,l,f,j,m)}else{this.createErrorMessage(a,n,l);return this}}},determinePlayback:function(t,c,h,v,f){var o=[],s,r,q,p,m,d,g={method:"",url:"",htmlMediaElement:t,isVideo:(t.tagName.toLowerCase()!="audio")},a,b,u,w,e;if(typeof c.type!="undefined"&&c.type!==""){if(typeof c.type=="string"){o.push({type:c.type,url:f})}else{for(s=0;s<c.type.length;s++){o.push({type:c.type[s],url:f})}}}else{if(f!==null){d=this.formatType(f,t.getAttribute("type"));o.push({type:d,url:f})}else{for(s=0;s<t.childNodes.length;s++){m=t.childNodes[s];if(m.nodeType==1&&m.tagName.toLowerCase()=="source"){f=m.getAttribute("src");d=this.formatType(f,m.getAttribute("type"));e=m.getAttribute("media");if(!e||!window.matchMedia||(window.matchMedia&&window.matchMedia(e).matches)){o.push({type:d,url:f})}}}}}if(!v&&o.length>0&&o[0].url!==null&&this.getTypeFromFile(o[0].url).indexOf("audio")>-1){g.isVideo=false}if(mejs.MediaFeatures.isBustedAndroid){t.canPlayType=function(j){return(j.match(/video\/(mp4|m4v)/gi)!==null)?"maybe":""}}if(h&&(c.mode==="auto"||c.mode==="auto_plugin"||c.mode==="native")&&!(mejs.MediaFeatures.isBustedNativeHTTPS&&c.httpsBasicAuthSite===true)){if(!v){w=document.createElement(g.isVideo?"video":"audio");t.parentNode.insertBefore(w,t);t.style.display="none";g.htmlMediaElement=t=w}for(s=0;s<o.length;s++){if(t.canPlayType(o[s].type).replace(/no/,"")!==""||t.canPlayType(o[s].type.replace(/mp3/,"mpeg")).replace(/no/,"")!==""||t.canPlayType(o[s].type.replace(/m4a/,"mp4")).replace(/no/,"")!==""){g.method="native";g.url=o[s].url;break}}if(g.method==="native"){if(g.url!==null){t.src=g.url}if(c.mode!=="auto_plugin"){return g}}}if(c.mode==="auto"||c.mode==="auto_plugin"||c.mode==="shim"){for(s=0;s<o.length;s++){d=o[s].type;for(r=0;r<c.plugins.length;r++){a=c.plugins[r];b=mejs.plugins[a];for(q=0;q<b.length;q++){u=b[q];if(u.version==null||mejs.PluginDetector.hasPluginVersion(a,u.version)){for(p=0;p<u.types.length;p++){if(d==u.types[p]){g.method=a;g.url=o[s].url;return g}}}}}}}if(c.mode==="auto_plugin"&&g.method==="native"){return g}if(g.method===""&&o.length>0){g.url=o[0].url}return g},formatType:function(a,c){var b;if(a&&!c){return this.getTypeFromFile(a)}else{if(c&&~c.indexOf(";")){return c.substr(0,c.indexOf(";"))}else{return c}}},getTypeFromFile:function(a){a=a.split("?")[0];var b=a.substring(a.lastIndexOf(".")+1).toLowerCase();return(/(mp4|m4v|ogg|ogv|webm|webmv|flv|wmv|mpeg|mov)/gi.test(b)?"video":"audio")+"/"+this.getTypeFromExtension(b)},getTypeFromExtension:function(a){switch(a){case"mp4":case"m4v":case"m4a":return"mp4";case"webm":case"webma":case"webmv":return"webm";case"ogg":case"oga":case"ogv":return"ogg";default:return a}},createErrorMessage:function(c,b,g){var d=c.htmlMediaElement,a=document.createElement("div");a.className="me-cannotplay";try{a.style.width=d.width+"px";a.style.height=d.height+"px"}catch(f){}if(b.customError){a.innerHTML=b.customError}else{a.innerHTML=(g!=="")?'<a href="'+c.url+'"><img src="'+g+'" width="100%" height="100%" /></a>':'<a href="'+c.url+'"><span>'+mejs.i18n.t("Download File")+"</span></a>"}d.parentNode.insertBefore(a,d);d.style.display="none";b.error(d)},createPlugin:function(n,a,c,e,d,h){var s=n.htmlMediaElement,m=1,l=1,u="me_"+n.method+"_"+(mejs.meIndex++),o=new mejs.PluginMediaElement(u,n.method,n.url),g=document.createElement("div"),b,p,j;o.tagName=s.tagName;for(var r=0;r<s.attributes.length;r++){var f=s.attributes[r];if(f.specified==true){o.setAttribute(f.name,f.value)}}p=s.parentNode;while(p!==null&&p.tagName.toLowerCase()!=="body"&&p.parentNode!=null){if(p.parentNode.tagName.toLowerCase()==="p"){p.parentNode.parentNode.insertBefore(p,p.parentNode);break}p=p.parentNode}if(n.isVideo){m=(a.pluginWidth>0)?a.pluginWidth:(a.videoWidth>0)?a.videoWidth:(s.getAttribute("width")!==null)?s.getAttribute("width"):a.defaultVideoWidth;l=(a.pluginHeight>0)?a.pluginHeight:(a.videoHeight>0)?a.videoHeight:(s.getAttribute("height")!==null)?s.getAttribute("height"):a.defaultVideoHeight;m=mejs.Utility.encodeUrl(m);l=mejs.Utility.encodeUrl(l)}else{if(a.enablePluginDebug){m=320;l=240}}o.success=a.success;mejs.MediaPluginBridge.registerPluginElement(u,o,s);g.className="me-plugin";g.id=u+"_container";if(n.isVideo){s.parentNode.insertBefore(g,s)}else{document.body.insertBefore(g,document.body.childNodes[0])}j=["id="+u,"isvideo="+((n.isVideo)?"true":"false"),"autoplay="+((e)?"true":"false"),"preload="+d,"width="+m,"startvolume="+a.startVolume,"timerrate="+a.timerRate,"flashstreamer="+a.flashStreamer,"height="+l,"pseudostreamstart="+a.pseudoStreamingStartQueryParam];if(n.url!==null){if(n.method=="flash"){j.push("file="+mejs.Utility.encodeUrl(n.url))}else{j.push("file="+n.url)}}if(a.enablePluginDebug){j.push("debug=true")}if(a.enablePluginSmoothing){j.push("smoothing=true")}if(a.enablePseudoStreaming){j.push("pseudostreaming=true")}if(h){j.push("controls=true")}if(a.pluginVars){j=j.concat(a.pluginVars)}switch(n.method){case"silverlight":g.innerHTML='<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="'+u+'" name="'+u+'" width="'+m+'" height="'+l+'" class="mejs-shim"><param name="initParams" value="'+j.join(",")+'" /><param name="windowless" value="true" /><param name="background" value="black" /><param name="minRuntimeVersion" value="3.0.0.0" /><param name="autoUpgrade" value="true" /><param name="source" value="'+a.pluginPath+a.silverlightName+'" /></object>';break;case"flash":if(mejs.MediaFeatures.isIE){b=document.createElement("div");g.appendChild(b);b.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+u+'" width="'+m+'" height="'+l+'" class="mejs-shim"><param name="movie" value="'+a.pluginPath+a.flashName+"?x="+(new Date())+'" /><param name="flashvars" value="'+j.join("&amp;")+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="scale" value="default" /></object>'}else{g.innerHTML='<embed id="'+u+'" name="'+u+'" play="true" loop="false" quality="high" bgcolor="#000000" wmode="transparent" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="//www.macromedia.com/go/getflashplayer" src="'+a.pluginPath+a.flashName+'" flashvars="'+j.join("&")+'" width="'+m+'" height="'+l+'" scale="default"class="mejs-shim"></embed>'}break;case"youtube":var k;if(n.url.lastIndexOf("youtu.be")!=-1){k=n.url.substr(n.url.lastIndexOf("/")+1);if(k.indexOf("?")!=-1){k=k.substr(0,k.indexOf("?"))}}else{k=n.url.substr(n.url.lastIndexOf("=")+1)}youtubeSettings={container:g,containerId:g.id,pluginMediaElement:o,pluginId:u,videoId:k,height:l,width:m};if(mejs.PluginDetector.hasPluginVersion("flash",[10,0,0])){mejs.YouTubeApi.createFlash(youtubeSettings)}else{mejs.YouTubeApi.enqueueIframe(youtubeSettings)}break;case"vimeo":var t=u+"_player";o.vimeoid=n.url.substr(n.url.lastIndexOf("/")+1);g.innerHTML='<iframe src="//player.vimeo.com/video/'+o.vimeoid+"?api=1&portrait=0&byline=0&title=0&player_id="+t+'" width="'+m+'" height="'+l+'" frameborder="0" class="mejs-shim" id="'+t+'"></iframe>';if(typeof($f)=="function"){var q=$f(g.childNodes[0]);q.addEvent("ready",function(){q.playVideo=function(){q.api("play")};q.pauseVideo=function(){q.api("pause")};q.seekTo=function(w){q.api("seekTo",w)};function v(y,x,w,A){var z={type:w,target:x};if(w=="timeupdate"){x.currentTime=z.currentTime=A.seconds;x.duration=z.duration=A.duration}x.dispatchEvent(z.type,z)}q.addEvent("play",function(){v(q,o,"play");v(q,o,"playing")});q.addEvent("pause",function(){v(q,o,"pause")});q.addEvent("finish",function(){v(q,o,"ended")});q.addEvent("playProgress",function(w){v(q,o,"timeupdate",w)});o.pluginApi=q;mejs.MediaPluginBridge.initPlugin(u)})}else{console.warn("You need to include froogaloop for vimeo to work")}break}s.style.display="none";s.removeAttribute("autoplay");return o},updateNative:function(d,c,f,b){var e=d.htmlMediaElement,a;for(a in mejs.HtmlMediaElement){e[a]=mejs.HtmlMediaElement[a]}c.success(e,e);return e}};mejs.YouTubeApi={isIframeStarted:false,isIframeLoaded:false,loadIframeApi:function(){if(!this.isIframeStarted){var a=document.createElement("script");a.src="//www.youtube.com/player_api";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b);this.isIframeStarted=true}},iframeQueue:[],enqueueIframe:function(a){if(this.isLoaded){this.createIframe(a)}else{this.loadIframeApi();this.iframeQueue.push(a)}},createIframe:function(c){var b=c.pluginMediaElement,a=new YT.Player(c.containerId,{height:c.height,width:c.width,videoId:c.videoId,playerVars:{controls:0},events:{onReady:function(){c.pluginMediaElement.pluginApi=a;mejs.MediaPluginBridge.initPlugin(c.pluginId);setInterval(function(){mejs.YouTubeApi.createEvent(a,b,"timeupdate")},250)},onStateChange:function(d){mejs.YouTubeApi.handleStateChange(d.data,a,b)}}})},createEvent:function(d,c,b){var e={type:b,target:c};if(d&&d.getDuration){c.currentTime=e.currentTime=d.getCurrentTime();c.duration=e.duration=d.getDuration();e.paused=c.paused;e.ended=c.ended;e.muted=d.isMuted();e.volume=d.getVolume()/100;e.bytesTotal=d.getVideoBytesTotal();e.bufferedBytes=d.getVideoBytesLoaded();var a=e.bufferedBytes/e.bytesTotal*e.duration;e.target.buffered=e.buffered={start:function(f){return 0},end:function(f){return a},length:1}}c.dispatchEvent(e.type,e)},iFrameReady:function(){this.isLoaded=true;this.isIframeLoaded=true;while(this.iframeQueue.length>0){var a=this.iframeQueue.pop();this.createIframe(a)}},flashPlayers:{},createFlash:function(c){this.flashPlayers[c.pluginId]=c;var b,a="//www.youtube.com/apiplayer?enablejsapi=1&amp;playerapiid="+c.pluginId+"&amp;version=3&amp;autoplay=0&amp;controls=0&amp;modestbranding=1&loop=0";if(mejs.MediaFeatures.isIE){b=document.createElement("div");c.container.appendChild(b);b.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+c.pluginId+'" width="'+c.width+'" height="'+c.height+'" class="mejs-shim"><param name="movie" value="'+a+'" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /></object>'}else{c.container.innerHTML='<object type="application/x-shockwave-flash" id="'+c.pluginId+'" data="'+a+'" width="'+c.width+'" height="'+c.height+'" style="visibility: visible; " class="mejs-shim"><param name="allowScriptAccess" value="always"><param name="wmode" value="transparent"></object>'}},flashReady:function(e){var c=this.flashPlayers[e],b=document.getElementById(e),a=c.pluginMediaElement;a.pluginApi=a.pluginElement=b;mejs.MediaPluginBridge.initPlugin(e);b.cueVideoById(c.videoId);var d=c.containerId+"_callback";window[d]=function(f){mejs.YouTubeApi.handleStateChange(f,b,a)};b.addEventListener("onStateChange",d);setInterval(function(){mejs.YouTubeApi.createEvent(b,a,"timeupdate")},250)},handleStateChange:function(c,b,a){switch(c){case -1:a.paused=true;a.ended=true;mejs.YouTubeApi.createEvent(b,a,"loadedmetadata");break;case 0:a.paused=false;a.ended=true;mejs.YouTubeApi.createEvent(b,a,"ended");break;case 1:a.paused=false;a.ended=false;mejs.YouTubeApi.createEvent(b,a,"play");mejs.YouTubeApi.createEvent(b,a,"playing");break;case 2:a.paused=true;a.ended=false;mejs.YouTubeApi.createEvent(b,a,"pause");break;case 3:mejs.YouTubeApi.createEvent(b,a,"progress");break;case 5:break}}};function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(a){mejs.YouTubeApi.flashReady(a)}window.mejs=mejs;window.MediaElement=mejs.MediaElement;
/*!
 * Adds Internationalization and localization to mediaelement.
 *
 * This file does not contain translations, you have to add the manually.
 * The schema is always the same: me-i18n-locale-[ISO_639-1 Code].js
 *
 * Examples are provided both for german and chinese translation.
 *
 *
 * What is the concept beyond i18n?
 *   http://en.wikipedia.org/wiki/Internationalization_and_localization
 *
 * What langcode should i use?
 *   http://en.wikipedia.org/wiki/ISO_639-1
 *
 *
 * License?
 *
 *   The i18n file uses methods from the Drupal project (drupal.js):
 *     - i18n.methods.t() (modified)
 *     - i18n.methods.checkPlain() (full copy)
 *
 *   The Drupal project is (like mediaelementjs) licensed under GPLv2.
 *    - http://drupal.org/licensing/faq/#q1
 *    - https://github.com/johndyer/mediaelement
 *    - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 *
 *
 * @author
 *   Tim Latz (latz.tim@gmail.com)
 *
 *
 * @params
 *  - context - document, iframe ..
 *  - exports - CommonJS, window ..
 *
 */
;(function(b,a,d){var c={locale:{language:"",strings:{}},methods:{}};c.getLanguage=function(){var e=c.locale.language||window.navigator.userLanguage||window.navigator.language;return e.substr(0,2).toLowerCase()};if(typeof mejsL10n!="undefined"){c.locale.language=mejsL10n.language}c.methods.checkPlain=function(h){var g,f,e={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"};h=String(h);for(g in e){if(e.hasOwnProperty(g)){f=new RegExp(g,"g");h=h.replace(f,e[g])}}return h};c.methods.t=function(f,e){if(c.locale.strings&&c.locale.strings[e.context]&&c.locale.strings[e.context][f]){f=c.locale.strings[e.context][f]}return c.methods.checkPlain(f)};c.t=function(f,e){if(typeof f==="string"&&f.length>0){var g=c.getLanguage();e=e||{context:g};return c.methods.t(f,e)}else{throw {name:"InvalidArgumentException",message:"First argument is either not a string or empty."}}};a.i18n=c}(document,mejs));(function(a,b){if(typeof mejsL10n!="undefined"){a[mejsL10n.language]=mejsL10n.strings}}(mejs.i18n.locale.strings));
/*!
 * This is a i18n.locale language object.
 *
 * German translation by Tim Latz, latz.tim@gmail.com
 *
 * @author
 *   Tim Latz (latz.tim@gmail.com)
 *
 * @see
 *   me-i18n.js
 *
 * @params
 *  - exports - CommonJS, window ..
 */
;(function(a,b){if(typeof a.de==="undefined"){a.de={Fullscreen:"Vollbild","Go Fullscreen":"Vollbild an","Turn off Fullscreen":"Vollbild aus",Close:"Schließen"}}}(mejs.i18n.locale.strings));
/*!
 * This is a i18n.locale language object.
 *
 * Traditional chinese translation by Tim Latz, latz.tim@gmail.com
 *
 * @author
 *   Tim Latz (latz.tim@gmail.com)
 *
 * @see
 *   me-i18n.js
 *
 * @params
 *  - exports - CommonJS, window ..
 */
;(function(a,b){if(typeof a.zh==="undefined"){a.zh={Fullscreen:"全螢幕","Go Fullscreen":"全屏模式","Turn off Fullscreen":"退出全屏模式",Close:"關閉"}}}(mejs.i18n.locale.strings));
/*!
 * MediaElementPlayer
 * http://mediaelementjs.com/
 *
 * Creates a controller bar for HTML5 <video> add <audio> tags
 * using jQuery and MediaElement.js (HTML5 Flash/Silverlight wrapper)
 *
 * Copyright 2010-2013, John Dyer (http://j.hn/)
 * License: MIT
 *
 */
;if(typeof jQuery!="undefined"){mejs.$=jQuery}else{if(typeof ender!="undefined"){mejs.$=ender}}(function(a){mejs.MepDefaults={poster:"",showPosterWhenEnded:false,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:30,defaultSeekBackwardInterval:function(b){return(b.duration*0.05)},defaultSeekForwardInterval:function(b){return(b.duration*0.05)},audioWidth:-1,audioHeight:-1,startVolume:0.8,loop:false,autoRewind:true,enableAutosize:true,alwaysShowHours:false,showTimecodeFrameCount:false,framesPerSecond:25,autosizeProgress:true,alwaysShowControls:false,hideVideoControlsOnLoad:false,clickToPlayPause:true,iPadUseNativeControls:false,iPhoneUseNativeControls:false,AndroidUseNativeControls:false,features:["playpause","current","progress","duration","tracks","volume","fullscreen"],isVideo:true,enableKeyboard:true,pauseOtherPlayers:true,keyActions:[{keys:[32,179],action:function(b,c){if(c.paused||c.ended){b.play()}else{b.pause()}}},{keys:[38],action:function(b,d){var c=Math.min(d.volume+0.1,1);d.setVolume(c)}},{keys:[40],action:function(b,d){var c=Math.max(d.volume-0.1,0);d.setVolume(c)}},{keys:[37,227],action:function(b,d){if(!isNaN(d.duration)&&d.duration>0){if(b.isVideo){b.showControls();b.startControlsTimer()}var c=Math.max(d.currentTime-b.options.defaultSeekBackwardInterval(d),0);d.setCurrentTime(c)}}},{keys:[39,228],action:function(b,d){if(!isNaN(d.duration)&&d.duration>0){if(b.isVideo){b.showControls();b.startControlsTimer()}var c=Math.min(d.currentTime+b.options.defaultSeekForwardInterval(d),d.duration);d.setCurrentTime(c)}}},{keys:[70],action:function(b,c){if(typeof b.enterFullScreen!="undefined"){if(b.isFullScreen){b.exitFullScreen()}else{b.enterFullScreen()}}}}]};mejs.mepIndex=0;mejs.players={};mejs.MediaElementPlayer=function(c,d){if(!(this instanceof mejs.MediaElementPlayer)){return new mejs.MediaElementPlayer(c,d)}var b=this;b.$media=b.$node=a(c);b.node=b.media=b.$media[0];if(typeof b.node.player!="undefined"){return b.node.player}else{b.node.player=b}if(typeof d=="undefined"){d=b.$node.data("mejsoptions")}b.options=a.extend({},mejs.MepDefaults,d);b.id="mep_"+mejs.mepIndex++;mejs.players[b.id]=b;b.init();return b};mejs.MediaElementPlayer.prototype={hasFocus:false,controlsAreVisible:true,init:function(){var d=this,e=mejs.MediaFeatures,h=a.extend(true,{},d.options,{success:function(k,j){d.meReady(k,j)},error:function(j){d.handleError(j)}}),c=d.media.tagName.toLowerCase();d.isDynamic=(c!=="audio"&&c!=="video");if(d.isDynamic){d.isVideo=d.options.isVideo}else{d.isVideo=(c!=="audio"&&d.options.isVideo)}if((e.isiPad&&d.options.iPadUseNativeControls)||(e.isiPhone&&d.options.iPhoneUseNativeControls)){d.$media.attr("controls","controls");if(e.isiPad&&d.media.getAttribute("autoplay")!==null){d.play()}}else{if(e.isAndroid&&d.options.AndroidUseNativeControls){}else{d.$media.removeAttr("controls");d.container=a('<div id="'+d.id+'" class="mejs-container '+(mejs.MediaFeatures.svg?"svg":"no-svg")+'"><div class="mejs-inner"><div class="mejs-mediaelement"></div><div class="mejs-layers"></div><div class="mejs-controls"></div><div class="mejs-clear"></div></div></div>').addClass(d.$media[0].className).insertBefore(d.$media);d.container.addClass((e.isAndroid?"mejs-android ":"")+(e.isiOS?"mejs-ios ":"")+(e.isiPad?"mejs-ipad ":"")+(e.isiPhone?"mejs-iphone ":"")+(d.isVideo?"mejs-video ":"mejs-audio "));if(e.isiOS){var g=d.$media.clone();d.container.find(".mejs-mediaelement").append(g);d.$media.remove();d.$node=d.$media=g;d.node=d.media=g[0]}else{d.container.find(".mejs-mediaelement").append(d.$media)}d.controls=d.container.find(".mejs-controls");d.layers=d.container.find(".mejs-layers");var f=(d.isVideo?"video":"audio"),b=f.substring(0,1).toUpperCase()+f.substring(1);if(d.options[f+"Width"]>0||d.options[f+"Width"].toString().indexOf("%")>-1){d.width=d.options[f+"Width"]}else{if(d.media.style.width!==""&&d.media.style.width!==null){d.width=d.media.style.width}else{if(d.media.getAttribute("width")!==null){d.width=d.$media.attr("width")}else{d.width=d.options["default"+b+"Width"]}}}if(d.options[f+"Height"]>0||d.options[f+"Height"].toString().indexOf("%")>-1){d.height=d.options[f+"Height"]}else{if(d.media.style.height!==""&&d.media.style.height!==null){d.height=d.media.style.height}else{if(d.$media[0].getAttribute("height")!==null){d.height=d.$media.attr("height")}else{d.height=d.options["default"+b+"Height"]}}}d.setPlayerSize(d.width,d.height);h.pluginWidth=d.width;h.pluginHeight=d.height}}mejs.MediaElement(d.$media[0],h);if(typeof(d.container)!="undefined"&&d.controlsAreVisible){d.container.trigger("controlsshown")}},showControls:function(b){var c=this;b=typeof b=="undefined"||b;if(c.controlsAreVisible){return}if(b){c.controls.css("visibility","visible").stop(true,true).fadeIn(200,function(){c.controlsAreVisible=true;c.container.trigger("controlsshown")});c.container.find(".mejs-control").css("visibility","visible").stop(true,true).fadeIn(200,function(){c.controlsAreVisible=true})}else{c.controls.css("visibility","visible").css("display","block");c.container.find(".mejs-control").css("visibility","visible").css("display","block");c.controlsAreVisible=true;c.container.trigger("controlsshown")}c.setControlsSize()},hideControls:function(b){var c=this;b=typeof b=="undefined"||b;if(!c.controlsAreVisible||c.options.alwaysShowControls){return}if(b){c.controls.stop(true,true).fadeOut(200,function(){a(this).css("visibility","hidden").css("display","block");c.controlsAreVisible=false;c.container.trigger("controlshidden")});c.container.find(".mejs-control").stop(true,true).fadeOut(200,function(){a(this).css("visibility","hidden").css("display","block")})}else{c.controls.css("visibility","hidden").css("display","block");c.container.find(".mejs-control").css("visibility","hidden").css("display","block");c.controlsAreVisible=false;c.container.trigger("controlshidden")}},controlsTimer:null,startControlsTimer:function(c){var b=this;c=typeof c!="undefined"?c:1500;b.killControlsTimer("start");b.controlsTimer=setTimeout(function(){b.hideControls();b.killControlsTimer("hide")},c)},killControlsTimer:function(c){var b=this;if(b.controlsTimer!==null){clearTimeout(b.controlsTimer);delete b.controlsTimer;b.controlsTimer=null}},controlsEnabled:true,disableControls:function(){var b=this;b.killControlsTimer();b.hideControls(false);this.controlsEnabled=false},enableControls:function(){var b=this;b.showControls(false);b.controlsEnabled=true},meReady:function(c,f){var k=this,j=mejs.MediaFeatures,g=f.getAttribute("autoplay"),d=!(typeof g=="undefined"||g===null||g==="false"),b,l;if(k.created){return}else{k.created=true}k.media=c;k.domNode=f;if(!(j.isAndroid&&k.options.AndroidUseNativeControls)&&!(j.isiPad&&k.options.iPadUseNativeControls)&&!(j.isiPhone&&k.options.iPhoneUseNativeControls)){k.buildposter(k,k.controls,k.layers,k.media);k.buildkeyboard(k,k.controls,k.layers,k.media);k.buildoverlays(k,k.controls,k.layers,k.media);k.findTracks();for(b in k.options.features){l=k.options.features[b];if(k["build"+l]){try{k["build"+l](k,k.controls,k.layers,k.media)}catch(h){}}}k.container.trigger("controlsready");k.setPlayerSize(k.width,k.height);k.setControlsSize();if(k.isVideo){if(mejs.MediaFeatures.hasTouch){k.$media.bind("touchstart",function(){if(k.controlsAreVisible){k.hideControls(false)}else{if(k.controlsEnabled){k.showControls(false)}}})}else{k.clickToPlayPauseCallback=function(){if(k.options.clickToPlayPause){if(k.media.paused){k.play()}else{k.pause()}}};k.media.addEventListener("click",k.clickToPlayPauseCallback,false);k.container.bind("mouseenter mouseover",function(){if(k.controlsEnabled){if(!k.options.alwaysShowControls){k.killControlsTimer("enter");k.showControls();k.startControlsTimer(2500)}}}).bind("mousemove",function(){if(k.controlsEnabled){if(!k.controlsAreVisible){k.showControls()}if(!k.options.alwaysShowControls){k.startControlsTimer(2500)}}}).bind("mouseleave",function(){if(k.controlsEnabled){if(!k.media.paused&&!k.options.alwaysShowControls){k.startControlsTimer(1000)}}})}if(k.options.hideVideoControlsOnLoad){k.hideControls(false)}if(d&&!k.options.alwaysShowControls){k.hideControls()}if(k.options.enableAutosize){k.media.addEventListener("loadedmetadata",function(m){if(k.options.videoHeight<=0&&k.domNode.getAttribute("height")===null&&!isNaN(m.target.videoHeight)){k.setPlayerSize(m.target.videoWidth,m.target.videoHeight);k.setControlsSize();k.media.setVideoSize(m.target.videoWidth,m.target.videoHeight)}},false)}}c.addEventListener("play",function(){var e;for(e in mejs.players){var m=mejs.players[e];if(m.id!=k.id&&k.options.pauseOtherPlayers&&!m.paused&&!m.ended){m.pause()}m.hasFocus=false}k.hasFocus=true},false);k.media.addEventListener("ended",function(m){if(k.options.autoRewind){try{k.media.setCurrentTime(0)}catch(n){}}k.media.pause();if(k.setProgressRail){k.setProgressRail()}if(k.setCurrentRail){k.setCurrentRail()}if(k.options.loop){k.play()}else{if(!k.options.alwaysShowControls&&k.controlsEnabled){k.showControls()}}},false);k.media.addEventListener("loadedmetadata",function(m){if(k.updateDuration){k.updateDuration()}if(k.updateCurrent){k.updateCurrent()}if(!k.isFullScreen){k.setPlayerSize(k.width,k.height);k.setControlsSize()}},false);setTimeout(function(){k.setPlayerSize(k.width,k.height);k.setControlsSize()},50);k.globalBind("resize",function(){if(!(k.isFullScreen||(mejs.MediaFeatures.hasTrueNativeFullScreen&&document.webkitIsFullScreen))){k.setPlayerSize(k.width,k.height)}k.setControlsSize()});if(k.media.pluginType=="youtube"){k.container.find(".mejs-overlay-play").hide()}}if(d&&c.pluginType=="native"){k.play()}if(k.options.success){if(typeof k.options.success=="string"){window[k.options.success](k.media,k.domNode,k)}else{k.options.success(k.media,k.domNode,k)}}},handleError:function(c){var b=this;b.controls.hide();if(b.options.error){b.options.error(c)}},setPlayerSize:function(c,j){var k=this;if(typeof c!="undefined"){k.width=c}if(typeof j!="undefined"){k.height=j}if(k.height.toString().indexOf("%")>0||k.$node.css("max-width")==="100%"||parseInt(k.$node.css("max-width").replace(/px/,""),10)/k.$node.offsetParent().width()===1||(k.$node[0].currentStyle&&k.$node[0].currentStyle.maxWidth==="100%")){var d=k.isVideo?((k.media.videoWidth&&k.media.videoWidth>0)?k.media.videoWidth:k.options.defaultVideoWidth):k.options.defaultAudioWidth,g=k.isVideo?((k.media.videoHeight&&k.media.videoHeight>0)?k.media.videoHeight:k.options.defaultVideoHeight):k.options.defaultAudioHeight,h=k.container.parent().closest(":visible").width(),b=k.isVideo||!k.options.autosizeProgress?parseInt(h*g/d,10):g;if(isNaN(b)){b=k.container.parent().closest(":visible").height()}if(k.container.parent()[0].tagName.toLowerCase()==="body"){h=a(window).width();b=a(window).height()}if(b!=0&&h!=0){k.container.width(h).height(b);k.$media.add(k.container.find(".mejs-shim")).width("100%").height("100%");if(k.isVideo){if(k.media.setVideoSize){k.media.setVideoSize(h,b)}}k.layers.children(".mejs-layer").width("100%").height("100%")}}else{k.container.width(k.width).height(k.height);k.layers.children(".mejs-layer").width(k.width).height(k.height)}var e=k.layers.find(".mejs-overlay-play"),f=e.find(".mejs-overlay-button");e.height(k.container.height()-k.controls.height());f.css("margin-top","-"+(f.height()/2-k.controls.height()/2).toString()+"px")},setControlsSize:function(){var l=this,d=0,k=0,b=l.controls.find(".mejs-time-rail"),j=l.controls.find(".mejs-time-total"),h=l.controls.find(".mejs-time-current"),f=l.controls.find(".mejs-time-loaded"),c=b.siblings(),g=c.last(),e=null;if(!l.container.is(":visible")||!b.length||!b.is(":visible")){return}if(l.options&&!l.options.autosizeProgress){k=parseInt(b.css("width"))}if(k===0||!k){c.each(function(){var m=a(this);if(m.css("position")!="absolute"&&m.is(":visible")){d+=a(this).outerWidth(true)}});k=l.controls.width()-d-(b.outerWidth(true)-b.width())}do{b.width(k);j.width(k-(j.outerWidth(true)-j.width()));if(g.css("position")!="absolute"){e=g.position();k--}}while(e!=null&&e.top>0&&k>0);if(l.setProgressRail){l.setProgressRail()}if(l.setCurrentRail){l.setCurrentRail()}},buildposter:function(e,b,g,f){var d=this,h=a('<div class="mejs-poster mejs-layer"></div>').appendTo(g),c=e.$media.attr("poster");if(e.options.poster!==""){c=e.options.poster}if(c!==""&&c!=null){d.setPoster(c)}else{h.hide()}f.addEventListener("play",function(){h.hide()},false);if(e.options.showPosterWhenEnded&&e.options.autoRewind){f.addEventListener("ended",function(){h.show()},false)}},setPoster:function(c){var d=this,e=d.container.find(".mejs-poster"),b=e.find("img");if(b.length==0){b=a('<img width="100%" height="100%" />').appendTo(e)}b.attr("src",c);e.css({"background-image":"url("+c+")"})},buildoverlays:function(f,b,h,g){var e=this;if(!f.isVideo){return}var j=a('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-loading"><span></span></div></div>').hide().appendTo(h),c=a('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-error"></div></div>').hide().appendTo(h),d=a('<div class="mejs-overlay mejs-layer mejs-overlay-play"><div class="mejs-overlay-button"></div></div>').appendTo(h).bind("click touchstart",function(){if(e.options.clickToPlayPause){if(g.paused){g.play()}}});g.addEventListener("play",function(){d.hide();j.hide();b.find(".mejs-time-buffering").hide();c.hide()},false);g.addEventListener("playing",function(){d.hide();j.hide();b.find(".mejs-time-buffering").hide();c.hide()},false);g.addEventListener("seeking",function(){j.show();b.find(".mejs-time-buffering").show()},false);g.addEventListener("seeked",function(){j.hide();b.find(".mejs-time-buffering").hide()},false);g.addEventListener("pause",function(){if(!mejs.MediaFeatures.isiPhone){d.show()}},false);g.addEventListener("waiting",function(){j.show();b.find(".mejs-time-buffering").show()},false);g.addEventListener("loadeddata",function(){j.show();b.find(".mejs-time-buffering").show()},false);g.addEventListener("canplay",function(){j.hide();b.find(".mejs-time-buffering").hide()},false);g.addEventListener("error",function(){j.hide();b.find(".mejs-time-buffering").hide();c.show();c.find("mejs-overlay-error").html("Error loading this resource")},false)},buildkeyboard:function(d,b,f,e){var c=this;c.globalBind("keydown",function(n){if(d.hasFocus&&d.options.enableKeyboard){for(var m=0,g=d.options.keyActions.length;m<g;m++){var l=d.options.keyActions[m];for(var h=0,k=l.keys.length;h<k;h++){if(n.keyCode==l.keys[h]){n.preventDefault();l.action(d,e,n.keyCode);return false}}}}return true});c.globalBind("click",function(g){d.hasFocus=a(g.target).closest(".mejs-container").length!=0})},findTracks:function(){var b=this,c=b.$media.find("track");b.tracks=[];c.each(function(e,d){d=a(d);b.tracks.push({srclang:(d.attr("srclang"))?d.attr("srclang").toLowerCase():"",src:d.attr("src"),kind:d.attr("kind"),label:d.attr("label")||"",entries:[],isLoaded:false})})},changeSkin:function(b){this.container[0].className="mejs-container "+b;this.setPlayerSize(this.width,this.height);this.setControlsSize()},play:function(){this.load();this.media.play()},pause:function(){try{this.media.pause()}catch(b){}},load:function(){if(!this.isLoaded){this.media.load()}this.isLoaded=true},setMuted:function(b){this.media.setMuted(b)},setCurrentTime:function(b){this.media.setCurrentTime(b)},getCurrentTime:function(){return this.media.currentTime},setVolume:function(b){this.media.setVolume(b)},getVolume:function(){return this.media.volume},setSrc:function(b){this.media.setSrc(b)},remove:function(){var c=this,f,b;for(f in c.options.features){b=c.options.features[f];if(c["clean"+b]){try{c["clean"+b](c)}catch(d){}}}if(!c.isDynamic){c.$media.prop("controls",true);c.$node.clone().show().insertBefore(c.container);c.$node.remove()}else{c.$node.insertBefore(c.container)}if(c.media.pluginType!=="native"){c.media.remove()}delete mejs.players[c.id];if(typeof c.container=="object"){c.container.remove()}c.globalUnbind();delete c.node.player}};(function(){var c=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/;function b(e,f){var d={d:[],w:[]};a.each((e||"").split(" "),function(h,g){var j=g+"."+f;if(j.indexOf(".")===0){d.d.push(j);d.w.push(j)}else{d[c.test(g)?"w":"d"].push(j)}});d.d=d.d.join(" ");d.w=d.w.join(" ");return d}mejs.MediaElementPlayer.prototype.globalBind=function(e,f,g){var d=this;e=b(e,d.id);if(e.d){a(document).bind(e.d,f,g)}if(e.w){a(window).bind(e.w,f,g)}};mejs.MediaElementPlayer.prototype.globalUnbind=function(e,f){var d=this;e=b(e,d.id);if(e.d){a(document).unbind(e.d,f)}if(e.w){a(window).unbind(e.w,f)}}})();if(typeof jQuery!="undefined"){jQuery.fn.mediaelementplayer=function(b){if(b===false){this.each(function(){var c=jQuery(this).data("mediaelementplayer");if(c){c.remove()}jQuery(this).removeData("mediaelementplayer")})}else{this.each(function(){jQuery(this).data("mediaelementplayer",new mejs.MediaElementPlayer(this,b))})}return this}}a(document).ready(function(){a(".mejs-player").mediaelementplayer()});window.MediaElementPlayer=mejs.MediaElementPlayer})(mejs.$);(function(a){a.extend(mejs.MepDefaults,{playpauseText:mejs.i18n.t("Play/Pause")});a.extend(MediaElementPlayer.prototype,{buildplaypause:function(d,b,g,f){var c=this,e=a('<div class="mejs-button mejs-playpause-button mejs-play" ><button type="button" aria-controls="'+c.id+'" title="'+c.options.playpauseText+'" aria-label="'+c.options.playpauseText+'"></button></div>').appendTo(b).click(function(h){h.preventDefault();if(f.paused){f.play()}else{f.pause()}return false});f.addEventListener("play",function(){e.removeClass("mejs-play").addClass("mejs-pause")},false);f.addEventListener("playing",function(){e.removeClass("mejs-play").addClass("mejs-pause")},false);f.addEventListener("pause",function(){e.removeClass("mejs-pause").addClass("mejs-play")},false);f.addEventListener("paused",function(){e.removeClass("mejs-pause").addClass("mejs-play")},false)}})})(mejs.$);(function(a){a.extend(mejs.MepDefaults,{stopText:"Stop"});a.extend(MediaElementPlayer.prototype,{buildstop:function(e,b,g,f){var d=this,c=a('<div class="mejs-button mejs-stop-button mejs-stop"><button type="button" aria-controls="'+d.id+'" title="'+d.options.stopText+'" aria-label="'+d.options.stopText+'"></button></div>').appendTo(b).click(function(){if(!f.paused){f.pause()}if(f.currentTime>0){f.setCurrentTime(0);f.pause();b.find(".mejs-time-current").width("0px");b.find(".mejs-time-handle").css("left","0px");b.find(".mejs-time-float-current").html(mejs.Utility.secondsToTimeCode(0));b.find(".mejs-currenttime").html(mejs.Utility.secondsToTimeCode(0));g.find(".mejs-poster").show()}})}})})(mejs.$);(function(a){a.extend(MediaElementPlayer.prototype,{buildprogress:function(n,o,f,c){a('<div class="mejs-time-rail"><span class="mejs-time-total"><span class="mejs-time-buffering"></span><span class="mejs-time-loaded"></span><span class="mejs-time-current"></span><span class="mejs-time-handle"></span><span class="mejs-time-float"><span class="mejs-time-float-current">00:00</span><span class="mejs-time-float-corner"></span></span></span></div>').appendTo(o);o.find(".mejs-time-buffering").hide();var p=this,l=o.find(".mejs-time-total"),g=o.find(".mejs-time-loaded"),k=o.find(".mejs-time-current"),j=o.find(".mejs-time-handle"),m=o.find(".mejs-time-float"),b=o.find(".mejs-time-float-current"),e=function(u){if(u.originalEvent.changedTouches){var q=u.originalEvent.changedTouches[0].pageX}else{var q=u.pageX}var v=l.offset(),s=l.outerWidth(true),r=0,t=0,w=0;if(c.duration){if(q<v.left){q=v.left}else{if(q>s+v.left){q=s+v.left}}w=q-v.left;r=(w/s);t=(r<=0.02)?0:r*c.duration;if(h&&t!==c.currentTime){c.setCurrentTime(t)}if(!mejs.MediaFeatures.hasTouch){m.css("left",w);b.html(mejs.Utility.secondsToTimeCode(t));m.show()}}},h=false,d=false;l.bind("mousedown touchstart",function(q){if(q.which===1||q.which===0){h=true;e(q);p.globalBind("mousemove.dur touchmove.dur",function(r){e(r)});p.globalBind("mouseup.dur touchend.dur",function(r){h=false;m.hide();p.globalUnbind(".dur")});return false}}).bind("mouseenter",function(q){d=true;p.globalBind("mousemove.dur",function(r){e(r)});if(!mejs.MediaFeatures.hasTouch){m.show()}}).bind("mouseleave",function(q){d=false;if(!h){p.globalUnbind(".dur");m.hide()}});c.addEventListener("progress",function(q){n.setProgressRail(q);n.setCurrentRail(q)},false);c.addEventListener("timeupdate",function(q){n.setProgressRail(q);n.setCurrentRail(q)},false);p.loaded=g;p.total=l;p.current=k;p.handle=j},setProgressRail:function(f){var b=this,d=(f!=undefined)?f.target:b.media,c=null;if(d&&d.buffered&&d.buffered.length>0&&d.buffered.end&&d.duration){c=d.buffered.end(0)/d.duration}else{if(d&&d.bytesTotal!=undefined&&d.bytesTotal>0&&d.bufferedBytes!=undefined){c=d.bufferedBytes/d.bytesTotal}else{if(f&&f.lengthComputable&&f.total!=0){c=f.loaded/f.total}}}if(c!==null){c=Math.min(1,Math.max(0,c));if(b.loaded&&b.total){b.loaded.width(b.total.width()*c)}}},setCurrentRail:function(){var b=this;if(b.media.currentTime!=undefined&&b.media.duration){if(b.total&&b.handle){var d=Math.round(b.total.width()*b.media.currentTime/b.media.duration),c=d-Math.round(b.handle.outerWidth(true)/2);b.current.width(d);b.handle.css("left",c)}}}})})(mejs.$);(function(a){a.extend(mejs.MepDefaults,{duration:-1,timeAndDurationSeparator:"<span> | </span>"});a.extend(MediaElementPlayer.prototype,{buildcurrent:function(d,b,f,e){var c=this;a('<div class="mejs-time"><span class="mejs-currenttime">'+(d.options.alwaysShowHours?"00:":"")+(d.options.showTimecodeFrameCount?"00:00:00":"00:00")+"</span></div>").appendTo(b);c.currenttime=c.controls.find(".mejs-currenttime");e.addEventListener("timeupdate",function(){d.updateCurrent()},false)},buildduration:function(d,b,f,e){var c=this;if(b.children().last().find(".mejs-currenttime").length>0){a(c.options.timeAndDurationSeparator+'<span class="mejs-duration">'+(c.options.duration>0?mejs.Utility.secondsToTimeCode(c.options.duration,c.options.alwaysShowHours||c.media.duration>3600,c.options.showTimecodeFrameCount,c.options.framesPerSecond||25):((d.options.alwaysShowHours?"00:":"")+(d.options.showTimecodeFrameCount?"00:00:00":"00:00")))+"</span>").appendTo(b.find(".mejs-time"))}else{b.find(".mejs-currenttime").parent().addClass("mejs-currenttime-container");a('<div class="mejs-time mejs-duration-container"><span class="mejs-duration">'+(c.options.duration>0?mejs.Utility.secondsToTimeCode(c.options.duration,c.options.alwaysShowHours||c.media.duration>3600,c.options.showTimecodeFrameCount,c.options.framesPerSecond||25):((d.options.alwaysShowHours?"00:":"")+(d.options.showTimecodeFrameCount?"00:00:00":"00:00")))+"</span></div>").appendTo(b)}c.durationD=c.controls.find(".mejs-duration");e.addEventListener("timeupdate",function(){d.updateDuration()},false)},updateCurrent:function(){var b=this;if(b.currenttime){b.currenttime.html(mejs.Utility.secondsToTimeCode(b.media.currentTime,b.options.alwaysShowHours||b.media.duration>3600,b.options.showTimecodeFrameCount,b.options.framesPerSecond||25))}},updateDuration:function(){var b=this;b.container.toggleClass("mejs-long-video",b.media.duration>3600);if(b.durationD&&(b.options.duration>0||b.media.duration)){b.durationD.html(mejs.Utility.secondsToTimeCode(b.options.duration>0?b.options.duration:b.media.duration,b.options.alwaysShowHours,b.options.showTimecodeFrameCount,b.options.framesPerSecond||25))}}})})(mejs.$);(function(a){a.extend(mejs.MepDefaults,{muteText:mejs.i18n.t("Mute Toggle"),hideVolumeOnTouchDevices:true,audioVolume:"horizontal",videoVolume:"vertical"});a.extend(MediaElementPlayer.prototype,{buildvolume:function(n,o,j,d){if((mejs.MediaFeatures.isAndroid||mejs.MediaFeatures.isiOS)&&this.options.hideVolumeOnTouchDevices){return}var p=this,l=(p.isVideo)?p.options.videoVolume:p.options.audioVolume,f=(l=="horizontal")?a('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+p.id+'" title="'+p.options.muteText+'" aria-label="'+p.options.muteText+'"></button></div><div class="mejs-horizontal-volume-slider"><div class="mejs-horizontal-volume-total"></div><div class="mejs-horizontal-volume-current"></div><div class="mejs-horizontal-volume-handle"></div></div>').appendTo(o):a('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+p.id+'" title="'+p.options.muteText+'" aria-label="'+p.options.muteText+'"></button><div class="mejs-volume-slider"><div class="mejs-volume-total"></div><div class="mejs-volume-current"></div><div class="mejs-volume-handle"></div></div></div>').appendTo(o),q=p.container.find(".mejs-volume-slider, .mejs-horizontal-volume-slider"),b=p.container.find(".mejs-volume-total, .mejs-horizontal-volume-total"),h=p.container.find(".mejs-volume-current, .mejs-horizontal-volume-current"),g=p.container.find(".mejs-volume-handle, .mejs-horizontal-volume-handle"),m=function(w,x){if(!q.is(":visible")&&typeof x=="undefined"){q.show();m(w,true);q.hide();return}w=Math.max(0,w);w=Math.min(w,1);if(w==0){f.removeClass("mejs-mute").addClass("mejs-unmute")}else{f.removeClass("mejs-unmute").addClass("mejs-mute")}if(l=="vertical"){var u=b.height(),t=b.position(),s=u-(u*w);g.css("top",Math.round(t.top+s-(g.height()/2)));h.height(u-s);h.css("top",t.top+s)}else{var r=b.width(),t=b.position(),v=r*w;g.css("left",Math.round(t.left+v-(g.width()/2)));h.width(Math.round(v))}},c=function(w){var u=null,s=b.offset();if(l=="vertical"){var t=b.height(),r=parseInt(b.css("top").replace(/px/,""),10),v=w.pageY-s.top;u=(t-v)/t;if(s.top==0||s.left==0){return}}else{var y=b.width(),x=w.pageX-s.left;u=x/y}u=Math.max(0,u);u=Math.min(u,1);m(u);if(u==0){d.setMuted(true)}else{d.setMuted(false)}d.setVolume(u)},k=false,e=false;f.hover(function(){q.show();e=true},function(){e=false;if(!k&&l=="vertical"){q.hide()}});q.bind("mouseover",function(){e=true}).bind("mousedown",function(r){c(r);p.globalBind("mousemove.vol",function(s){c(s)});p.globalBind("mouseup.vol",function(){k=false;p.globalUnbind(".vol");if(!e&&l=="vertical"){q.hide()}});k=true;return false});f.find("button").click(function(){d.setMuted(!d.muted)});d.addEventListener("volumechange",function(r){if(!k){if(d.muted){m(0);f.removeClass("mejs-mute").addClass("mejs-unmute")}else{m(d.volume);f.removeClass("mejs-unmute").addClass("mejs-mute")}}},false);if(p.container.is(":visible")){m(n.options.startVolume);if(n.options.startVolume===0){d.setMuted(true)}if(d.pluginType==="native"){d.setVolume(n.options.startVolume)}}}})})(mejs.$);(function(a){a.extend(mejs.MepDefaults,{usePluginFullScreen:true,newWindowCallback:function(){return""},fullscreenText:mejs.i18n.t("Fullscreen")});a.extend(MediaElementPlayer.prototype,{isFullScreen:false,isNativeFullScreen:false,isInIframe:false,buildfullscreen:function(p,o,g,f){if(!p.isVideo){return}p.isInIframe=(window.location!=window.parent.location);if(mejs.MediaFeatures.hasTrueNativeFullScreen){var e=function(t){if(p.isFullScreen){if(mejs.MediaFeatures.isFullScreen()){p.isNativeFullScreen=true;p.setControlsSize()}else{p.isNativeFullScreen=false;p.exitFullScreen()}}};if(mejs.MediaFeatures.hasMozNativeFullScreen){p.globalBind(mejs.MediaFeatures.fullScreenEventName,e)}else{p.container.bind(mejs.MediaFeatures.fullScreenEventName,e)}}var n=this,d=0,c=0,m=p.container,b=a('<div class="mejs-button mejs-fullscreen-button"><button type="button" aria-controls="'+n.id+'" title="'+n.options.fullscreenText+'" aria-label="'+n.options.fullscreenText+'"></button></div>').appendTo(o);if(n.media.pluginType==="native"||(!n.options.usePluginFullScreen&&!mejs.MediaFeatures.isFirefox)){b.click(function(){var t=(mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen())||p.isFullScreen;if(t){p.exitFullScreen()}else{p.enterFullScreen()}})}else{var l=null,h=(function(){var w=document.createElement("x"),x=document.documentElement,y=window.getComputedStyle,t;if(!("pointerEvents" in w.style)){return false}w.style.pointerEvents="auto";w.style.pointerEvents="x";x.appendChild(w);t=y&&y(w,"").pointerEvents==="auto";x.removeChild(w);return !!t})();if(h&&!mejs.MediaFeatures.isOpera){var k=false,r=function(){if(k){for(var t in j){j[t].hide()}b.css("pointer-events","");n.controls.css("pointer-events","");n.media.removeEventListener("click",n.clickToPlayPauseCallback);k=false}},j={},q=["top","left","right","bottom"],s,u,v=function(){var w=b.offset().left-n.container.offset().left,A=b.offset().top-n.container.offset().top,t=b.outerWidth(true),z=b.outerHeight(true),y=n.container.width(),x=n.container.height();for(s in j){j[s].css({position:"absolute",top:0,left:0})}j.top.width(y).height(A);j.left.width(w).height(z).css({top:A});j.right.width(y-w-t).height(z).css({top:A,left:w+t});j.bottom.width(y).height(x-z-A).css({top:A+z})};n.globalBind("resize",function(){v()});for(s=0,u=q.length;s<u;s++){j[q[s]]=a('<div class="mejs-fullscreen-hover" />').appendTo(n.container).mouseover(r).hide()}b.on("mouseover",function(){if(!n.isFullScreen){var t=b.offset(),w=p.container.offset();f.positionFullscreenButton(t.left-w.left,t.top-w.top,false);b.css("pointer-events","none");n.controls.css("pointer-events","none");n.media.addEventListener("click",n.clickToPlayPauseCallback);for(s in j){j[s].show()}v();k=true}});f.addEventListener("fullscreenchange",function(t){n.isFullScreen=!n.isFullScreen;if(n.isFullScreen){n.media.removeEventListener("click",n.clickToPlayPauseCallback)}else{n.media.addEventListener("click",n.clickToPlayPauseCallback)}r()});n.globalBind("mousemove",function(w){if(k){var t=b.offset();if(w.pageY<t.top||w.pageY>t.top+b.outerHeight(true)||w.pageX<t.left||w.pageX>t.left+b.outerWidth(true)){b.css("pointer-events","");n.controls.css("pointer-events","");k=false}}})}else{b.on("mouseover",function(){if(l!==null){clearTimeout(l);delete l}var t=b.offset(),w=p.container.offset();f.positionFullscreenButton(t.left-w.left,t.top-w.top,true)}).on("mouseout",function(){if(l!==null){clearTimeout(l);delete l}l=setTimeout(function(){f.hideFullscreenButton()},1500)})}}p.fullscreenBtn=b;n.globalBind("keydown",function(t){if(((mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen())||n.isFullScreen)&&t.keyCode==27){p.exitFullScreen()}})},cleanfullscreen:function(b){b.exitFullScreen()},containerSizeTimeout:null,enterFullScreen:function(){var c=this;if(c.media.pluginType!=="native"&&(mejs.MediaFeatures.isFirefox||c.options.usePluginFullScreen)){return}a(document.documentElement).addClass("mejs-fullscreen");normalHeight=c.container.height();normalWidth=c.container.width();if(c.media.pluginType==="native"){if(mejs.MediaFeatures.hasTrueNativeFullScreen){mejs.MediaFeatures.requestFullScreen(c.container[0]);if(c.isInIframe){setTimeout(function d(){if(c.isNativeFullScreen){var j=window.devicePixelRatio||1;var k=0.002;var f=j*a(window).width();var h=screen.width;var e=Math.abs(h-f);var g=h*k;if(e>g){c.exitFullScreen()}else{setTimeout(d,500)}}},500)}}else{if(mejs.MediaFeatures.hasSemiNativeFullScreen){c.media.webkitEnterFullscreen();return}}}if(c.isInIframe){var b=c.options.newWindowCallback(this);if(b!==""){if(!mejs.MediaFeatures.hasTrueNativeFullScreen){c.pause();window.open(b,c.id,"top=0,left=0,width="+screen.availWidth+",height="+screen.availHeight+",resizable=yes,scrollbars=no,status=no,toolbar=no");return}else{setTimeout(function(){if(!c.isNativeFullScreen){c.pause();window.open(b,c.id,"top=0,left=0,width="+screen.availWidth+",height="+screen.availHeight+",resizable=yes,scrollbars=no,status=no,toolbar=no")}},250)}}}c.container.addClass("mejs-container-fullscreen").width("100%").height("100%");c.containerSizeTimeout=setTimeout(function(){c.container.css({width:"100%",height:"100%"});c.setControlsSize()},500);if(c.media.pluginType==="native"){c.$media.width("100%").height("100%")}else{c.container.find(".mejs-shim").width("100%").height("100%");c.media.setVideoSize(a(window).width(),a(window).height())}c.layers.children("div").width("100%").height("100%");if(c.fullscreenBtn){c.fullscreenBtn.removeClass("mejs-fullscreen").addClass("mejs-unfullscreen")}c.setControlsSize();c.isFullScreen=true},exitFullScreen:function(){var b=this;clearTimeout(b.containerSizeTimeout);if(b.media.pluginType!=="native"&&mejs.MediaFeatures.isFirefox){b.media.setFullscreen(false);return}if(mejs.MediaFeatures.hasTrueNativeFullScreen&&(mejs.MediaFeatures.isFullScreen()||b.isFullScreen)){mejs.MediaFeatures.cancelFullScreen()}a(document.documentElement).removeClass("mejs-fullscreen");b.container.removeClass("mejs-container-fullscreen").width(normalWidth).height(normalHeight);if(b.media.pluginType==="native"){b.$media.width(normalWidth).height(normalHeight)}else{b.container.find(".mejs-shim").width(normalWidth).height(normalHeight);b.media.setVideoSize(normalWidth,normalHeight)}b.layers.children("div").width(normalWidth).height(normalHeight);b.fullscreenBtn.removeClass("mejs-unfullscreen").addClass("mejs-fullscreen");b.setControlsSize();b.isFullScreen=false}})})(mejs.$);(function(a){a.extend(mejs.MepDefaults,{startLanguage:"",tracksText:mejs.i18n.t("Captions/Subtitles"),hideCaptionsButtonWhenEmpty:true,toggleCaptionsButtonWhenOnlyOne:false,slidesSelector:""});a.extend(MediaElementPlayer.prototype,{hasChapters:false,buildtracks:function(f,b,j,h){if(f.tracks.length==0){return}var e=this,d,c="";if(e.domNode.textTracks){for(var d=e.domNode.textTracks.length-1;d>=0;d--){e.domNode.textTracks[d].mode="hidden"}}f.chapters=a('<div class="mejs-chapters mejs-layer"></div>').prependTo(j).hide();f.captions=a('<div class="mejs-captions-layer mejs-layer"><div class="mejs-captions-position mejs-captions-position-hover"><span class="mejs-captions-text"></span></div></div>').prependTo(j).hide();f.captionsText=f.captions.find(".mejs-captions-text");f.captionsButton=a('<div class="mejs-button mejs-captions-button"><button type="button" aria-controls="'+e.id+'" title="'+e.options.tracksText+'" aria-label="'+e.options.tracksText+'"></button><div class="mejs-captions-selector"><ul><li><input type="radio" name="'+f.id+'_captions" id="'+f.id+'_captions_none" value="none" checked="checked" /><label for="'+f.id+'_captions_none">'+mejs.i18n.t("None")+"</label></li></ul></div></div>").appendTo(b);var g=0;for(d=0;d<f.tracks.length;d++){if(f.tracks[d].kind=="subtitles"){g++}}if(e.options.toggleCaptionsButtonWhenOnlyOne&&g==1){f.captionsButton.on("click",function(){if(f.selectedTrack==null){var k=f.tracks[0].srclang}else{var k="none"}f.setTrack(k)})}else{f.captionsButton.hover(function(){a(this).find(".mejs-captions-selector").css("visibility","visible")},function(){a(this).find(".mejs-captions-selector").css("visibility","hidden")}).on("click","input[type=radio]",function(){lang=this.value;f.setTrack(lang)})}if(!f.options.alwaysShowControls){f.container.bind("controlsshown",function(){f.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover")}).bind("controlshidden",function(){if(!h.paused){f.container.find(".mejs-captions-position").removeClass("mejs-captions-position-hover")}})}else{f.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover")}f.trackToLoad=-1;f.selectedTrack=null;f.isLoadingTrack=false;for(d=0;d<f.tracks.length;d++){if(f.tracks[d].kind=="subtitles"){f.addTrackButton(f.tracks[d].srclang,f.tracks[d].label)}}f.loadNextTrack();h.addEventListener("timeupdate",function(k){f.displayCaptions()},false);if(f.options.slidesSelector!=""){f.slidesContainer=a(f.options.slidesSelector);h.addEventListener("timeupdate",function(k){f.displaySlides()},false)}h.addEventListener("loadedmetadata",function(k){f.displayChapters()},false);f.container.hover(function(){if(f.hasChapters){f.chapters.css("visibility","visible");f.chapters.fadeIn(200).height(f.chapters.find(".mejs-chapter").outerHeight())}},function(){if(f.hasChapters&&!h.paused){f.chapters.fadeOut(200,function(){a(this).css("visibility","hidden");a(this).css("display","block")})}});if(f.node.getAttribute("autoplay")!==null){f.chapters.css("visibility","hidden")}},setTrack:function(d){var c=this,b;if(d=="none"){c.selectedTrack=null;c.captionsButton.removeClass("mejs-captions-enabled")}else{for(b=0;b<c.tracks.length;b++){if(c.tracks[b].srclang==d){if(c.selectedTrack==null){c.captionsButton.addClass("mejs-captions-enabled")}c.selectedTrack=c.tracks[b];c.captions.attr("lang",c.selectedTrack.srclang);c.displayCaptions();break}}}},loadNextTrack:function(){var b=this;b.trackToLoad++;if(b.trackToLoad<b.tracks.length){b.isLoadingTrack=true;b.loadTrack(b.trackToLoad)}else{b.isLoadingTrack=false;b.checkForTracks()}},loadTrack:function(c){var d=this,b=d.tracks[c],e=function(){b.isLoaded=true;d.enableTrackButton(b.srclang,b.label);d.loadNextTrack()};a.ajax({url:b.src,dataType:"text",success:function(f){if(typeof f=="string"&&(/<tt\s+xml/ig).exec(f)){b.entries=mejs.TrackFormatParser.dfxp.parse(f)}else{b.entries=mejs.TrackFormatParser.webvvt.parse(f)}e();if(b.kind=="chapters"){d.media.addEventListener("play",function(g){if(d.media.duration>0){d.displayChapters(b)}},false)}if(b.kind=="slides"){d.setupSlides(b)}},error:function(){d.loadNextTrack()}})},enableTrackButton:function(d,b){var c=this;if(b===""){b=mejs.language.codes[d]||d}c.captionsButton.find("input[value="+d+"]").prop("disabled",false).siblings("label").html(b);if(c.options.startLanguage==d){a("#"+c.id+"_captions_"+d).click()}c.adjustLanguageBox()},addTrackButton:function(d,b){var c=this;if(b===""){b=mejs.language.codes[d]||d}c.captionsButton.find("ul").append(a('<li><input type="radio" name="'+c.id+'_captions" id="'+c.id+"_captions_"+d+'" value="'+d+'" disabled="disabled" /><label for="'+c.id+"_captions_"+d+'">'+b+" (loading)</label></li>"));c.adjustLanguageBox();c.container.find(".mejs-captions-translations option[value="+d+"]").remove()},adjustLanguageBox:function(){var b=this;b.captionsButton.find(".mejs-captions-selector").height(b.captionsButton.find(".mejs-captions-selector ul").outerHeight(true)+b.captionsButton.find(".mejs-captions-translations").outerHeight(true))},checkForTracks:function(){var b=this,c=false;if(b.options.hideCaptionsButtonWhenEmpty){for(i=0;i<b.tracks.length;i++){if(b.tracks[i].kind=="subtitles"){c=true;break}}if(!c){b.captionsButton.hide();b.setControlsSize()}}},displayCaptions:function(){if(typeof this.tracks=="undefined"){return}var d=this,c,b=d.selectedTrack;if(b!=null&&b.isLoaded){for(c=0;c<b.entries.times.length;c++){if(d.media.currentTime>=b.entries.times[c].start&&d.media.currentTime<=b.entries.times[c].stop){d.captionsText.html(b.entries.text[c]);d.captions.show().height(0);return}}d.captions.hide()}else{d.captions.hide()}},setupSlides:function(b){var c=this;c.slides=b;c.slides.entries.imgs=[c.slides.entries.text.length];c.showSlide(0)},showSlide:function(d){if(typeof this.tracks=="undefined"||typeof this.slidesContainer=="undefined"){return}var e=this,c=e.slides.entries.text[d],b=e.slides.entries.imgs[d];if(typeof b=="undefined"||typeof b.fadeIn=="undefined"){e.slides.entries.imgs[d]=b=a('<img src="'+c+'">').on("load",function(){b.appendTo(e.slidesContainer).hide().fadeIn().siblings(":visible").fadeOut()})}else{if(!b.is(":visible")&&!b.is(":animated")){b.fadeIn().siblings(":visible").fadeOut()}}},displaySlides:function(){if(typeof this.slides=="undefined"){return}var c=this,d=c.slides,b;for(b=0;b<d.entries.times.length;b++){if(c.media.currentTime>=d.entries.times[b].start&&c.media.currentTime<=d.entries.times[b].stop){c.showSlide(b);return}}},displayChapters:function(){var c=this,b;for(b=0;b<c.tracks.length;b++){if(c.tracks[b].kind=="chapters"&&c.tracks[b].isLoaded){c.drawChapters(c.tracks[b]);c.hasChapters=true;break}}},drawChapters:function(f){var c=this,b,d,e=0,g=0;c.chapters.empty();for(b=0;b<f.entries.times.length;b++){d=f.entries.times[b].stop-f.entries.times[b].start;e=Math.floor(d/c.media.duration*100);if(e+g>100||b==f.entries.times.length-1&&e+g<100){e=100-g}c.chapters.append(a('<div class="mejs-chapter" rel="'+f.entries.times[b].start+'" style="left: '+g.toString()+"%;width: "+e.toString()+'%;"><div class="mejs-chapter-block'+((b==f.entries.times.length-1)?" mejs-chapter-block-last":"")+'"><span class="ch-title">'+f.entries.text[b]+'</span><span class="ch-time">'+mejs.Utility.secondsToTimeCode(f.entries.times[b].start)+"&ndash;"+mejs.Utility.secondsToTimeCode(f.entries.times[b].stop)+"</span></div></div>"));g+=e}c.chapters.find("div.mejs-chapter").click(function(){c.media.setCurrentTime(parseFloat(a(this).attr("rel")));if(c.media.paused){c.media.play()}});c.chapters.show()}});mejs.language={codes:{af:"Afrikaans",sq:"Albanian",ar:"Arabic",be:"Belarusian",bg:"Bulgarian",ca:"Catalan",zh:"Chinese","zh-cn":"Chinese Simplified","zh-tw":"Chinese Traditional",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",tl:"Filipino",fi:"Finnish",fr:"French",gl:"Galician",de:"German",el:"Greek",ht:"Haitian Creole",iw:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese",ko:"Korean",lv:"Latvian",lt:"Lithuanian",mk:"Macedonian",ms:"Malay",mt:"Maltese",no:"Norwegian",fa:"Persian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sr:"Serbian",sk:"Slovak",sl:"Slovenian",es:"Spanish",sw:"Swahili",sv:"Swedish",tl:"Tagalog",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",cy:"Welsh",yi:"Yiddish"}};mejs.TrackFormatParser={webvvt:{pattern_identifier:/^([a-zA-z]+-)?[0-9]+$/,pattern_timecode:/^([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(g){var e=0,d=mejs.TrackFormatParser.split2(g,/\r?\n/),c={text:[],times:[]},b,f;for(;e<d.length;e++){if(this.pattern_identifier.exec(d[e])){e++;b=this.pattern_timecode.exec(d[e]);if(b&&e<d.length){e++;f=d[e];e++;while(d[e]!==""&&e<d.length){f=f+"\n"+d[e];e++}f=a.trim(f).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,"<a href='$1' target='_blank'>$1</a>");c.text.push(f);c.times.push({start:(mejs.Utility.convertSMPTEtoSeconds(b[1])==0)?0.2:mejs.Utility.convertSMPTEtoSeconds(b[1]),stop:mejs.Utility.convertSMPTEtoSeconds(b[3]),settings:b[5]})}}}return c}},dfxp:{parse:function(l){l=a(l).filter("tt");var j=0,c=l.children("div").eq(0),p=c.find("p"),h=l.find("#"+c.attr("style")),o,d,f,n,k={text:[],times:[]};if(h.length){var g=h.removeAttr("id").get(0).attributes;if(g.length){o={};for(j=0;j<g.length;j++){o[g[j].name.split(":")[1]]=g[j].value}}}for(j=0;j<p.length;j++){var b;var m={start:null,stop:null,style:null};if(p.eq(j).attr("begin")){m.start=mejs.Utility.convertSMPTEtoSeconds(p.eq(j).attr("begin"))}if(!m.start&&p.eq(j-1).attr("end")){m.start=mejs.Utility.convertSMPTEtoSeconds(p.eq(j-1).attr("end"))}if(p.eq(j).attr("end")){m.stop=mejs.Utility.convertSMPTEtoSeconds(p.eq(j).attr("end"))}if(!m.stop&&p.eq(j+1).attr("begin")){m.stop=mejs.Utility.convertSMPTEtoSeconds(p.eq(j+1).attr("begin"))}if(o){b="";for(var e in o){b+=e+":"+o[e]+";"}}if(b){m.style=b}if(m.start==0){m.start=0.2}k.times.push(m);n=a.trim(p.eq(j).html()).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,"<a href='$1' target='_blank'>$1</a>");k.text.push(n);if(k.times.start==0){k.times.start=2}}return k}},split2:function(c,b){return c.split(b)}};if("x\n\ny".split(/\n/gi).length!=3){mejs.TrackFormatParser.split2=function(f,d){var e=[],b="",c;for(c=0;c<f.length;c++){b+=f.substring(c,c+1);if(d.test(b)){e.push(b.replace(d,""));b=""}}e.push(b);return e}}})(mejs.$);(function(a){a.extend(mejs.MepDefaults,{contextMenuItems:[{render:function(b){if(typeof b.enterFullScreen=="undefined"){return null}if(b.isFullScreen){return mejs.i18n.t("Turn off Fullscreen")}else{return mejs.i18n.t("Go Fullscreen")}},click:function(b){if(b.isFullScreen){b.exitFullScreen()}else{b.enterFullScreen()}}},{render:function(b){if(b.media.muted){return mejs.i18n.t("Unmute")}else{return mejs.i18n.t("Mute")}},click:function(b){if(b.media.muted){b.setMuted(false)}else{b.setMuted(true)}}},{isSeparator:true},{render:function(b){return mejs.i18n.t("Download Video")},click:function(b){window.location.href=b.media.currentSrc}}]});a.extend(MediaElementPlayer.prototype,{buildcontextmenu:function(c,b,e,d){c.contextMenu=a('<div class="mejs-contextmenu"></div>').appendTo(a("body")).hide();c.container.bind("contextmenu",function(f){if(c.isContextMenuEnabled){f.preventDefault();c.renderContextMenu(f.clientX-1,f.clientY-1);return false}});c.container.bind("click",function(){c.contextMenu.hide()});c.contextMenu.bind("mouseleave",function(){c.startContextMenuTimer()})},cleancontextmenu:function(b){b.contextMenu.remove()},isContextMenuEnabled:true,enableContextMenu:function(){this.isContextMenuEnabled=true},disableContextMenu:function(){this.isContextMenuEnabled=false},contextMenuTimeout:null,startContextMenuTimer:function(){var b=this;b.killContextMenuTimer();b.contextMenuTimer=setTimeout(function(){b.hideContextMenu();b.killContextMenuTimer()},750)},killContextMenuTimer:function(){var b=this.contextMenuTimer;if(b!=null){clearTimeout(b);delete b;b=null}},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(b,j){var g=this,f="",d=g.options.contextMenuItems;for(var e=0,c=d.length;e<c;e++){if(d[e].isSeparator){f+='<div class="mejs-contextmenu-separator"></div>'}else{var h=d[e].render(g);if(h!=null){f+='<div class="mejs-contextmenu-item" data-itemindex="'+e+'" id="element-'+(Math.random()*1000000)+'">'+h+"</div>"}}}g.contextMenu.empty().append(a(f)).css({top:j,left:b}).show();g.contextMenu.find(".mejs-contextmenu-item").each(function(){var k=a(this),l=parseInt(k.data("itemindex"),10),m=g.options.contextMenuItems[l];if(typeof m.show!="undefined"){m.show(k,g)}k.click(function(){if(typeof m.click!="undefined"){m.click(g)}g.contextMenu.hide()})});setTimeout(function(){g.killControlsTimer("rev3")},100)}})})(mejs.$);(function(a){a.extend(mejs.MepDefaults,{postrollCloseText:mejs.i18n.t("Close")});a.extend(MediaElementPlayer.prototype,{buildpostroll:function(e,c,g,f){var d=this,b=d.container.find('link[rel="postroll"]').attr("href");if(typeof b!=="undefined"){e.postroll=a('<div class="mejs-postroll-layer mejs-layer"><a class="mejs-postroll-close" onclick="$(this).parent().hide();return false;">'+d.options.postrollCloseText+'</a><div class="mejs-postroll-layer-content"></div></div>').prependTo(g).hide();d.media.addEventListener("ended",function(h){a.ajax({dataType:"html",url:b,success:function(j,k){g.find(".mejs-postroll-layer-content").html(j)}});e.postroll.show()},false)}}})})(mejs.$);(function(c,e,g,b){var h=function(){var l=g.body||g.documentElement,l=l.style;if(l.WebkitTransition==""){return"-webkit-"}if(l.MozTransition==""){return"-moz-"}if(l.OTransition==""){return"-o-"}if(l.transition==""){return""}return false},f=h()===false?false:true,j=function(m,n,p){var l={},o=h();l[o+"transform"]="translateX("+n+")";l[o+"transition"]=o+"transform "+p+"s ease";m.css(l)},d=("ontouchstart" in e),k=e.navigator.pointerEnabled||e.navigator.msPointerEnabled,a=function(l){if(d){return true}if(!k||typeof l==="undefined"||typeof l.pointerType==="undefined"){return false}if(typeof l.MSPOINTER_TYPE_MOUSE!=="undefined"){if(l.MSPOINTER_TYPE_MOUSE!=l.pointerType){return true}}else{if(l.pointerType!="mouse"){return true}}return false};c.fn.imageLightbox=function(x){var x=c.extend({selector:'id="imagelightbox"',allowedTypes:"png|jpg|jpeg|gif",animationSpeed:250,preloadNext:true,enableKeyboard:true,quitOnEnd:false,quitOnImgClick:false,quitOnDocClick:true,onStart:false,onEnd:false,onLoadStart:false,onLoadEnd:false},x),r=c([]),s=c(),o=c(),t=0,p=0,l=0,q=false,n=function(y){return c(y).prop("tagName").toLowerCase()=="a"&&(new RegExp(".("+x.allowedTypes+")$","i")).test(c(y).attr("href"))},u=function(){if(!o.length){return true}var z=c(e).width()*0.8,A=c(e).height()*0.9,y=new Image();y.src=o.attr("src");y.onload=function(){t=y.width;p=y.height;if(t>z||p>A){var B=t/p>z/A?t/z:p/A;t/=B;p/=B}o.css({width:t+"px",height:p+"px",top:(c(e).height()-p)/2+"px",left:(c(e).width()-t)/2+"px"})}},m=function(y){if(q){return false}y=typeof y==="undefined"?false:y=="left"?1:-1;if(o.length){if(y!==false&&(r.length<2||(x.quitOnEnd===true&&((y===-1&&r.index(s)==0)||(y===1&&r.index(s)==r.length-1))))){w();return false}var z={opacity:0};if(f){j(o,(35*y)-l+"px",x.animationSpeed/600)}else{z.left=parseInt(o.css("left"))+35*y+"px"}o.animate(z,x.animationSpeed,function(){v()});l=0}q=true;if(x.onLoadStart!==false){x.onLoadStart()}setTimeout(function(){o=c("<img "+x.selector+" />").attr("src",s.attr("href")).load(function(){o.appendTo("body");u();var F={opacity:1};o.css("opacity",0);if(f){j(o,-35*y+"px",0);setTimeout(function(){j(o,0+"px",x.animationSpeed/600)},5)}else{var E=parseInt(o.css("left"));F.left=E+"px";o.css("left",E-35*y+"px")}o.animate(F,x.animationSpeed,function(){q=false;if(x.onLoadEnd!==false){x.onLoadEnd()}});if(x.preloadNext){var D=r.eq(r.index(s)+1);if(!D.length){D=r.eq(0)}c("<img />").attr("src",D.attr("href")).load()}}).error(function(){if(x.onLoadEnd!==false){x.onLoadEnd()}});var C=0,A=0,B=0;o.on(k?"pointerup MSPointerUp":"click",function(D){D.preventDefault();if(x.quitOnImgClick){w();return false}if(a(D.originalEvent)){return true}var E=(D.pageX||D.originalEvent.pageX)-D.target.offsetLeft;s=r.eq(r.index(s)-(t/2>E?1:-1));if(!s.length){s=r.eq(t/2>E?r.length:0)}m(t/2>E?"left":"right")}).on("touchstart pointerdown MSPointerDown",function(D){if(!a(D.originalEvent)||x.quitOnImgClick){return true}if(f){B=parseInt(o.css("left"))}C=D.originalEvent.pageX||D.originalEvent.touches[0].pageX}).on("touchmove pointermove MSPointerMove",function(D){if(!a(D.originalEvent)||x.quitOnImgClick){return true}D.preventDefault();A=D.originalEvent.pageX||D.originalEvent.touches[0].pageX;l=C-A;if(f){j(o,-l+"px",0)}else{o.css("left",B-l+"px")}}).on("touchend touchcancel pointerup pointercancel MSPointerUp MSPointerCancel",function(D){if(!a(D.originalEvent)||x.quitOnImgClick){return true}if(Math.abs(l)>50){s=r.eq(r.index(s)-(l<0?1:-1));if(!s.length){s=r.eq(l<0?r.length:0)}m(l>0?"right":"left")}else{if(f){j(o,0+"px",x.animationSpeed/1000)}else{o.animate({left:B+"px"},x.animationSpeed/2)}}})},x.animationSpeed+100)},v=function(){if(!o.length){return false}o.remove();o=c()},w=function(){if(!o.length){return false}o.animate({opacity:0},x.animationSpeed,function(){v();q=false;if(x.onEnd!==false){x.onEnd()}})};c(e).on("resize",u);if(x.quitOnDocClick){c(g).on(d?"touchend":"click",function(y){if(o.length&&!c(y.target).is(o)){w()}})}if(x.enableKeyboard){c(g).on("keyup",function(y){if(!o.length){return true}y.preventDefault();if(y.keyCode==27){w()}if(y.keyCode==37||y.keyCode==39){s=r.eq(r.index(s)-(y.keyCode==37?1:-1));if(!s.length){s=r.eq(y.keyCode==37?r.length:0)}m(y.keyCode==37?"left":"right")}})}c(g).on("click",this.selector,function(y){if(!n(this)){return true}y.preventDefault();if(q){return false}q=false;if(x.onStart!==false){x.onStart()}s=c(this);m()});this.each(function(){if(!n(this)){return true}r=r.add(c(this))});this.switchImageLightbox=function(z){var A=r.eq(z);if(A.length){var y=r.index(s);s=A;m(z<y?"left":"right")}return this};this.quitImageLightbox=function(){w();return this};return this}})(jQuery,window,document);(function(b){var a=[];b.loadImages=function(d,h){if(typeof d=="string"){d=[d]}var g=d.length;var f=0;for(var e=0;e<g;e++){var c=document.createElement("img");c.onload=function(){f++;if(f==g){if(b.isFunction(h)){h()}}};c.src=d[e];a.push(c)}}})(jQuery);
/*!
 * jQuery Validation Plugin 1.11.1
 *
 * http://bassistance.de/jquery-plugins/jquery-plugin-validation/
 * http://docs.jquery.com/Plugins/Validation
 *
 * Copyright 2013 Jörn Zaefferer
 * Released under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 */
(function(a){a.extend(a.fn,{validate:function(b){if(!this.length){if(b&&b.debug&&window.console){console.warn("Nothing selected, can't validate, returning nothing.")}return}var c=a.data(this[0],"validator");if(c){return c}this.attr("novalidate","novalidate");c=new a.validator(b,this[0]);a.data(this[0],"validator",c);if(c.settings.onsubmit){this.validateDelegate(":submit","click",function(d){if(c.settings.submitHandler){c.submitButton=d.target}if(a(d.target).hasClass("cancel")){c.cancelSubmit=true}if(a(d.target).attr("formnovalidate")!==undefined){c.cancelSubmit=true}});this.submit(function(d){if(c.settings.debug){d.preventDefault()}function e(){var f;if(c.settings.submitHandler){if(c.submitButton){f=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)}c.settings.submitHandler.call(c,c.currentForm,d);if(c.submitButton){f.remove()}return false}return true}if(c.cancelSubmit){c.cancelSubmit=false;return e()}if(c.form()){if(c.pendingRequest){c.formSubmitted=true;return false}return e()}else{c.focusInvalid();return false}})}return c},valid:function(){if(a(this[0]).is("form")){return this.validate().form()}else{var c=true;var b=a(this[0].form).validate();this.each(function(){c=c&&b.element(this)});return c}},removeAttrs:function(d){var b={},c=this;a.each(d.split(/\s/),function(e,f){b[f]=c.attr(f);c.removeAttr(f)});return b},rules:function(e,b){var g=this[0];if(e){var d=a.data(g.form,"validator").settings;var j=d.rules;var k=a.validator.staticRules(g);switch(e){case"add":a.extend(k,a.validator.normalizeRule(b));delete k.messages;j[g.name]=k;if(b.messages){d.messages[g.name]=a.extend(d.messages[g.name],b.messages)}break;case"remove":if(!b){delete j[g.name];return k}var h={};a.each(b.split(/\s/),function(l,m){h[m]=k[m];delete k[m]});return h}}var f=a.validator.normalizeRules(a.extend({},a.validator.classRules(g),a.validator.attributeRules(g),a.validator.dataRules(g),a.validator.staticRules(g)),g);if(f.required){var c=f.required;delete f.required;f=a.extend({required:c},f)}return f}});a.extend(a.expr[":"],{blank:function(b){return !a.trim(""+a(b).val())},filled:function(b){return !!a.trim(""+a(b).val())},unchecked:function(b){return !a(b).prop("checked")}});a.validator=function(b,c){this.settings=a.extend(true,{},a.validator.defaults,b);this.currentForm=c;this.init()};a.validator.format=function(b,c){if(arguments.length===1){return function(){var d=a.makeArray(arguments);d.unshift(b);return a.validator.format.apply(this,d)}}if(arguments.length>2&&c.constructor!==Array){c=a.makeArray(arguments).slice(1)}if(c.constructor!==Array){c=[c]}a.each(c,function(d,e){b=b.replace(new RegExp("\\{"+d+"\\}","g"),function(){return e})});return b};a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:true,ignore:":hidden",ignoreTitle:false,onfocusin:function(b,c){this.lastActive=b;if(this.settings.focusCleanup&&!this.blockFocusCleanup){if(this.settings.unhighlight){this.settings.unhighlight.call(this,b,this.settings.errorClass,this.settings.validClass)}this.addWrapper(this.errorsFor(b)).hide()}},onfocusout:function(b,c){if(!this.checkable(b)&&(b.name in this.submitted||!this.optional(b))){this.element(b)}},onkeyup:function(b,c){if(c.which===9&&this.elementValue(b)===""){return}else{if(b.name in this.submitted||b===this.lastElement){this.element(b)}}},onclick:function(b,c){if(b.name in this.submitted){this.element(b)}else{if(b.parentNode.name in this.submitted){this.element(b.parentNode)}}},highlight:function(d,b,c){if(d.type==="radio"){this.findByName(d.name).addClass(b).removeClass(c)}else{a(d).addClass(b).removeClass(c)}},unhighlight:function(d,b,c){if(d.type==="radio"){this.findByName(d.name).removeClass(b).addClass(c)}else{a(d).removeClass(b).addClass(c)}}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=a(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm);this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var b=(this.groups={});a.each(this.settings.groups,function(e,f){if(typeof f==="string"){f=f.split(/\s/)}a.each(f,function(h,g){b[g]=e})});var d=this.settings.rules;a.each(d,function(e,f){d[e]=a.validator.normalizeRule(f)});function c(g){var f=a.data(this[0].form,"validator"),e="on"+g.type.replace(/^validate/,"");if(f.settings[e]){f.settings[e].call(f,this[0],g)}}a(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",c).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",c);if(this.settings.invalidHandler){a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)}},form:function(){this.checkForm();a.extend(this.submitted,this.errorMap);this.invalid=a.extend({},this.errorMap);if(!this.valid()){a(this.currentForm).triggerHandler("invalid-form",[this])}this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var b=0,c=(this.currentElements=this.elements());c[b];b++){this.check(c[b])}return this.valid()},element:function(c){c=this.validationTargetFor(this.clean(c));this.lastElement=c;this.prepareElement(c);this.currentElements=a(c);var b=this.check(c)!==false;if(b){delete this.invalid[c.name]}else{this.invalid[c.name]=true}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers)}this.showErrors();return b},showErrors:function(c){if(c){a.extend(this.errorMap,c);this.errorList=[];for(var b in c){this.errorList.push({message:c[b],element:this.findByName(b)[0]})}this.successList=a.grep(this.successList,function(d){return !(d.name in c)})}if(this.settings.showErrors){this.settings.showErrors.call(this,this.errorMap,this.errorList)}else{this.defaultShowErrors()}},resetForm:function(){if(a.fn.resetForm){a(this.currentForm).resetForm()}this.submitted={};this.lastElement=null;this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass).removeData("previousValue")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(d){var c=0;for(var b in d){c++}return c},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()===0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}}},findLastActive:function(){var b=this.lastActive;return b&&a.grep(this.errorList,function(c){return c.element.name===b.name}).length===1&&b},elements:function(){var c=this,b={};return a(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){if(!this.name&&c.settings.debug&&window.console){console.error("%o has no name assigned",this)}if(this.name in b||!c.objectLength(a(this).rules())){return false}b[this.name]=true;return true})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.replace(" ",".");return a(this.settings.errorElement+"."+b,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=a([]);this.toHide=a([]);this.currentElements=a([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(b){this.reset();this.toHide=this.errorsFor(b)},elementValue:function(b){var c=a(b).attr("type"),d=a(b).val();if(c==="radio"||c==="checkbox"){return a("input[name='"+a(b).attr("name")+"']:checked").val()}if(typeof d==="string"){return d.replace(/\r/g,"")}return d},check:function(c){c=this.validationTargetFor(this.clean(c));var j=a(c).rules();var d=false;var h=this.elementValue(c);var b;for(var k in j){var g={method:k,parameters:j[k]};try{b=a.validator.methods[k].call(this,h,c,g.parameters);if(b==="dependency-mismatch"){d=true;continue}d=false;if(b==="pending"){this.toHide=this.toHide.not(this.errorsFor(c));return}if(!b){this.formatAndAdd(c,g);return false}}catch(f){if(this.settings.debug&&window.console){console.log("Exception occurred when checking element "+c.id+", check the '"+g.method+"' method.",f)}throw f}}if(d){return}if(this.objectLength(j)){this.successList.push(c)}return true},customDataMessage:function(b,c){return a(b).data("msg-"+c.toLowerCase())||(b.attributes&&a(b).attr("data-msg-"+c.toLowerCase()))},customMessage:function(c,d){var b=this.settings.messages[c];return b&&(b.constructor===String?b:b[d])},findDefined:function(){for(var b=0;b<arguments.length;b++){if(arguments[b]!==undefined){return arguments[b]}}return undefined},defaultMessage:function(b,c){return this.findDefined(this.customMessage(b.name,c),this.customDataMessage(b,c),!this.settings.ignoreTitle&&b.title||undefined,a.validator.messages[c],"<strong>Warning: No message defined for "+b.name+"</strong>")},formatAndAdd:function(c,e){var d=this.defaultMessage(c,e.method),b=/\$?\{(\d+)\}/g;if(typeof d==="function"){d=d.call(this,e.parameters,c)}else{if(b.test(d)){d=a.validator.format(d.replace(b,"{$1}"),e.parameters)}}this.errorList.push({message:d,element:c});this.errorMap[c.name]=d;this.submitted[c.name]=d},addWrapper:function(b){if(this.settings.wrapper){b=b.add(b.parent(this.settings.wrapper))}return b},defaultShowErrors:function(){var c,d;for(c=0;this.errorList[c];c++){var b=this.errorList[c];if(this.settings.highlight){this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass)}this.showLabel(b.element,b.message)}if(this.errorList.length){this.toShow=this.toShow.add(this.containers)}if(this.settings.success){for(c=0;this.successList[c];c++){this.showLabel(this.successList[c])}}if(this.settings.unhighlight){for(c=0,d=this.validElements();d[c];c++){this.settings.unhighlight.call(this,d[c],this.settings.errorClass,this.settings.validClass)}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(c,d){var b=this.errorsFor(c);if(b.length){b.removeClass(this.settings.validClass).addClass(this.settings.errorClass);b.html(d)}else{b=a("<"+this.settings.errorElement+">").attr("for",this.idOrName(c)).addClass(this.settings.errorClass).html(d||"");if(this.settings.wrapper){b=b.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()}if(!this.labelContainer.append(b).length){if(this.settings.errorPlacement){this.settings.errorPlacement(b,a(c))}else{b.insertAfter(c)}}}if(!d&&this.settings.success){b.text("");if(typeof this.settings.success==="string"){b.addClass(this.settings.success)}else{this.settings.success(b,c)}}this.toShow=this.toShow.add(b)},errorsFor:function(c){var b=this.idOrName(c);return this.errors().filter(function(){return a(this).attr("for")===b})},idOrName:function(b){return this.groups[b.name]||(this.checkable(b)?b.name:b.id||b.name)},validationTargetFor:function(b){if(this.checkable(b)){b=this.findByName(b.name).not(this.settings.ignore)[0]}return b},checkable:function(b){return(/radio|checkbox/i).test(b.type)},findByName:function(b){return a(this.currentForm).find("[name='"+b+"']")},getLength:function(c,b){switch(b.nodeName.toLowerCase()){case"select":return a("option:selected",b).length;case"input":if(this.checkable(b)){return this.findByName(b.name).filter(":checked").length}}return c.length},depend:function(c,b){return this.dependTypes[typeof c]?this.dependTypes[typeof c](c,b):true},dependTypes:{"boolean":function(c,b){return c},string:function(c,b){return !!a(c,b.form).length},"function":function(c,b){return c(b)}},optional:function(b){var c=this.elementValue(b);return !a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},startRequest:function(b){if(!this.pending[b.name]){this.pendingRequest++;this.pending[b.name]=true}},stopRequest:function(b,c){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0}delete this.pending[b.name];if(c&&this.pendingRequest===0&&this.formSubmitted&&this.form()){a(this.currentForm).submit();this.formSubmitted=false}else{if(!c&&this.pendingRequest===0&&this.formSubmitted){a(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false}}},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:true,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},number:{number:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(b,c){if(b.constructor===String){this.classRuleSettings[b]=c}else{a.extend(this.classRuleSettings,b)}},classRules:function(c){var d={};var b=a(c).attr("class");if(b){a.each(b.split(" "),function(){if(this in a.validator.classRuleSettings){a.extend(d,a.validator.classRuleSettings[this])}})}return d},attributeRules:function(c){var f={};var b=a(c);var d=b[0].getAttribute("type");for(var g in a.validator.methods){var e;if(g==="required"){e=b.get(0).getAttribute(g);if(e===""){e=true}e=!!e}else{e=b.attr(g)}if(/min|max/.test(g)&&(d===null||/number|range|text/.test(d))){e=Number(e)}if(e){f[g]=e}else{if(d===g&&d!=="range"){f[g]=true}}}if(f.maxlength&&/-1|2147483647|524288/.test(f.maxlength)){delete f.maxlength}return f},dataRules:function(c){var f,d,e={},b=a(c);for(f in a.validator.methods){d=b.data("rule-"+f.toLowerCase());if(d!==undefined){e[f]=d}}return e},staticRules:function(c){var d={};var b=a.data(c.form,"validator");if(b.settings.rules){d=a.validator.normalizeRule(b.settings.rules[c.name])||{}}return d},normalizeRules:function(c,b){a.each(c,function(f,e){if(e===false){delete c[f];return}if(e.param||e.depends){var d=true;switch(typeof e.depends){case"string":d=!!a(e.depends,b.form).length;break;case"function":d=e.depends.call(b,b);break}if(d){c[f]=e.param!==undefined?e.param:true}else{delete c[f]}}});a.each(c,function(d,e){c[d]=a.isFunction(e)?e(b):e});a.each(["minlength","maxlength"],function(){if(c[this]){c[this]=Number(c[this])}});a.each(["rangelength","range"],function(){var d;if(c[this]){if(a.isArray(c[this])){c[this]=[Number(c[this][0]),Number(c[this][1])]}else{if(typeof c[this]==="string"){d=c[this].split(/[\s,]+/);c[this]=[Number(d[0]),Number(d[1])]}}}});if(a.validator.autoCreateRanges){if(c.min&&c.max){c.range=[c.min,c.max];delete c.min;delete c.max}if(c.minlength&&c.maxlength){c.rangelength=[c.minlength,c.maxlength];delete c.minlength;delete c.maxlength}}return c},normalizeRule:function(c){if(typeof c==="string"){var b={};a.each(c.split(/\s/),function(){b[this]=true});c=b}return c},addMethod:function(b,d,c){a.validator.methods[b]=d;a.validator.messages[b]=c!==undefined?c:a.validator.messages[b];if(d.length<3){a.validator.addClassRules(b,a.validator.normalizeRule(b))}},methods:{required:function(c,b,e){if(!this.depend(e,b)){return"dependency-mismatch"}if(b.nodeName.toLowerCase()==="select"){var d=a(b).val();return d&&d.length>0}if(this.checkable(b)){return this.getLength(c,b)>0}return a.trim(c).length>0},email:function(c,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(c)},url:function(c,b){return this.optional(b)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(c)},date:function(c,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(c).toString())},dateISO:function(c,b){return this.optional(b)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(c)},number:function(c,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(c)},digits:function(c,b){return this.optional(b)||/^\d+$/.test(c)},creditcard:function(f,c){if(this.optional(c)){return"dependency-mismatch"}if(/[^0-9 \-]+/.test(f)){return false}var g=0,e=0,b=false;f=f.replace(/\D/g,"");for(var h=f.length-1;h>=0;h--){var d=f.charAt(h);e=parseInt(d,10);if(b){if((e*=2)>9){e-=9}}g+=e;b=!b}return(g%10)===0},minlength:function(d,b,e){var c=a.isArray(d)?d.length:this.getLength(a.trim(d),b);return this.optional(b)||c>=e},maxlength:function(d,b,e){var c=a.isArray(d)?d.length:this.getLength(a.trim(d),b);return this.optional(b)||c<=e},rangelength:function(d,b,e){var c=a.isArray(d)?d.length:this.getLength(a.trim(d),b);return this.optional(b)||(c>=e[0]&&c<=e[1])},min:function(c,b,d){return this.optional(b)||c>=d},max:function(c,b,d){return this.optional(b)||c<=d},range:function(c,b,d){return this.optional(b)||(c>=d[0]&&c<=d[1])},equalTo:function(c,b,e){var d=a(e);if(this.settings.onfocusout){d.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(b).valid()})}return c===d.val()},remote:function(f,c,g){if(this.optional(c)){return"dependency-mismatch"}var d=this.previousValue(c);if(!this.settings.messages[c.name]){this.settings.messages[c.name]={}}d.originalMessage=this.settings.messages[c.name].remote;this.settings.messages[c.name].remote=d.message;g=typeof g==="string"&&{url:g}||g;if(d.old===f){return d.valid}d.old=f;var b=this;this.startRequest(c);var e={};e[c.name]=f;a.ajax(a.extend(true,{url:g,mode:"abort",port:"validate"+c.name,dataType:"json",data:e,success:function(j){b.settings.messages[c.name].remote=d.originalMessage;var l=j===true||j==="true";if(l){var h=b.formSubmitted;b.prepareElement(c);b.formSubmitted=h;b.successList.push(c);delete b.invalid[c.name];b.showErrors()}else{var m={};var k=j||b.defaultMessage(c,"remote");m[c.name]=d.message=a.isFunction(k)?k(f):k;b.invalid[c.name]=true;b.showErrors(m)}d.valid=l;b.stopRequest(c,l)}},g));return"pending"}}});a.format=a.validator.format}(jQuery));(function(c){var a={};if(c.ajaxPrefilter){c.ajaxPrefilter(function(f,e,g){var d=f.port;if(f.mode==="abort"){if(a[d]){a[d].abort()}a[d]=g}})}else{var b=c.ajax;c.ajax=function(e){var f=("mode" in e?e:c.ajaxSettings).mode,d=("port" in e?e:c.ajaxSettings).port;if(f==="abort"){if(a[d]){a[d].abort()}a[d]=b.apply(this,arguments);return a[d]}return b.apply(this,arguments)}}}(jQuery));(function(a){a.extend(a.fn,{validateDelegate:function(d,c,b){return this.bind(c,function(e){var f=a(e.target);if(f.is(d)){return b.apply(f,arguments)}})}})}(jQuery));
/*!
 * enquire.js v2.1.0 - Awesome Media Queries in JavaScript
 * Copyright (c) 2014 Nick Williams - http://wicky.nillia.ms/enquire.js
 * License: MIT (http://www.opensource.org/licenses/mit-license.php)
 */
;(function(b,c,a){var d=window.matchMedia;if(typeof module!=="undefined"&&module.exports){module.exports=a(d)}else{if(typeof define==="function"&&define.amd){define(function(){return(c[b]=a(d))})}else{c[b]=a(d)}}}("enquire",this,function(d){function e(m,k){var j=0,l=m.length,h;for(j;j<l;j++){h=k(m[j],j);if(h===false){break}}}function a(h){return Object.prototype.toString.apply(h)==="[object Array]"}function g(h){return typeof h==="function"}function b(h){this.options=h;!h.deferSetup&&this.setup()}b.prototype={setup:function(){if(this.options.setup){this.options.setup()}this.initialised=true},on:function(){!this.initialised&&this.setup();this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(h){return this.options===h||this.options.match===h}};function c(k,j){this.query=k;this.isUnconditional=j;this.handlers=[];this.mql=d(k);var h=this;this.listener=function(l){h.mql=l;h.assess()};this.mql.addListener(this.listener)}c.prototype={addHandler:function(j){var h=new b(j);this.handlers.push(h);this.matches()&&h.on()},removeHandler:function(j){var h=this.handlers;e(h,function(l,k){if(l.equals(j)){l.destroy();return !h.splice(k,1)}})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){e(this.handlers,function(h){h.destroy()});this.mql.removeListener(this.listener);this.handlers.length=0},assess:function(){var h=this.matches()?"on":"off";e(this.handlers,function(j){j[h]()})}};function f(){if(!d){throw new Error("matchMedia not present, legacy browsers require a polyfill")}this.queries={};this.browserIsIncapable=!d("only all").matches}f.prototype={register:function(m,k,l){var j=this.queries,h=l&&this.browserIsIncapable;if(!j[m]){j[m]=new c(m,h)}if(g(k)){k={match:k}}if(!a(k)){k=[k]}e(k,function(n){j[m].addHandler(n)});return this},unregister:function(k,h){var j=this.queries[k];if(j){if(h){j.removeHandler(h)}else{j.clear();delete this.queries[k]}}return this}};return new f()}));
/*!
 * Masonry PACKAGED v3.2.2
 * Cascading grid layout library
 * http://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */
;!function(f){function e(){}function h(b){function k(a){a.prototype.option||(a.prototype.option=function(c){b.isPlainObject(c)&&(this.options=b.extend(!0,this.options,c))})}function j(a,l){b.fn[a]=function(r){if("string"==typeof r){for(var q=g.call(arguments,1),p=0,o=this.length;o>p;p++){var n=this[p],m=b.data(n,a);if(m){if(b.isFunction(m[r])&&"_"!==r.charAt(0)){var c=m[r].apply(m,q);if(void 0!==c){return c}}else{d("no such method '"+r+"' for "+a+" instance")}}else{d("cannot call methods on "+a+" prior to initialization; attempted to call '"+r+"'")}}return this}return this.each(function(){var s=b.data(this,a);s?(s.option(r),s._init()):(s=new l(this,r),b.data(this,a,s))})}}if(b){var d="undefined"==typeof console?e:function(c){console.error(c)};return b.bridget=function(l,c){k(c),j(l,c)},b.bridget}}var g=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],h):h("object"==typeof exports?require("jquery"):f.jQuery)}(window),function(h){function g(a){var d=h.event;return d.target=d.target||d.srcElement||a,d}var m=document.documentElement,l=function(){};m.addEventListener?l=function(e,d,f){e.addEventListener(d,f,!1)}:m.attachEvent&&(l=function(b,f,e){b[f+e]=e.handleEvent?function(){var a=g(b);e.handleEvent.call(e,a)}:function(){var a=g(b);e.call(b,a)},b.attachEvent("on"+f,b[f+e])});var k=function(){};m.removeEventListener?k=function(e,d,f){e.removeEventListener(d,f,!1)}:m.detachEvent&&(k=function(f,e,o){f.detachEvent("on"+e,f[e+o]);try{delete f[e+o]}catch(n){f[e+o]=void 0}});var j={bind:l,unbind:k};"function"==typeof define&&define.amd?define("eventie/eventie",j):"object"==typeof exports?module.exports=j:h.eventie=j}(this),function(j){function h(b){"function"==typeof b&&(h.isReady?b():k.push(b))}function o(b){var d="readystatechange"===b.type&&"complete"!==l.readyState;h.isReady||d||n()}function n(){h.isReady=!0;for(var b=0,f=k.length;f>b;b++){var e=k[b];e()}}function m(a){return"complete"===l.readyState?n():(a.bind(l,"DOMContentLoaded",o),a.bind(l,"readystatechange",o),a.bind(j,"load",o)),h}var l=j.document,k=[];h.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],m):"object"==typeof exports?module.exports=m(require("eventie")):j.docReady=m(j.eventie)}(window),function(){function h(){}function g(e,d){for(var f=e.length;f--;){if(e[f].listener===d){return f}}return -1}function m(b){return function(){return this[b].apply(this,arguments)}}var l=h.prototype,k=this,j=k.EventEmitter;l.getListeners=function(f){var e,o,n=this._getEvents();if(f instanceof RegExp){e={};for(o in n){n.hasOwnProperty(o)&&f.test(o)&&(e[o]=n[o])}}else{e=n[f]||(n[f]=[])}return e},l.flattenListeners=function(e){var d,f=[];for(d=0;d<e.length;d+=1){f.push(e[d].listener)}return f},l.getListenersAsObject=function(e){var d,f=this.getListeners(e);return f instanceof Array&&(d={},d[e]=f),d||f},l.addListener=function(b,q){var p,o=this.getListenersAsObject(b),n="object"==typeof q;for(p in o){o.hasOwnProperty(p)&&-1===g(o[p],q)&&o[p].push(n?q:{listener:q,once:!1})}return this},l.on=m("addListener"),l.addOnceListener=function(d,c){return this.addListener(d,{listener:c,once:!0})},l.once=m("addOnceListener"),l.defineEvent=function(b){return this.getListeners(b),this},l.defineEvents=function(d){for(var c=0;c<d.length;c+=1){this.defineEvent(d[c])}return this},l.removeListener=function(b,q){var p,o,n=this.getListenersAsObject(b);for(o in n){n.hasOwnProperty(o)&&(p=g(n[o],q),-1!==p&&n[o].splice(p,1))}return this},l.off=m("removeListener"),l.addListeners=function(d,c){return this.manipulateListeners(!1,d,c)},l.removeListeners=function(d,c){return this.manipulateListeners(!0,d,c)},l.manipulateListeners=function(o,n,t){var s,r,q=o?this.removeListener:this.addListener,p=o?this.removeListeners:this.addListeners;if("object"!=typeof n||n instanceof RegExp){for(s=t.length;s--;){q.call(this,n,t[s])}}else{for(s in n){n.hasOwnProperty(s)&&(r=n[s])&&("function"==typeof r?q.call(this,s,r):p.call(this,s,r))}}return this},l.removeEvent=function(f){var e,o=typeof f,n=this._getEvents();if("string"===o){delete n[f]}else{if(f instanceof RegExp){for(e in n){n.hasOwnProperty(e)&&f.test(e)&&delete n[e]}}else{delete this._events}}return this},l.removeAllListeners=m("removeEvent"),l.emitEvent=function(o,n){var t,s,r,q,p=this.getListenersAsObject(o);for(r in p){if(p.hasOwnProperty(r)){for(s=p[r].length;s--;){t=p[r][s],t.once===!0&&this.removeListener(o,t.listener),q=t.listener.apply(this,n||[]),q===this._getOnceReturnValue()&&this.removeListener(o,t.listener)}}}return this},l.trigger=m("emitEvent"),l.emit=function(d){var c=Array.prototype.slice.call(arguments,1);return this.emitEvent(d,c)},l.setOnceReturnValue=function(b){return this._onceReturnValue=b,this},l._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},l._getEvents=function(){return this._events||(this._events={})},h.noConflict=function(){return k.EventEmitter=j,h},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return h}):"object"==typeof module&&module.exports?module.exports=h:k.EventEmitter=h}.call(this),function(f){function e(d){if(d){if("string"==typeof g[d]){return d}d=d.charAt(0).toUpperCase()+d.slice(1);for(var c,k=0,j=h.length;j>k;k++){if(c=h[k]+d,"string"==typeof g[c]){return c}}}}var h="Webkit Moz ms Ms O".split(" "),g=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return e}):"object"==typeof exports?module.exports=e:f.getStyleProperty=e}(window),function(j){function h(e){var d=parseFloat(e),f=-1===e.indexOf("%")&&!isNaN(d);return f&&d}function o(){}function n(){for(var f={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,p=k.length;p>e;e++){var g=k[e];f[g]=0}return f}function m(r){function q(){if(!a){a=!0;var u=j.getComputedStyle;if(f=function(){var e=u?function(v){return u(v,null)}:function(v){return v.currentStyle};return function(v){var w=e(v);return w||l("Style returned "+w+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),w}}(),d=r("boxSizing")){var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style[d]="border-box";var s=document.body||document.documentElement;s.appendChild(t);var c=f(t);b=200===h(c.width),s.removeChild(t)}}}function p(Q){if(q(),"string"==typeof Q&&(Q=document.querySelector(Q)),Q&&"object"==typeof Q&&Q.nodeType){var P=f(Q);if("none"===P.display){return n()}var O={};O.width=Q.offsetWidth,O.height=Q.offsetHeight;for(var N=O.isBorderBox=!(!d||!P[d]||"border-box"!==P[d]),M=0,L=k.length;L>M;M++){var K=k[M],J=P[K];J=g(Q,J);var I=parseFloat(J);O[K]=isNaN(I)?0:I}var H=O.paddingLeft+O.paddingRight,G=O.paddingTop+O.paddingBottom,F=O.marginLeft+O.marginRight,E=O.marginTop+O.marginBottom,D=O.borderLeftWidth+O.borderRightWidth,C=O.borderTopWidth+O.borderBottomWidth,B=N&&b,A=h(P.width);A!==!1&&(O.width=A+(B?0:H+D));var e=h(P.height);return e!==!1&&(O.height=e+(B?0:G+C)),O.innerWidth=O.width-(H+D),O.innerHeight=O.height-(G+C),O.outerWidth=O.width+F,O.outerHeight=O.height+E,O}}function g(s,x){if(j.getComputedStyle||-1===x.indexOf("%")){return x}var w=s.style,v=w.left,u=s.runtimeStyle,t=u&&u.left;return t&&(u.left=s.currentStyle.left),w.left=x,x=w.pixelLeft,w.left=v,t&&(u.left=t),x}var f,d,b,a=!1;return p}var l="undefined"==typeof console?o:function(b){console.error(b)},k=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],m):"object"==typeof exports?module.exports=m(require("desandro-get-style-property")):j.getSize=m(j.getStyleProperty)}(window),function(r){function q(d,c){return d[l](c)}function p(d){if(!d.parentNode){var c=document.createDocumentFragment();c.appendChild(d)}}function o(g,c){p(g);for(var t=g.parentNode.querySelectorAll(c),s=0,h=t.length;h>s;s++){if(t[s]===g){return !0}}return !1}function n(b,c){return p(b),q(b,c)}var m,l=function(){if(r.matchesSelector){return"matchesSelector"}for(var a=["webkit","moz","ms","o"],t=0,s=a.length;s>t;t++){var h=a[t],g=h+"MatchesSelector";if(r[g]){return g}}}();if(l){var k=document.createElement("div"),j=q(k,"div");m=j?q:n}else{m=o}"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return m}):"object"==typeof exports?module.exports=m:window.matchesSelector=m}(Element.prototype),function(j){function h(e,d){for(var f in d){e[f]=d[f]}return e}function o(d){for(var c in d){return !1}return c=null,!0}function n(b){return b.replace(/([A-Z])/g,function(c){return"-"+c.toLowerCase()})}function m(C,B,A){function z(f,e){f&&(this.element=f,this.layout=e,this.position={x:0,y:0},this._create())}var y=A("transition"),x=A("transform"),w=y&&x,v=!!A("perspective"),u={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[y],t=["transform","transition","transitionDuration","transitionProperty"],g=function(){for(var p={},f=0,s=t.length;s>f;f++){var r=t[f],q=A(r);q&&q!==r&&(p[r]=q)}return p}();h(z.prototype,C.prototype),z.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},z.prototype.handleEvent=function(f){var e="on"+f.type;this[e]&&this[e](f)},z.prototype.getSize=function(){this.size=B(this.element)},z.prototype.css=function(f){var e=this.element.style;for(var q in f){var p=g[q]||q;e[p]=f[q]}},z.prototype.getPosition=function(){var q=k(this.element),p=this.layout.options,G=p.isOriginLeft,F=p.isOriginTop,E=parseInt(q[G?"left":"right"],10),s=parseInt(q[F?"top":"bottom"],10);E=isNaN(E)?0:E,s=isNaN(s)?0:s;var r=this.layout.size;E-=G?r.paddingLeft:r.paddingRight,s-=F?r.paddingTop:r.paddingBottom,this.position.x=E,this.position.y=s},z.prototype.layoutPosition=function(){var f=this.layout.size,e=this.layout.options,p={};e.isOriginLeft?(p.left=this.position.x+f.paddingLeft+"px",p.right=""):(p.right=this.position.x+f.paddingRight+"px",p.left=""),e.isOriginTop?(p.top=this.position.y+f.paddingTop+"px",p.bottom=""):(p.bottom=this.position.y+f.paddingBottom+"px",p.top=""),this.css(p),this.emitEvent("layout",[this])};var d=v?function(f,e){return"translate3d("+f+"px, "+e+"px, 0)"}:function(f,e){return"translate("+f+"px, "+e+"px)"};z.prototype._transitionTo=function(K,J){this.getPosition();var I=this.position.x,H=this.position.y,G=parseInt(K,10),F=parseInt(J,10),E=G===this.position.x&&F===this.position.y;if(this.setPosition(K,J),E&&!this.isTransitioning){return void this.layoutPosition()}var s=K-I,r=J-H,q={},p=this.layout.options;s=p.isOriginLeft?s:-s,r=p.isOriginTop?r:-r,q.transform=d(s,r),this.transition({to:q,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},z.prototype.goTo=function(f,e){this.setPosition(f,e),this.layoutPosition()},z.prototype.moveTo=w?z.prototype._transitionTo:z.prototype.goTo,z.prototype.setPosition=function(f,e){this.position.x=parseInt(f,10),this.position.y=parseInt(e,10)},z.prototype._nonTransition=function(f){this.css(f.to),f.isCleaning&&this._removeStyles(f.to);for(var e in f.onTransitionEnd){f.onTransitionEnd[e].call(this)}},z.prototype._transition=function(f){if(!parseFloat(this.layout.options.transitionDuration)){return void this._nonTransition(f)}var e=this._transn;for(var q in f.onTransitionEnd){e.onEnd[q]=f.onTransitionEnd[q]}for(q in f.to){e.ingProperties[q]=!0,f.isCleaning&&(e.clean[q]=!0)}if(f.from){this.css(f.from);var p=this.element.offsetHeight;p=null}this.enableTransition(f.to),this.css(f.to),this.isTransitioning=!0};var c=x&&n(x)+",opacity";z.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:c,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(u,this,!1))},z.prototype.transition=z.prototype[y?"_transition":"_nonTransition"],z.prototype.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},z.prototype.onotransitionend=function(e){this.ontransitionend(e)};var b={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};z.prototype.ontransitionend=function(p){if(p.target===this.element){var f=this._transn,r=b[p.propertyName]||p.propertyName;if(delete f.ingProperties[r],o(f.ingProperties)&&this.disableTransition(),r in f.clean&&(this.element.style[p.propertyName]="",delete f.clean[r]),r in f.onEnd){var q=f.onEnd[r];q.call(this),delete f.onEnd[r]}this.emitEvent("transitionEnd",[this])}},z.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(u,this,!1),this.isTransitioning=!1},z.prototype._removeStyles=function(f){var e={};for(var p in f){e[p]=""}this.css(e)};var D={transitionProperty:"",transitionDuration:""};return z.prototype.removeTransitionStyles=function(){this.css(D)},z.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.emitEvent("remove",[this])},z.prototype.remove=function(){if(!y||!parseFloat(this.layout.options.transitionDuration)){return void this.removeElem()}var e=this;this.on("transitionEnd",function(){return e.removeElem(),!0}),this.hide()},z.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options;this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0})},z.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options;this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:{opacity:function(){this.isHidden&&this.css({display:"none"})}}})},z.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},z}var l=j.getComputedStyle,k=l?function(b){return l(b,null)}:function(b){return b.currentStyle};"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property"],m):"object"==typeof exports?module.exports=m(require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property")):(j.Outlayer={},j.Outlayer.Item=m(j.EventEmitter,j.getSize,j.getStyleProperty))}(window),function(B){function A(e,d){for(var f in d){e[f]=d[f]}return e}function z(b){return"[object Array]"===q.call(b)}function y(f){var c=[];if(z(f)){c=f}else{if(f&&"number"==typeof f.length){for(var h=0,g=f.length;g>h;h++){c.push(f[h])}}else{c.push(f)}}return c}function x(e,d){var f=o(d,e);-1!==f&&d.splice(f,1)}function w(b){return b.replace(/(.)([A-Z])/g,function(e,d,f){return d+"-"+f}).toLowerCase()}function v(k,j,h,f,e,d){function b(g,n){if("string"==typeof g&&(g=u.querySelector(g)),!g||!p(g)){return void (t&&t.error("Bad "+this.constructor.namespace+" element: "+g))}this.element=g,this.options=A({},this.constructor.defaults),this.option(n);var l=++a;this.element.outlayerGUID=l,m[l]=this,this._create(),this.options.isInitLayout&&this.layout()}var a=0,m={};return b.namespace="outlayer",b.Item=d,b.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},A(b.prototype,h.prototype),b.prototype.option=function(c){A(this.options,c)},b.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),A(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},b.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},b.prototype._itemize=function(n){for(var l=this._filterFindItemElements(n),H=this.constructor.Item,G=[],F=0,E=l.length;E>F;F++){var D=l[F],C=new H(D,this);G.push(C)}return G},b.prototype._filterFindItemElements=function(I){I=y(I);for(var H=this.options.itemSelector,G=[],F=0,E=I.length;E>F;F++){var D=I[F];if(p(D)){if(H){e(D,H)&&G.push(D);for(var C=D.querySelectorAll(H),n=0,l=C.length;l>n;n++){G.push(C[n])}}else{G.push(D)}}}return G},b.prototype.getItemElements=function(){for(var l=[],g=0,n=this.items.length;n>g;g++){l.push(this.items[g].element)}return l},b.prototype.layout=function(){this._resetLayout(),this._manageStamps();var c=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,c),this._isLayoutInited=!0},b.prototype._init=b.prototype.layout,b.prototype._resetLayout=function(){this.getSize()},b.prototype.getSize=function(){this.size=f(this.element)},b.prototype._getMeasurement=function(l,g){var C,n=this.options[l];n?("string"==typeof n?C=this.element.querySelector(n):p(n)&&(C=n),this[l]=C?f(C)[g]:n):this[l]=0},b.prototype.layoutItems=function(g,c){g=this._getItemsForLayout(g),this._layoutItems(g,c),this._postLayout()},b.prototype._getItemsForLayout=function(l){for(var g=[],D=0,C=l.length;C>D;D++){var n=l[D];n.isIgnored||g.push(n)}return g},b.prototype._layoutItems=function(I,H){function G(){F.emitEvent("layoutComplete",[F,I])}var F=this;if(!I||!I.length){return void G()}this._itemsOn(I,"layout",G);for(var E=[],D=0,C=I.length;C>D;D++){var n=I[D],l=this._getItemLayoutPosition(n);l.item=n,l.isInstant=H||n.isLayoutInstant,E.push(l)}this._processLayoutQueue(E)},b.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},b.prototype._processLayoutQueue=function(l){for(var g=0,C=l.length;C>g;g++){var n=l[g];this._positionItem(n.item,n.x,n.y,n.isInstant)}},b.prototype._positionItem=function(l,g,C,n){n?l.goTo(g,C):l.moveTo(g,C)},b.prototype._postLayout=function(){this.resizeContainer()},b.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var c=this._getContainerSize();c&&(this._setContainerMeasure(c.width,!0),this._setContainerMeasure(c.height,!1))}},b.prototype._getContainerSize=r,b.prototype._setContainerMeasure=function(l,g){if(void 0!==l){var n=this.size;n.isBorderBox&&(l+=g?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),l=Math.max(l,0),this.element.style[g?"width":"height"]=l+"px"}},b.prototype._itemsOn=function(J,I,H){function G(){return F++,F===E&&H.call(D),!0}for(var F=0,E=J.length,D=this,C=0,n=J.length;n>C;C++){var l=J[C];l.on(I,G)}},b.prototype.ignore=function(g){var c=this.getItem(g);c&&(c.isIgnored=!0)},b.prototype.unignore=function(g){var c=this.getItem(g);c&&delete c.isIgnored},b.prototype.stamp=function(l){if(l=this._find(l)){this.stamps=this.stamps.concat(l);for(var g=0,C=l.length;C>g;g++){var n=l[g];this.ignore(n)}}},b.prototype.unstamp=function(l){if(l=this._find(l)){for(var g=0,C=l.length;C>g;g++){var n=l[g];x(n,this.stamps),this.unignore(n)}}},b.prototype._find=function(c){return c?("string"==typeof c&&(c=this.element.querySelectorAll(c)),c=y(c)):void 0},b.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var l=0,g=this.stamps.length;g>l;l++){var n=this.stamps[l];this._manageStamp(n)}}},b.prototype._getBoundingRect=function(){var g=this.element.getBoundingClientRect(),c=this.size;this._boundingRect={left:g.left+c.paddingLeft+c.borderLeftWidth,top:g.top+c.paddingTop+c.borderTopWidth,right:g.right-(c.paddingRight+c.borderRightWidth),bottom:g.bottom-(c.paddingBottom+c.borderBottomWidth)}},b.prototype._manageStamp=r,b.prototype._getElementOffset=function(l){var g=l.getBoundingClientRect(),D=this._boundingRect,C=f(l),n={left:g.left-D.left-C.marginLeft,top:g.top-D.top-C.marginTop,right:D.right-g.right-C.marginRight,bottom:D.bottom-g.bottom-C.marginBottom};return n},b.prototype.handleEvent=function(g){var c="on"+g.type;this[c]&&this[c](g)},b.prototype.bindResize=function(){this.isResizeBound||(k.bind(B,"resize",this),this.isResizeBound=!0)},b.prototype.unbindResize=function(){this.isResizeBound&&k.unbind(B,"resize",this),this.isResizeBound=!1},b.prototype.onresize=function(){function g(){c.resize(),delete c.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var c=this;this.resizeTimeout=setTimeout(g,100)},b.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},b.prototype.needsResizeLayout=function(){var g=f(this.element),c=this.size&&g;return c&&g.innerWidth!==this.size.innerWidth},b.prototype.addItems=function(g){var c=this._itemize(g);return c.length&&(this.items=this.items.concat(c)),c},b.prototype.appended=function(g){var c=this.addItems(g);c.length&&(this.layoutItems(c,!0),this.reveal(c))},b.prototype.prepended=function(l){var g=this._itemize(l);if(g.length){var n=this.items.slice(0);this.items=g.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(g,!0),this.reveal(g),this.layoutItems(n)}},b.prototype.reveal=function(l){var g=l&&l.length;if(g){for(var C=0;g>C;C++){var n=l[C];n.reveal()}}},b.prototype.hide=function(l){var g=l&&l.length;if(g){for(var C=0;g>C;C++){var n=l[C];n.hide()}}},b.prototype.getItem=function(l){for(var g=0,C=this.items.length;C>g;g++){var n=this.items[g];if(n.element===l){return n}}},b.prototype.getItems=function(l){if(l&&l.length){for(var g=[],E=0,D=l.length;D>E;E++){var C=l[E],n=this.getItem(C);n&&g.push(n)}return g}},b.prototype.remove=function(n){n=y(n);var l=this.getItems(n);if(l&&l.length){this._itemsOn(l,"remove",function(){this.emitEvent("removeComplete",[this,l])});for(var E=0,D=l.length;D>E;E++){var C=l[E];C.remove(),x(C,this.items)}}},b.prototype.destroy=function(){var l=this.element.style;l.height="",l.position="",l.width="";for(var g=0,D=this.items.length;D>g;g++){var C=this.items[g];C.destroy()}this.unbindResize();var n=this.element.outlayerGUID;delete m[n],delete this.element.outlayerGUID,s&&s.removeData(this.element,this.constructor.namespace)},b.data=function(g){var c=g&&g.outlayerGUID;return c&&m[c]},b.create=function(g,n){function l(){b.apply(this,arguments)}return Object.create?l.prototype=Object.create(b.prototype):A(l.prototype,b.prototype),l.prototype.constructor=l,l.defaults=A({},b.defaults),A(l.defaults,n),l.prototype.settings={},l.namespace=g,l.data=b.data,l.Item=function(){d.apply(this,arguments)},l.Item.prototype=new d,j(function(){for(var L=w(g),K=u.querySelectorAll(".js-"+L),J="data-"+L+"-options",I=0,H=K.length;H>I;I++){var G,F=K[I],E=F.getAttribute(J);try{G=E&&JSON.parse(E)}catch(D){t&&t.error("Error parsing "+J+" on "+F.nodeName.toLowerCase()+(F.id?"#"+F.id:"")+": "+D);continue}var C=new l(F,G);s&&s.data(F,g,C)}}),s&&s.bridget&&s.bridget(g,l),l},b.Item=d,b}var u=B.document,t=B.console,s=B.jQuery,r=function(){},q=Object.prototype.toString,p="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(b){return b instanceof HTMLElement}:function(b){return b&&"object"==typeof b&&1===b.nodeType&&"string"==typeof b.nodeName},o=Array.prototype.indexOf?function(d,c){return d.indexOf(c)}:function(f,e){for(var h=0,g=f.length;g>h;h++){if(f[h]===e){return h}}return -1};"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","doc-ready/doc-ready","eventEmitter/EventEmitter","get-size/get-size","matches-selector/matches-selector","./item"],v):"object"==typeof exports?module.exports=v(require("eventie"),require("doc-ready"),require("wolfy87-eventemitter"),require("get-size"),require("desandro-matches-selector"),require("./item")):B.Outlayer=v(B.eventie,B.docReady,B.EventEmitter,B.getSize,B.matchesSelector,B.Outlayer.Item)}(window),function(e){function d(g,c){var h=g.create("masonry");return h.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var b=this.cols;for(this.colYs=[];b--;){this.colYs.push(0)}this.maxY=0},h.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var b=this.items[0],j=b&&b.element;this.columnWidth=j&&c(j).outerWidth||this.containerWidth}this.columnWidth+=this.gutter,this.cols=Math.floor((this.containerWidth+this.gutter)/this.columnWidth),this.cols=Math.max(this.cols,1)},h.prototype.getContainerWidth=function(){var b=this.options.isFitWidth?this.element.parentNode:this.element,j=c(b);this.containerWidth=j&&j.innerWidth},h.prototype._getItemLayoutPosition=function(w){w.getSize();var v=w.size.outerWidth%this.columnWidth,u=v&&1>v?"round":"ceil",t=Math[u](w.size.outerWidth/this.columnWidth);t=Math.min(t,this.cols);for(var s=this._getColGroup(t),r=Math.min.apply(Math,s),q=f(s,r),p={x:this.columnWidth*q,y:r},o=r+w.size.outerHeight,n=this.cols+1-s.length,m=0;n>m;m++){this.colYs[q+m]=o}return p},h.prototype._getColGroup=function(k){if(2>k){return this.colYs}for(var j=[],n=this.cols+1-k,m=0;n>m;m++){var l=this.colYs.slice(m,m+k);j[m]=Math.max.apply(Math,l)}return j},h.prototype._manageStamp=function(r){var q=c(r),p=this._getElementOffset(r),o=this.options.isOriginLeft?p.left:p.right,n=o+q.outerWidth,m=Math.floor(o/this.columnWidth);m=Math.max(0,m);var l=Math.floor(n/this.columnWidth);l-=n%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var k=(this.options.isOriginTop?p.top:p.bottom)+q.outerHeight,b=m;l>=b;b++){this.colYs[b]=Math.max(k,this.colYs[b])}},h.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var b={height:this.maxY};return this.options.isFitWidth&&(b.width=this._getContainerFitWidth()),b},h.prototype._getContainerFitWidth=function(){for(var k=0,j=this.cols;--j&&0===this.colYs[j];){k++}return(this.cols-k)*this.columnWidth-this.gutter},h.prototype.needsResizeLayout=function(){var b=this.containerWidth;return this.getContainerWidth(),b!==this.containerWidth},h}var f=Array.prototype.indexOf?function(g,c){return g.indexOf(c)}:function(h,g){for(var l=0,k=h.length;k>l;l++){var j=h[l];if(j===g){return l}}return -1};"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],d):"object"==typeof exports?module.exports=d(require("outlayer"),require("get-size")):e.Masonry=d(e.Outlayer,e.getSize)}(window);
/*! NProgress (c) 2013, Rico Sta. Cruz
 *  http://ricostacruz.com/nprogress */
;(function(a){if(typeof module==="function"){module.exports=a(this.jQuery||require("jquery"))}else{if(typeof define==="function"&&define.amd){define(["jquery"],function(b){return a(b)})}else{this.NProgress=a(this.jQuery)}}})(function(e){var a={};a.version="0.1.2";var b=a.settings={minimum:0.08,easing:"ease",positionUsing:"",speed:300,trickle:true,trickleRate:0.02,trickleSpeed:800,showSpinner:true,template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};a.configure=function(g){e.extend(b,g);return this};a.status=null;a.set=function(m){var h=a.isStarted();m=f(m,b.minimum,1);a.status=(m===1?null:m);var g=a.render(!h),k=g.find('[role="bar"]'),j=b.speed,l=b.easing;g[0].offsetWidth;g.queue(function(n){if(b.positionUsing===""){b.positionUsing=a.getPositioningCSS()}k.css(c(m,j,l));if(m===1){g.css({transition:"none",opacity:1});g[0].offsetWidth;setTimeout(function(){g.css({transition:"all "+j+"ms linear",opacity:0});setTimeout(function(){a.remove();n()},j)},j)}else{setTimeout(n,j)}});return this};a.isStarted=function(){return typeof a.status==="number"};a.start=function(){if(!a.status){a.set(0)}var g=function(){setTimeout(function(){if(!a.status){return}a.trickle();g()},b.trickleSpeed)};if(b.trickle){g()}return this};a.done=function(g){if(!g&&!a.status){return this}return a.inc(0.3+0.5*Math.random()).set(1)};a.inc=function(g){var h=a.status;if(!h){return a.start()}else{if(typeof g!=="number"){g=(1-h)*f(Math.random()*h,0.1,0.95)}h=f(h+g,0,0.994);return a.set(h)}};a.trickle=function(){return a.inc(Math.random()*b.trickleRate)};a.render=function(g){if(a.isRendered()){return e("#nprogress")}e("html").addClass("nprogress-busy");var j=e("<div id='nprogress'>").html(b.template);var h=g?"-100":d(a.status||0);j.find('[role="bar"]').css({transition:"all 0 linear",transform:"translate3d("+h+"%,0,0)"});if(!b.showSpinner){j.find('[role="spinner"]').remove()}j.appendTo(document.body);return j};a.remove=function(){e("html").removeClass("nprogress-busy");e("#nprogress").remove()};a.isRendered=function(){return(e("#nprogress").length>0)};a.getPositioningCSS=function(){var g=document.body.style;var h=("WebkitTransform" in g)?"Webkit":("MozTransform" in g)?"Moz":("msTransform" in g)?"ms":("OTransform" in g)?"O":"";if(h+"Perspective" in g){return"translate3d"}else{if(h+"Transform" in g){return"translate"}else{return"margin"}}};function f(j,h,g){if(j<h){return h}if(j>g){return g}return j}function d(g){return(-1+g)*100}function c(k,h,j){var g;if(b.positionUsing==="translate3d"){g={transform:"translate3d("+d(k)+"%,0,0)"}}else{if(b.positionUsing==="translate"){g={transform:"translate("+d(k)+"%,0)"}}else{g={"margin-left":d(k)+"%"}}}g.transition="all "+h+"ms "+j;return g}return a});
/*! ResponsiveSlides.js v1.54
 * http://responsiveslides.com
 * http://viljamis.com
 *
 * Copyright (c) 2011-2012 @viljamis
 * Available under the MIT license
 */
(function(c,b,a){c.fn.responsiveSlides=function(d){var e=c.extend({auto:true,speed:500,timeout:4000,pager:false,nav:false,random:false,pause:false,pauseControls:true,prevText:"Previous",nextText:"Next",maxwidth:"",navContainer:"",manualControls:"",namespace:"rslides",before:c.noop,after:c.noop},d);return this.each(function(){a++;var r=c(this),H,G,t,u,D,h,s=0,A=r.children(),n=A.size(),p=parseFloat(e.speed),l=parseFloat(e.timeout),o=parseFloat(e.maxwidth),w=e.namespace,E=w+a,v=w+"_nav "+E+"_nav",I=w+"_here",z=E+"_on",k=E+"_s",j=c("<ul class='"+w+"_tabs "+E+"_tabs' />"),m={"float":"left",position:"relative",opacity:1,zIndex:2},C={"float":"none",position:"absolute",opacity:0,zIndex:1},y=(function(){var K=document.body||document.documentElement;var L=K.style;var M="transition";if(typeof L[M]==="string"){return true}H=["Moz","Webkit","Khtml","O","ms"];M=M.charAt(0).toUpperCase()+M.substr(1);var J;for(J=0;J<H.length;J++){if(typeof L[H[J]+M]==="string"){return true}}return false})(),x=function(J){e.before(J);if(y){A.removeClass(z).css(C).eq(J).addClass(z).css(m);s=J;setTimeout(function(){e.after(J)},p)}else{A.stop().fadeOut(p,function(){c(this).removeClass(z).css(C).css("opacity",1)}).eq(J).fadeIn(p,function(){c(this).addClass(z).css(m);e.after(J);s=J})}};if(e.random){A.sort(function(){return(Math.round(Math.random())-0.5)});r.empty().append(A)}A.each(function(J){this.id=k+J});r.addClass(w+" "+E);if(d&&d.maxwidth){r.css("max-width",o)}A.hide().css(C).eq(0).addClass(z).css(m).show();if(y){A.show().css({"-webkit-transition":"opacity "+p+"ms ease-in-out","-moz-transition":"opacity "+p+"ms ease-in-out","-o-transition":"opacity "+p+"ms ease-in-out",transition:"opacity "+p+"ms ease-in-out"})}if(A.size()>1){if(l<p+100){return}if(e.pager&&!e.manualControls){var B=[];A.each(function(J){var K=J+1;B+="<li><a href='#' class='"+k+K+"'>"+K+"</a></li>"});j.append(B);if(d.navContainer){c(e.navContainer).append(j)}else{r.after(j)}}if(e.manualControls){j=c(e.manualControls);j.addClass(w+"_tabs "+E+"_tabs")}if(e.pager||e.manualControls){j.find("li").each(function(J){c(this).addClass(k+(J+1))})}if(e.pager||e.manualControls){h=j.find("a");G=function(J){h.closest("li").removeClass(I).eq(J).addClass(I)}}if(e.auto){t=function(){D=setInterval(function(){A.stop(true,true);var J=s+1<n?s+1:0;if(e.pager||e.manualControls){G(J)}x(J)},l)};t()}u=function(){if(e.auto){clearInterval(D);t()}};if(e.pause){r.hover(function(){clearInterval(D)},function(){u()})}if(e.pager||e.manualControls){h.bind("click",function(K){K.preventDefault();if(!e.pauseControls){u()}var J=h.index(this);if(s===J||c("."+z).queue("fx").length){return}G(J);x(J)}).eq(0).closest("li").addClass(I);if(e.pauseControls){h.hover(function(){clearInterval(D)},function(){u()})}}if(e.nav){var f="<a href='#' class='"+v+" prev'>"+semplice.gallery_prev+"</a><a href='#' class='"+v+" next'>"+semplice.gallery_next+"</a>";if(d.navContainer){c(e.navContainer).append(f)}else{r.after(f)}var g=c("."+E+"_nav"),F=g.filter(".prev");g.bind("click",function(N){N.preventDefault();var L=c("."+z);if(L.queue("fx").length){return}var J=A.index(L),K=J-1,M=J+1<n?s+1:0;x(c(this)[0]===F[0]?K:M);if(e.pager||e.manualControls){G(c(this)[0]===F[0]?K:M)}if(!e.pauseControls){u()}});if(e.pauseControls){g.hover(function(){clearInterval(D)},function(){u()})}}}if(typeof document.body.style.maxWidth==="undefined"&&d.maxwidth){var q=function(){r.css("width","100%");if(r.width()>o){r.css("width",o)}};q();c(b).bind("resize",function(){q()})}})}})(jQuery,this,0);(function(O,V,f,E,r){var ab="fullpage-wrapper";var D="."+ab;var u="fp-scrollable";var a="."+u;var N=".slimScrollBar";var w=".slimScrollRail";var x="fp-responsive";var S="fp-notransition";var B="fp-destroyed";var L="fp-viewing";var F="active";var z="."+F;var p=".section";var aa="fp-section";var A="."+aa;var c=A+z;var l=A+":first";var q=A+":last";var b="fp-tableCell";var t="."+b;var k="fp-nav";var K="#"+k;var M="fp-tooltip";var W="fp-show-active";var T=".slide";var g="fp-slide";var U="."+g;var m=U+z;var Z="fp-slides";var e="."+Z;var v="fp-slidesContainer";var H="."+v;var J="fp-table";var o="fp-slidesNav";var n="."+o;var d=n+" a";var y="fp-controlArrow";var Q="."+y;var C="fp-prev";var G="."+C;var j=y+" "+C;var h=Q+G;var Y="fp-next";var P="."+Y;var R=y+" "+Y;var s=Q+P;var X=O(V);var I=O(f);O.fn.fullpage=function(a0){var bd=O("html, body");var aP=O("body");var ax=O.fn.fullpage;a0=O.extend({menu:false,anchors:[],navigation:false,navigationPosition:"right",navigationTooltips:[],showActiveTooltip:false,slidesNavigation:false,slidesNavPosition:"bottom",scrollBar:false,css3:true,scrollingSpeed:700,autoScrolling:true,fitToSection:true,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:false,loopTop:false,loopHorizontal:true,continuousVertical:false,normalScrollElements:null,scrollOverflow:false,touchSensitivity:5,normalScrollElementTouchThreshold:5,keyboardScrolling:true,animateAnchor:true,recordHistory:true,controlArrows:true,controlArrowColor:"#fff",verticalCentered:true,resize:false,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,sectionSelector:p,slideSelector:T,afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null},a0);bp();O.extend(O.easing,{easeInOutCubic:function(bJ,bK,bI,bM,bL){if((bK/=bL/2)<1){return bM/2*bK*bK*bK+bI}return bM/2*((bK-=2)*bK*bK+2)+bI}});O.extend(O.easing,{easeInQuart:function(bJ,bK,bI,bM,bL){return bM*(bK/=bL)*bK*bK*bK+bI}});ax.setAutoScrolling=function(bK,bJ){bt("autoScrolling",bK,bJ);var bI=O(c);if(a0.autoScrolling&&!a0.scrollBar){bd.css({overflow:"hidden",height:"100%"});ax.setRecordHistory(a0.recordHistory,"internal");bb.css({"-ms-touch-action":"none","touch-action":"none"});if(bI.length){bg(bI.position().top)}}else{bd.css({overflow:"visible",height:"initial"});ax.setRecordHistory(false,"internal");bb.css({"-ms-touch-action":"","touch-action":""});bg(0);if(bI.length){bd.scrollTop(bI.position().top)}}};ax.setRecordHistory=function(bJ,bI){bt("recordHistory",bJ,bI)};ax.setScrollingSpeed=function(bJ,bI){bt("scrollingSpeed",bJ,bI)};ax.setFitToSection=function(bJ,bI){bt("fitToSection",bJ,bI)};ax.setMouseWheelScrolling=function(bI){if(bI){ai()}else{aK()}};ax.setAllowScrolling=function(bI,bJ){if(typeof bJ!="undefined"){bJ=bJ.replace(" ","").split(",");O.each(bJ,function(bK,bL){aA(bI,bL)})}else{if(bI){ax.setMouseWheelScrolling(true);ba()}else{ax.setMouseWheelScrolling(false);a4()}}};ax.setKeyboardScrolling=function(bI){a0.keyboardScrolling=bI};ax.moveSectionUp=function(){var bI=O(c).prev(A);if(!bI.length&&(a0.loopTop||a0.continuousVertical)){bI=O(A).last()}if(bI.length){bq(bI,null,true)}};ax.moveSectionDown=function(){var bI=O(c).next(A);if(!bI.length&&(a0.loopBottom||a0.continuousVertical)){bI=O(A).first()}if(bI.length){bq(bI,null,false)}};ax.moveTo=function(bK,bI){var bJ="";if(isNaN(bK)){bJ=O('[data-anchor="'+bK+'"]')}else{bJ=O(A).eq((bK-1))}if(typeof bI!=="undefined"){ah(bK,bI)}else{if(bJ.length>0){bq(bJ)}}};ax.moveSlideRight=function(){a9("next")};ax.moveSlideLeft=function(){a9("prev")};ax.reBuild=function(bJ){if(bb.hasClass(B)){return}aH=true;var bK=X.width();bA=X.height();if(a0.resize){aL(bA,bK)}O(A).each(function(){var bM=O(this).find(e);var bL=O(this).find(U);if(a0.verticalCentered){O(this).find(t).css("height",aG(O(this))+"px")}O(this).css("height",bA+"px");if(a0.scrollOverflow){if(bL.length){bL.each(function(){aR(O(this))})}else{aR(O(this))}}if(bL.length){a2(bM,bM.find(m))}});var bI=O(c);if(bI.index(A)){bq(bI)}aH=false;O.isFunction(a0.afterResize)&&bJ&&a0.afterResize.call(bb);O.isFunction(a0.afterReBuild)&&!bJ&&a0.afterReBuild.call(bb)};var bw=false;var am=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/);var ae=(("ontouchstart" in V)||(navigator.msMaxTouchPoints>0)||(navigator.maxTouchPoints));var bb=O(this);var bA=X.height();var aH=false;var ay;var a1;var a8=true;var ad=[];var au;var av={up:true,down:true,left:true,right:true};var aY=O.extend(true,{},a0);ax.setAllowScrolling(true);bb.removeClass(B);if(a0.css3){a0.css3=a7()}if(O(this).length){bb.css({height:"100%",position:"relative"});bb.addClass(ab)}else{bz("error","Error! Fullpage.js needs to be initialized with a selector. For example: $('#myContainer').fullpage();")}O(a0.sectionSelector).each(function(){O(this).addClass(aa)});O(a0.slideSelector).each(function(){O(this).addClass(g)});if(a0.navigation){aV()}O(A).each(function(bI){var bN=O(this);var bL=O(this).find(U);var bK=bL.length;if(!bI&&O(c).length===0){O(this).addClass(F)}O(this).css("height",bA+"px");if(a0.paddingTop){O(this).css("padding-top",a0.paddingTop)}if(a0.paddingBottom){O(this).css("padding-bottom",a0.paddingBottom)}if(typeof a0.sectionsColor[bI]!=="undefined"){O(this).css("background-color",a0.sectionsColor[bI])}if(typeof a0.anchors[bI]!=="undefined"){O(this).attr("data-anchor",a0.anchors[bI]);if(O(this).hasClass(F)){aC(a0.anchors[bI],bI)}}if(bK>1){var bM=bK*100;var bO=100/bK;bL.wrapAll('<div class="'+v+'" />');bL.parent().wrap('<div class="'+Z+'" />');O(this).find(H).css("width",bM+"%");if(a0.controlArrows){an(O(this))}if(a0.slidesNavigation){aE(O(this),bK)}bL.each(function(bP){O(this).css("width",bO+"%");if(a0.verticalCentered){aW(O(this))}});var bJ=bN.find(m);if(!bJ.length){bL.eq(0).addClass(F)}else{aO(bJ)}}else{if(a0.verticalCentered){aW(O(this))}}}).promise().done(function(){ax.setAutoScrolling(a0.autoScrolling,"internal");var bL=O(c).find(m);if(bL.length&&(O(c).index(A)!==0||(O(c).index(A)===0&&bL.index()!==0))){aO(bL)}if(a0.fixedElements&&a0.css3){O(a0.fixedElements).appendTo(aP)}if(a0.navigation){au.css("margin-top","-"+(au.height()/2)+"px");au.find("li").eq(O(c).index(A)).find("a").addClass(F)}if(a0.menu&&a0.css3&&O(a0.menu).closest(D).length){O(a0.menu).appendTo(aP)}if(a0.scrollOverflow){if(f.readyState==="complete"){aZ()}X.on("load",aZ)}else{O.isFunction(a0.afterRender)&&a0.afterRender.call(bb)}bC();if(!a0.animateAnchor){var bJ=V.location.hash.replace("#","").split("/");var bI=bJ[0];if(bI.length){var bK=O('[data-anchor="'+bI+'"]');if(bK.length){if(a0.autoScrolling){bg(bK.position().top)}else{bg(0);bd.scrollTop(bK.position().top)}aC(bI,null);O.isFunction(a0.afterLoad)&&a0.afterLoad.call(bK,bI,(bK.index(A)+1));bK.addClass(F).siblings().removeClass(F)}}}aJ();X.on("load",function(){bD()})});function an(bI){bI.find(e).after('<div class="'+j+'"></div><div class="'+R+'"></div>');if(a0.controlArrowColor!="#fff"){bI.find(s).css("border-color","transparent transparent transparent "+a0.controlArrowColor);bI.find(h).css("border-color","transparent "+a0.controlArrowColor+" transparent transparent")}if(!a0.loopHorizontal){bI.find(h).hide()}}function aV(){aP.append('<div id="'+k+'"><ul></ul></div>');au=O(K);au.addClass(function(){return a0.showActiveTooltip?W+" "+a0.navigationPosition:a0.navigationPosition});for(var bJ=0;bJ<O(A).length;bJ++){var bK="";if(a0.anchors.length){bK=a0.anchors[bJ]}var bI='<li><a href="#'+bK+'"><span></span></a>';var bL=a0.navigationTooltips[bJ];if(typeof bL!=="undefined"&&bL!==""){bI+='<div class="'+M+" "+a0.navigationPosition+'">'+bL+"</div>"}bI+="</li>";au.find("ul").append(bI)}}function aZ(){O(A).each(function(){var bI=O(this).find(U);if(bI.length){bI.each(function(){aR(O(this))})}else{aR(O(this))}});O.isFunction(a0.afterRender)&&a0.afterRender.call(this)}var bE;var bc;var ar=false;X.on("scroll",bk);function bk(){var bI;if(!a0.autoScrolling||a0.scrollBar){var bL=X.scrollTop();var bO=0;var bR=E.abs(bL-f.querySelectorAll(A)[0].offsetTop);var bX=f.querySelectorAll(A);for(var bM=0;bM<bX.length;++bM){var bU=bX[bM];var bQ=E.abs(bL-bU.offsetTop);if(bQ<bR){bO=bM;bR=bQ}}bI=O(bX).eq(bO)}if(!a0.autoScrolling||a0.scrollBar){if(!bI.hasClass(F)){ar=true;var bJ=O(c);var bW=bJ.index(A)+1;var bN=at(bI);var bK=bI.data("anchor");var bT=bI.index(A)+1;var bV=bI.find(m);if(bV.length){var bP=bV.data("anchor");var bS=bV.index()}if(a8){bI.addClass(F).siblings().removeClass(F);O.isFunction(a0.onLeave)&&a0.onLeave.call(bJ,bW,bT,bN);O.isFunction(a0.afterLoad)&&a0.afterLoad.call(bI,bK,bT);aC(bK,bT-1);if(a0.anchors.length){ay=bK;bf(bS,bP,bK,bT)}}clearTimeout(bE);bE=setTimeout(function(){ar=false},100)}if(a0.fitToSection){clearTimeout(bc);bc=setTimeout(function(){if(a8){if(O(c).is(bI)){aH=true}bq(bI);aH=false}},1000)}}}function af(bI){if(bI.find(e).length){return bI.find(m).find(a)}return bI.find(a)}function bo(bK,bL){if(!av[bK]){return}var bI,bJ;if(bK=="down"){bI="bottom";bJ=ax.moveSectionDown}else{bI="top";bJ=ax.moveSectionUp}if(bL.length>0){if(bs(bI,bL)){bJ()}else{return true}}else{bJ()}}var bl=0;var bm=0;var bh=0;var bi=0;function br(bK){var bM=bK.originalEvent;if(!ap(bK.target)&&by(bM)){if(a0.autoScrolling){bK.preventDefault()}var bI=O(c);var bL=af(bI);if(a8&&!bw){var bJ=ag(bM);bh=bJ.y;bi=bJ.x;if(bI.find(e).length&&E.abs(bm-bi)>(E.abs(bl-bh))){if(E.abs(bm-bi)>(X.width()/100*a0.touchSensitivity)){if(bm>bi){if(av.right){ax.moveSlideRight()}}else{if(av.left){ax.moveSlideLeft()}}}}else{if(a0.autoScrolling){if(E.abs(bl-bh)>(X.height()/100*a0.touchSensitivity)){if(bl>bh){bo("down",bL)}else{if(bh>bl){bo("up",bL)}}}}}}}}function ap(bK,bI){bI=bI||0;var bJ=O(bK).parent();if(bI<a0.normalScrollElementTouchThreshold&&bJ.is(a0.normalScrollElements)){return true}else{if(bI==a0.normalScrollElementTouchThreshold){return false}else{return ap(bJ,++bI)}}}function by(bI){return typeof bI.pointerType==="undefined"||bI.pointerType!="mouse"}function bG(bJ){var bK=bJ.originalEvent;if(a0.fitToSection){bd.stop()}if(by(bK)){var bI=ag(bK);bl=bI.y;bm=bI.x}}function aM(bM,bL){var bK=0;var bI=bM.slice(E.max(bM.length-bL,1));for(var bJ=0;bJ<bI.length;bJ++){bK=bK+bI[bJ]}return E.ceil(bK/bL)}var al=new Date().getTime();function aQ(bN){var bK=new Date().getTime();if(a0.autoScrolling){bN=V.event||bN;var bP=bN.wheelDelta||-bN.deltaY||-bN.detail;var bQ=E.max(-1,E.min(1,bP));if(ad.length>149){ad.shift()}ad.push(E.abs(bP));if(a0.scrollBar){bN.preventDefault?bN.preventDefault():bN.returnValue=false}var bR=O(c);var bO=af(bR);var bI=bK-al;al=bK;if(bI>200){ad=[]}if(a8){var bM=aM(ad,10);var bJ=aM(ad,70);var bL=bM>=bJ;if(bL){if(bQ<0){bo("down",bO)}else{bo("up",bO)}}}return false}if(a0.fitToSection){bd.stop()}}function a9(bL){var bI=O(c);var bK=bI.find(e);if(!bK.length||bw){return}var bM=bK.find(m);var bJ=null;if(bL==="prev"){bJ=bM.prev(U)}else{bJ=bM.next(U)}if(!bJ.length){if(!a0.loopHorizontal){return}if(bL==="prev"){bJ=bM.siblings(":last")}else{bJ=bM.siblings(":first")}}bw=true;a2(bK,bJ)}function a6(){O(m).each(function(){aO(O(this))})}function bq(bL,bO,bJ){var bK=bL.position();if(typeof bK==="undefined"){return}var bI={element:bL,callback:bO,isMovementUp:bJ,dest:bK,dtop:bK.top,yMovement:at(bL),anchorLink:bL.data("anchor"),sectionIndex:bL.index(A),activeSlide:bL.find(m),activeSection:O(c),leavingSection:O(c).index(A)+1,localIsResizing:aH};if((bI.activeSection.is(bL)&&!aH)||(a0.scrollBar&&X.scrollTop()===bI.dtop)){return}if(bI.activeSlide.length){var bN=bI.activeSlide.data("anchor");var bM=bI.activeSlide.index()}if(a0.autoScrolling&&a0.continuousVertical&&typeof(bI.isMovementUp)!=="undefined"&&((!bI.isMovementUp&&bI.yMovement=="up")||(bI.isMovementUp&&bI.yMovement=="down"))){bI=bB(bI)}bL.addClass(F).siblings().removeClass(F);a8=false;bf(bM,bN,bI.anchorLink,bI.sectionIndex);O.isFunction(a0.onLeave)&&!bI.localIsResizing&&a0.onLeave.call(bI.activeSection,bI.leavingSection,(bI.sectionIndex+1),bI.yMovement);bj(bI);ay=bI.anchorLink;aC(bI.anchorLink,bI.sectionIndex)}function bj(bI){if(a0.css3&&a0.autoScrolling&&!a0.scrollBar){var bJ="translate3d(0px, -"+bI.dtop+"px, 0px)";a5(bJ,true);setTimeout(function(){bu(bI)},a0.scrollingSpeed)}else{var bK=aD(bI);O(bK.element).animate(bK.options,a0.scrollingSpeed,a0.easing).promise().done(function(){bu(bI)})}}function aD(bJ){var bI={};if(a0.autoScrolling&&!a0.scrollBar){bI.options={top:-bJ.dtop};bI.element=D}else{bI.options={scrollTop:bJ.dtop};bI.element="html, body"}return bI}function bB(bI){if(!bI.isMovementUp){O(c).after(bI.activeSection.prevAll(A).get().reverse())}else{O(c).before(bI.activeSection.nextAll(A))}bg(O(c).position().top);a6();bI.wrapAroundElements=bI.activeSection;bI.dest=bI.element.position();bI.dtop=bI.dest.top;bI.yMovement=at(bI.element);return bI}function aN(bI){if(!bI.wrapAroundElements||!bI.wrapAroundElements.length){return}if(bI.isMovementUp){O(l).before(bI.wrapAroundElements)}else{O(q).after(bI.wrapAroundElements)}bg(O(c).position().top);a6()}function bu(bI){aN(bI);O.isFunction(a0.afterLoad)&&!bI.localIsResizing&&a0.afterLoad.call(bI.element,bI.anchorLink,(bI.sectionIndex+1));a8=true;setTimeout(function(){O.isFunction(bI.callback)&&bI.callback.call(this)},600)}function bD(){var bJ=V.location.hash.replace("#","").split("/");var bK=bJ[0];var bI=bJ[1];if(bK){ah(bK,bI)}}X.on("hashchange",az);function az(){if(!ar){var bK=V.location.hash.replace("#","").split("/");var bM=bK[0];var bI=bK[1];if(bM.length){var bL=(typeof ay==="undefined");var bJ=(typeof ay==="undefined"&&typeof bI==="undefined"&&!bw);if((bM&&bM!==ay)&&!bL||bJ||(!bw&&a1!=bI)){ah(bM,bI)}}}}I.keydown(bv);var a3;function bv(bL){clearTimeout(a3);var bI=O(f.activeElement);if(!bI.is("textarea")&&!bI.is("input")&&!bI.is("select")&&a0.keyboardScrolling&&a0.autoScrolling){var bK=bL.which;var bJ=[40,38,32,33,34];if(O.inArray(bK,bJ)>-1){bL.preventDefault()}a3=setTimeout(function(){aT(bL)},150)}}function aT(bJ){var bI=bJ.shiftKey;switch(bJ.which){case 38:case 33:ax.moveSectionUp();break;case 32:if(bI){ax.moveSectionUp();break}case 40:case 34:ax.moveSectionDown();break;case 36:ax.moveTo(1);break;case 35:ax.moveTo(O(A).length);break;case 37:ax.moveSlideLeft();break;case 39:ax.moveSlideRight();break;default:return}}bb.mousedown(function(bI){if(bI.which==2){aS=bI.pageY;bb.on("mousemove",bF)}});bb.mouseup(function(bI){if(bI.which==2){bb.off("mousemove")}});var aS=0;function bF(bI){if(a8){if(bI.pageY<aS){ax.moveSectionUp()}else{if(bI.pageY>aS){ax.moveSectionDown()}}}aS=bI.pageY}I.on("click touchstart",K+" a",function(bJ){bJ.preventDefault();var bI=O(this).parent().index();bq(O(A).eq(bI))});I.on("click touchstart",d,function(bK){bK.preventDefault();var bJ=O(this).closest(A).find(e);var bI=bJ.find(U).eq(O(this).closest("li").index());a2(bJ,bI)});if(a0.normalScrollElements){I.on("mouseenter",a0.normalScrollElements,function(){ax.setMouseWheelScrolling(false)});I.on("mouseleave",a0.normalScrollElements,function(){ax.setMouseWheelScrolling(true)})}O(A).on("click touchstart",Q,function(){if(O(this).hasClass(C)){ax.moveSlideLeft()}else{ax.moveSlideRight()}});function a2(bJ,bN){var bW=bN.position();var bS=bN.index();var bV=bJ.closest(A);var bT=bV.index(A);var bP=bV.data("anchor");var bO=bV.find(n);var bK=ak(bN);var bQ=aH;if(a0.onSlideLeave){var bM=bV.find(m);var bL=bM.index();var bU=bn(bL,bS);if(!bQ&&bU!=="none"){O.isFunction(a0.onSlideLeave)&&a0.onSlideLeave.call(bM,bP,(bT+1),bL,bU)}}bN.addClass(F).siblings().removeClass(F);if(!a0.loopHorizontal&&a0.controlArrows){bV.find(h).toggle(bS!==0);bV.find(s).toggle(!bN.is(":last-child"))}if(bV.hasClass(F)){bf(bS,bK,bP,bT)}var bI=function(){if(!bQ){O.isFunction(a0.afterSlideLoad)&&a0.afterSlideLoad.call(bN,bP,(bT+1),bK,bS)}bw=false};if(a0.css3){var bR="translate3d(-"+bW.left+"px, 0px, 0px)";aX(bJ.find(H),a0.scrollingSpeed>0).css(be(bR));setTimeout(function(){bI()},a0.scrollingSpeed,a0.easing)}else{bJ.animate({scrollLeft:bW.left},a0.scrollingSpeed,a0.easing,function(){bI()})}bO.find(z).removeClass(F);bO.find("li").eq(bS).find("a").addClass(F)}X.resize(aF);var bH=bA;var ac;function aF(){bC();if(am){var bI=O(f.activeElement);if(!bI.is("textarea")&&!bI.is("input")&&!bI.is("select")){var bJ=X.height();if(E.abs(bJ-bH)>(20*E.max(bH,bJ)/100)){ax.reBuild(true);bH=bJ}}}else{clearTimeout(ac);ac=setTimeout(function(){ax.reBuild(true)},500)}}function bC(){if(a0.responsive){var bI=bb.hasClass(x);if(X.width()<a0.responsive){if(!bI){ax.setAutoScrolling(false,"internal");ax.setFitToSection(false,"internal");O(K).hide();bb.addClass(x)}}else{if(bI){ax.setAutoScrolling(aY.autoScrolling,"internal");ax.setFitToSection(aY.autoScrolling,"internal");O(K).show();bb.removeClass(x)}}}}function aX(bI){var bJ="all "+a0.scrollingSpeed+"ms "+a0.easingcss3;bI.removeClass(S);return bI.css({"-webkit-transition":bJ,transition:bJ})}function bx(bI){return bI.addClass(S)}function aL(bP,bL){var bO=825;var bK=900;if(bP<bO||bL<bK){var bN=(bP*100)/bO;var bM=(bL*100)/bK;var bJ=E.min(bN,bM);var bI=bJ.toFixed(2);aP.css("font-size",bI+"%")}else{aP.css("font-size","100%")}}function aI(bI,bJ){if(a0.navigation){O(K).find(z).removeClass(F);if(bI){O(K).find('a[href="#'+bI+'"]').addClass(F)}else{O(K).find("li").eq(bJ).find("a").addClass(F)}}}function aU(bI){if(a0.menu){O(a0.menu).find(z).removeClass(F);O(a0.menu).find('[data-menuanchor="'+bI+'"]').addClass(F)}}function aC(bJ,bI){aU(bJ);aI(bJ,bI)}function bs(bI,bJ){if(bI==="top"){return !bJ.scrollTop()}else{if(bI==="bottom"){return bJ.scrollTop()+1+bJ.innerHeight()>=bJ[0].scrollHeight}}}function at(bJ){var bI=O(c).index(A);var bK=bJ.index(A);if(bI==bK){return"none"}if(bI>bK){return"up"}return"down"}function bn(bI,bJ){if(bI==bJ){return"none"}if(bI>bJ){return"left"}return"right"}function aR(bI){bI.css("overflow","hidden");var bM=bI.closest(A);var bL=bI.find(a);var bK;if(bL.length){bK=bL.get(0).scrollHeight}else{bK=bI.get(0).scrollHeight;if(a0.verticalCentered){bK=bI.find(t).get(0).scrollHeight}}var bJ=bA-parseInt(bM.css("padding-bottom"))-parseInt(bM.css("padding-top"));if(bK>bJ){if(bL.length){bL.css("height",bJ+"px").parent().css("height",bJ+"px")}else{if(a0.verticalCentered){bI.find(t).wrapInner('<div class="'+u+'" />')}else{bI.wrapInner('<div class="'+u+'" />')}bI.find(a).slimScroll({allowPageScroll:true,height:bJ+"px",size:"10px",alwaysVisible:true})}}else{aj(bI)}bI.css("overflow","")}function aj(bI){bI.find(a).children().first().unwrap().unwrap();bI.find(N).remove();bI.find(w).remove()}function aW(bI){bI.addClass(J).wrapInner('<div class="'+b+'" style="height:'+aG(bI)+'px;" />')}function aG(bJ){var bK=bA;if(a0.paddingTop||a0.paddingBottom){var bL=bJ;if(!bL.hasClass(aa)){bL=bJ.closest(A)}var bI=parseInt(bL.css("padding-top"))+parseInt(bL.css("padding-bottom"));bK=(bA-bI)}return bK}function a5(bI,bJ){if(bJ){aX(bb)}else{bx(bb)}bb.css(be(bI));setTimeout(function(){bb.removeClass(S)},10)}function ah(bJ,bI){var bK;if(typeof bI==="undefined"){bI=0}if(isNaN(bJ)){bK=O('[data-anchor="'+bJ+'"]')}else{bK=O(A).eq((bJ-1))}if(bJ!==ay&&!bK.hasClass(F)){bq(bK,function(){aB(bK,bI)})}else{aB(bK,bI)}}function aB(bL,bI){if(typeof bI!="undefined"){var bK=bL.find(e);var bJ=bK.find('[data-anchor="'+bI+'"]');if(!bJ.length){bJ=bK.find(U).eq(bI)}if(bJ.length){a2(bK,bJ)}}}function aE(bK,bJ){bK.append('<div class="'+o+'"><ul></ul></div>');var bL=bK.find(n);bL.addClass(a0.slidesNavPosition);for(var bI=0;bI<bJ;bI++){bL.find("ul").append('<li><a href="#"><span></span></a></li>')}bL.css("margin-left","-"+(bL.width()/2)+"px");bL.find("li").first().find("a").addClass(F)}function bf(bL,bM,bI,bK){var bJ="";if(a0.anchors.length){if(bL){if(typeof bI!=="undefined"){bJ=bI}if(typeof bM==="undefined"){bM=bL}a1=bM;aq(bJ+"/"+bM)}else{if(typeof bL!=="undefined"){a1=bM;aq(bI)}else{aq(bI)}}}aJ()}function aq(bI){if(a0.recordHistory){location.hash=bI}else{if(am||ae){history.replaceState(r,r,"#"+bI)}else{var bJ=V.location.href.split("#")[0];V.location.replace(bJ+"#"+bI)}}}function ak(bI){var bK=bI.data("anchor");var bJ=bI.index(U);if(typeof bK==="undefined"){bK=bJ}return bK}function aJ(){var bM=O(c);var bI=bM.find(m);var bK=bM.data("anchor");var bO=ak(bI);var bL=bM.index(A);var bN=String(bL);if(a0.anchors.length){bN=bK}if(bI.length){bN=bN+"-"+bO}bN=bN.replace("/","-").replace("#","");var bJ=new RegExp("\\b\\s?"+L+"-[^\\s]+\\b","g");aP[0].className=aP[0].className.replace(bJ,"");aP.addClass(L+"-"+bN)}function a7(){var bK=f.createElement("p"),bL,bJ={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};f.body.insertBefore(bK,null);for(var bI in bJ){if(bK.style[bI]!==r){bK.style[bI]="translate3d(1px,1px,1px)";bL=V.getComputedStyle(bK).getPropertyValue(bJ[bI])}}f.body.removeChild(bK);return(bL!==r&&bL.length>0&&bL!=="none")}function aK(){if(f.addEventListener){f.removeEventListener("mousewheel",aQ,false);f.removeEventListener("wheel",aQ,false)}else{f.detachEvent("onmousewheel",aQ)}}function ai(){if(f.addEventListener){f.addEventListener("mousewheel",aQ,false);f.addEventListener("wheel",aQ,false)}else{f.attachEvent("onmousewheel",aQ)}}function ba(){if(am||ae){var bI=ao();I.off("touchstart "+bI.down).on("touchstart "+bI.down,bG);I.off("touchmove "+bI.move).on("touchmove "+bI.move,br)}}function a4(){if(am||ae){var bI=ao();I.off("touchstart "+bI.down);I.off("touchmove "+bI.move)}}function ao(){var bI;if(V.PointerEvent){bI={down:"pointerdown",move:"pointermove"}}else{bI={down:"MSPointerDown",move:"MSPointerMove"}}return bI}function ag(bJ){var bI=[];bI.y=(typeof bJ.pageY!=="undefined"&&(bJ.pageY||bJ.pageX)?bJ.pageY:bJ.touches[0].pageY);bI.x=(typeof bJ.pageX!=="undefined"&&(bJ.pageY||bJ.pageX)?bJ.pageX:bJ.touches[0].pageX);if(ae&&by(bJ)){bI.y=bJ.touches[0].pageY;bI.x=bJ.touches[0].pageX}return bI}function aO(bI){ax.setScrollingSpeed(0,"internal");a2(bI.closest(e),bI);ax.setScrollingSpeed(aY.scrollingSpeed,"internal")}function bg(bJ){if(a0.scrollBar){bb.scrollTop(bJ)}else{if(a0.css3){var bI="translate3d(0px, -"+bJ+"px, 0px)";a5(bI,false)}else{bb.css("top",-bJ)}}}function be(bI){return{"-webkit-transform":bI,"-moz-transform":bI,"-ms-transform":bI,transform:bI}}function aA(bI,bJ){switch(bJ){case"up":av.up=bI;break;case"down":av.down=bI;break;case"left":av.left=bI;break;case"right":av.right=bI;break;case"all":ax.setAllowScrolling(bI)}}ax.destroy=function(bI){ax.setAutoScrolling(false,"internal");ax.setAllowScrolling(false);ax.setKeyboardScrolling(false);bb.addClass(B);X.off("scroll",bk).off("hashchange",az).off("resize",aF);I.off("click",K+" a").off("mouseenter",K+" li").off("mouseleave",K+" li").off("click",d).off("mouseover",a0.normalScrollElements).off("mouseout",a0.normalScrollElements);O(A).off("click",Q);if(bI){aw()}};function aw(){bg(0);O(K+", "+n+", "+Q).remove();O(A).css({height:"","background-color":"",padding:""});O(U).css({width:""});bb.css({height:"",position:"","-ms-touch-action":"","touch-action":""});O(A+", "+U).each(function(){aj(O(this));O(this).removeClass(J+" "+F)});bx(bb);bb.find(t+", "+H+", "+e).each(function(){O(this).replaceWith(this.childNodes)});bd.scrollTop(0)}function bt(bI,bK,bJ){a0[bI]=bK;if(bJ!=="internal"){aY[bI]=bK}}function bp(){if(a0.continuousVertical&&(a0.loopTop||a0.loopBottom)){a0.continuousVertical=false;bz("warn","Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")}if(a0.continuousVertical&&a0.scrollBar){a0.continuousVertical=false;bz("warn","Option `scrollBar` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")}O.each(a0.anchors,function(bJ,bI){if(O("#"+bI).length||O('[name="'+bI+'"]').length){bz("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE).")}})}function bz(bI,bJ){console&&console[bI]&&console[bI]("fullPage: "+bJ)}}})(jQuery,window,document,Math);(function(f){f.fn.showdelay=function(l){var n=0;var m=0;return this.each(function(){f(this).delay(n).transition({opacity:"1"},700,"ease");n+=200;m++;if(m===l){NProgress.done()}})};f.fn.showMenuItems=function(){var m=0;var l=0;return this.each(function(){f(this).delay(m).transition({translate:["0px","0px"],opacity:1},350);m+=80})};function h(o,n){var l=f("header").height();var m=f("#navbar").height();if(o==="slide-up"){f("header").transition({opacity:1,top:-l},n,"snap")}else{if(o==="slide-down"){f("header").transition({opacity:1,top:0},n,"snap")}}}function j(){var l=false;(function(m){if(/(android|bb\d+|meego).+mobile|android|ipad|playbook|silk|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(m)||/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(m.substr(0,4))){l=true}})(navigator.userAgent||navigator.vendor||window.opera);return l}var b=f("body").hasClass("no-transitions");var a="#fullscreen-menu";var g=f(".cover-image").data("image-zoom");var d=f(a).hasClass("full-height");var c=0;var e=750;var k=f("header").height();if(!d){c="-"+f(a).height()+"px";e=550}f(a).css("top",c);f(document).ready(function(){if(j()){FastClick.attach(document.body)}var A=function(){f('<div class="lightbox-overlay"></div>').appendTo("body")};var D=function(){f(".lightbox-overlay").remove()};f(".gallery-icon a").each(function(){var H=f(this).attr("href").slice(-1);if(H!=="/"){f(this).attr("data-rel","lightbox")}});var r=f("a[data-rel^=lightbox]").imageLightbox({selector:'id="imagelightbox"',allowedTypes:"png|jpg|jpeg|gif",animationSpeed:250,preloadNext:true,enableKeyboard:true,quitOnEnd:false,quitOnImgClick:false,quitOnDocClick:true,onStart:function(){A()},onEnd:function(){D()},onLoadStart:false,onLoadEnd:false});if(!b){var t="slide-down";if(f("body").hasClass("is-cover-slider")&&f("body").hasClass("start-at-content")){h(t,0)}else{h(t,900)}}var m=f("#navbar-bg").data("navbar-opacity");if(f(window).scrollTop()>=f(".fullscreen-cover").height()-(f("#navbar-bg").height()+20)){f("#navbar-bg").removeClass("transparent").addClass("navbar").css("opacity",m)}function C(){var K=f(".menu-inner nav").height();var J=parseInt(f(".menu-inner nav").css("paddingTop"))*2;var I=f(".follow-links").height();var H=f(".menu-inner nav").position().top+f(".menu-inner nav").outerHeight(true);K=K+J+I+k;if(K>=f(window).height()){if(!d){f(a).css("overflowY","scroll")}f(".menu-inner nav").addClass("align-top");f(".follow-links").addClass("no-align")}else{if(!d){f(a).css("overflowY","auto")}f(".menu-inner nav").removeClass("align-top");f(".follow-links").removeClass("no-align")}}function v(H){if(H==="open"){f("header").appendTo(a).css("position","absolute");if(d){var J=f(window).width();f("body").addClass("open-nav");var K=f(window).width();var I=J*100/K;f("#wrapper").css("width",I+"%");f(".cover-image").css("backgroundAttachment","scroll")}f(".overlay").removeAttr("disabled");f(".close-nav").removeAttr("disabled")}else{f(a).css("z-index","-1");if(d){f(".menu-inner nav ul li").css({transform:"translate(0px,30px)",opacity:0})}f(".open-nav").removeAttr("disabled")}}var n;var m;f(document).on("click","div.controls a.open-nav",function(){f("div.controls a.open-nav").attr({"class":"close-nav",disabled:"disabled"});f(".overlay").attr("disabled","disabled");n=f("#navbar-bg").attr("class");m=f("#navbar-bg").css("opacity");f("#navbar-bg").attr("class","navbar").css("opacity",1);if(f(".follow-links ul li").length===0){f(".follow-links").hide()}f(".menu-icon").hide();C();if(!d){f(".overlay").css("position","fixed");f(".overlay").css("display","block").transition({opacity:"0.6"},300,"ease").addClass("close-menu");f(a).stop().css("z-index","101").transition({top:0,opacity:1},e,"easeOutQuart",function(){v("open")})}else{f(a).stop().css("z-index","101").transition({opacity:1},350,function(){v("open")});setTimeout(function(){f(".menu-inner nav ul li").showMenuItems()},50)}});f(document).on("click",".close-menu, div.controls a.close-nav",function(){if(f(this).attr("disabled")!=="disabled"){if(f(".nav-wrapper .standard").length>0){f("div.controls a.close-nav").attr({"class":"open-nav menu-responsive",disabled:"disabled"})}else{f("div.controls a.close-nav").attr({"class":"open-nav",disabled:"disabled"})}var H=e-200;f("#navbar-bg").attr("class",n).css("opacity",m);f(".menu-icon").show();f("header").insertBefore(a);if(!f("header").hasClass("non-sticky-nav")&&j()!==true){f("header").css("position","fixed")}if(!d){f(".overlay").removeClass("close-menu");f(".overlay").transition({opacity:"0"},300,"ease",function(){f(".overlay").css({display:"none",position:"absolute"})});f(a).stop().transition({top:c,opacity:0},e,"ease",function(){v("close")})}else{f("body").removeClass("open-nav");f("#wrapper").css("width","100%");if(!j()){f(".cover-image").css("background-attachment","fixed")}f(a).stop().transition({opacity:0},350,function(){v("close")})}}});f(".content-container, .mc-sub-content-container, .spacer, .menu-inner nav, .menu-inner nav ul li a").each(function(){var S=f(this);var T=f(this).css("padding-top").replace("px","");var L=f(this).css("padding-right").replace("px","");var J=f(this).css("padding-bottom").replace("px","");var N=f(this).css("padding-left").replace("px","");var I=f(this).css("margin-top").replace("px","");var P=f(this).css("margin-bottom").replace("px","");var Q;function K(U){f(S).css("padding-top",T/U);f(S).css("padding-right",L/U);f(S).css("padding-bottom",J/U);f(S).css("padding-left",N/U);f(S).css("margin-top",I/U);f(S).css("margin-bottom",P/U)}var M={match:function(){Q=1.2;K(Q)},unmatch:function(){K(1)}};var R={match:function(){Q=1.4;K(Q)}};var O={match:function(){Q=1.6;K(Q)}};var H={match:function(){Q=1.8;K(Q)}};enquire.register("(min-width: 980px) and (max-width: 1199px)",M).register("(min-width: 768px) and (max-width: 979px)",R).register("(max-width: 767px)",O).register("(max-width: 567px)",H)});var u;if(j()===true){f(".cover-image, .cover-video-responsive").css("backgroundSize","cover");f(".cover-image, .cover-video-responsive").css("background-attachment","scroll");f(".controls a, .project-panel-button").addClass("ios-no-hover")}if(f("body").hasClass("is-blog")){f("iframe").wrap('<div class="responsive-video"></div>');f(".wp-video, .wp-audio").css("width","100%");f(".featured-video video, .featured audio").mediaelementplayer()}function s(H){return H.replace(/"/g,"").replace(/url\(|\)$/ig,"")}var x=f(".fullscreen-cover").length;if(x){if(!b){NProgress.start()}if(x>1){f(".fullscreen-cover").each(function(H){H++;B(f(this).data("cover-id"),H)})}else{B(f(".fullscreen-cover").data("cover-id"),1)}}else{y()}function B(K,H){var J=f(".cover-"+K);if(f(J).data("bg-type")==="image"){f(J).children(".cover-video").hide();var I=s(f(J).children(".cover-image").css("background-image"));f.loadImages(I,function(){f(J).transition({opacity:1},1000,"ease",function(){y(H)});q(K)})}else{if(f(J).data("bg-type")==="video"){f(J).children(".cover-image").hide();f(J).transition({opacity:1},1000,"ease",function(){var L;var M;L=parseInt(f(".cover-"+K+" .cover-video video").attr("width"));M=parseInt(f(".cover-"+K+" .cover-video video").attr("height"));f(J).children(".cover-video").fadeIn(1000);f(window).resize(function(){G(K,L,M,300)});f(window).trigger("resize");y(H)});q(K)}else{f(J).transition({opacity:1},1000,"ease",function(){y(H)});q(K)}}}function q(H){if(f(".cover-"+H+" .cover-headline").data("headline-format")==="image"){imagesLoaded(f(".cover-"+H+" .cover-headline"),function(){p(f(".cover-"+H+" .cover-headline"));f(".cover-"+H+" .cover-headline").transition({opacity:1,delay:300},800,"ease")})}else{p(f(".cover-"+H+" .cover-headline"));f(".cover-"+H+" .cover-headline").transition({opacity:1,delay:300},800,"ease")}}function y(H){if(H===x&&x>1){NProgress.done()}else{if(!b&&f(".fade-content").length>0){f(".fade-content").showdelay(f(".fade-content").length)}else{NProgress.done()}}}if(f("body").hasClass("vertical-arrows")){f(document).on("click",".fp-vert-nav .next",function(){f.fn.fullpage.moveSectionDown()});f(document).on("click",".fp-vert-nav .prev",function(){f.fn.fullpage.moveSectionUp()})}else{if(f("body").hasClass("horizontal-arrows")){f(document).on("click",".fp-hor-nav .next",function(){f.fn.fullpage.moveSlideRight()});f(document).on("click",".fp-hor-nav .prev",function(){f.fn.fullpage.moveSlideLeft()})}}if(f("body").hasClass("is-cover-slider")){w(0)}f(".see-more").click(function(){w(1100)});function w(K){var J;if(f("header").css("position")==="absolute"){J=0}else{J=f("header").height()-1}if(f("#navbar-bg").data("navbar-opacity")!==1){J=0}var H={match:function(){J=0}};var I={match:function(){J=0}};enquire.register("(max-width: 767px)",H).register("(max-width: 567px)",I);f(f.browser.webkit?"body":"html").animate({scrollTop:f(".fullscreen-cover").height()-J},K,"easeInOutExpo")}function F(){var H=f("#project-panel-header").height();if(H>=f(window).height()){f("#project-panel-header").css({overflowY:"scroll"})}else{f("#project-panel-header").css({overflowY:"hidden"})}}var z=600;if(j()){z=0}f(document).on("click",".project-panel-button",function(){var H=0;if(f(window).scrollTop()===0){H=0}else{if(f(window).scrollTop()>0&&f(window).scrollTop()<300){H=300}else{H=700}}f(f.browser.webkit?"body":"html").animate({scrollTop:0},H,"easeInOutExpo",function(){f(".overlay").css("display","block").transition({opacity:"0.6"},400,"ease").addClass("close-panel").css("position","fixed");f("header").appendTo("#wrapper").css("position","absolute");f(".cover-image").css("background-attachment","scroll");f("#project-panel-header").slideDown(z,"easeInOutExpo",function(){if(f("body").hasClass("dedicated-slider")){F()}});f("body").addClass("project-panel-active")})});f(document).on("click",".close-project-panel, .close-panel",function(){f(".overlay").transition({opacity:"0"},400,"ease",function(){f(".overlay").css("display","none").removeClass("close-panel")});f("#project-panel-header").slideUp(z,"easeInOutExpo",function(){f("header").insertAfter("#project-panel-header");if(!f("header").hasClass("non-sticky-nav")&&j()!==true){f("header").css("position","fixed")}if(j()!==true){f(".cover-image").css("background-attachment","fixed")}f(".overlay").css("position","absolute");f("body").removeClass("project-panel-active")})});f(".search-button").click(function(){f(f.browser.webkit?"body":"html").animate({scrollTop:0},400,"easeInOutExpo");f(".blog-search").slideDown(700,"easeInOutExpo");f(".search-field").focus()});f(".search-close").click(function(){f(".blog-search").slideUp(700,"easeOutExpo")});f(".archives-button").click(function(){f(f.browser.webkit?"body":"html").animate({scrollTop:0},400,"easeInOutExpo");f("#category-archives").slideDown(700,"easeInOutExpo")});f(".archives-close").click(function(){f("#category-archives").slideUp(700,"easeOutExpo")});f(".fwt-inner").each(function(){p(f(this))});f(".fwt-solo-img img").each(function(){p(f(this))});var E=f(".cover-image");function p(H){if(f(H).hasClass("middle")){var I=f(H).height()/2;f(H).css("margin-top","-"+I+"px");f(window).resize(function(){var J=f(H).height()/2;f(H).css("margin-top","-"+J+"px")})}}function G(N,J,K,I){var H=f(window).width()/J;var M=f(window).height()/K;var L=H>M?H:M;if(L*J<I){L=I/J}f(".cover-"+N+" .cover-video video").width(L*J);f(".cover-"+N+" .cover-video video").height(L*K);f(".cover-"+N+" .cover-video").scrollLeft((f(".cover-"+N+" .cover-video video").width()-f(window).width())/2);f(".cover-"+N+" .cover-video").scrollTop((f(".cover-"+N+" .cover-video video").height()-f(window).height())/2)}function o(I){if(j()!==true&&g!=="zoom"&&f("#cover-slider").length<=0){var J;var L;var M;var H;var N;if(f(".cover-image").data("bg-align")){J=f(".cover-image").data("bg-align").split(" ");H=parseInt(J[0].replace("%",""));N=parseInt(J[1].replace("%",""))}else{J="none"}if(J!="none"){L=-(f(window).scrollTop()/5)+N;if(N===0){M=H+"% "+L+"px"}else{M=H+"% "+L+"%"}E.css({backgroundPosition:M})}else{L=-(f(window).scrollTop()/5);M="50% "+L+"px";E.css({backgroundPosition:M})}}if(f("#navbar-bg").data("transparent-bar")===true){if(!f(a).css("opacity")!==1){var K=f("#navbar-bg").data("navbar-opacity");if(f(this).scrollTop()>=f(".fullscreen-cover").height()-(f("#navbar-bg").height()+20)){f("#navbar-bg").removeClass("transparent").addClass("navbar").css("opacity",K)}else{f("#navbar-bg").addClass("transparent").removeClass("navbar")}}}if(f(this).scrollTop()>400){f(".to-the-top").fadeIn(700)}else{f(".to-the-top").fadeOut(700)}}function l(H){C();if(f("body").hasClass("dedicated-slider")){F()}}f(".top-button").click(function(){f(f.browser.webkit?"body":"html").animate({scrollTop:0},900,"easeInOutExpo")});f(window).scroll(o);f(window).resize(l);if(!b){f(".logo a, .title h1 a, .title a, .thumb a, li.menu-item a, li.page_item a, h2 a, a.more-link, .meta a, .project-panel-link, .fullscreen-cover a, .fwt-link, .secondary a, .featured a, #fullscreen-menu a, a.ce-image-link, a.cover-slider-link, a.cover-link, .view-project a").click(function(H){if(f(this).attr("target")!=="_blank"){if(j()!==true&&!H.ctrlKey){var J;if(f(this).data("project-panel")===true){f("#project-panel-header").slideUp(800,"easeInOutExpo",function(){f("header").css("position","fixed");f(".overlay").css("position","absolute");f("body").removeClass("project-panel-active");f(".overlay").fadeOut("slow")});J=800}else{J=0}var I=f(this).attr("href");var K="slide-up";h(K,900);if(f(a).is(":visible")){f(a).fadeOut(500,function(){f(".overlay").transition({opacity:0},500,"ease");f("#content").transition({opacity:0},500,"ease",function(){window.location=I})})}else{f("#content").transition({opacity:0,delay:J},700,"ease",function(){window.location=I})}return false}}})}window.onunload=function(){}})})(jQuery);