(function(window,undefined) {'use strict';var height_fixed_header=100,speed=500,moving_frequency=15,links=document.getElementsByTagName('a'),href;for(var i=0;i1&&href.indexOf('#')!=-1) {links[i].onclick=function() {var element,href=this.attributes.href.nodeValue.toString(),url=href.substr(0,href.indexOf('#')),id=href.substr(href.indexOf('#')+1);if(element=document.getElementById(id)) {var hop_count=(speed-(speed%moving_frequency))/moving_frequency,getScrollTopDocumentAtBegin=getScrollTopDocument(),gap=(getScrollTopElement(element)-getScrollTopDocumentAtBegin)/hop_count;if(window.history&&typeof window.history.pushState=='function') window.history.pushState({},undefined,url+'#'+id);for(var i=1;i<=hop_count;i++) {(function() {var hop_top_position=gap*i;setTimeout(function(){window.scrollTo(0,hop_top_position+getScrollTopDocumentAtBegin);},moving_frequency*i);})();} return false;}};}} var getScrollTopElement=function(e) {var top=height_fixed_header*-1;while(e.offsetParent!=undefined&&e.offsetParent!=null) {top+=e.offsetTop+(e.clientTop!=null?e.clientTop:0);e=e.offsetParent;} return top;};var getScrollTopDocument=function() {return window.pageYOffset!==undefined?window.pageYOffset:document.documentElement.scrollTop!==undefined?document.documentElement.scrollTop:document.body.scrollTop;};})(window); /*! * CSS Modal * http://drublic.github.com/css-modal * * @author Hans Christian Reinl - @drublic */ (function(global,$){'use strict';var modal={activeElement:undefined,lastActive:undefined,stackedElements:[],tabbableElements:'a[href], area[href], input:not([disabled]),'+'select:not([disabled]), textarea:not([disabled]),'+'button:not([disabled]), iframe, object, embed, *[tabindex],'+'*[contenteditable]',on:function(event,elements,callback){var i=0;if(typeof event!=='string'){throw new Error('Type error: `event` has to be a string');} if(typeof callback!=='function'){throw new Error('Type error: `callback` has to be a function');} if(!elements){return;} if(!elements.length){elements=[elements];} for(;i=0;i--){if(modal.isElementVisible(nodeList[i])){return nodeList[i];}}}else{return lastTabbableElement;} return null;},isElementVisible:function(element){return!(element.offsetWidth===0&&element.offsetHeight===0);},setActive:function(element){modal.addClass(element,'is-active');modal.activeElement=element;modal.activeElement.setAttribute('aria-hidden','false');modal.setFocus(element.id);modal.trigger('cssmodal:show',modal.activeElement);},unsetActive:function(isStacked,shouldNotBeStacked){modal.removeClass(document.documentElement,'has-overlay');if(modal.activeElement){modal.removeClass(modal.activeElement,'is-active');modal.trigger('cssmodal:hide',modal.activeElement);modal.activeElement.setAttribute('aria-hidden','true');modal.removeFocus();if(isStacked&&!shouldNotBeStacked){modal.stackModal(modal.activeElement);} if(!isStacked&&modal.stackedElements.length>0){modal.unstackModal();} modal.activeElement=null;}},stackModal:function(stackableModal){modal.addClass(stackableModal,'is-stacked');modal.stackedElements.push(modal.activeElement);},unstackModal:function(){var stackedCount=modal.stackedElements.length;var lastStacked=modal.stackedElements[stackedCount-1];modal.removeClass(lastStacked,'is-stacked');global.location.hash=lastStacked.id;modal.stackedElements.splice(stackedCount-1,1);},mainHandler:function(event,noHash){var hash=global.location.hash.replace('#','');var index=0;var tmp=[];var modalElement;var modalChild;if(noHash){hash=event.target.getAttribute('href').replace('#','');} modalElement=document.getElementById(hash);if(hash.indexOf('/')!==-1){tmp=hash.split('/');index=tmp.pop();hash=tmp.join('/');modalElement=document.getElementById(hash);if(!modalElement){throw new Error('ReferenceError: element "'+hash+'" does not exist!');} modalElement.index=(1*index);} if(modalElement){try{event.preventDefault();}catch(ex){event.returnValue=false;} modalChild=modalElement.children[0];if(modalChild&&modalChild.className.match(/modal-inner/)){modal.unsetActive(!modal.hasClass(modalElement,'is-active'),(modalElement.getAttribute('data-stackable')==='false'));modal.addClass(document.documentElement,'has-overlay');modal._currentScrollPositionY=global.scrollY;modal._currentScrollPositionX=global.scrollX;modal.setActive(modalElement);}}else{modal.unsetActive();} return true;},injectIframes:function(){var iframes=document.querySelectorAll('[data-iframe-src]');var iframe;var i=0;for(;ib;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){console.warn("MutationObserver is not supported by your browser."),console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),this.WOW=function(){function f(a){null==a&&(a={}),this.scrollCallback=d(this.scrollCallback,this),this.scrollHandler=d(this.scrollHandler,this),this.start=d(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),this.animationNameCache=new c}return f.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0},f.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():document.addEventListener("DOMContentLoaded",this.start),this.finished=[]},f.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else{for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);window.addEventListener("scroll",this.scrollHandler,!1),window.addEventListener("resize",this.scrollHandler,!1),this.interval=setInterval(this.scrollCallback,50)}return this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],e=0,f=b.length;f>e;e++)d=b[e],g.push(function(){var a,b,e,f;for(e=d.addedNodes||[],f=[],a=0,b=e.length;b>a;a++)c=e[a],f.push(this.doSync(c));return f}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},f.prototype.stop=function(){return this.stopped=!0,window.removeEventListener("scroll",this.scrollHandler,!1),window.removeEventListener("resize",this.scrollHandler,!1),null!=this.interval?clearInterval(this.interval):void 0},f.prototype.sync=function(){return a.notSupported?this.doSync(this.element):void 0},f.prototype.doSync=function(a){var b,c,d,f,g;if(!this.stopped){if(null==a&&(a=this.element),1!==a.nodeType)return;for(a=a.parentNode||a,f=a.querySelectorAll("."+this.config.boxClass),g=[],c=0,d=f.length;d>c;c++)b=f[c],e.call(this.all,b)<0?(this.applyStyle(b,!0),this.boxes.push(b),this.all.push(b),g.push(this.scrolled=!0)):g.push(void 0);return g}},f.prototype.show=function(a){return this.applyStyle(a),a.className=""+a.className+" "+this.config.animateClass},f.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},f.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),f.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.setAttribute("style","visibility: visible;"));return e},f.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},f.prototype.vendors=["moz","webkit"],f.prototype.vendorSet=function(a,b){var c,d,e,f;f=[];for(c in b)d=b[c],a[""+c]=d,f.push(function(){var b,f,g,h;for(g=this.vendors,h=[],b=0,f=g.length;f>b;b++)e=g[b],h.push(a[""+e+c.charAt(0).toUpperCase()+c.substr(1)]=d);return h}.call(this));return f},f.prototype.vendorCSS=function(a,b){var c,d,e,f,g,h;for(d=window.getComputedStyle(a),c=d.getPropertyCSSValue(b),h=this.vendors,f=0,g=h.length;g>f;f++)e=h[f],c=c||d.getPropertyCSSValue("-"+e+"-"+b);return c},f.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=window.getComputedStyle(a).getPropertyValue("animation-name")}return"none"===b?"":b},f.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},f.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},f.prototype.scrollHandler=function(){return this.scrolled=!0},f.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},f.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},f.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=window.pageYOffset,e=f+Math.min(this.element.clientHeight,innerHeight)-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},f.prototype.util=function(){return null!=this._util?this._util:this._util=new b},f.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},f}()}).call(this);(function(){function addFont(){var style=document.createElement('style');style.rel='stylesheet';document.head.appendChild(style);style.textContent=localStorage.sourceSansPro;} try{if(localStorage.sourceSansPro){addFont();}else{var request=new XMLHttpRequest();request.open('GET','/framework/_assets/_fonts/OpenSansRegular.woff',true);request.onload=function(){if(request.status>=200&&request.status<400){localStorage.sourceSansPro=request.responseText;addFont();}} request.send();}}catch(ex){}}());var wow=new WOW({boxClass:'wow',mobile:false,live:true});wow.init();function toggle_menu(){if(window.innerWidth>943){var mobimenu=document.getElementById('mainmenu');if(mobimenu.classList.contains('fadeIn')){}else{}}else{var mobimenu=document.getElementById('mainmenu');if(mobimenu.classList.contains('fadeIn')){window.location.hash="";document.getElementsByClassName('checkbox').checked=false;mobimenu.classList.remove('fadeIn');mobimenu.classList.remove('showblock');mobimenu.classList.add('fadeOut');mobimenu.classList.add('hideblock');document.getElementById('mobimenu_label').style.background='url(images/ico_menu.png) #6eb52c no-repeat center center';document.getElementById('mobimenu_label').style.backgroundSize='65% 65%';document.body.style.overflow='none';document.body.style.position='';document.getElementById('nav').style.pointerEvents='none';document.getElementById('nav').classList.remove("navbg");document.getElementById('header').style.marginBottom='0px';}else{window.location.hash="header";mobimenu.classList.remove('fadeOut');mobimenu.classList.remove('hideblock');mobimenu.classList.add('showblock');mobimenu.classList.add('fadeIn');document.getElementById('mobimenu_label').style.background='url(images/ico_menu.png) #c5d97f no-repeat center center';document.getElementById('mobimenu_label').style.backgroundSize='65% 65%';document.body.style.overflow='hidden';document.body.style.width='100%';document.body.style.height='100%';document.body.style.position='fixed';document.getElementById('nav').style.pointerEvents='initial';document.getElementById('nav').classList.add("navbg");document.getElementById('header').style.marginBottom='15px';}}} function hide_submenu(){var submenu=document.getElementsByClassName('submenu');var myVar=setTimeout(function(){foo()},0);function foo() {var submenu=document.getElementsByClassName('submenu');submenu[0].classList.add('animated');submenu[0].classList.add('fadeOut');submenu[0].style.display='none';} var myVar2=setTimeout(function(){foo2()},1000);function foo2() {submenu[0].classList.remove('animated');submenu[0].classList.remove('fadeOut');submenu[0].style.display='block';}} if(matchMedia){var mq=window.matchMedia("(min-width: 59em)");mq.addListener(WidthChange);WidthChange(mq);} function WidthChange(mq){if(mq.matches){var mobimenu=document.getElementById('mainmenu');if(mobimenu.classList.contains('animated')){mobimenu.classList.remove('fadeOut');mobimenu.classList.remove('animated');}} else{}} function init(){window.addEventListener('scroll',function(e){var distanceY=window.pageYOffset||document.documentElement.scrollTop,shrinkOn=100,header=document.querySelector("header");if(distanceY>shrinkOn){header.classList.add("smaller");}else{if(header.classList.contains("smaller")){header.classList.remove("smaller");}}});} window.onload=init();function UnCryptMailto(s) {var n=0;var r="";for(var i=0;i=8364) {n=128;} r+=String.fromCharCode(n-1);} return r;} function linkTo_UnCryptMailto(s) {location.href=UnCryptMailto(s);}