1/*! 2* Grid Accordion - v2.8.1 3* Homepage: https://bqworks.net/grid-accordion/ 4* Author: bqworks 5* Author URL: https://bqworks.net/ 6*/ 7!function(h,C){"use strict";C.GridAccordion={modules:{},addModule:function(t,e,i){void 0===this.modules[i]&&(this.modules[i]=[]),this.modules[i].push(t),"accordion"===i?C.extend(s.prototype,e):"panel"===i&&C.extend(a.prototype,e)}};var r=C.GridAccordion.namespace="GridAccordion",s=function(t,e){this.$accordion=C(t),this.$panelsContainer=null,this.$maskContainer=null,this.options=e,this.settings={},this.originalSettings={},this.currentIndex=-1,this.currentPage=0,this.columns=0,this.rows=0,this.totalWidth=0,this.totalHeight=0,this.totalPanelsSize=0,this.computedOpenedPanelWidth=0,this.computedOpenedPanelHeight=0,this.maxComputedOpenedPanelWidth=0,this.maxComputedOpenedPanelHeight=0,this.collapsedPanelWidth=0,this.collapsedPanelHeight=0,this.closedPanelWidth=0,this.closedPanelHeight=0,this.computedPanelDistance=0,this.panels=[],this.mouseDelayTimer=0,this.openPanelAnimation={},this.closePanelsAnimation={},this.uniqueId=(new Date).valueOf(),this.breakpoints=[],this.currentBreakpoint=-1,this.previousColumns=-1,this.previousRows=-1,this.isPageScrolling=!1,this.positionProperty="left",this.sizeProperty="width",this.autoResponsiveRatio=1,this.loadingPanels=[],this._init()},a=(s.prototype={_init:function(){var t,i=this,e=(this.$accordion.removeClass("ga-no-js"),this.$maskContainer=C('<div class="ga-mask"></div>').appendTo(this.$accordion),this.$panelsContainer=this.$accordion.find(".ga-panels").appendTo(this.$maskContainer),0===this.$panelsContainer.length&&(this.$panelsContainer=C('<div class="ga-panels"></div>').appendTo(this.$maskContainer)),C.GridAccordion.modules.accordion);if(void 0!==e)for(var n=0;n<e.length;n++){var s=e[n]+"Defaults";(void 0!==this[s]||void 0!==this[s=e[n].substring(0,1).toLowerCase()+e[n].substring(1)+"Defaults"])&&C.extend(this.defaults,this[s])}if(this.settings=C.extend({},this.defaults,this.options),void 0!==e)for(var a=0;a<e.length;a++)void 0!==this["init"+e[a]]&&this["init"+e[a]]();if(this.originalSettings=C.extend({},this.settings),!0===this.settings.shuffle&&(t=this.$panelsContainer.find(".ga-panel").sort(function(){return.5-Math.random()}),this.$panelsContainer.empty().append(t)),this.currentIndex=this.settings.startPanel,-1===this.currentIndex?this.$accordion.addClass("ga-closed"):this.$accordion.addClass("ga-opened"),-1!==this.settings.startPage&&(this.currentPage=this.settings.startPage),null!==this.settings.breakpoints){for(var o in this.settings.breakpoints)this.breakpoints.push({size:parseInt(o,10),properties:this.settings.breakpoints[o]});this.breakpoints=this.breakpoints.sort(function(t,e){return t.size>=e.size?1:-1})}this._prepareRAF(),this.update(),-1!==this.currentIndex&&(this.$accordion.find(".ga-panel").eq(this.currentIndex).addClass("ga-opened"),t={type:"panelOpen",index:this.currentIndex,previousIndex:-1},this.trigger(t),C.isFunction(this.settings.panelOpen))&&this.settings.panelOpen.call(this,t),this.on("mouseenter."+r,function(t){var e={type:"accordionMouseOver"};i.trigger(e),C.isFunction(i.settings.accordionMouseOver)&&i.settings.accordionMouseOver.call(i,e)}),this.on("mouseleave."+r,function(t){clearTimeout(i.mouseDelayTimer),!0===i.settings.closePanelsOnMouseOut&&i.closePanels();var e={type:"accordionMouseOut"};i.trigger(e),C.isFunction(i.settings.accordionMouseOut)&&i.settings.accordionMouseOut.call(i,e)}),C(h).on("resize."+this.uniqueId+"."+r,function(){i.resize()}),this.trigger({type:"init"}),C.isFunction(this.settings.init)&&this.settings.init.call(this,{type:"init"})},update:function(){var t=this,e=("horizontal"===this.settings.orientation?(this.$accordion.removeClass("ga-vertical").addClass("ga-horizontal"),this.positionProperty="left",this.sizeProperty="width"):"vertical"===this.settings.orientation&&(this.$accordion.removeClass("ga-horizontal").addClass("ga-vertical"),this.positionProperty="top",this.sizeProperty="height"),this.$panelsContainer.attr("style",""),this.$accordion.find("img.ga-background, img.ga-background-opened").css({width:"",height:""}),this._updatePanels(),!0===this.settings.shadow?this.$accordion.find(".ga-panel").addClass("ga-shadow"):!1===this.settings.shadow&&this.$accordion.find(".ga-shadow").removeClass("ga-shadow"),this.columns=this.settings.columns,this.rows=this.settings.rows,-1===this.settings.columns&&-1===this.settings.rows?(this.columns=4,this.rows=3):-1===this.settings.columns?(this.columns=Math.ceil(this.getTotalPanels()/this.settings.rows),this.rows=this.settings.rows):-1===this.settings.rows&&(this.columns=this.settings.columns,this.rows=Math.ceil(this.getTotalPanels()/this.settings.columns)),-1===this.settings.columns||-1===this.settings.rows?this.currentPage=0:-1!==this.currentIndex?this.currentPage=Math.floor(this.currentIndex/(this.settings.columns*this.settings.rows)):(this.settings.columns!==this.previousColumns&&-1!==this.previousColumns||this.settings.rows!==this.previousRows&&-1!==this.previousRows)&&(e=Math.min(Math.round(this.currentPage*(this.previousColumns*this.previousRows)/(this.settings.columns*this.settings.rows)),this.getTotalPages()-1),this.currentPage!==e)&&(this.currentPage=e),this._updatePaginationButtons(),this.resize(),{type:"update"});t.trigger(e),C.isFunction(t.settings.update)&&t.settings.update.call(t,e)},resize:function(){var t,e,r=this;if(this.$maskContainer.attr("style",""),!0===this.settings.responsive?(this.$accordion.css({width:"100%",height:this.settings.height,maxWidth:this.settings.width,maxHeight:this.settings.height}),-1===this.settings.aspectRatio&&(this.settings.aspectRatio=this.settings.width/this.settings.height),this.$accordion.css("height",this.$accordion.innerWidth()/this.settings.aspectRatio),"auto"===this.settings.responsiveMode?(this.autoResponsiveRatio=this.$accordion.innerWidth()/this.settings.width,this.$maskContainer.css("width",this.settings.width),isNaN(this.settings.height)?this.$maskContainer.css("height",Math.min(this.settings.width/this.settings.aspectRatio,parseInt(this.settings.height,10)/100*C(h).height())):this.$maskContainer.css("height",Math.min(this.settings.width/this.settings.aspectRatio,this.settings.height)),this.autoResponsiveRatio<1?this.$maskContainer.css({"-webkit-transform":"scaleX("+this.autoResponsiveRatio+") scaleY("+this.autoResponsiveRatio+")","-ms-transform":"scaleX("+this.autoResponsiveRatio+") scaleY("+this.autoResponsiveRatio+")",transform:"scaleX("+this.autoResponsiveRatio+") scaleY("+this.autoResponsiveRatio+")","-webkit-transform-origin":"top left","-ms-transform-origin":"top left","transform-origin":"top left"}):this.$maskContainer.css({"-webkit-transform":"","-ms-transform":"",transform:"","-webkit-transform-origin":"","-ms-transform-origin":"","transform-origin":""}),this.totalWidth=this.$maskContainer.innerWidth(),this.totalHeight=this.$maskContainer.innerHe
7ight()):(this.totalWidth=this.$accordion.innerWidth(),this.totalHeight=this.$accordion.innerHeight())):(this.$accordion.css({width:this.settings.width,height:this.settings.height,maxWidth:"",maxHeight:""}),this.totalWidth=this.$accordion.innerWidth(),this.totalHeight=this.$accordion.innerHeight()),this.loadingPanels.length=0,this.computedPanelDistance=this.settings.panelDistance,"string"==typeof this.computedPanelDistance&&(-1!==this.computedPanelDistance.indexOf("%")?this.computedPanelDistance=this.totalWidth*(parseInt(this.computedPanelDistance,10)/100):-1!==this.computedPanelDistance.indexOf("px")&&(this.computedPanelDistance=parseInt(this.computedPanelDistance,10))),this.closedPanelWidth=(this.totalWidth-(this.columns-1)*this.computedPanelDistance)/this.columns,this.closedPanelHeight=(this.totalHeight-(this.rows-1)*this.computedPanelDistance)/this.rows,this.computedOpenedPanelWidth=this.settings.openedPanelWidth,this.maxComputedOpenedPanelWidth=this.settings.maxOpenedPanelWidth,"string"==typeof this.maxComputedOpenedPanelWidth&&(-1!==this.maxComputedOpenedPanelWidth.indexOf("%")?this.maxComputedOpenedPanelWidth=this.totalWidth*(parseInt(this.maxComputedOpenedPanelWidth,10)/100):-1!==this.maxComputedOpenedPanelWidth.indexOf("px")&&(this.maxComputedOpenedPanelWidth=parseInt(this.maxComputedOpenedPanelWidth,10))),this.computedOpenedPanelHeight=this.settings.openedPanelHeight,this.maxComputedOpenedPanelHeight=this.settings.maxOpenedPanelHeight,"string"==typeof this.maxComputedOpenedPanelHeight&&(-1!==this.maxComputedOpenedPanelHeight.indexOf("%")?this.maxComputedOpenedPanelHeight=this.totalHeight*(parseInt(this.maxComputedOpenedPanelHeight,10)/100):-1!==this.maxComputedOpenedPanelHeight.indexOf("px")&&(this.maxComputedOpenedPanelHeight=parseInt(this.maxComputedOpenedPanelHeight,10))),"string"==typeof this.computedOpenedPanelWidth&&(-1!==this.computedOpenedPanelWidth.indexOf("%")?this.computedOpenedPanelWidth=this.totalWidth*(parseInt(this.computedOpenedPanelWidth,10)/100):-1!==this.computedOpenedPanelWidth.indexOf("px")?this.computedOpenedPanelWidth=parseInt(this.computedOpenedPanelWidth,10):"max"===this.computedOpenedPanelWidth&&-1!==this.currentIndex&&(t=this.getPanelAt(this.currentIndex).getContentSize(),this.computedOpenedPanelWidth="loading"===t?this.closedPanelWidth:Math.min(t.width,this.maxComputedOpenedPanelWidth))),"string"==typeof this.computedOpenedPanelHeight&&(-1!==this.computedOpenedPanelHeight.indexOf("%")?this.computedOpenedPanelHeight=this.totalHeight*(parseInt(this.computedOpenedPanelHeight,10)/100):-1!==this.computedOpenedPanelHeight.indexOf("px")?this.computedOpenedPanelHeight=parseInt(this.computedOpenedPanelHeight,10):"max"===this.computedOpenedPanelHeight&&-1!==this.currentIndex&&(t=this.getPanelAt(this.currentIndex).getContentSize(),this.computedOpenedPanelHeight="loading"===t?this.closedPanelHeight:Math.min(t.height,this.maxComputedOpenedPanelHeight))),"auto"!==this.settings.openedPanelWidth&&"auto"!==this.settings.openedPanelHeight||(e=(t=this._getMinSize(this._getFirstPanelFromPage(),this._getLastPanelFromPage())).width,t=t.height,"auto"===this.settings.openedPanelWidth&&(this.computedOpenedPanelWidth=e),"auto"===this.settings.openedPanelHeight&&(this.computedOpenedPanelHeight=t)),this.$accordion.find("img.ga-background, img.ga-background-opened").css({"max-width":this.maxComputedOpenedPanelWidth,"max-height":this.maxComputedOpenedPanelHeight}),this.collapsedPanelWidth=(this.totalWidth-this.computedOpenedPanelWidth-(this.columns-1)*this.computedPanelDistance)/(this.columns-1),this.collapsedPanelHeight=(this.totalHeight-this.computedOpenedPanelHeight-(this.rows-1)*this.computedPanelDistance)/(this.rows-1),this.computedOpenedPanelWidth=Math.floor(this.computedOpenedPanelWidth),this.computedOpenedPanelHeight=Math.floor(this.computedOpenedPanelHeight),this.collapsedPanelWidth=Math.floor(this.collapsedPanelWidth),this.collapsedPanelHeight=Math.floor(this.collapsedPanelHeight),this.closedPanelWidth=Math.floor(this.closedPanelWidth),this.closedPanelHeight=Math.floor(this.closedPanelHeight),this.totalWidth=this.closedPanelWidth*this.columns+this.computedPanelDistance*(this.columns-1),this.totalHeight=this.closedPanelHeight*this.rows+this.computedPanelDistance*(this.rows-1),("custom"===this.settings.responsiveMode||!1===this.settings.responsive?this.$accordion:(this.$accordion.css({width:this.totalWidth*this.autoResponsiveRatio,height:this.totalHeight*this.autoResponsiveRatio}),this.$maskContainer)).css({width:this.totalWidth,height:this.totalHeight}),"horizontal"===this.settings.orientation?(this.totalPanelsSize=this.totalWidth*this.getTotalPages()+this.computedPanelDistance*(this.getTotalPages()-1),this.$panelsContainer.css("width",this.totalPanelsSize)):(this.totalPanelsSize=this.totalHeight*this.getTotalPages()+this.computedPanelDistance*(this.getTotalPages()-1),this.$panelsContainer.css("height",this.totalPanelsSize)),1<this.getTotalPages()&&(e=-(("horizontal"===this.settings.orientation?this.totalWidth:this.totalHeight)+this.computedPanelDistance)*this.currentPage,(t={})[this.positionProperty]=e,this.$panelsContainer.css(t)),C.each(this.panels,function(t,e){var i,n,s,a="horizontal"===r.settings.orientation?(a=t%r.columns+r.columns*Math.floor(t/(r.rows*r.columns)),o=Math.floor(t/r.columns)-r.rows*Math.floor(t/(r.rows*r.columns)),-1!==r.currentIndex&&Math.floor(t/(r.rows*r.columns))===r.currentPage?(i=r.currentPage*(r.totalWidth+r.computedPanelDistance)+(a-r.currentPage*r.columns)*(r.collapsedPanelWidth+r.computedPanelDistance)+(t%r.columns>r.currentIndex%r.columns?r.computedOpenedPanelWidth-r.collapsedPanelWidth:0),o*(r.collapsedPanelHeight+r.computedPanelDistance)+(Math.floor(t/r.columns)>Math.floor(r.currentIndex/r.columns)?r.computedOpenedPanelHeight-r.collapsedPanelHeight:0)):(i=a*(r.closedPanelWidth+r.computedPanelDistance),o*(r.closedPanelHeight+r.computedPanelDistance))):(a=t%r.columns,o=Math.floor(t/r.columns),-1!==r.currentIndex&&Math.floor(t/(r.rows*r.columns))===r.currentPage?(i=a*(r.collapsedPanelWidth+r.computedPanelDistance)+(t%r.columns>r.currentIndex%r.columns?r.computedOpenedPanelWidth-r.collapsedPanelWidth:0),r.currentPage*(r.totalHeight+r.computedPanelDistance)+(o-r.currentPage*r.rows)*(r.collapsedPanelHeight+r.computedPanelDistance)+(Math.floor(t/r.columns)>Math.floor(r.currentIndex/r.columns)?r.computedOpenedPanelHeight-r.collapsedPanelHeight:0)):(i=a*(r.closedPanelWidth+r.computedPanelDistance),o*(r.closedPanelHeight+r.computedPanelDistance))),o=-1!==r.currentIndex&&Math.floor(t/(r.rows*r.columns))===r.currentPage?(n=t%r.columns==r.currentIndex%r.columns?r.computedOpenedPanelWidth:r.collapsedPanelWidth,Math.floor(t/r.columns)===Math.floor(r.currentIndex/r.columns)?r.computedOpenedPanelHeight:r.collapsedPanelHeight):(n=r.closedPanelWidth,r.closedPanelHeight);(Math.floor(t/(r.rows*r.columns))===r.currentPage&&"max"===r.settings.openedPanelWidth&&t%r.columns==r.currentIndex%r.columns||"max"===r.settings.openedPanelHeight&&Math.floor(t/r.columns)===Math.floor(r.currentIndex/r.columns))&&(s=e.getContentSize(),t%r.columns==r.currentIndex%r.columns&&("loading"===s&&-1===C.inArray(t,r.loadingPanels)?r.loadingPanels.push(t):s.width<r.computedOpenedPanelWidth&&(i+=(r.computedOpenedPanelWidth-s.width)/2,n=s.width)),Math.floor(t/r.columns)===Math.floor(r.currentIndex/r.columns))&&("loading"===s&&-1===C.inArray(t,r.loadingPanels)?r.loadingPanels.push(t):s.height<r.computedOpenedPanelHeight&&(a+=(r.computedOpenedPanelHeight-s.height)/2,o=s.height)),e.setPosition(i,a),e.setSize(n,o)}),null!==this.settings.breakpoints&&0<this.breakpoints.length)if(C(h).width()>this.breakpoints[this.breakpoints.length-1].size&&-1!==this.currentBreakpoint)this.currentBreakpoint=-1,this._setProperties(this.originalSettings,!1);else for(var i,n=0,s=this.breakpoints.length;n<s;n++)if(C(h).width()<=this.breakpoints[n].size){this.currentBreakpoint!==this.breakpoints[n].size&&(i={type:"breakpointReach",size:this.breakpoints[n].size,settings:this.breakpoints[n].properties},r.trigger(i),C.isFunction(r.settings.breakpointReach)&&r.settings.breakpointReach.call(r,i),this.currentBreakpoint=this.breakpoints[n].size,i=C.extend({},this.originalSettings,this.breakpoints[n].properties),this._setProperties(i,!1));break}},_updatePanels:function(){for(var t,i=this,e=this.panels.length-1;0<=e;e--)0===this.$accordion.find('.ga-panel[data-index="'+e+'"]').length&&((t=this.panels[e]).off("panelMouseOver."+r),t.off("panelMouseOut."+r),t.off("panelClick."+r),t.off("imagesComplete."+r),t.destroy(),this.panels.splice(e,1));this.$accordion.find(".ga-panel").each(function(t,e){e=C(e);void 0===e.attr("data-init")?i._createPanel(t,e):(i.panels[t].setIndex(t),i.panels[t].update())})},_createPanel:function(i,t){var n=this,t=C(t),t=new a(t,this,i);this.panels.splice(i,0,t),t.on("panelMouseOver."+r,function(t){var e;!0!==n.isPageScrolling&&("hover"===n.settings.openPanelOn&&(clearTimeout(n.mouseDelayTimer),n.mouseDelayTimer=setTimeout(function(){n.openPanel
7(t.index)},n.settings.mouseDelay)),n.trigger(e={type:"panelMouseOver",index:i}),C.isFunction(n.settings.panelMouseOver))&&n.settings.panelMouseOver.call(n,e)}),t.on("panelMouseOut."+r,function(t){var e;!0!==n.isPageScrolling&&(n.trigger(e={type:"panelMouseOut",index:i}),C.isFunction(n.settings.panelMouseOut))&&n.settings.panelMouseOut.call(n,e)}),t.on("panelClick."+r,function(t){n.$accordion.hasClass("ga-swiping")||("click"===n.settings.openPanelOn&&(i!==n.currentIndex?n.openPanel(t.index):n.closePanels()),n.trigger(t={type:"panelClick",index:i}),C.isFunction(n.settings.panelClick)&&n.settings.panelClick.call(n,t))}),t.on("panelMouseDown."+r,function(t){C(this).find("a").off("click.disablePanelLink"),i!==n.currentIndex&&"click"===n.settings.openPanelOn&&C(this).find("a").one("click.disablePanelLink",function(t){t.preventDefault()})}),t.on("imagesComplete."+r,function(t){t=C.inArray(t.index,n.loadingPanels);-1!==t&&(n.loadingPanels.splice(t,1),0===n.loadingPanels.length)&&n.openPanel(n.currentIndex,!0)})},removePanels:function(){C.each(this.panels,function(t,e){e.off("panelMouseOver."+r),e.off("panelMouseOut."+r),e.off("panelClick."+r),e.off("imagesComplete."+r),e.destroy()}),this.panels.length=0},destroy:function(){this.$accordion.removeData("gridAccordion"),this.$accordion.attr("style",""),this.$panelsContainer.attr("style",""),this.off("mouseenter."+r),this.off("mouseleave."+r),C(h).off("resize."+this.uniqueId+"."+r),this._stopPanelsAnimation(this.openPanelAnimation),this._stopPanelsAnimation(this.closePanelsAnimation);var t=C.GridAccordion.modules.accordion;if(void 0!==t)for(var e=0;e<t.length;e++)void 0!==this["destroy"+t[e]]&&this["destroy"+t[e]]();this.removePanels(),this.$panelsContainer.appendTo(this.$accordion),this.$maskContainer.remove(),this.$accordion.find(".ga-pagination-buttons").remove()},_prepareRAF:function(){if(void 0===h.requestAnimationFrame)for(var t=["webkit","moz"],e=0;e<t.length;e++)h.requestAnimationFrame=h[t[e]+"RequestAnimationFrame"],h.cancelAnimationFrame=h.cancelAnimationFrame||h[t[e]+"CancelAnimationFrame"]||h[t[e]+"CancelRequestAnimationFrame"];var a;void 0===h.requestAnimationFrame&&(a=0,h.requestAnimationFrame=function(t,e){var i=(new Date).valueOf(),n=Math.max(0,16-(i-a)),s=h.setTimeout(function(){t(i+n)},n);return a=i+n,s},h.cancelAnimationFrame=function(t){clearTimeout(t)})},_animatePanels:function(e,i){var n=(new Date).valueOf(),s=0;e.isRunning=!0,e.timer=h.requestAnimationFrame(function t(){s<1?(1<(s=((new Date).valueOf()-n)/i.duration)&&(s=1),s=.5-Math.cos(s*Math.PI)/2,i.step(s),e.timer=h.requestAnimationFrame(t)):(i.complete(),e.isRunning=!1,h.cancelAnimationFrame(e.timer))})},_stopPanelsAnimation:function(t){void 0!==t.isRunning&&!0===t.isRunning&&(t.isRunning=!1,h.cancelAnimationFrame(t.timer))},openPanel:function(t,e){if(t!==this.currentIndex||!0===e){!1===this.$accordion.hasClass("ga-opened")&&(this.$accordion.removeClass("ga-closed"),this.$accordion.addClass("ga-opened"));var i,e=this.currentIndex,s=(this.currentIndex=t,-1!==this.settings.columns&&-1!==this.settings.rows&&((n=Math.floor(this.currentIndex/(this.columns*this.rows)))!==this.currentPage&&this.gotoPage(n),this.currentIndex=t),this),a=[],o=[],r=[],h=[],d=[],l=[],c=[],p=[],u=[],n=this._getFirstPanelFromPage(),g=this._getLastPanelFromPage(),f=0;this.loadingPanels.length=0,this.$accordion.find(".ga-panel.ga-opened").removeClass("ga-opened"),this.$accordion.find(".ga-panel").eq(this.currentIndex).addClass("ga-opened"),"max"===this.settings.openedPanelWidth&&(i=this.getPanelAt(this.currentIndex).getContentSize(),this.computedOpenedPanelWidth="loading"===i?this.closedPanelWidth:Math.min(i.width,this.maxComputedOpenedPanelWidth),this.collapsedPanelWidth=(this.totalWidth-this.computedOpenedPanelWidth-(this.columns-1)*this.computedPanelDistance)/(this.columns-1)),"max"===this.settings.openedPanelHeight&&(i=this.getPanelAt(this.currentIndex).getContentSize(),this.computedOpenedPanelHeight="loading"===i?this.closedPanelHeight:Math.min(i.height,this.maxComputedOpenedPanelHeight),this.collapsedPanelHeight=(this.totalHeight-this.computedOpenedPanelHeight-(this.rows-1)*this.computedPanelDistance)/(this.rows-1)),"auto"!==this.settings.openedPanelWidth&&"auto"!==this.settings.openedPanelHeight||(x=(i=this._getMinSize(n,g)).width,i=i.height,"auto"===this.settings.openedPanelWidth&&(this.computedOpenedPanelWidth=x,this.collapsedPanelWidth=(this.totalWidth-this.computedOpenedPanelWidth-(this.columns-1)*this.computedPanelDistance)/(this.columns-1)),"auto"===this.settings.openedPanelHeight&&(this.computedOpenedPanelHeight=i,this.collapsedPanelHeight=(this.totalHeight-this.computedOpenedPanelHeight-(this.rows-1)*this.computedPanelDistance)/(this.rows-1)));for(var m=n;m<=g;m++){var y=this.getPanelAt(m),v=y.getPosition(),P=y.getContentSize(),v=(d[m]=v.left,l[m]=v.top,"horizontal"===this.settings.orientation?(a[m]=this.currentPage*(this.totalWidth+this.computedPanelDistance)+f%this.columns*(this.collapsedPanelWidth+this.computedPanelDistance)+(m%this.columns>this.currentIndex%this.columns?this.computedOpenedPanelWidth-this.collapsedPanelWidth:0),o[m]=Math.floor(f/this.columns)*(this.collapsedPanelHeight+this.computedPanelDistance)+(Math.floor(m/this.columns)>Math.floor(this.currentIndex/this.columns)?this.computedOpenedPanelHeight-this.collapsedPanelHeight:0)):(a[m]=f%this.columns*(this.collapsedPanelWidth+this.computedPanelDistance)+(m%this.columns>this.currentIndex%this.columns?this.computedOpenedPanelWidth-this.collapsedPanelWidth:0),o[m]=this.currentPage*(this.totalHeight+this.computedPanelDistance)+Math.floor(f/this.columns)*(this.collapsedPanelHeight+this.computedPanelDistance)+(Math.floor(m/this.columns)>Math.floor(this.currentIndex/this.columns)?this.computedOpenedPanelHeight-this.collapsedPanelHeight:0)),y.getSize());c[m]=v.width,p[m]=v.height,r[m]=m%this.columns==this.currentIndex%this.columns?this.computedOpenedPanelWidth:this.collapsedPanelWidth,h[m]=Math.floor(m/this.columns)===Math.floor(this.currentIndex/this.columns)?this.computedOpenedPanelHeight:this.collapsedPanelHeight,"max"===this.settings.openedPanelWidth&&m%this.columns==this.currentIndex%this.columns&&("loading"===P&&-1===C.inArray(m,this.loadingPanels)?this.loadingPanels.push(m):P.width<this.computedOpenedPanelWidth&&(a[m]+=(this.computedOpenedPanelWidth-P.width)/2,r[m]=P.width)),"max"===this.settings.openedPanelHeight&&Math.floor(m/this.columns)===Math.floor(this.currentIndex/this.columns)&&("loading"===P&&-1===C.inArray(m,this.loadingPanels)?this.loadingPanels.push(m):P.height<this.computedOpenedPanelHeight&&(o[m]+=(this.computedOpenedPanelHeight-P.height)/2,h[m]=P.height)),a[m]===d[m]&&o[m]===l[m]||u.push(m),r[m]===c[m]&&h[m]===p[m]||-1!==C.inArray(m,u)||u.push(m),f++}var w=u.length,x=(this.closePanelsAnimation.page===this.currentPage&&this._stopPanelsAnimation(this.closePanelsAnimation),this._stopPanelsAnimation(this.openPanelAnimation),this.openPanelAnimation.page=this.currentPage,this._animatePanels(this.openPanelAnimation,{duration:this.settings.openPanelDuration,step:function(t){for(var e=0;e<w;e++){var i=u[e],n=s.getPanelAt(i);n.setPosition(t*(a[i]-d[i])+d[i],t*(o[i]-l[i])+l[i]),n.setSize(t*(r[i]-c[i])+c[i],t*(h[i]-p[i])+p[i])}},complete:function(){var t={type:"panelOpenComplete",index:s.currentIndex};s.trigger(t),C.isFunction(s.settings.panelOpenComplete)&&s.settings.panelOpenComplete.call(s,t)}}
7),{type:"panelOpen",index:t,previousIndex:e});this.trigger(x),C.isFunction(this.settings.panelOpen)&&this.settings.panelOpen.call(this,x)}},closePanels:function(){for(var e=this.currentIndex,n=(!(this.currentIndex=-1)===this.$accordion.hasClass("ga-closed")&&(this.$accordion.removeClass("ga-opened"),this.$accordion.addClass("ga-closed")),this.$accordion.find(".ga-panel.ga-opened").removeClass("ga-opened"),clearTimeout(this.mouseDelayTimer),this),s=[],a=[],o=[],r=[],h=[],d=[],l=[],c=[],p=this._getFirstPanelFromPage(),u=this._getLastPanelFromPage(),t=0,i=p;i<=u;i++){var g=this.getPanelAt(i),f=g.getPosition(),f=(h[i]=f.left,d[i]=f.top,"horizontal"===this.settings.orientation?(s[i]=this.currentPage*(this.totalWidth+this.computedPanelDistance)+t%this.columns*(this.closedPanelWidth+this.computedPanelDistance),a[i]=Math.floor(t/this.columns)*(this.closedPanelHeight+this.computedPanelDistance)):(s[i]=t%this.columns*(this.closedPanelWidth+this.computedPanelDistance),a[i]=this.currentPage*(this.totalHeight+this.computedPanelDistance)+Math.floor(t/this.columns)*(this.closedPanelHeight+this.computedPanelDistance)),g.getSize());l[i]=f.width,c[i]=f.height,o[i]=this.closedPanelWidth,r[i]=this.closedPanelHeight,t++}this.openPanelAnimation.page===this.currentPage&&this._stopPanelsAnimation(this.openPanelAnimation),this._stopPanelsAnimation(this.closePanelsAnimation),this.closePanelsAnimation.page=this.currentPage,this._animatePanels(this.closePanelsAnimation,{duration:this.settings.closePanelDuration,step:function(t){for(var e=p;e<=u;e++){var i=n.getPanelAt(e);i.setPosition(t*(s[e]-h[e])+h[e],t*(a[e]-d[e])+d[e]),i.setSize(t*(o[e]-l[e])+l[e],t*(r[e]-c[e])+c[e])}},complete:function(){var t={type:"panelsCloseComplete",previousIndex:e};n.trigger(t),C.isFunction(n.settings.panelsCloseComplete)&&n.settings.panelsCloseComplete.call(n,t)}});var m={type:"panelsClose",previousIndex:e};this.trigger(m),C.isFunction(this.settings.panelsClose)&&this.settings.panelsClose.call(this,m)},nextPanel:function(){var t=this.currentIndex>=this.getTotalPanels()-1?0:this.currentIndex+1;this.openPanel(t)},previousPanel:function(){var t=this.currentIndex<=0?this.getTotalPanels()-1:this.currentIndex-1;this.openPanel(t)},_getMinSize:function(t,e){for(var i=this.maxComputedOpenedPanelWidth,n=this.maxComputedOpenedPanelHeight,s=t;s<=e;s++){var a=this.getPanelAt(s).getContentSize();s%this.columns==this.currentIndex%this.columns&&("loading"===a&&-1===C.inArray(s,this.loadingPanels)?(this.loadingPanels.push(s),i=this.closedPanelWidth):a.width<i&&(i=a.width)),Math.floor(s/this.columns)===Math.floor(this.currentIndex/this.columns)&&("loading"===a&&-1===C.inArray(s,this.loadingPanels)?(this.loadingPanels.push(s),n=this.closedPanelHeight):a.height<n&&(n=a.height))}return{width:i,height:n}},getCurrentIndex:function(){return this.currentIndex},getPanelAt:function(t){return this.panels[t]},getTotalPanels:function(){return this.panels.length},getTotalPages:function(){return-1===this.settings.columns||-1===this.settings.rows?1:Math.ceil(this.getTotalPanels()/(this.columns*this.rows))},getCurrentPage:function(){return-1===this.settings.columns?0:this.currentPage},gotoPage:function(t){-1!==this.currentIndex&&this.closePanels(),this.currentPage=t,this.isPageScrolling=!0;var e=this,i={},t=-(t*("horizontal"===this.settings.orientation?this.totalWidth:this.totalHeight)+this.currentPage*this.computedPanelDistance),t=(i[this.positionProperty]=t,{type:"pageScroll",index:this.currentPage});this.trigger(t),C.isFunction(this.settings.pageScroll)&&this.settings.pageScroll.call(this,t),this.$panelsContainer.stop().animate(i,this.settings.pageScrollDuration,this.settings.pageScrollEasing,function(){e.isPageScrolling=!1;var t={type:"pageScrollComplete",index:e.currentPage};e.trigger(t),C.isFunction(e.settings.pageScrollComplete)&&e.settings.pageScrollComplete.call(e,t)})},nextPage:function(){var t=this.currentPage>=this.getTotalPages()-1?0:this.currentPage+1;this.gotoPage(t)},previousPage:function(){var t=this.currentPage<=0?this.getTotalPages()-1:this.currentPage-1;this.gotoPage(t)},_getFirstPanelFromPage:function(){return 1===this.getTotalPages()?0:this.currentPage*(this.columns*this.rows)},_getLastPanelFromPage:function(){return 1===this.getTotalPages()||this.currentPage===this.getTotalPages()-1?this.getTotalPanels()-1:(this.currentPage+1)*(this.columns*this.rows)-1},_updatePaginationButtons:function(){var e=this.$accordion.find(".ga-pagination-buttons"),t=this,i=this.getTotalPages();if(i<=1&&0!==e.length)e.remove(),e.off("click."+r,".ga-pagination-button"),this.off("pageScroll."+r),this.$accordion.removeClass("ga-has-buttons");else if(1<i&&0===e.length){for(var e=C('<div class="ga-pagination-buttons"></div>').appendTo(this.$accordion),n=0;n<this.getTotalPages();n++)C('<div class="ga-pagination-button"></div>').appendTo(e);e.on("click."+r,".ga-pagination-button",function(){t.gotoPage(C(this).index())}),e.find(".ga-pagination-button").eq(this.currentPage).addClass("ga-selected"),this.on("pageScroll."+r,function(t){e.find(".ga-selected").removeClass("ga-selected"),e.find(".ga-pagination-button").eq(t.index).addClass("ga-selected")}),this.$accordion.addClass("ga-has-buttons")}else if(1<i&&0!==e.length){e.empty();for(var s=0;s<this.getTotalPages();s++)C('<div class="ga-pagination-button"></div>').appendTo(e);e.find(".ga-selected").removeClass("ga-selected"),e.find(".ga-pagination-button").eq(this.currentPage).addClass("ga-selected")}},_setProperties:function(t,e){for(var i in t)"columns"===i&&-1!==this.settings.columns&&(this.previousColumns=this.settings.columns),"rows"===i&&-1!==this.settings.rows&&(this.previousRows=this.settings.rows),this.settings[i]=t[i],!1!==e&&(this.originalSettings[i]=t[i]);this.update()},on:function(t,e){return this.$accordion.on(t,e)},off:function(t){return this.$accordion.off(t)},trigger:function(t){return this.$accordion.triggerHandler(t)},defaults:{width:800,height:400,responsive:!0,responsiveMode:"auto",aspectRatio:-1,orientation:"horizontal",startPanel:-1,rows:3,columns:4,openedPanelWidth:"max",openedPanelHeight:"max",maxOpenedPanelWidth:"70%",maxOpenedPanelHeight:"70%",openPanelOn:"hover",closePanelsOnMouseOut:!0,mou
7seDelay:200,panelDistance:10,openPanelDuration:700,closePanelDuration:700,pageScrollDuration:500,pageScrollEasing:"swing",breakpoints:null,startPage:0,shadow:!1,shuffle:!1,init:function(){},update:function(){},accordionMouseOver:function(){},accordionMouseOut:function(){},panelClick:function(){},panelMouseOver:function(){},panelMouseOut:function(){},panelOpen:function(){},panelsClose:function(){},pageScroll:function(){},panelOpenComplete:function(){},panelsCloseComplete:function(){},pageScrollComplete:function(){},breakpointReach:function(){}}},function(t,e,i){this.$panel=t,this.accordion=e,this.settings=this.accordion.settings,this.panelNS="GridAccordionPanel"+i+"."+r,this.isLoading=!1,this.isLoaded=!1,this.setIndex(i),this._init()});a.prototype={_init:function(){var t=this,e=(this.$panel.attr("data-init",!0),this.on("mouseenter."+this.panelNS,function(){t.trigger({type:"panelMouseOver."+r,index:t.index})}),this.on("mouseleave."+this.panelNS,function(){t.trigger({type:"panelMouseOut."+r,index:t.index})}),this.on("click."+this.panelNS,function(){t.trigger({type:"panelClick."+r,index:t.index})}),this.on("mousedown."+this.panelNS,function(){t.trigger({type:"panelMouseDown."+r,index:t.index})}),this.update(),C.GridAccordion.modules.panel);if(void 0!==e)for(var i=0;i<e.length;i++)void 0!==this["init"+e[i]]&&this["init"+e[i]]()},update:function(){this.positionProperty="horizontal"===this.settings.orientation?"left":"top",this.sizeProperty="horizontal"===this.settings.orientation?"width":"height",this.$panel.css({top:"",left:"",width:"",height:""})},destroy:function(){this.off("mouseenter."+this.panelNS),this.off("mouseleave."+this.panelNS),this.off("click."+this.panelNS),this.off("mousedown."+this.panelNS),this.$panel.attr("style",""),this.$panel.removeAttr("data-init"),this.$panel.removeAttr("data-index");var t=C.GridAccordion.modules.panel;if(void 0!==t)for(var e=0;e<t.length;e++)void 0!==this["destroy"+t[e]]&&this["destroy"+t[e]]()},getIndex:function(){return this.index},setIndex:function(t){this.index=t,this.$panel.attr("data-index",this.index)},getPosition:function(){return{left:parseInt(this.$panel.css("left"),10),top:parseInt(this.$panel.css("top"),10)}},setPosition:function(t,e){this.$panel.css({left:t,top:e})},getSize:function(){return{width:parseInt(this.$panel.css("width"),10),height:parseInt(this.$panel.css("height"),10)}},setSize:function(t,e){this.$panel.css({width:t,height:e})},getContentSize:function(){return!1===this.isLoaded&&"loading"===this.checkImagesComplete()?"loading":{width:this.$panel[0].scrollWidth,height:this.$panel[0].scrollHeight}},checkImagesComplete:function(){var t,e,i;return!0===this.isLoading?"loading":(e="complete",(t=this).$panel.find("img").each(function(t){!1!==C(this)[0].complete&&void 0===C(this).attr("data-src")||(e="loading")}),"loading"===e?(this.isLoading=!0,i=setInterval(function(){var e=!0;t.$panel.find("img").each(function(t){!1!==C(this)[0].complete&&void 0===C(this).attr("data-src")||(e=!1)}),!0===e&&(t.isLoading=!1,t.isLoaded=!0,clearInterval(i),t.trigger({type:"imagesComplete."+r,index:t.index}))},100)):this.isLoaded=!0,e)},on:function(t,e){return this.$panel.on(t,e)},off:function(t){return this.$panel.off(t)},trigger:function(t){return this.$panel.triggerHandler(t)}},h.GridAccordion=s,h.GridAccordionPanel=a,C.fn.gridAccordion=function(i){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var t,e;void 0===C(this).data("gridAccordion")?(t=new s(this,i),C(this).data("gridAccordion",t)):void 0!==i&&("function"==typeof(t=C(this).data("gridAccordion"))[i]?t[i].apply(t,n):void 0!==t.settings[i]?((e={})[i]=n[0],t._setProperties(e)):"object"==typeof i?t._setProperties(i):C.error(i+" does not exist in gridAccordion."))})}}(window,jQuery),function(t){"use strict";var i=t.GridAccordion.namespace;t.GridAccordion.addModule("Autoplay",{autoplayIndex:-1,autoplayTimer:null,isTimerRunning:!1,isTimerPaused:!1,initAutoplay:function(){var e=this;!0===this.settings.autoplay&&this.startAutoplay(),this.on("panelOpen.Autoplay."+i,function(t){e.auto
7playIndex=t.index,!0===e.settings.autoplay&&(!0===e.isTimerRunning&&e.stopAutoplay(),!1===e.isTimerPaused)&&e.startAutoplay()}),this.on("panelsClose.Autoplay."+i,function(t){-1!==t.previousIndex&&(e.autoplayIndex=t.previousIndex)}),this.on("pageScroll.Autoplay."+i,function(t){e.autoplayIndex=e._getFirstPanelFromPage()-1}),this.on("mouseenter.Autoplay."+i,function(t){!0!==e.settings.autoplay||!e.isTimerRunning||"pause"!==e.settings.autoplayOnHover&&"stop"!==e.settings.autoplayOnHover||(e.stopAutoplay(),e.isTimerPaused=!0)}),this.on("mouseleave.Autoplay."+i,function(t){!0===e.settings.autoplay&&!1===e.isTimerRunning&&"stop"!==e.settings.autoplayOnHover&&(e.startAutoplay(),e.isTimerPaused=!1)})},startAutoplay:function(){var t=this;this.isTimerRunning=!0,this.autoplayTimer=setTimeout(function(){-1!==t.autoplayIndex&&(t.currentIndex=t.autoplayIndex,t.autoplayIndex=-1),"normal"===t.settings.autoplayDirection?t.nextPanel():"backwards"===t.settings.autoplayDirection&&t.previousPanel()},this.settings.autoplayDelay)},stopAutoplay:function(){this.isTimerRunning=!1,clearTimeout(this.autoplayTimer)},destroyAutoplay:function(){clearTimeout(this.autoplayTimer),this.off("panelOpen.Autoplay."+i),this.off("pageScroll.Autoplay."+i),this.off("mouseenter.Autoplay."+i),this.off("mouseleave.Autoplay."+i)},autoplayDefaults:{autoplay:!0,autoplayDelay:5e3,autoplayDirection:"normal",autoplayOnHover:"pause"}},"accordion")}((window,jQuery)),function(e,i){"use strict";var n=i.GridAccordion.namespace;i.GridAccordion.addModule("DeepLinking",{initDeepLinking:function(){var t=this;!1!==this._parseHash(e.location.hash)&&(this.options.startPanel=-1),this.on("init.DeepLinking."+n,function(){t._gotoHash(e.location.hash)}),i(e).on("hashchange.DeepLinking."+this.uniqueId+"."+n,function(){t._gotoHash(e.location.hash)})},_parseHash:function(t){if(""!==t){var e=(t=t.substring(1)).split("/").pop(),t=t.slice(0,-e.toString().length-1);if(this.$accordion.attr("id")===t)return{accordionID:t,panelId:e}}return!1},_gotoHash:function(t){var e,t=this._parseHash(t);!1!==t&&(t=t.panelId,e=parseInt(t,10),isNaN(e)?-1!==(t=this.$accordion.find(".ga-panel#"+t).index())&&this.openPanel(t):this.openPanel(e))},destroyDeepLinking:function(){i(e).off("hashchange.DeepLinking."+this.uniqueId+"."+n)}},"accordion")}(window,jQuery),function(d){"use strict";var i=d.GridAccordion.namespace;d.GridAccordion.addModule("JSON",{JSONDataAttributesMap:{width:"data-width",height:"data-height",depth:"data-depth",position:"data-position",horizontal:"data-horizontal",vertical:"data-vertical",showTransition:"data-show-transition",showOffset:"data-show-offset",showDelay:"data-show-delay",showDuration:"data-show-duration",showEasing:"data-show-easing",hideTransition:"data-hide-transition",hideOffset:"data-",hideDelay:"data-hide-delay",hideDuration:"data-hide-duration",hideEasing:"data-hide-easing"},initJSON:function(){null!==this.settings.JSONSource&&this.updateJSON()},updateJSON:function(){var h=this;this.removePanels(),this.$panelsContainer.empty(),this.off("JSONReady."+i),this.on("JSONReady."+i,function(t){var t=t.jsonData,e=t.accordion.panels,r=t.accordion.lazyLoading;d.each(e,function(t,e){var i,n,s,a,o=d('<div class="ga-panel"></div>').appendTo(h.$panelsContainer);void 0!==e.backgroundLink&&(i=d('<a href="'+e.backgroundLink.address+'"></a>'),d.each(e.backgroundLink,function(t,e){"address"!==t&&i.attr(t,e)}),i.appendTo(o)),void 0!==e.background&&(s=d('<img class="ga-background"/>'),void 0!==r?s.attr({src:r,"data-src":e.background.source}):s.attr({src:e.background.source}),void 0!==e.backgroundRetina&&s.attr({"data-retina":e.backgroundRetina.source}),d.each(e.background,function(t,e){"source"!==t&&s.attr(t,e)}),s.appendTo(void 0!==i?i:o)),void 0!==e.backgroundOpenedLink&&(n=d('<a href="'+e.backgroundOpenedLink.address+'"></a>'),d.each(e.backgroundOpenedLink,function(t,e){"address"!==t&&n.attr(t,e)}),n.appendTo(o)),void 0!==e.backgroundOpened&&(a=d('<img class="ga-background-opened"/>'),void 0!==r?a.attr({src:r,"data-src":e.backgroundOpened.source}):a.attr({src:e.backgroundOpened.source}),void 0!==e.backgroundOpenedRetina&&a.attr({"data-retina":e.backgroundOpenedRetina.source}),d.each(e.backgroundOpened,function(t,e){"source"!==t&&a.attr(t,e)}),a.appendTo(void 0!==n?n:o)),void 0!==e.layers&&h._parseLayers(e.layers,o)}),h.update()}),this._loadJSON()},_parseLayers:function(t,o){var r=this;d.each(t,function(t,e){var i=e,n="",s="",a=(d.each(i,function(t,e){var i;"style"===t?(i=e.split(" "),d.each(i,function(t,e){n+=" ga-"+e})):"content"!==t&&"layers"!==t&&(s+=" "+r.JSONDataAttributesMap[t]+'="'+e+'"')}),d('<div class="ga-layer'+n+'"'+s+"></div>").appendTo(o));void 0!==e.layers?r._parseLayers(e.layers,a):a.html(i.content)})},_loadJSON:function(){var t,e=this;".json"===this.settings.JSONSource.slice(-5)?d.getJSON(this.settings.JSONSource,function(t){e.trigger({type:"JSONReady."+i,jsonData:t})}):(t=d.parseJSON(this.settings.JSONSource),e.trigger({type:"JSONReady."+i,jsonData:t}))},destroyJSON:function(){this.off("JSONReady."+i)},JSONDefaults:{JSONSource:null}},"accordion")}((window,jQuery)),function(t){"use strict";var n=t.GridAccordion.namespace;t.GridAccordion.addModule("Keyboard",{initKeyboard:function(){var e=this,i=!1;!1!==this.settings.keyboard&&(this.$accordion.on("focus.Keyboard."+n,function(){i=!0}),this.$accordion.on("blur.Keyboard."+n,function(){i=!1}),t(document).on("keydown.Keyboard."+this.uniqueId+"."+n,function(t){!0===e.settings.keyboardOnlyOnFocus&&!1===i||(37===t.which?"page"===e.settings.keyboardTarget?e.previousPage():e.previousPanel
7():39===t.which?"page"===e.settings.keyboardTarget?e.nextPage():e.nextPanel():13===t.which&&0!==(t=e.$accordion.find(".ga-panel").eq(e.currentIndex).children("a")).length&&t[0].click())}))},destroyKeyboard:function(){this.$accordion.off("focus.Keyboard."+n),this.$accordion.off("blur.Keyboard."+n),t(document).off("keydown.Keyboard."+this.uniqueId+"."+n)},keyboardDefaults:{keyboard:!0,keyboardOnlyOnFocus:!1,keyboardTarget:"panel"}},"accordion")}((window,jQuery)),function(t,o){"use strict";o.GridAccordion.namespace;var t=t.navigator.userAgent.toLowerCase(),t=/(msie) ([\w.]+)/.exec(t)||[],r=t[1],h=t[2],t={initLayers:function(){this.layers=[];var e=this;this.$panel.find(".ga-layer").each(function(){var t=new i(o(this));e.layers.push(t)}),this.index===this.accordion.getCurrentIndex()?this._handleLayersInOpenedState():this._handleLayersInClosedState(),this.accordion.on("panelOpen.Layers."+this.panelNS,function(t){t.index!==t.previousIndex&&(e.index===t.previousIndex&&e._handleLayersInClosedState(),e.index===t.index)&&e._handleLayersInOpenedState()}),this.accordion.on("panelsClose.Layers."+this.panelNS,function(t){e.index===t.previousIndex&&e._handleLayersInClosedState()})},_handleLayersInOpenedState:function(){o.each(this.layers,function(t,e){"opened"===e.visibleOn&&e.show(),"closed"===e.visibleOn&&e.hide()})},_handleLayersInClosedState:function(){o.each(this.layers,function(t,e){"opened"===e.visibleOn&&e.hide(),"closed"===e.visibleOn&&e.show()})},destroyLayers:function(){this.accordion.off("panelOpen.Layers."+this.panelNS),this.accordion.off("panelsClose.Layers."+this.panelNS),o.each(this.layers,function(t,e){e.destroy()})}},i=function(t){this.$layer=t,this.visibleOn="n/a",this.isVisible=!1,this.styled=!1,this._init()},d=(i.prototype={_init:function(){this.$layer.css({display:"none"}),this.$layer.hasClass("ga-opened")?this.visibleOn="opened":this.$layer.hasClass("ga-closed")?this.visibleOn="closed":(this.visibleOn="always",this.show())},_setStyle:function(){this.styled=!0,this.$layer.css({display:"block",margin:0}),this.data=this.$layer.data(),void 0!==this.data.width&&this.$layer.css("width",this.data.width),void 0!==this.data.height&&this.$layer.css("height",this.data.height),void 0!==this.data.depth&&this.$layer.css("z-index",this.data.depth),this.position=this.data.position?this.data.position.toLowerCase():"topleft",this.horizontalPosition=-1!==this.position.indexOf("right")?"right":"left",this.verticalPosition=-1!==this.position.indexOf("bottom")?"bottom":"top",this._setPosition()},_setPosition:function(){void 0!==this.data.horizontal?"center"===this.data.horizontal?(-1===this.$layer.attr("style").indexOf("width")&&!1===this.$layer.is("img")&&(this.$layer.css("white-space","nowrap"),this.$layer.css("width",this.$layer.outerWidth(!0))),this.$layer.css({marginLeft:"auto",marginRight:"auto",left:0,right:0})):this.$layer.css(this.horizontalPosition,this.data.horizontal):this.$layer.css(this.horizontalPosition,0),void 0!==this.data.vertical?"center"===this.data.vertical?(-1===this.$layer.attr("style").indexOf("height")&&!1===this.$layer.is("img")&&(this.$layer.css("white-space","nowrap"),this.$layer.css("height",this.$layer.outerHeight(!0))),this.$layer.css({marginTop:"auto",marginBottom:"auto",top:0,bottom:0})):this.$layer.css(this.verticalPosition,this.data.vertical):this.$layer.css(this.verticalPosition,0)},show:function(){var t,e,i,n,s,a;!0!==this.isVisible&&(!(this.isVisible=!0)===this.styled&&this._setStyle(),n=void 0!==(t=this).data.showOffset?this.data.showOffset:50,e=void 0!==this.data.showDuration?this.data.showDuration/1e3:.4,i=void 0!==this.data.showDelay?this.data.showDelay:10,"always"===this.visibleOn||"msie"===r&&parseInt(h,10)<=7?this.$layer.css("display","block"):"msie"===r&&parseInt(h,10)<=9?this.$layer.stop().delay(i).css({opacity:0,display:"block"}).animate({opacity:1},1e3*e):(s="","left"===this.data.showTransition?s=n+"px, 0":"right"===this.data.showTransition?s="-"+n+"px, 0":"up"===this.data.showTransition?s="0, "+n+"px":"down"===this.data.showTransition&&(s="0, -"+n+"px"),(n={opacity:0,display:"block"}).transform="3d"===d.useTransforms()?"translate3d("+s+", 0)":"translate("+s+")",
7n["-webkit-transform"]=n["-ms-transform"]=n.transform,a={opacity:1,transition:"all "+e+"s"},void 0!==this.data.showTransition&&(a.transform="3d"===d.useTransforms()?"translate3d(0, 0, 0)":"translate(0, 0)",a["-webkit-transform"]=a["-ms-transform"]=a.transform),this.$layer.on("transitionend webkitTransitionEnd oTransitionEnd msTransitionEnd",function(){t.$layer.off("transitionend webkitTransitionEnd oTransitionEnd msTransitionEnd"),t.$layer.css("transition",""),t.$layer.css("transform","")}),this.$layer.css(n).delay(i).queue(function(){t.$layer.css(a),o(this).dequeue()})))},hide:function(){var t,e,i,n,s;!1!==this.isVisible&&(this.isVisible=!1,e=void 0!==(t=this).data.hideOffset?this.data.hideOffset:50,s=void 0!==this.data.hideDuration?this.data.hideDuration/1e3:.4,i=void 0!==this.data.hideDelay?this.data.hideDelay:10,"always"===this.visibleOn||"msie"===r&&parseInt(h,10)<=7?this.$layer.css("display","none"):"msie"===r&&parseInt(h,10)<=9?this.$layer.stop().delay(i).animate({opacity:0},1e3*s,function(){o(this).css({display:"none"})}):(n={opacity:0,transition:"all "+s+"s"},s="","left"===this.data.hideTransition?s="-"+e+"px, 0":"right"===this.data.hideTransition?s=e+"px, 0":"up"===this.data.hideTransition?s="0, -"+e+"px":"down"===this.data.hideTransition&&(s="0, "+e+"px"),n.transform="3d"===d.useTransforms()?"translate3d("+s+", 0)":"translate("+s+")",n["-webkit-transform"]=n["-ms-transform"]=n.transform,this.$layer.on("transitionend webkitTransitionEnd oTransitionEnd msTransitionEnd",function(){t.$layer.off("transitionend webkitTransitionEnd oTransitionEnd msTransitionEnd"),t.$layer.css("transition",""),t.$layer.css("transform",""),!1===t.isVisible&&t.$layer.css("display","none")}),this.$layer.delay(i).queue(function(){t.$layer.css(n),o(this).dequeue()})))},destroy:function(){this.$layer.attr("style","")}},o.GridAccordion.addModule("Layers",t,"panel"),{checked:!1,transforms:"",useTransforms:function(){var t,e;return!0===this.checked||(this.checked=!0,void 0===(t=document.createElement("div")).style.WebkitPerspective&&void 0===t.style.perspective||(this.transforms="3d"),"3d"===this.transforms&&void 0!==t.styleWebkitPerspective&&((e=document.createElement("style")).textContent="@media (transform-3d),(-webkit-transform-3d){#test-3d{left:9px;position:absolute;height:5px;margin:0;padding:0;border:0;}}",document.getElementsByTagName("head")[0].appendChild(e),t.id="test-3d",document.body.appendChild(t),9===t.offsetLeft&&5===t.offsetHeight||(this.transforms=""),e.parentNode.removeChild(e),t.parentNode.removeChild(t)),""!==this.transforms)||void 0===t.style["-webkit-transform"]&&void 0===t.style.transform||(this.transforms="2d"),this.transforms}})}(window,jQuery),function(a){"use strict";var t=a.GridAccordion.namespace;a.GridAccordion.addModule("LazyLoading",{initLazyLoading:function(){this.on("update.LazyLoading."+t,a.proxy(this._checkImages,this)),this.on("pageScroll.LazyLoading."+t,a.proxy(this._checkImages,this))},_checkImages:function(){var s=this,t=this._getFirstPanelFromPage(),e=this._getLastPanelFromPage(),e=e!==this.getTotalPanels()-1?this.panels.slice(t,e+1):this.panels.slice(t);a.each(e,function(t,e){var i=e.$panel,n=e.getIndex();-1===s.currentIndex||-1!=a.inArray(n,s.loadingPanels)||n%s.columns!=s.currentIndex%s.columns&&Math.floor(n/s.columns)!==Math.floor(s.currentIndex/s.columns)||s.loadingPanels.push(n),void 0===i.attr("data-loaded")&&(i.attr("data-loaded",!0),i.find("img").each(function(){var t=a(this);s._loadImage(t,e)}))})},_loadImage:function(t,e){var i;void 0!==t.attr("data-src")&&((i=a(new Image)).attr("class",t.attr("class")),i.attr("style",t.attr("style")),a.each(t.data(),function(t,e){i.attr("data-"+t,e)}),void 0!==t.attr("width")&&i.attr("width",t.attr("width")),void 0!==t.attr("height")&&i.attr("height",t.attr("height")),void 0!==t.attr("alt")&&i.attr("alt",t.attr("alt")),void 0!==t.attr("title")&&i.attr("title",t.attr("title")),i.attr("src",t.attr("data-src")),i.removeAttr("data-src"),i.insertAfter(t),t.remove())},destroyLazyLoading:function(){this.off("update.LazyLoading."+t),this.off("pageScroll.LazyLoading."+t)}},"accordion")}((window,jQuery)),function(t){"use strict";var e=t.GridAccordion.namespace;t.GridAccordion.addModule("MouseWheel",{mouseWheelEventType:"",allowMouseWheelScroll:!0,initMouseWheel:function(){var i=this;!1!==this.settings.mouseWheel&&("onwheel"in document?this.mouseWheelEventType="wheel":"onmousewheel"in document?this.mouseWheelEventType="mousewheel":"onDomMouseScroll"in document?this.mouseWheelEventType="DomMouseScroll":"onMozMousePixelScroll"in document&&(this.mouseWheelEventType="MozMousePixelScroll"),this.on(this.mouseWheelEventType+"."+e,function(t){t.preventDefault();var e,t=t.originalEvent;void 0!==t.detail&&(e=t.detail),void 0!==t.wheelDelta&&(e=t.wheelDelta),void 0!==t.deltaY&&(e=-1*t.deltaY),!0===i.allowMouseWheelScroll&&Math.abs(e)>=i.settings.mouseWheelSensitivity&&(i.allowMouseWheelScroll=!1,setTimeout(function(){i.allowMouseWheelScroll=!0},500),e<=-i.settings.mouseWheelSensitivity?"page"===i.settings.mouseWheelTarget?i.nextPage():i.nextPanel():e>=i.settings.mouseWheelSensitivity&&("page"===i.settings.mouseWheelTarget?i.previousPage():i.previousPanel
7()))}))},destroyMouseWheel:function(){this.off(this.mouseWheelEventType+"."+e)},mouseWheelDefaults:{mouseWheel:!0,mouseWheelSensitivity:10,mouseWheelTarget:"panel"}},"accordion")}((window,jQuery)),function(t,a){"use strict";var e=a.GridAccordion.namespace;a.GridAccordion.addModule("Retina",{initRetina:function(){!1!==this._isRetina()&&(void 0!==this._loadImage?this._loadImage=this._loadRetinaImage:this.on("update.Retina."+e,a.proxy(this._checkRetinaImages,this)))},_isRetina:function(){return 2<=t.devicePixelRatio||!(!t.matchMedia||!t.matchMedia("(-webkit-min-device-pixel-ratio: 2),(min-resolution: 2dppx)").matches)},_checkRetinaImages:function(){var s=this;this.off("update.Retina."+e),a.each(this.panels,function(t,e){var i=e.$panel,n=e.getIndex();-1===s.currentIndex||-1!=a.inArray(n,s.loadingPanels)||n%s.columns!=s.currentIndex%s.columns&&Math.floor(n/s.columns)!==Math.floor(s.currentIndex/s.columns)||s.loadingPanels.push(n),void 0===i.attr("data-loaded")&&(i.attr("data-loaded",!0),i.find("img").each(function(){var t=a(this);s._loadRetinaImage(t,e)}))})},_loadRetinaImage:function(t,e){var i,n=!1,s="";void 0!==t.attr("data-retina")&&(n=!0,s=t.attr("data-retina"),t.removeAttr("data-retina")),void 0!==t.attr("data-src")&&(!1===n&&(s=t.attr("data-src")),t.removeAttr("data-src")),""!==s&&((i=a(new Image)).attr("class",t.attr("class")),i.attr("style",t.attr("style")),a.each(t.data(),function(t,e){i.attr("data-"+t,e)}),void 0!==t.attr("width")&&i.attr("width",t.attr("width")),void 0!==t.attr("height")&&i.attr("height",t.attr("height")),void 0!==t.attr("alt")&&i.attr("alt",t.attr("alt")),void 0!==t.attr("title")&&i.attr("title",t.attr("title")),i.attr("src",s),i.insertAfter(t),t.remove())},destroyRetina:function(){}},"accordion")}(window,jQuery),function(t,n){"use strict";var e=n.GridAccordion.namespace;t.navigator.userAgent.toLowerCase();n.GridAccordion.addModule("SmartVideo",{initSmartVideo:function(){this._setupVideos()},_setupVideos:function(){var i=this;this.$accordion.find(".ga-video").each(function(){var e=n(this);e.videoController(),e.on("videoPlay.SmartVideo",function(){"stopAutoplay"===i.settings.playVideoAction&&void 0!==i.stopAutoplay&&(i.stopAutoplay(),i.settings.autoplay=!1);var t={type:"videoPlay",video:e};i.trigger(t),n.isFunction(i.settings.videoPlay)&&i.settings.videoPlay.call(i,t)}),e.on("videoPause.SmartVideo",function(){"startAutoplay"===i.settings.pauseVideoAction&&void 0!==i.startAutoplay&&(i.startAutoplay(),i.settings.autoplay=!0);var t={type:"videoPause",video:e};i.trigger(t),n.isFunction(i.settings.videoPause)&&i.settings.videoPause.call(i,t)}),e.on("videoEnded.SmartVideo",function(){"startAutoplay"===i.settings.endVideoAction&&void 0!==i.startAutoplay?(i.startAutoplay(),i.settings.autoplay=!0):"nextPanel"===i.settings.endVideoAction?i.nextPanel():"replayVideo"===i.settings.endVideoAction&&e.videoController("replay");var t={type:"videoEnd",video:e};i.trigger(t),n.isFunction(i.settings.videoEnd)&&i.settings.videoEnd.call(i,t)})}),this.on("panelOpen.SmartVideo."+e,function(t){var e;-1!==t.previousIndex&&0!==i.$panelsContainer.find(".ga-panel").eq(t.previousIndex).find(".ga-video").length&&(e=i.$panelsContainer.find(".ga-panel").eq(t.previousIndex).find(".ga-video"),"stopVideo"===i.settings.closePanelVideoAction?e.videoController("stop"):"pauseVideo"===i.settings.closePanelVideoAction&&e.videoController("pause")),0!==i.$panelsContainer.find(".ga-panel").eq(t.index).find(".ga-video").length&&(e=i.$panelsContainer.find(".ga-panel").eq(t.index).find(".ga-video"),"playVideo"===i.settings.openPanelVideoAction)&&e.videoController("play")}),this.on("panelsClose.SmartVideo."+e,function(t){-1!==t.previousIndex&&0!==i.$panelsContainer.find(".ga-panel").eq(t.previousIndex).find(".ga-video").length&&(t=i.$panelsContainer.find(".ga-panel").eq(t.previousIndex).find(".ga-video"),"stopVideo"===i.settings.closePanelVideoAction?t.videoController("stop"):"pauseVideo"===i.settings.closePanelVideoAction&&t.videoController("pause"))})},destroySmartVideo:function(){this.$accordion.find(".ga-video").each(function(){n(this).off("SmartVideo"),n(this).videoController("destroy")}),this.off("panelOpen.SmartVideo."+e),this.off("panelsClose.SmartVideo."+e)},smartVideoDefaults:{openPanelVideoAction:"playVideo",closePanelVideoAction:"pauseVideo",playVideoAction:"stopAutoplay",pauseVideoAction:"none",endVideoAction:"none",videoPlay:function(){},videoPause:function(){},videoEnd:function(){}}},"accordion")}(window,jQuery),function(a){"use strict";function n(t,e){this.$video=a(t),this.options=e,this.settings={},this.player=null,this._init()}function s(t){this.$video=t,this.player=null,this.ready=!1,this.started=!1,this.state="",this.events=a({}),this._init()}function t(t){var e;this.init=!1,void 0!==(window.YT&&window.YT.Player)?s.call(this,t):(l.youtubeVideos.push({video:t,scope:this}),!1===l.youtubeAPIAdded&&(l.youtubeAPIAdded=!0,(t=document.createElement("script")).src="//www.youtube.com/player_api",(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(t,e),window.onYouTubePlayerAPIReady=function(){a.each(l.youtubeVideos,function(t,e){s.call(e.scope,e.video)})}))}function e(t){var e,i;this.init=!1,void 0!==window.Vimeo?s.call(this,t):(c.vimeoVideos.push({video:t,scope:this}),!1===c.vimeoAPIAdded&&(c.vimeoAPIAdded=!0,(t=document.createElement("script")).src="//player.vimeo.com/api/player.js",(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(t,e),i=setInterval(function(){void 0!==window.Vimeo&&(clearInterval(i),a.each(c.vimeoVideos,function(t,e){s.call(e.scope,e.video)}))},100)))}function i(t){s.call(this,t)}function o(t){s.call(this,t)}function r(t){s.call(this,t)}function h(t){s.call(this,t)}var d=!!window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g),l=(n.prototype={_init:function(){this.settings=a.extend({},this.defaults,this.options);var t,n=this,e=a.VideoController.players,s=this.$video.attr("id");for(t in e)if(void 0!==e[t]&&e[t].isType(this.$video)){this.player=new e[t](this.$video);break}null!==this.player&&a.each(["ready","start","play","pause","ended"],function(t,e){var i="video"+e.charAt(0).toUpperCase()+e.slice(1);n.player.on(e,function(){n.trigger({type:i,video:s}),a.isFunction(n.settings[i])&&n.settings[i].call(n,{type:i,video:s})})})},play:function(){!0==d&&!1===this.player.isStarted()||"playing"===this.player.getState()||this.player.play()},stop:function(){!0==d&&!1===this.player.isStarted()||"stopped"===this.player.getState()||this.player.stop()},pause:function(){!0==d&&!1===this.player.isStarted()||"paused"===this.player.getState()||this.player.pause()},replay:function(){!0==d&&!1===this.player.isStarted()||this.player.replay()},on:function(t,e){return this.$video.on(t,e)},off:function(t){return this.$video.off(t)},trigger:function(t){return this.$video.triggerHandler(t)},destroy:function(){!0===this.player.isStarted()&&this.stop(),this.player.off("ready"),this.player.off("start"),this.player.off("play"),this.player.off("pause"),this.player.off("ended"),this.$video.removeData("videoController")},defaults:{videoReady:function(){},videoStart:function(){},videoPlay:function(){},videoPause:function(){},videoEnded:function(){}}},a.VideoController={players:{},addPlayer:function(t,e){this.players[t]=e}},a.fn.videoController=function(e){var i=Array.prototype.slice.call(arguments,1
7);return this.each(function(){var t;void 0===a(this).data("videoController")?(t=new n(this,e),a(this).data("videoController",t)):void 0!==e&&("function"==typeof(t=a(this).data("videoController"))[e]?t[e].apply(t,i):a.error(e+" does not exist in videoController."))})},{youtubeAPIAdded:!(s.prototype={_init:function(){},play:function(){},pause:function(){},stop:function(){},replay:function(){},isType:function(){},isReady:function(){return this.ready},isStarted:function(){return this.started},getState:function(){return this.state},on:function(t,e){return this.events.on(t,e)},off:function(t){return this.events.off(t)},trigger:function(t){return this.events.triggerHandler(t)}}),youtubeVideos:[]}),c=(t.prototype=new s,a.VideoController.addPlayer("YoutubeVideo",t.prototype.constructor=t),t.isType=function(t){if(t.is("iframe")){t=t.attr("src");if(-1!==t.indexOf("youtube.com")||-1!==t.indexOf("youtu.be"))return!0}return!1},t.prototype._init=function(){this.init=!0,this._setup()},t.prototype._setup=function(){var e=this;this.player=new YT.Player(this.$video[0],{events:{onReady:function(){e.trigger({type:"ready"}),e.ready=!0},onStateChange:function(t){switch(t.data){case YT.PlayerState.PLAYING:!1===e.started&&(e.started=!0,e.trigger({type:"start"})),e.state="playing",e.trigger({type:"play"});break;case YT.PlayerState.PAUSED:e.state="paused",e.trigger({type:"pause"});break;case YT.PlayerState.ENDED:e.state="ended",e.trigger({type:"ended"})}}}})},t.prototype.play=function(){var t,e=this;!0===this.ready?this.player.playVideo():t=setInterval(function(){!0===e.ready&&(clearInterval(t),e.player.playVideo())},100)},t.prototype.pause=function(){!0==d?this.stop():this.player.pauseVideo()},t.prototype.stop=function(){this.player.seekTo(1),this.player.stopVideo(),this.state="stopped"},t.prototype.replay=function(){this.player.seekTo(1),this.player.playVideo()},{vimeoAPIAdded:!(t.prototype.on=function(t,e){var i,n=this;!0===this.init?s.prototype.on.call(this,t,e):i=setInterval(function(){!0===n.init&&(clearInterval(i),s.prototype.on.call(n,t,e))},100)}),vimeoVideos:[]});e.prototype=new s,a.VideoController.addPlayer("VimeoVideo",e.prototype.constructor=e),e.isType=function(t){if(t.is("iframe")&&-1!==t.attr("src").indexOf("vimeo.com"))return!0;return!1},e.prototype._init=function(){this.init=!0,this._setup()},e.prototype._setup=function(){var t=this;this.player=new Vimeo.Player(this.$video[0]),t.ready=!0,t.trigger({type:"ready"}),t.player.on("play",function(){!1===t.started&&(t.started=!0,t.trigger({type:"start"})),t.state="playing",t.trigger({type:"play"})}),t.player.on("pause",function(){t.state="paused",t.trigger({type:"pause"})}),t.player.on("ended",function(){t.state="ended",t.trigger({type:"ended"})})},e.prototype.play=function(){var t,e=this;!0===this.ready?this.player.play():t=setInterval(function(){!0===e.ready&&(clearInterval(t),e.player.play())},100)},e.prototype.pause=function(){this.player.pause()},e.prototype.stop=function(){var t=this;this.player.setCurrentTime(0).then(function(){t.player.pause(),t.state="stopped"})},e.prototype.replay=function(){var t=this;this.player.setCurrentTime(0).then(function(){t.player.play()})},e.prototype.on=function(t,e){var i,n=this;!0===this.init?s.prototype.on.call(this,t,e):i=setInterval(function(){!0===n.init&&(clearInterval(i),s.prototype.on.call(n,t,e))},100)},i.prototype=new s,a.VideoController.addPlayer("HTML5Video",i.prototype.constructor=i),i.isType=function(t){return!(!t.is("video")||!1!==t.hasClass("video-js")||!1!==t.hasClass("sublime"))},i.prototype._init=function(){var t=this;this.player=this.$video[0],this.ready=!0,this.player.addEventListener("play",function(){!1===t.started&&(t.started=!0,t.trigger({type:"start"})),t.state="playing",t.trigger({type:"play"})}),this.player.addEventListener("pause",function(){t.state="paused",t.trigger({type:"pause"})}),this.player.addEventListener("ended",function(){t.state="ended",t.trigger({type:"ended"})})},i.prototype.play=function(){this.player.play()},i.prototype.pause=function(){this.player.pause()},i.prototype.stop=function(){this.player.currentTime=0,this.player.pause(),this.state="stopped"},i.prototype.replay=function(){this.player.currentTime=0,this.player.play()},o.prototype=new s,a.VideoController.addPlayer("VideoJSVideo",o.prototype.constructor=o),o.isType=function(t){return!(void 0===t.attr("data-videojs-id")&&!t.hasClass("video-js")||"undefined"==typeof videojs)},o.prototype._init=function(){var t=this,e=this.$video.hasClass("video-js")?this.$video.attr("id"):this.$video.attr("data-videojs-id");this.player=videojs(e),this.player.ready(function(){t.ready=!0,t.trigger({type:"ready"}),t.player.on("play",function(){!1===t.started&&(t.started=!0,t.trigger({type:"start"})),t.state="playing",t.trigger({type:"play"})}),t.player.on("pause",function(){t.state="paused",t.trigger({type:"pause"})}),t.player.on("ended",function(){t.state="ended",t.trigger({type:"ended"})})})},o.prototype.play=function(){this.player.play()},o.prototype.pause=function(){this.player.pause()},o.prototype.stop=function(){this.player.currentTime(0),this.player.pause(),this.state="stopped"},o.prototype.replay=function(){this.player.currentTime(0),this.player.play()},r.prototype=new s,a.VideoController.addPlayer("SublimeVideo",r.prototype.constructor=r),r.isType=function(t){return!(!t.hasClass("sublime")||"undefined"==typeof sublime)},r.prototype._init=function(){var t=this;sublime.ready(function(){t.player=sublime.player(t.$video.attr("id")),t.ready=!0,t.trigger({type:"ready"}),t.player.on("play",function(){!1===t.started&&(t.started=!0,t.trigger({type:"start"})),t.state="playing",t.trigger({type:"play"})}),t.player.on("pause",function(){t.state="paused",t.trigger({type:"pause"})}),t.player.on("stop",function(){t.state="stopped",t.trigger({type:"stop"})}),t.player.on("end",function(){t.state="ended",t.trigger({type:"ended"})})})},r.prototype.play=function(){this.player.play()},r.prototype.pause=function(){this.player.pause()},r.prototype.stop=function(){this.player.stop()},r.prototype.replay=function(){this.player.stop(),this.player.play()};h.prototype=new s,a.VideoController.addPlayer("JWPlayerVideo",h.prototype.constructor=h),h.isType=function(t){return!(void 0===t.attr("data-jwplayer-id")&&!t.hasClass("jwplayer")&&0===t.find("object[data*='jwplayer']").length||"undefined"==typeof jwplayer)},h.prototype._init=function(){var t,e=this;this.$video.hasClass("jwplayer")?t=this.$video.attr("id"):void 0!==this.$video.attr("data-jwplayer-id")?t=this.$video.attr("data-jwplayer-id"):0!==this.$video.find("object[data*='jwplayer']").length&&(t=this.$video.find("object").attr("id")),this.player=jwplayer(t),this.player.onReady(function(){e.ready=!0,e.trigger({type:"ready"}),e.player.onPlay(function(){!1===e.started&&(e.started=!0,e.trigger({type:"start"})),e.state="playing",e.trigger({type:"play"})}),e.player.onPause(function(){e.state="paused",e.trigger({type:"pause"})}),e.player.onComplete(function(){e.state="ended",e.trigger({type:"ended"})})})},h.prototype.play=function(){this.player.play(!0)},h.prototype.pause=function(){this.player.pause(!0)},h.prototype.stop=function(){this.player.stop(),this.state="stopped"},h.prototype.replay=function(){this.player.seek(0),this.player.play(!0)}}(jQuery),function(t){"use strict";var e=t.GridAccordion.namespace,i={cssTransitions:null,cssTransitionEndEvents:"transitionend webkitTransitionEnd oTransitionEnd msTransitionEnd",checkCSSTransitions:function(){var t;return null===this.cssTransitions&&(void 0!==(t=(document.body||document.documentElement).style).transition||void 0!==t.WebkitTransition||void 0!==t.MozTransition||void 0!==t.OTransition?this.cssTransitions=!0:this.cssTransitions=!1),this.cssTransitions}};
7t.GridAccordion.addModule("SwapBackground",{initSwapBackground:function(){var n=this;this.on("panelOpen.SwapBackground."+e,function(t){var e=n.getPanelAt(t.index),i=e.$panel.find(".ga-background"),e=e.$panel.find(".ga-background-opened");0!==e.length&&(e.css({visibility:"visible",opacity:0}),n._fadeInBackground(e),0!==i.length)&&!0===n.settings.fadeOutBackground&&n._fadeOutBackground(i),-1!==t.previousIndex&&t.index!==t.previousIndex&&(i=(e=n.getPanelAt(t.previousIndex)).$panel.find(".ga-background"),0!==(t=e.$panel.find(".ga-background-opened")).length)&&(n._fadeOutBackground(t),0!==i.length)&&!0===n.settings.fadeOutBackground&&n._fadeInBackground(i)}),this.on("panelsClose.SwapBackground."+e,function(t){var e;-1!==t.previousIndex&&(e=(t=n.getPanelAt(t.previousIndex)).$panel.find(".ga-background"),0!==(t=t.$panel.find(".ga-background-opened")).length)&&(n._fadeOutBackground(t),0!==e.length)&&!0===n.settings.fadeOutBackground&&n._fadeInBackground(e)})},_fadeInBackground:function(e){var t=this.settings.swapBackgroundDuration;e.css({visibility:"visible"}),!0===i.checkCSSTransitions()?(e.off(i.cssTransitionEndEvents).on(i.cssTransitionEndEvents,function(t){t.target===t.currentTarget&&(e.off(i.cssTransitionEndEvents),e.css({transition:""}))}),setTimeout(function(){e.css({opacity:1,transition:"all "+t/1e3+"s"})},100)):e.stop().animate({opacity:1},t)},_fadeOutBackground:function(e){var t=this.settings.swapBackgroundDuration;!0===i.checkCSSTransitions()?(e.off(i.cssTransitionEndEvents).on(i.cssTransitionEndEvents,function(t){t.target===t.currentTarget&&(e.off(i.cssTransitionEndEvents),e.css({visibility:"hidden",transition:""}))}),setTimeout(function(){e.css({opacity:0,transition:"all "+t/1e3+"s"})},100)):e.stop().animate({opacity:0}
7,t,function(){e.css({visibility:"hidden"})})},destroySwapBackground:function(){this.off("panelOpen.SwapBackground."+e),this.off("panelsClose.SwapBackground."+e)},swapBackgroundDefaults:{swapBackgroundDuration:700,fadeOutBackground:!1}},"accordion")}((window,jQuery)),function(n){"use strict";var t=n.GridAccordion.namespace;n.GridAccordion.addModule("TouchSwipe",{touchStartPoint:{x:0,y:0},touchEndPoint:{x:0,y:0},touchDistance:{x:0,y:0},touchStartPosition:0,isTouchMoving:!1,touchSwipeEvents:{startEvent:"",moveEvent:"",endEvent:""},previousStartEvent:"",initTouchSwipe:function(){var e=this;!1!==this.settings.touchSwipe&&(this.touchSwipeEvents.startEvent="touchstart."+t+" mousedown."+t,this.touchSwipeEvents.moveEvent="touchmove."+t+" mousemove."+t,this.touchSwipeEvents.endEvent="touchend."+this.uniqueId+"."+t+" mouseup."+this.uniqueId+"."+t,this.$panelsContainer.on(this.touchSwipeEvents.startEvent,n.proxy(this._onTouchStart,this)),this.$panelsContainer.on("dragstart."+t,function(t){t.preventDefault()}),this.$panelsContainer.find("a").on("click."+t,function(t){e.$accordion.hasClass("ga-swiping")&&t.preventDefault()}),this.$panelsContainer.find("a").on("touchstart."+t,function(t){!1===n(this).parents(".ga-panel").hasClass("ga-opened")&&t.preventDefault()}),this.on("update.TouchSwipe."+t,function(){1<e.getTotalPages()?e.$panelsContainer.addClass("ga-grab"):e.$panelsContainer.removeClass("ga-grab")}))},_onTouchStart:function(t){var e;"mousedown"===t.type&&"touchstart"===this.previousStartEvent?this.previousStartEvent=t.type:(this.previousStartEvent=t.type,e=void 0!==t.originalEvent.touches?t.originalEvent.touches[0]:t.originalEvent,1<=n(t.target).closest(".ga-selectable").length||void 0===t.originalEvent.touches&&1===this.getTotalPages()||(this.touchStartPoint.x=e.pageX||e.clientX,this.touchStartPoint.y=e.pageY||e.clientY,this.touchStartPosition=parseInt(this.$panelsContainer.css(this.positionProperty),10),this.touchDistance.x=this.touchDistance.y=0,this.$panelsContainer.on(this.touchSwipeEvents.moveEvent,n.proxy(this._onTouchMove,this)),n(document).on(this.touchSwipeEvents.endEvent,n.proxy(this._onTouchEnd,this)),this.$panelsContainer.removeClass("ga-grab").addClass("ga-grabbing")))},_onTouchMove:function(t){var e=void 0!==t.originalEvent.touches?t.originalEvent.touches[0]:t.originalEvent,e=(!(this.isTouchMoving=!0)===this.$accordion.hasClass("ga-swiping")&&this.$accordion.addClass("ga-swiping"),this.touchEndPoint.x=e.pageX||e.clientX,this.touchEndPoint.y=e.pageY||e.clientY,this.touchDistance.x=this.touchEndPoint.x-this.touchStartPoint.x,this.touchDistance.y=this.touchEndPoint.y-this.touchStartPoint.y,"horizontal"===this.settings.orientation?this.touchDistance.x:this.touchDistance.y),i="horizontal"===this.settings.orientation?this.touchDistance.y:this.touchDistance.x;Math.abs(e)>Math.abs(i)&&(t.preventDefault(),i=parseInt(this.$panelsContainer.css(this.positionProperty),10),t="horizontal"===this.settings.orientation?-this.totalPanelsSize+this.totalWidth:-this.totalPanelsSize+this.totalHeight,(0<=i&&0===this.currentPage||i<=t&&this.currentPage===this.getTotalPages()-1)&&(e*=.2),this.$panelsContainer.css(this.positionProperty,this.touchStartPosition+e))},_onTouchEnd:function(t){var e,i=this,t=(this.$panelsContainer.off(this.touchSwipeEvents.moveEvent),n(document).off(this.touchSwipeEvents.endEvent),this.$panelsContainer.removeClass("ga-grabbing").addClass("ga-grab"),(!1===this.isTouchMoving||!0===this.isTouchMoving&&Math.abs(this.touchDistance.x)<10&&Math.abs(this.touchDistance.y)<10)&&(e=n(t.target).parents(".ga-panel").index(),void 0!==t.originalEvent.touches)&&e!==this.currentIndex&&-1!==e&&this.openPanel(e),this.$accordion.hasClass("ga-swiping")&&setTimeout(function(){i.$accordion.removeClass("ga-swiping")},100),!1===this.isTouchMoving&&this.$accordion.removeClass("ga-swiping"),this.isTouchMoving=!1,{});t[this.positionProperty]=this.touchStartPosition,"horizontal"===this.settings.orientation?this.touchDistance.x>this.settings.touchSwipeThreshold?0<this.currentPage?this.previousPage():this.$panelsContainer.stop().animate(t,300):-this.touchDistance.x>
7this.settings.touchSwipeThreshold?this.currentPage<this.getTotalPages()-1?this.nextPage():this.gotoPage(this.currentPage):Math.abs(this.touchDistance.x)<this.settings.touchSwipeThreshold&&this.$panelsContainer.stop().animate(t,300):"vertical"===this.settings.orientation&&(this.touchDistance.y>this.settings.touchSwipeThreshold?0<this.currentPage?this.previousPage():this.$panelsContainer.stop().animate(t,300):-this.touchDistance.y>this.settings.touchSwipeThreshold?this.currentPage<this.getTotalPages()-1?this.nextPage():this.$panelsContainer.animate(t,300):Math.abs(this.touchDistance.y)<this.settings.touchSwipeThreshold&&this.$panelsContainer.stop().animate(t,300))},destroyTouchSwipe:function(){this.$panelsContainer.off("dragstart."+t),this.$panelsContainer.find("a").off("click."+t),this.$panelsContainer.find("a").off("touchstart."+t),this.$panelsContainer.off(this.touchSwipeEvents.startEvent),this.$panelsContainer.off(this.touchSwipeEvents.moveEvent),n(document).off(this.touchSwipeEvents.endEvent),this.off("update.TouchSwipe."+t),this.$panelsContainer.removeClass("ga-grab")},touchSwipeDefaults:{touchSwipe:!0,touchSwipeThreshold:50}},"accordion")}((window,jQuery)),function(t,g){"use strict";var n=g.GridAccordion.namespace,t=t.navigator.userAgent.toLowerCase(),s=(/(msie) ([\w.]+)/.exec(t)||[])[1];g.GridAccordion.addModule("XML",{XMLDataAttributesMap:{width:"data-width",height:"data-height",depth:"data-depth",position:"data-position",horizontal:"data-horizontal",vertical:"data-vertical",showTransition:"data-show-transition",showOffset:"data-show-offset",showDelay:"data-show-delay",showDuration:"data-show-duration",showEasing:"data-show-easing",hideTransition:"data-hide-transition",hideOffset:"data-",hideDelay:"data-hide-delay",hideDuration:"data-hide-duration",hideEasing:"data-hide-easing"},initXML:function(){null!==this.settings.XMLSource&&this.updateXML()},updateXML:function(){var u=this;this.removePanels(),this.$panelsContainer.empty(),this.off("XMLReady."+n),this.on("XMLReady."+n,function(t){var t=g(t.xmlData),p=t.find("accordion")[0].attributes.lazyLoading;void 0!==p&&(p=p.nodeValue),t.find("panel").each(function(){var i,n,s,a,t=g(this),e=t.find("background"),o=t.find("backgroundRetina"),r=t.find("backgroundLink"),h=t.find("backgroundOpened"),d=t.find("backgroundOpenedRetina"),l=t.find("backgroundOpenedLink"),t=t.find("layer"),c=g('
7<div class="ga-panel"></div>').appendTo(u.$panelsContainer);1<=r.length&&(i=g('<a href="'+r.text()+'"></a>'),g.each(r[0].attributes,function(t,e){i.attr(e.nodeName,e.nodeValue)}),i.appendTo(c)),1<=e.length&&(s=g('<img class="ga-background"/>'),void 0!==p?s.attr({src:p,"data-src":e.text()}):s.attr({src:e.text()}),1<=o.length&&s.attr({"data-retina":o.text()}),g.each(e[0].attributes,function(t,e){s.attr(e.nodeName,e.nodeValue)}),s.appendTo(r.length?i:c)),1<=l.length&&(n=g('<a href="'+l.text()+'"></a>'),g.each(l[0].attributes,function(t,e){n.attr(e.nodeName,e.nodeValue)}),n.appendTo(c)),1<=h.length&&(a=g('<img class="ga-background-opened"/>'),void 0!==p?a.attr({src:p,"data-src":h.text()}):a.attr({src:h.text()}),1<=d.length&&a.attr({"data-retina":d.text()}),g.each(h[0].attributes,function(t,e){a.attr(e.nodeName,e.nodeValue)}),a.appendTo(l.length?n:c)),1<=t.length&&g.each(t,function(){var t,e=g(this),n="",s="",i=c,a=(g.each(e[0].attributes,function(t,e){var i;"style"===e.nodeName?(i=e.nodeValue.split(" "),g.each(i,function(t,e){n+=" ga-"+e})):s+=" "+u.XMLDataAttributesMap[e.nodeName]+'="'+e.nodeValue+'"'}),g('<div class="ga-layer'+n+'"'+s+'"></div>'));1<=e.find("layer").length?(t=(new Date).valueOf(),e.attr("parentID",t),a.attr("class",a.attr("class")+" "+t)):a.html(e.text()),e.parent().is("layer")&&(i=c.find("."+e.parent().attr("parentID"))),a.appendTo(i)})}),u.update()}),this._loadXML()},_loadXML:function(){var t,i=this;".xml"===this.settings.XMLSource.slice(-4)?g.ajax({type:"GET",url:this.settings.XMLSource,dataType:"msie"===s?"text":"xml",success:function(t){var e;"msie"===s?((e=new ActiveXObject("Microsoft.XMLDOM")).async=!1,e.loadXML(t)):e=t,i.trigger({type:"XMLReady."+n,xmlData:e})}}):(t=g.parseXML(this.settings.XMLSource),i.trigger({type:"XMLReady."+n,xmlData:t}))},destroyXML:function(){this.off("XMLReady."+n)},XMLDefaults:{XMLSource:null}},"accordion")}(window,jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.