function scrollToSearch(){var duration=400,destination=0,body=document.documentElement.scrollTop!==0?document.documentElement:document.body,start=body.scrollTop,startTime=Date.now();function scroll(){var now=Date.now(),time=Math.min(1,((now-startTime)/duration));body.scrollTop=(time*(destination-start))+start;if(body.scrollTop===destination){return;}
requestAnimationFrame(scroll);}
scroll();document.querySelector('#domain-search input').focus();}
window.onscroll=function(){var images=document.getElementsByClassName('tortuga-landing-overlay-image');for(var i=0;i<images.length;i++){var element=images[i],rect=element.getBoundingClientRect();if(element.className.indexOf('in-view')===-1&&rect.bottom>0&&rect.right>0&&rect.left<(window.innerWidth||document.documentElement.clientWidth)&&rect.top<(window.innerHeight||document.documentElement.clientHeight)){element.className+=" in-view";}}};