$( document ).ready(function() { f_intersectCheck('#headerIntersect'); f_intersectCheck('#footerIntersect'); f_intersectCheck('#about'); f_intersectCheckAddClass('#zfloor-plans'); f_intersectCheckAddClass('#zneighborhood'); var headerLink = 'href="https://www.on-site.com/apply/property/145425" target="_self"'; if (headerLink != "" && headerLink != null) { $('#headerScrollLink').hide(); $('#headerExtLink').show(); } });