' +
link(homePrefix + '#top', 'Home') +
link(homePrefix + '#about', 'About') +
link(homePrefix + '#services', 'Services') +
link(homePrefix + '#reviews', 'Reviews') +
link('/verify-my-agent', 'Verify My Agent', {matchPath: '/verify-my-agent'}) +
link('/scope-of-appointment', 'Scope of Appointment', {matchPath: '/scope-of-appointment'}) +
'
' +
'
Educational Tools ' +
'
' +
link('/medicare-deadlines', 'Free Medicare Deadline Calculator', {matchPath: '/medicare-deadlines'}) +
link('/medicare-cost-check', 'Shop or Stay? — Medicare vs. Your Employer Plan', {matchPath: '/medicare-cost-check'}) +
link('/new-to-medicare', 'New to Medicare — What to Expect', {matchPath: '/new-to-medicare'}) +
link('/medicare-advantage-vs-supplement', 'Medicare Advantage vs. Medicare Supplement', {matchPath: '/medicare-advantage-vs-supplement'}) +
link('/medicare-plans', 'Compare Real Medicare Plans (CMS data)', {matchPath: '/medicare-plans'}) +
link('/medicare-irmaa-calculator', 'IRMAA Calculator — Will You Pay More?', {matchPath: '/medicare-irmaa-calculator'}) +
link('/medicare-penalty-calculator', 'Late Enrollment Penalty Calculator', {matchPath: '/medicare-penalty-calculator'}) +
'
' +
'
' +
'
' +
'
Shop Plans ' +
'
' +
link('https://www.sunfirematrix.com/app/consumer/medicareadvocates/5457367/#/', 'Medicare Plans — Sunfire', {target: true}) +
link('/medicare-quote', "Request a Medicare Quote (I'll do the searching)", {matchPath: '/medicare-quote'}) +
link('https://www.healthsherpa.com/?_agent_id=trevor-snell', 'Individual & Family — HealthSherpa', {target: true}) +
link('/group-census', 'Small Group', {matchPath: '/group-census'}) +
link('https://lifelink.simplicitygroup.com/agent/snell-12638?product=mpt', 'Life & Annuities — Simplicity', {target: true}) +
link('https://shop.uhone.com/en/quote/census?brokerid=AA4503002', 'UH One — Dental, Vision & Hearing', {target: true}) +
link('https://shop.uhone.com/en/quote/census?brokerid=AA4503002', 'UH One — Short-Term Hospital & Cancer', {target: true}) +
link('https://brokers.insuranceforeveryone.com/?share=true&Portal=5457367-001', 'Standalone Dental', {target: true}) +
'
' +
link(homePrefix + '#quote', 'Not sure? Request a quote instead') +
'
' +
'
' +
link('https://api.leadconnectorhq.com/widget/group/vs45eoWqBuxhCTw2OYUB', 'Schedule a Consultation', {target: true, extraClass: 'cta-outline'}) +
link(homePrefix + '#quote', 'Get a Quote', {extraClass: 'cta'}) +
'
';
var mount = document.getElementById('site-nav-mount');
if (!mount){
console.warn('nav.js: #site-nav-mount not found on this page — nav not injected.');
return;
}
var navEl = document.createElement('nav');
navEl.className = 'nav';
navEl.innerHTML = navHtml;
mount.replaceWith(navEl);
// Mobile menu toggle
var navToggle = document.getElementById('navToggle');
var navLinks = document.getElementById('navLinks');
if (navToggle && navLinks){
navToggle.addEventListener('click', function(){
var isOpen = navLinks.classList.toggle('open');
navToggle.classList.toggle('open', isOpen);
navToggle.setAttribute('aria-expanded', isOpen ? 'true' : 'false');
});
navLinks.querySelectorAll('a').forEach(function(a){
a.addEventListener('click', function(){
navLinks.classList.remove('open');
navToggle.classList.remove('open');
navToggle.setAttribute('aria-expanded', 'false');
});
});
}
// Nav starts transparent over the hero photo (home page), switches to solid
// white once the visitor scrolls, so it stays readable over white sections.
function updateNavState(){
if (window.scrollY > 60) navEl.classList.add('scrolled');
else navEl.classList.remove('scrolled');
}
updateNavState();
window.addEventListener('scroll', updateNavState, { passive: true });
})();