document.addEventListener('DOMContentLoaded',function(){if('onwheel'in document){window.onwheel=function(event){if(typeof(this.RDSmoothScroll)!==undefined){try{window.removeEventListener('DOMMouseScroll',this.RDSmoothScroll.prototype.onWheel);}catch(error){}
event.stopPropagation();}};}else if('onmousewheel'in document){window.onmousewheel=function(event){if(typeof(this.RDSmoothScroll)!==undefined){try{window.removeEventListener('onmousewheel',this.RDSmoothScroll.prototype.onWheel);}catch(error){}
event.stopPropagation();}};}
try{$('body').unmousewheel();}catch(error){}});function include(url){document.write('');return false;}
var currentYear=(new Date).getFullYear();$(document).ready(function(){$("#copyright-year").text((new Date).getFullYear());});include('device.min.js');include('tmstickup.js');$(window).load(function(){if($('html').hasClass('desktop')){$('#stuck_container').TMStickUp({})}});include('superfish.js');include('jquery.mousewheel.min.js');include('jquery.simplr.smoothscroll.min.js');$(function(){if($('html').hasClass('desktop')){$.srSmoothscroll({step:150,speed:800});}});include('stellar/jquery.stellar.js');$(document).ready(function(){if($('html').hasClass('desktop')){$.stellar({horizontalScrolling:false,verticalOffset:0});}});include('jquery.ui.totop.js');$(function(){$().UItoTop({easingType:'easeOutQuart'});});jQuery(function(){jQuery('.sf-menu').mobileMenu();})
$(function(){var viewportmeta=document.querySelector&&document.querySelector('meta[name="viewport"]'),ua=navigator.userAgent,gestureStart=function(){viewportmeta.content="width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0";},scaleFix=function(){if(viewportmeta&&/iPhone|iPad/.test(ua)&&!/Opera Mini/.test(ua)){viewportmeta.content="width=device-width, minimum-scale=1.0, maximum-scale=1.0";document.addEventListener("gesturestart",gestureStart,false);}};scaleFix();if(window.orientation!=undefined){var regM=/ipod|ipad|iphone/gi,result=ua.match(regM)
if(!result){$('.sf-menu li').each(function(){if($(">ul",this)[0]){$(">a",this).toggle(function(){return false;},function(){window.location.href=$(this).attr("href");});}})}}});var ua=navigator.userAgent.toLocaleLowerCase(),regV=/ipod|ipad|iphone/gi,result=ua.match(regV),userScale="";if(!result){userScale=",user-scalable=0"}
document.write('')
$(window).load(function(){var obj;if((obj=$('.js-search')).length>0){$(obj).find('.toggle').click(function(){if($('.js-search').hasClass('active')){$('.js-search').removeClass('active');}else{$('.js-search').addClass('active');}});}});