Deprecated: ord(): Passing null to parameter #1 ($character) of type string is deprecated in /home/smith5555/dev.ambientbp.com/min/lib/JSMin.php on line 333

Deprecated: ord(): Passing null to parameter #1 ($character) of type string is deprecated in /home/smith5555/dev.ambientbp.com/min/lib/JSMin.php on line 333

Warning: Cannot modify header information - headers already sent by (output started at /home/smith5555/dev.ambientbp.com/min/lib/JSMin.php:333) in /home/smith5555/dev.ambientbp.com/min/lib/Minify.php on line 348

Warning: Cannot modify header information - headers already sent by (output started at /home/smith5555/dev.ambientbp.com/min/lib/JSMin.php:333) in /home/smith5555/dev.ambientbp.com/min/lib/Minify.php on line 348

Warning: Cannot modify header information - headers already sent by (output started at /home/smith5555/dev.ambientbp.com/min/lib/JSMin.php:333) in /home/smith5555/dev.ambientbp.com/min/lib/Minify.php on line 348

Warning: Cannot modify header information - headers already sent by (output started at /home/smith5555/dev.ambientbp.com/min/lib/JSMin.php:333) in /home/smith5555/dev.ambientbp.com/min/lib/Minify.php on line 348

Warning: Cannot modify header information - headers already sent by (output started at /home/smith5555/dev.ambientbp.com/min/lib/JSMin.php:333) in /home/smith5555/dev.ambientbp.com/min/lib/Minify.php on line 348

Warning: Cannot modify header information - headers already sent by (output started at /home/smith5555/dev.ambientbp.com/min/lib/JSMin.php:333) in /home/smith5555/dev.ambientbp.com/min/lib/Minify.php on line 348

Warning: Cannot modify header information - headers already sent by (output started at /home/smith5555/dev.ambientbp.com/min/lib/JSMin.php:333) in /home/smith5555/dev.ambientbp.com/min/lib/Minify.php on line 348
jQuery(document).ready(function($){'use strict';$.fn.isInViewport=function(){if(!this.length)return false;var $el=this.eq(0);var elementTop=$el.offset().top;var elementBottom=elementTop+$el.outerHeight();var viewportTop=$(window).scrollTop();var viewportBottom=viewportTop+$(window).height();return elementBottom>viewportTop&&elementToplimit){src.value=src.value.substr(0,limit);chars=limit;} elem.html(limit-chars);} setCount($(this)[0],elem);}});var elem=$("#message-max-length");$("#message").limiter(500,elem);$('#reason_for_contact').on('change',function(){var selected=$(this).val();var msg='';if(selected==='I have questions about your products'){msg='Did you know we have an extensive FAQs page on our website? Simply scroll to the top right website navigation menu and click "Learn → FAQs & Learning Center"';} $('#message').attr('placeholder',msg);});$("#contact-us-form").validate({rules:{first_name:{required:true},last_name:{required:true},email:{required:true,validate_email:true},reason_for_contact:{required:true},message:{required:true}},messages:{first_name:{required:"Please enter first name"},last_name:{required:"Please enter last name"},email:{required:"That email doesn't look right"},reason_for_contact:{required:"Please select an option"},message:{required:"Please enter message"}},errorClass:'form-error',errorElement:'span',errorPlacement:function(error,element){error.appendTo(element.closest('.form-group'));},highlight:function(element,errorClass,validClass){$(element).closest('.form-group').addClass(errorClass);},unhighlight:function(element,errorClass,validClass){$(element).closest('.form-group').removeClass(errorClass);},submitHandler:function(form,event){event.preventDefault();$('.site-loader').fadeIn('fast');function doSubmit(token){$('#g-recaptcha-response').val(token||'');$.ajax({url:'ajax/contact-us.php',type:'POST',data:$("#contact-us-form").serialize(),dataType:'json',success:function(response){$('#contact-us-error-message').hide();$('#contact-us-success-message').hide();if(response.error){$('#contact-us-error-message span').text(response.message);$('#contact-us-error-message').show();}else{$('#contact-us-success-message').show();var validator=$("#contact-us-form").validate();validator.resetForm();$("#contact-us-form")[0].reset();} $('.site-loader').fadeOut('fast');},error:function(){$('#contact-us-error-message span').text("Something went wrong. Please try again.");$('#contact-us-error-message').show();$('.site-loader').fadeOut('fast');}});} if(captcha_provider==='2'){doSubmit('');}else{if(typeof grecaptcha==='undefined'){return;} grecaptcha.enterprise.ready(async()=>{try{const token=await grecaptcha.enterprise.execute(recaptcha_site_key,{action:'contact'});doSubmit(token);}catch(error){$('.site-loader').fadeOut('fast');$('#contact-us-error-message span').text("Captcha verification failed.");$('#contact-us-error-message').show();}});}}});$('.send-message-link').click(function(){$('html,body').animate({scrollTop:$("#contact-us-form-section").offset().top-25},'500');});var mapLoaded=false;window.initialize=function(){var mapOptions={center:new google.maps.LatLng(39.148339959283206,-76.79183114505712),zoom:9,scrollwheel:false,disableDoubleClickZoom:true,mapTypeId:google.maps.MapTypeId.ROADMAP};var map=new google.maps.Map(document.getElementById('map'),mapOptions);var infowindow=new google.maps.InfoWindow({content:'

Ambient
'+site_address_street+'
'+site_address_city+', '+site_address_state+' '+site_address_zip+', USA

View larger map
'});var image={url:(window.innerWidth>767)?'images/contact-us/map-marker-icon.png':'images/contact-us/map-marker-icon-small.png'};var marker=new google.maps.Marker({map:map,draggable:false,animation:google.maps.Animation.DROP,position:mapOptions.center,icon:image});google.maps.event.addListener(marker,'click',function(){infowindow.open(map,marker);});infowindow.open(map,marker);};function load_map(){if(mapLoaded)return;mapLoaded=true;var s=document.createElement('script');s.src='https://maps.googleapis.com/maps/api/js?key='+google_api_key+'&callback=initialize';s.async=true;s.defer=true;document.body.appendChild(s);} $(window).on('resize scroll',function(){if(!mapLoaded&&$('#map-section').isInViewport()){load_map();}});});