;window.Modernizr=function(a,b,c){function z(a){j.cssText=a}function A(a,b){return z(m.join(a+";")+(b||""))}function B(a,b){return typeof a===b}function C(a,b){return!!~(""+a).indexOf(b)}function D(a,b){for(var d in a){var e=a[d];if(!C(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function E(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:B(f,"function")?f.bind(d||b):f}return!1}function F(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+o.join(d+" ")+d).split(" ");return B(b,"string")||B(b,"undefined")?D(e,b):(e=(a+" "+p.join(d+" ")+d).split(" "),E(e,b,c))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n="Webkit Moz O ms",o=n.split(" "),p=n.toLowerCase().split(" "),q={},r={},s={},t=[],u=t.slice,v,w=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},x={}.hasOwnProperty,y;!B(x,"undefined")&&!B(x.call,"undefined")?y=function(a,b){return x.call(a,b)}:y=function(a,b){return b in a&&B(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=u.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(u.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(u.call(arguments)))};return e}),q.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:w(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},q.cssanimations=function(){return F("animationName")},q.csstransitions=function(){return F("transition")};for(var G in q)y(q,G)&&(v=G.toLowerCase(),e[v]=q[G](),t.push((e[v]?"":"no-")+v));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)y(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},z(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=m,e._domPrefixes=p,e._cssomPrefixes=o,e.testProp=function(a){return D([a])},e.testAllProps=F,e.testStyles=w,e.prefixed=function(a,b,c){return b?F(a,b,c):F(a,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+t.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f0?property.charAt(0).toUpperCase()+property.slice(1):property)}}(),prefixedTransform=vendorPrefix("transform"), supportsBackgroundPositionXY=$("
",{style:"background:#fff"}).css("background-position-x")!==undefined,setBackgroundPosition=supportsBackgroundPositionXY?function($elem,x,y){$elem.css({"background-position-x":x,"background-position-y":y})}:function($elem,x,y){$elem.css("background-position",x+" "+y)},getBackgroundPosition=supportsBackgroundPositionXY?function($elem){return[$elem.css("background-position-x"),$elem.css("background-position-y")]}:function($elem){return $elem.css("background-position").split(" ")}, requestAnimFrame=window.requestAnimationFrame||(window.webkitRequestAnimationFrame||(window.mozRequestAnimationFrame||(window.oRequestAnimationFrame||(window.msRequestAnimationFrame||function(callback){setTimeout(callback,1E3/60)}))));function Plugin(element,options){this.element=element;this.options=$.extend({},defaults,options);this._defaults=defaults;this._name=pluginName;this.init()}Plugin.prototype={init:function(){this.options.name=pluginName+"_"+Math.floor(Math.random()*1E9);this._defineElements(); this._defineGetters();this._defineSetters();this._handleWindowLoadAndResize();this._detectViewport();this.refresh({firstLoad:true});if(this.options.scrollProperty==="scroll")this._handleScrollEvent();else this._startAnimationLoop()},_defineElements:function(){if(this.element===document.body)this.element=window;this.$scrollElement=$(this.element);this.$element=this.element===window?$("body"):this.$scrollElement;this.$viewportElement=this.options.viewportElement!==undefined?$(this.options.viewportElement): this.$scrollElement[0]===window||this.options.scrollProperty==="scroll"?this.$scrollElement:this.$scrollElement.parent()},_defineGetters:function(){var self=this,scrollPropertyAdapter=scrollProperty[self.options.scrollProperty];this._getScrollLeft=function(){return scrollPropertyAdapter.getLeft(self.$scrollElement)};this._getScrollTop=function(){return scrollPropertyAdapter.getTop(self.$scrollElement)}},_defineSetters:function(){var self=this,scrollPropertyAdapter=scrollProperty[self.options.scrollProperty], positionPropertyAdapter=positionProperty[self.options.positionProperty],setScrollLeft=scrollPropertyAdapter.setLeft,setScrollTop=scrollPropertyAdapter.setTop;this._setScrollLeft=typeof setScrollLeft==="function"?function(val){setScrollLeft(self.$scrollElement,val)}:$.noop;this._setScrollTop=typeof setScrollTop==="function"?function(val){setScrollTop(self.$scrollElement,val)}:$.noop;this._setPosition=positionPropertyAdapter.setPosition||function($elem,left,startingLeft,top,startingTop){if(self.options.horizontalScrolling)positionPropertyAdapter.setLeft($elem, left,startingLeft);if(self.options.verticalScrolling)positionPropertyAdapter.setTop($elem,top,startingTop)}},_handleWindowLoadAndResize:function(){var self=this,$window=$(window);if(self.options.responsive)$window.bind("load."+this.name,function(){self.refresh()});$window.bind("resize."+this.name,function(){self._detectViewport();if(self.options.responsive)self.refresh()})},refresh:function(options){var self=this,oldLeft=self._getScrollLeft(),oldTop=self._getScrollTop();if(!options||!options.firstLoad)this._reset(); this._setScrollLeft(0);this._setScrollTop(0);this._setOffsets();this._findParticles();this._findBackgrounds();if(options&&(options.firstLoad&&/WebKit/.test(navigator.userAgent)))$(window).load(function(){var oldLeft=self._getScrollLeft(),oldTop=self._getScrollTop();self._setScrollLeft(oldLeft+1);self._setScrollTop(oldTop+1);self._setScrollLeft(oldLeft);self._setScrollTop(oldTop)});this._setScrollLeft(oldLeft);this._setScrollTop(oldTop)},_detectViewport:function(){var viewportOffsets=this.$viewportElement.offset(), hasOffsets=viewportOffsets!==null&&viewportOffsets!==undefined;this.viewportWidth=this.$viewportElement.width();this.viewportHeight=this.$viewportElement.height();this.viewportOffsetTop=hasOffsets?viewportOffsets.top:0;this.viewportOffsetLeft=hasOffsets?viewportOffsets.left:0},_findParticles:function(){var self=this,scrollLeft=this._getScrollLeft(),scrollTop=this._getScrollTop();if(this.particles!==undefined)for(var i=this.particles.length-1;i>=0;i--)this.particles[i].$element.data("stellar-elementIsActive", undefined);this.particles=[];if(!this.options.parallaxElements)return;this.$element.find("[data-stellar-ratio]").each(function(i){var $this=$(this),horizontalOffset,verticalOffset,positionLeft,positionTop,marginLeft,marginTop,$offsetParent,offsetLeft,offsetTop,parentOffsetLeft=0,parentOffsetTop=0,tempParentOffsetLeft=0,tempParentOffsetTop=0;if(!$this.data("stellar-elementIsActive"))$this.data("stellar-elementIsActive",this);else if($this.data("stellar-elementIsActive")!==this)return;self.options.showElement($this); if(!$this.data("stellar-startingLeft")){$this.data("stellar-startingLeft",$this.css("left"));$this.data("stellar-startingTop",$this.css("top"))}else{$this.css("left",$this.data("stellar-startingLeft"));$this.css("top",$this.data("stellar-startingTop"))}positionLeft=$this.position().left;positionTop=$this.position().top;marginLeft=$this.css("margin-left")==="auto"?0:parseInt($this.css("margin-left"),10);marginTop=$this.css("margin-top")==="auto"?0:parseInt($this.css("margin-top"),10);offsetLeft=$this.offset().left- marginLeft;offsetTop=$this.offset().top-marginTop;$this.parents().each(function(){var $this=$(this);if($this.data("stellar-offset-parent")===true){parentOffsetLeft=tempParentOffsetLeft;parentOffsetTop=tempParentOffsetTop;$offsetParent=$this;return false}else{tempParentOffsetLeft+=$this.position().left;tempParentOffsetTop+=$this.position().top}});horizontalOffset=$this.data("stellar-horizontal-offset")!==undefined?$this.data("stellar-horizontal-offset"):$offsetParent!==undefined&&$offsetParent.data("stellar-horizontal-offset")!==undefined?$offsetParent.data("stellar-horizontal-offset"):self.horizontalOffset;verticalOffset=$this.data("stellar-vertical-offset")!==undefined?$this.data("stellar-vertical-offset"):$offsetParent!==undefined&&$offsetParent.data("stellar-vertical-offset")!==undefined?$offsetParent.data("stellar-vertical-offset"):self.verticalOffset;self.particles.push({$element:$this,$offsetParent:$offsetParent,isFixed:$this.css("position")==="fixed",horizontalOffset:horizontalOffset,verticalOffset:verticalOffset, startingPositionLeft:positionLeft,startingPositionTop:positionTop,startingOffsetLeft:offsetLeft,startingOffsetTop:offsetTop,parentOffsetLeft:parentOffsetLeft,parentOffsetTop:parentOffsetTop,stellarRatio:$this.data("stellar-ratio")!==undefined?$this.data("stellar-ratio"):1,width:$this.outerWidth(true),height:$this.outerHeight(true),isHidden:false})})},_findBackgrounds:function(){var self=this,scrollLeft=this._getScrollLeft(),scrollTop=this._getScrollTop(),$backgroundElements;this.backgrounds=[];if(!this.options.parallaxBackgrounds)return; $backgroundElements=this.$element.find("[data-stellar-background-ratio]");if(this.$element.data("stellar-background-ratio"))$backgroundElements=$backgroundElements.add(this.$element);$backgroundElements.each(function(){var $this=$(this),backgroundPosition=getBackgroundPosition($this),horizontalOffset,verticalOffset,positionLeft,positionTop,marginLeft,marginTop,offsetLeft,offsetTop,$offsetParent,parentOffsetLeft=0,parentOffsetTop=0,tempParentOffsetLeft=0,tempParentOffsetTop=0;if(!$this.data("stellar-backgroundIsActive"))$this.data("stellar-backgroundIsActive", this);else if($this.data("stellar-backgroundIsActive")!==this)return;if(!$this.data("stellar-backgroundStartingLeft")){$this.data("stellar-backgroundStartingLeft",backgroundPosition[0]);$this.data("stellar-backgroundStartingTop",backgroundPosition[1])}else setBackgroundPosition($this,$this.data("stellar-backgroundStartingLeft"),$this.data("stellar-backgroundStartingTop"));marginLeft=$this.css("margin-left")==="auto"?0:parseInt($this.css("margin-left"),10);marginTop=$this.css("margin-top")==="auto"? 0:parseInt($this.css("margin-top"),10);offsetLeft=$this.offset().left-marginLeft-scrollLeft;offsetTop=$this.offset().top-marginTop-scrollTop;$this.parents().each(function(){var $this=$(this);if($this.data("stellar-offset-parent")===true){parentOffsetLeft=tempParentOffsetLeft;parentOffsetTop=tempParentOffsetTop;$offsetParent=$this;return false}else{tempParentOffsetLeft+=$this.position().left;tempParentOffsetTop+=$this.position().top}});horizontalOffset=$this.data("stellar-horizontal-offset")!==undefined? $this.data("stellar-horizontal-offset"):$offsetParent!==undefined&&$offsetParent.data("stellar-horizontal-offset")!==undefined?$offsetParent.data("stellar-horizontal-offset"):self.horizontalOffset;verticalOffset=$this.data("stellar-vertical-offset")!==undefined?$this.data("stellar-vertical-offset"):$offsetParent!==undefined&&$offsetParent.data("stellar-vertical-offset")!==undefined?$offsetParent.data("stellar-vertical-offset"):self.verticalOffset;self.backgrounds.push({$element:$this,$offsetParent:$offsetParent, isFixed:$this.css("background-attachment")==="fixed",horizontalOffset:horizontalOffset,verticalOffset:verticalOffset,startingValueLeft:backgroundPosition[0],startingValueTop:backgroundPosition[1],startingBackgroundPositionLeft:isNaN(parseInt(backgroundPosition[0],10))?0:parseInt(backgroundPosition[0],10),startingBackgroundPositionTop:isNaN(parseInt(backgroundPosition[1],10))?0:parseInt(backgroundPosition[1],10),startingPositionLeft:$this.position().left,startingPositionTop:$this.position().top,startingOffsetLeft:offsetLeft, startingOffsetTop:offsetTop,parentOffsetLeft:parentOffsetLeft,parentOffsetTop:parentOffsetTop,stellarRatio:$this.data("stellar-background-ratio")===undefined?1:$this.data("stellar-background-ratio")})})},_reset:function(){var particle,startingPositionLeft,startingPositionTop,background,i;for(i=this.particles.length-1;i>=0;i--){particle=this.particles[i];startingPositionLeft=particle.$element.data("stellar-startingLeft");startingPositionTop=particle.$element.data("stellar-startingTop");this._setPosition(particle.$element, startingPositionLeft,startingPositionLeft,startingPositionTop,startingPositionTop);this.options.showElement(particle.$element);particle.$element.data("stellar-startingLeft",null).data("stellar-elementIsActive",null).data("stellar-backgroundIsActive",null)}for(i=this.backgrounds.length-1;i>=0;i--){background=this.backgrounds[i];background.$element.data("stellar-backgroundStartingLeft",null).data("stellar-backgroundStartingTop",null);setBackgroundPosition(background.$element,background.startingValueLeft, background.startingValueTop)}},destroy:function(){this._reset();this.$scrollElement.unbind("resize."+this.name).unbind("scroll."+this.name);this._animationLoop=$.noop;$(window).unbind("load."+this.name).unbind("resize."+this.name)},_setOffsets:function(){var self=this,$window=$(window);$window.unbind("resize.horizontal-"+this.name).unbind("resize.vertical-"+this.name);if(typeof this.options.horizontalOffset==="function"){this.horizontalOffset=this.options.horizontalOffset();$window.bind("resize.horizontal-"+ this.name,function(){self.horizontalOffset=self.options.horizontalOffset()})}else this.horizontalOffset=this.options.horizontalOffset;if(typeof this.options.verticalOffset==="function"){this.verticalOffset=this.options.verticalOffset();$window.bind("resize.vertical-"+this.name,function(){self.verticalOffset=self.options.verticalOffset()})}else this.verticalOffset=this.options.verticalOffset},_repositionElements:function(){var scrollLeft=this._getScrollLeft(),scrollTop=this._getScrollTop(),horizontalOffset, verticalOffset,particle,fixedRatioOffset,background,bgLeft,bgTop,isVisibleVertical=true,isVisibleHorizontal=true,newPositionLeft,newPositionTop,newOffsetLeft,newOffsetTop,i;if(this.currentScrollLeft===scrollLeft&&(this.currentScrollTop===scrollTop&&(this.currentWidth===this.viewportWidth&&this.currentHeight===this.viewportHeight)))return;else{this.currentScrollLeft=scrollLeft;this.currentScrollTop=scrollTop;this.currentWidth=this.viewportWidth;this.currentHeight=this.viewportHeight}for(i=this.particles.length- 1;i>=0;i--){particle=this.particles[i];fixedRatioOffset=particle.isFixed?1:0;if(this.options.horizontalScrolling){newPositionLeft=(scrollLeft+particle.horizontalOffset+this.viewportOffsetLeft+particle.startingPositionLeft-particle.startingOffsetLeft+particle.parentOffsetLeft)*-(particle.stellarRatio+fixedRatioOffset-1)+particle.startingPositionLeft;newOffsetLeft=newPositionLeft-particle.startingPositionLeft+particle.startingOffsetLeft}else{newPositionLeft=particle.startingPositionLeft;newOffsetLeft= particle.startingOffsetLeft}if(this.options.verticalScrolling){newPositionTop=(scrollTop+particle.verticalOffset+this.viewportOffsetTop+particle.startingPositionTop-particle.startingOffsetTop+particle.parentOffsetTop)*-(particle.stellarRatio+fixedRatioOffset-1)+particle.startingPositionTop;newOffsetTop=newPositionTop-particle.startingPositionTop+particle.startingOffsetTop}else{newPositionTop=particle.startingPositionTop;newOffsetTop=particle.startingOffsetTop}if(this.options.hideDistantElements){isVisibleHorizontal= !this.options.horizontalScrolling||newOffsetLeft+particle.width>(particle.isFixed?0:scrollLeft)&&newOffsetLeft<(particle.isFixed?0:scrollLeft)+this.viewportWidth+this.viewportOffsetLeft;isVisibleVertical=!this.options.verticalScrolling||newOffsetTop+particle.height>(particle.isFixed?0:scrollTop)&&newOffsetTop<(particle.isFixed?0:scrollTop)+this.viewportHeight+this.viewportOffsetTop}if(isVisibleHorizontal&&isVisibleVertical){if(particle.isHidden){this.options.showElement(particle.$element);particle.isHidden= false}this._setPosition(particle.$element,newPositionLeft,particle.startingPositionLeft,newPositionTop,particle.startingPositionTop)}else if(!particle.isHidden){this.options.hideElement(particle.$element);particle.isHidden=true}}for(i=this.backgrounds.length-1;i>=0;i--){background=this.backgrounds[i];fixedRatioOffset=background.isFixed?0:1;bgLeft=this.options.horizontalScrolling?(scrollLeft+background.horizontalOffset-this.viewportOffsetLeft-background.startingOffsetLeft+background.parentOffsetLeft- background.startingBackgroundPositionLeft)*(fixedRatioOffset-background.stellarRatio)+"px":background.startingValueLeft;bgTop=this.options.verticalScrolling?(scrollTop+background.verticalOffset-this.viewportOffsetTop-background.startingOffsetTop+background.parentOffsetTop-background.startingBackgroundPositionTop)*(fixedRatioOffset-background.stellarRatio)+"px":background.startingValueTop;setBackgroundPosition(background.$element,bgLeft,bgTop)}},_handleScrollEvent:function(){var self=this,ticking= false;var update=function(){self._repositionElements();ticking=false};var requestTick=function(){if(!ticking){requestAnimFrame(update);ticking=true}};this.$scrollElement.bind("scroll."+this.name,requestTick);requestTick()},_startAnimationLoop:function(){var self=this;this._animationLoop=function(){requestAnimFrame(self._animationLoop);self._repositionElements()};this._animationLoop()}};$.fn[pluginName]=function(options){var args=arguments;if(options===undefined||typeof options==="object")return this.each(function(){if(!$.data(this, "plugin_"+pluginName))$.data(this,"plugin_"+pluginName,new Plugin(this,options))});else if(typeof options==="string"&&(options[0]!=="_"&&options!=="init"))return this.each(function(){var instance=$.data(this,"plugin_"+pluginName);if(instance instanceof Plugin&&typeof instance[options]==="function")instance[options].apply(instance,Array.prototype.slice.call(args,1));if(options==="destroy")$.data(this,"plugin_"+pluginName,null)})};$[pluginName]=function(options){var $window=$(window);return $window.stellar.apply($window, Array.prototype.slice.call(arguments,0))};$[pluginName].scrollProperty=scrollProperty;$[pluginName].positionProperty=positionProperty;window.Stellar=Plugin})(jQuery,this,document); (function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e=0;s={horizontal:{},vertical:{}};f=1;c={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=1;w="waypoints-waypoint-ids";g="waypoint";m="waypoints";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didResize=false;this.didScroll=false;this.id="context"+f++;this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()};this.waypoints={horizontal:{},vertical:{}};this.element[u]=this.id;c[this.id]=this;t.bind(y,function(){var t;if(!(e.didScroll||a)){e.didScroll=true;t=function(){e.doScroll();return e.didScroll=false};return r.setTimeout(t,n[m].settings.scrollThrottle)}});t.bind(p,function(){var t;if(!e.didResize){e.didResize=true;t=function(){n[m]("refresh");return e.didResize=false};return r.setTimeout(t,n[m].settings.resizeThrottle)}})}t.prototype.doScroll=function(){var t,e=this;t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};if(a&&(!t.vertical.oldScroll||!t.vertical.newScroll)){n[m]("refresh")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newScroll>r.oldScroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldScroll<(n=e.offset)&&n<=r.newScroll){return l.push(e)}else if(r.newScroll<(i=e.offset)&&i<=r.oldScroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}};t.prototype.refresh=function(){var t,e,r,i=this;r=n.isWindow(this.element);e=this.$element.offset();this.doScroll();t={horizontal:{contextOffset:r?0:e.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:e.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[m]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.isWindow(r.element)?0:r.$element.offset()[e.offsetProp];if(n.isFunction(i)){i=i.apply(r.element)}else if(typeof i==="string"){i=parseFloat(i);if(r.options.offset.indexOf("%")>-1){i=Math.ceil(e.contextDimension*i/100)}}r.offset=o-e.contextOffset+e.contextScroll-i;if(r.options.onlyOnScroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldScroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldScroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldScroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)){this.$element.unbind([p,y].join(" "));return delete c[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;r=n.extend({},n.fn[g].defaults,r);if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportHeight");if(!n.isWindow(e.element)){t=e.$element.height()}return t-n(this).outerHeight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id="waypoints"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=this.element[w])!=null?o:[];i.push(this.id);this.element[w]=i}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggerOnce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=false};t.prototype.enable=function(){this.context.refresh();return this.enabled=true};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkEmpty()};t.getWaypointsByElement=function(t){var e,r;r=t[w];if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;if(e==null){e={}}if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.isWindow(i)){i=t.closest(i)}i=n(i);r=c[i[0][u]];if(!r){r=new o(i)}return new l(t,r,e)});n[m]("refresh");return this},disable:function(){return d._invoke.call(this,"disable")},enable:function(){return d._invoke.call(this,"enable")},destroy:function(){return d._invoke.call(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0){return t.push(n[e-1])}})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(et.oldScroll.y})},left:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;e=n.extend({},s.vertical,s.horizontal);return n.each(e,function(e,n){n[t]();return true})},_filter:function(t,e,r){var i,o;i=c[n(t)[0][u]];if(!i){return[]}o=[];n.each(i.waypoints[e],function(t,e){if(r(i,e)){return o.push(e)}});o.sort(function(t,e){return t.offset-e.offset});return n.map(o,function(t){return t.element})}};n[m]=function(){var t,n;n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(h[n]){return h[n].apply(null,t)}else{return h.aggregate.call(null,n)}};n[m].settings={resizeThrottle:100,scrollThrottle:30};return i.load(function(){return n[m]("refresh")})})}).call(this); (function(e,t,n){function c(e){var t={};var r=/^jQuery\d+$/;n.each(e.attributes,function(e,n){if(n.specified&&!r.test(n.name)){t[n.name]=n.value}});return t}function h(e,t){var r=this;var i=n(r);if(r.value==i.attr("placeholder")&&i.hasClass("placeholder")){if(i.data("placeholder-password")){i=i.hide().next().show().attr("id",i.removeAttr("id").data("placeholder-id"));if(e===true){return i[0].value=t}i.focus()}else{r.value="";i.removeClass("placeholder");r==d()&&r.select()}}}function p(){var e;var t=this;var r=n(t);var i=this.id;if(t.value==""){if(t.type=="password"){if(!r.data("placeholder-textinput")){try{e=r.clone().attr({type:"text"})}catch(s){e=n("").attr(n.extend(c(this),{type:"text"}))}e.removeAttr("name").data({"placeholder-password":r,"placeholder-id":i}).bind("focus.placeholder",h);r.data({"placeholder-textinput":e,"placeholder-id":i}).before(e)}r=r.removeAttr("id").hide().prev().attr("id",i).show()}r.addClass("placeholder");r[0].value=r.attr("placeholder")}else{r.removeClass("placeholder")}}function d(){try{return t.activeElement}catch(e){}}var r=Object.prototype.toString.call(e.operamini)=="[object OperaMini]";var i="placeholder"in t.createElement("input")&&!r;var s="placeholder"in t.createElement("textarea")&&!r;var o=n.fn;var u=n.valHooks;var a=n.propHooks;var f;var l;if(i&&s){l=o.placeholder=function(){return this};l.input=l.textarea=true}else{l=o.placeholder=function(){var e=this;e.filter((i?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":h,"blur.placeholder":p}).data("placeholder-enabled",true).trigger("blur.placeholder");return e};l.input=i;l.textarea=s;f={get:function(e){var t=n(e);var r=t.data("placeholder-password");if(r){return r[0].value}return t.data("placeholder-enabled")&&t.hasClass("placeholder")?"":e.value},set:function(e,t){var r=n(e);var i=r.data("placeholder-password");if(i){return i[0].value=t}if(!r.data("placeholder-enabled")){return e.value=t}if(t==""){e.value=t;if(e!=d()){p.call(e)}}else if(r.hasClass("placeholder")){h.call(e,true,t)||(e.value=t)}else{e.value=t}return r}};if(!i){u.input=f;a.value=f}if(!s){u.textarea=f;a.value=f}n(function(){n(t).delegate("form","submit.placeholder",function(){var e=n(".placeholder",this).each(h);setTimeout(function(){e.each(p)},10)})});n(e).bind("beforeunload.placeholder",function(){n(".placeholder").each(function(){this.value=""})})}})(this,document,jQuery); !function(a,b,c){"use strict";var d=b.Modernizr,e=a("body");a.DLMenu=function(b,c){this.$el=a(c),this._init(b)},a.DLMenu.defaults={animationClasses:{classin:"dl-animate-in-1",classout:"dl-animate-out-1"},onLevelClick:function(a,b){return!1},onLinkClick:function(a,b){return!1},backLabel:"Back",useActiveItemAsBackLabel:!1,useActiveItemAsLink:!1,resetOnClose:!0},a.DLMenu.prototype={_init:function(b){this.options=a.extend(!0,{},a.DLMenu.defaults,b),this._config();var c={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd",animation:"animationend"},e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"};this.animEndEventName=c[d.prefixed("animation")]+".dlmenu",this.transEndEventName=e[d.prefixed("transition")]+".dlmenu",this.supportAnimations=d.cssanimations,this.supportTransitions=d.csstransitions,this._initEvents()},_config:function(){this.open=!1,this.$trigger=this.$el.children(".dl-trigger"),this.$menu=this.$el.children("ul.dl-menu"),this.$menuitems=this.$menu.find("li:not(.dl-back)"),this.$el.find("ul.dl-submenu").prepend('
  • '+this.options.backLabel+"
  • "),this.$back=this.$menu.find("li.dl-back"),this.options.useActiveItemAsBackLabel&&this.$back.each(function(){var b=a(this),c=b.parents("li:first").find("a:first").text();b.find("a").html(c)}),this.options.useActiveItemAsLink&&this.$el.find("ul.dl-submenu").prepend(function(){var b=a(this).parents("li:not(.dl-back):first").find("a:first");return'
  • '+b.text()+"
  • "})},_initEvents:function(){var b=this;this.$trigger.on("click.dlmenu",function(){return b.open?b._closeMenu():(b._openMenu(),e.off("click").children().on("click.dlmenu",function(){b._closeMenu()})),!1}),this.$menuitems.on("click.dlmenu",function(c){c.stopPropagation();var d=a(this),e=d.children("ul.dl-submenu");if(e.length>0&&!a(c.currentTarget).hasClass("dl-subviewopen")){var f=e.clone().css("opacity",0).insertAfter(b.$menu),g=function(){b.$menu.off(b.animEndEventName).removeClass(b.options.animationClasses.classout).addClass("dl-subview"),d.addClass("dl-subviewopen").parents(".dl-subviewopen:first").removeClass("dl-subviewopen").addClass("dl-subview"),f.remove()};return setTimeout(function(){f.addClass(b.options.animationClasses.classin),b.$menu.addClass(b.options.animationClasses.classout),b.supportAnimations?b.$menu.on(b.animEndEventName,g):g.call(),b.options.onLevelClick(d,d.children("a:first").text())}),!1}b.options.onLinkClick(d,c)}),this.$back.on("click.dlmenu",function(c){var d=a(this),e=d.parents("ul.dl-submenu:first"),f=e.parent(),g=e.clone().insertAfter(b.$menu),h=function(){b.$menu.off(b.animEndEventName).removeClass(b.options.animationClasses.classin),g.remove()};return setTimeout(function(){g.addClass(b.options.animationClasses.classout),b.$menu.addClass(b.options.animationClasses.classin),b.supportAnimations?b.$menu.on(b.animEndEventName,h):h.call(),f.removeClass("dl-subviewopen");var a=d.parents(".dl-subview:first");a.is("li")&&a.addClass("dl-subviewopen"),a.removeClass("dl-subview")}),!1})},closeMenu:function(){this.open&&this._closeMenu()},_closeMenu:function(){var a=this,b=function(){a.$menu.off(a.transEndEventName),a.options.resetOnClose&&a._resetMenu()};this.$menu.removeClass("dl-menuopen"),this.$menu.addClass("dl-menu-toggle"),this.$trigger.removeClass("dl-active"),this.supportTransitions?this.$menu.on(this.transEndEventName,b):b.call(),this.open=!1},openMenu:function(){this.open||this._openMenu()},_openMenu:function(){var b=this;e.off("click").on("click.dlmenu",function(){b._closeMenu()}),this.$menu.addClass("dl-menuopen dl-menu-toggle").on(this.transEndEventName,function(){a(this).removeClass("dl-menu-toggle")}),this.$trigger.addClass("dl-active"),this.open=!0},_resetMenu:function(){this.$menu.removeClass("dl-subview"),this.$menuitems.removeClass("dl-subview dl-subviewopen")}};var f=function(a){b.console&&b.console.error(a)};a.fn.dlmenu=function(b){if("string"==typeof b){var c=Array.prototype.slice.call(arguments,1);this.each(function(){var d=a.data(this,"dlmenu");return d?a.isFunction(d[b])&&"_"!==b.charAt(0)?void d[b].apply(d,c):void f("no such method '"+b+"' for dlmenu instance"):void f("cannot call methods on dlmenu prior to initialization; attempted to call method '"+b+"'")})}else this.each(function(){var c=a.data(this,"dlmenu");c?c._init():c=a.data(this,"dlmenu",new a.DLMenu(b,this))});return this}}(jQuery,window); (function(d){var g=-1,e=-1,n=function(a){var b=null,c=[];d(a).each(function(){var a=d(this),k=a.offset().top-h(a.css("margin-top")),l=0=Math.floor(Math.abs(b-k))?c[c.length-1]=l.add(a):c.push(a);b=k});return c},h=function(a){return parseFloat(a)||0},b=d.fn.matchHeight=function(a){if("remove"===a){var f=this;this.css("height","");d.each(b._groups,function(a,b){b.elements=b.elements.not(f)});return this}if(1>=this.length)return this;a="undefined"!==typeof a?a:!0;b._groups.push({elements:this,byRow:a});b._apply(this,a);return this};b._groups=[];b._throttle=80;b._maintainScroll=!1;b._beforeUpdate=null;b._afterUpdate=null;b._apply=function(a,f){var c=d(a),e=[c],k=d(window).scrollTop(),l=d("html").outerHeight(!0),g=c.parents().filter(":hidden");g.css("display","block");f&&(c.each(function(){var a=d(this),b="inline-block"===a.css("display")?"inline-block":"block";a.data("style-cache",a.attr("style"));a.css({display:b,"padding-top":"0","padding-bottom":"0", "margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px"})}),e=n(c),c.each(function(){var a=d(this);a.attr("style",a.data("style-cache")||"").css("height","")}));d.each(e,function(a,b){var c=d(b),e=0;f&&1>=c.length||(c.each(function(){var a=d(this),b="inline-block"===a.css("display")?"inline-block":"block";a.css({display:b,height:""});a.outerHeight(!1)>e&&(e=a.outerHeight(!1));a.css("display","")}),c.each(function(){var a=d(this),b=0;"border-box"!==a.css("box-sizing")&& (b+=h(a.css("border-top-width"))+h(a.css("border-bottom-width")),b+=h(a.css("padding-top"))+h(a.css("padding-bottom")));a.css("height",e-b)}))});g.css("display","");b._maintainScroll&&d(window).scrollTop(k/l*d("html").outerHeight(!0));return this};b._applyDataApi=function(){var a={};d("[data-match-height], [data-mh]").each(function(){var b=d(this),c=b.attr("data-match-height")||b.attr("data-mh");a[c]=c in a?a[c].add(b):b});d.each(a,function(){this.matchHeight(!0)})};var m=function(a){b._beforeUpdate&& b._beforeUpdate(a,b._groups);d.each(b._groups,function(){b._apply(this.elements,this.byRow)});b._afterUpdate&&b._afterUpdate(a,b._groups)};b._update=function(a,f){if(f&&"resize"===f.type){var c=d(window).width();if(c===g)return;g=c}a?-1===e&&(e=setTimeout(function(){m(f);e=-1},b._throttle)):m(f)};d(b._applyDataApi);d(window).bind("load",function(a){b._update(!1,a)});d(window).bind("resize orientationchange",function(a){b._update(!0,a)})})(jQuery); (jQuery)(function ($){ "use strict"; $('.nav .dropdown').hover(function (){ $(this).find('ul:first').css({ visibility: "visible", display: "none" }).fadeIn(300); }, function (){ $(this).find('ul:first').css({ display: "none" }); }); $(function (){ var backLabel=VolcannoConfig.mobileMenuBackLabel; $('#dl-menu').dlmenu({ animationClasses: { classin: 'dl-animate-in-2', classout: 'dl-animate-out-2' }, backLabel:backLabel }); }); $('#header').on('click', '#search', function (e){ e.preventDefault(); $(this).find('#m_search').fadeIn().focus(); }); $('#m_search').focusout(function (e){ $(e.target).fadeOut(); }); function set_static_header(position){ var adminBarHeight=0; if($('#header').hasClass('header-style01')){ var header_height=$(".header-wrapper.header-transparent").height(); if($('body').hasClass('admin-bar')){ adminBarHeight=32; } var mainNavMargin=adminBarHeight + 10; if(position > header_height){ $(".header-wrapper.header-transparent").addClass("solid-color").find('.header-style01 .main-nav').css('margin-top', mainNavMargin + 'px'); $(".header-wrapper.header-transparent02").addClass("solid-color").find('.header-style01 .main-nav').css('margin-top', mainNavMargin + 'px'); }else{ $(".header-wrapper.header-transparent").removeClass("solid-color").find('.header-style01 .main-nav').css('margin-top', '35px'); $(".header-wrapper.header-transparent02").removeClass("solid-color").find('.header-style01 .main-nav').css('margin-top', '35px'); } var top_bar_height=$('#top-bar-wrapper').height(); if(position > header_height){ $('.header-wrapper').css('top', -top_bar_height - 20 ); }else{ if($('body').hasClass('admin-bar')){ $('.header-wrapper').css('top', "32px"); }else{ $('.header-wrapper').css('top', "0"); }} } if($('#header').hasClass('header-style02')){ var header_height=$(".header-style02").height(); var top_bar_height=$('#top-bar-wrapper').height(); if(position > header_height){ if($('body').hasClass('admin-bar')){ adminBarHeight=32; } $('.header-wrapper').css('top', -top_bar_height - 20 + adminBarHeight ); }else{ if($('body').hasClass('admin-bar')){ $('.header-wrapper').css('top', "32px"); }else{ $('.header-wrapper').css('top', "0"); }} } if($('#header').hasClass('header-style03')){ var header_height=$(".header-wrapper").height(); if($('body').hasClass('admin-bar')){ adminBarHeight=32; } if(position > header_height){ $('.header-wrapper').css('top', adminBarHeight ); }else{ if($('body').hasClass('admin-bar')){ $('.header-wrapper').css('top', adminBarHeight); }else{ $('.header-wrapper').css('top', "0"); }} }} if(!VolcannoFunctions.isTouchDevice()&&VolcannoConfig.staticHeader=='1'){ (function (){ var window_y=$(document).scrollTop(); if(window_y > 0){ set_static_header(1); }else{ if($('body').hasClass('admin-bar')){ $('#header-wrapper').css('top', '30px'); }} })(); $(window).scroll(function (){ var position=$(this).scrollTop(); set_static_header(position); }); $(window).resize(function (){ var position=$(this).scrollTop(); set_static_header(position); }); var headerWrapperHeight=$('.header-wrapper').height(); $('.header-wrapper').not('.header-transparent').next().css('margin-top', headerWrapperHeight); if($('.header-wrapper').next('div[class^=page-title]').hasClass('page-title-style01')&&$('.header-wrapper').hasClass('header-with-tb')){ $('.header-wrapper').next('div[class^=page-title]').css('marginTop', 0).css('paddingTop', '235px'); }else if($('.header-wrapper').next('[class=^page-title]').hasClass('page-title-style01')){ $('.header-wrapper').next('div[class^=page-title]').css('marginTop', 0).css('paddingTop', '185px'); }}else if(VolcannoConfig.staticHeader=='0'){ if($('.header-wrapper').next().hasClass('page-title-style01')){ $('.header-wrapper').addClass('solid-color not-static'); }}else if(VolcannoFunctions.isTouchDevice()&&VolcannoConfig.staticHeader=='1'){ $('.header-wrapper').addClass('solid-color not-static'); } $(window).scroll(function (){ if($(this).scrollTop() > 100){ $('.scroll-up').fadeIn(); }else{ $('.scroll-up').fadeOut(); }}); $('.scroll-up').click(function (){ $("html, body").animate({ scrollTop: 0 }, 600); return false; }); if(!VolcannoFunctions.isTouchDevice()){ if($(".animated")[0]){ jQuery('.animated').css('opacity', '0'); } var currentRow=-1; var counter=1; if(VolcannoConfig.cmaActive=='1'){ $('.triggerAnimation').waypoint(function (){ var $this=$(this); var rowIndex=$('.row').index($(this).closest('.row')); if(rowIndex!==currentRow){ currentRow=rowIndex; $('.row').eq(rowIndex).find('.triggerAnimation').each(function (i, val){ var element=$(this); setTimeout(function (){ var animation=element.attr('data-animate'); element.css('opacity', '1'); element.addClass("animated " + animation); }, (i * 250)); }); }}, { offset: '80%', triggerOnce: true } ); $('.post-timeline-item').waypoint(function (){ var timeline_animation=$(this).attr('data-animate'); $(this).css('opacity', ''); $(this).addClass("animated " + timeline_animation); }, { offset: '80%', triggerOnce: true } ); }} VolcannoFunctions.setStaticFooter(); }); (function (){ var cookieName=VolcannoConfig.themeName + '_device_pixel_ratio'; VolcannoFunctions.retinaTest(cookieName); })(); (function(b,f){ b.fn.jPlayer=function(a){ var c="string"===typeof a,d=Array.prototype.slice.call(arguments,1),e=this,a=!c&&d.length?b.extend.apply(null,[!0,a].concat(d)):a; if(c&&"_"===a.charAt(0))return e; c?this.each(function(){ var c=b.data(this,"jPlayer"),h=c&&b.isFunction(c[a])?c[a].apply(c,d):c; if(h!==c&&h!==f)return e=h,!1 }):this.each(function(){ var c=b.data(this,"jPlayer"); c?c.option(a||{}):b.data(this,"jPlayer",new b.jPlayer(a,this)) }); return e }; b.jPlayer=function(a,c){ if(arguments.length){ this.element= b(c); this.options=b.extend(!0,{},this.options,a); var d=this; this.element.bind("remove.jPlayer",function(){ d.destroy() }); this._init() }}; b.jPlayer.emulateMethods="load play pause"; b.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate"; b.jPlayer.emulateOptions="muted volume"; b.jPlayer.reservedEvent="ready flashreset resize repeat error warning"; b.jPlayer.event={ ready:"jPlayer_ready", flashreset:"jPlayer_flashreset", resize:"jPlayer_resize", repeat:"jPlayer_repeat", click:"jPlayer_click", error:"jPlayer_error", warning:"jPlayer_warning", loadstart:"jPlayer_loadstart", progress:"jPlayer_progress", suspend:"jPlayer_suspend", abort:"jPlayer_abort", emptied:"jPlayer_emptied", stalled:"jPlayer_stalled", play:"jPlayer_play", pause:"jPlayer_pause", loadedmetadata:"jPlayer_loadedmetadata", loadeddata:"jPlayer_loadeddata", waiting:"jPlayer_waiting", playing:"jPlayer_playing", canplay:"jPlayer_canplay", canplaythrough:"jPlayer_canplaythrough", seeking:"jPlayer_seeking", seeked:"jPlayer_seeked", timeupdate:"jPlayer_timeupdate", ended:"jPlayer_ended", ratechange:"jPlayer_ratechange", durationchange:"jPlayer_durationchange", volumechange:"jPlayer_volumechange" }; b.jPlayer.htmlEvent="loadstart abort emptied stalled loadedmetadata loadeddata canplay canplaythrough ratechange".split(" "); b.jPlayer.pause=function(){ b.each(b.jPlayer.prototype.instances,function(a,c){ c.data("jPlayer").status.srcSet&&c.jPlayer("pause") }) }; b.jPlayer.timeFormat={ showHour:!1, showMin:!0, showSec:!0, padHour:!1, padMin:!0, padSec:!0, sepHour:":", sepMin:":", sepSec:"" }; b.jPlayer.convertTime=function(a){ var c=new Date(1E3*a),d=c.getUTCHours(),a=c.getUTCMinutes(),c=c.getUTCSeconds(),d=b.jPlayer.timeFormat.padHour&&10>d?"0"+d:d,a=b.jPlayer.timeFormat.padMin&&10>a?"0"+a:a,c=b.jPlayer.timeFormat.padSec&&10>c?"0"+c:c; return(b.jPlayer.timeFormat.showHour?d+b.jPlayer.timeFormat.sepHour:"")+(b.jPlayer.timeFormat.showMin?a+b.jPlayer.timeFormat.sepMin:"")+(b.jPlayer.timeFormat.showSec?c+b.jPlayer.timeFormat.sepSec:"") }; b.jPlayer.uaBrowser= function(a){ var a=a.toLowerCase(),c=/(opera)(?:.*version)?[ \/]([\w.]+)/,b=/(msie) ([\w.]+)/,e=/(mozilla)(?:.*? rv:([\w.]+))?/,a=/(webkit)[ \/]([\w.]+)/.exec(a)||c.exec(a)||b.exec(a)||0>a.indexOf("compatible")&&e.exec(a)||[]; return{ browser:a[1]||"", version:a[2]||"0" }}; b.jPlayer.uaPlatform=function(a){ var b=a.toLowerCase(),d=/(android)/,e=/(mobile)/,a=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/.exec(b)||[],b=/(ipad|playbook)/.exec(b)||!e.exec(b)&&d.exec(b)||[]; a[1]&&(a[1]=a[1].replace(/\s/g, "_")); return{ platform:a[1]||"", tablet:b[1]||"" }}; b.jPlayer.browser={}; b.jPlayer.platform={}; var i=b.jPlayer.uaBrowser(navigator.userAgent); i.browser&&(b.jPlayer.browser[i.browser]=!0,b.jPlayer.browser.version=i.version); i=b.jPlayer.uaPlatform(navigator.userAgent); i.platform&&(b.jPlayer.platform[i.platform]=!0,b.jPlayer.platform.mobile=!i.tablet,b.jPlayer.platform.tablet=!!i.tablet); b.jPlayer.prototype={ count:0, version:{ script:"2.2.0", needFlash:"2.2.0", flash:"unknown" }, options:{ swfPath:"js", solution:"html, flash", supplied:"mp3", preload:"metadata", volume:0.8, muted:!1, wmode:"opaque", backgroundColor:"#000000", cssSelectorAncestor:"#jp_container_1", cssSelector:{ videoPlay:".jp-video-play", play:".jp-play", pause:".jp-pause", stop:".jp-stop", seekBar:".jp-seek-bar", playBar:".jp-play-bar", mute:".jp-mute", unmute:".jp-unmute", volumeBar:".jp-volume-bar", volumeBarValue:".jp-volume-bar-value", volumeMax:".jp-volume-max", currentTime:".jp-current-time", duration:".jp-duration", fullScreen:".jp-full-screen", restoreScreen:".jp-restore-screen", repeat:".jp-repeat", repeatOff:".jp-repeat-off", gui:".jp-gui", noSolution:".jp-no-solution" }, fullScreen:!1, autohide:{ restored:!1, full:!0, fadeIn:200, fadeOut:600, hold:1E3 }, loop:!1, repeat:function(a){ a.jPlayer.options.loop?b(this).unbind(".jPlayerRepeat").bind(b.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){ b(this).jPlayer("play") }):b(this).unbind(".jPlayerRepeat") }, nativeVideoControls:{}, noFullScreen:{ msie:/msie [0-6]/, ipad:/ipad.*?os [0-4]/, iphone:/iphone/, ipod:/ipod/, android_pad:/android [0-3](?!.*?mobile)/, android_phone:/android.*?mobile/, blackberry:/blackberry/, windows_ce:/windows ce/, webos:/webos/ }, noVolume:{ ipad:/ipad/, iphone:/iphone/, ipod:/ipod/, android_pad:/android(?!.*?mobile)/, android_phone:/android.*?mobile/, blackberry:/blackberry/, windows_ce:/windows ce/, webos:/webos/, playbook:/playbook/ }, verticalVolume:!1, idPrefix:"jp", noConflict:"jQuery", emulateHtml:!1, errorAlerts:!1, warningAlerts:!1 }, optionsAudio:{ size:{ width:"0px", height:"0px", cssClass:"" }, sizeFull:{ width:"0px", height:"0px", cssClass:"" }}, optionsVideo:{ size:{ width:"480px", height:"270px", cssClass:"jp-video-270p" }, sizeFull:{ width:"100%", height:"100%", cssClass:"jp-video-full" }}, instances:{}, status:{ src:"", media:{}, paused:!0, format:{}, formatType:"", waitForPlay:!0, waitForLoad:!0, srcSet:!1, video:!1, seekPercent:0, currentPercentRelative:0, currentPercentAbsolute:0, currentTime:0, duration:0, readyState:0, networkState:0, playbackRate:1, ended:0 }, internal:{ ready:!1 }, solution:{ html:!0, flash:!0 }, format:{ mp3:{ codec:'audio/mpeg; codecs="mp3"', flashCanPlay:!0, media:"audio" }, m4a:{ codec:'audio/mp4; codecs="mp4a.40.2"', flashCanPlay:!0, media:"audio" }, oga:{ codec:'audio/ogg; codecs="vorbis"', flashCanPlay:!1, media:"audio" }, wav:{ codec:'audio/wav; codecs="1"', flashCanPlay:!1, media:"audio" }, webma:{ codec:'audio/webm; codecs="vorbis"', flashCanPlay:!1, media:"audio" }, fla:{ codec:"audio/x-flv", flashCanPlay:!0, media:"audio" }, rtmpa:{ codec:'audio/rtmp; codecs="rtmp"', flashCanPlay:!0, media:"audio" }, m4v:{ codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"', flashCanPlay:!0, media:"video" }, ogv:{ codec:'video/ogg; codecs="theora, vorbis"', flashCanPlay:!1, media:"video" }, webmv:{ codec:'video/webm; codecs="vorbis, vp8"', flashCanPlay:!1, media:"video" }, flv:{ codec:"video/x-flv", flashCanPlay:!0, media:"video" }, rtmpv:{ codec:'video/rtmp; codecs="rtmp"', flashCanPlay:!0, media:"video" }}, _init:function(){ var a=this; this.element.empty(); this.status=b.extend({},this.status); this.internal=b.extend({},this.internal); this.internal.domNode=this.element.get(0); this.formats=[]; this.solutions=[]; this.require= {}; this.htmlElement={}; this.html={}; this.html.audio={}; this.html.video={}; this.flash={}; this.css={}; this.css.cs={}; this.css.jq={}; this.ancestorJq=[]; this.options.volume=this._limitValue(this.options.volume,0,1); b.each(this.options.supplied.toLowerCase().split(","),function(c,d){ var e=d.replace(/^\s+|\s+$/g,""); if(a.format[e]){ var f=false; b.each(a.formats,function(a,b){ if(e===b){ f=true; return false }}); f||a.formats.push(e) }}); b.each(this.options.solution.toLowerCase().split(","),function(c,d){ var e= d.replace(/^\s+|\s+$/g,""); if(a.solution[e]){ var f=false; b.each(a.solutions,function(a,b){ if(e===b){ f=true; return false }}); f||a.solutions.push(e) }}); this.internal.instance="jp_"+this.count; this.instances[this.internal.instance]=this.element; this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count); this.internal.self=b.extend({},{ id:this.element.attr("id"), jq:this.element }); this.internal.audio=b.extend({},{ id:this.options.idPrefix+"_audio_"+this.count, jq:f }); this.internal.video= b.extend({},{ id:this.options.idPrefix+"_video_"+this.count, jq:f }); this.internal.flash=b.extend({},{ id:this.options.idPrefix+"_flash_"+this.count, jq:f, swf:this.options.swfPath+(this.options.swfPath.toLowerCase().slice(-4)!==".swf"?(this.options.swfPath&&this.options.swfPath.slice(-1)!=="/"?"/":"")+"Jplayer.swf":"") }); this.internal.poster=b.extend({},{ id:this.options.idPrefix+"_poster_"+this.count, jq:f }); b.each(b.jPlayer.event,function(b,c){ if(a.options[b]!==f){ a.element.bind(c+".jPlayer",a.options[b]); a.options[b]=f }}); this.require.audio=false; this.require.video=false; b.each(this.formats,function(b,c){ a.require[a.format[c].media]=true }); this.options=this.require.video?b.extend(true,{},this.optionsVideo,this.options):b.extend(true,{},this.optionsAudio,this.options); this._setSize(); this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls); this.status.noFullScreen=this._uaBlocklist(this.options.noFullScreen); this.status.noVolume=this._uaBlocklist(this.options.noVolume); this._restrictNativeVideoControls(); this.htmlElement.poster=document.createElement("img"); this.htmlElement.poster.id=this.internal.poster.id; this.htmlElement.poster.onload=function(){ (!a.status.video||a.status.waitForPlay)&&a.internal.poster.jq.show() }; this.element.append(this.htmlElement.poster); this.internal.poster.jq=b("#"+this.internal.poster.id); this.internal.poster.jq.css({ width:this.status.width, height:this.status.height }); this.internal.poster.jq.hide(); this.internal.poster.jq.bind("click.jPlayer",function(){ a._trigger(b.jPlayer.event.click) }); this.html.audio.available=false; if(this.require.audio){ this.htmlElement.audio=document.createElement("audio"); this.htmlElement.audio.id=this.internal.audio.id; this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio) } this.html.video.available=false; if(this.require.video){ this.htmlElement.video=document.createElement("video"); this.htmlElement.video.id=this.internal.video.id; this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video) } this.flash.available= this._checkForFlash(10); this.html.canPlay={}; this.flash.canPlay={}; b.each(this.formats,function(b,c){ a.html.canPlay[c]=a.html[a.format[c].media].available&&""!==a.htmlElement[a.format[c].media].canPlayType(a.format[c].codec); a.flash.canPlay[c]=a.format[c].flashCanPlay&&a.flash.available }); this.html.desired=false; this.flash.desired=false; b.each(this.solutions,function(c,d){ if(c===0)a[d].desired=true; else{ var e=false,f=false; b.each(a.formats,function(b,c){ a[a.solutions[0]].canPlay[c]&&(a.format[c].media==="video"?f=true:e=true) }); a[d].desired=a.require.audio&&!e||a.require.video&&!f }}); this.html.support={}; this.flash.support={}; b.each(this.formats,function(b,c){ a.html.support[c]=a.html.canPlay[c]&&a.html.desired; a.flash.support[c]=a.flash.canPlay[c]&&a.flash.desired }); this.html.used=false; this.flash.used=false; b.each(this.solutions,function(c,d){ b.each(a.formats,function(b,c){ if(a[d].support[c]){ a[d].used=true; return false }}) }); this._resetActive(); this._resetGate(); this._cssSelectorAncestor(this.options.cssSelectorAncestor); if(!this.html.used&&!this.flash.used){ this._error({ type:b.jPlayer.error.NO_SOLUTION, context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}", message:b.jPlayer.errorMsg.NO_SOLUTION, hint:b.jPlayer.errorHint.NO_SOLUTION }); this.css.jq.noSolution.length&&this.css.jq.noSolution.show() }else this.css.jq.noSolution.length&&this.css.jq.noSolution.hide(); if(this.flash.used){ var c,d="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+ "&muted="+this.options.muted; if(b.jPlayer.browser.msie&&Number(b.jPlayer.browser.version)<=8){ d=['','','','','']; c=document.createElement(''); for(var e=0;e0?100*d/this.status.duration:0; if(typeof a.seekable==="object"&&a.seekable.length>0){ g=this.status.duration>0?100*a.seekable.end(a.seekable.length-1)/this.status.duration:100; f=this.status.duration>0?100*a.currentTime/a.seekable.end(a.seekable.length-1):0 }else{ g= 100; f=e } if(b)e=f=d=0; this.status.seekPercent=g; this.status.currentPercentRelative=f; this.status.currentPercentAbsolute=e; this.status.currentTime=d; this.status.readyState=a.readyState; this.status.networkState=a.networkState; this.status.playbackRate=a.playbackRate; this.status.ended=a.ended }, _resetStatus:function(){ this.status=b.extend({},this.status,b.jPlayer.prototype.status) }, _trigger:function(a,c,d){ a=b.Event(a); a.jPlayer={}; a.jPlayer.version=b.extend({},this.version); a.jPlayer.options=b.extend(true, {},this.options); a.jPlayer.status=b.extend(true,{},this.status); a.jPlayer.html=b.extend(true,{},this.html); a.jPlayer.flash=b.extend(true,{},this.flash); if(c)a.jPlayer.error=b.extend({},c); if(d)a.jPlayer.warning=b.extend({},d); this.element.trigger(a) }, jPlayerFlashEvent:function(a,c){ if(a===b.jPlayer.event.ready)if(this.internal.ready){ if(this.flash.gate){ if(this.status.srcSet){ var d=this.status.currentTime,e=this.status.paused; this.setMedia(this.status.media); d>0&&(e?this.pause(d):this.play(d)) } this._trigger(b.jPlayer.event.flashreset) }}else{ this.internal.ready= true; this.internal.flash.jq.css({ width:"0px", height:"0px" }); this.version.flash=c.version; this.version.needFlash!==this.version.flash&&this._error({ type:b.jPlayer.error.VERSION, context:this.version.flash, message:b.jPlayer.errorMsg.VERSION+this.version.flash, hint:b.jPlayer.errorHint.VERSION }); this._trigger(b.jPlayer.event.repeat); this._trigger(a) } if(this.flash.gate)switch(a){ case b.jPlayer.event.progress: this._getFlashStatus(c); this._updateInterface(); this._trigger(a); break; case b.jPlayer.event.timeupdate: this._getFlashStatus(c); this._updateInterface(); this._trigger(a); break; case b.jPlayer.event.play: this._seeked(); this._updateButtons(true); this._trigger(a); break; case b.jPlayer.event.pause: this._updateButtons(false); this._trigger(a); break; case b.jPlayer.event.ended: this._updateButtons(false); this._trigger(a); break; case b.jPlayer.event.click: this._trigger(a); break; case b.jPlayer.event.error: this.status.waitForLoad=true; this.status.waitForPlay=true; this.status.video&&this.internal.flash.jq.css({ width:"0px", height:"0px" }); this._validString(this.status.media.poster)&& this.internal.poster.jq.show(); this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show(); this.status.video?this._flash_setVideo(this.status.media):this._flash_setAudio(this.status.media); this._updateButtons(false); this._error({ type:b.jPlayer.error.URL, context:c.src, message:b.jPlayer.errorMsg.URL, hint:b.jPlayer.errorHint.URL }); break; case b.jPlayer.event.seeking: this._seeking(); this._trigger(a); break; case b.jPlayer.event.seeked: this._seeked(); this._trigger(a); break; case b.jPlayer.event.ready: break; default: this._trigger(a) } return false }, _getFlashStatus:function(a){ this.status.seekPercent=a.seekPercent; this.status.currentPercentRelative=a.currentPercentRelative; this.status.currentPercentAbsolute=a.currentPercentAbsolute; this.status.currentTime=a.currentTime; this.status.duration=a.duration; this.status.readyState=4; this.status.networkState=0; this.status.playbackRate=1; this.status.ended=false }, _updateButtons:function(a){ if(a!==f){ this.status.paused=!a; if(this.css.jq.play.length&&this.css.jq.pause.length)if(a){ this.css.jq.play.hide(); this.css.jq.pause.show() }else{ this.css.jq.play.show(); this.css.jq.pause.hide() }} if(this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length)if(this.status.noFullScreen){ this.css.jq.fullScreen.hide(); this.css.jq.restoreScreen.hide() }else if(this.options.fullScreen){ this.css.jq.fullScreen.hide(); this.css.jq.restoreScreen.show() }else{ this.css.jq.fullScreen.show(); this.css.jq.restoreScreen.hide() } if(this.css.jq.repeat.length&&this.css.jq.repeatOff.length)if(this.options.loop){ this.css.jq.repeat.hide(); this.css.jq.repeatOff.show() }else{ this.css.jq.repeat.show(); this.css.jq.repeatOff.hide() }}, _updateInterface:function(){ this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+"%"); this.css.jq.playBar.length&&this.css.jq.playBar.width(this.status.currentPercentRelative+"%"); this.css.jq.currentTime.length&&this.css.jq.currentTime.text(b.jPlayer.convertTime(this.status.currentTime)); this.css.jq.duration.length&&this.css.jq.duration.text(b.jPlayer.convertTime(this.status.duration)) }, _seeking:function(){ this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg") }, _seeked:function(){ this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg") }, _resetGate:function(){ this.html.audio.gate=false; this.html.video.gate=false; this.flash.gate=false }, _resetActive:function(){ this.html.active=false; this.flash.active=false }, setMedia:function(a){ var c=this,d=false,e=this.status.media.poster!==a.poster; this._resetMedia(); this._resetGate(); this._resetActive(); b.each(this.formats, function(e,f){ var i=c.format[f].media==="video"; b.each(c.solutions,function(b,e){ if(c[e].support[f]&&c._validString(a[f])){ var g=e==="html"; if(i){ if(g){ c.html.video.gate=true; c._html_setVideo(a); c.html.active=true }else{ c.flash.gate=true; c._flash_setVideo(a); c.flash.active=true } c.css.jq.videoPlay.length&&c.css.jq.videoPlay.show(); c.status.video=true }else{ if(g){ c.html.audio.gate=true; c._html_setAudio(a); c.html.active=true }else{ c.flash.gate=true; c._flash_setAudio(a); c.flash.active=true } c.css.jq.videoPlay.length&& c.css.jq.videoPlay.hide(); c.status.video=false } d=true; return false }}); if(d)return false }); if(d){ if((!this.status.nativeVideoControls||!this.html.video.gate)&&this._validString(a.poster))e?this.htmlElement.poster.src=a.poster:this.internal.poster.jq.show(); this.status.srcSet=true; this.status.media=b.extend({},a); this._updateButtons(false); this._updateInterface() }else this._error({ type:b.jPlayer.error.NO_SUPPORT, context:"{supplied:'"+this.options.supplied+"'}", message:b.jPlayer.errorMsg.NO_SUPPORT, hint:b.jPlayer.errorHint.NO_SUPPORT }) }, _resetMedia:function(){ this._resetStatus(); this._updateButtons(false); this._updateInterface(); this._seeked(); this.internal.poster.jq.hide(); clearTimeout(this.internal.htmlDlyCmdId); this.html.active?this._html_resetMedia():this.flash.active&&this._flash_resetMedia() }, clearMedia:function(){ this._resetMedia(); this.html.active?this._html_clearMedia():this.flash.active&&this._flash_clearMedia(); this._resetGate(); this._resetActive() }, load:function(){ this.status.srcSet? this.html.active?this._html_load():this.flash.active&&this._flash_load():this._urlNotSetError("load") }, play:function(a){ a=typeof a==="number"?a:NaN; this.status.srcSet?this.html.active?this._html_play(a):this.flash.active&&this._flash_play(a):this._urlNotSetError("play") }, videoPlay:function(){ this.play() }, pause:function(a){ a=typeof a==="number"?a:NaN; this.status.srcSet?this.html.active?this._html_pause(a):this.flash.active&&this._flash_pause(a):this._urlNotSetError("pause") }, pauseOthers:function(){ var a= this; b.each(this.instances,function(b,d){ a.element!==d&&d.data("jPlayer").status.srcSet&&d.jPlayer("pause") }) }, stop:function(){ this.status.srcSet?this.html.active?this._html_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop") }, playHead:function(a){ a=this._limitValue(a,0,100); this.status.srcSet?this.html.active?this._html_playHead(a):this.flash.active&&this._flash_playHead(a):this._urlNotSetError("playHead") }, _muted:function(a){ this.options.muted=a; this.html.used&&this._html_mute(a); this.flash.used&&this._flash_mute(a); if(!this.html.video.gate&&!this.html.audio.gate){ this._updateMute(a); this._updateVolume(this.options.volume); this._trigger(b.jPlayer.event.volumechange) }}, mute:function(a){ a=a===f?true:!!a; this._muted(a) }, unmute:function(a){ a=a===f?true:!!a; this._muted(!a) }, _updateMute:function(a){ if(a===f)a=this.options.muted; if(this.css.jq.mute.length&&this.css.jq.unmute.length)if(this.status.noVolume){ this.css.jq.mute.hide(); this.css.jq.unmute.hide() }else if(a){ this.css.jq.mute.hide(); this.css.jq.unmute.show() }else{ this.css.jq.mute.show(); this.css.jq.unmute.hide() }}, volume:function(a){ a=this._limitValue(a,0,1); this.options.volume=a; this.html.used&&this._html_volume(a); this.flash.used&&this._flash_volume(a); if(!this.html.video.gate&&!this.html.audio.gate){ this._updateVolume(a); this._trigger(b.jPlayer.event.volumechange) }}, volumeBar:function(a){ if(this.css.jq.volumeBar.length){ var b=this.css.jq.volumeBar.offset(),d=a.pageX-b.left,e=this.css.jq.volumeBar.width(),a=this.css.jq.volumeBar.height()- a.pageY+b.top,b=this.css.jq.volumeBar.height(); this.options.verticalVolume?this.volume(a/b):this.volume(d/e) } this.options.muted&&this._muted(false) }, volumeBarValue:function(a){ this.volumeBar(a) }, _updateVolume:function(a){ if(a===f)a=this.options.volume; a=this.options.muted?0:a; if(this.status.noVolume){ this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(); this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(); this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide() }else{ this.css.jq.volumeBar.length&& this.css.jq.volumeBar.show(); if(this.css.jq.volumeBarValue.length){ this.css.jq.volumeBarValue.show(); this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](a*100+"%") } this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show() }}, volumeMax:function(){ this.volume(1); this.options.muted&&this._muted(false) }, _cssSelectorAncestor:function(a){ var c=this; this.options.cssSelectorAncestor=a; this._removeUiClass(); this.ancestorJq=a?b(a):[]; a&&this.ancestorJq.length!==1&&this._warning({ type:b.jPlayer.warning.CSS_SELECTOR_COUNT, context:a, message:b.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.", hint:b.jPlayer.warningHint.CSS_SELECTOR_COUNT }); this._addUiClass(); b.each(this.options.cssSelector,function(a,b){ c._cssSelector(a,b) }) }, _cssSelector:function(a,c){ var d=this; if(typeof c==="string")if(b.jPlayer.prototype.options.cssSelector[a]){ this.css.jq[a]&&this.css.jq[a].length&&this.css.jq[a].unbind(".jPlayer"); this.options.cssSelector[a]=c; this.css.cs[a]=this.options.cssSelectorAncestor+ " "+c; this.css.jq[a]=c?b(this.css.cs[a]):[]; this.css.jq[a].length&&this.css.jq[a].bind("click.jPlayer",function(c){ d[a](c); b(this).blur(); return false }); c&&this.css.jq[a].length!==1&&this._warning({ type:b.jPlayer.warning.CSS_SELECTOR_COUNT, context:this.css.cs[a], message:b.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[a].length+" found for "+a+" method.", hint:b.jPlayer.warningHint.CSS_SELECTOR_COUNT }) }else this._warning({ type:b.jPlayer.warning.CSS_SELECTOR_METHOD, context:a, message:b.jPlayer.warningMsg.CSS_SELECTOR_METHOD, hint:b.jPlayer.warningHint.CSS_SELECTOR_METHOD });else this._warning({ type:b.jPlayer.warning.CSS_SELECTOR_STRING, context:c, message:b.jPlayer.warningMsg.CSS_SELECTOR_STRING, hint:b.jPlayer.warningHint.CSS_SELECTOR_STRING }) }, seekBar:function(a){ if(this.css.jq.seekBar){ var b=this.css.jq.seekBar.offset(),a=a.pageX-b.left,b=this.css.jq.seekBar.width(); this.playHead(100*a/b) }}, playBar:function(a){ this.seekBar(a) }, repeat:function(){ this._loop(true) }, repeatOff:function(){ this._loop(false) }, _loop:function(a){ if(this.options.loop!==a){ this.options.loop=a; this._updateButtons(); this._trigger(b.jPlayer.event.repeat) }}, currentTime:function(){}, duration:function(){}, gui:function(){}, noSolution:function(){}, option:function(a,c){ var d=a; if(arguments.length===0)return b.extend(true,{},this.options); if(typeof a==="string"){ var e=a.split("."); if(c===f){ for(var d=b.extend(true,{},this.options),g=0;g0?this._html_load():clearTimeout(this.internal.htmlDlyCmdId); this.htmlElement.media.pause(); if(!isNaN(a))try{ this.htmlElement.media.currentTime= a }catch(d){ this.internal.htmlDlyCmdId=setTimeout(function(){ b.pause(a) },100); return } a>0&&this._html_checkWaitForPlay() }, _html_playHead:function(a){ var b=this; this._html_load(); try{ if(typeof this.htmlElement.media.seekable==="object"&&this.htmlElement.media.seekable.length>0)this.htmlElement.media.currentTime=a*this.htmlElement.media.seekable.end(this.htmlElement.media.seekable.length-1)/100; else if(this.htmlElement.media.duration>0&&!isNaN(this.htmlElement.media.duration))this.htmlElement.media.currentTime= a*this.htmlElement.media.duration/100;else throw"e"; }catch(d){ this.internal.htmlDlyCmdId=setTimeout(function(){ b.playHead(a) },100); return } this.status.waitForLoad||this._html_checkWaitForPlay() }, _html_checkWaitForPlay:function(){ if(this.status.waitForPlay){ this.status.waitForPlay=false; this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(); if(this.status.video){ this.internal.poster.jq.hide(); this.internal.video.jq.css({ width:this.status.width, height:this.status.height }) }} }, _html_volume:function(a){ if(this.html.audio.available)this.htmlElement.audio.volume= a; if(this.html.video.available)this.htmlElement.video.volume=a }, _html_mute:function(a){ if(this.html.audio.available)this.htmlElement.audio.muted=a; if(this.html.video.available)this.htmlElement.video.muted=a }, _flash_setAudio:function(a){ var c=this; try{ b.each(this.formats,function(b,d){ if(c.flash.support[d]&&a[d]){ switch(d){ case "m4a":case "fla": c._getMovie().fl_setAudio_m4a(a[d]); break; case "mp3": c._getMovie().fl_setAudio_mp3(a[d]); break; case "rtmpa": c._getMovie().fl_setAudio_rtmp(a[d]) } c.status.src= a[d]; c.status.format[d]=true; c.status.formatType=d; return false }}); if(this.options.preload==="auto"){ this._flash_load(); this.status.waitForLoad=false }}catch(d){ this._flashError(d) }}, _flash_setVideo:function(a){ var c=this; try{ b.each(this.formats,function(b,d){ if(c.flash.support[d]&&a[d]){ switch(d){ case "m4v":case "flv": c._getMovie().fl_setVideo_m4v(a[d]); break; case "rtmpv": c._getMovie().fl_setVideo_rtmp(a[d]) } c.status.src=a[d]; c.status.format[d]=true; c.status.formatType=d; return false }}); if(this.options.preload==="auto"){ this._flash_load(); this.status.waitForLoad=false }}catch(d){ this._flashError(d) }}, _flash_resetMedia:function(){ this.internal.flash.jq.css({ width:"0px", height:"0px" }); this._flash_pause(NaN) }, _flash_clearMedia:function(){ try{ this._getMovie().fl_clearMedia() }catch(a){ this._flashError(a) }}, _flash_load:function(){ try{ this._getMovie().fl_load() }catch(a){ this._flashError(a) } this.status.waitForLoad=false }, _flash_play:function(a){ try{ this._getMovie().fl_play(a) }catch(b){ this._flashError(b) } this.status.waitForLoad= false; this._flash_checkWaitForPlay() }, _flash_pause:function(a){ try{ this._getMovie().fl_pause(a) }catch(b){ this._flashError(b) } if(a>0){ this.status.waitForLoad=false; this._flash_checkWaitForPlay() }}, _flash_playHead:function(a){ try{ this._getMovie().fl_play_head(a) }catch(b){ this._flashError(b) } this.status.waitForLoad||this._flash_checkWaitForPlay() }, _flash_checkWaitForPlay:function(){ if(this.status.waitForPlay){ this.status.waitForPlay=false; this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(); if(this.status.video){ this.internal.poster.jq.hide(); this.internal.flash.jq.css({ width:this.status.width, height:this.status.height }) }} }, _flash_volume:function(a){ try{ this._getMovie().fl_volume(a) }catch(b){ this._flashError(b) }}, _flash_mute:function(a){ try{ this._getMovie().fl_mute(a) }catch(b){ this._flashError(b) }}, _getMovie:function(){ return document[this.internal.flash.id] }, _checkForFlash:function(a){ var b=false,d; if(window.ActiveXObject)try{ new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a); b=true }catch(e){}else if(navigator.plugins&&navigator.mimeTypes.length> 0)(d=navigator.plugins["Shockwave Flash"])&&navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1")>=a&&(b=true); return b }, _validString:function(a){ return a&&typeof a==="string" }, _limitValue:function(a,b,d){ return ad?d:a }, _urlNotSetError:function(a){ this._error({ type:b.jPlayer.error.URL_NOT_SET, context:a, message:b.jPlayer.errorMsg.URL_NOT_SET, hint:b.jPlayer.errorHint.URL_NOT_SET }) }, _flashError:function(a){ var c; c=this.internal.ready?"FLASH_DISABLED":"FLASH"; this._error({ type:b.jPlayer.error[c], context:this.internal.flash.swf, message:b.jPlayer.errorMsg[c]+a.message, hint:b.jPlayer.errorHint[c] }); this.internal.flash.jq.css({ width:"1px", height:"1px" }) }, _error:function(a){ this._trigger(b.jPlayer.event.error,a); this.options.errorAlerts&&this._alert("Error!"+(a.message?"\n\n"+a.message:"")+(a.hint?"\n\n"+a.hint:"")+"\n\nContext: "+a.context) }, _warning:function(a){ this._trigger(b.jPlayer.event.warning,f,a); this.options.warningAlerts&&this._alert("Warning!"+(a.message?"\n\n"+a.message:"")+(a.hint? "\n\n"+a.hint:"")+"\n\nContext: "+a.context) }, _alert:function(a){ alert("jPlayer "+this.version.script+":id='"+this.internal.self.id+"':"+a) }, _emulateHtmlBridge:function(){ var a=this; b.each(b.jPlayer.emulateMethods.split(/\s+/g),function(b,d){ a.internal.domNode[d]=function(b){ a[d](b) }}); b.each(b.jPlayer.event,function(c,d){ var e=true; b.each(b.jPlayer.reservedEvent.split(/\s+/g),function(a,b){ if(b===c)return e=false }); e&&a.element.bind(d+".jPlayer.jPlayerHtml",function(){ a._emulateHtmlUpdate(); var b=document.createEvent("Event"); b.initEvent(c,false,true); a.internal.domNode.dispatchEvent(b) }) }) }, _emulateHtmlUpdate:function(){ var a=this; b.each(b.jPlayer.emulateStatus.split(/\s+/g),function(b,d){ a.internal.domNode[d]=a.status[d] }); b.each(b.jPlayer.emulateOptions.split(/\s+/g),function(b,d){ a.internal.domNode[d]=a.options[d] }) }, _destroyHtmlBridge:function(){ var a=this; this.element.unbind(".jPlayerHtml"); b.each((b.jPlayer.emulateMethods+" "+b.jPlayer.emulateStatus+" "+b.jPlayer.emulateOptions).split(/\s+/g), function(b,d){ delete a.internal.domNode[d] }) }}; b.jPlayer.error={ FLASH:"e_flash", FLASH_DISABLED:"e_flash_disabled", NO_SOLUTION:"e_no_solution", NO_SUPPORT:"e_no_support", URL:"e_url", URL_NOT_SET:"e_url_not_set", VERSION:"e_version" }; b.jPlayer.errorMsg={ FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ", FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ", NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.", NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.", URL:"Media URL could not be loaded.", URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.", VERSION:"jPlayer "+b.jPlayer.prototype.version.script+" needs Jplayer.swf version "+b.jPlayer.prototype.version.needFlash+" but found " }; b.jPlayer.errorHint={ FLASH:"Check your swfPath option and that Jplayer.swf is there.", FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.", NO_SOLUTION:"Review the jPlayer options: support and supplied.", NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.", URL:"Check media URL is valid.", URL_NOT_SET:"Use setMedia() to set the media URL.", VERSION:"Update jPlayer files." }; b.jPlayer.warning={ CSS_SELECTOR_COUNT:"e_css_selector_count", CSS_SELECTOR_METHOD:"e_css_selector_method", CSS_SELECTOR_STRING:"e_css_selector_string", OPTION_KEY:"e_option_key" }; b.jPlayer.warningMsg={ CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ", CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.", CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.", OPTION_KEY:"The option requested in jPlayer('option') is undefined." }; b.jPlayer.warningHint={ CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.", CSS_SELECTOR_METHOD:"Check your method name.", CSS_SELECTOR_STRING:"Check your css selector is a string.", OPTION_KEY:"Check your option name." }})(jQuery); (function(e){var t=function(t,n){var r=e.extend({},e.fn.nivoSlider.defaults,n);var i={currentSlide:0,currentImage:"",totalSlides:0,running:false,paused:false,stop:false,controlNavEl:false};var s=e(t);s.data("nivo:vars",i).addClass("nivoSlider");var o=s.children();o.each(function(){var t=e(this);var n="";if(!t.is("img")){if(t.is("a")){t.addClass("nivo-imageLink");n=t}t=t.find("img:first")}var r=r===0?t.attr("width"):t.width(),s=s===0?t.attr("height"):t.height();if(n!==""){n.css("display","none")}t.css("display","none");i.totalSlides++});if(r.randomStart){r.startSlide=Math.floor(Math.random()*i.totalSlides)}if(r.startSlide>0){if(r.startSlide>=i.totalSlides){r.startSlide=i.totalSlides-1}i.currentSlide=r.startSlide}if(e(o[i.currentSlide]).is("img")){i.currentImage=e(o[i.currentSlide])}else{i.currentImage=e(o[i.currentSlide]).find("img:first")}if(e(o[i.currentSlide]).is("a")){e(o[i.currentSlide]).css("display","block")}var u=e("").addClass("nivo-main-image");u.attr("src",i.currentImage.attr("src")).show();s.append(u);e(window).resize(function(){s.children("img").width(s.width());u.attr("src",i.currentImage.attr("src"));u.stop().height("auto");e(".nivo-slice").remove();e(".nivo-box").remove()});s.append(e('
    '));var a=function(t){var n=e(".nivo-caption",s);if(i.currentImage.attr("title")!=""&&i.currentImage.attr("title")!=undefined){var r=i.currentImage.attr("title");if(r.substr(0,1)=="#")r=e(r).html();if(n.css("display")=="block"){setTimeout(function(){n.html(r)},t.animSpeed)}else{n.html(r);n.stop().fadeIn(t.animSpeed)}}else{n.stop().fadeOut(t.animSpeed)}};a(r);var f=0;if(!r.manualAdvance&&o.length>1){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}if(r.directionNav){s.append('");e(s).on("click","a.nivo-prevNav",function(){if(i.running){return false}clearInterval(f);f="";i.currentSlide-=2;d(s,o,r,"prev")});e(s).on("click","a.nivo-nextNav",function(){if(i.running){return false}clearInterval(f);f="";d(s,o,r,"next")})}if(r.controlNav){i.controlNavEl=e('
    ');s.after(i.controlNavEl);for(var l=0;l')}else{i.controlNavEl.append(''+(l+1)+"")}}e("a:eq("+i.currentSlide+")",i.controlNavEl).addClass("active");e("a",i.controlNavEl).bind("click",function(){if(i.running)return false;if(e(this).hasClass("active"))return false;clearInterval(f);f="";u.attr("src",i.currentImage.attr("src"));i.currentSlide=e(this).attr("rel")-1;d(s,o,r,"control")})}if(r.pauseOnHover){s.hover(function(){i.paused=true;clearInterval(f);f=""},function(){i.paused=false;if(f===""&&!r.manualAdvance){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}})}s.bind("nivo:animFinished",function(){u.attr("src",i.currentImage.attr("src"));i.running=false;e(o).each(function(){if(e(this).is("a")){e(this).css("display","none")}});if(e(o[i.currentSlide]).is("a")){e(o[i.currentSlide]).css("display","block")}if(f===""&&!i.paused&&!r.manualAdvance){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}r.afterChange.call(this)});var h=function(t,n,r){if(e(r.currentImage).parent().is("a"))e(r.currentImage).parent().css("display","block");e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();var i=e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().is("a")?e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().height():e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height();for(var s=0;s
    ').css({left:o*s+"px",width:t.width()-o*s+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}else{t.append(e('
    ').css({left:o*s+"px",width:o+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}}e(".nivo-slice",t).height(i);u.stop().animate({height:e(r.currentImage).height()},n.animSpeed)};var p=function(t,n,r){if(e(r.currentImage).parent().is("a"))e(r.currentImage).parent().css("display","block");e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();var i=Math.round(t.width()/n.boxCols),s=Math.round(e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height()/n.boxRows);for(var o=0;o').css({opacity:0,left:i*a+"px",top:s*o+"px",width:t.width()-i*a+"px"}));e('.nivo-box[name="'+a+'"]',t).height(e('.nivo-box[name="'+a+'"] img',t).height()+"px")}else{t.append(e('
    ').css({opacity:0,left:i*a+"px",top:s*o+"px",width:i+"px"}));e('.nivo-box[name="'+a+'"]',t).height(e('.nivo-box[name="'+a+'"] img',t).height()+"px")}}}u.stop().animate({height:e(r.currentImage).height()},n.animSpeed)};var d=function(t,n,r,i){var s=t.data("nivo:vars");if(s&&s.currentSlide===s.totalSlides-1){r.lastSlide.call(this)}if((!s||s.stop)&&!i){return false}r.beforeChange.call(this);if(!i){u.attr("src",s.currentImage.attr("src"))}else{if(i==="prev"){u.attr("src",s.currentImage.attr("src"))}if(i==="next"){u.attr("src",s.currentImage.attr("src"))}}s.currentSlide++;if(s.currentSlide===s.totalSlides){s.currentSlide=0;r.slideshowEnd.call(this)}if(s.currentSlide<0){s.currentSlide=s.totalSlides-1}if(e(n[s.currentSlide]).is("img")){s.currentImage=e(n[s.currentSlide])}else{s.currentImage=e(n[s.currentSlide]).find("img:first")}if(r.controlNav){e("a",s.controlNavEl).removeClass("active");e("a:eq("+s.currentSlide+")",s.controlNavEl).addClass("active")}a(r);e(".nivo-slice",t).remove();e(".nivo-box",t).remove();var o=r.effect,f="";if(r.effect==="random"){f=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse");o=f[Math.floor(Math.random()*(f.length+1))];if(o===undefined){o="fade"}}if(r.effect.indexOf(",")!==-1){f=r.effect.split(",");o=f[Math.floor(Math.random()*f.length)];if(o===undefined){o="fade"}}if(s.currentImage.attr("data-transition")){o=s.currentImage.attr("data-transition")}s.running=true;var l=0,c=0,d="",m="",g="",y="";if(o==="sliceDown"||o==="sliceDownRight"||o==="sliceDownLeft"){h(t,r,s);l=0;c=0;d=e(".nivo-slice",t);if(o==="sliceDownLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);n.css({top:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="sliceUp"||o==="sliceUpRight"||o==="sliceUpLeft"){h(t,r,s);l=0;c=0;d=e(".nivo-slice",t);if(o==="sliceUpLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);n.css({bottom:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="sliceUpDown"||o==="sliceUpDownRight"||o==="sliceUpDownLeft"){h(t,r,s);l=0;c=0;var b=0;d=e(".nivo-slice",t);if(o==="sliceUpDownLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);if(c===0){n.css("top","0px");c++}else{n.css("bottom","0px");c=0}if(b===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;b++})}else if(o==="fold"){h(t,r,s);l=0;c=0;e(".nivo-slice",t).each(function(){var n=e(this);var i=n.width();n.css({top:"0px",width:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({width:i,opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({width:i,opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="fade"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:t.width()+"px"});m.animate({opacity:"1.0"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")})}else if(o==="slideInRight"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:"0px",opacity:"1"});m.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")})}else if(o==="slideInLeft"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:"0px",opacity:"1",left:"",right:"0px"});m.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){m.css({left:"0px",right:""});t.trigger("nivo:animFinished")})}else if(o==="boxRandom"){p(t,r,s);g=r.boxCols*r.boxRows;c=0;l=0;y=v(e(".nivo-box",t));y.each(function(){var n=e(this);if(c===g-1){setTimeout(function(){n.animate({opacity:"1"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1"},r.animSpeed)},100+l)}l+=20;c++})}else if(o==="boxRain"||o==="boxRainReverse"||o==="boxRainGrow"||o==="boxRainGrowReverse"){p(t,r,s);g=r.boxCols*r.boxRows;c=0;l=0;var w=0;var E=0;var S=[];S[w]=[];y=e(".nivo-box",t);if(o==="boxRainReverse"||o==="boxRainGrowReverse"){y=e(".nivo-box",t)._reverse()}y.each(function(){S[w][E]=e(this);E++;if(E===r.boxCols){w++;E=0;S[w]=[]}});for(var x=0;x=0&&Th;h++){var j=this[h],k=a.data(j,b);if(k)if(a.isFunction(k[e])&&"_"!==e.charAt(0)){var l=k[e].apply(k,g);if(void 0!==l)return l}else f("no such method '"+e+"' for "+b+" instance");else f("cannot call methods on "+b+" prior to initialization; attempted to call '"+e+"'")}return this}return this.each(function(){var d=a.data(this,b);d?(d.option(e),d._init()):(d=new c(this,e),a.data(this,b,d))})}}if(a){var f="undefined"==typeof console?b:function(a){console.error(a)};return a.bridget=function(a,b){c(b),e(a,b)},a.bridget}}var d=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],c):c("object"==typeof exports?require("jquery"):a.jQuery)}(window),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):"object"==typeof exports?module.exports=f:a.eventie=f}(window),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if(a instanceof RegExp){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;be;e++)if(b=c[e]+a,"string"==typeof d[b])return b}}var c="Webkit Moz ms Ms O".split(" "),d=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return b}):"object"==typeof exports?module.exports=b:a.getStyleProperty=b}(window),function(a,b){function c(a){var b=parseFloat(a),c=-1===a.indexOf("%")&&!isNaN(b);return c&&b}function d(){}function e(){for(var a={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},b=0,c=h.length;c>b;b++){var d=h[b];a[d]=0}return a}function f(b){function d(){if(!m){m=!0;var d=a.getComputedStyle;if(j=function(){var a=d?function(a){return d(a,null)}:function(a){return a.currentStyle};return function(b){var c=a(b);return c||g("Style returned "+c+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),c}}(),k=b("boxSizing")){var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style[k]="border-box";var f=document.body||document.documentElement;f.appendChild(e);var h=j(e);l=200===c(h.width),f.removeChild(e)}}}function f(a){if(d(),"string"==typeof a&&(a=document.querySelector(a)),a&&"object"==typeof a&&a.nodeType){var b=j(a);if("none"===b.display)return e();var f={};f.width=a.offsetWidth,f.height=a.offsetHeight;for(var g=f.isBorderBox=!(!k||!b[k]||"border-box"!==b[k]),m=0,n=h.length;n>m;m++){var o=h[m],p=b[o];p=i(a,p);var q=parseFloat(p);f[o]=isNaN(q)?0:q}var r=f.paddingLeft+f.paddingRight,s=f.paddingTop+f.paddingBottom,t=f.marginLeft+f.marginRight,u=f.marginTop+f.marginBottom,v=f.borderLeftWidth+f.borderRightWidth,w=f.borderTopWidth+f.borderBottomWidth,x=g&&l,y=c(b.width);y!==!1&&(f.width=y+(x?0:r+v));var z=c(b.height);return z!==!1&&(f.height=z+(x?0:s+w)),f.innerWidth=f.width-(r+v),f.innerHeight=f.height-(s+w),f.outerWidth=f.width+t,f.outerHeight=f.height+u,f}}function i(b,c){if(a.getComputedStyle||-1===c.indexOf("%"))return c;var d=b.style,e=d.left,f=b.runtimeStyle,g=f&&f.left;return g&&(f.left=b.currentStyle.left),d.left=c,c=d.pixelLeft,d.left=e,g&&(f.left=g),c}var j,k,l,m=!1;return f}var g="undefined"==typeof console?d:function(a){console.error(a)},h=["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"],f):"object"==typeof exports?module.exports=f(require("desandro-get-style-property")):a.getSize=f(a.getStyleProperty)}(window),function(a){function b(a){"function"==typeof a&&(b.isReady?a():g.push(a))}function c(a){var c="readystatechange"===a.type&&"complete"!==f.readyState;b.isReady||c||d()}function d(){b.isReady=!0;for(var a=0,c=g.length;c>a;a++){var d=g[a];d()}}function e(e){return"complete"===f.readyState?d():(e.bind(f,"DOMContentLoaded",c),e.bind(f,"readystatechange",c),e.bind(a,"load",c)),b}var f=a.document,g=[];b.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],e):"object"==typeof exports?module.exports=e(require("eventie")):a.docReady=e(a.eventie)}(window),function(a){"use strict";function b(a,b){return a[g](b)}function c(a){if(!a.parentNode){var b=document.createDocumentFragment();b.appendChild(a)}}function d(a,b){c(a);for(var d=a.parentNode.querySelectorAll(b),e=0,f=d.length;f>e;e++)if(d[e]===a)return!0;return!1}function e(a,d){return c(a),b(a,d)}var f,g=function(){if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var b=["webkit","moz","ms","o"],c=0,d=b.length;d>c;c++){var e=b[c],f=e+"MatchesSelector";if(a[f])return f}}();if(g){var h=document.createElement("div"),i=b(h,"div");f=i?b:e}else f=d;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return f}):"object"==typeof exports?module.exports=f:window.matchesSelector=f}(Element.prototype),function(a,b){"use strict";"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("doc-ready"),require("desandro-matches-selector")):a.fizzyUIUtils=b(a,a.docReady,a.matchesSelector)}(window,function(a,b,c){var d={};d.extend=function(a,b){for(var c in b)a[c]=b[c];return a},d.modulo=function(a,b){return(a%b+b)%b};var e=Object.prototype.toString;d.isArray=function(a){return"[object Array]"==e.call(a)},d.makeArray=function(a){var b=[];if(d.isArray(a))b=a;else if(a&&"number"==typeof a.length)for(var c=0,e=a.length;e>c;c++)b.push(a[c]);else b.push(a);return b},d.indexOf=Array.prototype.indexOf?function(a,b){return a.indexOf(b)}:function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},d.removeFrom=function(a,b){var c=d.indexOf(a,b);-1!=c&&a.splice(c,1)},d.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(a){return a instanceof HTMLElement}:function(a){return a&&"object"==typeof a&&1==a.nodeType&&"string"==typeof a.nodeName},d.setText=function(){function a(a,c){b=b||(void 0!==document.documentElement.textContent?"textContent":"innerText"),a[b]=c}var b;return a}(),d.getParent=function(a,b){for(;a!=document.body;)if(a=a.parentNode,c(a,b))return a},d.getQueryElement=function(a){return"string"==typeof a?document.querySelector(a):a},d.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},d.filterFindElements=function(a,b){a=d.makeArray(a);for(var e=[],f=0,g=a.length;g>f;f++){var h=a[f];if(d.isElement(h))if(b){c(h,b)&&e.push(h);for(var i=h.querySelectorAll(b),j=0,k=i.length;k>j;j++)e.push(i[j])}else e.push(h)}return e},d.debounceMethod=function(a,b,c){var d=a.prototype[b],e=b+"Timeout";a.prototype[b]=function(){var a=this[e];a&&clearTimeout(a);var b=arguments,f=this;this[e]=setTimeout(function(){d.apply(f,b),delete f[e]},c||100)}},d.toDashed=function(a){return a.replace(/(.)([A-Z])/g,function(a,b,c){return b+"-"+c}).toLowerCase()};var f=a.console;return d.htmlInit=function(c,e){b(function(){for(var b=d.toDashed(e),g=document.querySelectorAll(".js-"+b),h="data-"+b+"-options",i=0,j=g.length;j>i;i++){var k,l=g[i],m=l.getAttribute(h);try{k=m&&JSON.parse(m)}catch(n){f&&f.error("Error parsing "+h+" on "+l.nodeName.toLowerCase()+(l.id?"#"+l.id:"")+": "+n);continue}var o=new c(l,k),p=a.jQuery;p&&p.data(l,e,o)}})},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(c,d,e,f){return b(a,c,d,e,f)}):"object"==typeof exports?module.exports=b(a,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(a.Outlayer={},a.Outlayer.Item=b(a,a.EventEmitter,a.getSize,a.getStyleProperty,a.fizzyUIUtils))}(window,function(a,b,c,d,e){"use strict";function f(a){for(var b in a)return!1;return b=null,!0}function g(a,b){a&&(this.element=a,this.layout=b,this.position={x:0,y:0},this._create())}function h(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}var i=a.getComputedStyle,j=i?function(a){return i(a,null)}:function(a){return a.currentStyle},k=d("transition"),l=d("transform"),m=k&&l,n=!!d("perspective"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[k],p=["transform","transition","transitionDuration","transitionProperty"],q=function(){for(var a={},b=0,c=p.length;c>b;b++){var e=p[b],f=d(e);f&&f!==e&&(a[e]=f)}return a}();e.extend(g.prototype,b.prototype),g.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.getSize=function(){this.size=c(this.element)},g.prototype.css=function(a){var b=this.element.style;for(var c in a){var d=q[c]||c;b[d]=a[c]}},g.prototype.getPosition=function(){var a=j(this.element),b=this.layout.options,c=b.isOriginLeft,d=b.isOriginTop,e=a[c?"left":"right"],f=a[d?"top":"bottom"],g=this.layout.size,h=-1!=e.indexOf("%")?parseFloat(e)/100*g.width:parseInt(e,10),i=-1!=f.indexOf("%")?parseFloat(f)/100*g.height:parseInt(f,10);h=isNaN(h)?0:h,i=isNaN(i)?0:i,h-=c?g.paddingLeft:g.paddingRight,i-=d?g.paddingTop:g.paddingBottom,this.position.x=h,this.position.y=i},g.prototype.layoutPosition=function(){var a=this.layout.size,b=this.layout.options,c={},d=b.isOriginLeft?"paddingLeft":"paddingRight",e=b.isOriginLeft?"left":"right",f=b.isOriginLeft?"right":"left",g=this.position.x+a[d];c[e]=this.getXValue(g),c[f]="";var h=b.isOriginTop?"paddingTop":"paddingBottom",i=b.isOriginTop?"top":"bottom",j=b.isOriginTop?"bottom":"top",k=this.position.y+a[h];c[i]=this.getYValue(k),c[j]="",this.css(c),this.emitEvent("layout",[this])},g.prototype.getXValue=function(a){var b=this.layout.options;return b.percentPosition&&!b.isHorizontal?a/this.layout.size.width*100+"%":a+"px"},g.prototype.getYValue=function(a){var b=this.layout.options;return b.percentPosition&&b.isHorizontal?a/this.layout.size.height*100+"%":a+"px"},g.prototype._transitionTo=function(a,b){this.getPosition();var c=this.position.x,d=this.position.y,e=parseInt(a,10),f=parseInt(b,10),g=e===this.position.x&&f===this.position.y;if(this.setPosition(a,b),g&&!this.isTransitioning)return void this.layoutPosition();var h=a-c,i=b-d,j={};j.transform=this.getTranslate(h,i),this.transition({to:j,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},g.prototype.getTranslate=function(a,b){var c=this.layout.options;return a=c.isOriginLeft?a:-a,b=c.isOriginTop?b:-b,n?"translate3d("+a+"px, "+b+"px, 0)":"translate("+a+"px, "+b+"px)"},g.prototype.goTo=function(a,b){this.setPosition(a,b),this.layoutPosition()},g.prototype.moveTo=m?g.prototype._transitionTo:g.prototype.goTo,g.prototype.setPosition=function(a,b){this.position.x=parseInt(a,10),this.position.y=parseInt(b,10)},g.prototype._nonTransition=function(a){this.css(a.to),a.isCleaning&&this._removeStyles(a.to);for(var b in a.onTransitionEnd)a.onTransitionEnd[b].call(this)},g.prototype._transition=function(a){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(a);var b=this._transn;for(var c in a.onTransitionEnd)b.onEnd[c]=a.onTransitionEnd[c];for(c in a.to)b.ingProperties[c]=!0,a.isCleaning&&(b.clean[c]=!0);if(a.from){this.css(a.from);var d=this.element.offsetHeight;d=null}this.enableTransition(a.to),this.css(a.to),this.isTransitioning=!0};var r="opacity,"+h(q.transform||"transform");g.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:r,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(o,this,!1))},g.prototype.transition=g.prototype[k?"_transition":"_nonTransition"],g.prototype.onwebkitTransitionEnd=function(a){this.ontransitionend(a)},g.prototype.onotransitionend=function(a){this.ontransitionend(a)};var s={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};g.prototype.ontransitionend=function(a){if(a.target===this.element){var b=this._transn,c=s[a.propertyName]||a.propertyName;if(delete b.ingProperties[c],f(b.ingProperties)&&this.disableTransition(),c in b.clean&&(this.element.style[a.propertyName]="",delete b.clean[c]),c in b.onEnd){var d=b.onEnd[c];d.call(this),delete b.onEnd[c]}this.emitEvent("transitionEnd",[this])}},g.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},g.prototype._removeStyles=function(a){var b={};for(var c in a)b[c]="";this.css(b)};var t={transitionProperty:"",transitionDuration:""};return g.prototype.removeTransitionStyles=function(){this.css(t)},g.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},g.prototype.remove=function(){if(!k||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var a=this;this.once("transitionEnd",function(){a.removeElem()}),this.hide()},g.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("visibleStyle");b[c]=this.onRevealTransitionEnd,this.transition({from:a.hiddenStyle,to:a.visibleStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},g.prototype.getHideRevealTransitionEndProperty=function(a){var b=this.layout.options[a];if(b.opacity)return"opacity";for(var c in b)return c},g.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("hiddenStyle");b[c]=this.onHideTransitionEnd,this.transition({from:a.visibleStyle,to:a.hiddenStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},g.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},g}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(c,d,e,f,g){return b(a,c,d,e,f,g)}):"object"==typeof exports?module.exports=b(a,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):a.Outlayer=b(a,a.eventie,a.EventEmitter,a.getSize,a.fizzyUIUtils,a.Outlayer.Item)}(window,function(a,b,c,d,e,f){"use strict";function g(a,b){var c=e.getQueryElement(a);if(!c)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(c||a)));this.element=c,i&&(this.$element=i(this.element)),this.options=e.extend({},this.constructor.defaults),this.option(b);var d=++k;this.element.outlayerGUID=d,l[d]=this,this._create(),this.options.isInitLayout&&this.layout()}var h=a.console,i=a.jQuery,j=function(){},k=0,l={};return g.namespace="outlayer",g.Item=f,g.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)"}},e.extend(g.prototype,c.prototype),g.prototype.option=function(a){e.extend(this.options,a)},g.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},g.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},g.prototype._itemize=function(a){for(var b=this._filterFindItemElements(a),c=this.constructor.Item,d=[],e=0,f=b.length;f>e;e++){var g=b[e],h=new c(g,this);d.push(h)}return d},g.prototype._filterFindItemElements=function(a){return e.filterFindElements(a,this.options.itemSelector)},g.prototype.getItemElements=function(){for(var a=[],b=0,c=this.items.length;c>b;b++)a.push(this.items[b].element);return a},g.prototype.layout=function(){this._resetLayout(),this._manageStamps();var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,a),this._isLayoutInited=!0},g.prototype._init=g.prototype.layout,g.prototype._resetLayout=function(){this.getSize()},g.prototype.getSize=function(){this.size=d(this.element)},g.prototype._getMeasurement=function(a,b){var c,f=this.options[a];f?("string"==typeof f?c=this.element.querySelector(f):e.isElement(f)&&(c=f),this[a]=c?d(c)[b]:f):this[a]=0},g.prototype.layoutItems=function(a,b){a=this._getItemsForLayout(a),this._layoutItems(a,b),this._postLayout()},g.prototype._getItemsForLayout=function(a){for(var b=[],c=0,d=a.length;d>c;c++){var e=a[c];e.isIgnored||b.push(e)}return b},g.prototype._layoutItems=function(a,b){if(this._emitCompleteOnItems("layout",a),a&&a.length){for(var c=[],d=0,e=a.length;e>d;d++){var f=a[d],g=this._getItemLayoutPosition(f);g.item=f,g.isInstant=b||f.isLayoutInstant,c.push(g)}this._processLayoutQueue(c)}},g.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},g.prototype._processLayoutQueue=function(a){for(var b=0,c=a.length;c>b;b++){var d=a[b];this._positionItem(d.item,d.x,d.y,d.isInstant)}},g.prototype._positionItem=function(a,b,c,d){d?a.goTo(b,c):a.moveTo(b,c)},g.prototype._postLayout=function(){this.resizeContainer()},g.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var a=this._getContainerSize();a&&(this._setContainerMeasure(a.width,!0),this._setContainerMeasure(a.height,!1))}},g.prototype._getContainerSize=j,g.prototype._setContainerMeasure=function(a,b){if(void 0!==a){var c=this.size;c.isBorderBox&&(a+=b?c.paddingLeft+c.paddingRight+c.borderLeftWidth+c.borderRightWidth:c.paddingBottom+c.paddingTop+c.borderTopWidth+c.borderBottomWidth),a=Math.max(a,0),this.element.style[b?"width":"height"]=a+"px"}},g.prototype._emitCompleteOnItems=function(a,b){function c(){e.dispatchEvent(a+"Complete",null,[b])}function d(){g++,g===f&&c()}var e=this,f=b.length;if(!b||!f)return void c();for(var g=0,h=0,i=b.length;i>h;h++){var j=b[h];j.once(a,d)}},g.prototype.dispatchEvent=function(a,b,c){var d=b?[b].concat(c):c;if(this.emitEvent(a,d),i)if(this.$element=this.$element||i(this.element),b){var e=i.Event(b);e.type=a,this.$element.trigger(e,c)}else this.$element.trigger(a,c)},g.prototype.ignore=function(a){var b=this.getItem(a);b&&(b.isIgnored=!0)},g.prototype.unignore=function(a){var b=this.getItem(a);b&&delete b.isIgnored},g.prototype.stamp=function(a){if(a=this._find(a)){this.stamps=this.stamps.concat(a);for(var b=0,c=a.length;c>b;b++){var d=a[b];this.ignore(d)}}},g.prototype.unstamp=function(a){if(a=this._find(a))for(var b=0,c=a.length;c>b;b++){var d=a[b];e.removeFrom(this.stamps,d),this.unignore(d)}},g.prototype._find=function(a){return a?("string"==typeof a&&(a=this.element.querySelectorAll(a)),a=e.makeArray(a)):void 0},g.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var a=0,b=this.stamps.length;b>a;a++){var c=this.stamps[a];this._manageStamp(c)}}},g.prototype._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),b=this.size;this._boundingRect={left:a.left+b.paddingLeft+b.borderLeftWidth,top:a.top+b.paddingTop+b.borderTopWidth,right:a.right-(b.paddingRight+b.borderRightWidth),bottom:a.bottom-(b.paddingBottom+b.borderBottomWidth)}},g.prototype._manageStamp=j,g.prototype._getElementOffset=function(a){var b=a.getBoundingClientRect(),c=this._boundingRect,e=d(a),f={left:b.left-c.left-e.marginLeft,top:b.top-c.top-e.marginTop,right:c.right-b.right-e.marginRight,bottom:c.bottom-b.bottom-e.marginBottom};return f},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.bindResize=function(){this.isResizeBound||(b.bind(a,"resize",this),this.isResizeBound=!0)},g.prototype.unbindResize=function(){this.isResizeBound&&b.unbind(a,"resize",this),this.isResizeBound=!1},g.prototype.onresize=function(){function a(){b.resize(),delete b.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var b=this;this.resizeTimeout=setTimeout(a,100)},g.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},g.prototype.needsResizeLayout=function(){var a=d(this.element),b=this.size&&a;return b&&a.innerWidth!==this.size.innerWidth},g.prototype.addItems=function(a){var b=this._itemize(a);return b.length&&(this.items=this.items.concat(b)),b},g.prototype.appended=function(a){var b=this.addItems(a);b.length&&(this.layoutItems(b,!0),this.reveal(b))},g.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){var c=this.items.slice(0);this.items=b.concat(c),this._resetLayout(),this._manageStamps(),this.layoutItems(b,!0),this.reveal(b),this.layoutItems(c)}},g.prototype.reveal=function(a){this._emitCompleteOnItems("reveal",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.reveal()}},g.prototype.hide=function(a){this._emitCompleteOnItems("hide",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.hide()}},g.prototype.revealItemElements=function(a){var b=this.getItems(a);this.reveal(b)},g.prototype.hideItemElements=function(a){var b=this.getItems(a);this.hide(b)},g.prototype.getItem=function(a){for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];if(d.element===a)return d}},g.prototype.getItems=function(a){a=e.makeArray(a);for(var b=[],c=0,d=a.length;d>c;c++){var f=a[c],g=this.getItem(f);g&&b.push(g)}return b},g.prototype.remove=function(a){var b=this.getItems(a);if(this._emitCompleteOnItems("remove",b),b&&b.length)for(var c=0,d=b.length;d>c;c++){var f=b[c];f.remove(),e.removeFrom(this.items,f)}},g.prototype.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="";for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];d.destroy()}this.unbindResize();var e=this.element.outlayerGUID;delete l[e],delete this.element.outlayerGUID,i&&i.removeData(this.element,this.constructor.namespace)},g.data=function(a){a=e.getQueryElement(a);var b=a&&a.outlayerGUID;return b&&l[b]},g.create=function(a,b){function c(){g.apply(this,arguments)}return Object.create?c.prototype=Object.create(g.prototype):e.extend(c.prototype,g.prototype),c.prototype.constructor=c,c.defaults=e.extend({},g.defaults),e.extend(c.defaults,b),c.prototype.settings={},c.namespace=a,c.data=g.data,c.Item=function(){f.apply(this,arguments)},c.Item.prototype=new f,e.htmlInit(c,a),i&&i.bridget&&i.bridget(a,c),c},g.Item=f,g}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],b):"object"==typeof exports?module.exports=b(require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.Item=b(a.Outlayer))}(window,function(a){"use strict";function b(){a.Item.apply(this,arguments)}b.prototype=new a.Item,b.prototype._create=function(){this.id=this.layout.itemGUID++,a.Item.prototype._create.call(this),this.sortData={}},b.prototype.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var a=this.layout.options.getSortData,b=this.layout._sorters;for(var c in a){var d=b[c];this.sortData[c]=d(this.element,this)}}};var c=b.prototype.destroy;return b.prototype.destroy=function(){c.apply(this,arguments),this.css({display:""})},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],b):"object"==typeof exports?module.exports=b(require("get-size"),require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.LayoutMode=b(a.getSize,a.Outlayer))}(window,function(a,b){"use strict";function c(a){this.isotope=a,a&&(this.options=a.options[this.namespace],this.element=a.element,this.items=a.filteredItems,this.size=a.size)}return function(){function a(a){return function(){return b.prototype[a].apply(this.isotope,arguments)}}for(var d=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],e=0,f=d.length;f>e;e++){var g=d[e];c.prototype[g]=a(g)}}(),c.prototype.needsVerticalResizeLayout=function(){var b=a(this.isotope.element),c=this.isotope.size&&b;return c&&b.innerHeight!=this.isotope.size.innerHeight},c.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},c.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},c.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},c.prototype.getSegmentSize=function(a,b){var c=a+b,d="outer"+b;if(this._getMeasurement(c,d),!this[c]){var e=this.getFirstItemSize();this[c]=e&&e[d]||this.isotope.size["inner"+b]}},c.prototype.getFirstItemSize=function(){var b=this.isotope.filteredItems[0];return b&&b.element&&a(b.element)},c.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},c.prototype.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},c.modes={},c.create=function(a,b){function d(){c.apply(this,arguments)}return d.prototype=new c,b&&(d.options=b),d.prototype.namespace=a,c.modes[a]=d,d},c}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],b):"object"==typeof exports?module.exports=b(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):a.Masonry=b(a.Outlayer,a.getSize,a.fizzyUIUtils)}(window,function(a,b,c){var d=a.create("masonry");return d.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var a=this.cols;for(this.colYs=[];a--;)this.colYs.push(0);this.maxY=0},d.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var a=this.items[0],c=a&&a.element;this.columnWidth=c&&b(c).outerWidth||this.containerWidth}var d=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,f=e/d,g=d-e%d,h=g&&1>g?"round":"floor";f=Math[h](f),this.cols=Math.max(f,1)},d.prototype.getContainerWidth=function(){var a=this.options.isFitWidth?this.element.parentNode:this.element,c=b(a);this.containerWidth=c&&c.innerWidth},d.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth%this.columnWidth,d=b&&1>b?"round":"ceil",e=Math[d](a.size.outerWidth/this.columnWidth);e=Math.min(e,this.cols);for(var f=this._getColGroup(e),g=Math.min.apply(Math,f),h=c.indexOf(f,g),i={x:this.columnWidth*h,y:g},j=g+a.size.outerHeight,k=this.cols+1-f.length,l=0;k>l;l++)this.colYs[h+l]=j;return i},d.prototype._getColGroup=function(a){if(2>a)return this.colYs;for(var b=[],c=this.cols+1-a,d=0;c>d;d++){var e=this.colYs.slice(d,d+a);b[d]=Math.max.apply(Math,e)}return b},d.prototype._manageStamp=function(a){var c=b(a),d=this._getElementOffset(a),e=this.options.isOriginLeft?d.left:d.right,f=e+c.outerWidth,g=Math.floor(e/this.columnWidth);g=Math.max(0,g);var h=Math.floor(f/this.columnWidth);h-=f%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var i=(this.options.isOriginTop?d.top:d.bottom)+c.outerHeight,j=g;h>=j;j++)this.colYs[j]=Math.max(i,this.colYs[j])},d.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var a={height:this.maxY};return this.options.isFitWidth&&(a.width=this._getContainerFitWidth()),a},d.prototype._getContainerFitWidth=function(){for(var a=0,b=this.cols;--b&&0===this.colYs[b];)a++;return(this.cols-a)*this.columnWidth-this.gutter},d.prototype.needsResizeLayout=function(){var a=this.containerWidth;return this.getContainerWidth(),a!==this.containerWidth},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],b):"object"==typeof exports?module.exports=b(require("../layout-mode"),require("masonry-layout")):b(a.Isotope.LayoutMode,a.Masonry)}(window,function(a,b){"use strict";function c(a,b){for(var c in b)a[c]=b[c];return a}var d=a.create("masonry"),e=d.prototype._getElementOffset,f=d.prototype.layout,g=d.prototype._getMeasurement; c(d.prototype,b.prototype),d.prototype._getElementOffset=e,d.prototype.layout=f,d.prototype._getMeasurement=g;var h=d.prototype.measureColumns;d.prototype.measureColumns=function(){this.items=this.isotope.filteredItems,h.call(this)};var i=d.prototype._manageStamp;return d.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,i.apply(this,arguments)},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("fitRows");return b.prototype._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth+this.gutter,c=this.isotope.size.innerWidth+this.gutter;0!==this.x&&b+this.x>c&&(this.x=0,this.y=this.maxY);var d={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+a.size.outerHeight),this.x+=b,d},b.prototype._getContainerSize=function(){return{height:this.maxY}},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("vertical",{horizontalAlignment:0});return b.prototype._resetLayout=function(){this.y=0},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=(this.isotope.size.innerWidth-a.size.outerWidth)*this.options.horizontalAlignment,c=this.y;return this.y+=a.size.outerHeight,{x:b,y:c}},b.prototype._getContainerSize=function(){return{height:this.y}},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(c,d,e,f,g,h){return b(a,c,d,e,f,g,h)}):"object"==typeof exports?module.exports=b(a,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):a.Isotope=b(a,a.Outlayer,a.getSize,a.matchesSelector,a.fizzyUIUtils,a.Isotope.Item,a.Isotope.LayoutMode)}(window,function(a,b,c,d,e,f,g){function h(a,b){return function(c,d){for(var e=0,f=a.length;f>e;e++){var g=a[e],h=c.sortData[g],i=d.sortData[g];if(h>i||i>h){var j=void 0!==b[g]?b[g]:b,k=j?1:-1;return(h>i?1:-1)*k}}return 0}}var i=a.jQuery,j=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s+|\s+$/g,"")},k=document.documentElement,l=k.textContent?function(a){return a.textContent}:function(a){return a.innerText},m=b.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});m.Item=f,m.LayoutMode=g,m.prototype._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),b.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var a in g.modes)this._initLayoutMode(a)},m.prototype.reloadItems=function(){this.itemGUID=0,b.prototype.reloadItems.call(this)},m.prototype._itemize=function(){for(var a=b.prototype._itemize.apply(this,arguments),c=0,d=a.length;d>c;c++){var e=a[c];e.id=this.itemGUID++}return this._updateItemsSortData(a),a},m.prototype._initLayoutMode=function(a){var b=g.modes[a],c=this.options[a]||{};this.options[a]=b.options?e.extend(b.options,c):c,this.modes[a]=new b(this)},m.prototype.layout=function(){return!this._isLayoutInited&&this.options.isInitLayout?void this.arrange():void this._layout()},m.prototype._layout=function(){var a=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,a),this._isLayoutInited=!0},m.prototype.arrange=function(a){function b(){d.reveal(c.needReveal),d.hide(c.needHide)}this.option(a),this._getIsInstant();var c=this._filter(this.items);this.filteredItems=c.matches;var d=this;this._bindArrangeComplete(),this._isInstant?this._noTransition(b):b(),this._sort(),this._layout()},m.prototype._init=m.prototype.arrange,m.prototype._getIsInstant=function(){var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=a,a},m.prototype._bindArrangeComplete=function(){function a(){b&&c&&d&&e.dispatchEvent("arrangeComplete",null,[e.filteredItems])}var b,c,d,e=this;this.once("layoutComplete",function(){b=!0,a()}),this.once("hideComplete",function(){c=!0,a()}),this.once("revealComplete",function(){d=!0,a()})},m.prototype._filter=function(a){var b=this.options.filter;b=b||"*";for(var c=[],d=[],e=[],f=this._getFilterTest(b),g=0,h=a.length;h>g;g++){var i=a[g];if(!i.isIgnored){var j=f(i);j&&c.push(i),j&&i.isHidden?d.push(i):j||i.isHidden||e.push(i)}}return{matches:c,needReveal:d,needHide:e}},m.prototype._getFilterTest=function(a){return i&&this.options.isJQueryFiltering?function(b){return i(b.element).is(a)}:"function"==typeof a?function(b){return a(b.element)}:function(b){return d(b.element,a)}},m.prototype.updateSortData=function(a){var b;a?(a=e.makeArray(a),b=this.getItems(a)):b=this.items,this._getSorters(),this._updateItemsSortData(b)},m.prototype._getSorters=function(){var a=this.options.getSortData;for(var b in a){var c=a[b];this._sorters[b]=n(c)}},m.prototype._updateItemsSortData=function(a){for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.updateSortData()}};var n=function(){function a(a){if("string"!=typeof a)return a;var c=j(a).split(" "),d=c[0],e=d.match(/^\[(.+)\]$/),f=e&&e[1],g=b(f,d),h=m.sortDataParsers[c[1]];return a=h?function(a){return a&&h(g(a))}:function(a){return a&&g(a)}}function b(a,b){var c;return c=a?function(b){return b.getAttribute(a)}:function(a){var c=a.querySelector(b);return c&&l(c)}}return a}();m.sortDataParsers={parseInt:function(a){return parseInt(a,10)},parseFloat:function(a){return parseFloat(a)}},m.prototype._sort=function(){var a=this.options.sortBy;if(a){var b=[].concat.apply(a,this.sortHistory),c=h(b,this.options.sortAscending);this.filteredItems.sort(c),a!=this.sortHistory[0]&&this.sortHistory.unshift(a)}},m.prototype._mode=function(){var a=this.options.layoutMode,b=this.modes[a];if(!b)throw new Error("No layout mode: "+a);return b.options=this.options[a],b},m.prototype._resetLayout=function(){b.prototype._resetLayout.call(this),this._mode()._resetLayout()},m.prototype._getItemLayoutPosition=function(a){return this._mode()._getItemLayoutPosition(a)},m.prototype._manageStamp=function(a){this._mode()._manageStamp(a)},m.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},m.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},m.prototype.appended=function(a){var b=this.addItems(a);if(b.length){var c=this._filterRevealAdded(b);this.filteredItems=this.filteredItems.concat(c)}},m.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){this._resetLayout(),this._manageStamps();var c=this._filterRevealAdded(b);this.layoutItems(this.filteredItems),this.filteredItems=c.concat(this.filteredItems),this.items=b.concat(this.items)}},m.prototype._filterRevealAdded=function(a){var b=this._filter(a);return this.hide(b.needHide),this.reveal(b.matches),this.layoutItems(b.matches,!0),b.matches},m.prototype.insert=function(a){var b=this.addItems(a);if(b.length){var c,d,e=b.length;for(c=0;e>c;c++)d=b[c],this.element.appendChild(d.element);var f=this._filter(b).matches;for(c=0;e>c;c++)b[c].isLayoutInstant=!0;for(this.arrange(),c=0;e>c;c++)delete b[c].isLayoutInstant;this.reveal(f)}};var o=m.prototype.remove;return m.prototype.remove=function(a){a=e.makeArray(a);var b=this.getItems(a);o.call(this,a);var c=b&&b.length;if(c)for(var d=0;c>d;d++){var f=b[d];e.removeFrom(this.filteredItems,f)}},m.prototype.shuffle=function(){for(var a=0,b=this.items.length;b>a;a++){var c=this.items[a];c.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},m.prototype._noTransition=function(a){var b=this.options.transitionDuration;this.options.transitionDuration=0;var c=a.call(this);return this.options.transitionDuration=b,c},m.prototype.getFilteredItemElements=function(){for(var a=[],b=0,c=this.filteredItems.length;c>b;b++)a.push(this.filteredItems[b].element);return a},m}); function newsletter_check_field(field, message){ if(!field) return true; if(field.type=="checkbox"&&!field.checked){ alert(message); return false; } if(field.required!==undefined&&field.required!==false&&field.value==""){ alert(message); return false; } return true; } function newsletter_check(f){ var re=/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-]{1,})+\.)+([a-zA-Z0-9]{2,})+$/; if(!re.test(f.elements["ne"].value)){ alert(newsletter.messages.email_error); return false; } if(!newsletter_check_field(f.elements["nn"], newsletter.messages.name_error)) return false; if(!newsletter_check_field(f.elements["ns"], newsletter.messages.surname_error)) return false; for (var i=1; i