function initTurboCalculator() {turboCalculator.init({layout: 'standalone',mode: turboCalculator.path.queryVariable('mode') || null,productId: turboCalculator.path.queryVariable('productId') || null,riderHeight: turboCalculator.path.queryVariable('riderHeight') || 0,riderWeight: turboCalculator.path.queryVariable('riderWeight') || 0,stops: turboCalculator.path.queryVariable('stops') || null,terrain: turboCalculator.path.queryVariable('terrain') || null,useImperial: turboCalculator.path.queryVariable('useImperial') || false,velocity: turboCalculator.path.queryVariable('velocity') || 0}, document.getElementById('calculator'));}if (document.readyState != 'loading')initTurboCalculator();else if (document.addEventListener)document.addEventListener('DOMContentLoaded', initTurboCalculator);else document.attachEvent('onreadystatechange', function() {if (document.readyState == 'complete') initTurboCalculator();});