{"version":3,"sources":["masterslider.min.js","jquery.mmenu.min.all.js","scripts.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACvHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"scripts.js","sourcesContent":["/*! \r\n * Master Slider – Responsive Touch Swipe Slider\r\n * Copyright © 2016 All Rights Reserved. \r\n *\r\n * @author Averta [www.averta.net]\r\n * @version 2.50.0\r\n * @date Aug 2016\r\n */\r\nwindow.averta={},function($){function getVendorPrefix(){if(\"result\"in arguments.callee)return arguments.callee.result;var regex=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,someScript=document.getElementsByTagName(\"script\")[0];for(var prop in someScript.style)if(regex.test(prop))return arguments.callee.result=prop.match(regex)[0];return arguments.callee.result=\"WebkitOpacity\"in someScript.style?\"Webkit\":\"KhtmlOpacity\"in someScript.style?\"Khtml\":\"\"}function checkStyleValue(prop){var b=document.body||document.documentElement,s=b.style,p=prop;if(\"string\"==typeof s[p])return!0;v=[\"Moz\",\"Webkit\",\"Khtml\",\"O\",\"ms\"],p=p.charAt(0).toUpperCase()+p.substr(1);for(var i=0;i<v.length;i++)if(\"string\"==typeof s[v[i]+p])return!0;return!1}function supportsTransitions(){return checkStyleValue(\"transition\")}function supportsTransforms(){return checkStyleValue(\"transform\")}function supports3DTransforms(){if(!supportsTransforms())return!1;var has3d,el=document.createElement(\"i\"),transforms={WebkitTransform:\"-webkit-transform\",OTransform:\"-o-transform\",MSTransform:\"-ms-transform\",msTransform:\"-ms-transform\",MozTransform:\"-moz-transform\",Transform:\"transform\",transform:\"transform\"};el.style.display=\"block\",document.body.insertBefore(el,null);for(var t in transforms)void 0!==el.style[t]&&(el.style[t]=\"translate3d(1px,1px,1px)\",has3d=window.getComputedStyle(el).getPropertyValue(transforms[t]));return document.body.removeChild(el),null!=has3d&&has3d.length>0&&\"none\"!==has3d}window[\"package\"]=function(name){window[name]||(window[name]={})};var extend=function(target,object){for(var key in object)target[key]=object[key]};Function.prototype.extend=function(superclass){\"function\"==typeof superclass.prototype.constructor?(extend(this.prototype,superclass.prototype),this.prototype.constructor=this):(this.prototype.extend(superclass),this.prototype.constructor=this)};var trans={Moz:\"-moz-\",Webkit:\"-webkit-\",Khtml:\"-khtml-\",O:\"-o-\",ms:\"-ms-\",Icab:\"-icab-\"};window._mobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),window._touch=\"ontouchstart\"in document,$(document).ready(function(){window._jcsspfx=getVendorPrefix(),window._csspfx=trans[window._jcsspfx],window._cssanim=supportsTransitions(),window._css3d=supports3DTransforms(),window._css2d=supportsTransforms()}),window.parseQueryString=function(url){var queryString={};return url.replace(new RegExp(\"([^?=&]+)(=([^&]*))?\",\"g\"),function($0,$1,$2,$3){queryString[$1]=$3}),queryString};var fps60=50/3;if(window.requestAnimationFrame||(window.requestAnimationFrame=function(){return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){window.setTimeout(callback,fps60)}}()),window.getComputedStyle||(window.getComputedStyle=function(el){return this.el=el,this.getPropertyValue=function(prop){var re=/(\\-([a-z]){1})/g;return\"float\"==prop&&(prop=\"styleFloat\"),re.test(prop)&&(prop=prop.replace(re,function(){return arguments[2].toUpperCase()})),el.currentStyle[prop]?el.currentStyle[prop]:null},el.currentStyle}),Array.prototype.indexOf||(Array.prototype.indexOf=function(elt){var len=this.length>>>0,from=Number(arguments[1])||0;for(from=0>from?Math.ceil(from):Math.floor(from),0>from&&(from+=len);len>from;from++)if(from in this&&this[from]===elt)return from;return-1}),window.isMSIE=function(version){if(!$.browser.msie)return!1;if(!version)return!0;var ieVer=$.browser.version.slice(0,$.browser.version.indexOf(\".\"));return\"string\"==typeof version?eval(-1!==version.indexOf(\"<\")||-1!==version.indexOf(\">\")?ieVer+version:version+\"==\"+ieVer):version==ieVer},$.removeDataAttrs=function($target,exclude){var i,attrName,dataAttrsToDelete=[],dataAttrs=$target[0].attributes,dataAttrsLen=dataAttrs.length;for(exclude=exclude||[],i=0;dataAttrsLen>i;i++)attrName=dataAttrs[i].name,\"data-\"===attrName.substring(0,5)&&-1===exclude.indexOf(attrName)&&dataAttrsToDelete.push(dataAttrs[i].name);$.each(dataAttrsToDelete,function(index,attrName){$target.removeAttr(attrName)})},jQuery){$.jqLoadFix=function(){if(this.complete){var that=this;setTimeout(function(){$(that).load()},1)}},jQuery.uaMatch=jQuery.uaMatch||function(ua){ua=ua.toLowerCase();var match=/(chrome)[ \\/]([\\w.]+)/.exec(ua)||/(webkit)[ \\/]([\\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \\/]([\\w.]+)/.exec(ua)||/(msie) ([\\w.]+)/.exec(ua)||ua.indexOf(\"compatible\")<0&&/(mozilla)(?:.*? rv:([\\w.]+)|)/.exec(ua)||[];return{browser:match[1]||\"\",version:match[2]||\"0\"}},matched=jQuery.uaMatch(navigator.userAgent),browser={},matched.browser&&(browser[matched.browser]=!0,browser.version=matched.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0);var isIE11=!!navigator.userAgent.match(/Trident\\/7\\./);isIE11&&(browser.msie=\"true\",delete browser.mozilla),jQuery.browser=browser,$.fn.preloadImg=function(src,_event){return this.each(function(){var $this=$(this),self=this,img=new Image;img.onload=function(event){null==event&&(event={}),$this.attr(\"src\",src),event.width=img.width,event.height=img.height,$this.data(\"width\",img.width),$this.data(\"height\",img.height),setTimeout(function(){_event.call(self,event)},50),img=null},img.src=src}),this}}}(jQuery),function(){\"use strict\";averta.EventDispatcher=function(){this.listeners={}},averta.EventDispatcher.extend=function(_proto){var instance=new averta.EventDispatcher;for(var key in instance)\"constructor\"!=key&&(_proto[key]=averta.EventDispatcher.prototype[key])},averta.EventDispatcher.prototype={constructor:averta.EventDispatcher,addEventListener:function(event,listener,ref){this.listeners[event]||(this.listeners[event]=[]),this.listeners[event].push({listener:listener,ref:ref})},removeEventListener:function(event,listener,ref){if(this.listeners[event]){for(var i=0;i<this.listeners[event].length;++i)listener===this.listeners[event][i].listener&&ref===this.listeners[event][i].ref&&this.listeners[event].splice(i--,1);0===this.listeners[event].length&&(this.listeners[event]=null)}},dispatchEvent:function(event){if(event.target=this,this.listeners[event.type])for(var i=0,l=this.listeners[event.type].length;l>i;++i)this.listeners[event.type][i].listener.call(this.listeners[event.type][i].ref,event)}}}(),function($){\"use strict\";var isTouch=\"ontouchstart\"in document,isPointer=window.navigator.pointerEnabled,isMSPoiner=!isPointer&&window.navigator.msPointerEnabled,usePointer=isPointer||isMSPoiner,ev_start=(isPointer?\"pointerdown \":\"\")+(isMSPoiner?\"MSPointerDown \":\"\")+(isTouch?\"touchstart \":\"\")+\"mousedown\",ev_move=(isPointer?\"pointermove \":\"\")+(isMSPoiner?\"MSPointerMove \":\"\")+(isTouch?\"touchmove \":\"\")+\"mousemove\",ev_end=(isPointer?\"pointerup \":\"\")+(isMSPoiner?\"MSPointerUp \":\"\")+(isTouch?\"touchend \":\"\")+\"mouseup\",ev_cancel=(isPointer?\"pointercancel \":\"\")+(isMSPoiner?\"MSPointerCancel \":\"\")+\"touchcancel\";averta.TouchSwipe=function($element){this.$element=$element,this.enabled=!0,$element.bind(ev_start,{target:this},this.__touchStart),$element[0].swipe=this,this.onSwipe=null,this.swipeType=\"horizontal\",this.noSwipeSelector=\"input, textarea, button, .no-swipe, .ms-no-swipe\",this.lastStatus={}};var p=averta.TouchSwipe.prototype;p.getDirection=function(new_x,new_y){switch(this.swipeType){case\"horizontal\":return new_x<=this.start_x?\"left\":\"right\";case\"vertical\":return new_y<=this.start_y?\"up\":\"down\";case\"all\":return Math.abs(new_x-this.start_x)>Math.abs(new_y-this.start_y)?new_x<=this.start_x?\"left\":\"right\":new_y<=this.start_y?\"up\":\"down\"}},p.priventDefultEvent=function(new_x,new_y){var dx=Math.abs(new_x-this.start_x),dy=Math.abs(new_y-this.start_y),horiz=dx>dy;return\"horizontal\"===this.swipeType&&horiz||\"vertical\"===this.swipeType&&!horiz},p.createStatusObject=function(evt){var temp_x,temp_y,status_data={};return temp_x=this.lastStatus.distanceX||0,temp_y=this.lastStatus.distanceY||0,status_data.distanceX=evt.pageX-this.start_x,status_data.distanceY=evt.pageY-this.start_y,status_data.moveX=status_data.distanceX-temp_x,status_data.moveY=status_data.distanceY-temp_y,status_data.distance=parseInt(Math.sqrt(Math.pow(status_data.distanceX,2)+Math.pow(status_data.distanceY,2))),status_data.duration=(new Date).getTime()-this.start_time,status_data.direction=this.getDirection(evt.pageX,evt.pageY),status_data},p.__reset=function(event,jqevt){this.reset=!1,this.lastStatus={},this.start_time=(new Date).getTime();var point=this.__getPoint(event,jqevt);this.start_x=point.pageX,this.start_y=point.pageY},p.__touchStart=function(event){var swipe=event.data.target,jqevt=event;if(swipe.enabled&&!($(event.target).closest(swipe.noSwipeSelector,swipe.$element).length>0)){if(event=event.originalEvent,usePointer&&$(this).css(\"-ms-touch-action\",\"horizontal\"===swipe.swipeType?\"pan-y\":\"pan-x\"),!swipe.onSwipe)return void $.error(\"Swipe listener is undefined\");if(!(swipe.touchStarted||isTouch&&swipe.start_time&&\"mousedown\"===event.type&&(new Date).getTime()-swipe.start_time<600)){var point=swipe.__getPoint(event,jqevt);swipe.start_x=point.pageX,swipe.start_y=point.pageY,swipe.start_time=(new Date).getTime(),$(document).bind(ev_end,{target:swipe},swipe.__touchEnd).bind(ev_move,{target:swipe},swipe.__touchMove).bind(ev_cancel,{target:swipe},swipe.__touchCancel);var status=swipe.createStatusObject(point);status.phase=\"start\",swipe.onSwipe.call(null,status),isTouch||jqevt.preventDefault(),swipe.lastStatus=status,swipe.touchStarted=!0}}},p.__touchMove=function(event){var swipe=event.data.target,jqevt=event;if(event=event.originalEvent,swipe.touchStarted){clearTimeout(swipe.timo),swipe.timo=setTimeout(function(){swipe.__reset(event,jqevt)},60);var point=swipe.__getPoint(event,jqevt),status=swipe.createStatusObject(point);swipe.priventDefultEvent(point.pageX,point.pageY)&&jqevt.preventDefault(),status.phase=\"move\",swipe.lastStatus=status,swipe.onSwipe.call(null,status)}},p.__touchEnd=function(event){var swipe=event.data.target,jqevt=event;event=event.originalEvent,clearTimeout(swipe.timo);var status=swipe.lastStatus;isTouch||jqevt.preventDefault(),status.phase=\"end\",swipe.touchStarted=!1,swipe.priventEvt=null,$(document).unbind(ev_end,swipe.__touchEnd).unbind(ev_move,swipe.__touchMove).unbind(ev_cancel,swipe.__touchCancel),status.speed=status.distance/status.duration,swipe.onSwipe.call(null,status)},p.__touchCancel=function(event){var swipe=event.data.target;swipe.__touchEnd(event)},p.__getPoint=function(event,jqEvent){return isTouch&&-1===event.type.indexOf(\"mouse\")?event.touches[0]:usePointer?event:jqEvent},p.enable=function(){this.enabled||(this.enabled=!0)},p.disable=function(){this.enabled&&(this.enabled=!1)}}(jQuery),function(){\"use strict\";averta.Ticker=function(){};var st=averta.Ticker,list=[],len=0,__stopped=!0;st.add=function(listener,ref){return list.push([listener,ref]),1===list.length&&st.start(),len=list.length},st.remove=function(listener,ref){for(var i=0,l=list.length;l>i;++i)list[i]&&list[i][0]===listener&&list[i][1]===ref&&list.splice(i,1);len=list.length,0===len&&st.stop()},st.start=function(){__stopped&&(__stopped=!1,__tick())},st.stop=function(){__stopped=!0};var __tick=function(){if(!st.__stopped){for(var item,i=0;i!==len;i++)item=list[i],item[0].call(item[1]);requestAnimationFrame(__tick)}}}(),function(){\"use strict\";Date.now||(Date.now=function(){return(new Date).getTime()}),averta.Timer=function(delay,autoStart){this.delay=delay,this.currentCount=0,this.paused=!1,this.onTimer=null,this.refrence=null,autoStart&&this.start()},averta.Timer.prototype={constructor:averta.Timer,start:function(){this.paused=!1,this.lastTime=Date.now(),averta.Ticker.add(this.update,this)},stop:function(){this.paused=!0,averta.Ticker.remove(this.update,this)},reset:function(){this.currentCount=0,this.paused=!0,this.lastTime=Date.now()},update:function(){this.paused||Date.now()-this.lastTime<this.delay||(this.currentCount++,this.lastTime=Date.now(),this.onTimer&&this.onTimer.call(this.refrence,this.getTime()))},getTime:function(){return this.delay*this.currentCount}}}(),function(){\"use strict\";window.CSSTween=function(element,duration,delay,ease){this.$element=element,this.duration=duration||1e3,this.delay=delay||0,this.ease=ease||\"linear\"};var p=CSSTween.prototype;p.to=function(callback,target){return this.to_cb=callback,this.to_cb_target=target,this},p.from=function(callback,target){return this.fr_cb=callback,this.fr_cb_target=target,this},p.onComplete=function(callback,target){return this.oc_fb=callback,this.oc_fb_target=target,this},p.chain=function(csstween){return this.chained_tween=csstween,this},p.reset=function(){clearTimeout(this.start_to),clearTimeout(this.end_to)},p.start=function(){var element=this.$element[0];clearTimeout(this.start_to),clearTimeout(this.end_to),this.fresh=!0,this.fr_cb&&(element.style[window._jcsspfx+\"TransitionDuration\"]=\"0ms\",this.fr_cb.call(this.fr_cb_target));var that=this;return this.onTransComplete=function(){that.fresh&&(that.reset(),element.style[window._jcsspfx+\"TransitionDuration\"]=\"\",element.style[window._jcsspfx+\"TransitionProperty\"]=\"\",element.style[window._jcsspfx+\"TransitionTimingFunction\"]=\"\",element.style[window._jcsspfx+\"TransitionDelay\"]=\"\",that.fresh=!1,that.chained_tween&&that.chained_tween.start(),that.oc_fb&&that.oc_fb.call(that.oc_fb_target))},this.start_to=setTimeout(function(){that.$element&&(element.style[window._jcsspfx+\"TransitionDuration\"]=that.duration+\"ms\",element.style[window._jcsspfx+\"TransitionProperty\"]=that.transProperty||\"all\",element.style[window._jcsspfx+\"TransitionDelay\"]=that.delay>0?that.delay+\"ms\":\"\",element.style[window._jcsspfx+\"TransitionTimingFunction\"]=that.ease,that.to_cb&&that.to_cb.call(that.to_cb_target),that.end_to=setTimeout(function(){that.onTransComplete()},that.duration+(that.delay||0)))},1),this}}(),function(){\"use strict\";function transPos(element,properties){if(void 0!==properties.x||void 0!==properties.y)if(_cssanim){var trans=window._jcsspfx+\"Transform\";void 0!==properties.x&&(properties[trans]=(properties[trans]||\"\")+\" translateX(\"+properties.x+\"px)\",delete properties.x),void 0!==properties.y&&(properties[trans]=(properties[trans]||\"\")+\" translateY(\"+properties.y+\"px)\",delete properties.y)}else{if(void 0!==properties.x){var posx=\"auto\"!==element.css(\"right\")?\"right\":\"left\";properties[posx]=properties.x+\"px\",delete properties.x}if(void 0!==properties.y){var posy=\"auto\"!==element.css(\"bottom\")?\"bottom\":\"top\";properties[posy]=properties.y+\"px\",delete properties.y}}return properties}var _cssanim=null;window.CTween={},CTween.setPos=function(element,pos){element.css(transPos(element,pos))},CTween.animate=function(element,duration,properties,options){if(null==_cssanim&&(_cssanim=window._cssanim),options=options||{},transPos(element,properties),_cssanim){var tween=new CSSTween(element,duration,options.delay,EaseDic[options.ease]);return options.transProperty&&(tween.transProperty=options.transProperty),tween.to(function(){element.css(properties)}),options.complete&&tween.onComplete(options.complete,options.target),tween.start(),tween.stop=tween.reset,tween}var onCl;return options.delay&&element.delay(options.delay),options.complete&&(onCl=function(){options.complete.call(options.target)}),element.stop(!0).animate(properties,duration,options.ease||\"linear\",onCl),element},CTween.fadeOut=function(target,duration,remove){var options={};remove===!0?options.complete=function(){target.remove()}:2===remove&&(options.complete=function(){target.css(\"display\",\"none\")}),CTween.animate(target,duration||1e3,{opacity:0},options)},CTween.fadeIn=function(target,duration,reset){reset!==!1&&target.css(\"opacity\",0).css(\"display\",\"\"),CTween.animate(target,duration||1e3,{opacity:1})}}(),function(){window.EaseDic={linear:\"linear\",ease:\"ease\",easeIn:\"ease-in\",easeOut:\"ease-out\",easeInOut:\"ease-in-out\",easeInCubic:\"cubic-bezier(.55,.055,.675,.19)\",easeOutCubic:\"cubic-bezier(.215,.61,.355,1)\",easeInOutCubic:\"cubic-bezier(.645,.045,.355,1)\",easeInCirc:\"cubic-bezier(.6,.04,.98,.335)\",easeOutCirc:\"cubic-bezier(.075,.82,.165,1)\",easeInOutCirc:\"cubic-bezier(.785,.135,.15,.86)\",easeInExpo:\"cubic-bezier(.95,.05,.795,.035)\",easeOutExpo:\"cubic-bezier(.19,1,.22,1)\",easeInOutExpo:\"cubic-bezier(1,0,0,1)\",easeInQuad:\"cubic-bezier(.55,.085,.68,.53)\",easeOutQuad:\"cubic-bezier(.25,.46,.45,.94)\",easeInOutQuad:\"cubic-bezier(.455,.03,.515,.955)\",easeInQuart:\"cubic-bezier(.895,.03,.685,.22)\",easeOutQuart:\"cubic-bezier(.165,.84,.44,1)\",easeInOutQuart:\"cubic-bezier(.77,0,.175,1)\",easeInQuint:\"cubic-bezier(.755,.05,.855,.06)\",easeOutQuint:\"cubic-bezier(.23,1,.32,1)\",easeInOutQuint:\"cubic-bezier(.86,0,.07,1)\",easeInSine:\"cubic-bezier(.47,0,.745,.715)\",easeOutSine:\"cubic-bezier(.39,.575,.565,1)\",easeInOutSine:\"cubic-bezier(.445,.05,.55,.95)\",easeInBack:\"cubic-bezier(.6,-.28,.735,.045)\",easeOutBack:\"cubic-bezier(.175, .885,.32,1.275)\",easeInOutBack:\"cubic-bezier(.68,-.55,.265,1.55)\"}}(),function(){\"use strict\";window.MSAligner=function(type,$container,$img){this.$container=$container,this.$img=$img,this.type=type||\"stretch\",this.widthOnly=!1,this.heightOnly=!1};var p=MSAligner.prototype;p.init=function(w,h){switch(this.baseWidth=w,this.baseHeight=h,this.imgRatio=w/h,this.imgRatio2=h/w,this.type){case\"tile\":this.$container.css(\"background-image\",\"url(\"+this.$img.attr(\"src\")+\")\"),this.$img.remove();break;case\"center\":this.$container.css(\"background-image\",\"url(\"+this.$img.attr(\"src\")+\")\"),this.$container.css({backgroundPosition:\"center center\",backgroundRepeat:\"no-repeat\"}),this.$img.remove();break;case\"stretch\":this.$img.css({width:\"100%\",height:\"100%\"});break;case\"fill\":case\"fit\":this.needAlign=!0,this.align()}},p.align=function(){if(this.needAlign){var cont_w=this.$container.width(),cont_h=this.$container.height(),contRatio=cont_w/cont_h;\"fill\"==this.type?this.imgRatio<contRatio?(this.$img.width(cont_w),this.$img.height(cont_w*this.imgRatio2)):(this.$img.height(cont_h),this.$img.width(cont_h*this.imgRatio)):\"fit\"==this.type&&(this.imgRatio<contRatio?(this.$img.height(cont_h),this.$img.width(cont_h*this.imgRatio)):(this.$img.width(cont_w),this.$img.height(cont_w*this.imgRatio2))),this.setMargin()}},p.setMargin=function(){var cont_w=this.$container.width(),cont_h=this.$container.height();this.$img.css(\"margin-top\",(cont_h-this.$img[0].offsetHeight)/2+\"px\"),this.$img.css(\"margin-left\",(cont_w-this.$img[0].offsetWidth)/2+\"px\")}}(),/**\r\n * CSS pointer-events polyfill\r\n * Adds support for `pointer-events: none;` for browsers not supporting this property\r\n * Requires jQuery@~1.9\r\n *\r\n * @copyright Sebastian Langer 2016\r\n * @license MIT\r\n * @author Sebastian Langer <sl@scn.cx>\r\n */\r\nfunction($){var Polyfill=function(userOptions){this.options=$.extend({},Polyfill.defaultOptions,userOptions),this.isEnabled=!1,(this.options.forcePolyfill||!this.supportsPointerEvents())&&(this.registerEvents(),this.isEnabled=!0)};Polyfill.defaultOptions={forcePolyfill:!1,selector:\"*\",listenOn:[\"click\",\"dblclick\",\"mousedown\",\"mouseup\"],pointerEventsNoneClass:null,pointerEventsAllClass:null,eventNamespace:\"pointer-events-polyfill\"},Polyfill.prototype.registerEvents=function(){$(document).on(this.getEventNames(),this.options.selector,$.proxy(this.onElementClick,this))},Polyfill.prototype.getEventNames=function(){var eventNamespace=this.options.eventNamespace?\".\"+this.options.eventNamespace:\"\";return this.options.listenOn.join(eventNamespace+\" \")+eventNamespace},Polyfill.prototype.supportsPointerEvents=function(){var style=document.createElement(\"a\").style;return style.cssText=\"pointer-events:auto\",\"auto\"===style.pointerEvents},Polyfill.prototype.isClickThrough=function($el){var elPointerEventsCss=$el.css(\"pointer-events\");return 0===$el.length||\"all\"===elPointerEventsCss||$el.is(\":root\")||$el.hasClass(this.options.pointerEventsAllClass)?!1:\"none\"===elPointerEventsCss||$el.hasClass(this.options.pointerEventsNoneClass)||this.isClickThrough($el.parent())?!0:!1},Polyfill.prototype.onElementClick=function(e){var $elOrg=$(e.target);if(!this.isClickThrough($elOrg))return!0;$elOrg.hide();var elBelow=document.elementFromPoint(e.clientX,e.clientY);return e.target=elBelow,$(elBelow).trigger(e),\"A\"===elBelow.tagName&&(2===e.which?window.open(elBelow.getAttribute(\"href\"),\"_blank\"):elBelow.click()),$elOrg.show(),!1},Polyfill.prototype.destroy=function(){$(document).off(this.getEventNames()),this.isEnabled=!1},window.pointerEventsPolyfill=function(userOptions){return new Polyfill(userOptions)}}(jQuery),function(){\"use strict\";var _options={bouncing:!0,snapping:!1,snapsize:null,friction:.05,outFriction:.05,outAcceleration:.09,minValidDist:.3,snappingMinSpeed:2,paging:!1,endless:!1,maxSpeed:160},Controller=function(min,max,options){if(null===max||null===min)throw new Error(\"Max and Min values are required.\");this.options=options||{};for(var key in _options)key in this.options||(this.options[key]=_options[key]);this._max_value=max,this._min_value=min,this.value=min,this.end_loc=min,this.current_snap=this.getSnapNum(min),this.__extrStep=0,this.__extraMove=0,this.__animID=-1},p=Controller.prototype;p.changeTo=function(value,animate,speed,snap_num,dispatch){if(this.stopped=!1,this._internalStop(),value=this._checkLimits(value),speed=Math.abs(speed||0),this.options.snapping&&(snap_num=snap_num||this.getSnapNum(value),dispatch!==!1&&this._callsnapChange(snap_num),this.current_snap=snap_num),animate){this.animating=!0;var self=this,active_id=++self.__animID,amplitude=value-self.value,timeStep=0,targetPosition=value,animFrict=1-self.options.friction,timeconst=animFrict+(speed-20)*animFrict*1.3/self.options.maxSpeed,tick=function(){if(active_id===self.__animID){var dis=value-self.value;if(!(Math.abs(dis)>self.options.minValidDist&&self.animating))return self.animating&&(self.value=value,self._callrenderer()),self.animating=!1,active_id!==self.__animID&&(self.__animID=-1),void self._callonComplete(\"anim\");window.requestAnimationFrame(tick),self.value=targetPosition-amplitude*Math.exp(-++timeStep*timeconst),self._callrenderer()}};return void tick()}this.value=value,this._callrenderer()},p.drag=function(move){this.start_drag&&(this.drag_start_loc=this.value,this.start_drag=!1),this.animating=!1,this._deceleration=!1,this.value-=move,!this.options.endless&&(this.value>this._max_value||this.value<0)?this.options.bouncing?(this.__isout=!0,this.value+=.6*move):this.value=this.value>this._max_value?this._max_value:0:!this.options.endless&&this.options.bouncing&&(this.__isout=!1),this._callrenderer()},p.push=function(speed){if(this.stopped=!1,this.options.snapping&&Math.abs(speed)<=this.options.snappingMinSpeed)return void this.cancel();if(this.__speed=speed,this.__startSpeed=speed,this.end_loc=this._calculateEnd(),this.options.snapping){var snap_loc=this.getSnapNum(this.value),end_snap=this.getSnapNum(this.end_loc);if(this.options.paging)return snap_loc=this.getSnapNum(this.drag_start_loc),this.__isout=!1,void(speed>0?this.gotoSnap(snap_loc+1,!0,speed):this.gotoSnap(snap_loc-1,!0,speed));if(snap_loc===end_snap)return void this.cancel();this._callsnapChange(end_snap),this.current_snap=end_snap}this.animating=!1,this.__needsSnap=this.options.endless||this.end_loc>this._min_value&&this.end_loc<this._max_value,this.options.snapping&&this.__needsSnap&&(this.__extraMove=this._calculateExtraMove(this.end_loc)),this._startDecelaration()},p.bounce=function(speed){this.animating||(this.stopped=!1,this.animating=!1,this.__speed=speed,this.__startSpeed=speed,this.end_loc=this._calculateEnd(),this._startDecelaration())},p.stop=function(){this.stopped=!0,this._internalStop()},p.cancel=function(){this.start_drag=!0,this.__isout?(this.__speed=4e-4,this._startDecelaration()):this.options.snapping&&this.gotoSnap(this.getSnapNum(this.value),!0)},p.renderCallback=function(listener,ref){this.__renderHook={fun:listener,ref:ref}},p.snappingCallback=function(listener,ref){this.__snapHook={fun:listener,ref:ref}},p.snapCompleteCallback=function(listener,ref){this.__compHook={fun:listener,ref:ref}},p.getSnapNum=function(value){return Math.floor((value+this.options.snapsize/2)/this.options.snapsize)},p.nextSnap=function(){this._internalStop();var curr_snap=this.getSnapNum(this.value);!this.options.endless&&(curr_snap+1)*this.options.snapsize>this._max_value?(this.__speed=8,this.__needsSnap=!1,this._startDecelaration()):this.gotoSnap(curr_snap+1,!0)},p.prevSnap=function(){this._internalStop();var curr_snap=this.getSnapNum(this.value);!this.options.endless&&(curr_snap-1)*this.options.snapsize<this._min_value?(this.__speed=-8,this.__needsSnap=!1,this._startDecelaration()):this.gotoSnap(curr_snap-1,!0)},p.gotoSnap=function(snap_num,animate,speed){this.changeTo(snap_num*this.options.snapsize,animate,speed,snap_num)},p.destroy=function(){this._internalStop(),this.__renderHook=null,this.__snapHook=null,this.__compHook=null},p._internalStop=function(){this.start_drag=!0,this.animating=!1,this._deceleration=!1,this.__extrStep=0},p._calculateExtraMove=function(value){var m=value%this.options.snapsize;return m<this.options.snapsize/2?-m:this.options.snapsize-m},p._calculateEnd=function(step){for(var temp_speed=this.__speed,temp_value=this.value,i=0;Math.abs(temp_speed)>this.options.minValidDist;)temp_value+=temp_speed,temp_speed*=this.options.friction,i++;return step?i:temp_value},p._checkLimits=function(value){return this.options.endless?value:value<this._min_value?this._min_value:value>this._max_value?this._max_value:value},p._callrenderer=function(){this.__renderHook&&this.__renderHook.fun.call(this.__renderHook.ref,this,this.value)},p._callsnapChange=function(targetSnap){this.__snapHook&&targetSnap!==this.current_snap&&this.__snapHook.fun.call(this.__snapHook.ref,this,targetSnap,targetSnap-this.current_snap)},p._callonComplete=function(type){this.__compHook&&!this.stopped&&this.__compHook.fun.call(this.__compHook.ref,this,this.current_snap,type)},p._computeDeceleration=function(){if(this.options.snapping&&this.__needsSnap){var xtr_move=(this.__startSpeed-this.__speed)/this.__startSpeed*this.__extraMove;this.value+=this.__speed+xtr_move-this.__extrStep,this.__extrStep=xtr_move}else this.value+=this.__speed;if(this.__speed*=this.options.friction,this.options.endless||this.options.bouncing||(this.value<=this._min_value?(this.value=this._min_value,this.__speed=0):this.value>=this._max_value&&(this.value=this._max_value,this.__speed=0)),this._callrenderer(),!this.options.endless&&this.options.bouncing){var out_value=0;this.value<this._min_value?out_value=this._min_value-this.value:this.value>this._max_value&&(out_value=this._max_value-this.value),this.__isout=Math.abs(out_value)>=this.options.minValidDist,this.__isout&&(this.__speed*out_value<=0?this.__speed+=out_value*this.options.outFriction:this.__speed=out_value*this.options.outAcceleration)}},p._startDecelaration=function(){if(!this._deceleration){this._deceleration=!0;var self=this,tick=function(){self._deceleration&&(self._computeDeceleration(),Math.abs(self.__speed)>self.options.minValidDist||self.__isout?window.requestAnimationFrame(tick):(self._deceleration=!1,self.__isout=!1,self.value=self.__needsSnap&&self.options.snapping&&!self.options.paging?self._checkLimits(self.end_loc+self.__extraMove):Math.round(self.value),self._callrenderer(),self._callonComplete(\"decel\")))};tick()}},window.Controller=Controller}(),function(window,document,$){window.MSLayerController=function(slide){this.slide=slide,this.slider=slide.slider,this.layers=[],this.layersCount=0,this.preloadCount=0,this.$layers=$(\"<div></div>\").addClass(\"ms-slide-layers\"),this.$staticLayers=$(\"<div></div>\").addClass(\"ms-static-layers\"),this.$fixedLayers=$(\"<div></div>\").addClass(\"ms-fixed-layers\"),this.$animLayers=$(\"<div></div>\").addClass(\"ms-anim-layers\")};var p=MSLayerController.prototype;p.addLayer=function(layer){switch(layer.slide=this.slide,layer.controller=this,layer.$element.data(\"position\")){case\"static\":this.hasStaticLayer=!0,layer.$element.appendTo(this.$staticLayers);break;case\"fixed\":this.hasFixedLayer=!0,layer.$element.appendTo(this.$fixedLayers);break;default:layer.$element.appendTo(this.$animLayers)}layer.create(),this.layers.push(layer),this.layersCount++,layer.parallax&&(this.hasParallaxLayer=!0),layer.needPreload&&this.preloadCount++},p.create=function(){this.slide.$element.append(this.$layers),this.$layers.append(this.$animLayers),this.hasStaticLayer&&this.$layers.append(this.$staticLayers),\"center\"==this.slider.options.layersMode&&(this.$layers.css(\"max-width\",this.slider.options.width+\"px\"),this.hasFixedLayer&&this.$fixedLayers.css(\"max-width\",this.slider.options.width+\"px\"))},p.loadLayers=function(callback){if(this._onReadyCallback=callback,0===this.preloadCount)return void this._onlayersReady();for(var i=0;i!==this.layersCount;++i)this.layers[i].needPreload&&this.layers[i].loadImage()},p.prepareToShow=function(){this.hasParallaxLayer&&this._enableParallaxEffect(),this.hasFixedLayer&&this.$fixedLayers.prependTo(this.slide.view.$element)},p.showLayers=function(){this.layersHideTween&&this.layersHideTween.stop(!0),this.fixedLayersHideTween&&this.fixedLayersHideTween.stop(!0),this._resetLayers(),this.$animLayers.css(\"opacity\",\"\").css(\"display\",\"\"),this.hasFixedLayer&&this.$fixedLayers.css(\"opacity\",\"\").css(\"display\",\"\"),this.ready&&(this._initLayers(),this._locateLayers(),this._startLayers())},p.hideLayers=function(){if(this.slide.selected||this.slider.options.instantStartLayers){var that=this;that.layersHideTween=CTween.animate(this.$animLayers,500,{opacity:0},{complete:function(){that._resetLayers()}}),this.hasFixedLayer&&(this.fixedLayersHideTween=CTween.animate(this.$fixedLayers,500,{opacity:0},{complete:function(){that.$fixedLayers.detach()}})),this.hasParallaxLayer&&this._disableParallaxEffect()}},p.animHideLayers=function(){if(this.ready)for(var i=0;i!==this.layersCount;++i)this.layers[i].hide()},p.setSize=function(width,height,hard){if(this.ready&&(this.slide.selected||this.hasStaticLayer)&&(hard&&this._initLayers(!0),this._locateLayers(!this.slide.selected)),this.slider.options.autoHeight&&this.updateHeight(),\"center\"==this.slider.options.layersMode){var left=Math.max(0,(width-this.slider.options.width)/2)+\"px\";this.$layers[0].style.left=left,this.$fixedLayers[0].style.left=left}},p.updateHeight=function(){},p._onlayersReady=function(){this.ready=!0,this.hasStaticLayer&&!this.slide.isSleeping&&this._initLayers(!1,!0),this._onReadyCallback.call(this.slide)},p.onSlideSleep=function(){},p.onSlideWakeup=function(){this.hasStaticLayer&&this.ready&&this._initLayers(!1,!0)},p.getLayerById=function(layerId){if(!layerId)return null;for(var i=0;i<this.layersCount;++i)if(this.layers[i].id===layerId)return this.layers[i];return null},p.destroy=function(){this.slide.selected&&this.hasParallaxLayer&&this._disableParallaxEffect();for(var i=0;i<this.layersCount;++i)this.layers[i].$element.stop(!0).remove();this.$layers.remove(),this.$staticLayers.remove(),this.$fixedLayers.remove(),this.$animLayers.remove()},p._startLayers=function(){for(var i=0;i!==this.layersCount;++i){var layer=this.layers[i];layer.waitForAction||layer.start()}},p._initLayers=function(force,onlyStatics){if(!(this.init&&!force||this.slider.init_safemode)){this.init=onlyStatics!==!0;var i=0;if(onlyStatics&&!this.staticsInit)for(this.staticsInit=!0;i!==this.layersCount;++i)this.layers[i].staticLayer&&this.layers[i].init();else if(this.staticsInit&&!force)for(;i!==this.layersCount;++i)this.layers[i].staticLayer||this.layers[i].init();else for(;i!==this.layersCount;++i)this.layers[i].init()}},p._locateLayers=function(onlyStatics){var i=0;if(onlyStatics)for(;i!==this.layersCount;++i)this.layers[i].staticLayer&&this.layers[i].locate();else for(;i!==this.layersCount;++i)this.layers[i].locate()},p._resetLayers=function(){this.$animLayers.css(\"display\",\"none\").css(\"opacity\",1);for(var i=0;i!==this.layersCount;++i)this.layers[i].reset()},p._applyParallax=function(x,y,fast){for(var i=0;i!==this.layersCount;++i)null!=this.layers[i].parallax&&this.layers[i].moveParallax(x,y,fast)},p._enableParallaxEffect=function(){\"swipe\"===this.slider.options.parallaxMode?this.slide.view.addEventListener(MSViewEvents.SCROLL,this._swipeParallaxMove,this):this.slide.$element.on(\"mousemove\",{that:this},this._mouseParallaxMove).on(\"mouseleave\",{that:this},this._resetParalax)},p._disableParallaxEffect=function(){\"swipe\"===this.slider.options.parallaxMode?this.slide.view.removeEventListener(MSViewEvents.SCROLL,this._swipeParallaxMove,this):this.slide.$element.off(\"mousemove\",this._mouseParallaxMove).off(\"mouseleave\",this._resetParalax)},p._resetParalax=function(e){var that=e.data.that;that._applyParallax(0,0)},p._mouseParallaxMove=function(e){var that=e.data.that,os=that.slide.$element.offset(),slider=that.slider;if(\"mouse:y-only\"!==slider.options.parallaxMode)var x=e.pageX-os.left-that.slide.__width/2;else var x=0;if(\"mouse:x-only\"!==slider.options.parallaxMode)var y=e.pageY-os.top-that.slide.__height/2;else var y=0;that._applyParallax(-x,-y)},p._swipeParallaxMove=function(){var value=this.slide.position-this.slide.view.__contPos;\"v\"===this.slider.options.dir?this._applyParallax(0,value,!0):this._applyParallax(value,0,!0)}}(window,document,jQuery),function($,window){\"use strict\";window.MSOverlayLayerController=function(){MSLayerController.apply(this,arguments)},MSOverlayLayerController.extend(MSLayerController);var p=MSOverlayLayerController.prototype,_super=MSLayerController.prototype;p.addLayer=function(layer){var showOnSlides=layer.$element.data(\"show-on\"),hideOnSlides=layer.$element.data(\"hide-on\");hideOnSlides&&(layer.hideOnSlides=hideOnSlides.replace(/\\s+/g,\"\").split(\",\")),showOnSlides&&(layer.showOnSlides=showOnSlides.replace(/\\s+/g,\"\").split(\",\")),_super.addLayer.apply(this,arguments)},p.create=function(){_super.create.apply(this,arguments),this.slider.api.addEventListener(MSSliderEvent.CHANGE_START,this.checkLayers.bind(this))},p.checkLayers=function(){if(this.ready)for(var i=0;i!==this.layersCount;++i){var layer=this.layers[i];layer.waitForAction||(this._checkForShow(layer)?layer.start():layer.hide())}},p._enableParallaxEffect=function(){this.slider.view.$element.on(\"mousemove\",{that:this},this._mouseParallaxMove).on(\"mouseleave\",{that:this},this._resetParalax)},p._disableParallaxEffect=function(){this.slider.view.$element.off(\"mousemove\",this._mouseParallaxMove).off(\"mouseleave\",this._resetParalax)},p._startLayers=function(){for(var i=0;i!==this.layersCount;++i){var layer=this.layers[i];this._checkForShow(layer)&&!layer.waitForAction&&layer.start()}},p._checkForShow=function(layer){var slideId=this.slider.api.currentSlide.id,layerHideOn=layer.hideOnSlides,layerShowOn=layer.showOnSlides;return layerShowOn?!!slideId&&-1!==layerShowOn.indexOf(slideId):!slideId||!layerHideOn||layerHideOn.length&&-1===layerHideOn.indexOf(slideId)}}(jQuery,window,document),function($,window){\"use strict\";window.MSOverlayLayers=function(slider){this.slider=slider};var p=MSOverlayLayers.prototype;p.setupLayerController=function(){this.layerController=new MSOverlayLayerController(this),this.slider.api.addEventListener(MSSliderEvent.RESIZE,this.setSize.bind(this)),this.slider.api.addEventListener(MSSliderEvent.CHANGE_START,this.setSize.bind(this)),this.setSize()},p.setSize=function(){this.__width=this.$element.width(),this.__height=this.$element.height(),this.layerController.setSize(this.__width,this.__height)},p.create=function(){this.layerController.create(),this.layerController.loadLayers(this._onLayersLoad),this.layerController.prepareToShow(),window.pointerEventsPolyfill&&window.pointerEventsPolyfill({selector:\"#\"+this.slider.$element.attr(\"id\")+\" .ms-overlay-layers\",forcePolyfill:!1})},p.getHeight=function(){return this.slider.api.currentSlide.getHeight()},p.destroy=function(){this.layerController.destroy()},p._onLayersLoad=function(){this.ready=!0,this.selected=!0,this.layersLoaded=!0,this.setSize(),this.layerController.showLayers()}}(jQuery,window,document),function($){window.MSLayerEffects={};var installed,_fade={opacity:0};MSLayerEffects.setup=function(){if(!installed){installed=!0;var st=MSLayerEffects,transform_css=window._jcsspfx+\"Transform\",transform_orig_css=window._jcsspfx+\"TransformOrigin\",o=$.browser.opera;_2d=window._css2d&&window._cssanim&&!o,st.defaultValues={left:0,top:0,opacity:isMSIE(\"<=9\")?1:\"\",right:0,bottom:0},st.defaultValues[transform_css]=\"\",st.rf=1,st.presetEffParams={random:\"30|300\",\"long\":300,\"short\":30,\"false\":!1,\"true\":!0,tl:\"top left\",bl:\"bottom left\",tr:\"top right\",br:\"bottom right\",rt:\"top right\",lb:\"bottom left\",lt:\"top left\",rb:\"bottom right\",t:\"top\",b:\"bottom\",r:\"right\",l:\"left\",c:\"center\"},st.fade=function(){return _fade},st.left=_2d?function(dist,fade){var r=fade===!1?{}:{opacity:0};return r[transform_css]=\"translateX(\"+-dist*st.rf+\"px)\",r}:function(dist,fade){var r=fade===!1?{}:{opacity:0};return r.left=-dist*st.rf+\"px\",r},st.right=_2d?function(dist,fade){var r=fade===!1?{}:{opacity:0};return r[transform_css]=\"translateX(\"+dist*st.rf+\"px)\",r}:function(dist,fade){var r=fade===!1?{}:{opacity:0};return r.left=dist*st.rf+\"px\",r},st.top=_2d?function(dist,fade){var r=fade===!1?{}:{opacity:0};return r[transform_css]=\"translateY(\"+-dist*st.rf+\"px)\",r}:function(dist,fade){var r=fade===!1?{}:{opacity:0};return r.top=-dist*st.rf+\"px\",r},st.bottom=_2d?function(dist,fade){var r=fade===!1?{}:{opacity:0};return r[transform_css]=\"translateY(\"+dist*st.rf+\"px)\",r}:function(dist,fade){var r=fade===!1?{}:{opacity:0};return r.top=dist*st.rf+\"px\",r},st.from=_2d?function(leftdis,topdis,fade){var r=fade===!1?{}:{opacity:0};return r[transform_css]=\"translateX(\"+leftdis*st.rf+\"px) translateY(\"+topdis*st.rf+\"px)\",r}:function(leftdis,topdis,fade){var r=fade===!1?{}:{opacity:0};return r.top=topdis*st.rf+\"px\",r.left=leftdis*st.rf+\"px\",r},st.rotate=_2d?function(deg,orig){var r={opacity:0};return r[transform_css]=\" rotate(\"+deg+\"deg)\",orig&&(r[transform_orig_css]=orig),r}:function(){return _fade},st.rotateleft=_2d?function(deg,dist,orig,fade){var r=st.left(dist,fade);return r[transform_css]+=\" rotate(\"+deg+\"deg)\",orig&&(r[transform_orig_css]=orig),r}:function(deg,dist,orig,fade){return st.left(dist,fade)},st.rotateright=_2d?function(deg,dist,orig,fade){var r=st.right(dist,fade);return r[transform_css]+=\" rotate(\"+deg+\"deg)\",orig&&(r[transform_orig_css]=orig),r}:function(deg,dist,orig,fade){return st.right(dist,fade)},st.rotatetop=_2d?function(deg,dist,orig,fade){var r=st.top(dist,fade);return r[transform_css]+=\" rotate(\"+deg+\"deg)\",orig&&(r[transform_orig_css]=orig),r}:function(deg,dist,orig,fade){return st.top(dist,fade)},st.rotatebottom=_2d?function(deg,dist,orig,fade){var r=st.bottom(dist,fade);return r[transform_css]+=\" rotate(\"+deg+\"deg)\",orig&&(r[transform_orig_css]=orig),r}:function(deg,dist,orig,fade){return st.bottom(dist,fade)},st.rotatefrom=_2d?function(deg,leftdis,topdis,orig,fade){var r=st.from(leftdis,topdis,fade);return r[transform_css]+=\" rotate(\"+deg+\"deg)\",orig&&(r[transform_orig_css]=orig),r}:function(deg,leftdis,topdis,orig,fade){return st.from(leftdis,topdis,fade)},st.skewleft=_2d?function(deg,dist,fade){var r=st.left(dist,fade);return r[transform_css]+=\" skewX(\"+deg+\"deg)\",r}:function(deg,dist,fade){return st.left(dist,fade)},st.skewright=_2d?function(deg,dist,fade){var r=st.right(dist,fade);return r[transform_css]+=\" skewX(\"+-deg+\"deg)\",r}:function(deg,dist,fade){return st.right(dist,fade)},st.skewtop=_2d?function(deg,dist,fade){var r=st.top(dist,fade);return r[transform_css]+=\" skewY(\"+deg+\"deg)\",r}:function(deg,dist,fade){return st.top(dist,fade)},st.skewbottom=_2d?function(deg,dist,fade){var r=st.bottom(dist,fade);return r[transform_css]+=\" skewY(\"+-deg+\"deg)\",r}:function(deg,dist,fade){return st.bottom(dist,fade)},st.scale=_2d?function(x,y,orig,fade){var r=fade===!1?{}:{opacity:0};return r[transform_css]=\" scaleX(\"+x+\") scaleY(\"+y+\")\",orig&&(r[transform_orig_css]=orig),r}:function(x,y,orig,fade){return fade===!1?{}:{opacity:0}},st.scaleleft=_2d?function(x,y,dist,orig,fade){var r=st.left(dist,fade);return r[transform_css]=\" scaleX(\"+x+\") scaleY(\"+y+\")\",orig&&(r[transform_orig_css]=orig),r}:function(x,y,dist,orig,fade){return st.left(dist,fade)},st.scaleright=_2d?function(x,y,dist,orig,fade){var r=st.right(dist,fade);return r[transform_css]=\" scaleX(\"+x+\") scaleY(\"+y+\")\",orig&&(r[transform_orig_css]=orig),r}:function(x,y,dist,orig,fade){return st.right(dist,fade)},st.scaletop=_2d?function(x,y,dist,orig,fade){var r=st.top(dist,fade);return r[transform_css]=\" scaleX(\"+x+\") scaleY(\"+y+\")\",orig&&(r[transform_orig_css]=orig),r}:function(x,y,dist,orig,fade){return st.top(dist,fade)},st.scalebottom=_2d?function(x,y,dist,orig,fade){var r=st.bottom(dist,fade);return r[transform_css]=\" scaleX(\"+x+\") scaleY(\"+y+\")\",orig&&(r[transform_orig_css]=orig),r}:function(x,y,dist,orig,fade){return st.bottom(dist,fade)},st.scalefrom=_2d?function(x,y,leftdis,topdis,orig,fade){var r=st.from(leftdis,topdis,fade);return r[transform_css]+=\" scaleX(\"+x+\") scaleY(\"+y+\")\",orig&&(r[transform_orig_css]=orig),r}:function(x,y,leftdis,topdis,orig,fade){return st.from(leftdis,topdis,fade)},st.rotatescale=_2d?function(deg,x,y,orig,fade){var r=st.scale(x,y,orig,fade);return r[transform_css]+=\" rotate(\"+deg+\"deg)\",orig&&(r[transform_orig_css]=orig),r}:function(deg,x,y,orig,fade){return st.scale(x,y,orig,fade)},st.front=window._css3d?function(dist,fade){var r=fade===!1?{}:{opacity:0};return r[transform_css]=\"perspective(2000px) translate3d(0 , 0 ,\"+dist+\"px ) rotate(0.001deg)\",r}:function(){return _fade},st.back=window._css3d?function(dist,fade){var r=fade===!1?{}:{opacity:0};return r[transform_css]=\"perspective(2000px) translate3d(0 , 0 ,\"+-dist+\"px ) rotate(0.001deg)\",r}:function(){return _fade},st.rotatefront=window._css3d?function(deg,dist,orig,fade){var r=fade===!1?{}:{opacity:0};return r[transform_css]=\"perspective(2000px) translate3d(0 , 0 ,\"+dist+\"px ) rotate(\"+(deg||.001)+\"deg)\",orig&&(r[transform_orig_css]=orig),r}:function(){return _fade},st.rotateback=window._css3d?function(deg,dist,orig,fade){var r=fade===!1?{}:{opacity:0};return r[transform_css]=\"perspective(2000px) translate3d(0 , 0 ,\"+-dist+\"px ) rotate(\"+(deg||.001)+\"deg)\",orig&&(r[transform_orig_css]=orig),r}:function(){return _fade},st.rotate3dleft=window._css3d?function(x,y,z,dist,orig,fade){var r=st.left(dist,fade);return r[transform_css]+=(x?\" rotateX(\"+x+\"deg)\":\" \")+(y?\" rotateY(\"+y+\"deg)\":\"\")+(z?\" rotateZ(\"+z+\"deg)\":\"\"),orig&&(r[transform_orig_css]=orig),r}:function(x,y,z,dist,orig,fade){return st.left(dist,fade)},st.rotate3dright=window._css3d?function(x,y,z,dist,orig,fade){var r=st.right(dist,fade);return r[transform_css]+=(x?\" rotateX(\"+x+\"deg)\":\" \")+(y?\" rotateY(\"+y+\"deg)\":\"\")+(z?\" rotateZ(\"+z+\"deg)\":\"\"),orig&&(r[transform_orig_css]=orig),r}:function(x,y,z,dist,orig,fade){return st.right(dist,fade)},st.rotate3dtop=window._css3d?function(x,y,z,dist,orig,fade){var r=st.top(dist,fade);return r[transform_css]+=(x?\" rotateX(\"+x+\"deg)\":\" \")+(y?\" rotateY(\"+y+\"deg)\":\"\")+(z?\" rotateZ(\"+z+\"deg)\":\"\"),orig&&(r[transform_orig_css]=orig),r}:function(x,y,z,dist,orig,fade){return st.top(dist,fade)},st.rotate3dbottom=window._css3d?function(x,y,z,dist,orig,fade){var r=st.bottom(dist,fade);return r[transform_css]+=(x?\" rotateX(\"+x+\"deg)\":\" \")+(y?\" rotateY(\"+y+\"deg)\":\"\")+(z?\" rotateZ(\"+z+\"deg)\":\"\"),orig&&(r[transform_orig_css]=orig),r}:function(x,y,z,dist,orig,fade){return st.bottom(dist,fade)},st.rotate3dfront=window._css3d?function(x,y,z,dist,orig,fade){var r=st.front(dist,fade);return r[transform_css]+=(x?\" rotateX(\"+x+\"deg)\":\" \")+(y?\" rotateY(\"+y+\"deg)\":\"\")+(z?\" rotateZ(\"+z+\"deg)\":\"\"),orig&&(r[transform_orig_css]=orig),r}:function(x,y,z,dist,orig,fade){return st.front(dist,fade)},st.rotate3dback=window._css3d?function(x,y,z,dist,orig,fade){var r=st.back(dist,fade);return r[transform_css]+=(x?\" rotateX(\"+x+\"deg)\":\" \")+(y?\" rotateY(\"+y+\"deg)\":\"\")+(z?\" rotateZ(\"+z+\"deg)\":\"\"),orig&&(r[transform_orig_css]=orig),r}:function(x,y,z,dist,orig,fade){return st.back(dist,fade)},st.t=window._css3d?function(fade,tx,ty,tz,r,rx,ry,rz,scx,scy,skx,sky,ox,oy,oz){var _r=fade===!1?{}:{opacity:0},transform=\"perspective(2000px) \";\"n\"!==tx&&(transform+=\"translateX(\"+tx*st.rf+\"px) \"),\"n\"!==ty&&(transform+=\"translateY(\"+ty*st.rf+\"px) \"),\"n\"!==tz&&(transform+=\"translateZ(\"+tz*st.rf+\"px) \"),\"n\"!==r&&(transform+=\"rotate(\"+r+\"deg) \"),\"n\"!==rx&&(transform+=\"rotateX(\"+rx+\"deg) \"),\"n\"!==ry&&(transform+=\"rotateY(\"+ry+\"deg) \"),\"n\"!==rz&&(transform+=\"rotateZ(\"+rz+\"deg) \"),\"n\"!==skx&&(transform+=\"skewX(\"+skx+\"deg) \"),\"n\"!==sky&&(transform+=\"skewY(\"+sky+\"deg) \"),\"n\"!==scx&&(transform+=\"scaleX(\"+scx+\") \"),\"n\"!==scy&&(transform+=\"scaleY(\"+scy+\")\"),_r[transform_css]=transform;var trans_origin=\"\";return trans_origin+=\"n\"!==ox?ox+\"% \":\"50% \",trans_origin+=\"n\"!==oy?oy+\"% \":\"50% \",trans_origin+=\"n\"!==oz?oz+\"px\":\"\",_r[transform_orig_css]=trans_origin,_r}:function(fade,tx,ty,tz,r){var r=fade===!1?{}:{opacity:0};return\"n\"!==tx&&(r.left=tx*st.rf+\"px\"),\"n\"!==ty&&(r.top=ty*st.rf+\"px\"),r}}}}(jQuery),function($){window.MSLayerElement=function(){this.start_anim={name:\"fade\",duration:1e3,ease:\"linear\",delay:0},this.end_anim={duration:1e3,ease:\"linear\"},this.type=\"text\",this.resizable=!0,this.minWidth=-1,this.isVisible=!0,this.__cssConfig=[\"margin-top\",\"padding-top\",\"margin-bottom\",\"padding-left\",\"margin-right\",\"padding-right\",\"margin-left\",\"padding-bottom\",\"font-size\",\"line-height\",\"width\",\"left\",\"right\",\"top\",\"bottom\"],this.baseStyle={}};var p=MSLayerElement.prototype;p.setStartAnim=function(anim){$.extend(this.start_anim,anim),$.extend(this.start_anim,this._parseEff(this.start_anim.name)),this.$element.css(\"visibility\",\"hidden\")},p.setEndAnim=function(anim){$.extend(this.end_anim,anim)},p.create=function(){if(this.$element.css(\"display\",\"none\"),this.resizable=this.$element.data(\"resize\")!==!1,this.fixed=this.$element.data(\"fixed\")===!0,void 0!==this.$element.data(\"widthlimit\")&&(this.minWidth=this.$element.data(\"widthlimit\")),this.end_anim.name||(this.end_anim.name=this.start_anim.name),this.end_anim.time&&(this.autoHide=!0),this.staticLayer=\"static\"===this.$element.data(\"position\"),this.fixedLayer=\"fixed\"===this.$element.data(\"position\"),this.layersCont=this.controller.$layers,this.staticLayer&&this.$element.css(\"display\",\"\").css(\"visibility\",\"\"),void 0!==this.$element.data(\"action\")){var slideController=this.slide.slider.slideController;this.$element.on(this.$element.data(\"action-event\")||\"click\",function(event){slideController.runAction($(this).data(\"action\")),event.preventDefault()}).addClass(\"ms-action-layer\")}$.extend(this.end_anim,this._parseEff(this.end_anim.name)),this.slider=this.slide.slider,this.masked&&(this.$mask=$(\"<div></div>\").addClass(\"ms-layer-mask\"),this.link?(this.link.wrap(this.$mask),this.$mask=this.link.parent()):(this.$element.wrap(this.$mask),this.$mask=this.$element.parent()),this.maskWidth&&this.$mask.width(this.maskWidth),this.maskHeight&&(this.$mask.height(this.maskHeight),-1===this.__cssConfig.indexOf(\"height\")&&this.__cssConfig.push(\"height\")));var layerOrigin=this.layerOrigin=this.$element.data(\"origin\");if(layerOrigin){var vOrigin=layerOrigin.charAt(0),hOrigin=layerOrigin.charAt(1),offsetX=this.$element.data(\"offset-x\"),offsetY=this.$element.data(\"offset-y\"),layerEle=this.masked?this.$mask[0]:this.$element[0];switch(void 0===offsetY&&(offsetY=0),vOrigin){case\"t\":layerEle.style.top=offsetY+\"px\";break;case\"b\":layerEle.style.bottom=offsetY+\"px\";break;case\"m\":layerEle.style.top=offsetY+\"px\",this.middleAlign=!0}switch(void 0===offsetX&&(offsetX=0),hOrigin){case\"l\":layerEle.style.left=offsetX+\"px\";break;case\"r\":layerEle.style.right=offsetX+\"px\";break;case\"c\":layerEle.style.left=offsetX+\"px\",this.centerAlign=!0}}this.parallax=this.$element.data(\"parallax\"),null!=this.parallax&&(this.parallax/=100,this.$parallaxElement=$(\"<div></div>\").addClass(\"ms-parallax-layer\"),this.masked?(this.$mask.wrap(this.$parallaxElement),this.$parallaxElement=this.$mask.parent()):this.link?(this.link.wrap(this.$parallaxElement),this.$parallaxElement=this.link.parent()):(this.$element.wrap(this.$parallaxElement),this.$parallaxElement=this.$element.parent()),this._lastParaX=0,this._lastParaY=0,this._paraX=0,this._paraY=0,this.alignedToBot=this.layerOrigin&&-1!==this.layerOrigin.indexOf(\"b\"),this.alignedToBot&&this.$parallaxElement.css(\"bottom\",0),this.parallaxRender=window._css3d?this._parallaxCSS3DRenderer:window._css2d?this._parallaxCSS2DRenderer:this._parallax2DRenderer,\"swipe\"!==this.slider.options.parallaxMode&&averta.Ticker.add(this.parallaxRender,this)),$.removeDataAttrs(this.$element,[\"data-src\"])},p.init=function(){this.initialized=!0;var value;this.$element.css(\"visibility\",\"\");for(var i=0,l=this.__cssConfig.length;l>i;i++){var key=this.__cssConfig[i];if(this._isPosition(key)&&this.masked)value=this.$mask.css(key);else if(\"text\"!==this.type||\"width\"!==key||this.masked||this.maskWidth){value=this.$element.css(key);var isSize=\"width\"===key||\"height\"===key;isSize&&this.masked&&(this.maskWidth&&\"width\"===key?value=this.maskWidth+\"px\":this.maskHeight&&\"height\"===key&&(value=this.maskHeight+\"px\")),isSize&&\"0px\"===value&&(value=this.$element.data(key)+\"px\")}else value=this.$element[0].style.width;this.layerOrigin&&(\"top\"===key&&-1===this.layerOrigin.indexOf(\"t\")&&-1===this.layerOrigin.indexOf(\"m\")||\"bottom\"===key&&-1===this.layerOrigin.indexOf(\"b\")||\"left\"===key&&-1===this.layerOrigin.indexOf(\"l\")&&-1===this.layerOrigin.indexOf(\"c\")||\"right\"===key&&-1===this.layerOrigin.indexOf(\"r\"))||\"auto\"!=value&&\"\"!=value&&\"normal\"!=value&&(this.baseStyle[key]=parseInt(value))}this.middleAlign&&(this.baseHeight=this.$element.outerHeight(!1)),this.centerAlign&&(this.baseWidth=this.$element.outerWidth(!1))},p.locate=function(){if(this.slide.ready){var factor,isPosition,isSize,width=parseFloat(this.layersCont.css(\"width\")),height=parseFloat(this.layersCont.css(\"height\"));!this.staticLayer&&\"none\"===this.$element.css(\"display\")&&this.isVisible&&this.$element.css(\"display\",\"\").css(\"visibility\",\"hidden\"),this.staticLayer&&this.$element.addClass(\"ms-hover-active\"),factor=this.resizeFactor=width/this.slide.slider.options.width;var $layerEle=this.masked?this.$mask:this.$element;for(var key in this.baseStyle)isPosition=this._isPosition(key),isSize=\"width\"===key||\"height\"===key,factor=this.fixed&&isPosition?1:this.resizeFactor,(this.resizable||isPosition)&&(\"top\"===key&&this.middleAlign?($layerEle[0].style.top=\"0px\",this.baseHeight=$layerEle.outerHeight(!1),$layerEle[0].style.top=this.baseStyle.top*factor+(height-this.baseHeight)/2+\"px\"):\"left\"===key&&this.centerAlign?($layerEle[0].style.left=\"0px\",this.baseWidth=$layerEle.outerWidth(!1),$layerEle[0].style.left=this.baseStyle.left*factor+(width-this.baseWidth)/2+\"px\"):isPosition&&this.masked?$layerEle[0].style[key]=this.baseStyle[key]*factor+\"px\":isSize&&(\"width\"===key&&this.maskWidth||\"height\"===key&&this.maskHeight)?$layerEle[0].style[key]=this.baseStyle[key]*factor+\"px\":this.$element.css(key,this.baseStyle[key]*factor+\"px\"));\r\nthis.visible(this.minWidth<width)}},p.start=function(){if(!this.isShowing&&!this.staticLayer){this.isShowing=!0,this.$element.removeClass(\"ms-hover-active\");var key,base;MSLayerEffects.rf=this.resizeFactor;var effect_css=MSLayerEffects[this.start_anim.eff_name].apply(null,this._parseEffParams(this.start_anim.eff_params)),start_css_eff={};for(key in effect_css)this._checkPosKey(key,effect_css)||(null!=MSLayerEffects.defaultValues[key]&&(start_css_eff[key]=MSLayerEffects.defaultValues[key]),key in this.baseStyle&&(base=this.baseStyle[key],this.middleAlign&&\"top\"===key&&(base+=(parseInt(this.layersCont.height())-this.$element.outerHeight(!1))/2),this.centerAlign&&\"left\"===key&&(base+=(parseInt(this.layersCont.width())-this.$element.outerWidth(!1))/2),effect_css[key]=base+parseFloat(effect_css[key])+\"px\",start_css_eff[key]=base+\"px\"),this.$element.css(key,effect_css[key]));var that=this;clearTimeout(this.to),clearTimeout(this.clHide),this.to=setTimeout(function(){that.$element.css(\"visibility\",\"\"),that._playAnimation(that.start_anim,start_css_eff)},that.start_anim.delay||.01),this.clTo=setTimeout(function(){that.show_cl=!0,that.$element.addClass(\"ms-hover-active\")},(this.start_anim.delay||.01)+this.start_anim.duration+1),this.autoHide&&(clearTimeout(this.hto),this.hto=setTimeout(function(){that.hide()},that.end_anim.time))}},p.hide=function(){if(!this.staticLayer){this.$element.removeClass(\"ms-hover-active\"),this.isShowing=!1;var effect_css=MSLayerEffects[this.end_anim.eff_name].apply(null,this._parseEffParams(this.end_anim.eff_params));for(key in effect_css)this._checkPosKey(key,effect_css)||(key===window._jcsspfx+\"TransformOrigin\"&&this.$element.css(key,effect_css[key]),key in this.baseStyle&&(effect_css[key]=this.baseStyle[key]+parseFloat(effect_css[key])+\"px\"));this._playAnimation(this.end_anim,effect_css),clearTimeout(this.clHide),0===effect_css.opacity&&(this.clHide=setTimeout(function(){this.$element.css(\"visibility\",\"hidden\")}.bind(this),this.end_anim.duration+1)),clearTimeout(this.to),clearTimeout(this.hto),clearTimeout(this.clTo)}},p.reset=function(){this.staticLayer||(this.isShowing=!1,this.$element[0].style.display=\"none\",this.$element.css(\"opacity\",\"\"),this.$element[0].style.transitionDuration=\"\",this.show_tween&&this.show_tween.stop(!0),clearTimeout(this.to),clearTimeout(this.hto))},p.destroy=function(){this.reset(),this.$element.remove()},p.visible=function(value){this.isVisible!=value&&(this.isVisible=value,this.$element.css(\"display\",value?\"\":\"none\"))},p.moveParallax=function(x,y,fast){this._paraX=x,this._paraY=y,fast&&(this._lastParaX=x,this._lastParaY=y,this.parallaxRender())},p._playAnimation=function(animation,css){var options={};animation.ease&&(options.ease=animation.ease),options.transProperty=window._csspfx+\"transform,opacity\",this.show_tween&&this.show_tween.stop(!0),this.show_tween=CTween.animate(this.$element,animation.duration,css,options)},p._randomParam=function(value){var min=Number(value.slice(0,value.indexOf(\"|\"))),max=Number(value.slice(value.indexOf(\"|\")+1));return min+Math.random()*(max-min)},p._parseEff=function(eff_name){var eff_params=[];if(-1!==eff_name.indexOf(\"(\")){var value,temp=eff_name.slice(0,eff_name.indexOf(\"(\")).toLowerCase();eff_params=eff_name.slice(eff_name.indexOf(\"(\")+1,-1).replace(/\\\"|\\'|\\s/g,\"\").split(\",\"),eff_name=temp;for(var i=0,l=eff_params.length;l>i;++i)value=eff_params[i],value in MSLayerEffects.presetEffParams&&(value=MSLayerEffects.presetEffParams[value]),eff_params[i]=value}return{eff_name:eff_name,eff_params:eff_params}},p._parseEffParams=function(params){for(var eff_params=[],i=0,l=params.length;l>i;++i){var value=params[i];\"string\"==typeof value&&-1!==value.indexOf(\"|\")&&(value=this._randomParam(value)),eff_params[i]=value}return eff_params},p._checkPosKey=function(key,style){return\"left\"===key&&!(key in this.baseStyle)&&\"right\"in this.baseStyle?(style.right=-parseInt(style.left)+\"px\",delete style.left,!0):\"top\"===key&&!(key in this.baseStyle)&&\"bottom\"in this.baseStyle?(style.bottom=-parseInt(style.top)+\"px\",delete style.top,!0):!1},p._isPosition=function(key){return\"top\"===key||\"left\"===key||\"bottom\"===key||\"right\"===key},p._parallaxCalc=function(){var x_def=this._paraX-this._lastParaX,y_def=this._paraY-this._lastParaY;this._lastParaX+=x_def/12,this._lastParaY+=y_def/12,Math.abs(x_def)<.019&&(this._lastParaX=this._paraX),Math.abs(y_def)<.019&&(this._lastParaY=this._paraY)},p._parallaxCSS3DRenderer=function(){this._parallaxCalc(),this.$parallaxElement[0].style[window._jcsspfx+\"Transform\"]=\"translateX(\"+this._lastParaX*this.parallax+\"px) translateY(\"+this._lastParaY*this.parallax+\"px) translateZ(0)\"},p._parallaxCSS2DRenderer=function(){this._parallaxCalc(),this.$parallaxElement[0].style[window._jcsspfx+\"Transform\"]=\"translateX(\"+this._lastParaX*this.parallax+\"px) translateY(\"+this._lastParaY*this.parallax+\"px)\"},p._parallax2DRenderer=function(){this._parallaxCalc(),this.alignedToBot?this.$parallaxElement[0].style.bottom=this._lastParaY*this.parallax+\"px\":this.$parallaxElement[0].style.top=this._lastParaY*this.parallax+\"px\",this.$parallaxElement[0].style.left=this._lastParaX*this.parallax+\"px\"}}(jQuery),function($){window.MSImageLayerElement=function(){MSLayerElement.call(this),this.needPreload=!0,this.__cssConfig=[\"width\",\"height\",\"margin-top\",\"padding-top\",\"margin-bottom\",\"padding-left\",\"margin-right\",\"padding-right\",\"margin-left\",\"padding-bottom\",\"left\",\"right\",\"top\",\"bottom\"],this.type=\"image\"},MSImageLayerElement.extend(MSLayerElement);var p=MSImageLayerElement.prototype,_super=MSLayerElement.prototype;p.create=function(){if(this.link){var p=this.$element.parent();p.append(this.link),this.link.append(this.$element),this.link.removeClass(\"ms-layer\"),this.$element.addClass(\"ms-layer\"),p=null}if(_super.create.call(this),void 0!=this.$element.data(\"src\"))this.img_src=this.$element.data(\"src\"),this.$element.removeAttr(\"data-src\");else{var that=this;this.$element.on(\"load\",function(){that.controller.preloadCount--,0===that.controller.preloadCount&&that.controller._onlayersReady()}).each($.jqLoadFix)}$.browser.msie&&this.$element.on(\"dragstart\",function(event){event.preventDefault()})},p.loadImage=function(){var that=this;this.$element.preloadImg(this.img_src,function(){that.controller.preloadCount--,0===that.controller.preloadCount&&that.controller._onlayersReady()})}}(jQuery),function($){window.MSVideoLayerElement=function(){MSLayerElement.call(this),this.__cssConfig.push(\"height\"),this.type=\"video\"},MSVideoLayerElement.extend(MSLayerElement);var p=MSVideoLayerElement.prototype,_super=MSLayerElement.prototype;p.__playVideo=function(){this.img&&CTween.fadeOut(this.img,500,2),CTween.fadeOut(this.video_btn,500,2),this.video_frame.attr(\"src\",\"about:blank\").css(\"display\",\"block\"),-1==this.video_url.indexOf(\"?\")&&(this.video_url+=\"?\"),this.video_frame.attr(\"src\",this.video_url+\"&autoplay=1\")},p.start=function(){_super.start.call(this),this.$element.data(\"autoplay\")&&this.__playVideo()},p.reset=function(){return _super.reset.call(this),(this.needPreload||this.$element.data(\"btn\"))&&(this.video_btn.css(\"opacity\",1).css(\"display\",\"block\"),this.video_frame.attr(\"src\",\"about:blank\").css(\"display\",\"none\")),this.needPreload?void this.img.css(\"opacity\",1).css(\"display\",\"block\"):void this.video_frame.attr(\"src\",this.video_url)},p.create=function(){_super.create.call(this),this.video_frame=this.$element.find(\"iframe\").css({width:\"100%\",height:\"100%\"}),this.video_url=this.video_frame.attr(\"src\");var has_img=0!=this.$element.has(\"img\").length;if(has_img||this.$element.data(\"btn\")){this.video_frame.attr(\"src\",\"about:blank\").css(\"display\",\"none\");var that=this;if(this.video_btn=$(\"<div></div>\").appendTo(this.$element).addClass(\"ms-video-btn\").click(function(){that.__playVideo()}),has_img){if(this.needPreload=!0,this.img=this.$element.find(\"img:first\").addClass(\"ms-video-img\"),void 0!==this.img.data(\"src\"))this.img_src=this.img.data(\"src\"),this.img.removeAttr(\"data-src\");else{var that=this;this.img.attr(\"src\",this.img_src).on(\"load\",function(){that.controller.preloadCount--,0===that.controller.preloadCount&&that.controller._onlayersReady()}).each($.jqLoadFix)}$.browser.msie&&this.img.on(\"dragstart\",function(event){event.preventDefault()})}}},p.loadImage=function(){var that=this;this.img.preloadImg(this.img_src,function(){that.controller.preloadCount--,0===that.controller.preloadCount&&that.controller._onlayersReady()})}}(jQuery),function($){\"use strict\";window.MSHotspotLayer=function(){MSLayerElement.call(this),this.__cssConfig=[\"margin-top\",\"padding-top\",\"margin-bottom\",\"padding-left\",\"margin-right\",\"padding-right\",\"margin-left\",\"padding-bottom\",\"left\",\"right\",\"top\",\"bottom\"],this.ease=\"Expo\",this.hide_start=!0,this.type=\"hotspot\"},MSHotspotLayer.extend(MSLayerElement);var p=MSHotspotLayer.prototype,_super=MSLayerElement.prototype;p._showTT=function(){this.show_cl&&(clearTimeout(this.hto),this._tween&&this._tween.stop(!0),this.hide_start&&(this.align=this._orgAlign,this._locateTT(),this.tt.css({display:\"block\"}),this._tween=CTween.animate(this.tt,900,this.to,{ease:\"easeOut\"+this.ease}),this.hide_start=!1))},p._hideTT=function(){if(this.show_cl){this._tween&&this._tween.stop(!0);var that=this;clearTimeout(this.hto),this.hto=setTimeout(function(){that.hide_start=!0,that._tween=CTween.animate(that.tt,900,that.from,{ease:\"easeOut\"+that.ease,complete:function(){that.tt.css(\"display\",\"none\")}})},200)}},p._updateClassName=function(name){this._lastClass&&this.tt.removeClass(this._lastClass),this.tt.addClass(name),this._lastClass=name},p._alignPolicy=function(){{var w=(this.tt.outerHeight(!1),Math.max(this.tt.outerWidth(!1),parseInt(this.tt.css(\"max-width\")))),ww=window.innerWidth;window.innerHeight}switch(this.align){case\"top\":if(this.base_t<0)return\"bottom\";break;case\"right\":if(this.base_l+w>ww||this.base_t<0)return\"bottom\";break;case\"left\":if(this.base_l<0||this.base_t<0)return\"bottom\"}return null},p._locateTT=function(){var os=this.$element.offset(),os2=this.slide.slider.$element.offset(),dist=50,space=15;this.pos_x=os.left-os2.left-this.slide.slider.$element.scrollLeft(),this.pos_y=os.top-os2.top-this.slide.slider.$element.scrollTop(),this.from={opacity:0},this.to={opacity:1},this._updateClassName(\"ms-tooltip-\"+this.align),this.tt_arrow.css(\"margin-left\",\"\");var arrow_w=15,arrow_h=15;switch(this.align){case\"top\":var w=Math.min(this.tt.outerWidth(!1),parseInt(this.tt.css(\"max-width\")));this.base_t=this.pos_y-this.tt.outerHeight(!1)-arrow_h-space,this.base_l=this.pos_x-w/2,this.base_l+w>window.innerWidth&&(this.tt_arrow.css(\"margin-left\",-arrow_w/2+this.base_l+w-window.innerWidth+\"px\"),this.base_l=window.innerWidth-w),this.base_l<0&&(this.base_l=0,this.tt_arrow.css(\"margin-left\",-arrow_w/2+this.pos_x-this.tt.outerWidth(!1)/2+\"px\")),window._css3d?(this.from[window._jcsspfx+\"Transform\"]=\"translateY(-\"+dist+\"px)\",this.to[window._jcsspfx+\"Transform\"]=\"\"):(this.from.top=this.base_t-dist+\"px\",this.to.top=this.base_t+\"px\");break;case\"bottom\":var w=Math.min(this.tt.outerWidth(!1),parseInt(this.tt.css(\"max-width\")));this.base_t=this.pos_y+arrow_h+space,this.base_l=this.pos_x-w/2,this.base_l+w>window.innerWidth&&(this.tt_arrow.css(\"margin-left\",-arrow_w/2+this.base_l+w-window.innerWidth+\"px\"),this.base_l=window.innerWidth-w),this.base_l<0&&(this.base_l=0,this.tt_arrow.css(\"margin-left\",-arrow_w/2+this.pos_x-this.tt.outerWidth(!1)/2+\"px\")),window._css3d?(this.from[window._jcsspfx+\"Transform\"]=\"translateY(\"+dist+\"px)\",this.to[window._jcsspfx+\"Transform\"]=\"\"):(this.from.top=this.base_t+dist+\"px\",this.to.top=this.base_t+\"px\");break;case\"right\":this.base_l=this.pos_x+arrow_w+space,this.base_t=this.pos_y-this.tt.outerHeight(!1)/2,window._css3d?(this.from[window._jcsspfx+\"Transform\"]=\"translateX(\"+dist+\"px)\",this.to[window._jcsspfx+\"Transform\"]=\"\"):(this.from.left=this.base_l+dist+\"px\",this.to.left=this.base_l+\"px\");break;case\"left\":this.base_l=this.pos_x-arrow_w-this.tt.outerWidth(!1)-space,this.base_t=this.pos_y-this.tt.outerHeight(!1)/2,window._css3d?(this.from[window._jcsspfx+\"Transform\"]=\"translateX(-\"+dist+\"px)\",this.to[window._jcsspfx+\"Transform\"]=\"\"):(this.from.left=this.base_l-dist+\"px\",this.to.left=this.base_l+\"px\")}var policyAlign=this._alignPolicy();return null!==policyAlign?(this.align=policyAlign,void this._locateTT()):(this.tt.css(\"top\",parseInt(this.base_t)+\"px\").css(\"left\",parseInt(this.base_l)+\"px\"),void this.tt.css(this.from))},p.start=function(){_super.start.call(this),this.tt.appendTo(this.slide.slider.$element),this.tt.css(\"display\",\"none\")},p.reset=function(){_super.reset.call(this),this.tt.detach()},p.create=function(){var that=this;this._orgAlign=this.align=void 0!==this.$element.data(\"align\")?this.$element.data(\"align\"):\"top\",this.data=this.$element.html(),this.$element.html(\"\").on(\"mouseenter\",function(){that._showTT()}).on(\"mouseleave\",function(){that._hideTT()}),this.point=$('<div><div class=\"ms-point-center\"></div><div class=\"ms-point-border\"></div></div>').addClass(\"ms-tooltip-point\").appendTo(this.$element);var link=this.$element.data(\"link\"),target=this.$element.data(\"target\");link&&this.point.on(\"click\",function(){window.open(link,target||\"_self\")}),this.tt=$(\"<div></div>\").addClass(\"ms-tooltip\").css(\"display\",\"hidden\").css(\"opacity\",0),void 0!==this.$element.data(\"width\")&&this.tt.css(\"width\",this.$element.data(\"width\")).css(\"max-width\",this.$element.data(\"width\")),this.tt_arrow=$(\"<div></div>\").addClass(\"ms-tooltip-arrow\").appendTo(this.tt),this._updateClassName(\"ms-tooltip-\"+this.align),this.ttcont=$(\"<div></div>\").addClass(\"ms-tooltip-cont\").html(this.data).appendTo(this.tt),this.$element.data(\"stay-hover\")===!0&&this.tt.on(\"mouseenter\",function(){that.hide_start||(clearTimeout(that.hto),that._tween.stop(!0),that._showTT())}).on(\"mouseleave\",function(){that._hideTT()}),_super.create.call(this)}}(jQuery),function(){window.MSButtonLayer=function(){MSLayerElement.call(this),this.type=\"button\"},MSButtonLayer.extend(MSLayerElement);var p=MSButtonLayer.prototype,_super=MSLayerElement.prototype,positionKies=[\"top\",\"left\",\"bottom\",\"right\"];p.create=function(){_super.create.call(this),this.$element.wrap('<div class=\"ms-btn-container\"></div>').css(\"position\",\"relative\"),this.$container=this.$element.parent()},p.locate=function(){_super.locate.call(this);for(var key,tempValue,i=0;4>i;i++)key=positionKies[i],key in this.baseStyle&&(tempValue=this.$element.css(key),this.$element.css(key,\"\"),this.$container.css(key,tempValue));this.$container.width(this.$element.outerWidth(!0)).height(this.$element.outerHeight(!0))}}(jQuery),window.MSSliderEvent=function(type){this.type=type},MSSliderEvent.CHANGE_START=\"ms_changestart\",MSSliderEvent.CHANGE_END=\"ms_changeend\",MSSliderEvent.WAITING=\"ms_waiting\",MSSliderEvent.AUTOPLAY_CHANGE=\"ms_autoplaychange\",MSSliderEvent.VIDEO_PLAY=\"ms_videoPlay\",MSSliderEvent.VIDEO_CLOSE=\"ms_videoclose\",MSSliderEvent.INIT=\"ms_init\",MSSliderEvent.HARD_UPDATE=\"ms_hard_update\",MSSliderEvent.RESIZE=\"ms_resize\",MSSliderEvent.RESERVED_SPACE_CHANGE=\"ms_rsc\",MSSliderEvent.DESTROY=\"ms_destroy\",function(window,document,$){\"use strict\";window.MSSlide=function(){this.$element=null,this.$loading=$(\"<div></div>\").addClass(\"ms-slide-loading\"),this.view=null,this.index=-1,this.__width=0,this.__height=0,this.fillMode=\"fill\",this.selected=!1,this.pselected=!1,this.autoAppend=!0,this.isSleeping=!0,this.moz=$.browser.mozilla};var p=MSSlide.prototype;p.onSwipeStart=function(){this.link&&(this.linkdis=!0),this.video&&(this.videodis=!0)},p.onSwipeMove=function(e){var move=Math.max(Math.abs(e.data.distanceX),Math.abs(e.data.distanceY));this.swipeMoved=move>4},p.onSwipeCancel=function(){return this.swipeMoved?void(this.swipeMoved=!1):(this.link&&(this.linkdis=!1),void(this.video&&(this.videodis=!1)))},p.setupLayerController=function(){this.hasLayers=!0,this.layerController=new MSLayerController(this)},p.assetsLoaded=function(){this.ready=!0,this.slider.api._startTimer(),(this.selected||this.pselected&&this.slider.options.instantStartLayers)&&(this.hasLayers&&this.layerController.showLayers(),this.vinit&&(this.bgvideo.play(),this.autoPauseBgVid||(this.bgvideo.currentTime=0))),this.isSleeping||this.setupBG(),CTween.fadeOut(this.$loading,300,!0),(0===this.slider.options.preload||\"all\"===this.slider.options.preload)&&this.index<this.view.slideList.length-1?this.view.slideList[this.index+1].loadImages():\"all\"===this.slider.options.preload&&this.index===this.view.slideList.length-1&&this.slider._removeLoading()},p.setBG=function(img){this.hasBG=!0;var that=this;this.$imgcont=$(\"<div></div>\").addClass(\"ms-slide-bgcont\"),this.$element.append(this.$loading).append(this.$imgcont),this.$bg_img=$(img).css(\"visibility\",\"hidden\"),this.$imgcont.append(this.$bg_img),this.bgAligner=new MSAligner(that.fillMode,that.$imgcont,that.$bg_img),this.bgAligner.widthOnly=this.slider.options.autoHeight,that.slider.options.autoHeight&&(that.pselected||that.selected)&&that.slider.setHeight(that.slider.options.height),void 0!==this.$bg_img.data(\"src\")?(this.bg_src=this.$bg_img.data(\"src\"),this.$bg_img.removeAttr(\"data-src\")):this.$bg_img.one(\"load\",function(event){that._onBGLoad(event)}).each($.jqLoadFix)},p.setupBG=function(){!this.initBG&&this.bgLoaded&&(this.initBG=!0,this.$bg_img.css(\"visibility\",\"\"),this.bgWidth=this.bgNatrualWidth||this.$bg_img.width(),this.bgHeight=this.bgNatrualHeight||this.$bg_img.height(),CTween.fadeIn(this.$imgcont,300),this.slider.options.autoHeight&&this.$imgcont.height(this.bgHeight*this.ratio),this.bgAligner.init(this.bgWidth,this.bgHeight),this.setSize(this.__width,this.__height),this.slider.options.autoHeight&&(this.pselected||this.selected)&&this.slider.setHeight(this.getHeight()))},p.loadImages=function(){if(!this.ls){if(this.ls=!0,this.bgvideo&&this.bgvideo.load(),this.hasBG&&this.bg_src){var that=this;this.$bg_img.preloadImg(this.bg_src,function(event){that._onBGLoad(event)})}this.hasLayers&&this.layerController.loadLayers(this._onLayersLoad),this.hasBG||this.hasLayers||this.assetsLoaded()}},p._onLayersLoad=function(){this.layersLoaded=!0,(!this.hasBG||this.bgLoaded)&&this.assetsLoaded()},p._onBGLoad=function(event){this.bgNatrualWidth=event.width,this.bgNatrualHeight=event.height,this.bgLoaded=!0,$.browser.msie&&this.$bg_img.on(\"dragstart\",function(event){event.preventDefault()}),(!this.hasLayers||this.layerController.ready)&&this.assetsLoaded()},p.setBGVideo=function($video){if($video[0].play){if(window._mobile&&!this.slider.options.mobileBGVideo)return void $video.remove();this.bgvideo=$video[0];var that=this;$video.addClass(\"ms-slide-bgvideo\"),$video.data(\"loop\")!==!1&&this.bgvideo.addEventListener(\"ended\",function(){that.bgvideo.play()}),$video.data(\"mute\")!==!1&&(this.bgvideo.muted=!0),$video.data(\"autopause\")===!0&&(this.autoPauseBgVid=!0),this.bgvideo_fillmode=$video.data(\"fill-mode\")||\"fill\",\"none\"!==this.bgvideo_fillmode&&(this.bgVideoAligner=new MSAligner(this.bgvideo_fillmode,this.$element,$video),this.bgvideo.addEventListener(\"loadedmetadata\",function(){that.vinit||(that.vinit=!0,that.video_aspect=that.bgVideoAligner.baseHeight/that.bgVideoAligner.baseWidth,that.bgVideoAligner.init(that.bgvideo.videoWidth,that.bgvideo.videoHeight),that._alignBGVideo(),CTween.fadeIn($(that.bgvideo),200),that.selected&&that.bgvideo.play())})),$video.css(\"opacity\",0),this.$bgvideocont=$(\"<div></div>\").addClass(\"ms-slide-bgvideocont\").append($video),this.hasBG?this.$imgcont.before(this.$bgvideocont):this.$bgvideocont.appendTo(this.$element)}},p._alignBGVideo=function(){this.bgvideo_fillmode&&\"none\"!==this.bgvideo_fillmode&&this.bgVideoAligner.align()},p.setSize=function(width,height,hard){this.__width=width,this.slider.options.autoHeight&&(this.bgLoaded?(this.ratio=this.__width/this.bgWidth,height=Math.floor(this.ratio*this.bgHeight),this.$imgcont.height(height)):(this.ratio=width/this.slider.options.width,height=this.slider.options.height*this.ratio)),this.__height=height,this.$element.width(width).height(height),this.hasBG&&this.bgLoaded&&this.bgAligner.align(),this._alignBGVideo(),this.hasLayers&&this.layerController.setSize(width,height,hard)},p.getHeight=function(){return this.hasBG&&this.bgLoaded?this.bgHeight*this.ratio:Math.max(this.$element[0].clientHeight,this.slider.options.height*this.ratio)},p.__playVideo=function(){this.vplayed||this.videodis||(this.vplayed=!0,this.slider.api.paused||(this.slider.api.pause(),this.roc=!0),this.vcbtn.css(\"display\",\"\"),CTween.fadeOut(this.vpbtn,500,!1),CTween.fadeIn(this.vcbtn,500),CTween.fadeIn(this.vframe,500),this.vframe.css(\"display\",\"block\").attr(\"src\",this.video+\"&autoplay=1\"),this.view.$element.addClass(\"ms-def-cursor\"),this.moz&&this.view.$element.css(\"perspective\",\"none\"),this.view.swipeControl&&this.view.swipeControl.disable(),this.slider.slideController.dispatchEvent(new MSSliderEvent(MSSliderEvent.VIDEO_PLAY)))},p.__closeVideo=function(){if(this.vplayed){this.vplayed=!1,this.roc&&this.slider.api.resume();var that=this;CTween.fadeIn(this.vpbtn,500),CTween.animate(this.vcbtn,500,{opacity:0},{complete:function(){that.vcbtn.css(\"display\",\"none\")}}),CTween.animate(this.vframe,500,{opacity:0},{complete:function(){that.vframe.attr(\"src\",\"about:blank\").css(\"display\",\"none\")}}),this.moz&&this.view.$element.css(\"perspective\",\"\"),this.view.swipeControl&&this.view.swipeControl.enable(),this.view.$element.removeClass(\"ms-def-cursor\"),this.slider.slideController.dispatchEvent(new MSSliderEvent(MSSliderEvent.VIDEO_CLOSE))}},p.create=function(){var that=this;this.hasLayers&&this.layerController.create(),this.link&&this.link.addClass(\"ms-slide-link\").html(\"\").click(function(e){that.linkdis&&e.preventDefault()}),this.video&&(-1===this.video.indexOf(\"?\")&&(this.video+=\"?\"),this.vframe=$(\"<iframe></iframe>\").addClass(\"ms-slide-video\").css({width:\"100%\",height:\"100%\",display:\"none\"}).attr(\"src\",\"about:blank\").attr(\"allowfullscreen\",\"true\").appendTo(this.$element),this.vpbtn=$(\"<div></div>\").addClass(\"ms-slide-vpbtn\").click(function(){that.__playVideo()}).appendTo(this.$element),this.vcbtn=$(\"<div></div>\").addClass(\"ms-slide-vcbtn\").click(function(){that.__closeVideo()}).appendTo(this.$element).css(\"display\",\"none\"),window._touch&&this.vcbtn.removeClass(\"ms-slide-vcbtn\").addClass(\"ms-slide-vcbtn-mobile\").append('<div class=\"ms-vcbtn-txt\">Close video</div>').appendTo(this.view.$element.parent())),!this.slider.options.autoHeight&&this.hasBG&&(this.$imgcont.css(\"height\",\"100%\"),(\"center\"===this.fillMode||\"stretch\"===this.fillMode)&&(this.fillMode=\"fill\")),this.slider.options.autoHeight&&this.$element.addClass(\"ms-slide-auto-height\"),this.sleep(!0)},p.destroy=function(){this.hasLayers&&(this.layerController.destroy(),this.layerController=null),this.$element.remove(),this.$element=null},p.prepareToSelect=function(){this.pselected||this.selected||(this.pselected=!0,(this.link||this.video)&&(this.view.addEventListener(MSViewEvents.SWIPE_START,this.onSwipeStart,this),this.view.addEventListener(MSViewEvents.SWIPE_MOVE,this.onSwipeMove,this),this.view.addEventListener(MSViewEvents.SWIPE_CANCEL,this.onSwipeCancel,this),this.linkdis=!1,this.swipeMoved=!1),this.loadImages(),this.hasLayers&&this.layerController.prepareToShow(),this.ready&&(this.bgvideo&&this.bgvideo.play(),this.hasLayers&&this.slider.options.instantStartLayers&&this.layerController.showLayers()),this.moz&&this.$element.css(\"margin-top\",\"\"))},p.select=function(){this.selected||(this.selected=!0,this.pselected=!1,this.$element.addClass(\"ms-sl-selected\"),this.hasLayers&&(this.slider.options.autoHeight&&this.layerController.updateHeight(),this.slider.options.instantStartLayers||this.layerController.showLayers()),this.ready&&this.bgvideo&&this.bgvideo.play(),this.videoAutoPlay&&(this.videodis=!1,this.vpbtn.trigger(\"click\")))},p.unselect=function(){this.pselected=!1,this.moz&&this.$element.css(\"margin-top\",\"0.1px\"),(this.link||this.video)&&(this.view.removeEventListener(MSViewEvents.SWIPE_START,this.onSwipeStart,this),this.view.removeEventListener(MSViewEvents.SWIPE_MOVE,this.onSwipeMove,this),this.view.removeEventListener(MSViewEvents.SWIPE_CANCEL,this.onSwipeCancel,this)),this.bgvideo&&(this.bgvideo.pause(),!this.autoPauseBgVid&&this.vinit&&(this.bgvideo.currentTime=0)),this.hasLayers&&this.layerController.hideLayers(),this.selected&&(this.selected=!1,this.$element.removeClass(\"ms-sl-selected\"),this.video&&this.vplayed&&(this.__closeVideo(),this.roc=!1))},p.sleep=function(force){(!this.isSleeping||force)&&(this.isSleeping=!0,this.autoAppend&&this.$element.detach(),this.hasLayers&&this.layerController.onSlideSleep())},p.wakeup=function(){this.isSleeping&&(this.isSleeping=!1,this.autoAppend&&this.view.$slideCont.append(this.$element),this.moz&&this.$element.css(\"margin-top\",\"0.1px\"),this.setupBG(),this.hasBG&&this.bgAligner.align(),this.hasLayers&&this.layerController.onSlideWakeup())}}(window,document,jQuery),function($){\"use strict\";var SliderViewList={};window.MSSlideController=function(slider){this._delayProgress=0,this._timer=new averta.Timer(100),this._timer.onTimer=this.onTimer,this._timer.refrence=this,this.currentSlide=null,this.slider=slider,this.so=slider.options,averta.EventDispatcher.call(this)},MSSlideController.registerView=function(name,_class){if(name in SliderViewList)throw new Error(name+\", is already registered.\");SliderViewList[name]=_class},MSSlideController.SliderControlList={},MSSlideController.registerControl=function(name,_class){if(name in MSSlideController.SliderControlList)throw new Error(name+\", is already registered.\");MSSlideController.SliderControlList[name]=_class};var p=MSSlideController.prototype;p.setupView=function(){var that=this;this.resize_listener=function(){that.__resize()};var viewOptions={spacing:this.so.space,mouseSwipe:this.so.mouse,loop:this.so.loop,autoHeight:this.so.autoHeight,swipe:this.so.swipe,speed:this.so.speed,dir:this.so.dir,viewNum:this.so.inView,critMargin:this.so.critMargin};this.so.viewOptions&&$.extend(viewOptions,this.so.viewOptions),this.so.autoHeight&&(this.so.heightLimit=!1);var viewClass=SliderViewList[this.slider.options.view]||MSBasicView;if(!viewClass._3dreq||window._css3d&&!$.browser.msie||(viewClass=viewClass._fallback||MSBasicView),this.view=new viewClass(viewOptions),this.so.overPause){var that=this;this.slider.$element.mouseenter(function(){that.is_over=!0,that._stopTimer()}).mouseleave(function(){that.is_over=!1,that._startTimer()})}},p.onChangeStart=function(){this.change_started=!0,this.currentSlide&&this.currentSlide.unselect(),this.currentSlide=this.view.currentSlide,this.currentSlide.prepareToSelect(),this.so.endPause&&this.currentSlide.index===this.slider.slides.length-1&&(this.pause(),this.skipTimer()),this.so.autoHeight&&this.slider.setHeight(this.currentSlide.getHeight()),this.so.deepLink&&this.__updateWindowHash(),this.dispatchEvent(new MSSliderEvent(MSSliderEvent.CHANGE_START))},p.onChangeEnd=function(){if(this.change_started=!1,this._startTimer(),this.currentSlide.select(),this.so.preload>1){var loc,i,slide,l=this.so.preload-1;for(i=1;l>=i;++i){if(loc=this.view.index+i,loc>=this.view.slideList.length){if(!this.so.loop){i=l;continue}loc-=this.view.slideList.length}slide=this.view.slideList[loc],slide&&slide.loadImages()}for(l>this.view.slideList.length/2&&(l=Math.floor(this.view.slideList.length/2)),i=1;l>=i;++i){if(loc=this.view.index-i,0>loc){if(!this.so.loop){i=l;continue}loc=this.view.slideList.length+loc}slide=this.view.slideList[loc],slide&&slide.loadImages()}}this.dispatchEvent(new MSSliderEvent(MSSliderEvent.CHANGE_END))},p.onSwipeStart=function(){this.skipTimer()},p.skipTimer=function(){this._timer.reset(),this._delayProgress=0,this.dispatchEvent(new MSSliderEvent(MSSliderEvent.WAITING))},p.onTimer=function(){if(this._timer.getTime()>=1e3*this.view.currentSlide.delay&&(this.skipTimer(),this.view.next(),this.hideCalled=!1),this._delayProgress=this._timer.getTime()/(10*this.view.currentSlide.delay),this.so.hideLayers&&!this.hideCalled&&1e3*this.view.currentSlide.delay-this._timer.getTime()<=300){var currentSlide=this.view.currentSlide;currentSlide.hasLayers&&currentSlide.layerController.animHideLayers(),this.hideCalled=!0}this.dispatchEvent(new MSSliderEvent(MSSliderEvent.WAITING))},p._stopTimer=function(){this._timer&&this._timer.stop()},p._startTimer=function(){this.paused||this.is_over||!this.currentSlide||!this.currentSlide.ready||this.change_started||this._timer.start()},p.__appendSlides=function(){var slide,loc,i=0,l=this.view.slideList.length-1;for(i;l>i;++i)slide=this.view.slideList[i],slide.detached||(slide.$element.detach(),slide.detached=!0);for(this.view.appendSlide(this.view.slideList[this.view.index]),l=3,i=1;l>=i;++i){if(loc=this.view.index+i,loc>=this.view.slideList.length){if(!this.so.loop){i=l;continue}loc-=this.view.slideList.length}slide=this.view.slideList[loc],slide.detached=!1,this.view.appendSlide(slide)}for(l>this.view.slideList.length/2&&(l=Math.floor(this.view.slideList.length/2)),i=1;l>=i;++i){if(loc=this.view.index-i,0>loc){if(!this.so.loop){i=l;continue}loc=this.view.slideList.length+loc}slide=this.view.slideList[loc],slide.detached=!1,this.view.appendSlide(slide)}},p.__resize=function(hard){this.created&&(this.width=this.slider.$element[0].clientWidth||this.so.width,this.so.fullwidth||(this.width=Math.min(this.width,this.so.width)),this.so.fullheight?(this.so.heightLimit=!1,this.so.autoHeight=!1,this.height=this.slider.$element[0].clientHeight):this.height=this.width/this.slider.aspect,this.so.autoHeight?(this.currentSlide.setSize(this.width,null,hard),this.view.setSize(this.width,this.currentSlide.getHeight(),hard)):this.view.setSize(this.width,Math.max(this.so.minHeight,this.so.heightLimit?Math.min(this.height,this.so.height):this.height),hard),this.slider.$controlsCont&&this.so.centerControls&&this.so.fullwidth&&this.view.$element.css(\"left\",Math.min(0,-(this.slider.$element[0].clientWidth-this.so.width)/2)+\"px\"),this.dispatchEvent(new MSSliderEvent(MSSliderEvent.RESIZE)))},p.__dispatchInit=function(){this.dispatchEvent(new MSSliderEvent(MSSliderEvent.INIT))},p.__updateWindowHash=function(){var hash=window.location.hash,dl=this.so.deepLink,dlt=this.so.deepLinkType,eq=\"path\"===dlt?\"/\":\"=\",sep=\"path\"===dlt?\"/\":\"&\",sliderHash=dl+eq+(this.view.index+1),regTest=new RegExp(dl+eq+\"[0-9]+\",\"g\");window.location.hash=\"\"===hash?sep+sliderHash:regTest.test(hash)?hash.replace(regTest,sliderHash):hash+sep+sliderHash},p.__curentSlideInHash=function(){var hash=window.location.hash,dl=this.so.deepLink,dlt=this.so.deepLinkType,eq=\"path\"===dlt?\"/\":\"=\",regTest=new RegExp(dl+eq+\"[0-9]+\",\"g\");if(regTest.test(hash)){var index=Number(hash.match(regTest)[0].match(/[0-9]+/g).pop());if(!isNaN(index))return index-1}return-1},p.__onHashChanged=function(){var index=this.__curentSlideInHash();-1!==index&&this.gotoSlide(index)},p.__findLayerById=function(layerId){if(!this.currentSlide)return null;var layer;return this.currentSlide.layerController&&(layer=this.currentSlide.layerController.getLayerById(layerId)),!layer&&this.slider.overlayLayers?this.slider.overlayLayers.layerController.getLayerById(layerId):layer},p.setup=function(){this.created=!0,this.paused=!this.so.autoplay,this.view.addEventListener(MSViewEvents.CHANGE_START,this.onChangeStart,this),this.view.addEventListener(MSViewEvents.CHANGE_END,this.onChangeEnd,this),this.view.addEventListener(MSViewEvents.SWIPE_START,this.onSwipeStart,this),this.currentSlide=this.view.slideList[this.so.start-1],this.__resize();var slideInHash=this.__curentSlideInHash(),startSlide=-1!==slideInHash?slideInHash:this.so.start-1;if(this.view.create(startSlide),0===this.so.preload&&this.view.slideList[0].loadImages(),this.scroller=this.view.controller,this.so.wheel){var that=this,last_time=(new Date).getTime();this.wheellistener=function(event){var e=window.event||event.orginalEvent||event;e.preventDefault();var current_time=(new Date).getTime();if(!(400>current_time-last_time)){last_time=current_time;var delta=Math.abs(e.detail||e.wheelDelta);$.browser.mozilla&&(delta*=100);var scrollThreshold=15;return e.detail<0||e.wheelDelta>0?delta>=scrollThreshold&&that.previous(!0):delta>=scrollThreshold&&that.next(!0),!1\r\n}},$.browser.mozilla?this.slider.$element[0].addEventListener(\"DOMMouseScroll\",this.wheellistener):this.slider.$element.bind(\"mousewheel\",this.wheellistener)}0===this.slider.$element[0].clientWidth&&(this.slider.init_safemode=!0),this.__resize();var that=this;this.so.deepLink&&$(window).on(\"hashchange\",function(){that.__onHashChanged()})},p.index=function(){return this.view.index},p.count=function(){return this.view.slidesCount},p.next=function(checkLoop){this.skipTimer(),this.view.next(checkLoop)},p.previous=function(checkLoop){this.skipTimer(),this.view.previous(checkLoop)},p.gotoSlide=function(index){index=Math.min(index,this.count()-1),this.skipTimer(),this.view.gotoSlide(index)},p.destroy=function(reset){this.dispatchEvent(new MSSliderEvent(MSSliderEvent.DESTROY)),this.slider.destroy(reset)},p._destroy=function(){this._timer.reset(),this._timer=null,$(window).unbind(\"resize\",this.resize_listener),this.view.destroy(),this.view=null,this.so.wheel&&($.browser.mozilla?this.slider.$element[0].removeEventListener(\"DOMMouseScroll\",this.wheellistener):this.slider.$element.unbind(\"mousewheel\",this.wheellistener),this.wheellistener=null),this.so=null},p.runAction=function(action){var actionParams=[];if(-1!==action.indexOf(\"(\")){var temp=action.slice(0,action.indexOf(\"(\"));actionParams=action.slice(action.indexOf(\"(\")+1,-1).replace(/\\\"|\\'|\\s/g,\"\").split(\",\"),action=temp}action in this?this[action].apply(this,actionParams):console},p.update=function(hard){this.slider.init_safemode&&hard&&(this.slider.init_safemode=!1),this.__resize(hard),hard&&this.dispatchEvent(new MSSliderEvent(MSSliderEvent.HARD_UPDATE))},p.locate=function(){this.__resize()},p.resume=function(){this.paused&&(this.paused=!1,this._startTimer())},p.pause=function(){this.paused||(this.paused=!0,this._stopTimer())},p.currentTime=function(){return this._delayProgress},p.showLayer=function(layerId,delay){var layer=this.__findLayerById(layerId);layer&&(delay?(clearTimeout(layer.actionTimeout),layer.actionTimeout=setTimeout(this.showLayer,delay,layerId,0)):layer.start())},p.hideLayer=function(layerId,delay){var layer=this.__findLayerById(layerId);layer&&(delay?(clearTimeout(layer.actionTimeout),layer.actionTimeout=setTimeout(this.hideLayer,delay,layerId,0)):layer.hide())},p.toggleLayer=function(layerId,delay){var layer=this.__findLayerById(layerId);layer&&(delay?(clearTimeout(layer.actionTimeout),layer.actionTimeout=setTimeout(this.toggleLayer,delay,layerId,0)):layer.isShowing?layer.hide():layer.start())},p.showLayers=function(layerIds,delay){var self=this;$.each(layerIds.replace(/\\s+/g,\"\").split(\"|\"),function(index,layerId){self.showLayer(layerId,delay)})},p.hideLayers=function(layerIds,delay){var self=this;$.each(layerIds.replace(/\\s+/g,\"\").split(\"|\"),function(index,layerId){self.hideLayer(layerId,delay)})},p.toggleLayers=function(layerIds,delay){var self=this;$.each(layerIds.replace(/\\s+/g,\"\").split(\"|\"),function(index,layerId){self.toggleLayer(layerId,delay)})},averta.EventDispatcher.extend(p)}(jQuery),function($){\"use strict\";var LayerTypes={image:MSImageLayerElement,text:MSLayerElement,video:MSVideoLayerElement,hotspot:MSHotspotLayer,button:MSButtonLayer};window.MasterSlider=function(){this.options={forceInit:!0,autoplay:!1,loop:!1,mouse:!0,swipe:!0,grabCursor:!0,space:0,fillMode:\"fill\",start:1,view:\"basic\",width:300,height:150,inView:15,critMargin:1,mobileBGVideo:!1,heightLimit:!0,smoothHeight:!0,autoHeight:!1,minHeight:-1,fullwidth:!1,fullheight:!1,autofill:!1,layersMode:\"center\",hideLayers:!1,endPause:!1,centerControls:!0,overPause:!0,shuffle:!1,speed:17,dir:\"h\",preload:0,wheel:!1,layout:\"boxed\",autofillTarget:null,fullscreenMargin:0,instantStartLayers:!1,parallaxMode:\"mouse\",rtl:!1,deepLink:null,deepLinkType:\"path\",disablePlugins:[]},this.slides=[],this.activePlugins=[],this.$element=null,this.lastMargin=0,this.leftSpace=0,this.topSpace=0,this.rightSpace=0,this.bottomSpace=0,this._holdOn=0;var that=this;this.resize_listener=function(){that._resize()},$(window).bind(\"resize\",this.resize_listener)},MasterSlider.author=\"Averta Ltd. (www.averta.net)\",MasterSlider.version=\"2.50.0\",MasterSlider.releaseDate=\"Aug 2016\",MasterSlider._plugins=[];var MS=MasterSlider;MS.registerPlugin=function(plugin){-1===MS._plugins.indexOf(plugin)&&MS._plugins.push(plugin)};var p=MasterSlider.prototype;p.__setupSlides=function(){var new_slide,that=this,ind=0;this.$element.children(\".ms-slide\").each(function(){var $slide_ele=$(this);new_slide=new MSSlide,new_slide.$element=$slide_ele,new_slide.slider=that,new_slide.delay=void 0!==$slide_ele.data(\"delay\")?$slide_ele.data(\"delay\"):3,new_slide.fillMode=void 0!==$slide_ele.data(\"fill-mode\")?$slide_ele.data(\"fill-mode\"):that.options.fillMode,new_slide.index=ind++,new_slide.id=$slide_ele.data(\"id\");var slide_img=$slide_ele.children(\"img:not(.ms-layer)\");slide_img.length>0&&new_slide.setBG(slide_img[0]);var slide_video=$slide_ele.children(\"video\");if(slide_video.length>0&&new_slide.setBGVideo(slide_video),that.controls)for(var i=0,l=that.controls.length;l>i;++i)that.controls[i].slideAction(new_slide);$slide_ele.children(\"a\").each(function(){var $this=$(this);\"video\"===this.getAttribute(\"data-type\")?(new_slide.video=this.getAttribute(\"href\"),new_slide.videoAutoPlay=$this.data(\"autoplay\"),$this.remove()):$this.hasClass(\"ms-layer\")||(new_slide.link=$(this))});that.__createSlideLayers(new_slide,$slide_ele.find(\".ms-layer\")),that.slides.push(new_slide),that.slideController.view.addSlide(new_slide)})},p._setupOverlayLayers=function(){var self=this,$ollayers=this.$element.children(\".ms-overlay-layers\").eq(0);if($ollayers.length){var overlayLayers=new MSOverlayLayers(this);overlayLayers.$element=$ollayers,self.__createSlideLayers(overlayLayers,$ollayers.find(\".ms-layer\")),this.view.$element.prepend($ollayers),this.overlayLayers=overlayLayers,overlayLayers.create()}},p.__createSlideLayers=function(slide,layers){0!=layers.length&&(slide.setupLayerController(),layers.each(function(index,domEle){var $parent_ele,$layer_element=$(this);\"A\"===domEle.nodeName&&\"image\"===$layer_element.find(\">img\").data(\"type\")&&($parent_ele=$(this),$layer_element=$parent_ele.find(\"img\"));var layer=new(LayerTypes[$layer_element.data(\"type\")||\"text\"]);layer.$element=$layer_element,layer.link=$parent_ele,layer.id=layer.$element.data(\"id\"),layer.waitForAction=layer.$element.data(\"wait\"),layer.masked=layer.$element.data(\"masked\"),layer.maskWidth=layer.$element.data(\"mask-width\"),layer.maskHeight=layer.$element.data(\"mask-height\");var eff_parameters={},end_eff_parameters={};void 0!==$layer_element.data(\"effect\")&&(eff_parameters.name=$layer_element.data(\"effect\")),void 0!==$layer_element.data(\"ease\")&&(eff_parameters.ease=$layer_element.data(\"ease\")),void 0!==$layer_element.data(\"duration\")&&(eff_parameters.duration=$layer_element.data(\"duration\")),void 0!==$layer_element.data(\"delay\")&&(eff_parameters.delay=$layer_element.data(\"delay\")),$layer_element.data(\"hide-effect\")&&(end_eff_parameters.name=$layer_element.data(\"hide-effect\")),$layer_element.data(\"hide-ease\")&&(end_eff_parameters.ease=$layer_element.data(\"hide-ease\")),void 0!==$layer_element.data(\"hide-duration\")&&(end_eff_parameters.duration=$layer_element.data(\"hide-duration\")),void 0!==$layer_element.data(\"hide-time\")&&(end_eff_parameters.time=$layer_element.data(\"hide-time\")),layer.setStartAnim(eff_parameters),layer.setEndAnim(end_eff_parameters),slide.layerController.addLayer(layer)}))},p._removeLoading=function(){$(window).unbind(\"resize\",this.resize_listener),this.$element.removeClass(\"before-init\").css(\"visibility\",\"visible\").css(\"height\",\"\").css(\"opacity\",0),CTween.fadeIn(this.$element),this.$loading.remove(),this.slideController&&this.slideController.__resize()},p._resize=function(){if(this.$loading){var h=this.$loading[0].clientWidth/this.aspect;h=this.options.heightLimit?Math.min(h,this.options.height):h,this.$loading.height(h),this.$element.height(h)}},p._shuffleSlides=function(){for(var r,slides=this.$element.children(\".ms-slide\"),i=0,l=slides.length;l>i;++i)r=Math.floor(Math.random()*(l-1)),i!=r&&(this.$element[0].insertBefore(slides[i],slides[r]),slides=this.$element.children(\".ms-slide\"))},p._setupSliderLayout=function(){this._updateSideMargins(),this.lastMargin=this.leftSpace;var lo=this.options.layout;\"boxed\"!==lo&&\"partialview\"!==lo&&(this.options.fullwidth=!0),(\"fullscreen\"===lo||\"autofill\"===lo)&&(this.options.fullheight=!0,\"autofill\"===lo&&(this.$autofillTarget=$(this.options.autofillTarget),0===this.$autofillTarget.length&&(this.$autofillTarget=this.$element.parent()))),\"partialview\"===lo&&this.$element.addClass(\"ms-layout-partialview\"),(\"fullscreen\"===lo||\"fullwidth\"===lo||\"autofill\"===lo)&&($(window).bind(\"resize\",{that:this},this._updateLayout),this._updateLayout()),$(window).bind(\"resize\",this.slideController.resize_listener)},p._updateLayout=function(event){var that=event?event.data.that:this,lo=that.options.layout,$element=that.$element,$win=$(window);if(\"fullscreen\"===lo)document.body.style.overflow=\"hidden\",$element.height($win.height()-that.options.fullscreenMargin-that.topSpace-that.bottomSpace),document.body.style.overflow=\"\";else if(\"autofill\"===lo)return void $element.height(that.$autofillTarget.height()-that.options.fullscreenMargin-that.topSpace-that.bottomSpace).width(that.$autofillTarget.width()-that.leftSpace-that.rightSpace);$element.width($win.width()-that.leftSpace-that.rightSpace);var margin=-$element.offset().left+that.leftSpace+that.lastMargin;$element.css(\"margin-left\",margin),that.lastMargin=margin},p._init=function(){if(!(this._holdOn>0)&&this._docReady){if(this.initialized=!0,\"all\"!==this.options.preload&&this._removeLoading(),this.options.shuffle&&this._shuffleSlides(),MSLayerEffects.setup(),this.slideController.setupView(),this.view=this.slideController.view,this.$controlsCont=$(\"<div></div>\").addClass(\"ms-inner-controls-cont\"),this.options.centerControls&&this.$controlsCont.css(\"max-width\",this.options.width+\"px\"),this.$controlsCont.prepend(this.view.$element),this.$msContainer=$(\"<div></div>\").addClass(\"ms-container\").prependTo(this.$element).append(this.$controlsCont),this.controls)for(var i=0,l=this.controls.length;l>i;++i)this.controls[i].setup();if(this._setupSliderLayout(),this.__setupSlides(),this.slideController.setup(),this._setupOverlayLayers(),this.controls)for(i=0,l=this.controls.length;l>i;++i)this.controls[i].create();if(this.options.autoHeight&&this.slideController.view.$element.height(this.slideController.currentSlide.getHeight()),this.options.swipe&&!window._touch&&this.options.grabCursor&&this.options.mouse){var $view=this.view.$element;$view.mousedown(function(){$view.removeClass(\"ms-grab-cursor\"),$view.addClass(\"ms-grabbing-cursor\"),$.browser.msie&&window.ms_grabbing_curosr&&($view[0].style.cursor=\"url(\"+window.ms_grabbing_curosr+\"), move\")}).addClass(\"ms-grab-cursor\"),$(document).mouseup(function(){$view.removeClass(\"ms-grabbing-cursor\"),$view.addClass(\"ms-grab-cursor\"),$.browser.msie&&window.ms_grab_curosr&&($view[0].style.cursor=\"url(\"+window.ms_grab_curosr+\"), move\")})}this.slideController.__dispatchInit()}},p.setHeight=function(value){this.options.smoothHeight?(this.htween&&(this.htween.reset?this.htween.reset():this.htween.stop(!0)),this.htween=CTween.animate(this.slideController.view.$element,500,{height:value},{ease:\"easeOutQuart\"})):this.slideController.view.$element.height(value)},p.reserveSpace=function(side,space){var sideSpace=side+\"Space\",pos=this[sideSpace];return this[sideSpace]+=space,this._updateSideMargins(),pos},p._updateSideMargins=function(){this.$element.css(\"margin\",this.topSpace+\"px \"+this.rightSpace+\"px \"+this.bottomSpace+\"px \"+this.leftSpace+\"px\")},p._realignControls=function(){this.rightSpace=this.leftSpace=this.topSpace=this.bottomSpace=0,this._updateSideMargins(),this.api.dispatchEvent(new MSSliderEvent(MSSliderEvent.RESERVED_SPACE_CHANGE))},p.control=function(control,options){if(control in MSSlideController.SliderControlList){this.controls||(this.controls=[]);var ins=new MSSlideController.SliderControlList[control](options);return ins.slider=this,this.controls.push(ins),this}},p.holdOn=function(){this._holdOn++},p.release=function(){this._holdOn--,this._init()},p.setup=function(target,options){if(this.$element=\"string\"==typeof target?$(\"#\"+target):target.eq(0),this.setupMarkup=this.$element.html(),0!==this.$element.length){this.$element.addClass(\"master-slider\").addClass(\"before-init\"),$.browser.msie?this.$element.addClass(\"ms-ie\").addClass(\"ms-ie\"+$.browser.version.slice(0,$.browser.version.indexOf(\".\"))):$.browser.webkit?this.$element.addClass(\"ms-wk\"):$.browser.mozilla&&this.$element.addClass(\"ms-moz\");var ua=navigator.userAgent.toLowerCase(),isAndroid=ua.indexOf(\"android\")>-1;isAndroid&&this.$element.addClass(\"ms-android\");var that=this;$.extend(this.options,options),this.aspect=this.options.width/this.options.height,this.$loading=$(\"<div></div>\").addClass(\"ms-loading-container\").insertBefore(this.$element).append($(\"<div></div>\").addClass(\"ms-loading\")),this.$loading.parent().css(\"position\",\"relative\"),this.options.autofill&&(this.options.fullwidth=!0,this.options.fullheight=!0),this.options.fullheight&&this.$element.addClass(\"ms-fullheight\"),this._resize(),this.slideController=new MSSlideController(this),this.api=this.slideController;for(var i=0,l=MS._plugins.length;i!==l;i++){var plugin=MS._plugins[i];-1===this.options.disablePlugins.indexOf(plugin.name)&&this.activePlugins.push(new plugin(this))}return this.options.forceInit&&MasterSlider.addJQReadyErrorCheck(this),$(document).ready(function(){that.initialized||(that._docReady=!0,that._init())}),this}},p.destroy=function(insertMarkup){for(var i=0,l=this.activePlugins.length;i!==l;i++)this.activePlugins[i].destroy();if(this.controls)for(i=0,l=this.controls.length;i!==l;i++)this.controls[i].destroy();this.slideController&&this.slideController._destroy(),this.$loading&&this.$loading.remove(),insertMarkup?this.$element.html(this.setupMarkup).css(\"visibility\",\"hidden\"):this.$element.remove();var lo=this.options.layout;(\"fullscreen\"===lo||\"fullwidth\"===lo)&&$(window).unbind(\"resize\",this._updateLayout),this.view=null,this.slides=null,this.options=null,this.slideController=null,this.api=null,this.resize_listener=null,this.activePlugins=null}}(jQuery),function($,window,document,undefined){function MasterSliderPlugin(element,options){this.element=element,this.$element=$(element),this.settings=$.extend({},defaults,options),this._defaults=defaults,this._name=pluginName,this.init()}var pluginName=\"masterslider\",defaults={controls:{}};$.extend(MasterSliderPlugin.prototype,{init:function(){var self=this;this._slider=new MasterSlider;for(var control in this.settings.controls)this._slider.control(control,this.settings.controls[control]);this._slider.setup(this.$element,this.settings);var _superDispatch=this._slider.api.dispatchEvent;this._slider.api.dispatchEvent=function(event){self.$element.trigger(event.type),_superDispatch.call(this,event)}},api:function(){return this._slider.api},slider:function(){return this._slider}}),$.fn[pluginName]=function(options){var args=arguments,plugin=\"plugin_\"+pluginName;if(options===undefined||\"object\"==typeof options)return this.each(function(){$.data(this,plugin)||$.data(this,plugin,new MasterSliderPlugin(this,options))});if(\"string\"==typeof options&&\"_\"!==options[0]&&\"init\"!==options){var returns;return this.each(function(){var instance=$.data(this,plugin);instance instanceof MasterSliderPlugin&&\"function\"==typeof instance[options]&&(returns=instance[options].apply(instance,Array.prototype.slice.call(args,1))),instance instanceof MasterSliderPlugin&&\"function\"==typeof instance._slider.api[options]&&(returns=instance._slider.api[options].apply(instance._slider.api,Array.prototype.slice.call(args,1))),\"destroy\"===options&&$.data(this,plugin,null)}),returns!==undefined?returns:this}}}(jQuery,window,document),function($,window){\"use strict\";var sliderInstances=[];MasterSlider.addJQReadyErrorCheck=function(slider){sliderInstances.push(slider)};var _ready=$.fn.ready,_onerror=window.onerror;$.fn.ready=function(){return window.onerror=function(){if(0!==sliderInstances.length)for(var i=0,l=sliderInstances.length;i!==l;i++){var slider=sliderInstances[i];slider.initialized||(slider._docReady=!0,slider._init())}return _onerror?_onerror.apply(this,arguments):!1},_ready.apply(this,arguments)}}(jQuery,window,document),window.MSViewEvents=function(type,data){this.type=type,this.data=data},MSViewEvents.SWIPE_START=\"swipeStart\",MSViewEvents.SWIPE_END=\"swipeEnd\",MSViewEvents.SWIPE_MOVE=\"swipeMove\",MSViewEvents.SWIPE_CANCEL=\"swipeCancel\",MSViewEvents.SCROLL=\"scroll\",MSViewEvents.CHANGE_START=\"slideChangeStart\",MSViewEvents.CHANGE_END=\"slideChangeEnd\",function($){\"use strict\";window.MSBasicView=function(options){this.options={loop:!1,dir:\"h\",autoHeight:!1,spacing:5,mouseSwipe:!0,swipe:!0,speed:17,minSlideSpeed:2,viewNum:20,critMargin:1},$.extend(this.options,options),this.dir=this.options.dir,this.loop=this.options.loop,this.spacing=this.options.spacing,this.__width=0,this.__height=0,this.__cssProb=\"h\"===this.dir?\"left\":\"top\",this.__offset=\"h\"===this.dir?\"offsetLeft\":\"offsetTop\",this.__dimension=\"h\"===this.dir?\"__width\":\"__height\",this.__translate_end=window._css3d?\" translateZ(0px)\":\"\",this.$slideCont=$(\"<div></div>\").addClass(\"ms-slide-container\"),this.$element=$(\"<div></div>\").addClass(\"ms-view\").addClass(\"ms-basic-view\").append(this.$slideCont),this.currentSlide=null,this.index=-1,this.slidesCount=0,this.slides=[],this.slideList=[],this.viewSlidesList=[],this.css3=window._cssanim,this.start_buffer=0,this.firstslide_snap=0,this.slideChanged=!1,this.controller=new Controller(0,0,{snapping:!0,snapsize:100,paging:!0,snappingMinSpeed:this.options.minSlideSpeed,friction:(100-.5*this.options.speed)/100,endless:this.loop}),this.controller.renderCallback(\"h\"===this.dir?this._horizUpdate:this._vertiUpdate,this),this.controller.snappingCallback(this.__snapUpdate,this),this.controller.snapCompleteCallback(this.__snapCompelet,this),averta.EventDispatcher.call(this)};var p=MSBasicView.prototype;p.__snapCompelet=function(){this.slideChanged&&(this.slideChanged=!1,this.__locateSlides(),this.start_buffer=0,this.dispatchEvent(new MSViewEvents(MSViewEvents.CHANGE_END)))},p.__snapUpdate=function(controller,snap,change){if(this.loop){var target_index=this.index+change;this.updateLoop(target_index),target_index>=this.slidesCount&&(target_index-=this.slidesCount),0>target_index&&(target_index=this.slidesCount+target_index),this.index=target_index}else{if(0>snap||snap>=this.slidesCount)return;this.index=snap}this._checkCritMargins(),$.browser.mozilla&&(this.slideList[this.index].$element[0].style.marginTop=\"0.1px\",this.currentSlide&&(this.currentSlide.$element[0].style.marginTop=\"\"));var new_slide=this.slideList[this.index];new_slide!==this.currentSlide&&(this.currentSlide=new_slide,this.autoUpdateZIndex&&this.__updateSlidesZindex(),this.slideChanged=!0,this.dispatchEvent(new MSViewEvents(MSViewEvents.CHANGE_START)))},p._checkCritMargins=function(){if(!this.normalMode){var hlf=Math.floor(this.options.viewNum/2),inView=this.viewSlidesList.indexOf(this.slideList[this.index]),size=this[this.__dimension]+this.spacing,cm=this.options.critMargin;return this.loop?void((cm>=inView||inView>=this.viewSlidesList.length-cm)&&(size*=inView-hlf,this.__locateSlides(!1,size+this.start_buffer),this.start_buffer+=size)):void((cm>inView&&this.index>=cm||inView>=this.viewSlidesList.length-cm&&this.index<this.slidesCount-cm)&&this.__locateSlides(!1))}},p._vertiUpdate=function(controller,value){return this.__contPos=value,this.dispatchEvent(new MSViewEvents(MSViewEvents.SCROLL)),this.css3?void(this.$slideCont[0].style[window._jcsspfx+\"Transform\"]=\"translateY(\"+-value+\"px)\"+this.__translate_end):void(this.$slideCont[0].style.top=-value+\"px\")},p._horizUpdate=function(controller,value){return this.__contPos=value,this.dispatchEvent(new MSViewEvents(MSViewEvents.SCROLL)),this.css3?void(this.$slideCont[0].style[window._jcsspfx+\"Transform\"]=\"translateX(\"+-value+\"px)\"+this.__translate_end):void(this.$slideCont[0].style.left=-value+\"px\")},p.__updateViewList=function(){if(this.normalMode)return void(this.viewSlidesList=this.slides);var temp=this.viewSlidesList.slice();this.viewSlidesList=[];var l,i=0,hlf=Math.floor(this.options.viewNum/2);if(this.loop)for(;i!==this.options.viewNum;i++)this.viewSlidesList.push(this.slides[this.currentSlideLoc-hlf+i]);else{for(i=0;i!==hlf&&this.index-i!==-1;i++)this.viewSlidesList.unshift(this.slideList[this.index-i]);for(i=1;i!==hlf&&this.index+i!==this.slidesCount;i++)this.viewSlidesList.push(this.slideList[this.index+i])}for(i=0,l=temp.length;i!==l;i++)-1===this.viewSlidesList.indexOf(temp[i])&&temp[i].sleep();temp=null,this.currentSlide&&this.__updateSlidesZindex()},p.__locateSlides=function(move,start){this.__updateViewList(),start=this.loop?start||0:this.slides.indexOf(this.viewSlidesList[0])*(this[this.__dimension]+this.spacing);for(var slide,l=this.viewSlidesList.length,i=0;i!==l;i++){var pos=start+i*(this[this.__dimension]+this.spacing);slide=this.viewSlidesList[i],slide.wakeup(),slide.position=pos,slide.$element[0].style[this.__cssProb]=pos+\"px\"}move!==!1&&this.controller.changeTo(this.slideList[this.index].position,!1,null,null,!1)},p.__createLoopList=function(){var return_arr=[],i=0,count=this.slidesCount/2,before_count=this.slidesCount%2===0?count-1:Math.floor(count),after_count=this.slidesCount%2===0?count:Math.floor(count);for(this.currentSlideLoc=before_count,i=1;before_count>=i;++i)return_arr.unshift(this.slideList[this.index-i<0?this.slidesCount-i+this.index:this.index-i]);for(return_arr.push(this.slideList[this.index]),i=1;after_count>=i;++i)return_arr.push(this.slideList[this.index+i>=this.slidesCount?this.index+i-this.slidesCount:this.index+i]);return return_arr},p.__getSteps=function(index,target){var right=index>target?this.slidesCount-index+target:target-index,left=Math.abs(this.slidesCount-right);return left>right?right:-left},p.__pushEnd=function(){var first_slide=this.slides.shift(),last_slide=this.slides[this.slidesCount-2];if(this.slides.push(first_slide),this.normalMode){var pos=last_slide.$element[0][this.__offset]+this.spacing+this[this.__dimension];first_slide.$element[0].style[this.__cssProb]=pos+\"px\",first_slide.position=pos}},p.__pushStart=function(){var last_slide=this.slides.pop(),first_slide=this.slides[0];if(this.slides.unshift(last_slide),this.normalMode){var pos=first_slide.$element[0][this.__offset]-this.spacing-this[this.__dimension];last_slide.$element[0].style[this.__cssProb]=pos+\"px\",last_slide.position=pos}},p.__updateSlidesZindex=function(){{var slide,l=this.viewSlidesList.length;Math.floor(l/2)}if(this.loop)for(var loc=this.viewSlidesList.indexOf(this.currentSlide),i=0;i!==l;i++)slide=this.viewSlidesList[i],this.viewSlidesList[i].$element.css(\"z-index\",loc>=i?i+1:l-i);else{for(var beforeNum=this.currentSlide.index-this.viewSlidesList[0].index,i=0;i!==l;i++)this.viewSlidesList[i].$element.css(\"z-index\",beforeNum>=i?i+1:l-i);this.currentSlide.$element.css(\"z-index\",l)}},p.addSlide=function(slide){slide.view=this,this.slides.push(slide),this.slideList.push(slide),this.slidesCount++},p.appendSlide=function(slide){this.$slideCont.append(slide.$element)},p.updateLoop=function(index){if(this.loop)for(var steps=this.__getSteps(this.index,index),i=0,l=Math.abs(steps);l>i;++i)0>steps?this.__pushStart():this.__pushEnd()},p.gotoSlide=function(index,fast){this.updateLoop(index),this.index=index;var target_slide=this.slideList[index];this._checkCritMargins(),this.controller.changeTo(target_slide.position,!fast,null,null,!1),target_slide!==this.currentSlide&&(this.slideChanged=!0,this.currentSlide=target_slide,this.autoUpdateZIndex&&this.__updateSlidesZindex(),this.dispatchEvent(new MSViewEvents(MSViewEvents.CHANGE_START)),fast&&this.dispatchEvent(new MSViewEvents(MSViewEvents.CHANGE_END)))},p.next=function(checkLoop){return checkLoop&&!this.loop&&this.index+1>=this.slidesCount?void this.controller.bounce(10):void this.gotoSlide(this.index+1>=this.slidesCount?0:this.index+1)},p.previous=function(checkLoop){return checkLoop&&!this.loop&&this.index-1<0?void this.controller.bounce(-10):void this.gotoSlide(this.index-1<0?this.slidesCount-1:this.index-1)},p.setupSwipe=function(){this.swipeControl=new averta.TouchSwipe(this.$element),this.swipeControl.swipeType=\"h\"===this.dir?\"horizontal\":\"vertical\";var that=this;this.swipeControl.onSwipe=\"h\"===this.dir?function(status){that.horizSwipeMove(status)}:function(status){that.vertSwipeMove(status)}},p.vertSwipeMove=function(status){var phase=status.phase;if(\"start\"===phase)this.controller.stop(),this.dispatchEvent(new MSViewEvents(MSViewEvents.SWIPE_START,status));else if(\"move\"===phase&&(!this.loop||Math.abs(this.currentSlide.position-this.controller.value+status.moveY)<this.cont_size/2))this.controller.drag(status.moveY),this.dispatchEvent(new MSViewEvents(MSViewEvents.SWIPE_MOVE,status));else if(\"end\"===phase||\"cancel\"===phase){var speed=status.distanceY/status.duration*50/3,speedh=Math.abs(status.distanceY/status.duration*50/3);Math.abs(speed)>.1&&Math.abs(speed)>=speedh?(this.controller.push(-speed),speed>this.controller.options.snappingMinSpeed&&this.dispatchEvent(new MSViewEvents(MSViewEvents.SWIPE_END,status))):(this.controller.cancel(),this.dispatchEvent(new MSViewEvents(MSViewEvents.SWIPE_CANCEL,status)))}},p.horizSwipeMove=function(status){var phase=status.phase;if(\"start\"===phase)this.controller.stop(),this.dispatchEvent(new MSViewEvents(MSViewEvents.SWIPE_START,status));else if(\"move\"===phase&&(!this.loop||Math.abs(this.currentSlide.position-this.controller.value+status.moveX)<this.cont_size/2))this.controller.drag(status.moveX),this.dispatchEvent(new MSViewEvents(MSViewEvents.SWIPE_MOVE,status));else if(\"end\"===phase||\"cancel\"===phase){var speed=status.distanceX/status.duration*50/3,speedv=Math.abs(status.distanceY/status.duration*50/3);Math.abs(speed)>.1&&Math.abs(speed)>=speedv?(this.controller.push(-speed),speed>this.controller.options.snappingMinSpeed&&this.dispatchEvent(new MSViewEvents(MSViewEvents.SWIPE_END,status))):(this.controller.cancel(),this.dispatchEvent(new MSViewEvents(MSViewEvents.SWIPE_CANCEL,status)))}},p.setSize=function(width,height,hard){if(this.lastWidth!==width||height!==this.lastHeight||hard){this.$element.width(width).height(height);for(var i=0;i<this.slidesCount;++i)this.slides[i].setSize(width,height,hard);this.__width=width,this.__height=height,this.__created&&(this.__locateSlides(),this.cont_size=(this.slidesCount-1)*(this[this.__dimension]+this.spacing),this.loop||(this.controller._max_value=this.cont_size),this.controller.options.snapsize=this[this.__dimension]+this.spacing,this.controller.changeTo(this.currentSlide.position,!1,null,null,!1),this.controller.cancel(),this.lastWidth=width,this.lastHeight=height)}},p.create=function(index){this.__created=!0,this.index=Math.min(index||0,this.slidesCount-1),this.lastSnap=this.index,this.loop&&(this.slides=this.__createLoopList()),this.normalMode=this.slidesCount<=this.options.viewNum;for(var i=0;i<this.slidesCount;++i)this.slides[i].create();this.__locateSlides(),this.controller.options.snapsize=this[this.__dimension]+this.spacing,this.loop||(this.controller._max_value=(this.slidesCount-1)*(this[this.__dimension]+this.spacing)),this.gotoSlide(this.index,!0),this.options.swipe&&(window._touch||this.options.mouseSwipe)&&this.setupSwipe()},p.destroy=function(){if(this.__created){for(var i=0;i<this.slidesCount;++i)this.slides[i].destroy();this.slides=null,this.slideList=null,this.$element.remove(),this.controller.destroy(),this.controller=null}},averta.EventDispatcher.extend(p),MSSlideController.registerView(\"basic\",MSBasicView)}(jQuery),function(){\"use strict\";window.MSWaveView=function(options){MSBasicView.call(this,options),this.$element.removeClass(\"ms-basic-view\").addClass(\"ms-wave-view\"),this.$slideCont.css(window._csspfx+\"transform-style\",\"preserve-3d\"),this.autoUpdateZIndex=!0},MSWaveView.extend(MSBasicView),MSWaveView._3dreq=!0,MSWaveView._fallback=MSBasicView;var p=MSWaveView.prototype,_super=MSBasicView.prototype;p._horizUpdate=function(controller,value){_super._horizUpdate.call(this,controller,value);for(var slide,distance,cont_scroll=-value,i=0;i<this.slidesCount;++i)slide=this.slideList[i],distance=-cont_scroll-slide.position,this.__updateSlidesHoriz(slide,distance)},p._vertiUpdate=function(controller,value){_super._vertiUpdate.call(this,controller,value);for(var slide,distance,cont_scroll=-value,i=0;i<this.slidesCount;++i)slide=this.slideList[i],distance=-cont_scroll-slide.position,this.__updateSlidesVertic(slide,distance)},p.__updateSlidesHoriz=function(slide,distance){var value=Math.abs(100*distance/this.__width);slide.$element.css(window._csspfx+\"transform\",\"translateZ(\"+3*-value+\"px) rotateY(0.01deg)\")},p.__updateSlidesVertic=function(slide,distance){this.__updateSlidesHoriz(slide,distance)},MSSlideController.registerView(\"wave\",MSWaveView)}(jQuery),function(){window.MSFadeBasicView=function(options){MSWaveView.call(this,options),this.$element.removeClass(\"ms-wave-view\").addClass(\"ms-fade-basic-view\")},MSFadeBasicView.extend(MSWaveView);{var p=MSFadeBasicView.prototype;MSFadeBasicView.prototype}p.__updateSlidesHoriz=function(slide,distance){var value=Math.abs(.6*distance/this.__width);value=1-Math.min(value,.6),slide.$element.css(\"opacity\",value)},p.__updateSlidesVertic=function(slide,distance){this.__updateSlidesHoriz(slide,distance)},MSSlideController.registerView(\"fadeBasic\",MSFadeBasicView),MSWaveView._fallback=MSFadeBasicView}(),function(){window.MSFadeWaveView=function(options){MSWaveView.call(this,options),this.$element.removeClass(\"ms-wave-view\").addClass(\"ms-fade-wave-view\")},MSFadeWaveView.extend(MSWaveView),MSFadeWaveView._3dreq=!0,MSFadeWaveView._fallback=MSFadeBasicView;{var p=MSFadeWaveView.prototype;MSWaveView.prototype}p.__updateSlidesHoriz=function(slide,distance){var value=Math.abs(100*distance/this.__width);value=Math.min(value,100),slide.$element.css(\"opacity\",1-value/300),slide.$element[0].style[window._jcsspfx+\"Transform\"]=\"scale(\"+(1-value/800)+\") rotateY(0.01deg) \"},p.__updateSlidesVertic=function(slide,distance){this.__updateSlidesHoriz(slide,distance)},MSSlideController.registerView(\"fadeWave\",MSFadeWaveView)}(),function(){\"use strict\";window.MSFlowView=function(options){MSWaveView.call(this,options),this.$element.removeClass(\"ms-wave-view\").addClass(\"ms-flow-view\")},MSFlowView.extend(MSWaveView),MSFlowView._3dreq=!0,MSFlowView._fallback=MSFadeBasicView;{var p=MSFlowView.prototype;MSWaveView.prototype}p.__updateSlidesHoriz=function(slide,distance){var value=Math.abs(100*distance/this.__width),rvalue=Math.min(.3*value,30)*(0>distance?-1:1),zvalue=1.2*value;slide.$element[0].style[window._jcsspfx+\"Transform\"]=\"translateZ(\"+5*-zvalue+\"px) rotateY(\"+rvalue+\"deg) \"},p.__updateSlidesVertic=function(slide,distance){var value=Math.abs(100*distance/this.__width),rvalue=Math.min(.3*value,30)*(0>distance?-1:1),zvalue=1.2*value;slide.$element[0].style[window._jcsspfx+\"Transform\"]=\"translateZ(\"+5*-zvalue+\"px) rotateX(\"+-rvalue+\"deg) \"},MSSlideController.registerView(\"flow\",MSFlowView)}(jQuery),function(){window.MSFadeFlowView=function(options){MSWaveView.call(this,options),this.$element.removeClass(\"ms-wave-view\").addClass(\"ms-fade-flow-view\")},MSFadeFlowView.extend(MSWaveView),MSFadeFlowView._3dreq=!0;{var p=MSFadeFlowView.prototype;MSWaveView.prototype}p.__calculate=function(distance){var value=Math.min(Math.abs(100*distance/this.__width),100),rvalue=Math.min(.5*value,50)*(0>distance?-1:1);return{value:value,rvalue:rvalue}},p.__updateSlidesHoriz=function(slide,distance){var clc=this.__calculate(distance);slide.$element.css(\"opacity\",1-clc.value/300),slide.$element[0].style[window._jcsspfx+\"Transform\"]=\"translateZ(\"+-clc.value+\"px) rotateY(\"+clc.rvalue+\"deg) \"},p.__updateSlidesVertic=function(slide,distance){var clc=this.__calculate(distance);slide.$element.css(\"opacity\",1-clc.value/300),slide.$element[0].style[window._jcsspfx+\"Transform\"]=\"translateZ(\"+-clc.value+\"px) rotateX(\"+-clc.rvalue+\"deg) \"\r\n},MSSlideController.registerView(\"fadeFlow\",MSFadeFlowView)}(),function($){\"use strict\";window.MSMaskView=function(options){MSBasicView.call(this,options),this.$element.removeClass(\"ms-basic-view\").addClass(\"ms-mask-view\")},MSMaskView.extend(MSBasicView);var p=MSMaskView.prototype,_super=MSBasicView.prototype;p.addSlide=function(slide){slide.view=this,slide.$frame=$(\"<div></div>\").addClass(\"ms-mask-frame\").append(slide.$element),slide.$element[0].style.position=\"relative\",slide.autoAppend=!1,this.slides.push(slide),this.slideList.push(slide),this.slidesCount++},p.setSize=function(width,height){for(var slider=this.slides[0].slider,i=0;i<this.slidesCount;++i)this.slides[i].$frame[0].style.width=width+\"px\",slider.options.autoHeight||(this.slides[i].$frame[0].style.height=height+\"px\");_super.setSize.call(this,width,height)},p._horizUpdate=function(controller,value){_super._horizUpdate.call(this,controller,value);var i=0;if(this.css3)for(i=0;i<this.slidesCount;++i)this.slideList[i].$element[0].style[window._jcsspfx+\"Transform\"]=\"translateX(\"+(value-this.slideList[i].position)+\"px)\"+this.__translate_end;else for(i=0;i<this.slidesCount;++i)this.slideList[i].$element[0].style.left=value-this.slideList[i].position+\"px\"},p._vertiUpdate=function(controller,value){_super._vertiUpdate.call(this,controller,value);var i=0;if(this.css3)for(i=0;i<this.slidesCount;++i)this.slideList[i].$element[0].style[window._jcsspfx+\"Transform\"]=\"translateY(\"+(value-this.slideList[i].position)+\"px)\"+this.__translate_end;else for(i=0;i<this.slidesCount;++i)this.slideList[i].$element[0].style.top=value-this.slideList[i].position+\"px\"},p.__pushEnd=function(){var first_slide=this.slides.shift(),last_slide=this.slides[this.slidesCount-2];if(this.slides.push(first_slide),this.normalMode){var pos=last_slide.$frame[0][this.__offset]+this.spacing+this[this.__dimension];first_slide.$frame[0].style[this.__cssProb]=pos+\"px\",first_slide.position=pos}},p.__pushStart=function(){var last_slide=this.slides.pop(),first_slide=this.slides[0];if(this.slides.unshift(last_slide),this.normalMode){var pos=first_slide.$frame[0][this.__offset]-this.spacing-this[this.__dimension];last_slide.$frame[0].style[this.__cssProb]=pos+\"px\",last_slide.position=pos}},p.__updateViewList=function(){if(this.normalMode)return void(this.viewSlidesList=this.slides);var temp=this.viewSlidesList.slice();this.viewSlidesList=[];var l,i=0,hlf=Math.floor(this.options.viewNum/2);if(this.loop)for(;i!==this.options.viewNum;i++)this.viewSlidesList.push(this.slides[this.currentSlideLoc-hlf+i]);else{for(i=0;i!==hlf&&this.index-i!==-1;i++)this.viewSlidesList.unshift(this.slideList[this.index-i]);for(i=1;i!==hlf&&this.index+i!==this.slidesCount;i++)this.viewSlidesList.push(this.slideList[this.index+i])}for(i=0,l=temp.length;i!==l;i++)-1===this.viewSlidesList.indexOf(temp[i])&&(temp[i].sleep(),temp[i].$frame.detach());temp=null},p.__locateSlides=function(move,start){this.__updateViewList(),start=this.loop?start||0:this.slides.indexOf(this.viewSlidesList[0])*(this[this.__dimension]+this.spacing);for(var slide,l=this.viewSlidesList.length,i=0;i!==l;i++){var pos=start+i*(this[this.__dimension]+this.spacing);if(slide=this.viewSlidesList[i],this.$slideCont.append(slide.$frame),slide.wakeup(!1),slide.position=pos,slide.selected&&slide.bgvideo)try{slide.bgvideo.play()}catch(e){}slide.$frame[0].style[this.__cssProb]=pos+\"px\"}move!==!1&&this.controller.changeTo(this.slideList[this.index].position,!1,null,null,!1)},MSSlideController.registerView(\"mask\",MSMaskView)}(jQuery),function(){\"use strict\";window.MSParallaxMaskView=function(options){MSMaskView.call(this,options),this.$element.removeClass(\"ms-basic-view\").addClass(\"ms-parallax-mask-view\")},MSParallaxMaskView.extend(MSMaskView),MSParallaxMaskView.parallaxAmount=.5;var p=MSParallaxMaskView.prototype,_super=MSBasicView.prototype;p._horizUpdate=function(controller,value){_super._horizUpdate.call(this,controller,value);var i=0;if(this.css3)for(i=0;i<this.slidesCount;++i)this.slideList[i].$element[0].style[window._jcsspfx+\"Transform\"]=\"translateX(\"+(value-this.slideList[i].position)*MSParallaxMaskView.parallaxAmount+\"px)\"+this.__translate_end;else for(i=0;i<this.slidesCount;++i)this.slideList[i].$element[0].style.left=(value-this.slideList[i].position)*MSParallaxMaskView.parallaxAmount+\"px\"},p._vertiUpdate=function(controller,value){_super._vertiUpdate.call(this,controller,value);var i=0;if(this.css3)for(i=0;i<this.slidesCount;++i)this.slideList[i].$element[0].style[window._jcsspfx+\"Transform\"]=\"translateY(\"+(value-this.slideList[i].position)*MSParallaxMaskView.parallaxAmount+\"px)\"+this.__translate_end;else for(i=0;i<this.slidesCount;++i)this.slideList[i].$element[0].style.top=(value-this.slideList[i].position)*MSParallaxMaskView.parallaxAmount+\"px\"},MSSlideController.registerView(\"parallaxMask\",MSParallaxMaskView)}(jQuery),function(){\"use strict\";window.MSFadeView=function(options){MSBasicView.call(this,options),this.$element.removeClass(\"ms-basic-view\").addClass(\"ms-fade-view\"),this.controller.renderCallback(this.__update,this)},MSFadeView.extend(MSBasicView);var p=MSFadeView.prototype,_super=MSBasicView.prototype;p.__update=function(controller,value){for(var slide,distance,cont_scroll=-value,i=0;i<this.slidesCount;++i)slide=this.slideList[i],distance=-cont_scroll-slide.position,this.__updateSlides(slide,distance)},p.__updateSlides=function(slide,distance){var value=Math.abs(distance/this[this.__dimension]);0>=1-value?slide.$element.fadeTo(0,0).css(\"visibility\",\"hidden\"):slide.$element.fadeTo(0,1-value).css(\"visibility\",\"\")},p.__locateSlides=function(move,start){this.__updateViewList(),start=this.loop?start||0:this.slides.indexOf(this.viewSlidesList[0])*(this[this.__dimension]+this.spacing);for(var slide,l=this.viewSlidesList.length,i=0;i!==l;i++){var pos=start+i*this[this.__dimension];slide=this.viewSlidesList[i],slide.wakeup(),slide.position=pos}move!==!1&&this.controller.changeTo(this.slideList[this.index].position,!1,null,null,!1)},p.__pushEnd=function(){var first_slide=this.slides.shift(),last_slide=this.slides[this.slidesCount-2];this.slides.push(first_slide),first_slide.position=last_slide.position+this[this.__dimension]},p.__pushStart=function(){var last_slide=this.slides.pop(),first_slide=this.slides[0];this.slides.unshift(last_slide),last_slide.position=first_slide.position-this[this.__dimension]},p.create=function(index){_super.create.call(this,index),this.spacing=0,this.controller.options.minValidDist=10},MSSlideController.registerView(\"fade\",MSFadeView)}(jQuery),function(){\"use strict\";window.MSScaleView=function(options){MSBasicView.call(this,options),this.$element.removeClass(\"ms-basic-view\").addClass(\"ms-scale-view\"),this.controller.renderCallback(this.__update,this)},MSScaleView.extend(MSFadeView);var p=MSScaleView.prototype,_super=MSFadeView.prototype;p.__updateSlides=function(slide,distance){var value=Math.abs(distance/this[this.__dimension]),element=slide.$element[0];0>=1-value?(element.style.opacity=0,element.style.visibility=\"hidden\",element.style[window._jcsspfx+\"Transform\"]=\"\"):(element.style.opacity=1-value,element.style.visibility=\"\",element.style[window._jcsspfx+\"Transform\"]=\"perspective(2000px) translateZ(\"+value*(0>distance?-.5:.5)*300+\"px)\")},p.create=function(index){_super.create.call(this,index),this.controller.options.minValidDist=.03},MSSlideController.registerView(\"scale\",MSScaleView)}(jQuery),function(){\"use strict\";window.MSStackView=function(options){MSBasicView.call(this,options),this.$element.removeClass(\"ms-basic-view\").addClass(\"ms-stack-view\"),this.controller.renderCallback(this.__update,this),this.autoUpdateZIndex=!0},MSStackView.extend(MSFadeView),MSStackView._3dreq=!0,MSStackView._fallback=MSFadeView;var p=MSStackView.prototype,_super=MSFadeView.prototype;p.__updateSlidesZindex=function(){for(var slide,l=this.viewSlidesList.length,i=0;i!==l;i++)slide=this.viewSlidesList[i],this.viewSlidesList[i].$element.css(\"z-index\",l-i)},p.__updateSlides=function(slide,distance){var value=Math.abs(distance/this[this.__dimension]),element=slide.$element[0];0>=1-value?(element.style.opacity=1,element.style.visibility=\"hidden\",element.style[window._jcsspfx+\"Transform\"]=\"\"):(element.style.visibility=\"\",element.style[window._jcsspfx+\"Transform\"]=0>distance?\"perspective(2000px) translateZ(\"+-300*value+\"px)\":this.__translate+\"(\"+-value*this[this.__dimension]+\"px)\")},p.create=function(index){_super.create.call(this,index),this.controller.options.minValidDist=.03,this.__translate=\"h\"===this.dir?\"translateX\":\"translateY\"},MSSlideController.registerView(\"stack\",MSStackView)}(jQuery),function(){\"use strict\";var perspective=2e3;window.MSFocusView=function(options){MSWaveView.call(this,options),this.$element.removeClass(\"ms-wave-view\").addClass(\"ms-focus-view\"),this.options.centerSpace=this.options.centerSpace||1},MSFocusView.extend(MSWaveView),MSFocusView._3dreq=!0,MSFocusView._fallback=MSFadeBasicView;{var p=MSFocusView.prototype;MSWaveView.prototype}p.__calcview=function(z,w){var a=w/2*z/(z+perspective);return a*(z+perspective)/perspective},p.__updateSlidesHoriz=function(slide,distance){var value=Math.abs(100*distance/this.__width);value=15*-Math.min(value,100),slide.$element.css(window._csspfx+\"transform\",\"translateZ(\"+(value+1)+\"px) rotateY(0.01deg) translateX(\"+(0>distance?1:-1)*-this.__calcview(value,this.__width)*this.options.centerSpace+\"px)\")},p.__updateSlidesVertic=function(slide,distance){var value=Math.abs(100*distance/this.__width);value=15*-Math.min(value,100),slide.$element.css(window._csspfx+\"transform\",\"translateZ(\"+(value+1)+\"px) rotateY(0.01deg) translateY(\"+(0>distance?1:-1)*-this.__calcview(value,this.__width)*this.options.centerSpace+\"px)\")},MSSlideController.registerView(\"focus\",MSFocusView)}(),function(){window.MSPartialWaveView=function(options){MSWaveView.call(this,options),this.$element.removeClass(\"ms-wave-view\").addClass(\"ms-partial-wave-view\")},MSPartialWaveView.extend(MSWaveView),MSPartialWaveView._3dreq=!0,MSPartialWaveView._fallback=MSFadeBasicView;{var p=MSPartialWaveView.prototype;MSWaveView.prototype}p.__updateSlidesHoriz=function(slide,distance){var value=Math.abs(100*distance/this.__width);slide.hasBG&&slide.$bg_img.css(\"opacity\",(100-Math.abs(120*distance/this.__width/3))/100),slide.$element.css(window._csspfx+\"transform\",\"translateZ(\"+3*-value+\"px) rotateY(0.01deg) translateX(\"+.75*distance+\"px)\")},p.__updateSlidesVertic=function(slide,distance){var value=Math.abs(100*distance/this.__width);slide.hasBG&&slide.$bg_img.css(\"opacity\",(100-Math.abs(120*distance/this.__width/3))/100),slide.$element.css(window._csspfx+\"transform\",\"translateZ(\"+3*-value+\"px) rotateY(0.01deg) translateY(\"+.75*distance+\"px)\")},MSSlideController.registerView(\"partialWave\",MSPartialWaveView)}(),function(){\"use strict\";window.MSBoxView=function(options){MSBasicView.call(this,options),this.$element.removeClass(\"ms-basic-view\").addClass(\"ms-box-view\"),this.controller.renderCallback(this.__update,this)},MSBoxView.extend(MSFadeView),MSBoxView._3dreq=!0;var p=MSBoxView.prototype,_super=MSFadeView.prototype;p.__updateSlides=function(slide,distance){var value=Math.abs(distance/this[this.__dimension]),element=slide.$element[0];0>=1-value?(element.style.visibility=\"hidden\",element.style[window._jcsspfx+\"Transform\"]=\"\"):(element.style.visibility=\"\",element.style[window._jcsspfx+\"Transform\"]=\"rotate\"+this._rotateDir+\"(\"+value*(0>distance?1:-1)*90*this._calcFactor+\"deg)\",element.style[window._jcsspfx+\"TransformOrigin\"]=\"50% 50% -\"+slide[this.__dimension]/2+\"px\",element.style.zIndex=Math.ceil(2*(1-value)))},p.create=function(index){_super.create.call(this,index),this.controller.options.minValidDist=.03,this._rotateDir=\"h\"===this.options.dir?\"Y\":\"X\",this._calcFactor=\"h\"===this.options.dir?1:-1},MSSlideController.registerView(\"box\",MSBoxView)}(jQuery),function($){\"use strict\";var BaseControl=function(){this.options={prefix:\"ms-\",autohide:!0,overVideo:!0,customClass:null}},p=BaseControl.prototype;p.slideAction=function(){},p.setup=function(){this.cont=this.options.insertTo?$(this.options.insertTo):this.slider.$controlsCont,this.options.overVideo||this._hideOnvideoStarts()},p.checkHideUnder=function(){this.options.hideUnder&&(this.needsRealign=!this.options.insetTo&&(\"left\"===this.options.align||\"right\"===this.options.align)&&this.options.inset===!1,$(window).bind(\"resize\",{that:this},this.onResize),this.onResize())},p.onResize=function(event){var that=event&&event.data.that||this,w=window.innerWidth;w<=that.options.hideUnder&&!that.detached?(that.hide(!0),that.detached=!0,that.onDetach()):w>=that.options.hideUnder&&that.detached&&(that.detached=!1,that.visible(),that.onAppend())},p.create=function(){this.options.autohide&&(this.hide(!0),this.slider.$controlsCont.mouseenter($.proxy(this._onMouseEnter,this)).mouseleave($.proxy(this._onMouseLeave,this)).mousedown($.proxy(this._onMouseDown,this)),this.$element&&this.$element.mouseenter($.proxy(this._onMouseEnter,this)).mouseleave($.proxy(this._onMouseLeave,this)).mousedown($.proxy(this._onMouseDown,this)),$(document).mouseup($.proxy(this._onMouseUp,this))),this.options.align&&this.$element.addClass(\"ms-align-\"+this.options.align),this.options.customClass&&this.$element&&this.$element.addClass(this.options.customClass)},p._onMouseEnter=function(){this._disableAH||this.mdown||this.visible(),this.mleave=!1},p._onMouseLeave=function(){this.mdown||this.hide(),this.mleave=!0},p._onMouseDown=function(){this.mdown=!0},p._onMouseUp=function(){this.mdown&&this.mleave&&this.hide(),this.mdown=!1},p.onAppend=function(){this.needsRealign&&this.slider._realignControls()},p.onDetach=function(){this.needsRealign&&this.slider._realignControls()},p._hideOnvideoStarts=function(){var that=this;this.slider.api.addEventListener(MSSliderEvent.VIDEO_PLAY,function(){that._disableAH=!0,that.hide()}),this.slider.api.addEventListener(MSSliderEvent.VIDEO_CLOSE,function(){that._disableAH=!1,that.visible()})},p.hide=function(fast){if(fast)this.$element.css(\"opacity\",0),this.$element.css(\"display\",\"none\");else{clearTimeout(this.hideTo);var $element=this.$element;this.hideTo=setTimeout(function(){CTween.fadeOut($element,400,!1)},20)}this.$element.addClass(\"ms-ctrl-hide\")},p.visible=function(){this.detached||(clearTimeout(this.hideTo),this.$element.css(\"display\",\"\"),CTween.fadeIn(this.$element,400,!1),this.$element.removeClass(\"ms-ctrl-hide\"))},p.destroy=function(){this.options&&this.options.hideUnder&&$(window).unbind(\"resize\",this.onResize)},window.BaseControl=BaseControl}(jQuery),function($){\"use strict\";var MSArrows=function(options){BaseControl.call(this),$.extend(this.options,options)};MSArrows.extend(BaseControl);var p=MSArrows.prototype,_super=BaseControl.prototype;p.setup=function(){var that=this;this.$next=$(\"<div></div>\").addClass(this.options.prefix+\"nav-next\").bind(\"click\",function(){that.slider.api.next(!0)}),this.$prev=$(\"<div></div>\").addClass(this.options.prefix+\"nav-prev\").bind(\"click\",function(){that.slider.api.previous(!0)}),_super.setup.call(this),this.cont.append(this.$next),this.cont.append(this.$prev),this.checkHideUnder()},p.hide=function(fast){return fast?(this.$prev.css(\"opacity\",1).css(\"display\",\"block\"),void this.$next.css(\"opacity\",1).css(\"display\",\"block\")):(CTween.fadeIn(this.$prev,400,!1),CTween.fadeIn(this.$next,400,!1),this.$prev.addClass(\"ms-ctrl-hide\"),void this.$next.addClass(\"ms-ctrl-hide\"))},p.visible=function(){this.detached||(CTween.fadeIn(this.$prev,400),CTween.fadeIn(this.$next,400),this.$prev.removeClass(\"ms-ctrl-hide\").css(\"display\",\"\"),this.$next.removeClass(\"ms-ctrl-hide\").css(\"display\",\"\"))},p.destroy=function(){_super.destroy(),this.$next.remove(),this.$prev.remove()},window.MSArrows=MSArrows,MSSlideController.registerControl(\"arrows\",MSArrows)}(jQuery),function($){\"use strict\";var MSThumblist=function(options){BaseControl.call(this),this.options.dir=\"h\",this.options.wheel=\"v\"===options.dir,this.options.arrows=!1,this.options.speed=17,this.options.align=null,this.options.inset=!1,this.options.margin=10,this.options.space=10,this.options.width=100,this.options.height=100,this.options.type=\"thumbs\",this.options.hover=!1,$.extend(this.options,options),this.thumbs=[],this.index_count=0,this.__dimen=\"h\"===this.options.dir?\"width\":\"height\",this.__alignsize=\"h\"===this.options.dir?\"height\":\"width\",this.__jdimen=\"h\"===this.options.dir?\"outerWidth\":\"outerHeight\",this.__pos=\"h\"===this.options.dir?\"left\":\"top\",this.click_enable=!0};MSThumblist.extend(BaseControl);var p=MSThumblist.prototype,_super=BaseControl.prototype;p.setup=function(){if(this.$element=$(\"<div></div>\").addClass(this.options.prefix+\"thumb-list\"),\"tabs\"===this.options.type&&this.$element.addClass(this.options.prefix+\"tabs\"),this.$element.addClass(\"ms-dir-\"+this.options.dir),_super.setup.call(this),this.$element.appendTo(this.slider.$controlsCont===this.cont?this.slider.$element:this.cont),this.$thumbscont=$(\"<div></div>\").addClass(\"ms-thumbs-cont\").appendTo(this.$element),this.options.arrows){var that=this;this.$fwd=$(\"<div></div>\").addClass(\"ms-thumblist-fwd\").appendTo(this.$element).click(function(){that.controller.push(-15)}),this.$bwd=$(\"<div></div>\").addClass(\"ms-thumblist-bwd\").appendTo(this.$element).click(function(){that.controller.push(15)})}if(!this.options.insetTo&&this.options.align){var align=this.options.align;this.options.inset?this.$element.css(align,this.options.margin):\"top\"===align?this.$element.detach().prependTo(this.slider.$element).css({\"margin-bottom\":this.options.margin,position:\"relative\"}):\"bottom\"===align?this.$element.css({\"margin-top\":this.options.margin,position:\"relative\"}):(this.slider.api.addEventListener(MSSliderEvent.RESERVED_SPACE_CHANGE,this.align,this),this.align()),\"v\"===this.options.dir?this.$element.width(this.options.width):this.$element.height(this.options.height)}this.checkHideUnder()},p.align=function(){if(!this.detached){var align=this.options.align,pos=this.slider.reserveSpace(align,this.options[this.__alignsize]+2*this.options.margin);this.$element.css(align,-pos-this.options[this.__alignsize]-this.options.margin)}},p.slideAction=function(slide){var thumb_ele=slide.$element.find(\".ms-thumb\"),that=this,thumb_frame=$(\"<div></div>\").addClass(\"ms-thumb-frame\").append(thumb_ele).append($('<div class=\"ms-thumb-ol\"></div>')).bind(this.options.hover?\"hover\":\"click\",function(){that.changeSlide(thumb_frame)});if(this.options.align&&thumb_frame.width(this.options.width-(\"v\"===this.options.dir&&\"tabs\"===this.options.type?12:0)).height(this.options.height).css(\"margin-\"+(\"v\"===this.options.dir?\"bottom\":\"right\"),this.options.space),thumb_frame[0].index=this.index_count++,this.$thumbscont.append(thumb_frame),this.options.fillMode&&thumb_ele.is(\"img\")){var aligner=new window.MSAligner(this.options.fillMode,thumb_frame,thumb_ele);thumb_ele[0].aligner=aligner,thumb_ele.one(\"load\",function(){var $this=$(this);$this[0].aligner.init($this.width(),$this.height()),$this[0].aligner.align()}).each($.jqLoadFix)}$.browser.msie&&thumb_ele.on(\"dragstart\",function(event){event.preventDefault()}),this.thumbs.push(thumb_frame)},p.create=function(){_super.create.call(this),this.__translate_end=window._css3d?\" translateZ(0px)\":\"\",this.controller=new Controller(0,0,{snappingMinSpeed:2,friction:(100-.5*this.options.speed)/100}),this.controller.renderCallback(\"h\"===this.options.dir?this._hMove:this._vMove,this);var that=this;this.resize_listener=function(){that.__resize()},$(window).bind(\"resize\",this.resize_listener),this.thumbSize=this.thumbs[0][this.__jdimen](!0),this.setupSwipe(),this.__resize();var that=this;this.options.wheel&&(this.wheellistener=function(event){var e=window.event||event.orginalEvent||event,delta=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail));return that.controller.push(10*-delta),!1},$.browser.mozilla?this.$element[0].addEventListener(\"DOMMouseScroll\",this.wheellistener):this.$element.bind(\"mousewheel\",this.wheellistener)),this.slider.api.addEventListener(MSSliderEvent.CHANGE_START,this.update,this),this.slider.api.addEventListener(MSSliderEvent.HARD_UPDATE,this.realignThumbs,this),this.cindex=this.slider.api.index(),this.select(this.thumbs[this.cindex])},p._hMove=function(controller,value){return this.__contPos=value,window._cssanim?void(this.$thumbscont[0].style[window._jcsspfx+\"Transform\"]=\"translateX(\"+-value+\"px)\"+this.__translate_end):void(this.$thumbscont[0].style.left=-value+\"px\")},p._vMove=function(controller,value){return this.__contPos=value,window._cssanim?void(this.$thumbscont[0].style[window._jcsspfx+\"Transform\"]=\"translateY(\"+-value+\"px)\"+this.__translate_end):void(this.$thumbscont[0].style.top=-value+\"px\")},p.setupSwipe=function(){this.swipeControl=new averta.TouchSwipe(this.$element),this.swipeControl.swipeType=\"h\"===this.options.dir?\"horizontal\":\"vertical\";var that=this;this.swipeControl.onSwipe=\"h\"===this.options.dir?function(status){that.horizSwipeMove(status)}:function(status){that.vertSwipeMove(status)}},p.vertSwipeMove=function(status){if(!this.dTouch){var phase=status.phase;if(\"start\"===phase)this.controller.stop();else if(\"move\"===phase)this.controller.drag(status.moveY);else if(\"end\"===phase||\"cancel\"===phase){var speed=Math.abs(status.distanceY/status.duration*50/3);speed>.1?this.controller.push(-status.distanceY/status.duration*50/3):(this.click_enable=!0,this.controller.cancel())}}},p.horizSwipeMove=function(status){if(!this.dTouch){var phase=status.phase;if(\"start\"===phase)this.controller.stop(),this.click_enable=!1;else if(\"move\"===phase)this.controller.drag(status.moveX);else if(\"end\"===phase||\"cancel\"===phase){var speed=Math.abs(status.distanceX/status.duration*50/3);speed>.1?this.controller.push(-status.distanceX/status.duration*50/3):(this.click_enable=!0,this.controller.cancel())}}},p.update=function(){var nindex=this.slider.api.index();this.cindex!==nindex&&(null!=this.cindex&&this.unselect(this.thumbs[this.cindex]),this.cindex=nindex,this.select(this.thumbs[this.cindex]),this.dTouch||this.updateThumbscroll())},p.realignThumbs=function(){this.$element.find(\".ms-thumb\").each(function(index,thumb){thumb.aligner&&thumb.aligner.align()})},p.updateThumbscroll=function(){var pos=this.thumbSize*this.cindex;if(0/0==this.controller.value&&(this.controller.value=0),pos-this.controller.value<0)return void this.controller.gotoSnap(this.cindex,!0);if(pos+this.thumbSize-this.controller.value>this.$element[this.__dimen]()){var first_snap=this.cindex-Math.floor(this.$element[this.__dimen]()/this.thumbSize)+1;return void this.controller.gotoSnap(first_snap,!0)}},p.changeSlide=function(thumb){this.click_enable&&this.cindex!==thumb[0].index&&this.slider.api.gotoSlide(thumb[0].index)},p.unselect=function(ele){ele.removeClass(\"ms-thumb-frame-selected\")},p.select=function(ele){ele.addClass(\"ms-thumb-frame-selected\")},p.__resize=function(){var size=this.$element[this.__dimen]();if(this.ls!==size){this.ls=size,this.thumbSize=this.thumbs[0][this.__jdimen](!0);var len=this.slider.api.count()*this.thumbSize;this.$thumbscont[0].style[this.__dimen]=len+\"px\",size>=len?(this.dTouch=!0,this.controller.stop(),this.$thumbscont[0].style[this.__pos]=.5*(size-len)+\"px\",this.$thumbscont[0].style[window._jcsspfx+\"Transform\"]=\"\"):(this.dTouch=!1,this.click_enable=!0,this.$thumbscont[0].style[this.__pos]=\"\",this.controller._max_value=len-size,this.controller.options.snapsize=this.thumbSize,this.updateThumbscroll())}},p.destroy=function(){_super.destroy(),this.options.wheel&&($.browser.mozilla?this.$element[0].removeEventListener(\"DOMMouseScroll\",this.wheellistener):this.$element.unbind(\"mousewheel\",this.wheellistener),this.wheellistener=null),$(window).unbind(\"resize\",this.resize_listener),this.$element.remove(),this.slider.api.removeEventListener(MSSliderEvent.RESERVED_SPACE_CHANGE,this.align,this),this.slider.api.removeEventListener(MSSliderEvent.CHANGE_START,this.update,this)},window.MSThumblist=MSThumblist,MSSlideController.registerControl(\"thumblist\",MSThumblist)}(jQuery),function($){\"use strict\";var MSBulltes=function(options){BaseControl.call(this),this.options.dir=\"h\",this.options.inset=!0,this.options.margin=10,this.options.space=10,$.extend(this.options,options),this.bullets=[]};MSBulltes.extend(BaseControl);var p=MSBulltes.prototype,_super=BaseControl.prototype;p.setup=function(){if(_super.setup.call(this),this.$element=$(\"<div></div>\").addClass(this.options.prefix+\"bullets\").addClass(\"ms-dir-\"+this.options.dir).appendTo(this.cont),this.$bullet_cont=$(\"<div></div>\").addClass(\"ms-bullets-count\").appendTo(this.$element),!this.options.insetTo&&this.options.align){var align=this.options.align;this.options.inset&&this.$element.css(align,this.options.margin)}this.checkHideUnder()},p.create=function(){_super.create.call(this);var that=this;this.slider.api.addEventListener(MSSliderEvent.CHANGE_START,this.update,this),this.cindex=this.slider.api.index();for(var i=0;i<this.slider.api.count();++i){var bullet=$(\"<div></div>\").addClass(\"ms-bullet\");bullet[0].index=i,bullet.on(\"click\",function(){that.changeSlide(this.index)}),this.$bullet_cont.append(bullet),this.bullets.push(bullet),\"h\"===this.options.dir?bullet.css(\"margin\",this.options.space/2):bullet.css(\"margin\",this.options.space)}\"h\"===this.options.dir?this.$element.width(bullet.outerWidth(!0)*this.slider.api.count()):this.$element.css(\"margin-top\",-this.$element.outerHeight(!0)/2),this.select(this.bullets[this.cindex])},p.update=function(){var nindex=this.slider.api.index();this.cindex!==nindex&&(null!=this.cindex&&this.unselect(this.bullets[this.cindex]),this.cindex=nindex,this.select(this.bullets[this.cindex]))},p.changeSlide=function(index){this.cindex!==index&&this.slider.api.gotoSlide(index)},p.unselect=function(ele){ele.removeClass(\"ms-bullet-selected\")},p.select=function(ele){ele.addClass(\"ms-bullet-selected\")},p.destroy=function(){_super.destroy(),this.slider.api.removeEventListener(MSSliderEvent.CHANGE_START,this.update,this),this.$element.remove()},window.MSBulltes=MSBulltes,MSSlideController.registerControl(\"bullets\",MSBulltes)}(jQuery),function($){\"use strict\";var MSScrollbar=function(options){BaseControl.call(this),this.options.dir=\"h\",this.options.autohide=!0,this.options.width=4,this.options.color=\"#3D3D3D\",this.options.margin=10,$.extend(this.options,options),this.__dimen=\"h\"===this.options.dir?\"width\":\"height\",this.__jdimen=\"h\"===this.options.dir?\"outerWidth\":\"outerHeight\",this.__pos=\"h\"===this.options.dir?\"left\":\"top\",this.__translate_end=window._css3d?\" translateZ(0px)\":\"\",this.__translate_start=\"h\"===this.options.dir?\" translateX(\":\"translateY(\"};MSScrollbar.extend(BaseControl);var p=MSScrollbar.prototype,_super=BaseControl.prototype;p.setup=function(){if(this.$element=$(\"<div></div>\").addClass(this.options.prefix+\"sbar\").addClass(\"ms-dir-\"+this.options.dir),_super.setup.call(this),this.$element.appendTo(this.slider.$controlsCont===this.cont?this.slider.$element:this.cont),this.$bar=$(\"<div></div>\").addClass(this.options.prefix+\"bar\").appendTo(this.$element),this.slider.options.loop&&(this.disable=!0,this.$element.remove()),\"v\"===this.options.dir?this.$bar.width(this.options.width):this.$bar.height(this.options.width),this.$bar.css(\"background-color\",this.options.color),!this.options.insetTo&&this.options.align){this.$element.css(\"v\"===this.options.dir?{right:\"auto\",left:\"auto\"}:{top:\"auto\",bottom:\"auto\"});var align=this.options.align;this.options.inset?this.$element.css(align,this.options.margin):\"top\"===align?this.$element.prependTo(this.slider.$element).css({\"margin-bottom\":this.options.margin,position:\"relative\"}):\"bottom\"===align?this.$element.css({\"margin-top\":this.options.margin,position:\"relative\"}):(this.slider.api.addEventListener(MSSliderEvent.RESERVED_SPACE_CHANGE,this.align,this),this.align())}this.checkHideUnder()},p.align=function(){if(!this.detached){var align=this.options.align,pos=this.slider.reserveSpace(align,2*this.options.margin+this.options.width);this.$element.css(align,-pos-this.options.margin-this.options.width)}},p.create=function(){if(!this.disable){this.scroller=this.slider.api.scroller,this.slider.api.view.addEventListener(MSViewEvents.SCROLL,this._update,this),this.slider.api.addEventListener(MSSliderEvent.RESIZE,this._resize,this),this._resize(),this.options.autohide&&this.$bar.css(\"opacity\",\"0\")}},p._resize=function(){this.vdimen=this.$element[this.__dimen](),this.bar_dimen=this.slider.api.view[\"__\"+this.__dimen]*this.vdimen/this.scroller._max_value,this.$bar[this.__dimen](this.bar_dimen)},p._update=function(){var value=this.scroller.value*(this.vdimen-this.bar_dimen)/this.scroller._max_value;if(this.lvalue!==value){if(this.lvalue=value,this.options.autohide){clearTimeout(this.hto),this.$bar.css(\"opacity\",\"1\");var that=this;this.hto=setTimeout(function(){that.$bar.css(\"opacity\",\"0\")},150)}return 0>value?void(this.$bar[0].style[this.__dimen]=this.bar_dimen+value+\"px\"):(value>this.vdimen-this.bar_dimen&&(this.$bar[0].style[this.__dimen]=this.vdimen-value+\"px\"),window._cssanim?void(this.$bar[0].style[window._jcsspfx+\"Transform\"]=this.__translate_start+value+\"px)\"+this.__translate_end):void(this.$bar[0].style[this.__pos]=value+\"px\"))}},p.destroy=function(){_super.destroy(),this.slider.api.view.removeEventListener(MSViewEvents.SCROLL,this._update,this),this.slider.api.removeEventListener(MSSliderEvent.RESIZE,this._resize,this),this.slider.api.removeEventListener(MSSliderEvent.RESERVED_SPACE_CHANGE,this.align,this),this.$element.remove()},window.MSScrollbar=MSScrollbar,MSSlideController.registerControl(\"scrollbar\",MSScrollbar)}(jQuery),function($){\"use strict\";var MSTimerbar=function(options){BaseControl.call(this),this.options.autohide=!1,this.options.width=4,this.options.color=\"#FFFFFF\",this.options.inset=!0,this.options.margin=0,$.extend(this.options,options)};MSTimerbar.extend(BaseControl);var p=MSTimerbar.prototype,_super=BaseControl.prototype;p.setup=function(){if(_super.setup.call(this),this.$element=$(\"<div></div>\").addClass(this.options.prefix+\"timerbar\"),_super.setup.call(this),this.$element.appendTo(this.slider.$controlsCont===this.cont?this.slider.$element:this.cont),this.$bar=$(\"<div></div>\").addClass(\"ms-time-bar\").appendTo(this.$element),\"v\"===this.options.dir?(this.$bar.width(this.options.width),this.$element.width(this.options.width)):(this.$bar.height(this.options.width),this.$element.height(this.options.width)),this.$bar.css(\"background-color\",this.options.color),!this.options.insetTo&&this.options.align){this.$element.css({top:\"auto\",bottom:\"auto\"});var align=this.options.align;this.options.inset?this.$element.css(align,this.options.margin):\"top\"===align?this.$element.prependTo(this.slider.$element).css({\"margin-bottom\":this.options.margin,position:\"relative\"}):\"bottom\"===align?this.$element.css({\"margin-top\":this.options.margin,position:\"relative\"}):(this.slider.api.addEventListener(MSSliderEvent.RESERVED_SPACE_CHANGE,this.align,this),this.align())}this.checkHideUnder()},p.align=function(){if(!this.detached){var align=this.options.align,pos=this.slider.reserveSpace(align,2*this.options.margin+this.options.width);this.$element.css(align,-pos-this.options.margin-this.options.width)}},p.create=function(){_super.create.call(this),this.slider.api.addEventListener(MSSliderEvent.WAITING,this._update,this),this._update()},p._update=function(){this.$bar[0].style.width=this.slider.api._delayProgress+\"%\"},p.destroy=function(){_super.destroy(),this.slider.api.removeEventListener(MSSliderEvent.RESERVED_SPACE_CHANGE,this.align,this),this.slider.api.removeEventListener(MSSliderEvent.WAITING,this._update,this),this.$element.remove()},window.MSTimerbar=MSTimerbar,MSSlideController.registerControl(\"timebar\",MSTimerbar)}(jQuery),function($){\"use strict\";var MSCircleTimer=function(options){BaseControl.call(this),this.options.color=\"#A2A2A2\",this.options.stroke=10,this.options.radius=4,this.options.autohide=!1,$.extend(this.options,options)};MSCircleTimer.extend(BaseControl);var p=MSCircleTimer.prototype,_super=BaseControl.prototype;p.setup=function(){return _super.setup.call(this),this.$element=$(\"<div></div>\").addClass(this.options.prefix+\"ctimer\").appendTo(this.cont),this.$canvas=$(\"<canvas></canvas>\").addClass(\"ms-ctimer-canvas\").appendTo(this.$element),this.$bar=$(\"<div></div>\").addClass(\"ms-ctimer-bullet\").appendTo(this.$element),this.$canvas[0].getContext?(this.ctx=this.$canvas[0].getContext(\"2d\"),this.prog=0,this.__w=2*(this.options.radius+this.options.stroke/2),this.$canvas[0].width=this.__w,this.$canvas[0].height=this.__w,void this.checkHideUnder()):(this.destroy(),void(this.disable=!0))\r\n},p.create=function(){if(!this.disable){_super.create.call(this),this.slider.api.addEventListener(MSSliderEvent.WAITING,this._update,this);var that=this;this.$element.click(function(){that.slider.api.paused?that.slider.api.resume():that.slider.api.pause()}),this._update()}},p._update=function(){var that=this;$(this).stop(!0).animate({prog:.01*this.slider.api._delayProgress},{duration:200,step:function(){that._draw()}})},p._draw=function(){this.ctx.clearRect(0,0,this.__w,this.__w),this.ctx.beginPath(),this.ctx.arc(.5*this.__w,.5*this.__w,this.options.radius,1.5*Math.PI,1.5*Math.PI+2*Math.PI*this.prog,!1),this.ctx.strokeStyle=this.options.color,this.ctx.lineWidth=this.options.stroke,this.ctx.stroke()},p.destroy=function(){_super.destroy(),this.disable||($(this).stop(!0),this.slider.api.removeEventListener(MSSliderEvent.WAITING,this._update,this),this.$element.remove())},window.MSCircleTimer=MSCircleTimer,MSSlideController.registerControl(\"circletimer\",MSCircleTimer)}(jQuery),function($){\"use strict\";window.MSLightbox=function(options){BaseControl.call(this,options),this.options.autohide=!1,$.extend(this.options,options),this.data_list=[]},MSLightbox.fadeDuratation=400,MSLightbox.extend(BaseControl);var p=MSLightbox.prototype,_super=BaseControl.prototype;p.setup=function(){_super.setup.call(this),this.$element=$(\"<div></div>\").addClass(this.options.prefix+\"lightbox-btn\").appendTo(this.cont),this.checkHideUnder()},p.slideAction=function(slide){$(\"<div></div>\").addClass(this.options.prefix+\"lightbox-btn\").appendTo(slide.$element).append($(slide.$element.find(\".ms-lightbox\")))},p.create=function(){_super.create.call(this)},MSSlideController.registerControl(\"lightbox\",MSLightbox)}(jQuery),function($){\"use strict\";window.MSSlideInfo=function(options){BaseControl.call(this,options),this.options.autohide=!1,this.options.align=null,this.options.inset=!1,this.options.margin=10,this.options.size=100,this.options.dir=\"h\",$.extend(this.options,options),this.data_list=[]},MSSlideInfo.fadeDuratation=400,MSSlideInfo.extend(BaseControl);var p=MSSlideInfo.prototype,_super=BaseControl.prototype;p.setup=function(){if(this.$element=$(\"<div></div>\").addClass(this.options.prefix+\"slide-info\").addClass(\"ms-dir-\"+this.options.dir),_super.setup.call(this),this.$element.appendTo(this.slider.$controlsCont===this.cont?this.slider.$element:this.cont),!this.options.insetTo&&this.options.align){var align=this.options.align;this.options.inset?this.$element.css(align,this.options.margin):\"top\"===align?this.$element.prependTo(this.slider.$element).css({\"margin-bottom\":this.options.margin,position:\"relative\"}):\"bottom\"===align?this.$element.css({\"margin-top\":this.options.margin,position:\"relative\"}):(this.slider.api.addEventListener(MSSliderEvent.RESERVED_SPACE_CHANGE,this.align,this),this.align()),\"v\"===this.options.dir?this.$element.width(this.options.size):this.$element.css(\"min-height\",this.options.size)}this.checkHideUnder()},p.align=function(){if(!this.detached){var align=this.options.align,pos=this.slider.reserveSpace(align,this.options.size+2*this.options.margin);this.$element.css(align,-pos-this.options.size-this.options.margin)}},p.slideAction=function(slide){var info_ele=$(slide.$element.find(\".ms-info\"));info_ele.detach(),this.data_list[slide.index]=info_ele},p.create=function(){_super.create.call(this),this.slider.api.addEventListener(MSSliderEvent.CHANGE_START,this.update,this),this.cindex=this.slider.api.index(),this.switchEle(this.data_list[this.cindex])},p.update=function(){var nindex=this.slider.api.index();this.switchEle(this.data_list[nindex]),this.cindex=nindex},p.switchEle=function(ele){if(this.current_ele){this.current_ele[0].tween&&this.current_ele[0].tween.stop(!0),this.current_ele[0].tween=CTween.animate(this.current_ele,MSSlideInfo.fadeDuratation,{opacity:0},{complete:function(){this.detach(),this[0].tween=null,ele.css(\"position\",\"relative\")},target:this.current_ele}),ele.css(\"position\",\"absolute\")}this.__show(ele)},p.__show=function(ele){ele.appendTo(this.$element).css(\"opacity\",\"0\"),this.current_ele&&ele.height(Math.max(ele.height(),this.current_ele.height())),clearTimeout(this.tou),this.tou=setTimeout(function(){CTween.fadeIn(ele,MSSlideInfo.fadeDuratation),ele.css(\"height\",\"\")},MSSlideInfo.fadeDuratation),ele[0].tween&&ele[0].tween.stop(!0),this.current_ele=ele},p.destroy=function(){_super.destroy(),clearTimeout(this.tou),this.current_ele&&this.current_ele[0].tween&&this.current_ele[0].tween.stop(\"true\"),this.$element.remove(),this.slider.api.removeEventListener(MSSliderEvent.RESERVED_SPACE_CHANGE,this.align,this),this.slider.api.removeEventListener(MSSliderEvent.CHANGE_START,this.update,this)},MSSlideController.registerControl(\"slideinfo\",MSSlideInfo)}(jQuery),function($){window.MSGallery=function(id,slider){this.id=id,this.slider=slider,this.telement=$(\"#\"+id),this.botcont=$(\"<div></div>\").addClass(\"ms-gallery-botcont\").appendTo(this.telement),this.thumbcont=$(\"<div></div>\").addClass(\"ms-gal-thumbcont hide-thumbs\").appendTo(this.botcont),this.playbtn=$(\"<div></div>\").addClass(\"ms-gal-playbtn\").appendTo(this.botcont),this.thumbtoggle=$(\"<div></div>\").addClass(\"ms-gal-thumbtoggle\").appendTo(this.botcont),slider.control(\"thumblist\",{insertTo:this.thumbcont,autohide:!1,dir:\"h\"}),slider.control(\"slidenum\",{insertTo:this.botcont,autohide:!1}),slider.control(\"slideinfo\",{insertTo:this.botcont,autohide:!1}),slider.control(\"timebar\",{insertTo:this.botcont,autohide:!1}),slider.control(\"bullets\",{insertTo:this.botcont,autohide:!1})};var p=MSGallery.prototype;p._init=function(){var that=this;this.slider.api.paused||this.playbtn.addClass(\"btn-pause\"),this.playbtn.click(function(){that.slider.api.paused?(that.slider.api.resume(),that.playbtn.addClass(\"btn-pause\")):(that.slider.api.pause(),that.playbtn.removeClass(\"btn-pause\"))}),this.thumbtoggle.click(function(){that.vthumbs?(that.thumbtoggle.removeClass(\"btn-hide\"),that.vthumbs=!1,that.thumbcont.addClass(\"hide-thumbs\")):(that.thumbtoggle.addClass(\"btn-hide\"),that.thumbcont.removeClass(\"hide-thumbs\"),that.vthumbs=!0)})},p.setup=function(){var that=this;$(document).ready(function(){that._init()})}}(jQuery),function($){var getPhotosetURL=function(key,id,count){return\"https://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&api_key=\"+key+\"&photoset_id=\"+id+\"&per_page=\"+count+\"&extras=url_o,description,date_taken,owner_name,views&format=json&jsoncallback=?\"},getUserPublicURL=function(key,id,count){return\"https://api.flickr.com/services/rest/?&method=flickr.people.getPublicPhotos&api_key=\"+key+\"&user_id=\"+id+\"&per_page=\"+count+\"&extras=url_o,description,date_taken,owner_name,views&format=json&jsoncallback=?\"},getImageSource=function(fid,server,id,secret,size,data){return\"_o\"===size&&data?data.url_o:\"https://farm\"+fid+\".staticflickr.com/\"+server+\"/\"+id+\"_\"+secret+size+\".jpg\"};window.MSFlickrV2=function(slider,options){var _options={count:10,type:\"photoset\",thumbSize:\"q\",imgSize:\"c\"};if(this.slider=slider,this.slider.holdOn(),!options.key)return void this.errMsg(\"Flickr API Key required. Please add it in settings.\");$.extend(_options,options),this.options=_options;var that=this;\"photoset\"===this.options.type?$.getJSON(getPhotosetURL(this.options.key,this.options.id,this.options.count),function(data){that._photosData(data)}):$.getJSON(getUserPublicURL(this.options.key,this.options.id,this.options.count),function(data){that.options.type=\"photos\",that._photosData(data)}),\"\"!==this.options.imgSize&&\"-\"!==this.options.imgSize&&(this.options.imgSize=\"_\"+this.options.imgSize),this.options.thumbSize=\"_\"+this.options.thumbSize,this.slideTemplate=this.slider.$element.find(\".ms-slide\")[0].outerHTML,this.slider.$element.find(\".ms-slide\").remove()};var p=MSFlickrV2.prototype;p._photosData=function(data){if(\"fail\"===data.stat)return void this.errMsg(\"Flickr API ERROR#\"+data.code+\": \"+data.message);{var that=this;this.options.author||this.options.desc}$.each(data[this.options.type].photo,function(i,item){var slide_cont=that.slideTemplate.replace(/{{[\\w-]+}}/g,function(match){return match=match.replace(/{{|}}/g,\"\"),shortCodes[match]?shortCodes[match](item,that):\"{{\"+match+\"}}\"});$(slide_cont).appendTo(that.slider.$element)}),that._initSlider()},p.errMsg=function(msg){this.slider.$element.css(\"display\",\"block\"),this.errEle||(this.errEle=$('<div style=\"font-family:Arial; color:red; font-size:12px; position:absolute; top:10px; left:10px\"></div>').appendTo(this.slider.$loading)),this.errEle.html(msg)},p._initSlider=function(){this.slider.release()};var shortCodes={image:function(data,that){return getImageSource(data.farm,data.server,data.id,data.secret,that.options.imgSize,data)},thumb:function(data,that){return getImageSource(data.farm,data.server,data.id,data.secret,that.options.thumbSize)},title:function(data){return data.title},\"owner-name\":function(data){return data.ownername},\"date-taken\":function(data){return data.datetaken},views:function(data){return data.views},description:function(data){return data.description._content}}}(jQuery),function($){window.MSFacebookGallery=function(slider,options){var _options={count:10,type:\"photostream\",thumbSize:\"320\",imgSize:\"orginal\",https:!1,token:\"\"};this.slider=slider,this.slider.holdOn(),$.extend(_options,options),this.options=_options,this.graph=\"https://graph.facebook.com\";var that=this;\"photostream\"===this.options.type?$.getJSON(this.graph+\"/\"+this.options.username+\"/photos/uploaded/?fields=source,name,link,images,from&limit=\"+this.options.count+\"&access_token=\"+this.options.token,function(data){that._photosData(data)}):$.getJSON(this.graph+\"/\"+this.options.albumId+\"/photos?fields=source,name,link,images,from&limit=\"+this.options.count+\"&access_token=\"+this.options.token,function(data){that._photosData(data)}),this.slideTemplate=this.slider.$element.find(\".ms-slide\")[0].outerHTML,this.slider.$element.find(\".ms-slide\").remove()};var p=MSFacebookGallery.prototype;p._photosData=function(content){if(content.error)return void this.errMsg(\"Facebook API ERROR#\"+content.error.code+\"(\"+content.error.type+\"): \"+content.error.message);for(var that=this,i=(this.options.author||this.options.desc,0),l=content.data.length;i!==l;i++){var slide_cont=that.slideTemplate.replace(/{{[\\w-]+}}/g,function(match){return match=match.replace(/{{|}}/g,\"\"),shortCodes[match]?shortCodes[match](content.data[i],that):\"{{\"+match+\"}}\"});$(slide_cont).appendTo(that.slider.$element)}that._initSlider()},p.errMsg=function(msg){this.slider.$element.css(\"display\",\"block\"),this.errEle||(this.errEle=$('<div style=\"font-family:Arial; color:red; font-size:12px; position:absolute; top:10px; left:10px\"></div>').appendTo(this.slider.$loading)),this.errEle.html(msg)},p._initSlider=function(){this.slider.release()};var getImageSource=function(images,size){if(\"orginal\"===size)return images[0].source;for(var i=0,l=images.length;i!==l;i++)if(-1!==images[i].source.indexOf(size+\"x\"+size))return images[i].source;return images[0].source},shortCodes={image:function(data,that){return getImageSource(data.images,that.options.imgSize)},thumb:function(data,that){return getImageSource(data.images,that.options.thumbSize)},name:function(data){return data.name},\"owner-name\":function(data){return data.from.name},link:function(data){return data.link}}}(jQuery),function($){\"use strict\";window.MSScrollParallax=function(slider,parallax,bgparallax,fade){this.fade=fade,this.slider=slider,this.parallax=parallax/100,this.bgparallax=bgparallax/100,slider.api.addEventListener(MSSliderEvent.INIT,this.init,this),slider.api.addEventListener(MSSliderEvent.DESTROY,this.destory,this),slider.api.addEventListener(MSSliderEvent.CHANGE_END,this.resetLayers,this),slider.api.addEventListener(MSSliderEvent.CHANGE_START,this.updateCurrentSlide,this)},window.MSScrollParallax.setup=function(slider,parallax,bgparallax,fade){return window._mobile?void 0:(null==parallax&&(parallax=50),null==bgparallax&&(bgparallax=40),new MSScrollParallax(slider,parallax,bgparallax,fade))};var p=window.MSScrollParallax.prototype;p.init=function(){this.slider.$element.addClass(\"ms-scroll-parallax\"),this.sliderOffset=this.slider.$element.offset().top,this.updateCurrentSlide();for(var slide,slides=this.slider.api.view.slideList,i=0,l=slides.length;i!==l;i++)slide=slides[i],slide.hasLayers&&(slide.layerController.$layers.wrap('<div class=\"ms-scroll-parallax-cont\"></div>'),slide.$scrollParallaxCont=slide.layerController.$layers.parent());$(window).on(\"scroll\",{that:this},this.moveParallax).trigger(\"scroll\")},p.resetLayers=function(){if(this.lastSlide){var layers=this.lastSlide.$scrollParallaxCont;window._css2d?(layers&&(layers[0].style[window._jcsspfx+\"Transform\"]=\"\"),this.lastSlide.hasBG&&(this.lastSlide.$imgcont[0].style[window._jcsspfx+\"Transform\"]=\"\")):(layers&&(layers[0].style.top=\"\"),this.lastSlide.hasBG&&(this.lastSlide.$imgcont[0].style.top=\"0px\"))}},p.updateCurrentSlide=function(){this.lastSlide=this.currentSlide,this.currentSlide=this.slider.api.currentSlide,this.moveParallax({data:{that:this}})},p.moveParallax=function(e){var that=e.data.that,slider=that.slider,offset=that.sliderOffset,scrollTop=$(window).scrollTop(),layers=that.currentSlide.$scrollParallaxCont,out=offset-scrollTop;0>=out?(layers&&(window._css3d?layers[0].style[window._jcsspfx+\"Transform\"]=\"translateY(\"+-out*that.parallax+\"px) translateZ(0.4px)\":window._css2d?layers[0].style[window._jcsspfx+\"Transform\"]=\"translateY(\"+-out*that.parallax+\"px)\":layers[0].style.top=-out*that.parallax+\"px\"),that.updateSlidesBG(-out*that.bgparallax+\"px\",!0),layers&&that.fade&&layers.css(\"opacity\",1-Math.min(1,-out/slider.api.height))):(layers&&(window._css2d?layers[0].style[window._jcsspfx+\"Transform\"]=\"\":layers[0].style.top=\"\"),that.updateSlidesBG(\"0px\",!1),layers&&that.fade&&layers.css(\"opacity\",1))},p.updateSlidesBG=function(pos,fixed){for(var slides=this.slider.api.view.slideList,position=!fixed||$.browser.msie||$.browser.opera?\"\":\"fixed\",i=0,l=slides.length;i!==l;i++)slides[i].hasBG&&(slides[i].$imgcont[0].style.position=position,slides[i].$imgcont[0].style.top=pos),slides[i].$bgvideocont&&(slides[i].$bgvideocont[0].style.position=position,slides[i].$bgvideocont[0].style.top=pos)},p.destory=function(){slider.api.removeEventListener(MSSliderEvent.INIT,this.init,this),slider.api.removeEventListener(MSSliderEvent.DESTROY,this.destory,this),slider.api.removeEventListener(MSSliderEvent.CHANGE_END,this.resetLayers,this),slider.api.removeEventListener(MSSliderEvent.CHANGE_START,this.updateCurrentSlide,this),$(window).off(\"scroll\",this.moveParallax)}}(jQuery),function($,document,window){var PId=0;if(window.MasterSlider){var KeyboardNav=function(slider){this.slider=slider,this.PId=PId++,this.slider.options.keyboard&&slider.api.addEventListener(MSSliderEvent.INIT,this.init,this)};KeyboardNav.name=\"MSKeyboardNav\";var p=KeyboardNav.prototype;p.init=function(){var api=this.slider.api;$(document).on(\"keydown.kbnav\"+this.PId,function(event){var which=event.which;37===which||40===which?api.previous(!0):(38===which||39===which)&&api.next(!0)})},p.destroy=function(){$(document).off(\"keydown.kbnav\"+this.PId),this.slider.api.removeEventListener(MSSliderEvent.INIT,this.init,this)},MasterSlider.registerPlugin(KeyboardNav)}}(jQuery,document,window),function($,document,window){var PId=0,$window=$(window),$doc=$(document);if(window.MasterSlider){var StartOnAppear=function(slider){this.PId=PId++,this.slider=slider,this.$slider=slider.$element,this.slider.options.startOnAppear&&(slider.holdOn(),$doc.ready($.proxy(this.init,this)))};StartOnAppear.name=\"MSStartOnAppear\";var p=StartOnAppear.prototype;p.init=function(){this.slider.api;$window.on(\"scroll.soa\"+this.PId,$.proxy(this._onScroll,this)).trigger(\"scroll\")},p._onScroll=function(){var vpBottom=$window.scrollTop()+$window.height(),top=this.$slider.offset().top;vpBottom>top&&($window.off(\"scroll.soa\"+this.PId),this.slider.release())},p.destroy=function(){},MasterSlider.registerPlugin(StartOnAppear)}}(jQuery,document,window),function(document,window){var filterUnits={\"hue-rotate\":\"deg\",blur:\"px\"},initialValues={opacity:1,contrast:1,brightness:1,saturate:1,\"hue-rotate\":0,invert:0,sepia:0,blur:0,grayscale:0};if(window.MasterSlider){var Filters=function(slider){this.slider=slider,this.slider.options.filters&&slider.api.addEventListener(MSSliderEvent.INIT,this.init,this)};Filters.name=\"MSFilters\";var p=Filters.prototype;p.init=function(){var api=this.slider.api,view=api.view;this.filters=this.slider.options.filters,this.slideList=view.slideList,this.slidesCount=view.slidesCount,this.dimension=view[view.__dimension],this.target=\"slide\"===this.slider.options.filterTarget?\"$element\":\"$bg_img\",this.filterName=$.browser.webkit?\"WebkitFilter\":\"filter\";var superFun=view.controller.__renderHook.fun,superRef=view.controller.__renderHook.ref;view.controller.renderCallback(function(controller,value){superFun.call(superRef,controller,value),this.applyEffect(value)},this),this.applyEffect(view.controller.value)},p.applyEffect=function(value){for(var factor,slide,i=0;i<this.slidesCount;++i)slide=this.slideList[i],factor=Math.min(1,Math.abs(value-slide.position)/this.dimension),slide[this.target]&&($.browser.msie?null!=this.filters.opacity&&slide[this.target].opacity(1-this.filters.opacity*factor):slide[this.target][0].style[this.filterName]=this.generateStyle(factor))},p.generateStyle=function(factor){var unit,style=\"\";for(var filter in this.filters)unit=filterUnits[filter]||\"\",style+=filter+\"(\"+(initialValues[filter]+(this.filters[filter]-initialValues[filter])*factor)+\") \";return style},p.destroy=function(){this.slider.api.removeEventListener(MSSliderEvent.INIT,this.init,this)},MasterSlider.registerPlugin(Filters)}}(document,window,jQuery),function($,document,window){if(window.MasterSlider){var ScrollToAction=function(slider){this.slider=slider,slider.api.addEventListener(MSSliderEvent.INIT,this.init,this)};ScrollToAction.name=\"MSScrollToAction\";var p=ScrollToAction.prototype;p.init=function(){var api=this.slider.api;api.scrollToEnd=_scrollToEnd,api.scrollTo=_scrollTo},p.destroy=function(){};var _scrollTo=function(target,duration){var target=(this.slider.$element,$(target).eq(0));0!==target.length&&(null==duration&&(duration=1.4),$(\"html, body\").animate({scrollTop:target.offset().top},1e3*duration,\"easeInOutQuad\"))},_scrollToEnd=function(duration){var sliderEle=this.slider.$element;null==duration&&(duration=1.4),$(\"html, body\").animate({scrollTop:sliderEle.offset().top+sliderEle.outerHeight(!1)},1e3*duration,\"easeInOutQuad\")};MasterSlider.registerPlugin(ScrollToAction)}}(jQuery,document,window),function($,window){\"use strict\";if(window.MSReady)for(var i=0,l=MSReady.length;i!==l;i++)MSReady[i].call(null,$)}(jQuery,window,document);\r\n//# sourceMappingURL=masterslider.min.js.map","/*\t\r\n * jQuery mmenu v5.2.0\r\n * @requires jQuery 1.7.0 or later\r\n *\r\n * mmenu.frebsite.nl\r\n *\t\r\n * Copyright (c) Fred Heusschen\r\n * www.frebsite.nl\r\n *\r\n * Licensed under the MIT license:\r\n * http://en.wikipedia.org/wiki/MIT_License\r\n */\r\n!function(e){function t(){e[n].glbl||(r={$wndw:e(window),$html:e(\"html\"),$body:e(\"body\")},a={},i={},l={},e.each([a,i,l],function(e,t){t.add=function(e){e=e.split(\" \");for(var n=0,s=e.length;s>n;n++)t[e[n]]=t.mm(e[n])}}),a.mm=function(e){return\"mm-\"+e},a.add(\"wrapper menu vertical panel nopanel current highest opened subopened navbar hasnavbar title btn prev next first last listview nolistview selected divider spacer hidden fullsubopen\"),a.umm=function(e){return\"mm-\"==e.slice(0,3)&&(e=e.slice(3)),e},i.mm=function(e){return\"mm-\"+e},i.add(\"parent sub\"),l.mm=function(e){return e+\".mm\"},l.add(\"transitionend webkitTransitionEnd mousedown mouseup touchstart touchmove touchend click keydown\"),e[n]._c=a,e[n]._d=i,e[n]._e=l,e[n].glbl=r)}var n=\"mmenu\",s=\"5.2.0\";if(!e[n]){e[n]=function(e,t,n){this.$menu=e,this._api=[\"bind\",\"init\",\"update\",\"setSelected\",\"getInstance\",\"openPanel\",\"closePanel\",\"closeAllPanels\"],this.opts=t,this.conf=n,this.vars={},this.cbck={},\"function\"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var s=this.$menu.children(this.conf.panelNodetype);return this._initAddons(),this.init(s),\"function\"==typeof this.___debug&&this.___debug(),this},e[n].version=s,e[n].addons={},e[n].uniqueId=0,e[n].defaults={extensions:[],navbar:{title:\"Menu\",titleLink:\"panel\"},onClick:{setSelected:!0},slidingSubmenus:!0},e[n].configuration={classNames:{panel:\"Panel\",vertical:\"Vertical\",selected:\"Selected\",divider:\"Divider\",spacer:\"Spacer\"},clone:!1,openingInterval:25,panelNodetype:\"ul, ol, div\",transitionDuration:400},e[n].prototype={init:function(e){e=e.not(\".\"+a.nopanel),e=this._initPanels(e),this.trigger(\"init\",e),this.trigger(\"update\")},update:function(){this.trigger(\"update\")},setSelected:function(e){this.$menu.find(\".\"+a.listview).children().removeClass(a.selected),e.addClass(a.selected),this.trigger(\"setSelected\",e)},openPanel:function(t){var n=t.parent();if(n.hasClass(a.vertical)){var s=n.parents(\".\"+a.subopened);if(s.length)return this.openPanel(s.first());n.addClass(a.opened)}else{if(t.hasClass(a.current))return;var i=e(this.$menu).children(\".\"+a.panel),l=i.filter(\".\"+a.current);i.removeClass(a.highest).removeClass(a.current).not(t).not(l).not(\".\"+a.vertical).addClass(a.hidden),t.hasClass(a.opened)?l.addClass(a.highest).removeClass(a.opened).removeClass(a.subopened):(t.addClass(a.highest),l.addClass(a.subopened)),t.removeClass(a.hidden).addClass(a.current),setTimeout(function(){t.removeClass(a.subopened).addClass(a.opened)},this.conf.openingInterval)}this.trigger(\"openPanel\",t)},closePanel:function(e){var t=e.parent();t.hasClass(a.vertical)&&(t.removeClass(a.opened),this.trigger(\"closePanel\",e))},closeAllPanels:function(){this.$menu.find(\".\"+a.listview).children().removeClass(a.selected).filter(\".\"+a.vertical).removeClass(a.opened);var e=this.$menu.children(\".\"+a.panel),t=e.first();this.$menu.children(\".\"+a.panel).not(t).removeClass(a.subopened).removeClass(a.opened).removeClass(a.current).removeClass(a.highest).addClass(a.hidden),this.openPanel(t)},togglePanel:function(e){var t=e.parent();t.hasClass(a.vertical)&&this[t.hasClass(a.opened)?\"closePanel\":\"openPanel\"](e)},getInstance:function(){return this},bind:function(e,t){this.cbck[e]=this.cbck[e]||[],this.cbck[e].push(t)},trigger:function(){var e=this,t=Array.prototype.slice.call(arguments),n=t.shift();if(this.cbck[n])for(var s=0,a=this.cbck[n].length;a>s;s++)this.cbck[n][s].apply(e,t)},_initMenu:function(){this.opts.offCanvas&&this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find(\"[id]\")).filter(\"[id]\").each(function(){e(this).attr(\"id\",a.mm(e(this).attr(\"id\")))})),this.$menu.contents().each(function(){3==e(this)[0].nodeType&&e(this).remove()}),this.$menu.parent().addClass(a.wrapper);var t=[a.menu];this.opts.slidingSubmenus||t.push(a.vertical),this.opts.extensions=this.opts.extensions.length?\"mm-\"+this.opts.extensions.join(\" mm-\"):\"\",this.opts.extensions&&t.push(this.opts.extensions),this.$menu.addClass(t.join(\" \"))},_initPanels:function(t){var n=this;this.__findAddBack(t,\"ul, ol\").not(\".\"+a.nolistview).addClass(a.listview);var s=this.__findAddBack(t,\".\"+a.listview).children();this.__refactorClass(s,this.conf.classNames.selected,\"selected\"),this.__refactorClass(s,this.conf.classNames.divider,\"divider\"),this.__refactorClass(s,this.conf.classNames.spacer,\"spacer\"),this.__refactorClass(this.__findAddBack(t,\".\"+this.conf.classNames.panel),this.conf.classNames.panel,\"panel\");var l=e(),r=t.add(t.find(\".\"+a.panel)).add(this.__findAddBack(t,\".\"+a.listview).children().children(this.conf.panelNodetype)).not(\".\"+a.nopanel);this.__refactorClass(r,this.conf.classNames.vertical,\"vertical\"),this.opts.slidingSubmenus||r.addClass(a.vertical),r.each(function(){var t=e(this),s=t;t.is(\"ul, ol\")?(t.wrap('<div class=\"'+a.panel+'\" />'),s=t.parent()):s.addClass(a.panel);var i=t.attr(\"id\");t.removeAttr(\"id\"),s.attr(\"id\",i||n.__getUniqueId()),t.hasClass(a.vertical)&&(t.removeClass(n.conf.classNames.vertical),s.add(s.parent()).addClass(a.vertical)),l=l.add(s);var r=s.children().first(),d=s.children().last();r.is(\".\"+a.listview)&&r.addClass(a.first),d.is(\".\"+a.listview)&&d.addClass(a.last)});var d=e(\".\"+a.panel,this.$menu);l.each(function(){var t=e(this),s=t.parent(),l=s.children(\"a, span\").first();if(s.is(\".\"+a.menu)||(s.data(i.sub,t),t.data(i.parent,s)),!s.children(\".\"+a.next).length&&s.parent().is(\".\"+a.listview)){var r=t.attr(\"id\"),d=e('<a class=\"'+a.next+'\" href=\"#'+r+'\" data-target=\"#'+r+'\" />').insertBefore(l);l.is(\"span\")&&d.addClass(a.fullsubopen)}if(!t.children(\".\"+a.navbar).length&&!s.hasClass(a.vertical)){if(s.parent().is(\".\"+a.listview))var s=s.closest(\".\"+a.panel);else var l=s.closest(\".\"+a.panel).find('a[href=\"#'+t.attr(\"id\")+'\"]').first(),s=l.closest(\".\"+a.panel);var o=e('<div class=\"'+a.navbar+'\" />');if(s.length){var r=s.attr(\"id\");switch(n.opts.navbar.titleLink){case\"anchor\":_url=l.attr(\"href\");break;case\"panel\":case\"parent\":_url=\"#\"+r;break;case\"none\":default:_url=!1}o.append('<a class=\"'+a.btn+\" \"+a.prev+'\" href=\"#'+r+'\" data-target=\"#'+r+'\"></a>').append('<a class=\"'+a.title+'\"'+(_url?' href=\"'+_url+'\"':\"\")+\">\"+l.text()+\"</a>\").prependTo(t),t.addClass(a.hasnavbar)}else n.opts.navbar.title&&(o.append('<a class=\"'+a.title+'\">'+n.opts.navbar.title+\"</a>\").prependTo(t),t.addClass(a.hasnavbar))}});var o=this.__findAddBack(t,\".\"+a.listview).children(\".\"+a.selected).removeClass(a.selected).last().addClass(a.selected);o.add(o.parentsUntil(\".\"+a.menu,\"li\")).filter(\".\"+a.vertical).addClass(a.opened).end().not(\".\"+a.vertical).each(function(){e(this).parentsUntil(\".\"+a.menu,\".\"+a.panel).not(\".\"+a.vertical).first().addClass(a.opened).parentsUntil(\".\"+a.menu,\".\"+a.panel).not(\".\"+a.vertical).first().addClass(a.opened).addClass(a.subopened)}),o.children(\".\"+a.panel).not(\".\"+a.vertical).addClass(a.opened).parentsUntil(\".\"+a.menu,\".\"+a.panel).not(\".\"+a.vertical).first().addClass(a.opened).addClass(a.subopened);var c=d.filter(\".\"+a.opened);return c.length||(c=l.first()),c.addClass(a.opened).last().addClass(a.current),l.not(\".\"+a.vertical).not(c.last()).addClass(a.hidden).end().appendTo(this.$menu),l},_initAnchors:function(){var t=this;r.$body.on(l.click+\"-oncanvas\",\"a[href]\",function(s){var i=e(this),l=!1,d=t.$menu.find(i).length;for(var o in e[n].addons)if(l=e[n].addons[o].clickAnchor.call(t,i,d))break;if(!l&&d){var c=i.attr(\"href\");if(c.length>1&&\"#\"==c.slice(0,1)){var h=e(c,t.$menu);h.is(\".\"+a.panel)&&(l=!0,t[i.parent().hasClass(a.vertical)?\"togglePanel\":\"openPanel\"](h))}}if(l&&s.preventDefault(),!l&&d&&i.is(\".\"+a.listview+\" > li > a\")&&!i.is('[rel=\"external\"]')&&!i.is('[target=\"_blank\"]')){t.__valueOrFn(t.opts.onClick.setSelected,i)&&t.setSelected(e(s.target).parent());var u=t.__valueOrFn(t.opts.onClick.preventDefault,i,\"#\"==c.slice(0,1));u&&s.preventDefault(),t.__valueOrFn(t.opts.onClick.blockUI,i,!u)&&r.$html.addClass(a.blocking),t.__valueOrFn(t.opts.onClick.close,i,u)&&t.close()}})},_initAddons:function(){for(var t in e[n].addons)e[n].addons[t].add.call(this),e[n].addons[t].add=function(){};for(var t in e[n].addons)e[n].addons[t].setup.call(this)},__api:function(){var t=this,n={};return e.each(this._api,function(){var e=this;n[e]=function(){var s=t[e].apply(t,arguments);return\"undefined\"==typeof s?n:s}}),n},__valueOrFn:function(e,t,n){return\"function\"==typeof e?e.call(t[0]):\"undefined\"==typeof e&&\"undefined\"!=typeof n?n:e},__refactorClass:function(e,t,n){return e.filter(\".\"+t).removeClass(t).addClass(a[n])},__findAddBack:function(e,t){return e.find(t).add(e.filter(t))},__filterListItems:function(e){return e.not(\".\"+a.divider).not(\".\"+a.hidden)},__transitionend:function(e,t,n){var s=!1,a=function(){s||t.call(e[0]),s=!0};e.one(l.transitionend,a),e.one(l.webkitTransitionEnd,a),setTimeout(a,1.1*n)},__getUniqueId:function(){return a.mm(e[n].uniqueId++)}},e.fn[n]=function(s,a){return t(),s=e.extend(!0,{},e[n].defaults,s),a=e.extend(!0,{},e[n].configuration,a),this.each(function(){var t=e(this);if(!t.data(n)){var i=new e[n](t,s,a);t.data(n,i.__api())}})},e[n].support={touch:\"ontouchstart\"in window||navigator.msMaxTouchPoints};var a,i,l,r}}(jQuery);\r\n/*\t\r\n * jQuery mmenu offCanvas addon\r\n * mmenu.frebsite.nl\r\n *\r\n * Copyright (c) Fred Heusschen\r\n */\r\n!function(t){var e=\"mmenu\",o=\"offCanvas\";t[e].addons[o]={setup:function(){if(this.opts[o]){var n=this.opts[o],i=this.conf[o];a=t[e].glbl,this._api=t.merge(this._api,[\"open\",\"close\",\"setPage\"]),(\"top\"==n.position||\"bottom\"==n.position)&&(n.zposition=\"front\"),\"string\"!=typeof i.pageSelector&&(i.pageSelector=\"> \"+i.pageNodetype),a.$allMenus=(a.$allMenus||t()).add(this.$menu),this.vars.opened=!1;var r=[s.offcanvas];\"left\"!=n.position&&r.push(s.mm(n.position)),\"back\"!=n.zposition&&r.push(s.mm(n.zposition)),this.$menu.addClass(r.join(\" \")).parent().removeClass(s.wrapper),this.setPage(a.$page),this._initBlocker(),this[\"_initWindow_\"+o](),this.$menu[i.menuInjectMethod+\"To\"](i.menuWrapperSelector)}},add:function(){s=t[e]._c,n=t[e]._d,i=t[e]._e,s.add(\"offcanvas slideout modal background opening blocker page\"),n.add(\"style\"),i.add(\"resize\")},clickAnchor:function(t){if(!this.opts[o])return!1;var e=this.$menu.attr(\"id\");if(e&&e.length&&(this.conf.clone&&(e=s.umm(e)),t.is('[href=\"#'+e+'\"]')))return this.open(),!0;if(a.$page){var e=a.$page.first().attr(\"id\");return e&&e.length&&t.is('[href=\"#'+e+'\"]')?(this.close(),!0):!1}}},t[e].defaults[o]={position:\"left\",zposition:\"back\",modal:!1,moveBackground:!0},t[e].configuration[o]={pageNodetype:\"div\",pageSelector:null,wrapPageIfNeeded:!0,menuWrapperSelector:\"body\",menuInjectMethod:\"prepend\"},t[e].prototype.open=function(){if(!this.vars.opened){var t=this;this._openSetup(),setTimeout(function(){t._openFinish()},this.conf.openingInterval),this.trigger(\"open\")}},t[e].prototype._openSetup=function(){var e=this;this.closeAllOthers(),a.$page.each(function(){t(this).data(n.style,t(this).attr(\"style\")||\"\")}),a.$wndw.trigger(i.resize+\"-offcanvas\",[!0]);var r=[s.opened];this.opts[o].modal&&r.push(s.modal),this.opts[o].moveBackground&&r.push(s.background),\"left\"!=this.opts[o].position&&r.push(s.mm(this.opts[o].position)),\"back\"!=this.opts[o].zposition&&r.push(s.mm(this.opts[o].zposition)),this.opts.extensions&&r.push(this.opts.extensions),a.$html.addClass(r.join(\" \")),setTimeout(function(){e.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(s.current+\" \"+s.opened)},t[e].prototype._openFinish=function(){var t=this;this.__transitionend(a.$page.first(),function(){t.trigger(\"opened\")},this.conf.transitionDuration),a.$html.addClass(s.opening),this.trigger(\"opening\")},t[e].prototype.close=function(){if(this.vars.opened){var e=this;this.__transitionend(a.$page.first(),function(){e.$menu.removeClass(s.current).removeClass(s.opened),a.$html.removeClass(s.opened).removeClass(s.modal).removeClass(s.background).removeClass(s.mm(e.opts[o].position)).removeClass(s.mm(e.opts[o].zposition)),e.opts.extensions&&a.$html.removeClass(e.opts.extensions),a.$page.each(function(){t(this).attr(\"style\",t(this).data(n.style))}),e.vars.opened=!1,e.trigger(\"closed\")},this.conf.transitionDuration),a.$html.removeClass(s.opening),this.trigger(\"close\"),this.trigger(\"closing\")}},t[e].prototype.closeAllOthers=function(){a.$allMenus.not(this.$menu).each(function(){var o=t(this).data(e);o&&o.close&&o.close()})},t[e].prototype.setPage=function(e){var n=this,i=this.conf[o];e&&e.length||(e=a.$body.find(i.pageSelector),e.length>1&&i.wrapPageIfNeeded&&(e=e.wrapAll(\"<\"+this.conf[o].pageNodetype+\" />\").parent())),e.each(function(){t(this).attr(\"id\",t(this).attr(\"id\")||n.__getUniqueId())}),e.addClass(s.page+\" \"+s.slideout),a.$page=e,this.trigger(\"setPage\",e)},t[e].prototype[\"_initWindow_\"+o]=function(){a.$wndw.off(i.keydown+\"-offcanvas\").on(i.keydown+\"-offcanvas\",function(t){return a.$html.hasClass(s.opened)&&9==t.keyCode?(t.preventDefault(),!1):void 0});var t=0;a.$wndw.off(i.resize+\"-offcanvas\").on(i.resize+\"-offcanvas\",function(e,o){if(1==a.$page.length&&(o||a.$html.hasClass(s.opened))){var n=a.$wndw.height();(o||n!=t)&&(t=n,a.$page.css(\"minHeight\",n))}})},t[e].prototype._initBlocker=function(){var e=this;a.$blck||(a.$blck=t('<div id=\"'+s.blocker+'\" class=\"'+s.slideout+'\" />')),a.$blck.appendTo(a.$body).off(i.touchstart+\"-offcanvas \"+i.touchmove+\"-offcanvas\").on(i.touchstart+\"-offcanvas \"+i.touchmove+\"-offcanvas\",function(t){t.preventDefault(),t.stopPropagation(),a.$blck.trigger(i.mousedown+\"-offcanvas\")}).off(i.mousedown+\"-offcanvas\").on(i.mousedown+\"-offcanvas\",function(t){t.preventDefault(),a.$html.hasClass(s.modal)||(e.closeAllOthers(),e.close())})};var s,n,i,a}(jQuery);\r\n/*\t\r\n * jQuery mmenu autoHeight addon\r\n * mmenu.frebsite.nl\r\n *\r\n * Copyright (c) Fred Heusschen\r\n */\r\n!function(t){var e=\"mmenu\",i=\"autoHeight\";t[e].addons[i]={setup:function(){if(this.opts.offCanvas){switch(this.opts.offCanvas.position){case\"left\":case\"right\":return}var n=this,o=this.opts[i];if(this.conf[i],h=t[e].glbl,\"boolean\"==typeof o&&o&&(o={height:\"auto\"}),\"object\"!=typeof o&&(o={}),o=this.opts[i]=t.extend(!0,{},t[e].defaults[i],o),\"auto\"==o.height){this.$menu.addClass(s.autoheight);var u=function(t){var e=this.$menu.children(\".\"+s.current);_top=parseInt(e.css(\"top\"),10)||0,_bot=parseInt(e.css(\"bottom\"),10)||0,this.$menu.addClass(s.measureheight),t=t||this.$menu.children(\".\"+s.current),t.is(\".\"+s.vertical)&&(t=t.parents(\".\"+s.panel).not(\".\"+s.vertical).first()),this.$menu.height(t.outerHeight()+_top+_bot).removeClass(s.measureheight)};this.bind(\"update\",u),this.bind(\"openPanel\",u),this.bind(\"closePanel\",u),this.bind(\"open\",u),h.$wndw.off(a.resize+\"-autoheight\").on(a.resize+\"-autoheight\",function(){u.call(n)})}}},add:function(){s=t[e]._c,n=t[e]._d,a=t[e]._e,s.add(\"autoheight measureheight\"),a.add(\"resize\")},clickAnchor:function(){}},t[e].defaults[i]={height:\"default\"};var s,n,a,h}(jQuery);\r\n/*\t\r\n * jQuery mmenu backButton addon\r\n * mmenu.frebsite.nl\r\n *\r\n * Copyright (c) Fred Heusschen\r\n */\r\n!function(o){var t=\"mmenu\",n=\"backButton\";o[t].addons[n]={setup:function(){if(this.opts.offCanvas){var i=this,e=this.opts[n];if(this.conf[n],a=o[t].glbl,\"boolean\"==typeof e&&(e={close:e}),\"object\"!=typeof e&&(e={}),e=o.extend(!0,{},o[t].defaults[n],e),e.close){var c=\"#\"+i.$menu.attr(\"id\");this.bind(\"opened\",function(){location.hash!=c&&history.pushState(null,document.title,c)}),o(window).on(\"popstate\",function(o){a.$html.hasClass(s.opened)?(o.stopPropagation(),i.close()):location.hash==c&&(o.stopPropagation(),i.open())})}}},add:function(){return window.history&&window.history.pushState?(s=o[t]._c,i=o[t]._d,e=o[t]._e,void 0):(o[t].addons[n].setup=function(){},void 0)},clickAnchor:function(){}},o[t].defaults[n]={close:!1};var s,i,e,a}(jQuery);\r\n/*\t\r\n * jQuery mmenu counters addon\r\n * mmenu.frebsite.nl\r\n *\r\n * Copyright (c) Fred Heusschen\r\n */\r\n!function(t){var n=\"mmenu\",e=\"counters\";t[n].addons[e]={setup:function(){var c=this,o=this.opts[e];this.conf[e],s=t[n].glbl,\"boolean\"==typeof o&&(o={add:o,update:o}),\"object\"!=typeof o&&(o={}),o=this.opts[e]=t.extend(!0,{},t[n].defaults[e],o),this.bind(\"init\",function(n){this.__refactorClass(t(\"em\",n),this.conf.classNames[e].counter,\"counter\")}),o.add&&this.bind(\"init\",function(n){n.each(function(){var n=t(this).data(a.parent);n&&(n.children(\"em.\"+i.counter).length||n.prepend(t('<em class=\"'+i.counter+'\" />')))})}),o.update&&this.bind(\"update\",function(){this.$menu.find(\".\"+i.panel).each(function(){var n=t(this),e=n.data(a.parent);if(e){var s=e.children(\"em.\"+i.counter);s.length&&(n=n.children(\".\"+i.listview),n.length&&s.html(c.__filterListItems(n.children()).length))}})})},add:function(){i=t[n]._c,a=t[n]._d,c=t[n]._e,i.add(\"counter search noresultsmsg\")},clickAnchor:function(){}},t[n].defaults[e]={add:!1,update:!1},t[n].configuration.classNames[e]={counter:\"Counter\"};var i,a,c,s}(jQuery);\r\n/*\t\r\n * jQuery mmenu dividers addon\r\n * mmenu.frebsite.nl\r\n *\r\n * Copyright (c) Fred Heusschen\r\n */\r\n!function(i){var e=\"mmenu\",s=\"dividers\";i[e].addons[s]={setup:function(){var n=this,a=this.opts[s];if(this.conf[s],l=i[e].glbl,\"boolean\"==typeof a&&(a={add:a,fixed:a}),\"object\"!=typeof a&&(a={}),a=this.opts[s]=i.extend(!0,{},i[e].defaults[s],a),this.bind(\"init\",function(){this.__refactorClass(i(\"li\",this.$menu),this.conf.classNames[s].collapsed,\"collapsed\")}),a.add&&this.bind(\"init\",function(e){switch(a.addTo){case\"panels\":var s=e;break;default:var s=i(a.addTo,this.$menu).filter(\".\"+d.panel)}i(\".\"+d.divider,s).remove(),s.find(\".\"+d.listview).not(\".\"+d.vertical).each(function(){var e=\"\";n.__filterListItems(i(this).children()).each(function(){var s=i.trim(i(this).children(\"a, span\").text()).slice(0,1).toLowerCase();s!=e&&s.length&&(e=s,i('<li class=\"'+d.divider+'\">'+s+\"</li>\").insertBefore(this))})})}),a.collapse&&this.bind(\"init\",function(e){i(\".\"+d.divider,e).each(function(){var e=i(this),s=e.nextUntil(\".\"+d.divider,\".\"+d.collapsed);s.length&&(e.children(\".\"+d.subopen).length||(e.wrapInner(\"<span />\"),e.prepend('<a href=\"#\" class=\"'+d.subopen+\" \"+d.fullsubopen+'\" />')))})}),a.fixed){var o=function(e){e=e||this.$menu.children(\".\"+d.current);var s=e.find(\".\"+d.divider).not(\".\"+d.hidden);if(s.length){this.$menu.addClass(d.hasdividers);var n=e.scrollTop()||0,t=\"\";e.is(\":visible\")&&e.find(\".\"+d.divider).not(\".\"+d.hidden).each(function(){i(this).position().top+n<n+1&&(t=i(this).text())}),this.$fixeddivider.text(t)}else this.$menu.removeClass(d.hasdividers)};this.$fixeddivider=i('<ul class=\"'+d.listview+\" \"+d.fixeddivider+'\"><li class=\"'+d.divider+'\"></li></ul>').prependTo(this.$menu).children(),this.bind(\"openPanel\",o),this.bind(\"init\",function(e){e.off(t.scroll+\"-dividers \"+t.touchmove+\"-dividers\").on(t.scroll+\"-dividers \"+t.touchmove+\"-dividers\",function(){o.call(n,i(this))})})}},add:function(){d=i[e]._c,n=i[e]._d,t=i[e]._e,d.add(\"collapsed uncollapsed fixeddivider hasdividers\"),t.add(\"scroll\")},clickAnchor:function(i,e){if(this.opts[s].collapse&&e){var n=i.parent();if(n.is(\".\"+d.divider)){var t=n.nextUntil(\".\"+d.divider,\".\"+d.collapsed);return n.toggleClass(d.opened),t[n.hasClass(d.opened)?\"addClass\":\"removeClass\"](d.uncollapsed),!0}}return!1}},i[e].defaults[s]={add:!1,addTo:\"panels\",fixed:!1,collapse:!1},i[e].configuration.classNames[s]={collapsed:\"Collapsed\"};var d,n,t,l}(jQuery);\r\n/*\t\r\n * jQuery mmenu dragOpen addon\r\n * mmenu.frebsite.nl\r\n *\r\n * Copyright (c) Fred Heusschen\r\n */\r\n!function(e){function t(e,t,n){return t>e&&(e=t),e>n&&(e=n),e}var n=\"mmenu\",o=\"dragOpen\";e[n].addons[o]={setup:function(){if(this.opts.offCanvas){var i=this,a=this.opts[o],p=this.conf[o];if(r=e[n].glbl,\"boolean\"==typeof a&&(a={open:a}),\"object\"!=typeof a&&(a={}),a=this.opts[o]=e.extend(!0,{},e[n].defaults[o],a),a.open){var d,f,c,u,h,l={},m=0,g=!1,v=!1,w=0,_=0;switch(this.opts.offCanvas.position){case\"left\":case\"right\":l.events=\"panleft panright\",l.typeLower=\"x\",l.typeUpper=\"X\",v=\"width\";break;case\"top\":case\"bottom\":l.events=\"panup pandown\",l.typeLower=\"y\",l.typeUpper=\"Y\",v=\"height\"}switch(this.opts.offCanvas.position){case\"right\":case\"bottom\":l.negative=!0,u=function(e){e>=r.$wndw[v]()-a.maxStartPos&&(m=1)};break;default:l.negative=!1,u=function(e){e<=a.maxStartPos&&(m=1)}}switch(this.opts.offCanvas.position){case\"left\":l.open_dir=\"right\",l.close_dir=\"left\";break;case\"right\":l.open_dir=\"left\",l.close_dir=\"right\";break;case\"top\":l.open_dir=\"down\",l.close_dir=\"up\";break;case\"bottom\":l.open_dir=\"up\",l.close_dir=\"down\"}switch(this.opts.offCanvas.zposition){case\"front\":h=function(){return this.$menu};break;default:h=function(){return e(\".\"+s.slideout)}}var b=this.__valueOrFn(a.pageNode,this.$menu,r.$page);\"string\"==typeof b&&(b=e(b));var y=new Hammer(b[0],a.vendors.hammer);y.on(\"panstart\",function(e){u(e.center[l.typeLower]),r.$slideOutNodes=h(),g=l.open_dir}).on(l.events+\" panend\",function(e){m>0&&e.preventDefault()}).on(l.events,function(e){if(d=e[\"delta\"+l.typeUpper],l.negative&&(d=-d),d!=w&&(g=d>=w?l.open_dir:l.close_dir),w=d,w>a.threshold&&1==m){if(r.$html.hasClass(s.opened))return;m=2,i._openSetup(),i.trigger(\"opening\"),r.$html.addClass(s.dragging),_=t(r.$wndw[v]()*p[v].perc,p[v].min,p[v].max)}2==m&&(f=t(w,10,_)-(\"front\"==i.opts.offCanvas.zposition?_:0),l.negative&&(f=-f),c=\"translate\"+l.typeUpper+\"(\"+f+\"px )\",r.$slideOutNodes.css({\"-webkit-transform\":\"-webkit-\"+c,transform:c}))}).on(\"panend\",function(){2==m&&(r.$html.removeClass(s.dragging),r.$slideOutNodes.css(\"transform\",\"\"),i[g==l.open_dir?\"_openFinish\":\"close\"]()),m=0})}}},add:function(){return\"function\"!=typeof Hammer||Hammer.VERSION<2?(e[n].addons[o].setup=function(){},void 0):(s=e[n]._c,i=e[n]._d,a=e[n]._e,s.add(\"dragging\"),void 0)},clickAnchor:function(){}},e[n].defaults[o]={open:!1,maxStartPos:100,threshold:50,vendors:{hammer:{}}},e[n].configuration[o]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}};var s,i,a,r}(jQuery);\r\n/*\t\r\n * jQuery mmenu fixedElements addon\r\n * mmenu.frebsite.nl\r\n *\r\n * Copyright (c) Fred Heusschen\r\n */\r\n!function(i){var s=\"mmenu\",n=\"fixedElements\";i[s].addons[n]={setup:function(){if(this.opts.offCanvas){this.opts[n],this.conf[n],o=i[s].glbl;var a=function(i){var s=this.conf.classNames[n].fixed;this.__refactorClass(i.find(\".\"+s),s,\"slideout\").appendTo(o.$body)};a.call(this,o.$page),this.bind(\"setPage\",a)}},add:function(){a=i[s]._c,t=i[s]._d,e=i[s]._e,a.add(\"fixed\")},clickAnchor:function(){}},i[s].configuration.classNames[n]={fixed:\"Fixed\"};var a,t,e,o}(jQuery);\r\n/*\t\r\n * jQuery mmenu navbar addon\r\n * mmenu.frebsite.nl\r\n *\r\n * Copyright (c) Fred Heusschen\r\n */\r\n!function(n){var a=\"mmenu\",t=\"navbars\";n[a].addons[t]={setup:function(){var r=this,s=this.opts[t];if(this.conf[t],i=n[a].glbl,\"undefined\"!=typeof s){s instanceof Array||(s=[s]);var d={};n.each(s,function(i){var c=s[i];\"boolean\"==typeof c&&c&&(c={}),\"object\"!=typeof c&&(c={}),\"undefined\"==typeof c.content&&(c.content=[\"prev\",\"title\"]),c.content instanceof Array||(c.content=[c.content]),c=n.extend(!0,{},r.opts.navbar,c);var o=c.position;\"bottom\"!=o&&(o=\"top\"),d[o]||(d[o]=0),d[o]++;for(var l=n(\"<div />\").addClass(e.navbar).addClass(e.navbar+\"-\"+o).addClass(e.navbar+\"-\"+o+\"-\"+d[o]),h=0,f=c.content.length;f>h;h++){var v=n[a].addons[t][c.content[h]]||!1;v?v.call(r,l,c):(v=c.content[h],v instanceof n||(v=n(c.content[h])),v.each(function(){l.append(n(this))}))}var u=l.children().not(\".\"+e.btn).length;u>1&&l.addClass(e.navbar+\"-\"+u),l.children(\".\"+e.btn).length&&l.addClass(e.hasbtns),l.prependTo(r.$menu)});for(var c in d)r.$menu.addClass(e.hasnavbar+\"-\"+c+\"-\"+d[c])}},add:function(){e=n[a]._c,r=n[a]._d,s=n[a]._e,e.add(\"close hasbtns\")},clickAnchor:function(){}},n[a].configuration.classNames[t]={panelTitle:\"Title\",panelNext:\"Next\",panelPrev:\"Prev\"};var e,r,s,i}(jQuery),/*\t\r\n * jQuery mmenu navbar addon close content\r\n * mmenu.frebsite.nl\r\n *\r\n * Copyright (c) Fred Heusschen\r\n */\r\nfunction(n){var a=\"mmenu\",t=\"navbars\",e=\"close\";n[a].addons[t][e]=function(t){var e=n[a]._c,r=n[a].glbl;t.append('<a class=\"'+e.close+\" \"+e.btn+'\" href=\"#\"></a>');var s=function(n){t.find(\".\"+e.close).attr(\"href\",\"#\"+n.attr(\"id\"))};s.call(this,r.$page),this.bind(\"setPage\",s)}}(jQuery),/*\t\r\n * jQuery mmenu navbar addon next content\r\n * mmenu.frebsite.nl\r\n *\r\n * Copyright (c) Fred Heusschen\r\n */\r\nfunction(n){var a=\"mmenu\",t=\"navbars\",e=\"next\";n[a].addons[t][e]=function(e){var r=n[a]._c;e.append('<a class=\"'+r.next+\" \"+r.btn+'\" href=\"#\"></a>');var s=function(n){n=n||this.$menu.children(\".\"+r.current);var a=e.find(\".\"+r.next),s=n.find(\".\"+this.conf.classNames[t].panelNext),i=s.attr(\"href\"),d=s.html();a[i?\"attr\":\"removeAttr\"](\"href\",i),a[i||d?\"removeClass\":\"addClass\"](r.hidden),a.html(d)};this.bind(\"openPanel\",s),this.bind(\"init\",function(){s.call(this)})}}(jQuery),/*\t\r\n * jQuery mmenu navbar addon prev content\r\n * mmenu.frebsite.nl\r\n *\r\n * Copyright (c) Fred Heusschen\r\n */\r\nfunction(n){var a=\"mmenu\",t=\"navbars\",e=\"prev\";n[a].addons[t][e]=function(e){var r=n[a]._c;e.append('<a class=\"'+r.prev+\" \"+r.btn+'\" href=\"#\"></a>'),this.bind(\"init\",function(n){n.removeClass(r.hasnavbar)});var s=function(n){n=n||this.$menu.children(\".\"+r.current);var a=e.find(\".\"+r.prev),s=n.find(\".\"+this.conf.classNames[t].panelPrev);s.length||(s=n.children(\".\"+r.navbar).children(\".\"+r.prev));var i=s.attr(\"href\"),d=s.html();a[i?\"attr\":\"removeAttr\"](\"href\",i),a[i||d?\"removeClass\":\"addClass\"](r.hidden),a.html(d)};this.bind(\"openPanel\",s),this.bind(\"init\",function(){s.call(this)})}}(jQuery),/*\t\r\n * jQuery mmenu navbar addon searchfield content\r\n * mmenu.frebsite.nl\r\n *\r\n * Copyright (c) Fred Heusschen\r\n */\r\nfunction(n){var a=\"mmenu\",t=\"navbars\",e=\"searchfield\";n[a].addons[t][e]=function(t){var e=n[a]._c,r=n('<div class=\"'+e.search+'\" />').appendTo(t);\"object\"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=r}}(jQuery),/*\t\r\n * jQuery mmenu navbar addon title content\r\n * mmenu.frebsite.nl\r\n *\r\n * Copyright (c) Fred Heusschen\r\n */\r\nfunction(n){var a=\"mmenu\",t=\"navbars\",e=\"title\";n[a].addons[t][e]=function(e,r){var s=n[a]._c;e.append('<a class=\"'+s.title+'\"></a>');var i=function(n){n=n||this.$menu.children(\".\"+s.current);var a=e.find(\".\"+s.title),i=n.find(\".\"+this.conf.classNames[t].panelTitle);i.length||(i=n.children(\".\"+s.navbar).children(\".\"+s.title));var d=i.attr(\"href\"),c=i.html()||r.title;a[d?\"attr\":\"removeAttr\"](\"href\",d),a[d||c?\"removeClass\":\"addClass\"](s.hidden),a.html(c)};this.bind(\"openPanel\",i),this.bind(\"init\",function(){i.call(this)})}}(jQuery);\r\n/*\t\r\n * jQuery mmenu searchfield addon\r\n * mmenu.frebsite.nl\r\n *\r\n * Copyright (c) Fred Heusschen\r\n */\r\n!function(e){function s(e){switch(e){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1}var n=\"mmenu\",a=\"searchfield\";e[n].addons[a]={setup:function(){var o=this,d=this.opts[a],c=this.conf[a];r=e[n].glbl,\"boolean\"==typeof d&&(d={add:d}),\"object\"!=typeof d&&(d={}),d=this.opts[a]=e.extend(!0,{},e[n].defaults[a],d),this.bind(\"close\",function(){this.$menu.find(\".\"+l.search).find(\"input\").blur()}),this.bind(\"init\",function(n){if(d.add){switch(d.addTo){case\"panels\":var a=n;break;default:var a=e(d.addTo,this.$menu)}a.each(function(){var s=e(this);if(!s.is(\".\"+l.panel)||!s.is(\".\"+l.vertical)){if(!s.children(\".\"+l.search).length){var n=c.form?\"form\":\"div\",a=e(\"<\"+n+' class=\"'+l.search+'\" />');if(c.form&&\"object\"==typeof c.form)for(var t in c.form)a.attr(t,c.form[t]);a.append('<input placeholder=\"'+d.placeholder+'\" type=\"text\" autocomplete=\"off\" />'),s.hasClass(l.search)?s.replaceWith(a):s.prepend(a).addClass(l.hassearch)}if(d.noResults){var i=s.closest(\".\"+l.panel).length;if(i||(s=o.$menu.children(\".\"+l.panel).first()),!s.children(\".\"+l.noresultsmsg).length){var r=s.children(\".\"+l.listview);e('<div class=\"'+l.noresultsmsg+'\" />').append(d.noResults)[r.length?\"insertBefore\":\"prependTo\"](r.length?r:s)}}}}),d.search&&e(\".\"+l.search,this.$menu).each(function(){var n=e(this),a=n.closest(\".\"+l.panel).length;if(a)var r=n.closest(\".\"+l.panel),c=r;else var r=e(\".\"+l.panel,o.$menu),c=o.$menu;var h=n.children(\"input\"),u=o.__findAddBack(r,\".\"+l.listview).children(\"li\"),f=u.filter(\".\"+l.divider),p=o.__filterListItems(u),v=\"> a\",m=v+\", > span\",b=function(){var s=h.val().toLowerCase();r.scrollTop(0),p.add(f).addClass(l.hidden).find(\".\"+l.fullsubopensearch).removeClass(l.fullsubopen).removeClass(l.fullsubopensearch),p.each(function(){var n=e(this),a=v;(d.showTextItems||d.showSubPanels&&n.find(\".\"+l.next))&&(a=m),e(a,n).text().toLowerCase().indexOf(s)>-1&&n.add(n.prevAll(\".\"+l.divider).first()).removeClass(l.hidden)}),d.showSubPanels&&r.each(function(){var s=e(this);o.__filterListItems(s.find(\".\"+l.listview).children()).each(function(){var s=e(this),n=s.data(t.sub);s.removeClass(l.nosubresults),n&&n.find(\".\"+l.listview).children().removeClass(l.hidden)})}),e(r.get().reverse()).each(function(s){var n=e(this),i=n.data(t.parent);i&&(o.__filterListItems(n.find(\".\"+l.listview).children()).length?(i.hasClass(l.hidden)&&i.children(\".\"+l.next).not(\".\"+l.fullsubopen).addClass(l.fullsubopen).addClass(l.fullsubopensearch),i.removeClass(l.hidden).removeClass(l.nosubresults).prevAll(\".\"+l.divider).first().removeClass(l.hidden)):a||(n.hasClass(l.opened)&&setTimeout(function(){o.openPanel(i.closest(\".\"+l.panel))},1.5*(s+1)*o.conf.openingInterval),i.addClass(l.nosubresults)))}),c[p.not(\".\"+l.hidden).length?\"removeClass\":\"addClass\"](l.noresults),this.update()};h.off(i.keyup+\"-searchfield \"+i.change+\"-searchfield\").on(i.keyup+\"-searchfield\",function(e){s(e.keyCode)||b.call(o)}).on(i.change+\"-searchfield\",function(){b.call(o)})})}})},add:function(){l=e[n]._c,t=e[n]._d,i=e[n]._e,l.add(\"search hassearch noresultsmsg noresults nosubresults fullsubopensearch\"),i.add(\"change keyup\")},clickAnchor:function(){}},e[n].defaults[a]={add:!1,addTo:\"panels\",search:!0,placeholder:\"Search\",noResults:\"No results found.\",showTextItems:!1,showSubPanels:!0},e[n].configuration[a]={form:!1};var l,t,i,r}(jQuery);\r\n/*\t\r\n * jQuery mmenu sectionIndexer addon\r\n * mmenu.frebsite.nl\r\n *\r\n * Copyright (c) Fred Heusschen\r\n */\r\n!function(e){var a=\"mmenu\",r=\"sectionIndexer\";e[a].addons[r]={setup:function(){var n=this,d=this.opts[r];this.conf[r],t=e[a].glbl,\"boolean\"==typeof d&&(d={add:d}),\"object\"!=typeof d&&(d={}),d=this.opts[r]=e.extend(!0,{},e[a].defaults[r],d),this.bind(\"init\",function(a){if(d.add){switch(d.addTo){case\"panels\":var r=a;break;default:var r=e(d.addTo,this.$menu).filter(\".\"+i.panel)}r.find(\".\"+i.divider).closest(\".\"+i.panel).addClass(i.hasindexer)}if(!this.$indexer&&this.$menu.children(\".\"+i.hasindexer).length){this.$indexer=e('<div class=\"'+i.indexer+'\" />').prependTo(this.$menu).append('<a href=\"#a\">a</a><a href=\"#b\">b</a><a href=\"#c\">c</a><a href=\"#d\">d</a><a href=\"#e\">e</a><a href=\"#f\">f</a><a href=\"#g\">g</a><a href=\"#h\">h</a><a href=\"#i\">i</a><a href=\"#j\">j</a><a href=\"#k\">k</a><a href=\"#l\">l</a><a href=\"#m\">m</a><a href=\"#n\">n</a><a href=\"#o\">o</a><a href=\"#p\">p</a><a href=\"#q\">q</a><a href=\"#r\">r</a><a href=\"#s\">s</a><a href=\"#t\">t</a><a href=\"#u\">u</a><a href=\"#v\">v</a><a href=\"#w\">w</a><a href=\"#x\">x</a><a href=\"#y\">y</a><a href=\"#z\">z</a>'),this.$indexer.children().on(s.mouseover+\"-searchfield \"+i.touchstart+\"-searchfield\",function(){var a=e(this).attr(\"href\").slice(1),r=n.$menu.children(\".\"+i.current),s=r.find(\".\"+i.listview),t=!1,d=r.scrollTop(),h=s.position().top+parseInt(s.css(\"margin-top\"),10)+parseInt(s.css(\"padding-top\"),10)+d;r.scrollTop(0),s.children(\".\"+i.divider).not(\".\"+i.hidden).each(function(){t===!1&&a==e(this).text().slice(0,1).toLowerCase()&&(t=e(this).position().top+h)}),r.scrollTop(t!==!1?t:d)});var t=function(e){n.$menu[(e.hasClass(i.hasindexer)?\"add\":\"remove\")+\"Class\"](i.hasindexer)};this.bind(\"openPanel\",t),t.call(this,this.$menu.children(\".\"+i.current))}})},add:function(){i=e[a]._c,n=e[a]._d,s=e[a]._e,i.add(\"indexer hasindexer\"),s.add(\"mouseover touchstart\")},clickAnchor:function(e){return e.parent().is(\".\"+i.indexer)?!0:void 0}},e[a].defaults[r]={add:!1,addTo:\"panels\"};var i,n,s,t}(jQuery);\r\n/*\t\r\n * jQuery mmenu toggles addon\r\n * mmenu.frebsite.nl\r\n *\r\n * Copyright (c) Fred Heusschen\r\n */\r\n!function(t){var e=\"mmenu\",c=\"toggles\";t[e].addons[c]={setup:function(){var n=this;this.opts[c],this.conf[c],l=t[e].glbl,this.bind(\"init\",function(e){this.__refactorClass(t(\"input\",e),this.conf.classNames[c].toggle,\"toggle\"),this.__refactorClass(t(\"input\",e),this.conf.classNames[c].check,\"check\"),t(\"input.\"+s.toggle+\", input.\"+s.check,e).each(function(){var e=t(this),c=e.closest(\"li\"),i=e.hasClass(s.toggle)?\"toggle\":\"check\",l=e.attr(\"id\")||n.__getUniqueId();c.children('label[for=\"'+l+'\"]').length||(e.attr(\"id\",l),c.prepend(e),t('<label for=\"'+l+'\" class=\"'+s[i]+'\"></label>').insertBefore(c.children(\"a, span\").last()))})})},add:function(){s=t[e]._c,n=t[e]._d,i=t[e]._e,s.add(\"toggle check\")},clickAnchor:function(){}},t[e].configuration.classNames[c]={toggle:\"Toggle\",check:\"Check\"};var s,n,i,l}(jQuery);","/*!*\r\n * Description: General JS\r\n * @author Abraham Martinez <apps@hunabku.com.mx>\r\n * @creacion  2016/09/14\r\n * @actualizacion 2016/09/14\r\n */\r\n\r\n// usage: log('inside coolFunc', this, arguments);\r\n// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/\r\nwindow.log = function f(){ log.history = log.history || []; log.history.push(arguments); if(this.console) { var args = arguments, newarr; args.callee = args.callee.caller; newarr = [].slice.call(args); if (typeof console.log === 'object') log.apply.call(console.log, console, newarr); else console.log.apply(console, newarr);}};\r\n// make it safe to use console.log always\r\n(function(a){function b(){}for(var c=\"assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn\".split(\",\"),d;!!(d=c.pop());){a[d]=a[d]||b;}})\r\n(function(){try{console.log();return window.console;}catch(a){return (window.console={});}}());\r\n\r\n/** ###  START -> Abraham Martinez ( awe160378@hotmail.com ) ###\r\n *\r\n */\r\n\t\t;var log = function($s){if(_DEBUG_==true){console.log($s)}};\r\n\t//*** resizeWindow **//\r\n\t\t;var ghk_resizeWindowFn=new Array();var resizeWindow_callback=function(functions){if(functions.length>0){for(var i in functions){eval(functions[i])}}};var resizeWindow=function(){var b,c,a;if(typeof window.innerWidth!=\"undefined\"){b=window.innerWidth;c=window.innerHeight}else{if(typeof document.documentElement!=\"undefined\"&&typeof document.documentElement.clientWidth!=\"undefined\"&&document.documentElement.clientWidth!=0){b=document.documentElement.clientWidth,c=document.documentElement.clientHeight}else{b=document.getElementsByTagName(\"body\")[0].clientWidth,c=document.getElementsByTagName(\"body\")[0].clientHeight}}if($.winInnerW==0){$.winInnerW=b}if($.winInnerW<=b){a=\"lg\";if(b<1200){a=\"md\"}if(b<992){a=\"sm\"}if(b<768){a=\"xs\"}}else{if(b>0){a=\"xs\"}if(b>=768){a=\"sm\"}if(b>=992){a=\"md\"}if(b>=1200){a=\"lg\"}}$.winInnerW=b;$.winInnerH=c;if($.ScreenType!=a){}$.ScreenType=a;resizeWindow_callback(ghk_resizeWindowFn)};\r\n\t//*** scrollWindow **//\r\n\t\t;var ghk_scrollWinFn=new Array();var ghk_fScrollWinCback=function(functions){if(functions.length>0){for(var i in functions){eval(functions[i])}}};var ghk_fScrollWin=function(){$.winScrollTop = $($.Window).scrollTop();ghk_fScrollWinCback(ghk_scrollWinFn);};\r\n\r\n/*!\r\n* VERSION: 1.11.8\r\n* DATE: 2014-05-13\r\n* UPDATES AND DOCS AT: http://www.greensock.com\r\n*\r\n* @license Copyright (c) 2008-2014, GreenSock. All rights reserved.\r\n* This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for\r\n* Club GreenSock members, the software agreement that was issued with your membership.\r\n*\r\n* @author: Jack Doyle, jack@greensock.com\r\n*/\r\n\r\n/*! Is using TweenLite, TimeLineLite, EasePack & CSSPlugin\r\n */\r\n;eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\\\b'+e(c)+'\\\\b','g'),k[c])}}return p}('(17(e){\"4V 4U\";19 t=e.5Z||e;1a(!t.5f){19 n,r,i,s,o,u=17(e){19 n,r=e.1t(\".\"),i=t;1b(n=0;r.1c>n;n++)i[r[n]]=i=i[r[n]]||{};18 i},a=u(\"4Q.4R\"),f=1e-10,l=[].6K,c=17(){},h=17(){19 e=9V.1y.9W,t=e.1W([]);18 17(n){18 1d!=n&&(n 2b 3N||\"3U\"==1j n&&!!n.2d&&e.1W(n)===t)}}(),p={},d=17(n,r,i,s){15.4C=p[n]?p[n].4C:[],p[n]=15,15.54=1d,15.7A=i;19 o=[];15.64=17(a){1b(19 f,l,c,h,v=r.1c,m=v;--v>-1;)(f=p[r[v]]||1h d(r[v],[])).54?(o[v]=f.54,m--):a&&f.4C.2d(15);1a(0===m&&i)1b(l=(\"4Q.4R.\"+n).1t(\".\"),c=l.4q(),h=u(l.1J(\".\"))[c]=15.54=i.35(i,o),s&&(t[c]=h,\"17\"==1j 63&&63.9X?63((e.8j?e.8j+\"/\":\"\")+n.1t(\".\").1J(\"/\"),[],17(){18 h}):\"9U\"!=1j 62&&62.8f&&(62.8f=h)),v=0;15.4C.1c>v;v++)15.4C[v].64()},15.64(!0)},v=e.3u=17(e,t,n,r){18 1h d(e,t,n,r)},m=a.8k=17(e,t,n){18 t=t||17(){},v(e,[],17(){18 t},n),t};v.77=t;19 g=[0,0,1,1],y=[],b=m(\"2o.8h\",17(e,t,n,r){15.5L=e,15.6v=n||0,15.6t=r||0,15.5H=t?g.43(t):g},!0),w=b.7C={},E=b.8l=17(e,t,n,r){1b(19 i,s,o,u,f=t.1t(\",\"),l=f.1c,c=(n||\"5k,6c,5m\").1t(\",\");--l>-1;)1b(s=f[l],i=r?m(\"2o.\"+s,1d,!0):a.2o[s]||{},o=c.1c;--o>-1;)u=c[o],w[s+\".\"+u]=w[u+s]=i[u]=e.2w?e:e[u]||1h e};1b(i=b.1y,i.3s=!1,i.2w=17(e){1a(15.5L)18 15.5H[0]=e,15.5L.35(1d,15.5H);19 t=15.6v,n=15.6t,r=1===t?1-e:2===t?e:.5>e?2*e:2*(1-e);18 1===n?r*=r:2===n?r*=r*r:3===n?r*=r*r*r:4===n&&(r*=r*r*r*r),1===t?1-r:2===t?r:.5>e?r/2:1-r/2},n=[\"7X\",\"7Z\",\"9T\",\"9Q\",\"9R,9S\"],r=n.1c;--r>-1;)i=n[r]+\",9Y\"+r,E(1h b(1d,1d,1,r),i,\"6c\",!0),E(1h b(1d,1d,2,r),i,\"5k\"+(0===r?\",9Z\":\"\")),E(1h b(1d,1d,3,r),i,\"5m\");w.a5=a.2o.7X.5k,w.a6=a.2o.7Z.5m;19 S=m(\"8V.8W\",17(e){15.4d={},15.85=e||15});i=S.1y,i.79=17(e,t,n,r,i){i=i||0;19 u,a,f=15.4d[e],l=0;1b(1d==f&&(15.4d[e]=f=[]),a=f.1c;--a>-1;)u=f[a],u.c===t&&u.s===n?f.2Q(a,1):0===l&&i>u.2s&&(l=a+1);f.2Q(l,0,{c:t,s:n,8a:r,2s:i}),15!==s||o||s.31()},i.a7=17(e,t){19 n,r=15.4d[e];1a(r)1b(n=r.1c;--n>-1;)1a(r[n].c===t)18 r.2Q(n,1),2h 0},i.8Q=17(e){19 t,n,r,i=15.4d[e];1a(i)1b(t=i.1c,n=15.85;--t>-1;)r=i[t],r.8a?r.c.1W(r.s||n,{2p:e,2x:n}):r.c.1W(r.s||n)};19 x=e.a4,T=e.a3,N=88.a0||17(){18(1h 88).a1()},C=N();1b(n=[\"5t\",\"a2\",\"9P\",\"o\"],r=n.1c;--r>-1&&!x;)x=e[n[r]+\"9O\"],T=e[n[r]+\"9B\"]||e[n[r]+\"9C\"];m(\"4Y\",17(e,t){19 n,r,i,u,a,f=15,l=N(),h=t!==!1&&x,p=17(e){C=N(),f.34=(C-l)/8L;19 t,s=f.34-a;(!n||s>0||e===!0)&&(f.3F++,a+=s+(s>=u?.9D:u-s),t=!0),e!==!0&&(i=r(p)),t&&f.8Q(\"4W\")};S.1W(f),f.34=f.3F=0,f.4W=17(){p(!0)},f.5c=17(){1d!=i&&(h&&T?T(i):9A(i),r=c,i=1d,f===s&&(o=!1))},f.31=17(){1d!==i&&f.5c(),r=0===n?c:h&&x?x:17(e){18 5M(e,0|8L*(a-f.34)+1)},f===s&&(o=!0),p(2)},f.5G=17(e){18 2m.1c?(n=e,u=1/(n||60),a=15.34+u,f.31(),2h 0):n},f.8S=17(e){18 2m.1c?(f.5c(),h=e,f.5G(n),2h 0):h},f.5G(e),5M(17(){h&&(!i||5>f.3F)&&f.8S(!1)},9z)}),i=a.4Y.1y=1h a.8V.8W,i.2K=a.4Y;19 k=m(\"5C.8H\",17(e,t){1a(15.1p=t=t||{},15.1C=15.2i=e||0,15.2L=1D(t.4x)||0,15.1x=1,15.2a=t.1Y===!0,15.1A=t.1A,15.2M=t.48===!0,q){o||s.31();19 n=15.1p.5K?I:q;n.1U(15,n.1n),15.1p.3e&&15.3e(!0)}});s=k.6f=1h a.4Y,i=k.1y,i.2r=i.1O=i.2z=i.1B=!1,i.1H=i.1n=0,i.1z=-1,i.1f=i.3l=i.33=i.1o=i.21=1d,i.1B=!1;19 L=17(){o&&N()-C>8J&&s.31(),5M(L,8J)};L(),i.73=17(e,t){18 1d!=e&&15.4b(e,t),15.48(!1).3e(!1)},i.5N=17(e,t){18 1d!=e&&15.4b(e,t),15.3e(!0)},i.9v=17(e,t){18 1d!=e&&15.4b(e,t),15.3e(!1)},i.4b=17(e,t){18 15.2Z(1D(e),t!==!1)},i.9w=17(e,t){18 15.48(!1).3e(!1).2Z(e?-15.2L:0,t!==!1,!0)},i.9x=17(e,t){18 1d!=e&&15.4b(e||15.23(),t),15.48(!0).3e(!1)},i.1E=17(){},i.5u=17(){18 15},i.4n=17(){19 e,t=15.1o,n=15.1i;18!t||!15.1O&&!15.1B&&t.4n()&&(e=t.3H())>=n&&n+15.23()/15.1x>e},i.1N=17(e,t){18 o||s.31(),15.1O=!e,15.2a=15.4n(),t!==!0&&(e&&!15.21?15.1o.1U(15,15.1i-15.2L):!e&&15.21&&15.1o.3K(15,!0)),!1},i.2n=17(){18 15.1N(!1,!1)},i.4f=17(e,t){18 15.2n(e,t),15},i.3c=17(e){1b(19 t=e?15:15.21;t;)t.2r=!0,t=t.21;18 15},i.5l=17(e){1b(19 t=e.1c,n=e.43();--t>-1;)\"{4B}\"===e[t]&&(n[t]=15);18 n},i.9y=17(e,t,n,r){1a(\"9E\"===(e||\"\").1q(0,2)){19 i=15.1p;1a(1===2m.1c)18 i[e];1d==t?3E i[e]:(i[e]=t,i[e+\"5Y\"]=h(n)&&-1!==n.1J(\"\").1k(\"{4B}\")?15.5l(n):n,i[e+\"5J\"]=r),\"5A\"===e&&(15.33=t)}18 15},i.4x=17(e){18 2m.1c?(15.1o.2j&&15.8C(15.1i+e-15.2L),15.2L=e,15):15.2L},i.2C=17(e){18 2m.1c?(15.1C=15.2i=e,15.3c(!0),15.1o.2j&&15.1n>0&&15.1n<15.1C&&0!==e&&15.2Z(15.1H*(e/15.1C),!0),15):(15.2r=!1,15.1C)},i.23=17(e){18 15.2r=!1,2m.1c?15.2C(e):15.2i},i.34=17(e,t){18 2m.1c?(15.2r&&15.23(),15.2Z(e>15.1C?15.1C:e,t)):15.1n},i.2Z=17(e,t,n){1a(o||s.31(),!2m.1c)18 15.1H;1a(15.1o){1a(0>e&&!n&&(e+=15.23()),15.1o.2j){15.2r&&15.23();19 r=15.2i,i=15.1o;1a(e>r&&!n&&(e=r),15.1i=(15.1B?15.4O:i.1n)-(15.2M?r-e:e)/15.1x,i.2r||15.3c(!1),i.1o)1b(;i.1o;)i.1o.1n!==(i.1i+i.1H)/i.1x&&i.2Z(i.1H,!0),i=i.1o}15.1O&&15.1N(!0,!1),(15.1H!==e||0===15.1C)&&15.1E(e,t,!1)}18 15},i.9F=i.9L=17(e,t){18 2m.1c?15.2Z(15.2C()*e,t):15.1n/15.2C()},i.8C=17(e){18 2m.1c?(e!==15.1i&&(15.1i=e,15.21&&15.21.4K&&15.21.1U(15,e-15.2L)),15):15.1i},i.6q=17(e){1a(!2m.1c)18 15.1x;1a(e=e||f,15.1o&&15.1o.2j){19 t=15.4O,n=t||0===t?t:15.1o.2Z();15.1i=n-(n-15.1i)*15.1x/e}18 15.1x=e,15.3c(!1)},i.48=17(e){18 2m.1c?(e!=15.2M&&(15.2M=e,15.2Z(15.1o&&!15.1o.2j?15.23()-15.1H:15.1H,!0)),15):15.2M},i.3e=17(e){1a(!2m.1c)18 15.1B;1a(e!=15.1B&&15.1o){o||e||s.31();19 t=15.1o,n=t.3H(),r=n-15.4O;!e&&t.2j&&(15.1i+=r,15.3c(!1)),15.4O=e?n:1d,15.1B=e,15.2a=15.4n(),!e&&0!==r&&15.2z&&15.2C()&&15.1E(t.2j?15.1H:(n-15.1i)/15.1x,!0,!0)}18 15.1O&&!e&&15.1N(!0,!1),15};19 A=m(\"5C.7y\",17(e){k.1W(15,0,e),15.4H=15.2j=!0});i=A.1y=1h k,i.2K=A,i.4f().1O=!1,i.26=i.3l=1d,i.4K=!1,i.1U=i.7w=17(e,t){19 n,r;1a(e.1i=1D(t||0)+e.2L,e.1B&&15!==e.1o&&(e.4O=e.1i+(15.3H()-e.1i)/e.1x),e.21&&e.21.3K(e,!0),e.21=e.1o=15,e.1O&&e.1N(!0,!0),n=15.3l,15.4K)1b(r=e.1i;n&&n.1i>r;)n=n.1l;18 n?(e.1f=n.1f,n.1f=e):(e.1f=15.26,15.26=e),e.1f?e.1f.1l=e:15.3l=e,e.1l=n,15.1o&&15.3c(!0),15},i.3K=17(e,t){18 e.21===15&&(t||e.1N(!1,!0),e.21=1d,e.1l?e.1l.1f=e.1f:15.26===e&&(15.26=e.1f),e.1f?e.1f.1l=e.1l:15.3l===e&&(15.3l=e.1l),15.1o&&15.3c(!0)),15},i.1E=17(e,t,n){19 r,i=15.26;1b(15.1H=15.1n=15.1z=e;i;)r=i.1f,(i.2a||e>=i.1i&&!i.1B)&&(i.2M?i.1E((i.2r?i.23():i.2i)-(e-i.1i)*i.1x,t,n):i.1E((e-i.1i)*i.1x,t,n)),i=r},i.3H=17(){18 o||s.31(),15.1H};19 O=m(\"5f\",17(t,n,r){1a(k.1W(15,n,r),15.1E=O.1y.1E,1d==t)6l\"7e 6R a 1d 2x.\";15.2x=t=\"1L\"!=1j t?t:O.3I(t)||t;19 i,s,o,u=t.9M||t.1c&&t!==e&&t[0]&&(t[0]===e||t[0].3n&&t[0].1w&&!t.3n),a=15.1p.4I;1a(15.6j=a=1d==a?F[O.8G]:\"2y\"==1j a?a>>0:F[a],(u||t 2b 3N||t.2d&&h(t))&&\"2y\"!=1j t[0])1b(15.2F=o=l.1W(t,0),15.3A=[],15.2T=[],i=0;o.1c>i;i++)s=o[i],s?\"1L\"!=1j s?s.1c&&s!==e&&s[0]&&(s[0]===e||s[0].3n&&s[0].1w&&!s.3n)?(o.2Q(i--,1),15.2F=o=o.43(l.1W(s,0))):(15.2T[i]=R(s,15,!1),1===a&&15.2T[i].1c>1&&U(s,15,1d,1,15.2T[i])):(s=o[i--]=O.3I(s),\"1L\"==1j s&&o.2Q(i+1,1)):o.2Q(i--,1);1m 15.3A={},15.2T=R(t,15,!1),1===a&&15.2T.1c>1&&U(t,15,1d,1,15.2T);(15.1p.1Y||0===n&&0===15.2L&&15.1p.1Y!==!1)&&15.1E(-15.2L,!1,!0)},!0),M=17(t){18 t.1c&&t!==e&&t[0]&&(t[0]===e||t[0].3n&&t[0].1w&&!t.3n)},2f=17(e,t){19 n,r={};1b(n 1u e)j[n]||n 1u t&&\"x\"!==n&&\"y\"!==n&&\"3k\"!==n&&\"3y\"!==n&&\"3a\"!==n&&\"3X\"!==n||!(!P[n]||P[n]&&P[n].9N)||(r[n]=e[n],3E e[n]);e.4P=r};i=O.1y=1h k,i.2K=O,i.4f().1O=!1,i.3j=0,i.1s=i.2F=i.3m=i.29=1d,i.4u=!1,O.3V=\"1.11.8\",O.6r=i.2H=1h b(1d,1d,1,1),O.8G=\"2t\",O.6f=s,O.7j=!0,O.3I=e.$||e.9K||17(t){18 e.$?(O.3I=e.$,e.$(t)):e.6h?e.6h.9J(\"#\"===t.1v(0)?t.1q(1):t):t};19 D=O.4s={7E:h,7p:M},P=O.9G={},H=O.9H={},B=0,j=D.7k={3z:1,4x:1,4I:1,49:1,6a:1,6s:1,5K:1,4w:1,30:1,5A:1,5U:1,5T:1,4E:1,61:1,5P:1,4i:1,7J:1,7M:1,9I:1,a8:1,a9:1,5d:1,aA:1,1Y:1,5j:1,aB:1,1A:1,3e:1,48:1,6k:1},F={3t:0,41:1,2t:2,aC:3,az:4,ay:5,\"av\":1,\"5X\":0},I=k.7P=1h A,q=k.aw=1h A;q.1i=s.34,I.1i=s.3F,q.2a=I.2a=!0,k.7h=17(){1a(q.1E((s.34-q.1i)*q.1x,!1,!1),I.1E((s.3F-I.1i)*I.1x,!1,!1),!(s.3F%ax)){19 e,t,n;1b(n 1u H){1b(t=H[n].3J,e=t.1c;--e>-1;)t[e].1O&&t.2Q(e,1);0===t.1c&&3E H[n]}1a(n=q.26,(!n||n.1B)&&O.7j&&!I.26&&1===s.4d.4W.1c){1b(;n&&n.1B;)n=n.1f;n||s.5c()}}},s.79(\"4W\",k.7h);19 R=17(e,t,n){19 r,i,s=e.7g;1a(H[s||(e.7g=s=\"t\"+B++)]||(H[s]={2x:e,3J:[]}),t&&(r=H[s].3J,r[i=r.1c]=t,n))1b(;--i>-1;)r[i]===t&&r.2Q(i,1);18 H[s].3J},U=17(e,t,n,r,i){19 s,o,u,a;1a(1===r||r>=4){1b(a=i.1c,s=0;a>s;s++)1a((u=i[s])!==t)u.1O||u.1N(!1,!1)&&(o=!0);1m 1a(5===r)76;18 o}19 l,c=t.1i+f,h=[],p=0,d=0===t.1C;1b(s=i.1c;--s>-1;)(u=i[s])===t||u.1O||u.1B||(u.1o!==t.1o?(l=l||z(t,0,d),0===z(u,l,d)&&(h[p++]=u)):c>=u.1i&&u.1i+u.23()/u.1x>c&&((d||!u.2z)&&2e-10>=c-u.1i||(h[p++]=u)));1b(s=p;--s>-1;)u=h[s],2===r&&u.2n(n,e)&&(o=!0),(2!==r||!u.1s&&u.2z)&&u.1N(!1,!1)&&(o=!0);18 o},z=17(e,t,n){1b(19 r=e.1o,i=r.1x,s=e.1i;r.1o;){1a(s+=r.1i,i*=r.1x,r.1B)18-22;r=r.1o}18 s/=i,s>t?s-t:n&&s===t||!e.2z&&2*f>s-t?f:(s+=e.23()/e.1x/i)>t+f?0:s-t-f};i.78=17(){19 e,t,n,r,i=15.1p,s=15.3m,o=15.1C,u=i.1Y,a=i.3z;1a(i.30){1a(15.29&&15.29.1E(-1,!0),i.30.4I=0,i.30.1Y=!0,15.29=O.3Q(15.2x,0,i.30),u)1a(15.1n>0)15.29=1d;1m 1a(0!==o)18}1m 1a(i.4w&&0!==o)1a(15.29)15.29.1E(-1,!0),15.29=1d;1m{n={};1b(r 1u i)j[r]&&\"6k\"!==r||(n[r]=i[r]);1a(n.4I=0,n.1A=\"8D\",15.29=O.3Q(15.2x,0,n),i.1Y){1a(0===15.1n)18}1m 15.29.1E(-1,!0)}1a(15.2H=a?a 2b b?i.5d 2b 3N?a.3o.35(a,i.5d):a:\"17\"==1j a?1h b(a,i.5d):w[a]||O.6r:O.6r,15.67=15.2H.6v,15.72=15.2H.6t,15.1s=1d,15.2F)1b(e=15.2F.1c;--e>-1;)15.4p(15.2F[e],15.3A[e]={},15.2T[e],s?s[e]:1d)&&(t=!0);1m t=15.4p(15.2x,15.3A,15.2T,s);1a(t&&O.5z(\"5D\",15),s&&(15.1s||\"17\"!=1j 15.2x&&15.1N(!1,!1)),i.4w)1b(n=15.1s;n;)n.s+=n.c,n.c=-n.c,n=n.1f;15.33=i.5A,15.2z=!0},i.4p=17(t,n,r,i){19 s,o,u,a,f,l;1a(1d==t)18!1;15.1p.4P||t.1w&&t!==e&&t.3n&&P.4P&&15.1p.6k!==!1&&2f(15.1p,t);1b(s 1u 15.1p){1a(l=15.1p[s],j[s])l&&(l 2b 3N||l.2d&&h(l))&&-1!==l.1J(\"\").1k(\"{4B}\")&&(15.1p[s]=l=15.5l(l,15));1m 1a(P[s]&&(a=1h P[s]).6V(t,15.1p[s],15)){1b(15.1s=f={1f:15.1s,t:a,p:\"1S\",s:0,c:1,f:!0,n:s,4J:!0,2s:a.5W},o=a.2B.1c;--o>-1;)n[a.2B[o]]=15.1s;(a.5W||a.5D)&&(u=!0),(a.65||a.7L)&&(15.4u=!0)}1m 15.1s=n[s]=f={1f:15.1s,t:t,p:s,f:\"17\"==1j t[s],n:s,4J:!1,2s:0},f.s=f.f?t[s.1k(\"4h\")||\"17\"!=1j t[\"71\"+s.1q(3)]?s:\"71\"+s.1q(3)]():1r(t[s]),f.c=\"1L\"==1j l&&\"=\"===l.1v(1)?3v(l.1v(0)+\"1\",10)*1D(l.1q(2)):1D(l)-f.s||0;f&&f.1f&&(f.1f.1l=f)}18 i&&15.2n(i,t)?15.4p(t,n,r,i):15.6j>1&&15.1s&&r.1c>1&&U(t,15,n,15.6j,r)?(15.2n(n,t),15.4p(t,n,r,i)):u},i.1E=17(e,t,n){19 r,i,s,o,u=15.1n,a=15.1C;1a(e>=a)15.1H=15.1n=a,15.3j=15.2H.3s?15.2H.2w(1):1,15.2M||(r=!0,i=\"49\"),0===a&&(o=15.1z,15.1i===15.1o.1C&&(e=0),(0===e||0>o||o===f)&&o!==e&&(n=!0,o>f&&(i=\"4i\")),15.1z=o=!t||e||15.1z===e?e:f);1m 1a(1e-7>e)15.1H=15.1n=0,15.3j=15.2H.3s?15.2H.2w(0):0,(0!==u||0===a&&15.1z>0&&15.1z!==f)&&(i=\"4i\",r=15.2M),0>e?(15.2a=!1,0===a&&(15.1z>=0&&(n=!0),15.1z=o=!t||e||15.1z===e?e:f)):15.2z||(n=!0);1m 1a(15.1H=15.1n=e,15.67){19 l=e/a,c=15.67,h=15.72;(1===c||3===c&&l>=.5)&&(l=1-l),3===c&&(l*=2),1===h?l*=l:2===h?l*=l*l:3===h?l*=l*l*l:4===h&&(l*=l*l*l*l),15.3j=1===c?1-l:2===c?l:.5>e/a?l/2:1-l/2}1m 15.3j=15.2H.2w(e/a);1a(15.1n!==u||n){1a(!15.2z){1a(15.78(),!15.2z||15.1O)18;15.1n&&!r?15.3j=15.2H.2w(15.1n/a):r&&15.2H.3s&&(15.3j=15.2H.2w(0===15.1n?0:1))}1b(15.2a||!15.1B&&15.1n!==u&&e>=0&&(15.2a=!0),0===u&&(15.29&&(e>=0?15.29.1E(e,t,n):i||(i=\"aE\")),15.1p.4E&&(0!==15.1n||0===a)&&(t||15.1p.4E.35(15.1p.5P||15,15.1p.61||y))),s=15.1s;s;)s.f?s.t[s.p](s.c*15.3j+s.s):s.t[s.p]=s.c*15.3j+s.s,s=s.1f;15.33&&(0>e&&15.29&&15.1i&&15.29.1E(e,t,n),t||(15.1n!==u||r)&&15.33.35(15.1p.5T||15,15.1p.5U||y)),i&&(15.1O||(0>e&&15.29&&!15.33&&15.1i&&15.29.1E(e,t,n),r&&(15.1o.4H&&15.1N(!1,!1),15.2a=!1),!t&&15.1p[i]&&15.1p[i].35(15.1p[i+\"5J\"]||15,15.1p[i+\"5Y\"]||y),0===a&&15.1z===f&&o!==f&&(15.1z=0)))}},i.2n=17(e,t){1a(\"41\"===e&&(e=1d),1d==e&&(1d==t||t===15.2x))18 15.1N(!1,!1);t=\"1L\"!=1j t?t||15.2F||15.2x:O.3I(t)||t;19 n,r,i,s,o,u,a,f;1a((h(t)||M(t))&&\"2y\"!=1j t[0])1b(n=t.1c;--n>-1;)15.2n(e,t[n])&&(u=!0);1m{1a(15.2F){1b(n=15.2F.1c;--n>-1;)1a(t===15.2F[n]){o=15.3A[n]||{},15.3m=15.3m||[],r=15.3m[n]=e?15.3m[n]||{}:\"41\";76}}1m{1a(t!==15.2x)18!1;o=15.3A,r=15.3m=e?15.3m||{}:\"41\"}1a(o){a=e||o,f=e!==r&&\"41\"!==r&&e!==o&&(\"3U\"!=1j e||!e.aK);1b(i 1u a)(s=o[i])&&(s.4J&&s.t.2n(a)&&(u=!0),s.4J&&0!==s.t.2B.1c||(s.1l?s.1l.1f=s.1f:s===15.1s&&(15.1s=s.1f),s.1f&&(s.1f.1l=s.1l),s.1f=s.1l=1d),3E o[i]),f&&(r[i]=1);!15.1s&&15.2z&&15.1N(!1,!1)}}18 u},i.5u=17(){18 15.4u&&O.5z(\"65\",15),15.1s=1d,15.3m=1d,15.33=1d,15.29=1d,15.2z=15.2a=15.4u=!1,15.3A=15.2F?{}:[],15},i.1N=17(e,t){1a(o||s.31(),e&&15.1O){19 n,r=15.2F;1a(r)1b(n=r.1c;--n>-1;)15.2T[n]=R(r[n],15,!0);1m 15.2T=R(15.2x,15,!0)}18 k.1y.1N.1W(15,e,t),15.4u&&15.1s?O.5z(e?\"7L\":\"65\",15):!1},O.3Q=17(e,t,n){18 1h O(e,t,n)},O.66=17(e,t,n){18 n.4w=!0,n.1Y=0!=n.1Y,1h O(e,t,n)},O.6b=17(e,t,n,r){18 r.30=n,r.1Y=0!=r.1Y&&0!=n.1Y,1h O(e,t,r)},O.6o=17(e,t,n,r,i){18 1h O(t,0,{4x:e,49:t,6a:n,6s:r,4i:t,7J:n,7M:r,1Y:!1,5K:i,4I:0})},O.4h=17(e,t){18 1h O(e,0,t)},O.40=17(e,t){1a(1d==e)18[];e=\"1L\"!=1j e?e:O.3I(e)||e;19 n,r,i,s;1a((h(e)||M(e))&&\"2y\"!=1j e[0]){1b(n=e.1c,r=[];--n>-1;)r=r.43(O.40(e[n],t));1b(n=r.1c;--n>-1;)1b(s=r[n],i=n;--i>-1;)s===r[i]&&r.2Q(n,1)}1m 1b(r=R(e).43(),n=r.1c;--n>-1;)(r[n].1O||t&&!r[n].4n())&&r.2Q(n,1);18 r},O.9u=O.aI=17(e,t,n){\"3U\"==1j t&&(n=t,t=!1);1b(19 r=O.40(e,t),i=r.1c;--i>-1;)r[i].2n(n,e)};19 W=m(\"4S.80\",17(e,t){15.2B=(e||\"\").1t(\",\"),15.4D=15.2B[0],15.5W=t||0,15.aF=W.1y},!0);1a(i=W.1y,W.3V=\"1.10.1\",W.3w=2,i.1s=1d,i.aG=17(e,t,n,r,i,s){19 o,u;18 1d!=r&&(o=\"2y\"==1j r||\"=\"!==r.1v(1)?1D(r)-n:3v(r.1v(0)+\"1\",10)*1D(r.1q(2)))?(15.1s=u={1f:15.1s,t:e,p:t,s:n,c:o,f:\"17\"==1j e[t],n:i||t,r:s},u.1f&&(u.1f.1l=u),u):2h 0},i.1S=17(e){1b(19 t,n=15.1s,r=1e-6;n;)t=n.c*e+n.s,n.r?t=1g.3G(t):r>t&&t>-r&&(t=0),n.f?n.t[n.p](t):n.t[n.p]=t,n=n.1f},i.2n=17(e){19 t,n=15.2B,r=15.1s;1a(1d!=e[15.4D])15.2B=[];1m 1b(t=n.1c;--t>-1;)1d!=e[n[t]]&&n.2Q(t,1);1b(;r;)1d!=e[r.n]&&(r.1f&&(r.1f.1l=r.1l),r.1l?(r.1l.1f=r.1f,r.1l=1d):15.1s===r&&(15.1s=r.1f)),r=r.1f;18!1},i.7u=17(e,t){1b(19 n=15.1s;n;)(e[15.4D]||1d!=n.n&&e[n.n.1t(15.4D+\"2f\").1J(\"\")])&&(n.r=t),n=n.1f},O.5z=17(e,t){19 n,r,i,s,o,u=t.1s;1a(\"5D\"===e){1b(;u;){1b(o=u.1f,r=i;r&&r.2s>u.2s;)r=r.1f;(u.1l=r?r.1l:s)?u.1l.1f=u:i=u,(u.1f=r)?r.1l=u:s=u,u=o}u=t.1s=i}1b(;u;)u.4J&&\"17\"==1j u.t[e]&&u.t[e]()&&(n=!0),u=u.1f;18 n},W.6Q=17(e){1b(19 t=e.1c;--t>-1;)e[t].3w===W.3w&&(P[(1h e[t]).4D]=e[t]);18!0},v.2D=17(e){1a(!(e&&e.7m&&e.7o&&e.3w))6l\"aH 2D au.\";19 t,n=e.7m,r=e.5E||0,i=e.as,s={7o:\"6V\",4h:\"1S\",4f:\"2n\",3G:\"7u\",af:\"5D\"},o=m(\"4S.\"+n.1v(0).4Z()+n.1q(1)+\"8u\",17(){W.1W(15,n,r),15.2B=i||[]},e.ag===!0),u=o.1y=1h W(n);u.2K=o,o.3w=e.3w;1b(t 1u s)\"17\"==1j e[t]&&(u[s[t]]=e[t]);18 o.3V=e.3V,W.6Q([o]),o},n=e.37){1b(r=0;n.1c>r;r++)n[r]();1b(i 1u p)p[i].7A||e.6x.7z(\"ah ae ad aa: 4Q.4R.\"+i)}o=!1}})(1Q);(1Q.37||(1Q.37=[])).2d(17(){\"4V 4U\";1Q.3u(\"ab\",[\"5C.8H\",\"5C.7y\",\"5f\"],17(e,t,n){19 r=17(e){t.1W(15,e),15.2J={},15.4H=15.1p.4H===!0,15.2j=15.1p.2j===!0,15.4K=!0,15.33=15.1p.5A;19 n,r,i=15.1p;1b(r 1u i)n=i[r],o(n)&&-1!==n.1J(\"\").1k(\"{4B}\")&&(i[r]=15.5l(n));o(i.3J)&&15.1U(i.3J,0,i.ac,i.ai)},i=1e-10,s=n.4s.7p,o=n.4s.7E,u=[],a=1Q.3u.77,f=17(e){19 t,n={};1b(t 1u e)n[t]=e[t];18 n},l=17(e,t,n,r){e.1o.5N(e.1i),t&&t.35(r||e.1o,n||u)},c=u.6K,h=r.1y=1h t;18 r.3V=\"1.11.8\",h.2K=r,h.4f().1O=!1,h.3Q=17(e,t,r,i){19 s=r.5j&&a.69||n;18 t?15.1U(1h s(e,t,r),i):15.4h(e,r,i)},h.66=17(e,t,r,i){18 15.1U((r.5j&&a.69||n).66(e,t,r),i)},h.6b=17(e,t,r,i,s){19 o=i.5j&&a.69||n;18 t?15.1U(o.6b(e,t,r,i),s):15.4h(e,i,s)},h.6u=17(e,t,i,o,u,a,l,h){19 p,d=1h r({49:a,6a:l,6s:h,2j:15.2j});1b(\"1L\"==1j e&&(e=n.3I(e)||e),s(e)&&(e=c.1W(e,0)),o=o||0,p=0;e.1c>p;p++)i.30&&(i.30=f(i.30)),d.3Q(e[p],t,f(i),p*o);18 15.1U(d,u)},h.ao=17(e,t,n,r,i,s,o,u){18 n.1Y=0!=n.1Y,n.4w=!0,15.6u(e,t,n,r,i,s,o,u)},h.an=17(e,t,n,r,i,s,o,u,a){18 r.30=n,r.1Y=0!=r.1Y&&0!=n.1Y,15.6u(e,t,r,i,s,o,u,a)},h.1W=17(e,t,r,i){18 15.1U(n.6o(0,e,t,r),i)},h.4h=17(e,t,r){18 r=15.3h(r,0,!0),1d==t.1Y&&(t.1Y=r===15.1n&&!15.1B),15.1U(1h n(e,0,t),r)},r.ak=17(e,t){e=e||{},1d==e.2j&&(e.2j=!0);19 i,s,o=1h r(e),u=o.1o;1b(1d==t&&(t=!0),u.3K(o,!0),o.1i=0,o.1z=o.1n=o.1H=u.1n,i=u.26;i;)s=i.1f,t&&i 2b n&&i.2x===i.1p.49||o.1U(i,i.1i-i.2L),i=s;18 u.1U(o,0),o},h.1U=17(i,s,u,a){19 f,l,c,h,p,d;1a(\"2y\"!=1j s&&(s=15.3h(s,0,!0,i)),!(i 2b e)){1a(i 2b 3N||i&&i.2d&&o(i)){1b(u=u||\"al\",a=a||0,f=s,l=i.1c,c=0;l>c;c++)o(h=i[c])&&(h=1h r({3J:h})),15.1U(h,f),\"1L\"!=1j h&&\"17\"!=1j h&&(\"am\"===u?f=h.1i+h.23()/h.1x:\"aN\"===u&&(h.1i-=h.4x())),f+=a;18 15.3c(!0)}1a(\"1L\"==1j i)18 15.7x(i,s);1a(\"17\"!=1j i)6l\"7e 1U \"+i+\" 93 8Y 21; 3D 94 8K a 6R, 21, 17, 8X 1L.\";i=n.6o(0,i)}1a(t.1y.1U.1W(15,i,s),(15.1O||15.1n===15.1C)&&!15.1B&&15.1C<15.2C())1b(p=15,d=p.3H()>i.1i;p.1o;)d&&p.1o.2j?p.2Z(p.1H,!0):p.1O&&p.1N(!0,!1),p=p.1o;18 15},h.5n=17(t){1a(t 2b e)18 15.3K(t,!1);1a(t 2b 3N||t&&t.2d&&o(t)){1b(19 n=t.1c;--n>-1;)15.5n(t[n]);18 15}18\"1L\"==1j t?15.7n(t):15.4f(1d,t)},h.3K=17(e,n){t.1y.3K.1W(15,e,n);19 r=15.3l;18 r?15.1n>r.1i+r.2i/r.1x&&(15.1n=15.2C(),15.1H=15.2i):15.1n=15.1H=15.1C=15.2i=0,15},h.92=17(e,t){18 15.1U(e,15.3h(1d,t,!0,e))},h.7w=h.9t=17(e,t,n,r){18 15.1U(e,t||0,n,r)},h.9m=17(e,t,n,r){18 15.1U(e,15.3h(1d,t,!0,e),n,r)},h.7x=17(e,t){18 15.2J[e]=15.3h(t),15},h.9l=17(e,t,n,r){18 15.1W(l,[\"{4B}\",t,n,r],15,e)},h.7n=17(e){18 3E 15.2J[e],15},h.9j=17(e){18 1d!=15.2J[e]?15.2J[e]:-1},h.3h=17(t,n,r,i){19 s;1a(i 2b e&&i.21===15)15.5n(i);1m 1a(i&&(i 2b 3N||i.2d&&o(i)))1b(s=i.1c;--s>-1;)i[s]2b e&&i[s].21===15&&15.5n(i[s]);1a(\"1L\"==1j n)18 15.3h(n,r&&\"2y\"==1j t&&1d==15.2J[n]?t-15.2C():0,r);1a(n=n||0,\"1L\"!=1j t||!6d(t)&&1d==15.2J[t])1d==t&&(t=15.2C());1m{1a(s=t.1k(\"=\"),-1===s)18 1d==15.2J[t]?r?15.2J[t]=15.2C()+n:n:15.2J[t]+n;n=3v(t.1v(s-1)+\"1\",10)*1D(t.1q(s+1)),t=s>1?15.3h(t.1q(0,s-1),0,r):15.2C()}18 1D(t)+n},h.4b=17(e,t){18 15.2Z(\"2y\"==1j e?e:15.3h(e),t!==!1)},h.9n=17(){18 15.3e(!0)},h.9o=17(e,t){18 15.73(e,t)},h.9s=17(e,t){18 15.5N(e,t)},h.1E=17(e,t,n){15.1O&&15.1N(!0,!1);19 r,s,o,a,f,l=15.2r?15.23():15.2i,c=15.1n,h=15.1i,p=15.1x,d=15.1B;1a(e>=l?(15.1H=15.1n=l,15.2M||15.5I()||(s=!0,a=\"49\",0===15.1C&&(0===e||0>15.1z||15.1z===i)&&15.1z!==e&&15.26&&(f=!0,15.1z>i&&(a=\"4i\"))),15.1z=15.1C||!t||e||15.1z===e?e:i,e=l+1e-4):1e-7>e?(15.1H=15.1n=0,(0!==c||0===15.1C&&15.1z!==i&&(15.1z>0||0>e&&15.1z>=0))&&(a=\"4i\",s=15.2M),0>e?(15.2a=!1,0===15.1C&&15.1z>=0&&15.26&&(f=!0),15.1z=e):(15.1z=15.1C||!t||e||15.1z===e?e:i,e=0,15.2z||(f=!0))):15.1H=15.1n=15.1z=e,15.1n!==c&&15.26||n||f){1a(15.2z||(15.2z=!0),15.2a||!15.1B&&15.1n!==c&&e>0&&(15.2a=!0),0===c&&15.1p.4E&&0!==15.1n&&(t||15.1p.4E.35(15.1p.5P||15,15.1p.61||u)),15.1n>=c)1b(r=15.26;r&&(o=r.1f,!15.1B||d);)(r.2a||r.1i<=15.1n&&!r.1B&&!r.1O)&&(r.2M?r.1E((r.2r?r.23():r.2i)-(e-r.1i)*r.1x,t,n):r.1E((e-r.1i)*r.1x,t,n)),r=o;1m 1b(r=15.3l;r&&(o=r.1l,!15.1B||d);)(r.2a||c>=r.1i&&!r.1B&&!r.1O)&&(r.2M?r.1E((r.2r?r.23():r.2i)-(e-r.1i)*r.1x,t,n):r.1E((e-r.1i)*r.1x,t,n)),r=o;15.33&&(t||15.33.35(15.1p.5T||15,15.1p.5U||u)),a&&(15.1O||(h===15.1i||p!==15.1x)&&(0===15.1n||l>=15.23())&&(s&&(15.1o.4H&&15.1N(!1,!1),15.2a=!1),!t&&15.1p[a]&&15.1p[a].35(15.1p[a+\"5J\"]||15,15.1p[a+\"5Y\"]||u)))}},h.5I=17(){1b(19 e=15.26;e;){1a(e.1B||e 2b r&&e.5I())18!0;e=e.1f}18!1},h.5s=17(e,t,r,i){i=i||-59;1b(19 s=[],o=15.26,u=0;o;)i>o.1i||(o 2b n?t!==!1&&(s[u++]=o):(r!==!1&&(s[u++]=o),e!==!1&&(s=s.43(o.5s(!0,t,r)),u=s.1c))),o=o.1f;18 s},h.40=17(e,t){1b(19 r=n.40(e),i=r.1c,s=[],o=0;--i>-1;)(r[i].21===15||t&&15.8B(r[i]))&&(s[o++]=r[i]);18 s},h.8B=17(e){1b(19 t=e.21;t;){1a(t===15)18!0;t=t.21}18!1},h.8p=17(e,t,n){n=n||0;1b(19 r,i=15.26,s=15.2J;i;)i.1i>=n&&(i.1i+=e),i=i.1f;1a(t)1b(r 1u s)s[r]>=n&&(s[r]+=e);18 15.3c(!0)},h.2n=17(e,t){1a(!e&&!t)18 15.1N(!1,!1);1b(19 n=t?15.40(t):15.5s(!0,!0,!1),r=n.1c,i=!1;--r>-1;)n[r].2n(e,t)&&(i=!0);18 i},h.9a=17(e){19 t=15.5s(!1,!0,!0),n=t.1c;1b(15.1n=15.1H=0;--n>-1;)t[n].1N(!1,!1);18 e!==!1&&(15.2J={}),15.3c(!0)},h.5u=17(){1b(19 e=15.26;e;)e.5u(),e=e.1f;18 15},h.1N=17(e,n){1a(e===15.1O)1b(19 r=15.26;r;)r.1N(e,!0),r=r.1f;18 t.1y.1N.1W(15,e,n)},h.2C=17(e){18 2m.1c?(0!==15.2C()&&0!==e&&15.6q(15.1C/e),15):(15.2r&&15.23(),15.1C)},h.23=17(e){1a(!2m.1c){1a(15.2r){1b(19 t,n,r=0,i=15.3l,s=9b;i;)t=i.1l,i.2r&&i.23(),i.1i>s&&15.4K&&!i.1B?15.1U(i,i.1i-i.2L):s=i.1i,0>i.1i&&!i.1B&&(r-=i.1i,15.1o.2j&&(15.1i+=i.1i/15.1x),15.8p(-i.1i,!1,-59),s=0),n=i.1i+i.2i/i.1x,n>r&&(r=n),i=t;15.1C=15.2i=r,15.2r=!1}18 15.2i}18 0!==15.23()&&0!==e&&15.6q(15.2i/e),15},h.9d=17(){1b(19 t=15.1o;t.1o;)t=t.1o;18 t===e.7P},h.3H=17(){18 15.1B?15.1H:(15.1o.3H()-15.1i)*15.1x},r},!0)}),1Q.3u&&1Q.37.4q()();(1Q.37||(1Q.37=[])).2d(17(){\"4V 4U\";1Q.3u(\"2o.7Y\",[\"2o.8h\"],17(e){19 t,n,r,i=1Q.5Z||1Q,s=i.4Q.4R,o=2*1g.4o,u=1g.4o/2,a=s.8k,f=17(t,n){19 r=a(\"2o.\"+t,17(){},!0),i=r.1y=1h e;18 i.2K=r,i.2w=n,r},l=e.8l||17(){},c=17(e,t,n,r){19 i=a(\"2o.\"+e,{6c:1h t,5k:1h n,5m:1h r},!0);18 l(i,e),i},h=17(e,t,n){15.t=e,15.v=t,n&&(15.5w=n,n.5y=15,15.c=n.v-t,15.8v=n.t-e)},p=17(t,n){19 r=a(\"2o.\"+t,17(e){15.1T=e||0===e?e:1.aO,15.2q=1.cW*15.1T},!0),i=r.1y=1h e;18 i.2K=r,i.2w=n,i.3o=17(e){18 1h r(e)},r},d=c(\"7Y\",p(\"cv\",17(e){18(e-=1)*e*((15.1T+1)*e+15.1T)+1}),p(\"cr\",17(e){18 e*e*((15.1T+1)*e-15.1T)}),p(\"co\",17(e){18 1>(e*=2)?.5*e*e*((15.2q+1)*e-15.2q):.5*((e-=2)*e*((15.2q+1)*e+15.2q)+2)})),v=a(\"2o.6w\",17(e,t,n){t=t||0===t?t:.7,1d==e?e=.7:e>1&&(e=1),15.89=1!==e?t:0,15.1T=(1-e)/2,15.2q=e,15.3f=15.1T+15.2q,15.3s=n===!0},!0),m=v.1y=1h e;18 m.2K=v,m.2w=17(e){19 t=e+(.5-e)*15.89;18 15.1T>e?15.3s?1-(e=1-e/15.1T)*e:t-(e=1-e/15.1T)*e*e*e*t:e>15.3f?15.3s?1-(e=(e-15.3f)/15.1T)*e:t+(e-t)*(e=(e-15.3f)/15.1T)*e*e*e:15.3s?1:t},v.3z=1h v(.7,.7),m.3o=v.3o=17(e,t,n){18 1h v(e,t,n)},t=a(\"2o.87\",17(e){e=e||1,15.1T=1/e,15.2q=e+1},!0),m=t.1y=1h e,m.2K=t,m.2w=17(e){18 0>e?e=0:e>=1&&(e=.cG),(15.2q*e>>0)*15.1T},m.3o=t.3o=17(e){18 1h t(e)},n=a(\"2o.7f\",17(t){t=t||{};1b(19 n,r,i,s,o,u,a=t.cE||\"3t\",f=[],l=0,c=0|(t.cI||20),p=c,d=t.cA!==!1,v=t.cJ===!0,m=t.8N 2b e?t.8N:1d,g=\"2y\"==1j t.8R?.4*t.8R:.4;--p>-1;)n=d?1g.8A():1/c*p,r=m?m.2w(n):n,\"3t\"===a?i=g:\"cK\"===a?(s=1-n,i=s*s*g):\"1u\"===a?i=n*n*g:.5>n?(s=2*n,i=.5*s*s*g):(s=2*(1-n),i=.5*s*s*g),d?r+=1g.8A()*i-.5*i:p%2?r+=.5*i:r-=.5*i,v&&(r>1?r=1:0>r&&(r=0)),f[l++]={x:n,y:r};1b(f.cL(17(e,t){18 e.x-t.x}),u=1h h(1,1,1d),p=c;--p>-1;)o=f[p],u=1h h(o.x,o.y,u);15.1l=1h h(0,0,0!==u.t?u:u.5w)},!0),m=n.1y=1h e,m.2K=n,m.2w=17(e){19 t=15.1l;1a(e>t.t){1b(;t.5w&&e>=t.t;)t=t.5w;t=t.5y}1m 1b(;t.5y&&t.t>=e;)t=t.5y;18 15.1l=t,t.v+(e-t.t)/t.8v*t.c},m.3o=17(e){18 1h n(e)},n.3z=1h n,c(\"cH\",f(\"cF\",17(e){18 1/2.75>e?7.2I*e*e:2/2.75>e?7.2I*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.2I*(e-=2.25/2.75)*e+.6m:7.2I*(e-=2.6n/2.75)*e+.6p}),f(\"cM\",17(e){18 1/2.75>(e=1-e)?1-7.2I*e*e:2/2.75>e?1-(7.2I*(e-=1.5/2.75)*e+.75):2.5/2.75>e?1-(7.2I*(e-=2.25/2.75)*e+.6m):1-(7.2I*(e-=2.6n/2.75)*e+.6p)}),f(\"cN\",17(e){19 t=.5>e;18 e=t?1-2*e:2*e-1,e=1/2.75>e?7.2I*e*e:2/2.75>e?7.2I*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.2I*(e-=2.25/2.75)*e+.6m:7.2I*(e-=2.6n/2.75)*e+.6p,t?.5*(1-e):.5*e+.5})),c(\"cO\",f(\"cP\",17(e){18 1g.38(1-(e-=1)*e)}),f(\"cQ\",17(e){18-(1g.38(1-e*e)-1)}),f(\"cD\",17(e){18 1>(e*=2)?-.5*(1g.38(1-e*e)-1):.5*(1g.38(1-(e-=2)*e)+1)})),r=17(t,n,r){19 i=a(\"2o.\"+t,17(e,t){15.1T=e||1,15.2q=t||r,15.3f=15.2q/o*(1g.cp(1/15.1T)||0)},!0),s=i.1y=1h e;18 s.2K=i,s.2w=n,s.3o=17(e,t){18 1h i(e,t)},i},c(\"cn\",r(\"cm\",17(e){18 15.1T*1g.3p(2,-10*e)*1g.2k((e-15.3f)*o/15.2q)+1},.3),r(\"cj\",17(e){18-(15.1T*1g.3p(2,10*(e-=1))*1g.2k((e-15.3f)*o/15.2q))},.3),r(\"ck\",17(e){18 1>(e*=2)?-.5*15.1T*1g.3p(2,10*(e-=1))*1g.2k((e-15.3f)*o/15.2q):.5*15.1T*1g.3p(2,-10*(e-=1))*1g.2k((e-15.3f)*o/15.2q)+1},.45)),c(\"cl\",f(\"cs\",17(e){18 1-1g.3p(2,-10*e)}),f(\"cz\",17(e){18 1g.3p(2,10*(e-1))-.cX}),f(\"cB\",17(e){18 1>(e*=2)?.5*1g.3p(2,10*(e-1)):.5*(2-1g.3p(2,-10*(e-1)))})),c(\"cy\",f(\"cx\",17(e){18 1g.2k(e*u)}),f(\"cu\",17(e){18-1g.2E(e*u)+1}),f(\"cw\",17(e){18-.5*(1g.2E(1g.4o*e)-1)})),a(\"2o.dg\",{df:17(t){18 e.7C[t]}},!0),l(i.6w,\"6w\",\"3z,\"),l(n,\"7f\",\"3z,\"),l(t,\"87\",\"3z,\"),d},!0)}),1Q.3u&&1Q.37.4q()();(1Q.37||(1Q.37=[])).2d(17(){\"4V 4U\";1Q.3u(\"4S.dl\",[\"4S.80\",\"5f\"],17(e,t){19 n,r,i,s,o=17(){e.1W(15,\"4P\"),15.2B.1c=0,15.1S=o.1y.1S},u={},a=o.1y=1h e(\"4P\");a.2K=o,o.3V=\"1.11.8\",o.3w=2,o.81=0,o.8w=\"cY\",a=\"2c\",o.6E={4z:a,7G:a,7F:a,4A:a,3k:a,3y:a,dk:a,6B:a,6U:a,3b:a,dd:\"\"};19 f,l,c,h,p,d,v=/(?:\\\\d|\\\\-\\\\d|\\\\.\\\\d|\\\\-\\\\.\\\\d)+/g,m=/(?:\\\\d|\\\\-\\\\d|\\\\.\\\\d|\\\\-\\\\.\\\\d|\\\\+=\\\\d|\\\\-=\\\\d|\\\\+=.\\\\d|\\\\-=\\\\.\\\\d)+/g,g=/(?:\\\\+=|\\\\-=|\\\\-|\\\\b)[\\\\d\\\\-\\\\.]+[a-d7-dn-9]*(?:%|\\\\b)/3M,y=/[^\\\\d\\\\-\\\\.]/g,b=/(?:\\\\d|\\\\-|\\\\+|=|#|\\\\.)*/g,w=/1Z *= *([^)]*)/,E=/1Z:([^;]*)/,S=/3B\\\\(1Z *=.+?\\\\)/i,x=/^(5h|6y)/,T=/([A-Z])/g,N=/-([a-z])/3M,C=/(^(?:8t\\\\(\\\\\"|8t\\\\())|(?:(\\\\\"\\\\))$|\\\\)$)/3M,k=17(e,t){18 t.4Z()},L=/(?:6i|7T|7H)/i,A=/(8c|8d|8n|8m)=[\\\\d\\\\-\\\\.e]+/3M,O=/82\\\\:5Q\\\\.5S\\\\.5V\\\\(.+?\\\\)/i,M=/,(?=[^\\\\)]*(?:\\\\(|$))/3M,2f=1g.4o/36,D=36/1g.4o,P={},H=6h,B=H.6e(\"74\"),j=H.6e(\"d2\"),F=o.4s={dm:u},I=dc.cC,q=17(){19 e,t=I.1k(\"ch\"),n=H.6e(\"74\");18 c=-1!==I.1k(\"bj\")&&-1===I.1k(\"bk\")&&(-1===t||1D(I.1q(t+8,1))>3),p=c&&6>1D(I.1q(I.1k(\"bl/\")+8,1)),h=-1!==I.1k(\"bh\"),/bg ([0-9]{1,}[\\\\.0-9]{0,})/.bc(I)&&(d=1r(46.$1)),n.bd=\"<a 1w=\\'4z:be;1Z:.55;\\'>a</a>\",e=n.bf(\"a\")[0],e?/^0.55/.2P(e.1w.1Z):!1}(),R=17(e){18 w.2P(\"1L\"==1j e?e:(e.2X?e.2X.2l:e.1w.2l)||\"\")?1r(46.$1)/22:1},U=17(e){1Q.6x&&6x.7z(e)},z=\"\",W=\"\",X=17(e,t){t=t||B;19 n,r,i=t.1w;1a(2h 0!==i[e])18 e;1b(e=e.1v(0).4Z()+e.1q(1),n=[\"O\",\"bn\",\"5t\",\"bv\",\"bw\"],r=5;--r>-1&&2h 0===i[n[r]+e];);18 r>=0?(W=3===r?\"5t\":n[r],z=\"-\"+W.6P()+\"-\",W+e):1d},V=H.7v?H.7v.bx:17(){},$=o.bu=17(e,t,n,r,i){19 s;18 q||\"1Z\"!==t?(!r&&e.1w[t]?s=e.1w[t]:(n=n||V(e,1d))?s=n[t]||n.42(t)||n.42(t.1I(T,\"-$1\").6P()):e.2X&&(s=e.2X[t]),1d==i||s&&\"3t\"!==s&&\"2t\"!==s&&\"2t 2t\"!==s?s:i):R(e)},J=F.bs=17(e,n,r,i,s){1a(\"2c\"===i||!i)18 r;1a(\"2t\"===i||!r)18 0;19 u,a,f,l=L.2P(n),c=e,h=B.1w,p=0>r;1a(p&&(r=-r),\"%\"===i&&-1!==n.1k(\"3X\"))u=r/22*(l?e.bo:e.bp);1m{1a(h.3d=\"3X:0 5x 7i;4m:\"+$(e,\"4m\")+\";bq-3y:0;\",\"%\"!==i&&c.7r)h[l?\"84\":\"6X\"]=r+i;1m{1a(c=e.ci||H.br,a=c.6g,f=t.6f.3F,a&&l&&a.34===f)18 a.3k*r/22;h[l?\"3k\":\"3y\"]=r+i}c.7r(B),u=1r(B[l?\"4N\":\"4M\"]),c.aV(B),l&&\"%\"===i&&o.aW!==!1&&(a=c.6g=c.6g||{},a.34=f,a.3k=22*(u/r)),0!==u||s||(u=J(e,n,r,i,!0))}18 p?-u:u},K=F.aX=17(e,t,n){1a(\"83\"!==$(e,\"4m\",n))18 0;19 r=\"4A\"===t?\"6i\":\"7N\",i=$(e,\"6U\"+r,n);18 e[\"aY\"+r]-(J(e,t,1r(i),i.1I(b,\"\"))||0)},Q=17(e,t){19 n,r,i={};1a(t=t||V(e,1d))1a(n=t.1c)1b(;--n>-1;)i[t[n].1I(N,k)]=t.42(t[n]);1m 1b(n 1u t)i[n]=t[n];1m 1a(t=e.2X||e.1w)1b(n 1u t)\"1L\"==1j n&&2h 0===i[n]&&(i[n.1I(N,k)]=t[n]);18 q||(i.1Z=R(e)),r=4l(e,t,!1),i.1K=r.1K,i.1R=r.1R,i.28=r.28,i.2g=r.2g,i.x=r.x,i.y=r.y,39&&(i.z=r.z,i.1P=r.1P,i.1V=r.1V,i.2W=r.2W),i.7R&&3E i.7R,i},G=17(e,t,n,r,i){19 s,o,u,a={},f=e.1w;1b(o 1u n)\"3d\"!==o&&\"1c\"!==o&&6d(o)&&(t[o]!==(s=n[o])||i&&i[o])&&-1===o.1k(\"aU\")&&(\"2y\"==1j s||\"1L\"==1j s)&&(a[o]=\"2t\"!==s||\"4A\"!==o&&\"4z\"!==o?\"\"!==s&&\"2t\"!==s&&\"3t\"!==s||\"1L\"!=1j t[o]||\"\"===t[o].1I(y,\"\")?s:0:K(e,o),2h 0!==f[o]&&(u=1h ct(f,o,f[o],u)));1a(r)1b(o 1u r)\"3a\"!==o&&(a[o]=r[o]);18{57:a,4e:u}},Y={3k:[\"6i\",\"7T\"],3y:[\"7N\",\"aP\"]},Z=[\"7K\",\"7S\",\"7B\",\"7U\"],3L=17(e,t,n){19 r=1r(\"3k\"===t?e.4N:e.4M),i=Y[t],s=i.1c;1b(n=n||V(e,1d);--s>-1;)r-=1r($(e,\"6B\"+i[s],n,!0))||0,r-=1r($(e,\"3X\"+i[s]+\"7H\",n,!0))||0;18 r},3g=17(e,t){(1d==e||\"\"===e||\"2t\"===e||\"2t 2t\"===e)&&(e=\"0 0\");19 n=e.1t(\" \"),r=-1!==e.1k(\"4A\")?\"0%\":-1!==e.1k(\"7G\")?\"22%\":n[0],i=-1!==e.1k(\"4z\")?\"0%\":-1!==e.1k(\"7F\")?\"22%\":n[1];18 1d==i?i=\"0\":\"7l\"===i&&(i=\"50%\"),(\"7l\"===r||6d(1r(r))&&-1===(r+\"\").1k(\"=\"))&&(r=\"50%\"),t&&(t.8o=-1!==r.1k(\"%\"),t.8r=-1!==i.1k(\"%\"),t.aQ=\"=\"===r.1v(1),t.aR=\"=\"===i.1v(1),t.52=1r(r.1I(y,\"\")),t.5R=1r(i.1I(y,\"\"))),r+\" \"+i+(n.1c>2?\" \"+n[2]:\"\")},3q=17(e,t){18\"1L\"==1j e&&\"=\"===e.1v(1)?3v(e.1v(0)+\"1\",10)*1r(e.1q(2)):1r(e)-1r(t)},2A=17(e,t){18 1d==e?t:\"1L\"==1j e&&\"=\"===e.1v(1)?3v(e.1v(0)+\"1\",10)*1D(e.1q(2))+t:1r(e)},3D=17(e,t,n,r){19 i,s,o,u,a=1e-6;18 1d==e?u=t:\"2y\"==1j e?u=e:(i=68,s=e.1t(\"2f\"),o=1D(s[0].1I(y,\"\"))*(-1===e.1k(\"aS\")?1:D)-(\"=\"===e.1v(1)?0:t),s.1c&&(r&&(r[n]=t+o),-1!==e.1k(\"aZ\")&&(o%=i,o!==o%(i/2)&&(o=0>o?o+i:o-i)),-1!==e.1k(\"b0\")&&0>o?o=(o+59*i)%i-(0|o/i)*i:-1!==e.1k(\"b7\")&&o>0&&(o=(o-59*i)%i-(0|o/i)*i)),u=t+o),a>u&&u>-a&&(u=0),u},3x={b9:[0,1F,1F],b6:[0,1F,0],b5:[58,58,58],7I:[0,0,0],b1:[2N,0,0],b2:[0,2N,2N],b3:[0,0,1F],b4:[0,0,2N],by:[1F,1F,1F],bz:[1F,0,1F],c3:[2N,2N,0],c4:[1F,1F,0],c5:[1F,c2,0],c1:[2N,2N,2N],bX:[2N,0,2N],bY:[0,2N,0],7i:[1F,0,0],c0:[1F,58,c7],ce:[0,1F,1F],4g:[1F,1F,1F,0]},5a=17(e,t,n){18 e=0>e?e+1:e>1?e-1:e,0|1F*(1>6*e?t+6*(n-t)*e:.5>e?n:2>3*e?t+6*(n-t)*(2/3-e):t)+.5},5i=17(e){19 t,n,r,i,s,o;18 e&&\"\"!==e?\"2y\"==1j e?[e>>16,1F&e>>8,1F&e]:(\",\"===e.1v(e.1c-1)&&(e=e.1q(0,e.1c-1)),3x[e]?3x[e]:\"#\"===e.1v(0)?(4===e.1c&&(t=e.1v(1),n=e.1v(2),r=e.1v(3),e=\"#\"+t+t+n+n+r+r),e=3v(e.1q(1),16),[e>>16,1F&e>>8,1F&e]):\"6y\"===e.1q(0,3)?(e=e.2G(v),i=1D(e[0])%68/68,s=1D(e[1])/22,o=1D(e[2])/22,n=.5>=o?o*(s+1):o+s-o*s,t=2*o-n,e.1c>3&&(e[3]=1D(e[3])),e[0]=5a(i+1/3,t,n),e[1]=5a(i,t,n),e[2]=5a(i-1/3,t,n),e):(e=e.2G(v)||3x.4g,e[0]=1D(e[0]),e[1]=1D(e[1]),e[2]=1D(e[2]),e.1c>3&&(e[3]=1D(e[3])),e)):3x.7I},at=\"(?:\\\\\\\\b(?:(?:5h|6Z|6y|cc)\\\\\\\\(.+?\\\\\\\\))|\\\\\\\\B#.+?\\\\\\\\b\";1b(a 1u 3x)at+=\"|\"+a+\"\\\\\\\\b\";at=46(at+\")\",\"3M\");19 6H=17(e,t,n,r){1a(1d==e)18 17(e){18 e};19 i,s=t?(e.2G(at)||[\"\"])[0]:\"\",o=e.1t(s).1J(\"\").2G(g)||[],u=e.1q(0,e.1k(o[0])),a=\")\"===e.1v(e.1c-1)?\")\":\"\",f=-1!==e.1k(\" \")?\" \":\",\",l=o.1c,c=l>0?o[0].1I(v,\"\"):\"\";18 l?i=t?17(e){19 t,h,p,d;1a(\"2y\"==1j e)e+=c;1m 1a(r&&M.2P(e)){1b(d=e.1I(M,\"|\").1t(\"|\"),p=0;d.1c>p;p++)d[p]=i(d[p]);18 d.1J(\",\")}1a(t=(e.2G(at)||[s])[0],h=e.1t(t).1J(\"\").2G(g)||[],p=h.1c,l>p--)1b(;l>++p;)h[p]=n?h[0|(p-1)/2]:o[p];18 u+h.1J(f)+f+t+a+(-1!==e.1k(\"6Y\")?\" 6Y\":\"\")}:17(e){19 t,s,h;1a(\"2y\"==1j e)e+=c;1m 1a(r&&M.2P(e)){1b(s=e.1I(M,\"|\").1t(\"|\"),h=0;s.1c>h;h++)s[h]=i(s[h]);18 s.1J(\",\")}1a(t=e.2G(g)||[],h=t.1c,l>h--)1b(;l>++h;)t[h]=n?t[0|(h-1)/2]:o[h];18 u+t.1J(f)+a}:17(e){18 e}},5g=17(e){18 e=e.1t(\",\"),17(t,n,r,i,s,o,u){19 a,f=(n+\"\").1t(\" \");1b(u={},a=0;4>a;a++)u[e[a]]=f[a]=f[a]||f[(a-1)/2>>0];18 i.2O(t,u,s,o)}},ct=(F.c8=17(e){15.2D.1S(e);1b(19 t,n,r,i,s=15.1A,o=s.7W,u=s.4e,a=1e-6;u;)t=o[u.v],u.r?t=1g.3G(t):a>t&&t>-a&&(t=0),u.t[u.p]=t,u=u.1f;1a(s.8F&&(s.8F.1K=o.1K),1===e)1b(u=s.4e;u;){1a(n=u.t,n.2p){1a(1===n.2p){1b(i=n.1X+n.s+n.4a,r=1;n.l>r;r++)i+=n[\"3i\"+r]+n[\"2R\"+(r+1)];n.e=i}}1m n.e=n.s+n.1X;u=u.1f}},17(e,t,n,r,i){15.t=e,15.p=t,15.v=n,15.r=i,r&&(r.1l=15,15.1f=r)}),27=(F.c9=17(e,t,n,r,i,s){19 o,u,a,f,l,c=r,h={},p={},d=n.3r,v=P;1b(n.3r=1d,P=t,r=l=n.2O(e,t,r,i),P=v,s&&(n.3r=d,c&&(c.1l=1d,c.1l&&(c.1l.1f=1d)));r&&r!==c;){1a(1>=r.2p&&(u=r.p,p[u]=r.s+r.c,h[u]=r.s,s||(f=1h ct(r,\"s\",u,f,r.r),r.c=0),1===r.2p))1b(o=r.l;--o>0;)a=\"3i\"+o,u=r.p+\"2f\"+a,p[u]=r.1A[a],h[u]=r[a],s||(f=1h ct(r,a,u,f,r.56[a]));r=r.1f}18{7W:h,ca:p,4e:f,4j:l}},F.cb=17(e,t,r,i,o,u,a,f,l,c,h){15.t=e,15.p=t,15.s=r,15.c=i,15.n=a||t,e 2b 27||s.2d(15.n),15.r=f,15.2p=u||0,l&&(15.2s=l,n=!0),15.b=2h 0===c?r:c,15.e=2h 0===h?r+i:h,o&&(15.1f=o,o.1l=15)}),4j=o.3Y=17(e,t,n,r,i,s,o,u,a,l){n=n||s||\"\",o=1h 27(e,t,0,0,o,l?2:1,1d,!1,u,n,r),r+=\"\";19 c,h,p,d,g,y,b,w,E,S,T,N,C=n.1t(\", \").1J(\",\").1t(\" \"),k=r.1t(\", \").1J(\",\").1t(\" \"),L=C.1c,A=f!==!1;1b((-1!==r.1k(\",\")||-1!==n.1k(\",\"))&&(C=C.1J(\" \").1I(M,\", \").1t(\" \"),k=k.1J(\" \").1I(M,\", \").1t(\" \"),L=C.1c),L!==k.1c&&(C=(s||\"\").1t(\" \"),L=C.1c),o.2D=a,o.1S=l,c=0;L>c;c++)1a(d=C[c],g=k[c],w=1r(d),w||0===w)o.3S(\"\",w,3q(g,w),g.1I(m,\"\"),A&&-1!==g.1k(\"2c\"),!0);1m 1a(i&&(\"#\"===d.1v(0)||3x[d]||x.2P(d)))N=\",\"===g.1v(g.1c-1)?\"),\":\")\",d=5i(d),g=5i(g),E=d.1c+g.1c>6,E&&!q&&0===g[3]?(o[\"2R\"+o.l]+=o.l?\" 4g\":\"4g\",o.e=o.e.1t(k[c]).1J(\"4g\")):(q||(E=!1),o.3S(E?\"6Z(\":\"5h(\",d[0],g[0]-d[0],\",\",!0,!0).3S(\"\",d[1],g[1]-d[1],\",\",!0).3S(\"\",d[2],g[2]-d[2],E?\",\":N,!0),E&&(d=4>d.1c?1:d[3],o.3S(\"\",d,(4>g.1c?1:g[3])-d,N,!1)));1m 1a(y=d.2G(v)){1a(b=g.2G(m),!b||b.1c!==y.1c)18 o;1b(p=0,h=0;y.1c>h;h++)T=y[h],S=d.1k(T,p),o.3S(d.1q(p,S-p),1D(T),3q(b[h],T),\"\",A&&\"2c\"===d.1q(S+T.1c,2),0===h),p=S+T.1c;o[\"2R\"+o.l]+=d.1q(p)}1m o[\"2R\"+o.l]+=o.l?\" \"+d:d;1a(-1!==r.1k(\"=\")&&o.1A){1b(N=o.1X+o.1A.s,c=1;o.l>c;c++)N+=o[\"2R\"+c]+o.1A[\"3i\"+c];o.e=N+o[\"2R\"+c]}18 o.l||(o.2p=-1,o.1X=o.e),o.3C||o},2u=9;1b(a=27.1y,a.l=a.2s=0;--2u>0;)a[\"3i\"+2u]=0,a[\"2R\"+2u]=\"\";a.1X=\"\",a.1f=a.1l=a.3C=a.1A=a.2D=a.1S=a.56=1d,a.3S=17(e,t,n,r,i,s){19 o=15,u=o.l;18 o[\"2R\"+u]+=s&&u?\" \"+e:e||\"\",n||0===u||o.2D?(o.l++,o.2p=o.1S?2:1,o[\"2R\"+o.l]=r||\"\",u>0?(o.1A[\"3i\"+u]=t+n,o.56[\"3i\"+u]=i,o[\"3i\"+u]=t,o.2D||(o.3C=1h 27(o,\"3i\"+u,t,n,o.3C||o,0,o.n,i,o.2s),o.3C.1X=0),o):(o.1A={s:t+n},o.56={},o.s=t,o.c=n,o.r=i,o)):(o[\"2R\"+u]+=t+(r||\"\"),o)};19 5O=17(e,t){t=t||{},15.p=t.2V?X(e)||e:e,u[e]=u[15.p]=15,15.2U=t.4v||6H(t.2v,t.4c,t.bW,t.3W),t.24&&(15.2O=t.24),15.8T=t.4c,15.3W=t.3W,15.5b=t.5b,15.3Z=t.2v,15.2s=t.5E||0},1G=F.bV=17(e,t,n){\"3U\"!=1j t&&(t={24:n});19 r,i,s=e.1t(\",\"),o=t.2v;1b(n=n||[o],r=0;s.1c>r;r++)t.2V=0===r&&t.2V,t.2v=n[r]||o,i=1h 5O(s[r],t)},7a=17(e){1a(!u[e]){19 t=e.1v(0).4Z()+e.1q(1)+\"8u\";1G(e,{24:17(e,n,r,i,s,o,a){19 f=(1Q.5Z||1Q).4Q.4R.4S[t];18 f?(f.bG(),u[r].2O(e,n,r,i,s,o,a)):(U(\"bH: \"+t+\" bI bJ 8K bF.\"),s)}})}};a=5O.1y,a.3Y=17(e,t,n,r,i,s){19 o,u,a,f,l,c,h=15.5b;1a(15.3W&&(M.2P(n)||M.2P(t)?(u=t.1I(M,\"|\").1t(\"|\"),a=n.1I(M,\"|\").1t(\"|\")):h&&(u=[t],a=[n])),a){1b(f=a.1c>u.1c?a.1c:u.1c,o=0;f>o;o++)t=u[o]=u[o]||15.3Z,n=a[o]=a[o]||15.3Z,h&&(l=t.1k(h),c=n.1k(h),l!==c&&(n=-1===c?a:u,n[o]+=\" \"+h));t=u.1J(\", \"),n=a.1J(\", \")}18 4j(e,15.p,t,n,15.8T,15.3Z,r,15.2s,i,s)},a.2O=17(e,t,n,r,s,o){18 15.3Y(e.1w,15.2U($(e,15.p,i,!1,15.3Z)),15.2U(t),s,o)},o.bE=17(e,t,n){1G(e,{24:17(e,r,i,s,o,u){19 a=1h 27(e,i,0,0,o,2,i,!1,n);18 a.2D=u,a.1S=t(e,r,s.2Y,i),a},5E:n})};19 6O=\"28,2g,2W,x,y,z,1R,32,1K,1P,1V,3b\".1t(\",\"),bt=X(\"3R\"),8O=z+\"3R\",5q=X(\"4G\"),39=1d!==X(\"3b\"),5F=F.bB=17(){15.32=0},4l=F.bC=17(e,t,n,r){1a(e.3T&&n&&!r)18 e.3T;19 i,s,u,a,f,l,c,h,p,d,v,m,g,y=n?e.3T||1h 5F:1h 5F,b=0>y.28,w=2e-5,E=4X,S=bD.99,x=S*2f,T=39?1r($(e,5q,t,!1,\"0 0 0\").1t(\" \")[2])||y.2S||0:0;1b(bt?i=$(e,8O,t,!0):e.2X&&(i=e.2X.2l.2G(A),i=i&&4===i.1c?[i[0].1q(4),1D(i[2].1q(4)),1D(i[1].1q(4)),i[3].1q(4),y.x||0,y.y||0].1J(\",\"):\"\"),s=(i||\"\").2G(/(?:\\\\-|\\\\b)[\\\\d\\\\-\\\\.e]+\\\\b/3M)||[],u=s.1c;--u>-1;)a=1D(s[u]),s[u]=(f=a-(a|=0))?(0|f*E+(0>f?-.5:.5))/E+a:a;1a(16===s.1c){19 N=s[8],C=s[9],k=s[10],L=s[12],O=s[13],M=s[14];1a(y.2S&&(M=-y.2S,L=N*M-s[12],O=C*M-s[13],M=k*M+y.2S-s[14]),!n||r||1d==y.1P){19 P,H,B,j,F,I,q,R=s[0],U=s[1],z=s[2],W=s[3],X=s[4],V=s[5],J=s[6],K=s[7],Q=s[11],G=1g.4F(J,k),Y=-x>G||G>x;y.1P=G*D,G&&(j=1g.2E(-G),F=1g.2k(-G),P=X*j+N*F,H=V*j+C*F,B=J*j+k*F,N=X*-F+N*j,C=V*-F+C*j,k=J*-F+k*j,Q=K*-F+Q*j,X=P,V=H,J=B),G=1g.4F(N,R),y.1V=G*D,G&&(I=-x>G||G>x,j=1g.2E(-G),F=1g.2k(-G),P=R*j-N*F,H=U*j-C*F,B=z*j-k*F,C=U*F+C*j,k=z*F+k*j,Q=W*F+Q*j,R=P,U=H,z=B),G=1g.4F(U,V),y.1K=G*D,G&&(q=-x>G||G>x,j=1g.2E(-G),F=1g.2k(-G),R=R*j+X*F,H=U*j+V*F,V=U*-F+V*j,J=z*-F+J*j,U=H),q&&Y?y.1K=y.1P=0:q&&I?y.1K=y.1V=0:I&&Y&&(y.1V=y.1P=0),y.28=(0|1g.38(R*R+U*U)*E+.5)/E,y.2g=(0|1g.38(V*V+C*C)*E+.5)/E,y.2W=(0|1g.38(J*J+k*k)*E+.5)/E,y.1R=0,y.3b=Q?1/(0>Q?-Q:Q):0,y.x=L,y.y=O,y.z=M}}1m 1a(!(39&&!r&&s.1c&&y.x===s[4]&&y.y===s[5]&&(y.1P||y.1V)||2h 0!==y.x&&\"3t\"===$(e,\"6S\",t))){19 Z=s.1c>=6,3L=Z?s[0]:1,3g=s[1]||0,3q=s[2]||0,2A=Z?s[3]:1;y.x=s[4]||0,y.y=s[5]||0,l=1g.38(3L*3L+3g*3g),c=1g.38(2A*2A+3q*3q),h=3L||3g?1g.4F(3g,3L)*D:y.1K||0,p=3q||2A?1g.4F(3q,2A)*D+h:y.1R||0,d=l-1g.51(y.28||0),v=c-1g.51(y.2g||0),1g.51(p)>90&&bS>1g.51(p)&&(b?(l*=-1,p+=0>=h?36:-36,h+=0>=h?36:-36):(c*=-1,p+=0>=p?36:-36)),m=(h-y.1K)%36,g=(p-y.1R)%36,(2h 0===y.1R||d>w||-w>d||v>w||-w>v||m>-S&&S>m&&5X|m*E||g>-S&&S>g&&5X|g*E)&&(y.28=l,y.2g=c,y.1K=h,y.1R=p),39&&(y.1P=y.1V=y.z=0,y.3b=1r(o.81)||0,y.2W=1)}y.2S=T;1b(u 1u y)w>y[u]&&y[u]>-w&&(y[u]=0);18 n&&(e.3T=y),y},7q=17(e){19 t,n,r=15.1A,i=-r.1K*2f,s=i+r.1R*2f,o=4X,u=(0|1g.2E(i)*r.28*o)/o,a=(0|1g.2k(i)*r.28*o)/o,f=(0|1g.2k(s)*-r.2g*o)/o,l=(0|1g.2E(s)*r.2g*o)/o,c=15.t.1w,h=15.t.2X;1a(h){n=a,a=-f,f=-n,t=h.2l,c.2l=\"\";19 p,v,m=15.t.4N,g=15.t.4M,y=\"83\"!==h.4m,E=\"82:5Q.5S.5V(8c=\"+u+\", 8d=\"+a+\", 8n=\"+f+\", 8m=\"+l,S=r.x,x=r.y;1a(1d!=r.52&&(p=(r.8o?.8q*m*r.52:r.52)-m/2,v=(r.8r?.8q*g*r.5R:r.5R)-g/2,S+=p-(p*u+v*a),x+=v-(p*f+v*l)),y?(p=m/2,v=g/2,E+=\", 8e=\"+(p-(p*u+v*a)+S)+\", 8g=\"+(v-(p*f+v*l)+x)+\")\"):E+=\", bU=\\'2t bR\\')\",c.2l=-1!==t.1k(\"5Q.5S.5V(\")?t.1I(O,E):E+\" \"+t,(0===e||1===e)&&1===u&&0===a&&0===f&&1===l&&(y&&-1===E.1k(\"8e=0, 8g=0\")||w.2P(t)&&22!==1r(46.$1)||-1===t.1k(\"bN(\"&&t.1k(\"bO\"))&&c.6W(\"2l\")),!y){19 T,N,C,k=8>d?1:-1;1b(p=r.53||0,v=r.5p||0,r.53=1g.3G((m-((0>u?-u:u)*m+(0>a?-a:a)*g))/2+S),r.5p=1g.3G((g-((0>l?-l:l)*g+(0>f?-f:f)*m))/2+x),2u=0;4>2u;2u++)N=Z[2u],T=h[N],n=-1!==T.1k(\"2c\")?1r(T):J(15.t,N,1r(T),T.1I(b,\"\"))||0,C=n!==r[N]?2>2u?-r.53:-r.5p:2>2u?p-r.53:v-r.5p,c[N]=(r[N]=1g.3G(n-C*(0===2u||2===2u?1:k)))+\"2c\"}}},5o=F.d3=17(){19 e,t,n,r,i,s,o,u,a,f,l,c,p,d,v,m,g,y,b,w,E,S,x,T=15.1A,N=15.t.1w,C=T.1K*2f,k=T.28,L=T.2g,A=T.2W,O=T.3b;1a(h){19 M=1e-4;M>k&&k>-M&&(k=A=2e-5),M>L&&L>-M&&(L=A=2e-5),!O||T.z||T.1P||T.1V||(O=0)}1a(C||T.1R)y=1g.2E(C),b=1g.2k(C),e=y,i=b,T.1R&&(C-=T.1R*2f,y=1g.2E(C),b=1g.2k(C),\"bP\"===T.4r&&(w=1g.bM(T.1R*2f),w=1g.38(1+w*w),y*=w,b*=w)),t=-b,s=y;1m{1a(!(T.1V||T.1P||1!==A||O))18 N[bt]=\"bQ(\"+T.x+\"2c,\"+T.y+\"2c,\"+T.z+\"2c)\"+(1!==k||1!==L?\" 4y(\"+k+\",\"+L+\")\":\"\"),2h 0;e=s=1,t=i=0}l=1,n=r=o=u=a=f=c=p=d=0,v=O?-1/O:0,m=T.2S,g=4X,C=T.1V*2f,C&&(y=1g.2E(C),b=1g.2k(C),a=l*-b,p=v*-b,n=e*b,o=i*b,l*=y,v*=y,e*=y,i*=y),C=T.1P*2f,C&&(y=1g.2E(C),b=1g.2k(C),w=t*y+n*b,E=s*y+o*b,S=f*y+l*b,x=d*y+v*b,n=t*-b+n*y,o=s*-b+o*y,l=f*-b+l*y,v=d*-b+v*y,t=w,s=E,f=S,d=x),1!==A&&(n*=A,o*=A,l*=A,v*=A),1!==L&&(t*=L,s*=L,f*=L,d*=L),1!==k&&(e*=k,i*=k,a*=k,p*=k),m&&(c-=m,r=n*c,u=o*c,c=l*c+m),r=(w=(r+=T.x)-(r|=0))?(0|w*g+(0>w?-.5:.5))/g+r:r,u=(w=(u+=T.y)-(u|=0))?(0|w*g+(0>w?-.5:.5))/g+u:u,c=(w=(c+=T.z)-(c|=0))?(0|w*g+(0>w?-.5:.5))/g+c:c,N[bt]=\"bT(\"+[(0|e*g)/g,(0|i*g)/g,(0|a*g)/g,(0|p*g)/g,(0|t*g)/g,(0|s*g)/g,(0|f*g)/g,(0|d*g)/g,(0|n*g)/g,(0|o*g)/g,(0|l*g)/g,(0|v*g)/g,r,u,c,O?1+ -c/O:1].1J(\",\")+\")\"},7t=F.bL=17(e){19 t,n,r,i,s,o=15.1A,u=15.t,a=u.1w;18 o.1P||o.1V||o.z||o.44?(15.1S=5o,5o.1W(15,e),2h 0):(o.1K||o.1R?(t=o.1K*2f,n=t-o.1R*2f,r=4X,i=o.28*r,s=o.2g*r,a[bt]=\"8P(\"+(0|1g.2E(t)*i)/r+\",\"+(0|1g.2k(t)*i)/r+\",\"+(0|1g.2k(n)*-s)/r+\",\"+(0|1g.2E(n)*s)/r+\",\"+o.x+\",\"+o.y+\")\"):a[bt]=\"8P(\"+o.28+\",0,0,\"+o.2g+\",\"+o.x+\",\"+o.y+\")\",2h 0)};1G(\"3R,4y,28,2g,2W,x,y,z,1K,1P,1V,6M,1R,32,6N,6G,6A,bK,4G,8U,8x,8M,44,4r\",{24:17(e,t,n,r,s,u,a){1a(r.3r)18 s;19 f,l,c,h,p,d,v,m=r.3r=4l(e,i,!0,a.8M),g=e.1w,y=1e-6,b=6O.1c,w=a,E={};1a(\"1L\"==1j w.3R&&bt)c=g.3d,g[bt]=w.3R,g.6S=\"bA\",f=4l(e,1d,!1),g.3d=c;1m 1a(\"3U\"==1j w){1a(f={28:2A(1d!=w.28?w.28:w.4y,m.28),2g:2A(1d!=w.2g?w.2g:w.4y,m.2g),2W:2A(w.2W,m.2W),x:2A(w.x,m.x),y:2A(w.y,m.y),z:2A(w.z,m.z),3b:2A(w.8U,m.3b)},v=w.8x,1d!=v)1a(\"3U\"==1j v)1b(c 1u v)w[c]=v[c];1m w.1K=v;f.1K=3D(\"1K\"1u w?w.1K:\"6N\"1u w?w.6N+\"6F\":\"6M\"1u w?w.6M:m.1K,m.1K,\"1K\",E),39&&(f.1P=3D(\"1P\"1u w?w.1P:\"6G\"1u w?w.6G+\"6F\":m.1P||0,m.1P,\"1P\",E),f.1V=3D(\"1V\"1u w?w.1V:\"6A\"1u w?w.6A+\"6F\":m.1V||0,m.1V,\"1V\",E)),f.1R=1d==w.1R?m.1R:3D(w.1R,m.1R),f.32=1d==w.32?m.32:3D(w.32,m.32),(l=f.32-m.32)&&(f.1R+=l,f.1K+=l)}1b(39&&1d!=w.44&&(m.44=w.44,d=!0),m.4r=w.4r||m.4r||o.8w,p=m.44||m.z||m.1P||m.1V||f.z||f.1P||f.1V||f.3b,p||1d==w.4y||(f.2W=1);--b>-1;)n=6O[b],h=f[n]-m[n],(h>y||-y>h||1d!=P[n])&&(d=!0,s=1h 27(m,n,m[n],h,s),n 1u E&&(s.e=E[n]),s.1X=0,s.2D=u,r.2B.2d(s.n));18 h=w.4G,(h||39&&p&&m.2S)&&(bt?(d=!0,n=5q,h=(h||$(e,n,i,!1,\"50% 50%\"))+\"\",s=1h 27(g,n,0,0,s,-1,\"4G\"),s.b=g[n],s.2D=u,39?(c=m.2S,h=h.1t(\" \"),m.2S=(h.1c>2&&(0===c||\"1M\"!==h[2])?1r(h[2]):c)||0,s.1X=s.e=g[n]=h[0]+\" \"+(h[1]||\"50%\")+\" 1M\",s=1h 27(m,\"2S\",0,0,s,-1,s.n),s.b=c,s.1X=s.e=m.2S):s.1X=s.e=g[n]=h):3g(h+\"\",m)),d&&(r.47=p||3===15.47?3:2),s},2V:!0}),1G(\"cd\",{2v:\"1M 1M 1M 1M #8i\",2V:!0,4c:!0,3W:!0,5b:\"6Y\"}),1G(\"cg\",{2v:\"1M\",24:17(e,t,n,s,o){t=15.2U(t);19 u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x=[\"cf\",\"c6\",\"bZ\",\"b8\"],T=e.1w;1b(v=1r(e.4N),m=1r(e.4M),u=t.1t(\" \"),a=0;x.1c>a;a++)15.p.1k(\"3X\")&&(x[a]=X(x[a])),c=l=$(e,x[a],i,!1,\"1M\"),-1!==c.1k(\" \")&&(l=c.1t(\" \"),c=l[0],l=l[1]),h=f=u[a],p=1r(c),y=c.1q((p+\"\").1c),b=\"=\"===h.1v(1),b?(d=3v(h.1v(0)+\"1\",10),h=h.1q(2),d*=1r(h),g=h.1q((d+\"\").1c-(0>d?1:0))||\"\"):(d=1r(h),g=h.1q((d+\"\").1c)),\"\"===g&&(g=r[n]||y),g!==y&&(w=J(e,\"7Q\",p,y),E=J(e,\"aT\",p,y),\"%\"===g?(c=22*(w/v)+\"%\",l=22*(E/m)+\"%\"):\"4k\"===g?(S=J(e,\"7Q\",1,\"4k\"),c=w/S+\"4k\",l=E/S+\"4k\"):(c=w+\"2c\",l=E+\"2c\"),b&&(h=1r(c)+d+g,f=1r(l)+d+g)),o=4j(T,x[a],c+\" \"+l,h+\" \"+f,!1,\"1M\",o);18 o},2V:!0,4v:6H(\"1M 1M 1M 1M\",!1,!0)}),1G(\"ba\",{2v:\"0 0\",24:17(e,t,n,r,s,o){19 u,a,f,l,c,h,p=\"bb-4m\",v=i||V(e,1d),m=15.2U((v?d?v.42(p+\"-x\")+\" \"+v.42(p+\"-y\"):v.42(p):e.2X.bm+\" \"+e.2X.bi)||\"0 0\"),g=15.2U(t);1a(-1!==m.1k(\"%\")!=(-1!==g.1k(\"%\"))&&(h=$(e,\"d1\").1I(C,\"\"),h&&\"3t\"!==h)){1b(u=m.1t(\" \"),a=g.1t(\" \"),j.d9(\"d5\",h),f=2;--f>-1;)m=u[f],l=-1!==m.1k(\"%\"),l!==(-1!==a[f].1k(\"%\"))&&(c=0===f?e.4N-j.3k:e.4M-j.3y,u[f]=l?1r(m)/22*c+\"2c\":22*(1r(m)/c)+\"%\");m=u.1J(\" \")}18 15.3Y(e.1w,m,g,s,o)},4v:3g}),1G(\"db\",{2v:\"0 0\",4v:3g}),1G(\"3b\",{2v:\"1M\",2V:!0}),1G(\"dj\",{2v:\"50% 50%\",2V:!0}),1G(\"di\",{2V:!0}),1G(\"dh\",{2V:!0}),1G(\"de\",{2V:!0}),1G(\"6U\",{24:5g(\"7B,7S,7U,7K\")}),1G(\"6B\",{24:5g(\"cq,cR,cV,cU\")}),1G(\"cT\",{2v:\"8y(1M,1M,1M,1M)\",24:17(e,t,n,r,s,o){19 u,a,f;18 9>d?(a=e.2X,f=8>d?\" \":\",\",u=\"8y(\"+a.cS+f+a.d4+f+a.da+f+a.cZ+\")\",t=15.2U(t).1t(\",\").1J(f)):(u=15.2U($(e,15.p,i,!1,15.3Z)),t=15.2U(t)),15.3Y(e.1w,u,t,s,o)}}),1G(\"d6\",{2v:\"1M 1M 1M #8i\",4c:!0,3W:!0}),1G(\"7c,8b\",{24:17(e,t,n,r,i){18 i}}),1G(\"3X\",{2v:\"1M 5x #6T\",24:17(e,t,n,r,s,o){18 15.3Y(e.1w,15.2U($(e,\"6X\",i,!1,\"1M\")+\" \"+$(e,\"d8\",i,!1,\"5x\")+\" \"+$(e,\"d0\",i,!1,\"#6T\")),15.2U(t),s,o)},4c:!0,4v:17(e){19 t=e.1t(\" \");18 t[0]+\" \"+(t[1]||\"5x\")+\" \"+(e.2G(at)||[\"#6T\"])[0]}}),1G(\"9e\",{24:5g(\"6X,9f,9g,84\")}),1G(\"9c,6L,86\",{24:17(e,t,n,r,i){19 s=e.1w,o=\"6L\"1u s?\"6L\":\"86\";18 1h 27(s,o,0,0,i,-1,n,!1,0,s[o],t)}});19 8s=17(e){19 t,n=15.t,r=n.2l||$(15.1A,\"2l\"),i=0|15.s+15.c*e;22===i&&(-1===r.1k(\"96(\")&&-1===r.1k(\"97(\")&&-1===r.1k(\"98(\")?(n.6W(\"2l\"),t=!$(15.1A,\"2l\")):(n.2l=r.1I(S,\"\"),t=!0)),t||(15.3P&&(n.2l=r=r||\"3B(1Z=\"+i+\")\"),-1===r.1k(\"1Z\")?0===i&&15.3P||(n.2l=r+\" 3B(1Z=\"+i+\")\"):n.2l=r.1I(w,\"1Z=\"+i))};1G(\"1Z,3B,4T\",{2v:\"1\",24:17(e,t,n,r,s,o){19 u=1r($(e,\"1Z\",i,!1,\"1\")),a=e.1w,f=\"4T\"===n;18\"1L\"==1j t&&\"=\"===t.1v(1)&&(t=(\"-\"===t.1v(0)?-1:1)*1r(t.1q(2))+u),f&&1===u&&\"5v\"===$(e,\"6z\",i)&&0!==t&&(u=0),q?s=1h 27(a,\"1Z\",u,t-u,s):(s=1h 27(a,\"1Z\",22*u,22*(t-u),s),s.3P=f?1:0,a.7s=1,s.2p=2,s.b=\"3B(1Z=\"+s.s+\")\",s.e=\"3B(1Z=\"+(s.s+s.c)+\")\",s.1A=e,s.2D=o,s.1S=8s),f&&(s=1h 27(a,\"6z\",0,0,s,-1,1d,!1,0,0!==u?\"6I\":\"5v\",0===t?\"5v\":\"6I\"),s.1X=\"6I\",r.2B.2d(s.n),r.2B.2d(n)),s}});19 5r=17(e,t){t&&(e.8z?(\"5t\"===t.1q(0,2)&&(t=\"M\"+t.1q(1)),e.8z(t.1I(T,\"-$1\").6P())):e.6W(t))},8I=17(e){1a(15.t.4L=15,1===e||0===e){15.t.3a=0===e?15.b:15.e;1b(19 t=15.1A,n=15.t.1w;t;)t.v?n[t.p]=t.v:5r(n,t.p),t=t.1f;1===e&&15.t.4L===15&&(15.t.4L=1d)}1m 15.t.3a!==15.e&&(15.t.3a=15.e)};1G(\"3a\",{24:17(e,t,r,s,o,u,a){19 f,l,c,h,p,d=e.3a,v=e.1w.3d;1a(o=s.6J=1h 27(e,r,0,0,o,2),o.1S=8I,o.2s=-11,n=!0,o.b=d,l=Q(e,i),c=e.4L){1b(h={},p=c.1A;p;)h[p.p]=1,p=p.1f;c.1S(1)}18 e.4L=o,o.e=\"=\"!==t.1v(1)?t:d.1I(46(\"\\\\\\\\s*\\\\\\\\b\"+t.1q(2)+\"\\\\\\\\b\"),\"\")+(\"+\"===t.1v(0)?\" \"+t.1q(2):\"\"),s.2Y.1C&&(e.3a=o.e,f=G(e,l,Q(e),a,h),e.3a=d,o.1A=f.4e,e.1w.3d=v,o=o.3C=s.2O(e,f.57,o,u)),o}});19 8E=17(e){1a((1===e||0===e)&&15.1A.1H===15.1A.2i&&\"8D\"!==15.1A.1A){19 t,n,r,i,s=15.t.1w,o=u.3R.2O;1a(\"41\"===15.e)s.3d=\"\",i=!0;1m 1b(t=15.e.1t(\",\"),r=t.1c;--r>-1;)n=t[r],u[n]&&(u[n].2O===o?i=!0:n=\"4G\"===n?5q:u[n].p),5r(s,n);i&&(5r(s,bt),15.t.3T&&3E 15.t.3T)}};1b(1G(\"9h\",{24:17(e,t,r,i,s){18 s=1h 27(e,r,0,0,s,2),s.1S=8E,s.e=t,s.2s=-10,s.1A=i.2Y,n=!0,s}}),a=\"9i,9p,9q,95\".1t(\",\"),2u=a.1c;2u--;)7a(a[2u]);a=o.1y,a.1s=1d,a.6V=17(e,t,u){1a(!e.3n)18!1;15.7V=e,15.2Y=u,15.7d=t,f=t.7c,n=!1,r=t.6E||o.6E,i=V(e,\"\"),s=15.2B;19 a,h,d,v,m,g,y,b,w,S=e.1w;1a(l&&\"\"===S.3O&&(a=$(e,\"3O\",i),(\"2t\"===a||\"\"===a)&&(S.3O=0)),\"1L\"==1j t&&(v=S.3d,a=Q(e,i),S.3d=v+\";\"+t,a=G(e,a,Q(e)).57,!q&&E.2P(t)&&(a.1Z=1r(46.$1)),t=a,S.3d=v),15.1s=h=15.2O(e,t,1d),15.47){1b(w=3===15.47,bt?c&&(l=!0,\"\"===S.3O&&(y=$(e,\"3O\",i),(\"2t\"===y||\"\"===y)&&(S.3O=0)),p&&(S.7b=15.7d.7b||(w?\"9r\":\"5v\"))):S.7s=1,d=h;d&&d.1f;)d=d.1f;b=1h 27(e,\"3R\",0,0,1d,2),15.5e(b,1d,d),b.1S=w&&39?5o:bt?7t:7q,b.1A=15.3r||4l(e,i,!0),s.4q()}1a(n){1b(;h;){1b(g=h.1f,d=v;d&&d.2s>h.2s;)d=d.1f;(h.1l=d?d.1l:m)?h.1l.1f=h:v=h,(h.1f=d)?d.1l=h:m=h,h=g}15.1s=v}18!0},a.2O=17(e,t,n,s){19 o,a,l,c,h,p,d,v,m,g,y=e.1w;1b(o 1u t)p=t[o],a=u[o],a?n=a.2O(e,p,o,15,n,s,t):(h=$(e,o,i)+\"\",m=\"1L\"==1j p,\"4c\"===o||\"9k\"===o||\"91\"===o||-1!==o.1k(\"8Z\")||m&&x.2P(p)?(m||(p=5i(p),p=(p.1c>3?\"6Z(\":\"5h(\")+p.1J(\",\")+\")\"),n=4j(y,o,h,p,!0,\"4g\",n,0,s)):!m||-1===p.1k(\" \")&&-1===p.1k(\",\")?(l=1r(h),d=l||0===l?h.1q((l+\"\").1c):\"\",(\"\"===h||\"2t\"===h)&&(\"3k\"===o||\"3y\"===o?(l=3L(e,o,i),d=\"2c\"):\"4A\"===o||\"4z\"===o?(l=K(e,o,i),d=\"2c\"):(l=\"1Z\"!==o?0:1,d=\"\")),g=m&&\"=\"===p.1v(1),g?(c=3v(p.1v(0)+\"1\",10),p=p.1q(2),c*=1r(p),v=p.1I(b,\"\")):(c=1r(p),v=m?p.1q((c+\"\").1c)||\"\":\"\"),\"\"===v&&(v=o 1u r?r[o]:d),p=c||0===c?(g?c+l:c)+v:t[o],d!==v&&\"\"!==v&&(c||0===c)&&l&&(l=J(e,o,l,d),\"%\"===v?(l/=J(e,o,22,\"%\")/22,t.8b!==!0&&(h=l+\"%\")):\"4k\"===v?l/=J(e,o,1,\"4k\"):\"2c\"!==v&&(c=J(e,o,c,v),v=\"2c\"),g&&(c||0===c)&&(p=c+l+v)),g&&(c+=l),!l&&0!==l||!c&&0!==c?2h 0!==y[o]&&(p||\"ar\"!=p+\"\"&&1d!=p)?(n=1h 27(y,o,c||l||0,0,n,-1,o,!1,0,h,p),n.1X=\"3t\"!==p||\"6S\"!==o&&-1===o.1k(\"aq\")?p:h):U(\"ap \"+o+\" 6R aj: \"+t[o]):(n=1h 27(y,o,l,c-l,n,0,o,f!==!1&&(\"2c\"===v||\"3O\"===o),0,h,p),n.1X=v)):n=4j(y,o,h,p,!0,1d,n,0,s)),s&&n&&!n.2D&&(n.2D=s);18 n},a.1S=17(e){19 t,n,r,i=15.1s,s=1e-6;1a(1!==e||15.2Y.1n!==15.2Y.1C&&0!==15.2Y.1n)1a(e||15.2Y.1n!==15.2Y.1C&&0!==15.2Y.1n||15.2Y.1z===-1e-6)1b(;i;){1a(t=i.c*e+i.s,i.r?t=1g.3G(t):s>t&&t>-s&&(t=0),i.2p)1a(1===i.2p)1a(r=i.l,2===r)i.t[i.p]=i.1X+t+i.4a+i.3P+i.5B;1m 1a(3===r)i.t[i.p]=i.1X+t+i.4a+i.3P+i.5B+i.6D+i.6C;1m 1a(4===r)i.t[i.p]=i.1X+t+i.4a+i.3P+i.5B+i.6D+i.6C+i.7D+i.7O;1m 1a(5===r)i.t[i.p]=i.1X+t+i.4a+i.3P+i.5B+i.6D+i.6C+i.7D+i.7O+i.aJ+i.aM;1m{1b(n=i.1X+t+i.4a,r=1;i.l>r;r++)n+=i[\"3i\"+r]+i[\"2R\"+(r+1)];i.t[i.p]=n}1m-1===i.2p?i.t[i.p]=i.1X:i.1S&&i.1S(e);1m i.t[i.p]=t+i.1X;i=i.1f}1m 1b(;i;)2!==i.2p?i.t[i.p]=i.b:i.1S(e),i=i.1f;1m 1b(;i;)2!==i.2p?i.t[i.p]=i.e:i.1S(e),i=i.1f},a.aL=17(e){15.47=e||3===15.47?3:2,15.3r=15.3r||4l(15.7V,i,!0)},a.5e=17(e,t,n,r){18 e&&(t&&(t.1l=e),e.1f&&(e.1f.1l=e.1l),e.1l?e.1l.1f=e.1f:15.1s===e&&(15.1s=e.1f,r=!0),n?n.1f=e:r||1d!==15.1s||(15.1s=e),e.1f=t,e.1l=n),e},a.2n=17(t){19 n,r,i,s=t;1a(t.4T||t.3B){s={};1b(r 1u t)s[r]=t[r];s.1Z=1,s.4T&&(s.6z=1)}18 t.3a&&(n=15.6J)&&(i=n.3C,i&&i.1l?15.5e(i.1l,n.1f,i.1l.1l):i===15.1s&&(15.1s=n.1f),n.1f&&15.5e(n.1f,n.1f.1f,i.1l),15.6J=1d),e.1y.2n.1W(15,s)};19 4t=17(e,t,n){19 r,i,s,o;1a(e.6K)1b(i=e.1c;--i>-1;)4t(e[i],t,n);1m 1b(r=e.70,i=r.1c;--i>-1;)s=r[i],o=s.2p,s.1w&&(t.2d(Q(s)),n&&n.2d(s)),1!==o&&9!==o&&11!==o||!s.70.1c||4t(s,t,n)};18 o.aD=17(e,n,r){19 i,s,o,u=t.3Q(e,n,r),a=[u],f=[],l=[],c=[],h=t.4s.7k;1b(e=u.2F||u.2x,4t(e,f,c),u.1E(n,!0),4t(e,l),u.1E(0,!0),u.1N(!0),i=c.1c;--i>-1;)1a(s=G(c[i],f[i],l[i]),s.4e){s=s.57;1b(o 1u r)h[o]&&(s[o]=r[o]);a.2d(t.3Q(c[i],n,s))}18 a},e.6Q([o]),o},!0)}),1Q.3u&&1Q.37.4q()()',62,830,'|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||this||function|return|var|if|for|length|null||_next|Math|new|_startTime|typeof|indexOf|_prev|else|_time|_timeline|vars|substr|parseFloat|_firstPT|split|in|charAt|style|_timeScale|prototype|_rawPrevTime|data|_paused|_duration|Number|render|255|mt|_totalTime|replace|join|rotation|string|0px|_enabled|_gc|rotationX|window|skewX|setRatio|_p1|add|rotationY|call|xs0|immediateRender|opacity||timeline|100|totalDuration|parser||_first|ht|scaleX|_startAt|_active|instanceof|px|push||_|scaleY|void|_totalDuration|smoothChildTiming|sin|filter|arguments|_kill|easing|type|_p2|_dirty|pr|auto|dt|defaultValue|getRatio|target|number|_initted|rt|_overwriteProps|duration|plugin|cos|_targets|match|_ease|5625|_labels|constructor|_delay|_reversed|128|parse|test|splice|xs|zOrigin|_siblings|format|prefix|scaleZ|currentStyle|_tween|totalTime|startAt|wake|skewY|_onUpdate|time|apply|180|_gsQueue|sqrt|St|className|perspective|_uncache|cssText|paused|_p3|tt|_parseTimeOrLabel|xn|ratio|width|_last|_overwrittenProps|nodeType|config|pow|nt|_transform|_calcEnd|none|_gsDefine|parseInt|API|st|height|ease|_propLookup|alpha|xfirst|it|delete|frame|round|rawTime|selector|tweens|_remove|et|gi|Array|zIndex|xn1|to|transform|appendXtra|_gsTransform|object|version|multi|border|parseComplex|dflt|getTweensOf|all|getPropertyValue|concat|force3D||RegExp|_transformType|reversed|onComplete|xs1|seek|color|_listeners|firstMPT|kill|transparent|set|onReverseComplete|pt|em|Tt|position|isActive|PI|_initProps|pop|skewType|_internals|_t|_notifyPluginsOfEnabled|formatter|runBackwards|delay|scale|top|left|self|sc|_propName|onStart|atan2|transformOrigin|autoRemoveChildren|overwrite|pg|_sortChildren|_gsClassPT|offsetHeight|offsetWidth|_pauseTime|css|com|greensock|plugins|autoAlpha|strict|use|tick|1e5|Ticker|toUpperCase||abs|ox|ieOffsetX|gsClass||rxp|difs|192|9999999999|ot|keyword|sleep|easeParams|_linkCSSP|TweenLite|lt|rgb|ut|repeat|easeIn|_swapSelfInParams|easeInOut|remove|Ct|ieOffsetY|Et|At|getChildren|ms|invalidate|hidden|next|solid|prev|_onPluginEvent|onUpdate|xs2|core|_onInitAllProps|priority|xt|fps|_params|_hasPausedChild|Scope|useFrames|_func|setTimeout|pause|vt|onStartScope|DXImageTransform|oy|Microsoft|onUpdateScope|onUpdateParams|Matrix|_priority|false|Params|GreenSockGlobals||onStartParams|module|define|check|_onDisable|from|_easeType|360|TweenMax|onCompleteParams|fromTo|easeOut|isNaN|createElement|ticker|_gsCache|document|Left|_overwrite|autoCSS|throw|9375|625|delayedCall|984375|timeScale|defaultEase|onCompleteScope|_power|staggerTo|_type|SlowMo|console|hsl|visibility|shortRotationY|padding|xs3|xn2|suffixMap|_short|shortRotationX|ft|inherit|_classNamePT|slice|cssFloat|rotationZ|shortRotation|yt|toLowerCase|activate|tween|display|000|margin|_onInitTween|removeAttribute|borderTopWidth|inset|rgba|childNodes|get|_easePower|play|div||break|globals|_init|addEventListener|gt|WebkitBackfaceVisibility|autoRound|_vars|Cannot|RoughEase|_gsTweenID|_updateRoot|red|autoSleep|reservedProps|center|propName|removeLabel|init|isSelector|Nt|appendChild|zoom|kt|_roundProps|defaultView|insert|addLabel|SimpleTimeline|log|func|marginTop|map|xn3|isArray|bottom|right|Width|black|onReverseCompleteParams|marginLeft|_onEnable|onReverseCompleteScope|Top|xs4|_rootFramesTimeline|borderLeft|filters|marginRight|Right|marginBottom|_target|proxy|Linear|Back|Quad|TweenPlugin|defaultTransformPerspective|progid|absolute|borderLeftWidth|_eventTarget|styleFloat|SteppedEase|Date|_p|up|strictUnits|M11|M12|Dx|exports|Dy|Ease|999|GreenSockAMDPath|_class|register|M22|M21|oxp|shiftChildren|01|oyp|Lt|url|Plugin|gap|defaultSkewType|directionalRotation|rect|removeProperty|random|_contains|startTime|isFromStart|Mt|autoRotate|defaultOverwrite|Animation|Ot|2e3|not|1e3|parseTransform|template|wt|matrix|dispatchEvent|strength|useRAF|clrs|transformPerspective|events|EventDispatcher|or|the|Color||stroke|append|into|is|physics2D|atrix|radient|oader||clear|999999999999|float|usesFrames|borderWidth|borderRightWidth|borderBottomWidth|clearProps|bezier|getLabelTime|fill|addPause|appendMultiple|stop|gotoAndPlay|throwProps|physicsProps|visible|gotoAndStop|insertMultiple|killTweensOf|resume|restart|reverse|eventCallback|1500|clearTimeout|CancelAnimationFrame|CancelRequestAnimationFrame|004|on|progress|_plugins|_tweenLookup|onRepeat|getElementById|jQuery|totalProgress|jquery|_autoCSS|RequestAnimationFrame|webkit|Quart|Quint|Strong|Cubic|undefined|Object|toString|amd|Power|easeNone|now|getTime|moz|cancelAnimationFrame|requestAnimationFrame|linear|swing|removeEventListener|onRepeatParams|onRepeatScope|dependency|TimelineLite|align|missing|encountered|initAll|global|GSAP|stagger|value|exportRoot|normal|sequence|staggerFromTo|staggerFrom|invalid|Style|NaN|overwriteProps||definition|true|_rootTimeline|120|preexisting|allOnStart|yoyo|repeatDelay|concurrent|cascadeTo|_dummyGS|_super|_addTween|illegal|killDelayedCallsTo|xn4|_tempKill|_enableTransforms|xs5|start|70158|Bottom|oxr|oyr|rad|borderTop|Origin|removeChild|cacheWidths|calculateOffset|offset|short|_cw|maroon|teal|blue|navy|silver|lime|ccw|borderBottomLeftRadius|aqua|backgroundPosition|background|exec|innerHTML|1px|getElementsByTagName|MSIE|Firefox|backgroundPositionY|Safari|Chrome|Version|backgroundPositionX|Moz|clientWidth|clientHeight|line|body|convertToPixels||getStyle|Ms|Webkit|getComputedStyle|white|fuchsia|block|Transform|getTransform|179|registerSpecialProp|loaded|_cssRegister|Error|js|file|shortRotationZ|set2DTransformRatio|tan|gradient|Alpha|simple|translate3d|expand|270|matrix3d|sizingMethod|_registerComplexSpecialProp|collapsible|purple|green|borderBottomRightRadius|pink|gray|165|olive|yellow|orange|borderTopRightRadius|203|_setPluginRatio|_parseToProxy|end|CSSPropTween|hsla|boxShadow|cyan|borderTopLeftRadius|borderRadius|Android|parentNode|ElasticIn|ElasticInOut|Expo|ElasticOut|Elastic|BackInOut|asin|paddingTop|BackIn|ExpoOut||SineIn|BackOut|SineInOut|SineOut|Sine|ExpoIn|randomize|ExpoInOut|userAgent|CircInOut|taper|BounceOut|999999999|Bounce|points|clamp|out|sort|BounceIn|BounceInOut|Circ|CircOut|CircIn|paddingRight|clipTop|clip|paddingLeft|paddingBottom|525|001|compensated|clipLeft|borderTopColor|backgroundImage|img|set3DTransformRatio|clipRight|src|textShadow|zA|borderTopStyle|setAttribute|clipBottom|backgroundSize|navigator|lineHeight|userSelect|find|EaseLookup|backfaceVisibility|transformStyle|perspectiveOrigin|fontSize|CSSPlugin|_specialProps|Z0'.split('|'),0,{}));\r\n\r\n/* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/\r\n *\r\n * Uses the built in easing capabilities added In jQuery 1.1\r\n * to offer multiple easing options\r\n */\r\njQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:\"easeOutQuad\",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});\r\n\r\n/*! jQuery UI Effects 1.8.1\r\n *\r\n * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)\r\n * Dual licensed under the MIT (MIT-LICENSE.txt)\r\n * and GPL (GPL-LICENSE.txt) licenses.\r\n *\r\n * http://docs.jquery.com/UI/Effects/\r\n */\r\njQuery.effects||(function(g){g.effects={};g.each([\"backgroundColor\",\"borderBottomColor\",\"borderLeftColor\",\"borderRightColor\",\"borderTopColor\",\"color\",\"outlineColor\"],function(l,k){g.fx.step[k]=function(m){if(!m.colorInit){m.start=j(m.elem,k);m.end=i(m.end);m.colorInit=true}m.elem.style[k]=\"rgb(\"+Math.max(Math.min(parseInt((m.pos*(m.end[0]-m.start[0]))+m.start[0],10),255),0)+\",\"+Math.max(Math.min(parseInt((m.pos*(m.end[1]-m.start[1]))+m.start[1],10),255),0)+\",\"+Math.max(Math.min(parseInt((m.pos*(m.end[2]-m.start[2]))+m.start[2],10),255),0)+\")\"}});function i(l){var k;if(l&&l.constructor==Array&&l.length==3){return l}if(k=/rgb\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)/.exec(l)){return[parseInt(k[1],10),parseInt(k[2],10),parseInt(k[3],10)]}if(k=/rgb\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)/.exec(l)){return[parseFloat(k[1])*2.55,parseFloat(k[2])*2.55,parseFloat(k[3])*2.55]}if(k=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(l)){return[parseInt(k[1],16),parseInt(k[2],16),parseInt(k[3],16)]}if(k=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(l)){return[parseInt(k[1]+k[1],16),parseInt(k[2]+k[2],16),parseInt(k[3]+k[3],16)]}if(k=/rgba\\(0, 0, 0, 0\\)/.exec(l)){return a.transparent}return a[g.trim(l).toLowerCase()]}function j(m,k){var l;do{l=g.curCSS(m,k);if(l!=\"\"&&l!=\"transparent\"||g.nodeName(m,\"body\")){break}k=\"backgroundColor\"}while(m=m.parentNode);return i(l)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};var e=[\"add\",\"remove\",\"toggle\"],c={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function f(){var n=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,o={},l,m;if(n&&n.length&&n[0]&&n[n[0]]){var k=n.length;while(k--){l=n[k];if(typeof n[l]==\"string\"){m=l.replace(/\\-(\\w)/g,function(p,q){return q.toUpperCase()});o[m]=n[l]}}}else{for(l in n){if(typeof n[l]===\"string\"){o[l]=n[l]}}}return o}function b(l){var k,m;for(k in l){m=l[k];if(m==null||g.isFunction(m)||k in c||(/scrollbar/).test(k)||(!(/color/i).test(k)&&isNaN(parseFloat(m)))){delete l[k]}}return l}function h(k,m){var n={_:0},l;for(l in m){if(k[l]!=m[l]){n[l]=m[l]}}return n}g.effects.animateClass=function(k,l,n,m){if(g.isFunction(n)){m=n;n=null}return this.each(function(){var r=g(this),o=r.attr(\"style\")||\" \",s=b(f.call(this)),q,p=r.attr(\"className\");g.each(e,function(t,u){if(k[u]){r[u+\"Class\"](k[u])}});q=b(f.call(this));r.attr(\"className\",p);r.animate(h(s,q),l,n,function(){g.each(e,function(t,u){if(k[u]){r[u+\"Class\"](k[u])}});if(typeof r.attr(\"style\")==\"object\"){r.attr(\"style\").cssText=\"\";r.attr(\"style\").cssText=o}else{r.attr(\"style\",o)}if(m){m.apply(this,arguments)}})})};g.fn.extend({_addClass:g.fn.addClass,addClass:function(l,k,n,m){return k?g.effects.animateClass.apply(this,[{add:l},k,n,m]):this._addClass(l)},_removeClass:g.fn.removeClass,removeClass:function(l,k,n,m){return k?g.effects.animateClass.apply(this,[{remove:l},k,n,m]):this._removeClass(l)},_toggleClass:g.fn.toggleClass,toggleClass:function(m,l,k,o,n){if(typeof l==\"boolean\"||l===undefined){if(!k){return this._toggleClass(m,l)}else{return g.effects.animateClass.apply(this,[(l?{add:m}:{remove:m}),k,o,n])}}else{return g.effects.animateClass.apply(this,[{toggle:m},l,k,o])}},switchClass:function(k,m,l,o,n){return g.effects.animateClass.apply(this,[{add:m,remove:k},l,o,n])}});g.extend(g.effects,{version:\"1.8.1\",save:function(l,m){for(var k=0;k<m.length;k++){if(m[k]!==null){l.data(\"ec.storage.\"+m[k],l[0].style[m[k]])}}},restore:function(l,m){for(var k=0;k<m.length;k++){if(m[k]!==null){l.css(m[k],l.data(\"ec.storage.\"+m[k]))}}},setMode:function(k,l){if(l==\"toggle\"){l=k.is(\":hidden\")?\"show\":\"hide\"}return l},getBaseline:function(l,m){var n,k;switch(l[0]){case\"top\":n=0;break;case\"middle\":n=0.5;break;case\"bottom\":n=1;break;default:n=l[0]/m.height}switch(l[1]){case\"left\":k=0;break;case\"center\":k=0.5;break;case\"right\":k=1;break;default:k=l[1]/m.width}return{x:k,y:n}},createWrapper:function(k){if(k.parent().is(\".ui-effects-wrapper\")){return k.parent()}var l={width:k.outerWidth(true),height:k.outerHeight(true),\"float\":k.css(\"float\")},m=g(\"<div></div>\").addClass(\"ui-effects-wrapper\").css({fontSize:\"100%\",background:\"transparent\",border:\"none\",margin:0,padding:0});k.wrap(m);m=k.parent();if(k.css(\"position\")==\"static\"){m.css({position:\"relative\"});k.css({position:\"relative\"})}else{g.extend(l,{position:k.css(\"position\"),zIndex:k.css(\"z-index\")});g.each([\"top\",\"left\",\"bottom\",\"right\"],function(n,o){l[o]=k.css(o);if(isNaN(parseInt(l[o],10))){l[o]=\"auto\"}});k.css({position:\"relative\",top:0,left:0})}return m.css(l).show()},removeWrapper:function(k){if(k.parent().is(\".ui-effects-wrapper\")){return k.parent().replaceWith(k)}return k},setTransition:function(l,n,k,m){m=m||{};g.each(n,function(p,o){unit=l.cssUnit(o);if(unit[0]>0){m[o]=unit[0]*k+unit[1]}});return m}});function d(l,k,m,n){if(typeof l==\"object\"){n=k;m=null;k=l;l=k.effect}if(g.isFunction(k)){n=k;m=null;k={}}if(g.isFunction(m)){n=m;m=null}if(typeof k==\"number\"||g.fx.speeds[k]){n=m;m=k;k={}}k=k||{};m=m||k.duration;m=g.fx.off?0:typeof m==\"number\"?m:g.fx.speeds[m]||g.fx.speeds._default;n=n||k.complete;return[l,k,m,n]}g.fn.extend({effect:function(n,m,p,q){var l=d.apply(this,arguments),o={options:l[1],duration:l[2],callback:l[3]},k=g.effects[n];return k&&!g.fx.off?k.call(this,o):this},_show:g.fn.show,show:function(l){if(!l||typeof l==\"number\"||g.fx.speeds[l]){return this._show.apply(this,arguments)}else{var k=d.apply(this,arguments);k[1].mode=\"show\";return this.effect.apply(this,k)}},_hide:g.fn.hide,hide:function(l){if(!l||typeof l==\"number\"||g.fx.speeds[l]){return this._hide.apply(this,arguments)}else{var k=d.apply(this,arguments);k[1].mode=\"hide\";return this.effect.apply(this,k)}},__toggle:g.fn.toggle,toggle:function(l){if(!l||typeof l==\"number\"||g.fx.speeds[l]||typeof l==\"boolean\"||g.isFunction(l)){return this.__toggle.apply(this,arguments)}else{var k=d.apply(this,arguments);k[1].mode=\"toggle\";return this.effect.apply(this,k)}},cssUnit:function(k){var l=this.css(k),m=[];g.each([\"em\",\"px\",\"%\",\"pt\"],function(n,o){if(l.indexOf(o)>0){m=[parseFloat(l),o]}});return m}});g.easing.jswing=g.easing.swing;g.extend(g.easing,{def:\"easeOutQuad\",swing:function(l,m,k,o,n){return g.easing[g.easing.def](l,m,k,o,n)},easeInQuad:function(l,m,k,o,n){return o*(m/=n)*m+k},easeOutQuad:function(l,m,k,o,n){return -o*(m/=n)*(m-2)+k},easeInOutQuad:function(l,m,k,o,n){if((m/=n/2)<1){return o/2*m*m+k}return -o/2*((--m)*(m-2)-1)+k},easeInCubic:function(l,m,k,o,n){return o*(m/=n)*m*m+k},easeOutCubic:function(l,m,k,o,n){return o*((m=m/n-1)*m*m+1)+k},easeInOutCubic:function(l,m,k,o,n){if((m/=n/2)<1){return o/2*m*m*m+k}return o/2*((m-=2)*m*m+2)+k},easeInQuart:function(l,m,k,o,n){return o*(m/=n)*m*m*m+k},easeOutQuart:function(l,m,k,o,n){return -o*((m=m/n-1)*m*m*m-1)+k},easeInOutQuart:function(l,m,k,o,n){if((m/=n/2)<1){return o/2*m*m*m*m+k}return -o/2*((m-=2)*m*m*m-2)+k},easeInQuint:function(l,m,k,o,n){return o*(m/=n)*m*m*m*m+k},easeOutQuint:function(l,m,k,o,n){return o*((m=m/n-1)*m*m*m*m+1)+k},easeInOutQuint:function(l,m,k,o,n){if((m/=n/2)<1){return o/2*m*m*m*m*m+k}return o/2*((m-=2)*m*m*m*m+2)+k},easeInSine:function(l,m,k,o,n){return -o*Math.cos(m/n*(Math.PI/2))+o+k},easeOutSine:function(l,m,k,o,n){return o*Math.sin(m/n*(Math.PI/2))+k},easeInOutSine:function(l,m,k,o,n){return -o/2*(Math.cos(Math.PI*m/n)-1)+k},easeInExpo:function(l,m,k,o,n){return(m==0)?k:o*Math.pow(2,10*(m/n-1))+k},easeOutExpo:function(l,m,k,o,n){return(m==n)?k+o:o*(-Math.pow(2,-10*m/n)+1)+k},easeInOutExpo:function(l,m,k,o,n){if(m==0){return k}if(m==n){return k+o}if((m/=n/2)<1){return o/2*Math.pow(2,10*(m-1))+k}return o/2*(-Math.pow(2,-10*--m)+2)+k},easeInCirc:function(l,m,k,o,n){return -o*(Math.sqrt(1-(m/=n)*m)-1)+k},easeOutCirc:function(l,m,k,o,n){return o*Math.sqrt(1-(m=m/n-1)*m)+k},easeInOutCirc:function(l,m,k,o,n){if((m/=n/2)<1){return -o/2*(Math.sqrt(1-m*m)-1)+k}return o/2*(Math.sqrt(1-(m-=2)*m)+1)+k},easeInElastic:function(l,n,k,u,r){var o=1.70158;var q=0;var m=u;if(n==0){return k}if((n/=r)==1){return k+u}if(!q){q=r*0.3}if(m<Math.abs(u)){m=u;var o=q/4}else{var o=q/(2*Math.PI)*Math.asin(u/m)}return -(m*Math.pow(2,10*(n-=1))*Math.sin((n*r-o)*(2*Math.PI)/q))+k},easeOutElastic:function(l,n,k,u,r){var o=1.70158;var q=0;var m=u;if(n==0){return k}if((n/=r)==1){return k+u}if(!q){q=r*0.3}if(m<Math.abs(u)){m=u;var o=q/4}else{var o=q/(2*Math.PI)*Math.asin(u/m)}return m*Math.pow(2,-10*n)*Math.sin((n*r-o)*(2*Math.PI)/q)+u+k},easeInOutElastic:function(l,n,k,u,r){var o=1.70158;var q=0;var m=u;if(n==0){return k}if((n/=r/2)==2){return k+u}if(!q){q=r*(0.3*1.5)}if(m<Math.abs(u)){m=u;var o=q/4}else{var o=q/(2*Math.PI)*Math.asin(u/m)}if(n<1){return -0.5*(m*Math.pow(2,10*(n-=1))*Math.sin((n*r-o)*(2*Math.PI)/q))+k}return m*Math.pow(2,-10*(n-=1))*Math.sin((n*r-o)*(2*Math.PI)/q)*0.5+u+k},easeInBack:function(l,m,k,p,o,n){if(n==undefined){n=1.70158}return p*(m/=o)*m*((n+1)*m-n)+k},easeOutBack:function(l,m,k,p,o,n){if(n==undefined){n=1.70158}return p*((m=m/o-1)*m*((n+1)*m+n)+1)+k},easeInOutBack:function(l,m,k,p,o,n){if(n==undefined){n=1.70158}if((m/=o/2)<1){return p/2*(m*m*(((n*=(1.525))+1)*m-n))+k}return p/2*((m-=2)*m*(((n*=(1.525))+1)*m+n)+2)+k},easeInBounce:function(l,m,k,o,n){return o-g.easing.easeOutBounce(l,n-m,0,o,n)+k},easeOutBounce:function(l,m,k,o,n){if((m/=n)<(1/2.75)){return o*(7.5625*m*m)+k}else{if(m<(2/2.75)){return o*(7.5625*(m-=(1.5/2.75))*m+0.75)+k}else{if(m<(2.5/2.75)){return o*(7.5625*(m-=(2.25/2.75))*m+0.9375)+k}else{return o*(7.5625*(m-=(2.625/2.75))*m+0.984375)+k}}}},easeInOutBounce:function(l,m,k,o,n){if(m<n/2){return g.easing.easeInBounce(l,m*2,0,o,n)*0.5+k}return g.easing.easeOutBounce(l,m*2-n,0,o,n)*0.5+o*0.5+k}})})(jQuery);\r\n\r\n//---set jQuery\r\n\tjQuery.noConflict();\r\n\tvar $ = jQuery; var _DEBUG_ = true;\r\n\r\n//->General fnc's\r\n\t//-> shuffle\r\n\t\tfunction shuffle(o){\r\n\t\t\t\tfor(var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);\r\n\t\t\t\treturn o;\r\n\t\t}\r\n\t//-> Trigger Buttons\r\n\t\tvar TriggerBtn = function($elem){ $($elem).trigger('click'); }\r\n\r\n\r\n//-> Iniciamos funciones | example: <script>gFuncInit.push('test()');</script>\r\n\tfunction InitFunctions( functions ){\r\n\t\tif(functions.length > 0 ){ //console.log('|-> start Functions');\r\n\t\t\tfor(var i in functions ){ //console.log('start Function:'+functions[i]);\r\n\t\t\t\teval(functions[i]);\r\n\t\t\t} //console.log('    END Functions <-|');\r\n\t\t}\r\n\t}\r\n\r\n//*** updateOrientation **//\r\n\tvar updateOrientation = function(){ var $Html = $('html'); var $o = window.orientation; $o = ($o == 0 || $o == 180) ? 'v' : 'h'; if( $Html.hasClass('v-orientation') ){ $Html.removeClass('v-orientation'); } if( $Html.hasClass('h-orientation') ){ $Html.removeClass('h-orientation'); } $Html.addClass($o+'-orientation'); $.Orientation = window.orientation; setTimeout( function(){ hk_imageResponsive();}, 1); }\r\n\r\n/* === Utils ===\r\n */\r\n\tvar hk_Scroller = function(){\r\n\t\treturn;\r\n\t}\r\n\tvar hk_BoxcenterHeight = function()\r\n\t{\r\n\t\t$a = $('body').find('.box-center-height');\r\n\t\tif($a.length>0){\r\n\t\t\t$.each($a, function( i, e ) {\r\n\t\t\t\tvar $xTarget = $(this).attr(\"data-target\");\r\n\t\t\t\tvar $xScreenDisable = $(this).attr(\"data-screen-disable\") ? $(this).attr(\"data-screen-disable\") : \"\";\r\n\t\t\t\tvar $xTar_H = $($xTarget).height();//-$.Header.height();\r\n\t\t\t\tvar $xBox_H = $(this).height();\r\n\t\t\t\tif($xTar_H>$xBox_H){\r\n\t\t\t\t\tvar $xTop = parseFloat( ($xTar_H-$xBox_H)/2 );\r\n\t\t\t\t}\r\n\t\t\t\t//log($.ScreenType+\"=\"+$xScreenDisable);\r\n\t\t\t\tif($.ScreenType==$xScreenDisable)\r\n\t\t\t\t\t$(this).css(\"margin-top\",\"0px\");\r\n\t\t\t\telse\r\n\t\t\t\t\t$(this).css(\"margin-top\",$xTop+\"px\");\r\n\r\n\t\t\t});\r\n\t\t}\r\n\t\t$a = $('body').find('.box-bottom-height');\r\n\t\tif($a.length>0){\r\n\t\t\t$.each($a, function( i, e ) {\r\n\t\t\t\tvar $xTarget = $(this).attr(\"data-target\");\r\n\t\t\t\tvar $xScreenDisable = $(this).attr(\"data-screen-disable\") ? $(this).attr(\"data-screen-disable\") : \"\";\r\n\t\t\t\tvar $xTar_H = $($xTarget).height();\r\n\t\t\t\tvar $xBox_H = $(this).height();\r\n\t\t\t\tvar $xTop = 0;\r\n\t\t\t\tif($xTar_H>$xBox_H){\r\n\t\t\t\t\t$xTop = parseFloat( ($xTar_H-$xBox_H) );\r\n\t\t\t\t}\r\n\t\t\t\t//log($.ScreenType+\"=\"+$xScreenDisable);\r\n\t\t\t\tif($.ScreenType==$xScreenDisable)\r\n\t\t\t\t\t$(this).css(\"margin-top\",\"0px\");\r\n\t\t\t\telse\r\n\t\t\t\t\t$(this).css(\"margin-top\",$xTop+\"px\");\r\n\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\t//-> Banner\r\n\t\tvar hk_HeroBanner = function()\r\n\t\t{\t//log(\"hk_HeroBanner\");\r\n\t\t\tvar $xBox_MaxH = 748;\r\n\t\t\tvar $xBox_MinH = 520;\r\n\t\t\t$a = $('body').find('.cover-resize');\r\n\r\n\t\t\tvar $p = 0;\r\n\t\t\t$.each($a, function( i, e ) {\r\n\t\t\t\t$p = 0;\r\n\t\t\t\t$xBox_MaxH = $(this).attr('data-maxh') ? $(this).attr('data-maxh') : $xBox_MaxH;\r\n\t\t\t\t$xBox_MinH = $(this).attr('data-minh') ? $(this).attr('data-minh') : $xBox_MinH;\r\n\t\t\t\tif($.ScreenType=='md'||$.ScreenType=='lg'){\r\n\t\t\t\t\tif($.winInnerH<$xBox_MaxH)\r\n\t\t\t\t\t\tif($.winInnerH<$xBox_MinH)\r\n\t\t\t\t\t\t\t$p= $xBox_MinH;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t$p= $.winInnerH;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\t$p= $xBox_MaxH;\r\n\r\n\t\t\t\t\t$(this).height($p);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t//$.each($a, function( i, e ) {  });\r\n\t\t}\r\n\t//->scriptExternal\r\n\t\t$gInjectionScript = \"\";\r\n\t\t$gInjectedScript = false;\r\n\t\tvar hk_loadScript = function($url){\r\n\t\t\t$.ajax({\r\n\t\t\t\turl: $url,\r\n\t\t\t\tdataType: \"script\",\r\n\t\t\t\tsuccess: function(response) {\r\n\t\t\t\t\t$gInjectedScript = true;\r\n\t\t\t\t\t$(\"#ptw-container\").html(response);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t//\r\n\t\t}\r\n\t\tvar hk_injectionScript = function($url)\r\n\t\t{\r\n\t\t\t//$gInjectionScript = \"<script type=\\\"text/javascript\\\" src=\\\"\"+$url+\"\\\"></script>\";\r\n\t\t\t$gInjectionScript = $url;\r\n\t\t}\r\n/* === PORTADA ===\r\n * ===============\r\n */\r\n\t//->BUILD\r\n\t\tvar hk_portada = function(){\r\n\r\n\t\t\tghk_resizeWindowFn.push('hk_HeroBanner()');\r\n\t\t\thk_HeroBanner();\r\n\r\n\t\t\tghk_resizeWindowFn.push('hk_BoxcenterHeight()');\r\n\t\t\thk_BoxcenterHeight();\r\n\r\n\t\t\t$options = {\r\n\t\t\t\twidth: 768,\r\n\t\t\t\theight: 200,\r\n\t\t\t\tspace:0,\r\n\t\t\t\tfullwidth:true,\r\n\t\t\t\tautoHeight:true,\r\n\t\t\t\tview:\"scale\",\r\n\t\t\t\tloop:true,\r\n\t\t\t\tcontrols : {\r\n\t\t\t\t\tarrows : {autohide:false},\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\t$('#home-slider').masterslider($options);\r\n\r\n\t\t}\r\n\r\n/* === FLOTA ===\r\n * ===============\r\n */\r\n\t//->BUILD\r\n\t\tvar hk_flota = function(){\r\n\t\t\t$options = {\r\n\t\t\t\twidth:768,    // slider standard width\r\n\t\t\t\tspace:0,\r\n\t\t\t\tfullwidth:true,\r\n\t\t\t\tautoHeight:true,\r\n\t\t\t\t//view:\"scale\",\r\n\t\t\t\tloop:true,\r\n\t\t\t\t/*controls : {\r\n\t\t\t\t\tarrows : {autohide:false}\r\n\t\t\t\t},*/\r\n\t\t\t};\r\n\t\t\t//$('#slider').masterslider($options);\r\n\t\t\t$('#slider-00').masterslider($options);\r\n\t\t\t$('#slider-01').masterslider($options);\r\n\t\t\t$('#slider-02').masterslider($options);\r\n\t\t\t$('#slider-03').masterslider($options);\r\n\t\t\t$('#slider-04').masterslider($options);\r\n\t\t}\r\n\r\n/* === MODAL ===\r\n * ===============\r\n */\r\n\t//->BUILD\r\n\t\tvar hk_modal_reserves_rW = function(){ //log(\"hk_modal_reserves_rW\");\r\n\t\t\t$xModal = \"#modal-rsrv\";\r\n\t\t\t$eModal = $($xModal);\r\n\t\t\t$eBox = $(\".modal-main\",$eModal);\r\n\t\t\t$xH = $($eBox).height();\r\n\t\t\t$xTop = ($.winInnerH-$xH+85)/2;\r\n\t\t\t$xTop = $xTop>85?$xTop:85;  //log(\"xH:\"+$xH+\", xTop:\"+$xTop);\r\n\t\t\t$eModal.css(\"top\",$xTop+\"px\");\r\n\r\n\t\t}\r\n\t\tvar hk_modal_reserves = function(){\r\n\t\t\t$xModal = \"#modal-rsrv\";\r\n\t\t\t$eModal = $($xModal);\r\n\t\t\t$xInterval = false;\r\n\r\n\t\t\t$xScriptLoaded = false;\r\n\t\t\t$btnOpen = $(\"#modal-rsrv-open\");\r\n\t\t\t$a = $(\".modal-rsrv-open\");\r\n\r\n\t\t\t$.each($a, function( i, e ) {\r\n\t\t\t\t$(this).click(function(event) {\r\n\t\t\t\t\tevent.preventDefault();\r\n\r\n\r\n\t\t\t\t\tif(!$gInjectedScript){\r\n\t\t\t\t\t\thk_loadScript($gInjectionScript);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$(\".pt-customJqueryUi\").css({\"z-index\":\"1001\",\"position\":\"relative\"});\r\n\r\n\t\t\t\t\t$(\"#modal-rsrv\").removeClass(\"close\");\r\n\t\t\t\t\tif(!$(\"#modal-rsrv\").hasClass(\"open\")){\r\n\t\t\t\t\t\t$(\"#modal-rsrv\").addClass(\"open\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$xInterval = setInterval(function(){ hk_modal_reserves_rW() }, 1000);\r\n\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\t\t\t$btnClose = $(\"a.modal-close\",\"#modal-rsrv\");\r\n\t\t\t$($btnClose).click(function(event) {\r\n\t\t\t\tevent.preventDefault();\r\n\t\t\t\t$(\"#modal-rsrv\").removeClass(\"open\");\r\n\t\t\t\tif(!$(\"#modal-rsrv\").hasClass(\"close\")){\r\n\t\t\t\t\t$(\"#modal-rsrv\").addClass(\"close\");\r\n\t\t\t\t}\r\n\t\t\t\tclearInterval($xInterval);\r\n\t\t\t});\r\n\r\n\r\n\r\n\t\t}\r\n\t\tvar hk_modal_horarios = function(){\r\n\t\t\t$xModal = \"#modal-schdl\";\r\n\t\t\t$eModal = $($xModal);\r\n\r\n\t\t\t$btnOpen = $(\"a#modal-schdl-open\");\r\n\t\t\t$btnOpen.click(function(event) {\r\n\t\t\t\tevent.preventDefault();\r\n\t\t\t\t$(\"#modal-schdl\").removeClass(\"close\");\r\n\t\t\t\tif(!$(\"#modal-schdl\").hasClass(\"open\")){\r\n\t\t\t\t\t$(\"#modal-schdl\").addClass(\"open\");\r\n\t\t\t\t}\r\n\t\t\t\t$(this).addClass('active');\r\n\r\n\t\t\t\t$(\"#modal-ssnprm\").removeClass(\"open\");\r\n\t\t\t\tif(!$(\"#modal-ssnprm\").hasClass(\"close\")){\r\n\t\t\t\t\t$(\"#modal-ssnprm\").addClass(\"close\");\r\n\t\t\t\t}\r\n\t\t\t\t$(\"a#modal-ssnprm-open\").removeClass('active');\r\n\r\n\t\t\t});\r\n\r\n\t\t\t$btnClose = $(\"a.modal-close\",\"#modal-schdl\");\r\n\t\t\t$btnClose.click(function(event) {\r\n\t\t\t\tevent.preventDefault();\r\n\t\t\t\t$(\"#modal-schdl\").removeClass(\"open\");\r\n\t\t\t\tif(!$(\"#modal-schdl\").hasClass(\"close\")){\r\n\t\t\t\t\t$(\"#modal-schdl\").addClass(\"close\");\r\n\t\t\t\t}\r\n\t\t\t\t$(\"a#modal-schdl-open\").removeClass('active');\r\n\t\t\t});\r\n\r\n\t\t\t$a = $(\"li.li-node\",\"#modal-schdl\");\r\n\t\t\t$tot = $a.length;\r\n\t\t\tif($tot>0){\r\n\t\t\t\tfunction hk_close($id){\r\n\t\t\t\t\t$a = $(\"li.li-node\",\"#modal-schdl\");\r\n\t\t\t\t\t$.each($a, function( i, e ) {\r\n\t\t\t\t\t\t$this = $(this);\r\n\t\t\t\t\t\tif($this.attr(\"hk-id\")!=$id){\r\n\t\t\t\t\t\t\t$($this).removeClass(\"open\");\r\n\t\t\t\t\t\t\t$($this).addClass(\"close\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\t$.each($a, function( i, e ) {\r\n\t\t\t\t\t$this = $(this);\r\n\t\t\t\t\t$parent = $(this);\r\n\t\t\t\t\t$parent.attr(\"hk-id\",i);\r\n\t\t\t\t\t$btn = $(\".link-node\",this);\r\n\r\n\t\t\t\t\t$($btn).click(function(event) {\r\n\t\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t\t$parent = $(this).parent();\r\n\t\t\t\t\t\t$tar = $($parent);\r\n\t\t\t\t\t\t$id = $tar.attr(\"hk-id\");\r\n\t\t\t\t\t\tif($($tar).hasClass(\"close\")){\r\n\t\t\t\t\t\t\t$($tar).removeClass(\"close\");\r\n\t\t\t\t\t\t\t$($tar).addClass(\"open\");\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t$($tar).removeClass(\"open\");\r\n\t\t\t\t\t\t\t$($tar).addClass(\"close\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\thk_close($id);\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t});\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tvar hk_modal_season_promo = function(){\r\n\t\t\t$xModal = \"#modal-ssnprm\";\r\n\t\t\t$eModal = $($xModal);\r\n\r\n\t\t\t$btnOpen = $(\"a#modal-ssnprm-open\");\r\n\t\t\t$btnOpen.click(function(event) {\r\n\t\t\t\tevent.preventDefault();\r\n\t\t\t\t$(\"#modal-ssnprm\").removeClass(\"close\");\r\n\t\t\t\tif(!$(\"#modal-ssnprm\").hasClass(\"open\")){\r\n\t\t\t\t\t$(\"#modal-ssnprm\").addClass(\"open\");\r\n\t\t\t\t}\r\n\t\t\t\t$(this).addClass('active');\r\n\r\n\t\t\t\t//\r\n\t\t\t\t$(\"#modal-schdl\").removeClass(\"open\");\r\n\t\t\t\tif(!$(\"#modal-schdl\").hasClass(\"close\")){\r\n\t\t\t\t\t$(\"#modal-schdl\").addClass(\"close\");\r\n\t\t\t\t}\r\n\t\t\t\t$(\"a#modal-schdl-open\").removeClass('active');\r\n\r\n\t\t\t});\r\n\r\n\t\t\t$btnClose = $(\"a.modal-close\",\"#modal-ssnprm\");\r\n\t\t\t$btnClose.click(function(event) {\r\n\t\t\t\tevent.preventDefault();\r\n\t\t\t\t$(\"#modal-ssnprm\").removeClass(\"open\");\r\n\t\t\t\tif(!$(\"#modal-ssnprm\").hasClass(\"close\")){\r\n\t\t\t\t\t$(\"#modal-ssnprm\").addClass(\"close\");\r\n\t\t\t\t}\r\n\t\t\t\t$(\"a#modal-ssnprm-open\").removeClass('active');\r\n\r\n\t\t\t});\r\n\r\n\t\t}\r\n\r\n\t\tvar hk_modal_rutas_precios = function(){\r\n\t\t\t$xModal = \"#modal-rts_cpj_im\";\r\n\t\t\t$eModal = $($xModal);\r\n\r\n\t\t\t$btnOpen = $(\"a#modal-rts_cpj_im-open\");\r\n\r\n\t\t\tif($btnOpen.length==1){\r\n\t\t\t\t$btnOpen.click(function(event) {\r\n\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t$(\"#modal-rts_cpj_im\").removeClass(\"close\");\r\n\t\t\t\t\tif(!$(\"#modal-rts_cpj_im\").hasClass(\"open\")){\r\n\t\t\t\t\t\t$(\"#modal-rts_cpj_im\").addClass(\"open\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$(this).addClass('active');\r\n\r\n\t\t\t\t});\r\n\t\t\t\t$btnClose = $(\"a.modal-close\",\"#modal-rts_cpj_im\");\r\n\t\t\t\t$btnClose.click(function(event) {\r\n\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t$(\"#modal-rts_cpj_im\").removeClass(\"open\");\r\n\t\t\t\t\tif(!$(\"#modal-rts_cpj_im\").hasClass(\"close\")){\r\n\t\t\t\t\t\t$(\"#modal-rts_cpj_im\").addClass(\"close\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$(\"a#modal-rts_cpj_im-open\").removeClass('active');\r\n\r\n\t\t\t\t});\r\n\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\r\n/* === HORARIOS ===\r\n * ===============\r\n */\r\n\t//->BUILD\r\n\t\tvar hk_horarios = function(){\r\n\r\n\t\t\tghk_resizeWindowFn.push('hk_HeroBanner()');\r\n\t\t\thk_HeroBanner();\r\n\r\n\t\t\tghk_resizeWindowFn.push('hk_BoxcenterHeight()');\r\n\t\t\thk_BoxcenterHeight();\r\n\r\n\t\t\tvar gsTl = new TimelineLite();\r\n\r\n\t\t\t//sections\r\n\t\t\t\t$a = $(\"span.box-node\",\"#hourlist\");\r\n\t\t\t\t$tot = $a.length;\r\n\t\t\t\tif($tot>0){\r\n\r\n\t\t\t\t\tfunction hk_close($id){\r\n\t\t\t\t\t\t$a = $(\"span.box-node\",\"#hourlist\");\r\n\t\t\t\t\t\t$.each($a, function( i, e ) {\r\n\t\t\t\t\t\t\t$parent = $(this).parent();\r\n\t\t\t\t\t\t\tif($parent.attr(\"hk-id\")!=$id){\r\n\t\t\t\t\t\t\t\t$($parent).removeClass(\"open\");\r\n\t\t\t\t\t\t\t\t$($parent).addClass(\"close\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$.each($a, function( i, e ) {\r\n\t\t\t\t\t\t$this = $(this);\r\n\t\t\t\t\t\t$parent = $(this).parent();\r\n\t\t\t\t\t\t$parent.attr(\"hk-id\",i);\r\n\t\t\t\t\t\t$btn = $(\".icon-arrow_down\",this);\r\n\r\n\t\t\t\t\t\t$($btn).click(function(event) {\r\n\t\t\t\t\t\t\tevent.preventDefault();\r\n\r\n\t\t\t\t\t\t\t$parent = $(this).parent();\r\n\t\t\t\t\t\t\t$tar = $($parent.parent());\r\n\r\n\r\n\t\t\t\t\t\t\t$id = $tar.attr(\"hk-id\");\r\n\t\t\t\t\t\t\t$s = $($tar).hasClass(\"close\");\r\n\r\n\t\t\t\t\t\t\tif($($tar).hasClass(\"close\")){\r\n\t\t\t\t\t\t\t\t$($tar).removeClass(\"close\");\r\n\t\t\t\t\t\t\t\t$($tar).addClass(\"open\");\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t$($tar).removeClass(\"open\");\r\n\t\t\t\t\t\t\t\t$($tar).addClass(\"close\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\thk_close($id);\r\n\r\n\t\t\t\t\t\t\tif($s){\r\n\t\t\t\t\t\t\t\ttargetOffset = $($tar).offset().top;\r\n\t\t\t\t\t\t\t\t$('html,body').animate({scrollTop: targetOffset}, 1000);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t//modal\r\n\t\t\t\t//fn\r\n\t\t\t\t\tfunction hk_close_modal($id){\r\n\t\t\t\t\t\t$a = $(\".list-child-modal\",\"#hourlist\");\r\n\t\t\t\t\t\t$.each($a, function( i, e ) {\r\n\t\t\t\t\t\t\t$this = $(this);\r\n\t\t\t\t\t\t\tif($this.attr(\"id\")!=$id){\r\n\t\t\t\t\t\t\t\t$($this).removeClass(\"open\");\r\n\t\t\t\t\t\t\t\t$($this).addClass(\"close\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfunction hk_set_height($id,$slide){\r\n\t\t\t\t\t\t$h_hd = $(\"#\"+$id+\" .lcm-hd\").outerHeight();\r\n\t\t\t\t\t\t$h_nav = $(\"#\"+$id+\" .lcm-nav\").outerHeight();\r\n\t\t\t\t\t\t$h = $(\"#\"+$id+\" .\"+$slide).outerHeight();\r\n\t\t\t\t\t\t$h_total = $h_hd + $h_nav + $h;\r\n\t\t\t\t\t\treturn $h_total;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfunction hk_fx_height($id, $h){\r\n\t\t\t\t\t\tvar $eTar = $($(\"#\"+$id).parent());\r\n\t\t\t\t\t\t$eTar.css(\"overflow\",\"hidden\");\r\n\t\t\t\t\t\tgsTl.to( $eTar, .65, {\theight:$h, delay:0, ease: Power3.easeOut });\r\n\t\t\t\t\t}\r\n\t\t\t\t//close btns\r\n\t\t\t\t\t$(\".lcm-close\",\"#hourlist\").click(function(event) { event.preventDefault();\r\n\t\t\t\t\t\t$parent = $($(this).parent()).parent();\r\n\t\t\t\t\t\t$parent_box = $parent.parent();\r\n\t\t\t\t\t\t$parent_box.attr(\"style\",\"\");\r\n\t\t\t\t\t\t$parent.removeClass(\"open\");\r\n\t\t\t\t\t\t$parent.addClass(\"close\");\r\n\t\t\t\t\t});\r\n\t\t\t\t//open btn\r\n\t\t\t\t\t$e = $(\".list-btn-modal\",\"#hourlist\");\r\n\t\t\t\t\t$tot = $e.length;\r\n\t\t\t\t\tif($tot>0){\r\n\t\t\t\t\t\t$.each($e, function( i, e ) {\r\n\t\t\t\t\t\t\t$(this).click(function(event) { event.preventDefault();\r\n\t\t\t\t\t\t\t\t$this = $(this);\r\n\t\t\t\t\t\t\t\t$id = $this.attr(\"data-target\");\r\n\t\t\t\t\t\t\t\t$tar = $(\"#\" + $id);\r\n\t\t\t\t\t\t\t\tif($($tar).hasClass(\"close\")){\r\n\t\t\t\t\t\t\t\t\t$($tar).removeClass(\"close\");\r\n\t\t\t\t\t\t\t\t\t$($tar).addClass(\"open\");\r\n\r\n\t\t\t\t\t\t\t\t\t$t = $(\".slide-btn-modal\",\"#\"+$id);\r\n\t\t\t\t\t\t\t\t\t$.each($t, function( i, e ) {\r\n\t\t\t\t\t\t\t\t\t\t$this = $(this);\r\n\t\t\t\t\t\t\t\t\t\t$($this).removeClass(\"active\");\r\n\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t\t$('.lcm-slide-1',\"#\"+$id).removeClass('close');\r\n\t\t\t\t\t\t\t\t\t$('.lcm-slide-1',\"#\"+$id).addClass('open');\r\n\t\t\t\t\t\t\t\t\t$('.slide-btn-1',\"#\"+$id).addClass('active');\r\n\r\n\t\t\t\t\t\t\t\t\t$h = hk_set_height($id,'lcm-slide-1');\r\n\t\t\t\t\t\t\t\t\t$tar.css('top',($h+200)+\"px\");\r\n\t\t\t\t\t\t\t\t\thk_fx_height($id,$h);\r\n\t\t\t\t\t\t\t\t\tgsTl.to( $tar, .5, {\ttop:0, delay:0, ease: Power3.easeOut });\r\n\r\n\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\t$($tar).removeClass(\"open\");\r\n\t\t\t\t\t\t\t\t\t$($tar).addClass(\"close\");\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t\t\t\thk_close_modal($id);\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t//slides\r\n\t\t\t\t\t$f = $(\".slide-btn-modal\",\"#hourlist\");\r\n\t\t\t\t\t$tot = $f.length;\r\n\t\t\t\t\tif($tot>0){\r\n\t\t\t\t\t\t$.each($f, function( i, e ) {\r\n\t\t\t\t\t\t\t$(this).click(function(event) { event.preventDefault();\r\n\t\t\t\t\t\t\t\t$this = $(this);\r\n\t\t\t\t\t\t\t\t$id = $this.attr(\"data-target\");\r\n\t\t\t\t\t\t\t\t$parent = $(this).parent().parent().parent();\r\n\t\t\t\t\t\t\t\t$id_parent = $parent.attr(\"id\");\r\n\t\t\t\t\t\t\t\t$tar = $(\".\"+$id,\"#\"+$id_parent);\r\n\r\n\t\t\t\t\t\t\t\tif(!$this.hasClass(\"active\")){\r\n\t\t\t\t\t\t\t\t\t$this.addClass(\"active\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t$tar.removeClass(\"close\");\r\n\t\t\t\t\t\t\t\t$parent_box = $parent.parent();\r\n\r\n\t\t\t\t\t\t\t\t$h = hk_set_height($id_parent,$id);\r\n\t\t\t\t\t\t\t\thk_fx_height($id_parent,$h);\r\n\t\t\t\t\t\t\t\t$tar.addClass(\"open\");\r\n\r\n\t\t\t\t\t\t\t\t$.each($f, function( i, e ) {\r\n\t\t\t\t\t\t\t\t\t$this = $(this);\r\n\t\t\t\t\t\t\t\t\tif($this.attr(\"data-target\")!=$id){\r\n\t\t\t\t\t\t\t\t\t\t$($this).removeClass(\"active\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t$t = $(\".lcm-slide\",$parent);\r\n\t\t\t\t\t\t\t\t$.each($t, function( i, e ) {\r\n\t\t\t\t\t\t\t\t\t$this = $(this);\r\n\t\t\t\t\t\t\t\t\tif(!$($this).hasClass($id)){\r\n\t\t\t\t\t\t\t\t\t\t$($this).removeClass(\"open\");\r\n\t\t\t\t\t\t\t\t\t\t$($this).addClass(\"close\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t}\r\n\r\n/* === CONTACTO ===\r\n * ===============\r\n */\r\n\t//->BUILD\r\n\t\tvar hk_contacto = function(){\r\n\r\n\t\t\tghk_resizeWindowFn.push('hk_HeroBanner()');\r\n\t\t\thk_HeroBanner();\r\n\r\n\t\t\tghk_resizeWindowFn.push('hk_BoxcenterHeight()');\r\n\t\t\thk_BoxcenterHeight();\r\n\r\n\t\t\tvar $xForm = \"#frm_contact\";\r\n\t\t\t//set tag error & success\r\n\t\t\t$template = '<div class=\\\"icon-validator ic-success\\\"><span></span></div><div class=\\\"icon-validator ic-error\\\"><span></span></div>';\r\n\t\t\t$($xForm +\" .form-control\").appendTo('');\r\n\t\t\t//fill test\r\n\t\t\t$( \"#submit_contact\" ).click(function(e) {\r\n\t\t\t\te.preventDefault();\r\n\t\t\t\t$eThis = $(this);\r\n\t\t\t\t//\r\n\t\t\t\t$_action = $($xForm).attr(\"action\");\r\n\t\t\t\t$_token = $('input[name=\"_token\"]').val();\r\n\t\t\t\t$_name = $($xForm +\" input[id='cf_name']\").val();\r\n\t\t\t\t$_email = $($xForm +\" input[id='cf_email']\").val();\r\n\t\t\t\t$_phone = $($xForm +\" input[id='cf_phone']\").val();\r\n\t\t\t\t$_comment = $($xForm +\" textarea[id='cf_comment']\").val();\r\n\r\n\t\t\t\t//set headers/token\r\n\t\t\t\t$.ajaxSetup({ headers: { 'X-CSRF-Token' : $_token }, });\r\n\r\n\t\t\t\t$.ajax({\r\n\t\t\t\t\ttype:\"POST\",\r\n\t\t\t\t\turl: $_action,\r\n\t\t\t\t\tdata: { cf_name: $_name, cf_email: $_email, cf_phone: $_phone, cf_comment: $_comment},\r\n\t\t\t\t\tdataType: 'json',\r\n\t\t\t\t\tsuccess: function(data){\r\n\t\t\t\t\t\tif(data.response==1){\r\n\r\n\t\t\t\t\t\t\t$($xForm+\"_box\").fadeOut('fast',function(){\r\n\t\t\t\t\t\t\t\t$(\".title\",$xForm+\"_success\").html(data.title);\r\n\t\t\t\t\t\t\t\t$(\".message\",$xForm+\"_success\").html(data.message);\r\n\t\t\t\t\t\t\t\t$($xForm+\"_success\").removeClass('hidden').fadeIn();\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t$eThis.removeAttr(\"disabled\");\r\n\r\n\t\t\t\t\t\t\tvar $xHtml = data.html;\r\n\t\t\t\t\t\t\tvar $aErrors = JSON.parse(data.field_errors);\r\n\t\t\t\t\t\t\tvar $aSuccess = JSON.parse(data.field_success);\r\n\t\t\t\t\t\t\t//\r\n\t\t\t\t\t\t\t$(\".form-error\", $xForm+\"_error\").html($xHtml);\r\n\t\t\t\t\t\t\t$($xForm+\"_error\").hide().removeClass('hidden').fadeIn();\r\n\t\t\t\t\t\t\t//\r\n\t\t\t\t\t\t\t$items = $aErrors; $length = $aErrors.length;\r\n\t\t\t\t\t\t\tfor($i=0;$i<$length;$i++){\r\n\t\t\t\t\t\t\t\t$(\"#\"+$items[$i]).removeClass(\"success\").addClass(\"error\");\r\n\t\t\t\t\t\t\t\t$xParent = $(\"#\"+$items[$i]).parent();\r\n\t\t\t\t\t\t\t\t$($xParent).removeClass(\"success\").addClass(\"error\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t//\r\n\t\t\t\t\t\t\t$items = $aSuccess; $length = $aSuccess.length;\r\n\t\t\t\t\t\t\tfor($i=0;$i<$length;$i++){\r\n\t\t\t\t\t\t\t\t$(\"#\"+$items[$i]).removeClass(\"error\").addClass(\"success\");\r\n\t\t\t\t\t\t\t\t$xParent = $(\"#\"+$items[$i]).parent();\r\n\t\t\t\t\t\t\t\t$($xParent).removeClass(\"error\").addClass(\"success\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\tbeforeSend: function(data){\r\n\t\t\t\t\t\tif( !$($xForm+\"_error\").hasClass('hidden') ){\r\n\t\t\t\t\t\t\t$(\".form-error\", $xForm+\"_error\").html('');\r\n\t\t\t\t\t\t\t$($xForm+\"_error\").addClass('hidden');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$eThis.attr(\"disabled\",\"disabled\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\terror: function(data){\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t});\r\n\r\n\t\t}\r\n\r\n/* === INNOVACION\r\n * ===============\r\n */\r\n\t//->BUILD\r\n\t\tvar hk_innovacion = function(){\r\n\r\n\t\t\tghk_resizeWindowFn.push('hk_HeroBanner()');\r\n\t\t\thk_HeroBanner();\r\n\r\n\t\t\tghk_resizeWindowFn.push('hk_BoxcenterHeight()');\r\n\t\t\thk_BoxcenterHeight();\r\n\r\n\t\t\t// Find all YouTube videos\r\n\t\t\t\tvar $allVideos = $(\"iframe[src^='//player.vimeo.com']\"),\r\n\r\n\t\t\t\t\t\t// The element that is fluid width\r\n\t\t\t\t\t\t$fluidEl = $(\"body\");\r\n\r\n\t\t\t\t// Figure out and save aspect ratio for each video\r\n\t\t\t\t$allVideos.each(function() {\r\n\r\n\t\t\t\t\t$(this)\r\n\t\t\t\t\t\t.data('aspectRatio', this.height / this.width)\r\n\r\n\t\t\t\t\t\t// and remove the hard coded width/height\r\n\t\t\t\t\t\t.removeAttr('height')\r\n\t\t\t\t\t\t.removeAttr('width');\r\n\r\n\t\t\t\t});\r\n\r\n\t\t\t\t// When the window is resized\r\n\t\t\t\t$(window).resize(function() {\r\n\r\n\t\t\t\t\tvar newWidth = $fluidEl.width();\r\n\r\n\t\t\t\t\t// Resize all videos according to their own aspect ratio\r\n\t\t\t\t\t$allVideos.each(function() {\r\n\r\n\t\t\t\t\t\tvar $el = $(this);\r\n\t\t\t\t\t\t$el\r\n\t\t\t\t\t\t\t.width(newWidth)\r\n\t\t\t\t\t\t\t.height(newWidth * $el.data('aspectRatio'));\r\n\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t// Kick off one resize to fix all videos on page load\r\n\t\t\t\t}).resize();\r\n\t\t\t//\r\n\r\n\t\t\t// MasterSlider\r\n\t\t\t\t//init\r\n\t\t\t\t\tvar elem = \"#innovation-slider\";\r\n\t\t\t\t\tvar slider = $(elem);\r\n\t\t\t\t\t$options = {\r\n\t\t\t\t\t\twidth: 1280,\r\n\t\t\t\t\t\theight: 520,\r\n\t\t\t\t\t\tfullwidth:true,\r\n\t\t\t\t\t\tautoHeight:true,\r\n\t\t\t\t\t\tview:\"wave\",\r\n\t\t\t\t\t\tspace: 40,\r\n\t\t\t\t\t\tloop: true,\r\n\t\t\t\t\t\tcontrols : {\r\n\t\t\t\t\t\t\tarrows : {autohide:false},\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t};\r\n\t\t\t\t\tslider.masterslider($options);\r\n\r\n\t\t\t\t//Control-panel\r\n\t\t\t\t\tfunction set_active(_t){\r\n\t\t\t\t\t\t$.each($items, function( i, e ) {\r\n\t\t\t\t\t\t\t$(this).removeClass(\"active\");\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t_t.addClass(\"active\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvar $items = $(\".buticon\",\".sd-control-btn\");\r\n\t\t\t\t\t$.each($items, function( i, e ) {\r\n\t\t\t\t\t\t$this = $(this);\r\n\t\t\t\t\t\t$($this).click(function(e){\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\t$_t = $(this);\r\n\t\t\t\t\t\t\t$id = $($_t).attr(\"id\");\r\n\t\t\t\t\t\t\t$index = $id.substring(7, $id.length);\r\n\t\t\t\t\t\t\tslider.masterslider('gotoSlide', $index);\r\n\t\t\t\t\t\t\tset_active($_t);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t//\r\n\t\t\t\t\t});\r\n\t\t\t\t\t//\r\n\t\t\t\t\t$(elem).on(MSSliderEvent.CHANGE_START, function(e){\r\n\t\t\t\t\t\t// dispatches when the slider's current slide change starts.\r\n\t\t\t\t\t\t$r = slider.masterslider('index');\r\n\t\t\t\t\t\t_t = $($items[$r]);\r\n\t\t\t\t\t\tset_active( _t );\r\n\t\t\t\t\t});\r\n\t\t\t\t//\r\n\t\t}\r\n\t\t//\r\n\r\n/* === NEWSLETTER\r\n * ===============\r\n */\r\n\t//->BUILD\r\n\t\tvar hk_newsletter = function(){\r\n\r\n\t\t\tvar $xForm = \"#frm_newsletter\";\r\n\t\t\t//fill test\r\n\t\t\t$( \"#submit_newsletter\" ).click(function(e) {\r\n\t\t\t\te.preventDefault();\r\n\t\t\t\t$eThis = $(this);\r\n\t\t\t\t//\r\n\t\t\t\t$_action = $($xForm).attr(\"action\");\r\n\t\t\t\t$_token = $('input[name=\"_token\"]').val();\r\n\t\t\t\t$_email = $($xForm +\" input[id='cf_email']\").val(); log($_email);\r\n\t\t\t\t//set headers/token\r\n\t\t\t\t$.ajaxSetup({ headers: { 'X-CSRF-Token' : $_token }, });\r\n\r\n\t\t\t\t$.ajax({\r\n\t\t\t\t\ttype:\"POST\",\r\n\t\t\t\t\turl: $_action,\r\n\t\t\t\t\tdata: { cf_email: $_email},\r\n\t\t\t\t\tdataType: 'json',\r\n\t\t\t\t\tsuccess: function(data){\r\n\t\t\t\t\t\tif(data.response==1){\r\n\r\n\t\t\t\t\t\t\t$($xForm).fadeOut('fast',function(){\r\n\t\t\t\t\t\t\t\t$(\".title\",$xForm+\"_success\").html(data.title);\r\n\t\t\t\t\t\t\t\t$(\".message\",$xForm+\"_success\").html(data.message);\r\n\t\t\t\t\t\t\t\t$($xForm+\"_success\").hide().removeClass('hidden').fadeIn();\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t}else{\r\n\r\n\t\t\t\t\t\t\tvar $xHtml = data.html;\r\n\t\t\t\t\t\t\tvar $aErrors = JSON.parse(data.field_errors);\r\n\r\n\t\t\t\t\t\t\t$(\".form-error\", $xForm+\"_error\").html($xHtml);\r\n\r\n\t\t\t\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t\t\t\t$(\".loader-ws\",$xForm).fadeOut();\r\n\t\t\t\t\t\t\t\t$($xForm+\"_error\").hide().removeClass('hidden').fadeIn();\r\n\t\t\t\t\t\t\t\t$(\".loader-ws\",$xForm).addClass('hidden');\r\n\t\t\t\t\t\t\t}, 2000);\r\n\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$eThis.removeAttr(\"disabled\");\r\n\t\t\t\t\t},\r\n\t\t\t\t\tbeforeSend: function(data){\r\n\t\t\t\t\t\t$eThis.attr(\"disabled\",\"disabled\");\r\n\r\n\t\t\t\t\t\t$(\".loader-ws\",$xForm).hide().removeClass('hidden').fadeIn();\r\n\t\t\t\t\t\t$(\".form-error\", $xForm+\"_error\").html(\"\");\r\n\t\t\t\t\t\t$($xForm+\"_error\").addClass('hidden');\r\n\r\n\t\t\t\t\t},\r\n\t\t\t\t\terror: function(data){\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t});\r\n\r\n\t\t}\r\n\r\n/* === INIT\r\n * ===============\r\n */\r\n\t//->BUILD\r\n\t\tvar hk_init = function(){\r\n\t\t\tvar $items = $(\":input\",\"form\");\r\n\t\t\t$.each($items, function( i, e ) {\r\n\t\t\t\t$this = $(this);\r\n\t\t\t\t$id = $($this).attr(\"id\");\r\n\t\t\t\t$($this).attr(\"autocomplete\",\"off\");\r\n\t\t\t\t$($this).attr(\"name\",$id);\r\n\t\t\t\t//\r\n\t\t\t});\r\n\r\n\t\t\t$.each($.xAnclasTo, function( i, e ) {\r\n\t\t\t\t$this = $(this);\r\n\t\t\t\t$id = $($this).attr(\"id\");\r\n\t\t\t\t$($this).attr(\"name\",$id);\r\n\t\t\t\t//\r\n\t\t\t});\r\n\t\t\t$xHash = window.location.hash;\r\n\t\t\t$eHash = $($xHash);\r\n\t\t\tif($eHash.length==1){\r\n\t\t\t\ttargetOffset = $eHash.offset().top;\r\n\t\t\t\t$('html,body').animate({scrollTop: targetOffset}, 1000);\r\n\t\t\t}\r\n\t\t}\r\n\r\n//*** Ready Document  ***//\r\n\r\n\tfunction Ready_Document(){\r\n\t\t//console.log(\">>> the DOM is ready\"); return;\r\n\r\n\t\t\t//---- VAR'S --------- //\r\n\t\t\t\t//\r\n\t\t\t\t\t$.Html = $('html'); $.Body = $('body');\r\n\t\t\t\t//screen & window\r\n\t\t\t\t\t$.Window = $(window); $.winInnerW = 0; $.winInnerH = 0;\t$.winScrollTop = 0; $.ScreenType =\"\"; $.Orientation =\"\";\r\n\t\t\t\t\t$.Screen = /*Browser.n == \"safari\" ? $.Body : */ $('html,body');\r\n\t\t\t\t//--\r\n\t\t\t\t\t$.xAnclaAct = 'inicio';\r\n\t\t\t\t\t$.xAnclasFrom = $('[hk-ancla-from]');\r\n\t\t\t\t\t$.xAnclasTo = $('[class~=hk-ancla-to]');\r\n\t\t\t//---- Initialize ---- //\r\n\t\t\t\t//->Resize && scroll window\r\n\t\t\t\tresizeWindow();\r\n\t\t\t\tghk_fScrollWin();\r\n\t\t\t\t//-> call functions\r\n\t\t\t\t\t$(window).resize(function(){ resizeWindow(); });\r\n\t\t\t\t\t$(window).scroll(function(){ ghk_fScrollWin(); });\r\n\r\n\t\t\t\tif($.isMobil){\r\n\t\t\t\t\t$.Body.attr( \"onorientationchange\", 'updateOrientation()' );\r\n\t\t\t\t\twindow.onload = updateOrientation();\r\n\t\t\t\t}else{\r\n\r\n\t\t\t\t}\r\n\t\t\t\t//-> menu responsive\r\n\t\t\t\t$(\"#mmenu\").mmenu();\r\n\t\t\t\tvar API = $(\"#mmenu\").data( \"mmenu\" );\r\n\t\t\t\t$(\"#mmenu-open\").click(function() { API.open(); });\r\n\t\t\t\t//->\r\n\t\t\t\tif(gFuncInit.length>0){InitFunctions( gFuncInit );}\r\n\r\n\t\t\t//--- Init --//\r\n\t\t\t\thk_init();\r\n\t\t\t//--- modal --//\r\n\t\t\t\thk_modal_horarios();\r\n\t\t\t\thk_modal_reserves();\r\n\t\t\t\thk_modal_season_promo();\r\n\t\t\t\thk_modal_rutas_precios();\r\n\t\t\t\thk_newsletter();\r\n\r\n\t\t\t//--- Sections --//\r\n\t\t\tswitch(BodyClass){\r\n\t\t\t\tcase \"home\":\r\n\t\t\t\t\thk_portada();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase \"horarios\":\r\n\t\t\t\t\thk_horarios();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase \"flota\":\r\n\t\t\t\t\thk_flota();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase \"contacto\":\r\n\t\t\t\t\thk_contacto();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase \"innovation\":\r\n\t\t\t\t\thk_innovacion();\r\n\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//log('loaded:'+BodyClass);\r\n\r\n\t}\r\n\r\n//-> ==================================\r\n//-> initialize when the DOM is ready\r\n//-> ==================================\r\njQuery(document).on(\"ready\", Ready_Document);\r\n"]}