// 04 NWSWTP alternatives — conceptual original graphic, informed by the // owner's October 2026 presentation. No client drawings, costs, or operating data. const sharedAssets={ rio:{name:'Rio Grande',state:'existing',what:'The source of proposed raw surface water.',check:'Confirm seasonal reliability, quality, and intake requirements.'}, intake:{name:'Intake + conveyance',state:'new',what:'Brings surface water to the site.',check:'Verify intake siting, pumping, and conveyance constraints.'}, pretreat:{name:'Pre-sed + ozone',state:'new',what:'Conceptual new pretreatment ahead of the surface-water train.',check:'Determine source-specific solids handling and oxidation requirements by testing.'}, chemicals:{name:'Chemical systems',state:'reuse',what:'Treatment chemical feed, modified or added as required.',check:'Assess chemical feed capacity, separation, and compatibility.'}, finish:{name:'Finished-water system',state:'existing',what:'Interface with finished-water storage and delivery.',check:'Confirm hydraulics, residual protection, and integration.'}, groundwater:{name:'Groundwater wells',state:'existing',what:'Existing groundwater supply to be retained in the planning comparison.',check:'Confirm available groundwater supply and arsenic-control requirements.'}, residuals:{name:'Residuals handling',state:'new',what:'A separate residuals pathway is part of each conceptual alternative.',check:'Characterize waste streams and residual disposal needs.'}, uvshared:{name:'Shared UVWTP',state:'reuse',what:'Existing treatment assets serve surface water and groundwater in validated operating modes.',check:'Check source switching, turndown, filtration, hydraulics, and compatibility.'}, uvrepurposed:{name:'Repurposed UVWTP',state:'reuse',what:'The existing plant becomes the surface-water treatment facility.',check:'Confirm what can be reused and what process upgrades are needed.'}, newarsenic:{name:'New arsenic train',state:'new',what:'Dedicated groundwater arsenic removal, separate from surface-water operations.',check:'Confirm capacity and arsenic treatment performance.'}, newplant:{name:'New NWSWTP',state:'new',what:'Independent surface-water treatment plant, initially sized for at least 10 MGD and expandable to 20 MGD.',check:'Evaluate footprint, new process infrastructure, and expansion phasing.'}, existinggw:{name:'Existing arsenic treatment',state:'existing',what:'Groundwater arsenic treatment remains at the existing facility.',check:'Verify system availability and compatibility with planned integration.'}, newchem:{name:'New chemical systems',state:'new',what:'Independent chemical feed for the new surface-water plant.',check:'Evaluate storage, feed, access, and safety requirements.'} }; const alternatives={ '1a':{name:'ALTERNATIVE 1A',title:'Share the UVWTP',summary:'Use existing plant assets for surface-water and groundwater modes. The challenge is making the shared operation work.', surface:['rio','intake','pretreat','uvshared','chemicals','finish'],ground:['groundwater','uvshared','finish'], tradeTitle:'Reuse more. Coordinate more.',trade:'A shared plant does not mean you can add the full surface-water target to the existing groundwater capacity. Combined capacity depends on proven modes, turndown, and treatment compatibility.', questions:['Can one process train reliably handle both sources?','What groundwater capacity remains in each operating mode?','Can existing filtration, hydraulics, and chemistry accommodate surface water?']}, '1b':{name:'ALTERNATIVE 1B',title:'Repurpose the UVWTP',summary:'Use the existing plant for surface water and provide a separate new groundwater arsenic-removal train.', surface:['rio','intake','pretreat','uvrepurposed','chemicals','finish'],ground:['groundwater','newarsenic','finish'], tradeTitle:'Separate water sources. Reuse the site.',trade:'The surface-water plant reuses the UVWTP, while groundwater arsenic removal moves to a dedicated new train. Validate how much of the old process can really serve the new duty.', questions:['Which UVWTP assets meet the proposed surface-water duty?','What is required for the new groundwater arsenic train?','How do concurrent trains interface with finished-water delivery?']}, '2':{name:'ALTERNATIVE 2',title:'Build an independent plant',summary:'Construct a new surface-water facility while the existing plant continues to treat groundwater.', surface:['rio','intake','pretreat','newplant','newchem','finish'],ground:['groundwater','existinggw','finish'], tradeTitle:'Maximum separation. More new infrastructure.',trade:'Independent surface-water treatment separates the process routes. New plant facilities and chemical systems must be evaluated alongside footprint, capital demands, and future expansion.', questions:['Is there adequate land for the new plant and future expansion?','How do intake, pretreatment, and finished-water connections integrate?','What new infrastructure and residuals handling must be provided?']} }; function initWater(){ let option='1a',capacity=10,activeNode='uvshared'; const lanes=$('#nw-lanes'),questions=$('#nw-questions'); function focus(id){ activeNode=id;const node=sharedAssets[id]; setText('#nw-focus-class',(node.state==='new'?'NEW':'EXISTING / REUSED')+' · PROCESS ELEMENT'); setText('#nw-focus-title',node.name);setText('#nw-focus-copy',node.what);setText('#nw-focus-check',node.check); $$('.nw-node',lanes).forEach(b=>b.setAttribute('aria-pressed',String(b.dataset.unit===id))); } function renderLane(label,ids,kind){ const lane=document.createElement('section');lane.className='nw-lane '+kind; const head=document.createElement('div');head.className='nw-lane-label'; const dot=document.createElement('span');dot.className='nw-lane-dot'; const title=document.createElement('strong');title.textContent=label; const number=document.createElement('small');number.textContent=kind==='surface'?'NEW SOURCE ROUTE':'RETAINED SOURCE ROUTE'; head.append(dot,title,number); const flow=document.createElement('div');flow.className='nw-route'; ids.forEach((id,i)=>{ const unit=sharedAssets[id],b=document.createElement('button');b.type='button';b.className='nw-node '+unit.state; b.dataset.unit=id;b.setAttribute('aria-pressed','false');b.setAttribute('aria-label',unit.name+', '+unit.state+'. Inspect'); const number=document.createElement('span');number.textContent=String(i+1).padStart(2,'0'); const name=document.createElement('strong');name.textContent=unit.name; const state=document.createElement('small');state.textContent=unit.state==='reuse'?'REUSED':unit.state.toUpperCase(); b.append(number,name,state);b.addEventListener('click',()=>focus(id));flow.append(b); });lane.append(head,flow);return lane; } function update(){ const a=alternatives[option]; $$('[data-alt]').forEach(b=>b.setAttribute('aria-pressed',String(b.dataset.alt===option))); $$('[data-cap]').forEach(b=>b.setAttribute('aria-pressed',String(Number(b.dataset.cap)===capacity))); setText('#nw-alt-label',a.name);setText('#nw-alt-title',a.title);setText('#nw-alt-summary',a.summary); setText('#nw-cap-caption',capacity===10?'Initial target · at least 10 MGD':'Long-term expansion objective · up to 20 MGD'); setText('#nw-tradeoff-title',a.tradeTitle);setText('#nw-tradeoff-copy',a.trade); questions.replaceChildren();a.questions.forEach(q=>{const li=document.createElement('li');li.textContent=q;questions.append(li);}); lanes.replaceChildren(renderLane('SURFACE WATER',a.surface,'surface'),renderLane('GROUNDWATER',a.ground,'ground')); const residual=document.createElement('div');residual.className='nw-residual'; const info=document.createElement('span');info.textContent='↘ SIDE STREAM'; const residualButton=document.createElement('button');residualButton.className='nw-node new';residualButton.dataset.unit='residuals';residualButton.type='button';residualButton.textContent='Residuals handling ↗'; residualButton.addEventListener('click',()=>focus('residuals')); residual.append(info,residualButton);lanes.append(residual); focus(a.surface.includes(activeNode)?activeNode:a.surface[3]); } $$('[data-alt]').forEach(b=>b.addEventListener('click',()=>{option=b.dataset.alt;activeNode='';update();})); $$('[data-cap]').forEach(b=>b.addEventListener('click',()=>{capacity=Number(b.dataset.cap);update();})); update(); }