",{id:o.scrollName,href:"#top"}).appendTo("body"));o.scrollImg||l.html(o.scrollText),l.css({display:"none",position:"fixed",zIndex:o.zIndex}),o.activeOverlay&&e("
",{id:o.scrollName+"-active"}).css({position:"absolute",top:o.scrollDistance+"px",width:"100%",borderTop:"1px dotted"+o.activeOverlay,zIndex:o.zIndex}).appendTo("body"),scrollEvent=e(a).scroll(function(){switch(scrollDis="top"===o.scrollFrom?o.scrollDistance:e(t).height()-e(a).height()-o.scrollDistance,o.animation){case"fade":e(e(a).scrollTop()>scrollDis?l.fadeIn(o.animationInSpeed):l.fadeOut(o.animationOutSpeed));break;case"slide":e(e(a).scrollTop()>scrollDis?l.slideDown(o.animationInSpeed):l.slideUp(o.animationOutSpeed));break;default:e(e(a).scrollTop()>scrollDis?l.show(0):l.hide(0))}}),l.click(function(a){a.preventDefault(),e("html, body").animate({scrollTop:0},o.scrollSpeed,o.easingType)})},e.fn.scrollUp.defaults={scrollName:"scrollUp",scrollDistance:300,scrollFrom:"top",scrollSpeed:300,easingType:"linear",animation:"fade",animationInSpeed:200,animationOutSpeed:200,scrollText:"Scroll to top",scrollTitle:!1,scrollImg:!1,activeOverlay:!1,zIndex:2147483647},e.fn.scrollUp.destroy=function(n){e.removeData(t.body,"scrollUp"),e("#"+e.fn.scrollUp.settings.scrollName).remove(),e("#"+e.fn.scrollUp.settings.scrollName+"-active").remove(),e.fn.jquery.split(".")[1]>=7?e(a).off("scroll",n):e(a).unbind("scroll",n)},e.scrollUp=e.fn.scrollUp}(jQuery,window,document),$(document).ready(function(){$.scrollUp({scrollName:"scrollUp",scrollDistance:700,scrollFrom:"top",scrollSpeed:1e3,easingType:"easeInOutCubic",animation:"fade",animationInSpeed:200,animationOutSpeed:200,scrollText:"",scrollTitle:" ",scrollImg:0,activeOverlay:0,zIndex:1001})}),$(document).ready(function(){$("a.scroll-to").click(function(){if($(window).width()>1024)var e=45;else e=0;if(void 0!==$(this).attr("data-anchor-offset"))var a=$(this).attr("data-anchor-offset");else a=0;return $("html, body").animate({scrollTop:$($(this).attr("href")).offset().top-e-a+"px"},{duration:1e3,easing:"easeInOutCubic"}),!1}),$(".navbar-nav").find(".scroll-to").on("click",function(e){e.stopPropagation(),e.stopImmediatePropagation(),$(".navbar-collapse.show").collapse("hide")})}),$(document).ready(function(){$("body").scrollspy({target:".navbar-collapse",offset:50})}),$(document).ready(function(){window.viewportUnitsBuggyfill.init()}),$(document).ready(function(){$contactForm=$("#contactform"),$contactForm.submit(function(e){e.preventDefault(),$("#contactform .btn-submit").html("Sending message ...");var a,t=$("#form_type_selector").val();"billing"===t?a="":"general"===t?a="":"technical"===t&&(a=""),$.ajax({method:"post",url:a,data:$contactForm.serialize(),success:function(e){$contactForm.delay(1300).slideUp("fast"),$("#response").html("Form submitted successfully").hide().delay(1300).slideDown("fast")},error:function(e){$("#response").html("The form could not be submitted at this time. Please again later").css({color:"red"}).hide().delay(1300).slideDown("fast"),$("#contactform .btn-submit").delay(1300).html("Send Message")}})})});