PageSourceSearch

https://www.hondaws.com/shopping/cart

html hondaws.com collected 2026-10-01 15:38:37 UTC 181,312 bytes, 4,544 lines download raw bytes

1<!DOCTYPE html>
2<html lang="en">
3    <head>
4                <title>Honda, Sea-Doo and Can-Am of Winston-Salem</title>
5                
6
7            
8            
9
10<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
11<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
12<!-- Safe shims for GA/gtag to prevent ReferenceError if analytics is not loaded -->
13<script>
14(function(w){
15  w.dataLayer = w.dataLayer || [];
16  if (typeof w.gtag !== 'function') { w.gtag = function(){ w.dataLayer.push(arguments); }; }
17  if (typeof w.ga !== 'function') { w.ga = function(){ (w.ga.q = w.ga.q || []).push(arguments); }; w.ga.l = +new Date; }
18})(window);
19</script>
19
20<link rel="canonical" href="https://www.hondaws.com/shopping/cart">
21
22<link rel="icon" href="/theme/img/favicon/favicon.ico?v=2" />
23<link rel="apple-touch-icon" sizes="57x57" href="/theme/img/favicon/apple-icon-57x57.png">
24<link rel="apple-touch-icon" sizes="60x60" href="/theme/img/favicon/apple-icon-60x60.png">
25<link rel="apple-touch-icon" sizes="72x72" href="/theme/img/favicon/apple-icon-72x72.png">
26<link rel="apple-touch-icon" sizes="76x76" href="/theme/img/favicon/apple-icon-76x76.png">
27<link rel="apple-touch-icon" sizes="114x114" href="/theme/img/favicon/apple-icon-114x114.png">
28<link rel="apple-touch-icon" sizes="120x120" href="/theme/img/favicon/apple-icon-120x120.png">
29<link rel="apple-touch-icon" sizes="144x144" href="/theme/img/favicon/apple-icon-144x144.png">
30<link rel="apple-touch-icon" sizes="152x152" href="/theme/img/favicon/apple-icon-152x152.png">
31<link rel="apple-touch-icon" sizes="180x180" href="/theme/img/favicon/apple-icon-180x180.png">
32<link rel="icon" type="image/png" sizes="192x192"  href="/theme/img/favicon/android-icon-192x192.png">
33<link rel="icon" type="image/png" sizes="32x32" href="/theme/img/favicon/favicon-32x32.png">
34<link rel="icon" type="image/png" sizes="96x96" href="/theme/img/favicon/favicon-96x96.png">
35<link rel="icon" type="image/png" sizes="16x16" href="/theme/img/favicon/favicon-16x16.png">
36<!-- <link rel="manifest" href="/theme/img/favicon/manifest.json"> -->
37<meta name="msapplication-TileColor" content="#ffffff">
38<meta name="msapplication-TileImage" content="/theme/img/favicon/ms-icon-144x144.png">
39<meta name="theme-color" content="#ffffff">
40            <link rel="stylesheet" href="https://www.hondaws.com/assets/css/custom_widget_style.css" />
41    
42<script>
43// Safe guards to avoid ReferenceError in templates that assume these exist
44try { if (typeof window.muoptions === 'undefined') { window.muoptions = {}; } } catch(e){}
45try { if (typeof window.mumobileoptions === 'undefined') { window.mumobileoptions = {}; } } catch(e){}
46try { if (typeof window.mumainoptions === 'undefined') { window.mumainoptions = {}; } } catch(e){}
47</script>
47
48
49<meta name="description" content="www.hondaws.com">
50<meta name="keywords" content="Dirt Bike, UTV, Street Bike, ATV">
51<meta property="og:image" content=""/>
52<meta property="og:site_name" content="Honda, Sea-Doo and Can-Am of Winston-Salem"/>
53<meta property="og:url" content="https://www.hondaws.com/shopping/cart" />
54<meta name="geo.region" content="US-NC" />
55<meta name="geo.placename" content="Clemmons" />
56
57<script> var marketing_switch = '1';</script>
57
58<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,500,600,700,900,800,300" />
59
60    
61    
62        
63    
64
65    
66    
66<script src="https://www.hondaws.com/assets/scriptlibrary.js?v=3"></script>
66
67    <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
68    
68<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
68
69    
69<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
69
70        
70<script>window.WEBSITE_HOSTNAME = "www.hondaws.com";</script>
70
71    
72    
72<script>
73    // $(function() {
74    //   $("#datepicker_customForm").datepicker({
75    //     dateFormat: "mm/dd/yy"
76    //   });
77    // });
78
79    $(function() {
80        $(".datepicker_customForm").datepicker({
81            dateFormat: "mm\/dd\/yy"        });
82    });
83
84    function maskPhone(input) {
85
86        let value = input.value.trim();
87        // Remove any non-digit and non-plus sign characters after the first plus sign
88        if (value.match(/^\+?\d*/)) {
89            let firstPart = value.match(/^\+?\d*/)[0];
90            let secondPart = value.slice(firstPart.length).replace(/[^0-9]/g, ''); // Remove non-digit characters
91
92            input.value = firstPart + secondPart;
93            // Ensure the total length is at most 12 characters
94            if (input.value.length > 13) {
95                input.value = input.value.slice(0, 13);
96            }
97        } else {
98            // If the input doesn't match the format, reset it to an empty string
99            input.value = '';
100        }
101    }
102  </script>
102
103
104<!-- 
104<script src="https://www.hondaws.com/push.js?t=1790869117"></script>
104 
105<script src="https://www.hondaws.com/main.js?t=1790869117"></script>
105 -->
106
107        
107<script> var marketing_switch = 'true';</script>
107        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Oswald:400,500">
108        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bungee+Inline">
109        <!-- CSS LINKS here-->
110                <link rel="stylesheet" href="https://www.hondaws.com/assets/css/nav.css" type="text/css" />
111                <link rel="stylesheet" href="https://www.hondaws.com/assets/css/style.css" type="text/css" />
112                	
113            <link rel="stylesheet" href="https://www.hondaws.com/qatesting/benz_assets//css/responsive.css" type="text/css" />
114                <link rel="stylesheet" href="https://www.hondaws.com/assets/css/benz.css" type="text/css" />
115        <link rel="stylesheet" href="https://www.hondaws.com/assets/css/account_nav.css" type="text/css" />
116        <link rel="stylesheet" href="https://www.hondaws.com/assets/css/jquery.bxslider.css" type="text/css" />
117        <link rel="stylesheet" href="https://www.hondaws.com/assets/css/magnific-popup.css" type="text/css">
118        <link rel="stylesheet" href="https://www.hondaws.com/assets/css/jquery.selectbox.css" type="text/css">
119        <link rel="stylesheet" href="https://www.hondaws.com/assets/css/expand.css" type="text/css">
120        <link rel="stylesheet" href="https://www.hondaws.com/assets/css/modal.css" type="text/css">
121                    <link rel="stylesheet" href="https://www.hondaws.com/assets/font-awesome-4.1.0/css/font-awesome.min.css">
122                        <link rel="stylesheet" href="https://www.hondaws.com/qatesting/benz_assets/css/style.css" />
123        <link rel="stylesheet" href="https://www.hondaws.com/qatesting/benz_assets/css/bootstrap.min.css" />
124                            <link rel="stylesheet" href="https://www.hondaws.com/qatesting/benz_assets/css/font-awesome.css" />
125                <link rel="stylesheet" href="/qatesting/benz_assets/css/jquery.fancybox.css" />
126
127                    <!--  Common css for global widgets  h-3-->
128            <link rel="stylesheet" href="/assets/new_design/plugins/OwlCarousel/v_2-2.3.4/dist/assets/owl.carousel.min.css">
129            <link rel="stylesheet" href="/assets/new_design/plugins/OwlCarousel/v_2-2.3.4/dist/assets/owl.theme.default.min.css">
130            <link rel="stylesheet" href="/assets/new_design/plugins/animate/4.1.1/animate.min.css"/>
131            <!-- <link rel="stylesheet" href="https://www.hondaws.com/assets/css/custom_widget_style.css" /> -->
132                <!-- END CSS LINKS -->
133        
133<script>
134        $(document).ready(function() {
135            $("li").click(function(){
136                // console.log("clicked li master v");
137                $(this).toggleClass("active");
138                $(this).next(".tlg").stop('true','true').slideToggle("slow");
139            });
140        });
141        </script>
141
142        
142<script src="https://www.hondaws.com/qatesting/benz_assets/js/bootstrap.min.js"></script>
142
143        
143<script src="https://www.hondaws.com/qatesting/benz_assets/js/owl.carousel.js"></script>
143
144                
144<script src="/assets/new_design/plugins/OwlCarousel/v_2-2.3.4/dist/owl.carousel.min.js"></script>
144
145                <!-- jQuery library -->
146        
146<script>
147        $(document).ready(function(){
148            $(".sidebar-menu span").click(function(){
149                $(".mb-drpdwn").toggle('slow');
150            });
151        });
152        </script>
152
153        
153<script>
154        $(document).ready(function() {
155            $(".fiter-menu").click(function(){
156                $(this).toggleClass("active");
157                $(this).next(".section-fiter").stop('true','true').slideToggle("slow");
158            });
159        });
160        </script>
160
161
162
163        
163<script>
164            var environment = 'production';
165            var base_url = 'https://www.hondaws.com/';
166            var s_base_url = 'https://www.hondaws.com/';
167            shopping_cart_count = 0;
168        </script>
168
169
170        <!-- bxSlider Javascript file -->
171        
171<script src="https://www.hondaws.com/assets/js/jquery.bxslider.min.js"></script>
171
172
173        <!-- NAVIGATION JS -->
174        
174<script>
175            $( document ).ready( function( $ ) {
176                $('body').addClass('js');
177                $('.menu-link').click(function(e) {
178                    e.preventDefault();
179                    $('.menu-link').toggleClass('active');
180                    $('#menu').toggleClass('active');
181                });
182                $('.has-submenu > a').click(function(e) {
183                    e.preventDefault();
184                    $(this).toggleClass('active').next('ul').toggleClass('active');
185                });
186            });
187        </script>
187
188        <!-- END NAVIGATION JS -->
189
190
191        <!-- ACCOUNT NAVIGATION JS -->
192        
192<script>
193            $( document ).ready( function( $ ) {
194                $('body').addClass('js');
195                $('.acct_menu-link').click(function(e) {
196                    e.preventDefault();
197                    $('.acct_menu-link').toggleClass('active');
198                    $('#acct_menu').toggleClass('active');
199                });
200
201                $('.has-submenu > a').click(function(e) {
202                    e.preventDefault();
203                    $(this).toggleClass('active').next('ul').toggleClass('active');
204                });
205            });
206        </script>
206
207        <!-- END ACCOUNT NAVIGATION JS -->
208
209        <!-- SELECT BOX JS -->
210        
210<script type="text/javascript" src="https://www.hondaws.com/assets/js/jquery.selectbox-0.2.js"></script>
210
211        <!-- END SELECT BOX JS -->
212
213        <!-- ACCORDI0N JS -->
214        
214<script type="text/javascript">
215            $(document).ready(function()
216            {
217                $(".toggle_container").hide();
218                $("h4.expand_heading").show(function()
219                {
220                    $(this).addClass("active");
221                },
222                function ()
223                {
224                    $(this).removeClass("active");
225                }
226            );
227                $("h4.expand_heading").click(function(){
228                    $(this).next(".toggle_container").slideToggle("fast");
229                });
230                $(".expand_all").toggle(function(){
231                    $(this).addClass("expanded");
232                }, function () {
233                    $(this).removeClass("expanded");
234                });
235                $(".expand_all").click(function(){
236                    $(".toggle_container").slideToggle("fast");
237                });
238
239            });
240        </script>
240
241
242        
242<script src="/qatesting/benz_assets/js/jquery.fancybox.pack.js" ></script>
242
243		
244
245        
245<script src="/assets/autocomplete/jquery.easy-autocomplete.min.js"></script>
245<link rel="stylesheet" href="/assets/autocomplete/easy-autocomplete.min.css">
246<script src="/assets/autocomplete/jquery.easy-autocomplete.min.js"></script>
246<link rel="stylesheet" href="/assets/autocomplete/easy-autocomplete.min.css">        <link rel="stylesheet" href="https://www.hondaws.com/basebranding.css" />
247        <link rel="stylesheet" href="https://www.hondaws.com/custom.css" />
248                    <!-- master_v -->
249            <!-- <link rel="stylesheet" href="" /> -->
250            <link rel="stylesheet" href="https://www.hondaws.com/flexible_templates_style.css?v=1790869115" />
251                                
252    </head>
253
254        <body class="body master_v page_id_    cart_page    Shopping    "
255        style="width:100%;margin:0 auto;"    data-page-id="">
256    
256<script>
257(function redirectStockQr() {
258  try {
259    // Only QR landings (default.asp / home) — not financing or other pages that use ?stock=
260    var path = (window.location.pathname || '').replace(/\/+$/, '').toLowerCase();
261    if (path && path !== '/default.asp' && path !== '/') return;
262
263    var stock = '';
264    var search = window.location.search || '';
265    var match = search.match(/[?&]stock=([^&]*)/i);
266    if (match && match[1]) {
267      stock = decodeURIComponent(match[1].replace(/\+/g, ' ')).trim();
268    }
269    if (!stock) return;
270    var destPath = '/majorunit/Stock/' + encodeURIComponent(stock);
271    var current = (window.location.pathname || '').replace(/\/+$/, '');
272    if (current.toLowerCase() === destPath.toLowerCase()) return;
273    console.log('HondaWS - stock QR redirect', stock, destPath);
274    window.location.replace(destPath);
275  } catch (e) {
276    console.warn('HondaWS - stock QR redirect error', e);
277  }
278})();
279
280(function moveAccountToFooter() {
281  function run() {
282    try {
283      if (document.querySelector('.footer_account_links')) return;
284
285      var footerBar = document.querySelector('.footer_bottom_bar');
286      var footerInner =
287        (footerBar && footerBar.querySelector('.container_b')) ||
288        footerBar ||
289        document.querySelector('.footer_section');
290      if (!footerInner) return;
291
292      var auth = document.querySelector('.top_header .auth_dropdown, .auth_dropdown');
293      var mbl = document.querySelector('.mblacnt-log');
294      if (!auth && !mbl) return;
295
296      var wrap = document.createElement('div');
297      wrap.className = 'footer_account_links';
298
299      if (auth) {
300        var btnGroup = auth.querySelector('.btn-group');
301        if (btnGroup) {
302          btnGroup.className = btnGroup.className
303            .replace(/\bhidden-xs\b/g, '')
304            .replace(/\bhidden-sm\b/g, '')
305            .replace(/\bhidden-md\b/g, '')
306            .replace(/\s+/g, ' ')
307            .trim();
308          if ((' ' + btnGroup.className + ' ').indexOf(' dropup ') === -1) {
309            btnGroup.className += ' dropup';
310          }
311        }
312        wrap.appendChild(auth);
313      }
314
315      if (mbl) {
316        // Prefer the desktop dropdown in the footer; drop the header mobile duplicate
317        if (auth) {
318          mbl.parentNode && mbl.parentNode.removeChild(mbl);
319        } else {
320          wrap.appendChild(mbl);
321        }
322      }
323
324      if (footerBar && footerBar.firstChild) {
325        footerBar.insertBefore(wrap, footerBar.firstChild);
326      } else {
327        footerInner.appendChild(wrap);
328      }
329      console.log('HondaWS - moved login/account to footer');
330    } catch (e) {
331      console.warn('HondaWS - move account to footer failed', e);
332    }
333  }
334
335  if (document.readyState === 'loading') {
336    document.addEventListener('DOMContentLoaded', run);
337  } else {
338    run();
339  }
340})();
341
342(function fillFinancingVehicleFromVdp() {
343  var STORAGE_KEY = 'hondaws_vehicle';
344  var STOCK_RE = /^[A-Za-z0-9._-]{3,}$/;
345  var FIELD_MAP = {
346    stock: 'field_id_406',
347    condition: 'field_id_231',
348    year: 'field_id_410',
349    make: 'field_id_411',
350    model: 'field_id_412'
351  };
352
353  function runWhenDomReady(fn) {
354    if (document.readyState === 'loading') {
355      document.addEventListener('DOMContentLoaded', fn);
356    } else {
357      fn();
358    }
359  }
360
361  function trim(v) {
362    return String(v || '').replace(/\s+/g, ' ').trim();
363  }
364
365  function isListPage() {
366    var path = (window.location.pathname || '').toLowerCase();
367    if (path.indexOf('major_unit_list') !== -1) return true;
368    try {
369      return document.querySelectorAll('input[name="stock_number"]').length > 1;
370    } catch (e) {
371      return false;
372    }
373  }
374
375  function stockFromPath(pathname) {
376    try {
377      var path = String(pathname || '').replace(/\/+$/, '');
378      var last = path.split('/').pop() || '';
379      // Ignore list/index path segments that look like stock ids
380      if (/list|inventory|search|filter|category/i.test(last)) return '';
381      return STOCK_RE.test(last) ? last : '';
382    } catch (e) {
383      return '';
384    }
385  }
386
387  function dtalValue(labelRe) {
388    try {
389      var items = document.querySelectorAll('.dtal-txt');
390      for (var i = 0; i < items.length; i++) {
391        var labelEl = items[i].querySelector('label');
392        var label = labelEl ? trim(labelEl.textContent) : '';
393        if (!labelRe.test(label)) continue;
394        var span = items[i].querySelector('span');
395        return span ? trim(span.textContent) : '';
396      }
397    } catch (e) {
398      /* ignore */
399    }
400    return '';
401  }
402
403  function readVehicleOnPage() {
404    var info = {
405      stock: '',
406      year: '',
407      make: '',
408      model: '',
409      condition: ''
410    };
411    // List pages have many units — never treat the first card as "the" vehicle
412    if (isListPage()) return info;
413
414    try {
415      info.year = dtalValue(/^year\s*:/i);
416      info.make = dtalValue(/^make\s*:/i);
417      info.model = dtalValue(/^model\s*:/i);
418      info.condition = dtalValue(/^Condition\s*:/i);
419      info.stock = dtalValue(/^Stock\s*(?:Code|#)?\s*:/i);
420
421      if (!info.stock) {
422        var ds = document.querySelector('.liUnit.LiInvstock-number .spnUnitValue');
423        if (ds && trim(ds.textContent)) info.stock = trim(ds.textContent);
424      }
425      if (!info.stock) {
426        var stockInputs = document.querySelectorAll(
427          'input[name="stock_number"][value]:not([value=""])'
428        );
429        // Only trust a single stock_number input (detail page)
430        if (stockInputs.length === 1 && stockInputs[0].value) {
431          info.stock = trim(stockInputs[0].value);
432        }
433      }
434
435      var path = (window.location.pathname || '').replace(/\/+$/, '');
436      if (
437        !info.stock &&
438        /For_Sale|majorunit|dirtbike|atv|motorcycle|side.?by.?side|watercraft|pontoon|pre-?owned/i.test(
439          path
440        )
441      ) {
442        info.stock = stockFromPath(path);
443      }
444
445      // Fallback parse from slug: Pre-Owned_2026_DENAGO_POWERSPORTS_MX1_Dirt_Bike_For_Sale_...
446      if ((!info.year || !info.make || !info.model) && /For_Sale/i.test(path)) {
447        var slug = (path.split('/').slice(-2, -1)[0] || '').replace(/_/g, ' ');
448        var m = slug.match(
449          /^(New|Pre-Owned)\s+(\d{4})\s+(.+?)\s+For Sale\b/i
450        );
451        if (m) {
452          if (!info.condition) info.condition = /pre/i.test(m[1]) ? 'Pre-Owned' : 'New';
453          if (!info.year) info.year = m[2];
454          if (!info.make || !info.model) {
455            var rest = trim(m[3]);
456            rest = rest.replace(
457              /\s+(Dirt Bike|ATV|Motorcycle|Side by Side|Watercraft|Pontoon|Three Wheel|UTV|SXS|Scooter|Generator).*$/i,
458              ''
459            );
460            if (!info.make && !info.model) {
461              var parts = rest.split(/\s+/);
462              if (parts.length >= 2) {
463                info.make = parts.slice(0, Math.min(2, parts.length - 1)).join(' ');
464                info.model = parts.slice(Math.min(2, parts.length - 1)).join(' ');
465              } else if (parts.length === 1) {
466                info.make = parts[0];
467              }
468            }
469          }
470        }
471      }
472
473      if (info.stock && !STOCK_RE.test(info.stock)) info.stock = '';
474      if (info.year && !/^\d{4}$/.test(info.year)) info.year = '';
475      if (info.condition) {
476        if (/pre/i.test(info.condition)) info.condition = 'Pre-Owned';
477        else if (/new/i.test(info.condition)) info.condition = 'New';
478        else info.condition = '';
479      }
480    } catch (e) {
481      console.warn('HondaWS - Error reading vehicle details:', e);
482    }
483    return info;
484  }
485
486  function stockFromCard(card) {
487    if (!card) return '';
488    try {
489      var input = card.querySelector(
490        'input[name="stock_number"][value]:not([value=""])'
491      );
492      if (input && input.value) return trim(input.value);
493      var filter = card.querySelector('.stock_filter span');
494      if (filter && trim(filter.textContent)) return trim(filter.textContent);
495      var text = card.innerText || '';
496      var m = text.match(/stock\s*:\s*([A-Za-z0-9._-]+)/i);
497      if (m && m[1]) return trim(m[1]);
498    } catch (e) {
499      /* ignore */
500    }
501    return '';
502  }
503
504  function findListCard(el) {
505    if (!el) return null;
506    return (
507      el.closest('.mid-r.md-flex') ||
508      el.closest('.mid-r') ||
509      el.closest('.product_repeat') ||
510      el.closest('[class*="product"]') ||
511      el.parentElement
512    );
513  }
514
515  // Parse /majorunit/New_2026_CAN-AM_Spyder_F3_LIMITED_For_Sale_Clemmons_NC/000H9TB00
516  function parseMajorUnitUrl(href) {
517    try {
518      if (!href) return null;
519      var u = new URL(href, window.location.origin);
520      var parts = u.pathname.replace(/\/+$/, '').split('/').filter(Boolean);
521      if (parts.length < 2) return null;
522      var stock = parts[parts.length - 1];
523      var slug = parts[parts.length - 2] || '';
524      if (!STOCK_RE.test(stock)) return null;
525      if (!/For_Sale/i.test(slug)) return null;
526
527      var m = slug.match(
528        /^(New|Pre-Owned|Used|PreOwned)_(\d{4})_(.+)_For_Sale(?:_.*)?$/i
529      );
530      if (!m) return { stock: stock };
531
532      var condition = /pre/i.test(m[1]) ? 'Pre-Owned' : 'New';
533      var year = m[2];
534      var restTokens = m[3].split('_').filter(Boolean);
535      var make = '';
536      var model = '';
537
538      if (restTokens.length >= 2) {
539        var firstTwo = (restTokens[0] + '_' + restTokens[1]).toUpperCase();
540        if (
541          firstTwo === 'DENAGO_POWERSPORTS' ||
542          firstTwo === 'SEA_DOO' ||
543          firstTwo === 'CAN_AM'
544        ) {
545          make = restTokens.slice(0, 2).join(' ').replace(/Can Am/i, 'CAN-AM');
546          if (/^CAN_AM$/i.test(firstTwo)) make = 'CAN-AM';
547          if (/^SEA_DOO$/i.test(firstTwo)) make = 'SEA-DOO';
548          model = restTokens.slice(2).join(' ');
549        } else {
550          make = restTokens[0];
551          model = restTokens.slice(1).join(' ');
552        }
553      } else if (restTokens.length === 1) {
554        make = restTokens[0];
555      }
556
557      return {
558        stock: stock,
559        year: year,
560        make: trim(make),
561        model: trim(model),
562        condition: condition
563      };
564    } catch (e) {
565      return null;
566    }
567  }
568
569  function vehicleFromViewDetailsLink(financeLink) {
570    try {
571      var detail = null;
572      var next = financeLink.nextElementSibling;
573      if (next && /view\s*details/i.test(next.textContent || '')) {
574        detail = next.tagName === 'A' ? next : next.querySelector('a');
575      }
576      if (!detail) {
577        var card = findListCard(financeLink);
578        if (card) {
579          var anchors = card.querySelectorAll('a[href]');
580          for (var i = 0; i < anchors.length; i++) {
581            var t = (anchors[i].textContent || '').replace(/\s+/g, ' ').trim();
582            if (/view\s*details/i.test(t) && /For_Sale|majorunit/i.test(anchors[i].href)) {
583              detail = anchors[i];
584              break;
585            }
586          }
587          if (!detail) {
588            for (var j = 0; j < anchors.length; j++) {
589              if (/\/majorunit\/.+For_Sale/i.test(anchors[j].href)) {
590                detail = anchors[j];
591                break;
592              }
593            }
594          }
595        }
596      }
597      if (!detail || !detail.href) return null;
598      return parseMajorUnitUrl(detail.href);
599    } catch (e) {
600      return null;
601    }
602  }
603
604  // List HTML has finance links with only finance_product — fill from View Details URL
605  function fixListFinancingLinks() {
606    if (!isListPage()) return;
607    try {
608      var links = document.querySelectorAll('a[href*="get_financing_with_us"]');
609      var fixed = 0;
610      for (var i = 0; i < links.length; i++) {
611        var a = links[i];
612        try {
613          var info = vehicleFromViewDetailsLink(a);
614          if (!info || !info.stock) {
615            // Fallback: card stock only
616            var card = findListCard(a);
617            var stockOnly = stockFromCard(card);
618            if (!stockOnly || !STOCK_RE.test(stockOnly)) continue;
619            info = { stock: stockOnly };
620          }
621          var url = new URL(a.href, window.location.origin);
622          url.searchParams.set('stock', info.stock);
623          if (info.year) url.searchParams.set('year', info.year);
624          else url.searchParams.delete('year');
625          if (info.make) url.searchParams.set('make', info.make);
626          else url.searchParams.delete('make');
627          if (info.model) url.searchParams.set('model', info.model);
628          else url.searchParams.delete('model');
629          if (info.condition) url.searchParams.set('condition', info.condition);
630          else url.searchParams.delete('condition');
631          a.href = url.pathname + url.search + url.hash;
632          fixed += 1;
633        } catch (e) {
634          /* skip */
635        }
636      }
637      console.log('HondaWS - fixed list financing links from View Details URLs', fixed);
638    } catch (e) {
639      console.warn('HondaWS - Error fixing list financing links:', e);
640    }
641  }
642
643  function hasVehicleData(info) {
644    return !!(info && (info.stock || info.year || info.make || info.model || info.condition));
645  }
646
647  function stocksMatch(a, b) {
648    return trim(a).toLowerCase() === trim(b).toLowerCase();
649  }
650
651  function saveVehicle(info) {
652    if (!hasVehicleData(info)) return;
653    try {
654      var prev = loadSavedVehicle();
655      // Different stock = replace storage; do not keep stale year/make/model
656      var sameStock = !info.stock || !prev.stock || stocksMatch(info.stock, prev.stock);
657      var merged = sameStock
658        ? {
659            stock: info.stock || prev.stock || '',
660            year: info.year || prev.year || '',
661            make: info.make || prev.make || '',
662            model: info.model || prev.model || '',
663            condition: info.condition || prev.condition || ''
664          }
665        : {
666            stock: info.stock || '',
667            year: info.year || '',
668            make: info.make || '',
669            model: info.model || '',
670            condition: info.condition || ''
671          };
672      sessionStorage.setItem(STORAGE_KEY, JSON.stringify(merged));
673    } catch (e) {
674      console.warn('HondaWS - Could not save vehicle to sessionStorage:', e);
675    }
676  }
677
678  function loadSavedVehicle() {
679    try {
680      var raw = sessionStorage.getItem(STORAGE_KEY);
681      if (!raw) return {};
682      var parsed = JSON.parse(raw);
683      return parsed && typeof parsed === 'object' ? parsed : {};
684    } catch (e) {
685      return {};
686    }
687  }
688
689  function vehicleFromQuery() {
690    try {
691      var params = new URLSearchParams(window.location.search || '');
692      var info = {
693        stock: trim(params.get('stock')),
694        year: trim(params.get('year')),
695        make: trim(params.get('make')),
696        model: trim(params.get('model')),
697        condition: trim(params.get('condition'))
698      };
699      if (info.stock && !STOCK_RE.test(info.stock)) info.stock = '';
700      if (info.year && !/^\d{4}$/.test(info.year)) info.year = '';
701      if (info.condition) {
702        if (/pre/i.test(info.condition)) info.condition = 'Pre-Owned';
703        else if (/new/i.test(info.condition)) info.condition = 'New';
704        else info.condition = '';
705      }
706      return info;
707    } catch (e) {
708      return {};
709    }
710  }
711
712  function vehicleFromReferrer() {
713    try {
714      var ref = document.referrer || '';
715      if (!ref) return {};
716      var parsed = parseMajorUnitUrl(ref);
717      if (parsed && parsed.stock) return parsed;
718      var path = new URL(ref, window.location.origin).pathname;
719      var stock = stockFromPath(path);
720      return stock ? { stock: stock } : {};
721    } catch (e) {
722      return {};
723    }
724  }
725
726  function mergeVehicle() {
727    var fromQuery = vehicleFromQuery();
728    var fromStore = loadSavedVehicle();
729    var fromRef = vehicleFromReferrer();
730    var ignoredStorage = false;
731    var stockOnlyUrl =
732      !!(fromQuery.stock && !fromQuery.year && !fromQuery.make && !fromQuery.model);
733
734    // List financing links only pass ?stock= — never reuse a prior VDP's
735    // year/make/model from sessionStorage for those clicks.
736    if (stockOnlyUrl) {
737      if (fromStore.stock && stocksMatch(fromQuery.stock, fromStore.stock)) {
738        // Same unit was viewed on a detail page earlier — extras are OK
739      } else {
740        ignoredStorage = true;
741        fromStore = {};
742        try {
743          sessionStorage.removeItem(STORAGE_KEY);
744        } catch (e) {
745          /* ignore */
746        }
747      }
748    } else if (
749      fromQuery.stock &&
750      fromStore.stock &&
751      !stocksMatch(fromQuery.stock, fromStore.stock)
752    ) {
753      console.log(
754        'HondaWS - URL stock differs from storage; ignoring storage',
755        fromQuery.stock,
756        fromStore.stock
757      );
758      ignoredStorage = true;
759      fromStore = {};
760      try {
761        sessionStorage.removeItem(STORAGE_KEY);
762      } catch (e) {
763        /* ignore */
764      }
765    }
766
767    if (stockOnlyUrl && ignoredStorage) {
768      console.log(
769        'HondaWS - stock-only financing URL; ignoring unrelated storage',
770        fromQuery.stock
771      );
772    }
773
774    return {
775      ignoredStorage: ignoredStorage,
776      stock: fromQuery.stock || fromStore.stock || fromRef.stock || '',
777      year: fromQuery.year || fromStore.year || '',
778      make: fromQuery.make || fromStore.make || '',
779      model: fromQuery.model || fromStore.model || '',
780      condition: fromQuery.condition || fromStore.condition || ''
781    };
782  }
783
784  function appendVehicleToFinancingLinks(info) {
785    if (!hasVehicleData(info)) return;
786    try {
787      var links = document.querySelectorAll('a[href*="get_financing_with_us"]');
788      for (var i = 0; i < links.length; i++) {
789        var a = links[i];
790        try {
791          var url = new URL(a.href, window.location.origin);
792          if (info.stock && !url.searchParams.get('stock')) {
793            url.searchParams.set('stock', info.stock);
794          }
795          if (info.year && !url.searchParams.get('year')) {
796            url.searchParams.set('year', info.year);
797          }
798          if (info.make && !url.searchParams.get('make')) {
799            url.searchParams.set('make', info.make);
800          }
801          if (info.model && !url.searchParams.get('model')) {
802            url.searchParams.set('model', info.model);
803          }
804          if (info.condition && !url.searchParams.get('condition')) {
805            url.searchParams.set('condition', info.condition);
806          }
807          a.href = url.pathname + url.search + url.hash;
808        } catch (e) {
809          /* skip bad href */
810        }
811      }
812    } catch (e) {
813      console.warn('HondaWS - Error updating financing links:', e);
814    }
815  }
816
817  function findField(name) {
818    return (
819      document.querySelector('#custom-lead-form-5 [name="' + name + '"]') ||
820      document.querySelector('[name="' + name + '"]')
821    );
822  }
823
824  function setFieldValue(name, value, overwrite) {
825    try {
826      var field = findField(name);
827      if (!field) return false;
828      var current = String(field.value || '').trim();
829      if (!overwrite && current) return false;
830      if (!value && !overwrite) return false;
831      field.value = value || '';
832      try {
833        field.dispatchEvent(new Event('input', { bubbles: true }));
834        field.dispatchEvent(new Event('change', { bubbles: true }));
835      } catch (e) {
836        /* older browsers */
837      }
838      return true;
839    } catch (e) {
840      console.warn('HondaWS - Error filling field', name, e);
841      return false;
842    }
843  }
844
845  function clearVehicleFieldsExceptStock() {
846    setFieldValue(FIELD_MAP.year, '', true);
847    setFieldValue(FIELD_MAP.make, '', true);
848    setFieldValue(FIELD_MAP.model, '', true);
849    setFieldValue(FIELD_MAP.condition, '', true);
850  }
851
852  function fillFinancingForm(info) {
853    if (!hasVehicleData(info)) return;
854
855    var query = vehicleFromQuery();
856    var stockField = findField(FIELD_MAP.stock);
857    var existingStock = stockField ? trim(stockField.value) : '';
858
859    // List links often only pass ?stock= — wipe stale VDP year/make/model first
860    if (
861      info.ignoredStorage ||
862      (query.stock && existingStock && !stocksMatch(query.stock, existingStock))
863    ) {
864      clearVehicleFieldsExceptStock();
865    }
866
867    var filled = [];
868    if (query.stock) {
869      // URL stock always wins over whatever is already in the field
870      if (setFieldValue(FIELD_MAP.stock, info.stock, true)) filled.push('stock');
871    } else if (setFieldValue(FIELD_MAP.stock, info.stock, false)) {
872      filled.push('stock');
873    }
874
875    if (info.year) {
876      if (setFieldValue(FIELD_MAP.year, info.year, !!info.ignoredStorage)) filled.push('year');
877    }
878    if (info.make) {
879      if (setFieldValue(FIELD_MAP.make, info.make, !!info.ignoredStorage)) filled.push('make');
880    }
881    if (info.model) {
882      if (setFieldValue(FIELD_MAP.model, info.model, !!info.ignoredStorage)) filled.push('model');
883    }
884    if (info.condition) {
885      if (setFieldValue(FIELD_MAP.condition, info.condition, !!info.ignoredStorage)) {
886        filled.push('condition');
887      }
888    }
889
890    if (filled.length || info.ignoredStorage) {
891      console.log(
892        'HondaWS - filled financing vehicle fields',
893        filled.join(', ') || '(cleared stale)',
894        info
895      );
896    }
897  }
898
899  runWhenDomReady(function () {
900    try {
901      var path = (window.location.pathname || '').toLowerCase();
902      var onFinancing = path.indexOf('get_financing_with_us') !== -1;
903
904      // Inventory grids: put each card's real stock on its financing link
905      fixListFinancingLinks();
906
907      var vehicle = readVehicleOnPage();
908      if (hasVehicleData(vehicle) && !isListPage()) {
909        saveVehicle(vehicle);
910        appendVehicleToFinancingLinks(vehicle);
911      }
912
913      if (!onFinancing) return;
914
915      var info = mergeVehicle();
916      if (!hasVehicleData(info) && !info.ignoredStorage) return;
917
918      if (info.ignoredStorage) {
919        try {
920          sessionStorage.setItem(
921            STORAGE_KEY,
922            JSON.stringify({
923              stock: info.stock || '',
924              year: info.year || '',
925              make: info.make || '',
926              model: info.model || '',
927              condition: info.condition || ''
928            })
929          );
930        } catch (e) {
931          /* ignore */
932        }
933      } else {
934        saveVehicle(info);
935      }
936
937      fillFinancingForm(info);
938    } catch (e) {
939      console.warn('HondaWS - financing vehicle autofill error', e);
940    }
941  });
942})();
943
944(function initHondaWSTracking() {
945    try {
946        if (window.hondaWSTrackingInitialized) {
947            console.warn('HondaWS - Tracking already initialized');
948            return;
949        }
950        window.hondaWSTrackingInitialized = true;
951        var GA4_NEW = 'G-QCPXSDZTCB';
952        var GA4_LIVE = 'G-CWY2MM28TX';
953        var GOOGLE_ADS = 'AW-1008508505';
954        var GOOGLE_ADS_CREDIT_APP = 'AW-1008508505/e7epCIq-nGwQ2bzy4AM';
955        var GOOGLE_ADS_REMARKETING = 'AW-965912728';
956        var UA_LEGACY = 'UA-8818191-5';
957        var FB_PIXEL_ID = '178332946031680';
958        var MAUTIC_SRC = 'https://market.hondaws.com/mtc.js';
959        // ----- Google (gtag): GA4, Ads, remarketing, legacy UA -----
960        (function initGoogleTags() {
961            try {
962                window.dataLayer = window.dataLayer || [];
963                var gtagAlreadyPresent = typeof window.gtag === 'function';
964                if (!gtagAlreadyPresent) {
965                    window.gtag = function () {
966                        window.dataLayer.push(arguments);
967                    };
968                    window.gtag('js', new Date());
969                    var gaScript = document.createElement('script');
970                    gaScript.async = true;
971                    gaScript.src =
972                        'https://www.googletagmanager.com/gtag/js?id=' + GOOGLE_ADS;
973                    var firstScript = document.getElementsByTagName('script')[0];
974                    if (firstScript && firstScript.parentNode) {
975                        firstScript.parentNode.insertBefore(gaScript, firstScript);
976                    } else {
977                        (document.head || document.documentElement).appendChild(
978                            gaScript
979                        );
980                    }
981                }
982                window.gtag('config', GA4_NEW);
983                window.gtag('config', GA4_LIVE);
984                window.gtag('config', GOOGLE_ADS);
985                window.gtag('config', GOOGLE_ADS_REMARKETING);
986                window.gtag('config', UA_LEGACY);
987            } catch (e) {
988                console.warn('HondaWS - Error initializing Google tags:', e);
989            }
990        })();
991        // ----- Facebook Pixel -----
992        (function initFacebookPixel() {
993            try {
994                if (window.fbq) return;
995                var n;
996                n = window.fbq = function () {
997                    n.callMethod
998                        ? n.callMethod.apply(n, arguments)
999                        : n.queue.push(arguments);
1000                };
1001                if (!window._fbq) window._fbq = n;
1002                n.push = n;
1003                n.loaded = true;
1004                n.version = '2.0';
1005                n.queue = [];
1006                var t = document.createElement('script');
1007                t.async = true;
1008                t.src = 'https://connect.facebook.net/en_US/fbevents.js';
1009                var s = document.getElementsByTagName('script')[0];
1010                if (s && s.parentNode) {
1011                    s.parentNode.insertBefore(t, s);
1012                } else {
1013                    (document.head || document.documentElement).appendChild(t);
1014                }
1015                fbq('init', FB_PIXEL_ID);
1016                fbq('track', 'PageView');
1017            } catch (e) {
1018                console.warn('HondaWS - Error initializing Facebook Pixel:', e);
1019            }
1020        })();
1021        // ----- Mautic -----
1022        (function initMauticTracking() {
1023            try {
1024                (function (w, d, t, u, n, a, m) {
1025                    w['MauticTrackingObject'] = n;
1026                    w[n] =
1027                        w[n] ||
1028                        function () {
1029                            (w[n].q = w[n].q || []).push(arguments);
1030                        };
1031                    a = d.createElement(t);
1032                    m = d.getElementsByTagName(t)[0];
1033                    a.async = 1;
1034                    a.src = u;
1035                    if (m && m.parentNode) {
1036                        m.parentNode.insertBefore(a, m);
1037                    } else {
1038                        (d.head || d.documentElement).appendChild(a);
1039                    }
1040                })(window, document, 'script', MAUTIC_SRC, 'mt');
1041            } catch (e) {
1042                console.warn('HondaWS - Error initializing Mautic tracking:', e);
1043            }
1044        })();
1045        function runWhenDomReady(fn) {
1046            if (document.readyState === 'loading') {
1047                document.addEventListener('DOMContentLoaded', fn);
1048            } else {
1049                fn();
1050            }
1051        }
1052        runWhenDomReady(function () {
1053            function getHondaWSUrlParameter(paramName) {
1054                try {
1055                    paramName = paramName.replace(/[[\]]/g, '\\$&');
1056                    var regex = new RegExp('[?&]' + paramName + '(=([^&#]*)|&|#|$)');
1057                    var results = regex.exec(window.location.search);
1058                    if (!results) return '';
1059                    if (!results[2]) return '';
1060                    return decodeURIComponent(results[2].replace(/\+/g, ' '));
1061                } catch (e) {
1062                    console.warn('HondaWS - Error parsing URL parameter:', e);
1063                    return '';
1064                }
1065            }
1066            function getFormFieldValue(form, fieldName) {
1067                try {
1068                    if (!form || !fieldName) return '';
1069                    var named = form.elements.namedItem(fieldName);
1070                    if (named) {
1071                        if (named.nodeName) {
1072                            return String(named.value || '').trim();
1073                        }
1074                        if (named.length && named[0] && named[0].type === 'radio') {
1075                            var checked = form.querySelector(
1076                                'input[name="' +
1077                                    fieldName.replace(/\\/g, '\\\\').replace(/"/g, '\\"') +
1078                                    '"]:checked'
1079                            );
1080                            return checked ? String(checked.value || '').trim() : '';
1081                        }
1082                    }
1083                    var esc = fieldName.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
1084                    var el = form.querySelector('[name="' + esc + '"]');
1085                    if (el && 'value' in el) return String(el.value || '').trim();
1086                } catch (e) {
1087                    console.warn('HondaWS - Error reading form field:', fieldName, e);
1088                }
1089                return '';
1090            }
1091            function getStockNumber() {
1092                try {
1093                    var ds = document.querySelector(
1094                        '.liUnit.LiInvstock-number .spnUnitValue'
1095                    );
1096                    if (ds && ds.textContent.trim()) return ds.textContent.trim();
1097                    var hidden = document.querySelector(
1098                        'input[name="stock_number"][value]:not([value=""])'
1099                    );
1100                    if (hidden && hidden.value) return String(hidden.value).trim();
1101                    var labeled = document.body && document.body.innerText
1102                        ? document.body.innerText.match(/Stock\s*#\s*:\s*([A-Za-z0-9._-]+)/i)
1103                        : null;
1104                    if (labeled && labeled[1]) return labeled[1];
1105                    var path = (window.location.pathname || '').replace(/\/+$/, '');
1106                    var last = path.split('/').pop() || '';
1107                    if (/^[A-Za-z0-9._-]{4,}$/.test(last) && /For_Sale|majorunit|inventory/i.test(path)) {
1108                        return last;
1109                    }
1110                } catch (e) {
1111                    console.warn('HondaWS - Error reading stock number:', e);
1112                }
1113                return '';
1114            }
1115            function sendMauticPageview(email, firstname, lastname) {
1116                try {
1117                    if (typeof window.mt !== 'function') return;
1118                    var trackingData = {};
1119                    if (email && email.trim() !== '') trackingData.email = email.trim();
1120                    if (firstname && firstname.trim() !== '') trackingData.firstname = firstname.trim();
1121                    if (lastname && lastname.trim() !== '') trackingData.lastname = lastname.trim();
1122                    if (Object.keys(trackingData).length > 0) {
1123                        mt('send', 'pageview', trackingData);
1124                    } else {
1125                        mt('send', 'pageview');
1126                    }
1127                } catch (e) {
1128                    console.warn('HondaWS - Error sending Mautic tracking event:', e);
1129                }
1130            }
1131            function sendMauticFormSubmitEvent(email, firstname, lastname, form) {
1132                try {
1133                    if (typeof window.mt !== 'function') return;
1134                    var data = {};
1135                    if (email && email.trim() !== '') data.email = email.trim();
1136                    if (firstname && firstname.trim() !== '') data.firstname = firstname.trim();
1137                    if (lastname && lastname.trim() !== '') data.lastname = lastname.trim();
1138                    var baseUrl = window.location.href.split('#')[0];
1139                    data.page_url = baseUrl + '#mautic-lead-form-submit';
1140                    data.page_title = 'Lead form submitted';
1141                    if (form && (form.name || form.id)) {
1142                        data.page_title += ' (' + (form.name || form.id) + ')';
1143                    }
1144                    data.tags = 'lead-form-submit';
1145                    mt('send', 'pageview', data);
1146                } catch (e) {
1147                    console.warn('HondaWS - Error sending Mautic form submit event:', e);
1148                }
1149            }
1150            function getFormName(form) {
1151                try {
1152                    var fromField = getFormFieldValue(form, 'form_name');
1153                    if (fromField) return fromField;
1154                    if (form && form.name) return String(form.name).trim();
1155                } catch (e) {
1156                    console.warn('HondaWS - Error reading form_name:', e);
1157                }
1158                return '';
1159            }
1160            function isGoogleAdsCreditAppForm(formName) {
1161                return (
1162                    formName === 'get_a_quote' ||
1163                    formName === 'Credit Application Form'
1164                );
1165            }
1166            var lastCreditAppConversionAt = 0;
1167            var lastGaLeadAt = 0;
1168            function sendGoogleAnalyticsLeadEvent(formName, extra) {
1169                try {
1170                    var now = Date.now();
1171                    if (now - lastGaLeadAt < 2000) return;
1172                    lastGaLeadAt = now;
1173                    var params = extra && typeof extra === 'object' ? extra : {};
1174                    if (formName) params.form_name = formName;
1175                    if (typeof window.gtag === 'function') {
1176                        window.gtag('event', 'form_submit', params);
1177                        window.gtag('event', 'generate_lead', params);
1178                        console.log(
1179                            'HondaWS - GA4 generate_lead sent',
1180                            formName || '(no form_name)'
1181                        );
1182                        return;
1183                    }
1184                    if (typeof window.ga === 'function') {
1185                        window.ga(
1186                            'send',
1187                            'event',
1188                            'Form',
1189                            'submit',
1190                            formName || 'form'
1191                        );
1192                    }
1193                } catch (e) {
1194                    console.warn(
1195                        'HondaWS - Error sending Google Analytics lead event:',
1196                        e
1197                    );
1198                }
1199            }
1200            function recordSuccessfulEnquiry(formName, extra) {
1201                sendGoogleAnalyticsLeadEvent(formName, extra);
1202                if (isGoogleAdsCreditAppForm(formName)) {
1203                    sendGoogleAdsCreditAppConversion();
1204                }
1205            }
1206            function sendGoogleAdsCreditAppConversion() {
1207                try {
1208                    var now = Date.now();
1209                    if (now - lastCreditAppConversionAt < 2000) return;
1210                    lastCreditAppConversionAt = now;
1211                    if (typeof window.gtag === 'function') {
1212                        var callbackLogged = false;
1213                        window.gtag('event', 'conversion', {
1214                            send_to: GOOGLE_ADS_CREDIT_APP,
1215                            event_callback: function () {
1216                                if (callbackLogged) return;
1217                                callbackLogged = true;
1218                                console.log(
1219                                    'HondaWS - Google Ads conversion callback',
1220                                    GOOGLE_ADS_CREDIT_APP
1221                                );
1222                            },
1223                            event_timeout: 2000
1224                        });
1225                    }
1226                    var adsId = String(GOOGLE_ADS).replace(/^AW-/, '');
1227                    var label = GOOGLE_ADS_CREDIT_APP.split('/')[1] || '';
1228                    var pixel = new Image(1, 1);
1229                    pixel.src =
1230                        'https://www.googleadservices.com/pagead/conversion/' +
1231                        adsId +
1232                        '/?label=' +
1233                        encodeURIComponent(label) +
1234                        '&guid=ON&script=0&ord=' +
1235                        now;
1236                    console.log(
1237                        'HondaWS - Google Ads Credit App conversion sent',
1238                        GOOGLE_ADS_CREDIT_APP
1239                    );
1240                } catch (e) {
1241                    console.warn('HondaWS - Error sending Google Ads Credit App conversion:', e);
1242                }
1243            }
1244            function formNameFromAjaxData(data) {
1245                try {
1246                    if (!data) return '';
1247                    if (typeof data === 'string') {
1248                        var match = data.match(/(?:^|&)form_name=([^&]*)/);
1249                        return match
1250                            ? decodeURIComponent(match[1].replace(/\+/g, ' '))
1251                            : '';
1252                    }
1253                    if (typeof FormData !== 'undefined' && data instanceof FormData) {
1254                        var value = data.get('form_name');
1255                        return value ? String(value) : '';
1256                    }
1257                    if (typeof data === 'object' && data.form_name) {
1258                        return String(data.form_name);
1259                    }
1260                } catch (e) {
1261                    console.warn('HondaWS - Error parsing AJAX form_name:', e);
1262                }
1263                return '';
1264            }
1265            function wrapSubmitEnquiryFormModal() {
1266                try {
1267                    var original = window.submitEnquiryFormModal;
1268                    if (typeof original !== 'function') return false;
1269                    if (original._hondaWSCreditAppWrapped) return true;
1270                    window.submitEnquiryFormModal = function (
1271                        modalId,
1272                        url,
1273                        successCallback
1274                    ) {
1275                        var formName = '';
1276                        try {
1277                            var root = document.getElementById(modalId);
1278                            var form = root
1279                                ? root.querySelector('form')
1280                                : document.querySelector('#' + modalId + ' form');
1281                            formName = getFormName(form);
1282                        } catch (e) {
1283                            console.warn(
1284                                'HondaWS - Error reading quote form_name:',
1285                                e
1286                            );
1287                        }
1288                        var wrappedSuccess = function () {
1289                            recordSuccessfulEnquiry(formName);
1290                            if (typeof successCallback === 'function') {
1291                                return successCallback.apply(this, arguments);
1292                            }
1293                        };
1294                        return original.call(this, modalId, url, wrappedSuccess);
1295                    };
1296                    window.submitEnquiryFormModal._hondaWSCreditAppWrapped = true;
1297                    return true;
1298                } catch (e) {
1299                    console.warn(
1300                        'HondaWS - Error wrapping submitEnquiryFormModal:',
1301                        e
1302                    );
1303                    return false;
1304                }
1305            }
1306            function hookProductEnquiryXHR() {
1307                try {
1308                    if (XMLHttpRequest.prototype._hondaWSProductEnquiryHooked) {
1309                        return;
1310                    }
1311                    XMLHttpRequest.prototype._hondaWSProductEnquiryHooked = true;
1312                    var origOpen = XMLHttpRequest.prototype.open;
1313                    var origSend = XMLHttpRequest.prototype.send;
1314                    XMLHttpRequest.prototype.open = function (method, url) {
1315                        this._hondaWSUrl = url == null ? '' : String(url);
1316                        return origOpen.apply(this, arguments);
1317                    };
1318                    XMLHttpRequest.prototype.send = function (body) {
1319                        try {
1320                            var url = this._hondaWSUrl || '';
1321                            if (url.indexOf('productEnquiry') !== -1) {
1322                                var formName = formNameFromAjaxData(body);
1323                                var xhr = this;
1324                                this.addEventListener('load', function () {
1325                                    try {
1326                                        var res = null;
1327                                        try {
1328                                            res = JSON.parse(xhr.responseText);
1329                                        } catch (parseErr) {
1330                                            res = null;
1331                                        }
1332                                        if (res && res.success === false) return;
1333                                        recordSuccessfulEnquiry(formName);
1334                                    } catch (e) {
1335                                        console.warn(
1336                                            'HondaWS - Error on productEnquiry XHR load:',
1337                                            e
1338                                        );
1339                                    }
1340                                });
1341                            }
1342                        } catch (e) {
1343                            console.warn(
1344                                'HondaWS - Error hooking productEnquiry XHR:',
1345                                e
1346                            );
1347                        }
1348                        return origSend.apply(this, arguments);
1349                    };
1350                } catch (e) {
1351                    console.warn('HondaWS - Error installing XHR hook:', e);
1352                }
1353            }
1354            function bindProductEnquiryConversion() {
1355                try {
1356                    if (typeof window.jQuery !== 'function') return;
1357                    window.jQuery(document).ajaxSuccess(function (event, xhr, settings) {
1358                        try {
1359                            if (
1360                                !settings ||
1361                                !settings.url ||
1362                                String(settings.url).indexOf('productEnquiry') === -1
1363                            ) {
1364                                return;
1365                            }
1366                            var body = xhr && xhr.responseJSON;
1367                            if (!body && xhr && xhr.responseText) {
1368                                try {
1369                                    body = JSON.parse(xhr.responseText);
1370                                } catch (parseErr) {
1371                                    body = null;
1372                                }
1373                            }
1374                            if (body && body.success === false) return;
1375                            var formName = formNameFromAjaxData(settings.data);
1376                            recordSuccessfulEnquiry(formName);
1377                        } catch (e) {
1378                            console.warn(
1379                                'HondaWS - Error handling productEnquiry conversion:',
1380                                e
1381                            );
1382                        }
1383                    });
1384                } catch (e) {
1385                    console.warn('HondaWS - Error binding productEnquiry conversion:', e);
1386                }
1387            }
1388            function sendGoogleAnalyticsFormSubmitEvent(form) {
1389                try {
1390                    var formName = getFormName(form);
1391                    var params = {};
1392                    if (form.id) params.form_id = form.id;
1393                    if (form.action) params.form_action = form.action;
1394                    params.form_method = String(form.method || 'get').toLowerCase();
1395                    sendGoogleAnalyticsLeadEvent(formName, params);
1396                } catch (e) {
1397                    console.warn('HondaWS - Error sending Google Analytics form event:', e);
1398                }
1399            }
1400            // Catalog feed ids are MD5(stock number) as lowercase hex. Web Crypto has no MD5.
1401            function md5Hex(value) {
1402                function add(x, y) {
1403                    var lsw = (x & 0xffff) + (y & 0xffff);
1404                    var msw = (x >>> 16) + (y >>> 16) + (lsw >>> 16);
1405                    return (msw << 16) | (lsw & 0xffff);
1406                }
1407                function rol(x, n) {
1408                    return (x << n) | (x >>> (32 - n));
1409                }
1410                function cmn(q, a, b, x, s, t) {
1411                    return add(rol(add(add(a, q), add(x, t)), s), b);
1412                }
1413                function ff(a, b, c, d, x, s, t) {
1414                    return cmn((b & c) | (~b & d), a, b, x, s, t);
1415                }
1416                function gg(a, b, c, d, x, s, t) {
1417                    return cmn((b & d) | (c & ~d), a, b, x, s, t);
1418                }
1419                function hh(a, b, c, d, x, s, t) {
1420                    return cmn(b ^ c ^ d, a, b, x, s, t);
1421                }
1422                function ii(a, b, c, d, x, s, t) {
1423                    return cmn(c ^ (b | ~d), a, b, x, s, t);
1424                }
1425                function wordToHex(n) {
1426                    var out = '';
1427                    var t;
1428                    for (t = 0; t < 4; t++) {
1429                        out += ((n >> (t * 8 + 4)) & 0xf).toString(16);
1430                        out += ((n >> (t * 8)) & 0xf).toString(16);
1431                    }
1432                    return out;
1433                }
1434                var utf8 = unescape(encodeURIComponent(String(value)));
1435                var len = utf8.length;
1436                var words = new Array((((len + 8) >> 6) + 1) * 16);
1437                var i;
1438                for (i = 0; i < words.length; i++) words[i] = 0;
1439                for (i = 0; i < len; i++) {
1440                    words[i >> 2] |= utf8.charCodeAt(i) << ((i % 4) * 8);
1441                }
1442                words[len >> 2] |= 0x80 << ((len % 4) * 8);
1443                words[(((len + 8) >> 6) << 4) + 14] = len * 8;
1444                var a = 1732584193;
1445                var b = -271733879;
1446                var c = -1732584194;
1447                var d = 271733878;
1448                for (i = 0; i < words.length; i += 16) {
1449                    var aa = a;
1450                    var bb = b;
1451                    var cc = c;
1452                    var dd = d;
1453                    a = ff(a, b, c, d, words[i + 0], 7, -680876936);
1454                    d = ff(d, a, b, c, words[i + 1], 12, -389564586);
1455                    c = ff(c, d, a, b, words[i + 2], 17, 606105819);
1456                    b = ff(b, c, d, a, words[i + 3], 22, -1044525330);
1457                    a = ff(a, b, c, d, words[i + 4], 7, -176418897);
1458                    d = ff(d, a, b, c, words[i + 5], 12, 1200080426);
1459                    c = ff(c, d, a, b, words[i + 6], 17, -1473231341);
1460                    b = ff(b, c, d, a, words[i + 7], 22, -45705983);
1461                    a = ff(a, b, c, d, words[i + 8], 7, 1770035416);
1462                    d = ff(d, a, b, c, words[i + 9], 12, -1958414417);
1463                    c = ff(c, d, a, b, words[i + 10], 17, -42063);
1464                    b = ff(b, c, d, a, words[i + 11], 22, -1990404162);
1465                    a = ff(a, b, c, d, words[i + 12], 7, 1804603682);
1466                    d = ff(d, a, b, c, words[i + 13], 12, -40341101);
1467                    c = ff(c, d, a, b, words[i + 14], 17, -1502002290);
1468                    b = ff(b, c, d, a, words[i + 15], 22, 1236535329);
1469                    a = gg(a, b, c, d, words[i + 1], 5, -165796510);
1470                    d = gg(d, a, b, c, words[i + 6], 9, -1069501632);
1471                    c = gg(c, d, a, b, words[i + 11], 14, 643717713);
1472                    b = gg(b, c, d, a, words[i + 0], 20, -373897302);
1473                    a = gg(a, b, c, d, words[i + 5], 5, -701558691);
1474                    d = gg(d, a, b, c, words[i + 10], 9, 38016083);
1475                    c = gg(c, d, a, b, words[i + 15], 14, -660478335);
1476                    b = gg(b, c, d, a, words[i + 4], 20, -405537848);
1477                    a = gg(a, b, c, d, words[i + 9], 5, 568446438);
1478                    d = gg(d, a, b, c, words[i + 14], 9, -1019803690);
1479                    c = gg(c, d, a, b, words[i + 3], 14, -187363961);
1480                    b = gg(b, c, d, a, words[i + 8], 20, 1163531501);
1481                    a = gg(a, b, c, d, words[i + 13], 5, -1444681467);
1482                    d = gg(d, a, b, c, words[i + 2], 9, -51403784);
1483                    c = gg(c, d, a, b, words[i + 7], 14, 1735328473);
1484                    b = gg(b, c, d, a, words[i + 12], 20, -1926607734);
1485                    a = hh(a, b, c, d, words[i + 5], 4, -378558);
1486                    d = hh(d, a, b, c, words[i + 8], 11, -2022574463);
1487                    c = hh(c, d, a, b, words[i + 11], 16, 1839030562);
1488                    b = hh(b, c, d, a, words[i + 14], 23, -35309556);
1489                    a = hh(a, b, c, d, words[i + 1], 4, -1530992060);
1490                    d = hh(d, a, b, c, words[i + 4], 11, 1272893353);
1491                    c = hh(c, d, a, b, words[i + 7], 16, -155497632);
1492                    b = hh(b, c, d, a, words[i + 10], 23, -1094730640);
1493                    a = hh(a, b, c, d, words[i + 13], 4, 681279174);
1494                    d = hh(d, a, b, c, words[i + 0], 11, -358537222);
1495                    c = hh(c, d, a, b, words[i + 3], 16, -722521979);
1496                    b = hh(b, c, d, a, words[i + 6], 23, 76029189);
1497                    a = hh(a, b, c, d, words[i + 9], 4, -640364487);
1498                    d = hh(d, a, b, c, words[i + 12], 11, -421815835);
1499                    c = hh(c, d, a, b, words[i + 15], 16, 530742520);
1500                    b = hh(b, c, d, a, words[i + 2], 23, -995338651);
1501                    a = ii(a, b, c, d, words[i + 0], 6, -198630844);
1502                    d = ii(d, a, b, c, words[i + 7], 10, 1126891415);
1503                    c = ii(c, d, a, b, words[i + 14], 15, -1416354905);
1504                    b = ii(b, c, d, a, words[i + 5], 21, -57434055);
1505                    a = ii(a, b, c, d, words[i + 12], 6, 1700485571);
1506                    d = ii(d, a, b, c, words[i + 3], 10, -1894986606);
1507                    c = ii(c, d, a, b, words[i + 10], 15, -1051523);
1508                    b = ii(b, c, d, a, words[i + 1], 21, -2054922799);
1509                    a = ii(a, b, c, d, words[i + 8], 6, 1873313359);
1510                    d = ii(d, a, b, c, words[i + 15], 10, -30611744);
1511                    c = ii(c, d, a, b, words[i + 6], 15, -1560198380);
1512                    b = ii(b, c, d, a, words[i + 13], 21, 1309151649);
1513                    a = ii(a, b, c, d, words[i + 4], 6, -145523070);
1514                    d = ii(d, a, b, c, words[i + 11], 10, -1120210379);
1515                    c = ii(c, d, a, b, words[i + 2], 15, 718787259);
1516                    b = ii(b, c, d, a, words[i + 9], 21, -343485551);
1517                    a = add(a, aa);
1518                    b = add(b, bb);
1519                    c = add(c, cc);
1520                    d = add(d, dd);
1521                }
1522                return wordToHex(a) + wordToHex(b) + wordToHex(c) + wordToHex(d);
1523            }
1524            function sendFacebookViewContent() {
1525                try {
1526                    if (typeof window.fbq !== 'function') return;
1527                    var stock = getStockNumber();
1528                    var payload = { content_type: 'product' };
1529                    if (stock) {
1530                        payload.content_ids = [md5Hex(stock)];
1531                        payload.stock_number = stock;
1532                    }
1533                    fbq('track', 'ViewContent', payload);
1534                } catch (e) {
1535                    console.warn('HondaWS - Error sending Facebook ViewContent:', e);
1536                }
1537            }
1538            function sendFacebookLead(form) {
1539                try {
1540                    if (typeof window.fbq !== 'function') return;
1541                    var payload = { content_name: 'lead_form' };
1542                    if (form && (form.id || form.name)) {
1543                        payload.content_name = form.id || form.name;
1544                    }
1545                    fbq('track', 'Lead', payload);
1546                } catch (e) {
1547                    console.warn('HondaWS - Error sending Facebook Lead:', e);
1548                }
1549            }
1550            try {
1551                var email =
1552                    getHondaWSUrlParameter('email') ||
1553                    getHondaWSUrlParameter('real_email') ||
1554                    getHondaWSUrlParameter('e') ||
1555                    '';
1556                var firstname =
1557                    getHondaWSUrlParameter('firstName') || getHondaWSUrlParameter('f') || '';
1558                var lastname =
1559                    getHondaWSUrlParameter('lastName') || getHondaWSUrlParameter('l') || '';
1560                sendMauticPageview(email, firstname, lastname);
1561            } catch (e) {
1562                console.warn('HondaWS - Error getting user data from URL:', e);
1563                sendMauticPageview('', '', '');
1564            }
1565            sendFacebookViewContent();
1566            hookProductEnquiryXHR();
1567            bindProductEnquiryConversion();
1568            wrapSubmitEnquiryFormModal();
1569            var wrapAttempts = 0;
1570            var wrapTimer = setInterval(function () {
1571                wrapAttempts += 1;
1572                if (wrapSubmitEnquiryFormModal() || wrapAttempts >= 50) {
1573                    clearInterval(wrapTimer);
1574                }
1575            }, 100);
1576            document.addEventListener(
1577                'submit',
1578                function (ev) {
1579                    try {
1580                        var form = ev.target;
1581                        if (!form || form.nodeName !== 'FORM') return;
1582                        var formName = getFormName(form);
1583                        if (isGoogleAdsCreditAppForm(formName)) {
1584                            sendGoogleAdsCreditAppConversion();
1585                        }
1586                        var email =
1587                            getFormFieldValue(form, 'email') ||
1588                            getFormFieldValue(form, 'real_email');
1589                        var firstname = getFormFieldValue(form, 'firstName');
1590                        var lastname = getFormFieldValue(form, 'lastName');
1591                        if (!email && !firstname && !lastname) return;
1592                        sendGoogleAnalyticsFormSubmitEvent(form);
1593                        sendFacebookLead(form);
1594                        sendMauticFormSubmitEvent(email, firstname, lastname, form);
1595                    } catch (e) {
1596                        console.warn('HondaWS - Error handling form submit for tracking:', e);
1597                    }
1598                },
1599                true
1600            );
1601        });
1602    } catch (e) {
1603        console.warn('HondaWS - Error during initialization check:', e);
1604    }
1605})();
1606</script>
1606
1607
1608                <!-- <input type="hidden" class="page_id" value=""> -->
1609        <input type="hidden" class="page_id" value="">
1610        
1611    
1612            <!-- WRAPPER ==============================================================================-->
1613        <div class="wrap">
1614            
1615                <link rel="stylesheet" href="https://www.hondaws.com/qatesting/newassets/stylesheet/style.css" />
1616                <link rel="stylesheet" href="https://www.hondaws.com/qatesting/newassets/stylesheet/custom.css" />
1617                                    <!-- <link rel="stylesheet" href="" /> -->
1618                    <link rel="stylesheet" href="https://www.hondaws.com/flexible_templates_style.css?v=1790869115" />
1619                
1620                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
1621<link rel="preconnect" href="https://fonts.googleapis.com">
1622<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1623<link href="https://fonts.googleapis.com/css2?family=Palanquin+Dark:wght@400;500;600;700&display=swap" rel="stylesheet">
1624<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
1625
1626<div class="combine_header">
1627	<div class="top_header --transition-ease">
1628		<div class="container-fluid">		
1629			<div class="top_header_flex mobile_hide hidden-md hidden-sm hidden-xs">
1630				<div class="top_header_left">
1631					<div class="header_contact_bar">
1632						<div class="header_contact_inner"><a class="header_phone" href="tel:3367650330"><span><!-- <i class="fa fa-phone">&nbsp;</i> -->3367650330 <span class="text_with_phone">- Call Today! </span></span></a></div>
1633						<!-- <div class="header_contact_inner">	<a class="header_email" href="mailto:"><span><i class="fa fa-envelope">&nbsp;</i>&nbsp;</span></a></div> -->
1634					</div>
1635				</div>
1636					
1637				<div class="top_header_right">
1638					<div class="float-right">
1639					</div>
1640						
1641					<div class="float-right"><div class="header_search_design"><div class="searchHolder search-one">
1642    <form action="https://www.hondaws.com/shopping/productlist" method="post" id="moto_search" class="form_standard moto_search_form">
1643        <input id="search" name="search" placeholder="Search Parts and Apparel" class="search-bx" style="float:left;" />
1644        <a href="javascript:void(0);" class="goBtn_b">Go!</a>
1645    </form>
1646    <div class="clear"></div>
1647</div>
1648
1649<script type="application/javascript">
1650    (function() {
1651
1652
1653        var fixLanguage = function() {
1654
1655            var $b = "search";
1656            if ($b == 'mu_search') {
1657                $(".form_standard.moto_search_form .search-bx").attr("name", "search_keywords");
1658                var $x = $(".form_standard.moto_search_form");
1659				console.log('fixing Search Function');
1660                $x.attr("action", "/Motorcycle_List?filterChange=1");
1661
1662                $x.attr("method", "post");
1663            }
1664        };
1665
1666        try {
1667            fixLanguage();
1668        } catch(err) {
1669            console.log("Error: " + err);
1670			}
1671
1672        $(document).on("ready", fixLanguage);
1673
1674    })();
1675	
1676	</script>
1676
1677	
1678
1679</div></div>
1680							
1681					<div class="float-right">
1682						<div class="header_shopping_area"> 
1683							<!---<a href="/shopping/cart">
1684								<div class="cart_text">&nbsp;&nbsp;<i class="fa fa-shopping-cart">&nbsp;&nbsp;</i>CART </div>
1685							</a>--->
1686						</div>
1687					</div>
1688					
1689					<div class="float-right">
1690						<div class="auth_dropdown">
1691							<div class="btn-group hidden-md hidden-sm hidden-xs ">
1692							  <a class="user_dropdown dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="javascript:void(0)" class="vp-btn"><i class="fa fa-user"></i> &nbsp; ACCOUNT &nbsp; <span class="caret"></span></a>
1693							  
1694							  <ul class="dropdown-menu dropdown-menu-right">
1695								<li>
1696										<a class="login_btn_link" href="javascript:void(0);" onclick="openLogin();">
1697										Login</a>
1698										
1699										<a class="login_btn_link" href="javascript:void(0);" onclick="openLogin();">
1700										Create Account</a>
1701								</li>
1702							  </ul>
1703							</div>
1704						</div>	
1705					</div>
1706				</div>
1707			</div>
1708		</div>	
1709	</div>
1710	
1711	<header class="themeheader --transition-ease">
1712		<div class="header_first_bar">
1713			<div class="container">		
1714				
1715					<div class="header_logo_area_flex">
1716						<div class="header_logo_area">
1717							<a href="/" class="">
1718								<img src="/logo.png" alt="Honda of Winston Salem" title="Honda of Winston Salem">
1719<style>img[src$="/logo.png"]{transform:scale(1.2);transform-origin:bottom center;position:relative;z-index:1000;}@media(min-width:992px){img[src$="/logo.png"]{transform:scale(1.5);}}</style>
1720              </a>
1721						</div>
1722					</div>
1723					
1724				
1725			</div>	
1726		</div>
1727		
1728		<div class="header_scnd_bar mobile_hide">
1729			<div class="navigation_bar_main hidden-md hidden-sm hidden-xs">
1730					<div class="navigation_bar"> 
1731						<div class="container">	
1732						<div class="header_nav_area">
1733						<div class="dynamic-nav">
1734    <div class="dynamic-nav-wrapper">
1735        <div class="dynamicNav" style="background-color:#000000;color:#ffffff;">
1736            <div class="dynamicNavCont">
1737                <ul style="width: 100%; margin: 0 auto; padding: 0px;">
1738                    <li class="bnz-nv"><a class="dynamicTopNavAnchors"  href="/" id="" style="color:#ffffff;font-size:16px;" >Home </a>
1739                       <span style="color:#ffffff;">|</span>
1740                    </li>
1741                    <li class="bnz-nv"><a class="dynamicTopNavAnchors"  href="javascript:void(0);" id="1" style="color:#ffffff;font-size:16px;" >Current Inventory <i class="fa fa-caret-down" aria-hidden="true"></i></a>
1742                       <span style="color:#ffffff;">|</span>
1743                        <ul id="nav1" class="active SubNavs" style="display:none;background-color:#05104e;">
1744                            <!--span class="toolTip"></span-->
1745                            <li><a href="/New_3-Wheel-Motorcycle_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&amp;vehicles=3+Wheel+Motorcycle&amp;filterChange=1&amp;preserveSearch=1" style="font-size:16px; color:#ffffff; ">Three Wheel</a></li>
1746                            <li><a href="/New_ATV_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&amp;vehicles=ATV&amp;filterChange=1&amp;preserveSearch=1" style="font-size:16px; color:#ffffff; ">ATV</a></li>
1747                            <li><a href="/New_Side-by-Side_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&amp;vehicles=Side+by+Side&amp;filterChange=1&amp;preserveSearch=1" style="font-size:16px; color:#ffffff; ">Side by Side</a></li>
1748                            <li><a href="/New_Watercraft_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&amp;vehicles=Watercraft&amp;filterChange=1&amp;preserveSearch=1" style="font-size:16px; color:#ffffff; ">Watercraft</a></li>
1749                            <li><a href="/New_Pontoon_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&amp;vehicles=Pontoon&amp;filterChange=1&amp;preserveSearch=1" style="font-size:16px; color:#ffffff; ">Pontoon</a></li>
1750                            <li><a href="/New_Dirt-Bike_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&amp;categories=Dirt+Bike&amp;filterChange=1&amp;preserveSearch=1" style="font-size:16px; color:#ffffff; ">Dirt</a></li>
1751                            <li><a href="/New_Generator_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&amp;vehicles=Generator&amp;filterChange=1&amp;preserveSearch=1" style="font-size:16px; color:#ffffff; ">Generator</a></li>
1752                            <li><a href="/New_Motorcycle_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&amp;vehicles=Motorcycle&amp;filterChange=1&amp;preserveSearch=1" style="font-size:16px; color:#ffffff; ">Motorcycle</a></li>
1753                            <li><a href="/New_Units_For_Sale_Clemmons_NC/Major_Unit_List?filterChange=1&amp;fltr=pre-owned&amp;search_keywords=" style="font-size:16px; color:#ffffff; ">Pre-Owned</a></li>
1754                        </ul>
1755                    </li>
1756                    <li class="bnz-nv"><a class="dynamicTopNavAnchors"  href="/parts-atvs-utvs-motorcycles-dealership--parts" id="2" style="color:#ffffff;font-size:16px;" >Parts &amp; Accessories </a>
1757                       <span style="color:#ffffff;">|</span>
1758                    </li>
1759                    <li class="bnz-nv"><a class="dynamicTopNavAnchors"  href="/service-repair-atvs-utvs-motorcycles-dealership--service" id="3" style="color:#ffffff;font-size:16px;" >Service </a>
1760                       <span style="color:#ffffff;">|</span>
1761                    </li>
1762                    <li class="bnz-nv"><a class="dynamicTopNavAnchors"  href="/showroom" id="4" style="color:#ffffff;font-size:16px;" >Showroom </a>
1763                       <span style="color:#ffffff;">|</span>
1764                    </li>
1765                    <li class="bnz-nv"><a class="dynamicTopNavAnchors"  href="/credit-financing-atvs-utvs-motorcycles-dealership--financing" id="5" style="color:#ffffff;font-size:16px;" >Financing </a>
1766                       <span style="color:#ffffff;">|</span>
1767                    </li>
1768                    <li class="bnz-nv"><a class="dynamicTopNavAnchors"  href="/aboutus" id="6" style="color:#ffffff;font-size:16px;" >About Us <i class="fa fa-caret-down" aria-hidden="true"></i></a>
1769                       <span style="color:#ffffff;">|</span>
1770                        <ul id="nav6" class="active SubNavs" style="display:none;background-color:#05104e;">
1771                            <!--span class="toolTip"></span-->
1772                            <li><a href="/contactus" style="font-size:16px; color:#ffffff; ">Contact Us</a></li>
1773                            <li><a href="/careers-jobs-employment-powersports-vehicles-dealership--xcareers" style="font-size:16px; color:#ffffff; ">Employment</a></li>
1774                        </ul>
1775                    </li>
1776                    
1777                </ul>
1778            </div>
1779        </div>
1780    </div>
1781</div>
1782<style type="text/css">
1783    .dynamicNavCont li a:hover{
1784        background-color: #05104e;
1785    }
1786
1787</style>
1788<!--script type="text/javascript">
1789    $(document).ready(function(){
1790        $(".mobile-menu").on("click",function(){
1791            $(this).next(".dynamic-nav-wrapper").toggle();
1792        }); 
1793
1794        $(".dynamicNavCont li a").on("click",function(e){
1795            e.preventDefault();
1796            if($(this).next(".SubNav").length > 0){
1797                $(this).next(".SubNav").slideToggle();
1798            }
1799        });
1800    });
1801</script-->
1802						</div>
1803					</div>	
1804				</div>
1805			</div>
1806		</div>
1807	</header>
1808	
1809	<div class="header_b desktop_hide">
1810		<div class="">
1811			<div class="side-hdr">
1812				<div class="sidebar-menu">
1813					<span> <i class="fa fa-bars" aria-hidden="true"></i> Menu</span>
1814					<ul class="mb-drpdwn">
1815						    <li><a   href="/" id=""  >Home </a>
1816        
1817    </li>
1818    <li><a class="child-menu-head"  href="javascript:void(0);" id="1"  >Current Inventory <i class="fa fa-caret-down" aria-hidden="true"></i></a>
1819        
1820        <ul class="subnav">
1821            <!--span class="toolTip"></span-->
1822            <li><a href="/New_3-Wheel-Motorcycle_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&amp;vehicles=3+Wheel+Motorcycle&amp;filterChange=1&amp;preserveSearch=1" >- Three Wheel</a></li>
1823            <li><a href="/New_ATV_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&amp;vehicles=ATV&amp;filterChange=1&amp;preserveSearch=1" >- ATV</a></li>
1824            <li><a href="/New_Side-by-Side_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&amp;vehicles=Side+by+Side&amp;filterChange=1&amp;preserveSearch=1" >- Side by Side</a></li>
1825            <li><a href="/New_Watercraft_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&amp;vehicles=Watercraft&amp;filterChange=1&amp;preserveSearch=1" >- Watercraft</a></li>
1826            <li><a href="/New_Pontoon_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&amp;vehicles=Pontoon&amp;filterChange=1&amp;preserveSearch=1" >- Pontoon</a></li>
1827            <li><a href="/New_Dirt-Bike_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&amp;categories=Dirt+Bike&amp;filterChange=1&amp;preserveSearch=1" >- Dirt</a></li>
1828            <li><a href="/New_Generator_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&amp;vehicles=Generator&amp;filterChange=1&amp;preserveSearch=1" >- Generator</a></li>
1829            <li><a href="/New_Motorcycle_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&amp;vehicles=Motorcycle&amp;filterChange=1&amp;preserveSearch=1" >- Motorcycle</a></li>
1830            <li><a href="/New_Units_For_Sale_Clemmons_NC/Major_Unit_List?filterChange=1&amp;fltr=pre-owned&amp;search_keywords=" >- Pre-Owned</a></li>
1831        </ul>
1832    </li>
1833    <li><a   href="/parts-atvs-utvs-motorcycles-dealership--parts" id="2"  >Parts &amp; Accessories </a>
1834        
1835    </li>
1836    <li><a   href="/service-repair-atvs-utvs-motorcycles-dealership--service" id="3"  >Service </a>
1837        
1838    </li>
1839    <li><a   href="/showroom" id="4"  >Showroom </a>
1840        
1841    </li>
1842    <li><a   href="/credit-financing-atvs-utvs-motorcycles-dealership--financing" id="5"  >Financing </a>
1843        
1844    </li>
1845    <li><a class="child-menu-head"  href="/aboutus" id="6"  >About Us <i class="fa fa-caret-down" aria-hidden="true"></i></a>
1846        
1847        <ul class="subnav">
1848            <!--span class="toolTip"></span-->
1849            <li><a href="/contactus" >- Contact Us</a></li>
1850            <li><a href="/careers-jobs-employment-powersports-vehicles-dealership--xcareers" >- Employment</a></li>
1851        </ul>
1852    </li>
1853
1854
1855<script type="text/javascript">
1856	$(document).ready(function(){
1857		$(".child-menu-head").on("click",function(){
1858			// This helps track whether the menu is open or closed, 
1859            // allowing for additional styling or behavior changes
1860			if ($(this).hasClass('sm_active')) {
1861				$(this).removeClass('sm_active');
1862				$(this).next('.subnav').removeClass("showme");
1863				
1864			} else {
1865				$(this).addClass('sm_active');
1866				// $(this).next('.subnav').toggle("slow");
1867				$(this).next('.subnav').addClass("showme");
1868				
1869			}         
1870			$(this).find('.fa').toggleClass('fa-caret-down fa-caret-up');			
1871			
1872			//$(this).next('.subnav').toggle("slow");
1873			
1874		});
1875	});
1876</script>
1876
1877
1878					</ul>
1879				</div>
1880				<div class="cl"><a class="cel" href="tel:3367650330">
1881					<img class="cl-img" src="/theme/img/cl.png"><br>Call</a>
1882				</div>
1883				<div class="crt">
1884					<a class="cel" href="/shopping/cart">
1885						<img class="cl-img" src="/theme/img/kart.png"><br>Cart</a>
1886				</div>
1887				<div class="shpbrnd-map">
1888					<p class="creditCar_b loct">
1889						<a href="/pages/index/contactus"><i class="fa fa-map-marker" aria-hidden="true"></i> MAP & HOURS</a><!-- <br />
1890						6209 Ramada Dr<br /> -->
1891					</p>
1892				</div>
1893			</div>
1894			<div class="mblacnt-log">
1895				<a href="javascript:void(0);" onclick="openLogin();"> <i class="fa fa-user usr" aria-hidden="true"></i> Login/create account</a>
1896			</div>
1897			<div class="mob_main">
1898				<div class="mob p-0">
1899					<div class="header_search_design mt-3 mb-2"><div class="searchHolder search-one">
1900    <form action="https://www.hondaws.com/shopping/productlist" method="post" id="moto_search_mobile" class="form_standard moto_search_form">
1901        <input id="search_mobile" name="search" placeholder="Search Parts and Apparel" class="search-bx" style="float:left;" />
1902        <a href="javascript:void(0);" class="goBtn_b">Go!</a>
1903    </form>
1904    <div class="clear"></div>
1905</div>
1906
1907<script type="application/javascript">
1908    (function() {
1909
1910
1911        var fixLanguage = function() {
1912
1913            var $b = "search_mobile";
1914            if ($b == 'mu_search_mobile') {
1915                $(".form_standard.moto_search_form .search-bx").attr("name", "search_keywords");
1916                var $x = $(".form_standard.moto_search_form");
1917				console.log('fixing Search Function');
1918                $x.attr("action", "/Motorcycle_List?filterChange=1");
1919
1920                $x.attr("method", "post");
1921            }
1922        };
1923
1924        try {
1925            fixLanguage();
1926        } catch(err) {
1927            console.log("Error: " + err);
1928			}
1929
1930        $(document).on("ready", fixLanguage);
1931
1932    })();
1933	
1934	</script>
1934 
1935	
1936</div>
1937				</div>
1938				</div>
1939		</div>
1940		<div class="container">
1941			<div class="vehicleCategory">
1942				
1943			</div>
1944			
1945			<div class="clear"></div>
1946		</div>
1947	</div>
1948	
1949</div>
1950<div class="header_fixed_spacer"></div>
1951
1952<script>
1953
1954$(document).ready(function(){
1955
1956  if($(window).width() > 767){
1957      $('.search-wrapper form').addClass('moto_search_form');    
1958      $(".mob form").removeClass('moto_search_form');
1959      $('.search-wrapper .search-bx').attr('id','mu_search');      
1960     $(".mob .search-bx").attr('id','');
1961     $(".search-wrapper .easy-autocomplete-container").attr('id','eac-container-mu_search');
1962        $(".mob .easy-autocomplete-container").attr('id','');
1963  }else{
1964      $('.search-wrapper form').removeClass('moto_search_form');    
1965      $(".mob form").addClass('moto_search_form');
1966      $('.search-wrapper .search-bx').attr('id','');      
1967      $(".mob .search-bx").attr('id','mu_search');
1968        $(".search-wrapper .easy-autocomplete-container").attr('id','');
1969        $(".mob .easy-autocomplete-container").attr('id','eac-container-mu_search');
1970  }
1971if($("#mu_search").length > 0){$("#mu_search").easyAutocomplete(muoptions);}
1972});
1973</script>
1973
1974
1975                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <div class="modal fade pop" id="major-unit-generic-modal">
1976    <div class="modal-dialog">
1977        <div class="modal-content">
1978            <div class="modal-body modal-body-dark">
1979                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
1980                    <span aria-hidden="true">&times;</span>
1981                </button>
1982
1983                <p class="modal-body-title">Get Out-The-Door Price</p>
1984
1985                <p class="modal-body-subtitle">Looking for Your Next Adventure?</p>
1986				
1987				<div class="alert-container" style="border: 1px solid green; color:black; background-color: #ddffdd; padding: 24px; font-weight: bold; font-size: 125%; text-align: center; display: none">
1988					Message Sent! Thank You.
1989                </div>
1990
1991
1992                <div class="row">
1993                    <div class="hidden-xs col-sm-4">
1994                        <ol class="modal-form-instructions">
1995                            <li>Complete the form</li>
1996                            <li>Tell us which model you're interested in</li>
1997                            <li>Receive your out-the-door price</li>
1998                        </ol>
1999                    </div>
2000
2001                    <div class="col-xs-12 col-sm-8">
2002                        <div class="modal-form-container">
2003                            <form action="https://www.hondaws.com/welcome/productEnquiry" class="form_standard csrf_required"><div style="display:none">
2004<input type="hidden" id="" name="csrf_test_name" value="01401be2ce097d70a1a33cca20f168c0" />
2005<input type="hidden" id="" name="csrf_required" value="1" />
2006</div>
2007                            <input type="hidden" value="1790869117" name="time">
2008                            <input type="hidden" value="out_the_door" name="form_name">
2009                            <p>Fill out the form below to get your<br>free out-the-door price!</p>
2010
2011                            <div class="form-group">
2012                                <label for="major-unit-generic-modal_firstName">First&nbsp;Name:</label>
2013                                <input id="major-unit-generic-modal_firstName" class="form-control" type="text" name="firstName" required>
2014                                <div class="formRequired">*</div>
2015                            </div>
2016
2017                            <div class="form-group">
2018                                <label for="major-unit-generic-modal_lastName">Last&nbsp;Name:</label>
2019                                <input id="major-unit-generic-modal_lastName" class="form-control" type="text" name="lastName" required>
2020                                <div class="formRequired">*</div>
2021                            </div>
2022
2023                            <div class="form-group">
2024                                <label for="major-unit-generic-modal_phone">Phone:</label>
2025                                <input id="major-unit-generic-modal_phone" class="form-control" type="text" name="phone" oninput="maskPhone(this)"  required >
2026								<div class="formRequired">*</div>
2027							</div>
2028
2029                            <div class="form-group">
2030                                <label for="major-unit-generic-modal_email">Email:</label>
2031                                <input id="major-unit-generic-modal_email" class="form-control" type="hidden" name="email">
2032                                <input id="major-unit-generic-modal_real_email" class="form-control" type="email" name="real_email" required>
2033                                <div class="formRequired">*</div>
2034                            </div>
2035							
2036							<input type="hidden" name="location" value="1" />
2037
2038
2039                            <div class="form-group">
2040                                <label for="major-unit-generic-modal_make">Make:</label>
2041                                <input id="major-unit-generic-modal_make" class="form-control" type="text" name="make" required>
2042                                <div class="formRequired">*</div>
2043                            </div>
2044
2045                            <div class="form-group">
2046                                <label for="major-unit-generic-modal_model">Model:</label>
2047                                <input id="major-unit-generic-modal_model" class="form-control" type="text" name="model" required>
2048                                <div class="formRequired">*</div>
2049                            </div>
2050
2051                            <div class="form-group">
2052                                <label for="major-unit-generic-modal_questions">Comments:</label>
2053                                <textarea id="major-unit-generic-modal_questions" class="form-control" type="text" name="questions"></textarea>
2054                            </div>
2055                            <div>
2056								<div style="width:100%; padding:1%;">
2057									<b>Solve the Security Equation. <br> <br>What is <div class="captcha_imgs"><img style="width:auto!important; padding-bottom:4px;" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA8Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2ODApLCBxdWFsaXR5ID0gMTAwCv/bAEMAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/bAEMBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAB4AHgMBEQACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/AP8AP/oAKACgAoAKAP6Hvix4R/ZH8S/8G0/we+M3wg/ZW8P/AAr+O3g7/gq/on7Pnxd+PXibxFonxR+Mvxn1FP2N/GXxR8VanbePR8OvA2r/AA
20570+D+oav4h8Nad4T/Z50J9W8K+GIPAOjeJ9f8Q+PPiTrPirx3rYB+j/AOwv+zl+yxZfCz/gkd8MPH/wo/ZA+Ev/AA118P8A9pLxH+0B+yj+2l8Dvh18WP2+v+Chn/CS+HLvw98KfH/7IX7Tetal8O/+GVPh/wDtE/YLL4b/APBP6z8a/F7/AIJy/wDCGfGjR9X+IHhzxr+31/bcXifxkAfyBfFnw5/wh3xT+JfhH/hAPiB8KP8AhFfiB4y8Of8ACrfizef2j8U/hr/YfiPUtM/4QD4l6h/whXw1+3/EDwd9l/4R3xlef8K68A/avEenalP/AMIV4V3/ANhWAB5/QB+n/wDw86vv+GBf+HdH/DF/7IH/AApL/hYH/C8f+Ep+3/tk/wDC0/8Ahpj/AIUv/wAKL/4aS/tv/hsD/hEv+Fgf8Il/xMf+EH/4Qf8A4Z7/AOEj/wBL/wCFJ/2Z/wASigDoPhH/AMFf/j78L/Cv7PFv4g+Df7MHx6+Mn7HHh/xR4T/Y3/al/aB+HnjT4gfH39mbwrqunFPAHhnwjdW3xM0D4U/E/wAP/s6+KZ9R+In7L2jftKfCj45ad+z9401OeT4b22ieG7HRPDelAH5geLPFnirx74q8TeOvHXibxB408beNPEGs+LPGPjHxZrOo+I/FXizxV4j1G51jxD4m8TeIdYubzV9e8Qa7q95eaprOs6peXWo6pqN1c319cz3M8srAHP0AFABQAUAf/9k=" alt="captcha"> <img style="width:auto!important; padding-bottom:4px;"src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA8Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2ODApLCBxdWFsaXR5ID0gMTAwCv/bAEMAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/bAEMBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAB4AHgMBEQACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/AP8AP/oAKACgAoAKAPv/AP4dp/tFf9FG/YA/8Wxf8Esv/oyKAPgCgAoAKACgAoAKACgAoAKACgD/2Q==" alt="captcha1"> <img style="width:auto!important; padding-bottom:4px;" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA8Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2ODApLCBxdWFsaXR5ID0gMTAwCv/bAEMAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/bAEMBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAB4AHgMBEQACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/AP8AP/oAKACgAoAKAP7Hf2kU/ZR/4KVfthftKfswf8Eh/iz+xBa3Pxj+D+ra7+xt+zd4f/4Iy/sq/Djwr4+g8F/Azw3cfGv4OL+2x8XvgJ8PP2g/gH+0/r0nhb9oL4tfDHxDL4Gn+DWjadZ/Di0sf2tvhr428RyeGfheAfxxUAFABQB+v3/D6v8Aan/5KP8A8ID+z/8A8Ntf8M//APDNP/Dy7/hFfiL/AMN2f8K6/wCQF/wkf/Cef8LV/wCFS/8ADQH/AAqX/iwX/DWP/Clf+Gp/+FO/8Sb/AIXJ/wAJL/xVlAH5A0AFABQAUAFABQB//9k=" alt="captcha2"></div><span class="captcha_eq"> = </span></b>
2058									<input type="hidden" name="encrypted_answer" value="9d9ae08520f9f9c053056666cf8fc97107959bdf84e79db4c46b08c7a8a7a5683258470a60bbfcb1fee009cdfc316bab99d7d90b485e6dfc8336f713f3b328abXv4ldLZzehU//b6Tu/fvK4D9fIJ+kmxhhCnGclfGzT4=" />
2059    									<input type="text" name="user_answer" value="" class="text mini" style="color:black"/>
2060								</div>
2061							</div>
2062                            <input type="hidden" name="form_type" value="2" />
2063                            
2064                            <div class="text-center">
2065                                <input class="btn" type="submit" value="Submit">
2066                            </div>
2067                           
2068                            </form>
2069                        </div>
2070                    </div>
2071                </div>
2072
2073                <p class="modal-body-footer">We respect your privacy and won't share your information with any other company. Terms and conditions apply.</p>
2074            </div>
2075        </div>
2076    </div>
2077</div>
2078  
2079<script type="application/javascript">
2080    (function() {
2081        $("#major-unit-generic-modal form").on("submit", function(e) {
2082            e.preventDefault();
2083            submitEnquiryFormModal("major-unit-generic-modal", "https://www.hondaws.com/welcome/productEnquiry", function() {
2084
2085                $("#major-unit-generic-modal .row").hide();
2086                $("#major-unit-generic-modal .alert-container").show();
2087
2088                setTimeout(function() {
2089                    $("#major-unit-generic-modal .alert-container").hide();
2090                    $("#major-unit-generic-modal .row").show();
2091                    $("#major-unit-generic-modal").modal("hide");
2092                }, 4000);
2093            });
2094        });
2095    })();
2096</script>
2096
2097
2098<script type="application/javascript">
2099    $(document).ready(function () {
2100        // Record the modal form submission so we don't show more sales modals
2101        $('.modal form input[type=submit]').click(function () {
2102            var siteModalsState = JSON.parse(localStorage.getItem('siteModalsState')) || {};
2103            siteModalsState['hasContactedSales'] = true;
2104            if($(this).parents('.modal').hasClass("custom-lead-form-modal"))
2105	        	siteModalsState['hasFilledCustomLeadModal'+$(this).parents('.custom-lead-form-modal').find(".form_id").val()] = true;
2106	      
2107            localStorage.setItem('siteModalsState', JSON.stringify(siteModalsState));
2108        });
2109    });
2110</script>
2110
2111
2112
2113                                                            <div class="clear"></div>
2114                                    
2115                <style>
2116                    .button_no{
2117                        background: #EEE !important;
2118                        border: 1px #DDD solid !important;
2119                        color: #BBB !important;
2120                    }
2121                </style>
2122
2123            <!-- CONTENT WRAP =========================================================================-->
2124<!-- Title Honda, Sea-Doo and Can-Am of Winston-Salem Dis Title Honda, Sea Doo and Can Am of Winston Salem  -->                    <div class="cntnr-ttl page_id_ ">
2125                                <div class="container">
2126                        <div class="brndimg">
2127                            <h1 class='mn'>
2128                                                </h1>
2129                        </div>
2130                    </div>
2131                                        </div>
2132            
2133<style type="text/css">.waiver_button_checkout_block {
2134  display: block;
2135  width: 100%;
2136  border: none;
2137  background-color: ;
2138  color: white;
2139  padding: 14px 28px;
2140  font-size: 25px;
2141  cursor: pointer;
2142  text-align: center;
2143}
2144
2145.waiver_button_checkout_block:hover {
2146  background-color: #ddd;
2147  color: black;
2148}
2149
2150.value_calc{
2151	font-size: 16px !important;
2152	margin-bottom: 5px !important;
2153	color: #000 !important;
2154}
2155
2156.price-dis{
2157	float:right;
2158	font-weight: bold;
2159	margin-right: 50px;
2160}
2161@media(max-width: 500px){
2162
2163	.price-dis{
2164		float:none;
2165		display: block;
2166		margin: 15px 0px 11px 0px;
2167		font-weight: bold;
2168	}
2169}
2170</style>
2171<!-- CONTENT WRAP =========================================================================-->
2172	<div class="content_wrap">
2173		<!-- CART -->
2174		<div class="main_content_full">
2175			<div id="error_container" style="display: none;">
2176				<div class="alert" id="errors" style="border:1px solid red; color:red; background-color:yellow;"></div>
2177			</div>
2178								  
2179		  
2180      
2181      <div style="width:100%;display: inline-block;">
2182          <h1>Shopping Cart </h1>
2183          <h3 style="margin:0;"><i class="fa fa-home"></i> Items In your Cart (<span id="shopping_count"></span>)</h3>
2184          <p>Please review your selected items</p>
2185      </div>
2186                    
2187			<!-- CART WRAP -->
2188			<div class="cart_wrap cart_page">
2189         <div class="form_standard">
2190							
2191				<!-- CART PROMO & TOTAL -->
2192				<div class="promo_code">
2193															<h3 style="margin:0;">
2194						Discount Code:						<input type="text" name="couponCode" value="" maxlength="250" id="coupon" class="text medium" placeholder="Enter Code"  />
2195							<button class="button" onclick="updateCart('coupon', 'coupon'); return false;"><i class="fa-solid fa-tags"></i>Apply</button>
2196					</h3>
2197									</div>
2198				<div class="cart_total">
2199					<h3 style="margin:0;">Cart Total: $0.00</h3>
2200																		    <a href="https://www.hondaws.com/shopping/productlist/" class="button fwb"><i class="fa fa-shopping-cart"></i> Continue Shopping</a>
2201											
2202								<a href="javascript:void(0);" onclick="checkout('');" class="button_purple fwb" style="margin-right:0px;"><i class="fa-solid fa-arrow-up-right-from-square"></i> Check Out</a>
2203				<div class="clear"></div>
2204				</div>
2205				<div class="clear"></div>
2206				<!-- END CART PROMO & TOTAL -->
2207			<!-- </form> -->
2208			</div>
2209			</div>
2210            			<!-- END CART WRAP -->
2211
2212      			
2213			<link rel="stylesheet" href="https://www.hondaws.com/qatesting/newassets/stylesheet/custom-widget-pst.com.css" />
2214
2215			
2216			
2217			<!-- CHECK OUT -->
2218		</div>
2219	</div>		
2220	
2221	<div class="clearfooter"></div>
2222	<!-- END CONTENT WRAP ===================================================================-->
2223	<!--Script to dynamically choose a buyer account to render on index page-->
2224    <!-- <form id="checkout" class="form-horizontal" method="post" action="/checkout/paypalpayment"> -->
2225	<form id="checkout" class="form-horizontal" method="post" action="/checkout/paypalpayment">
2226
2227          <div id="payment-form"></div>
2228    </form>
2229
2230<script>
2231	$(window).bind("load", function() {
2232		setTimeout(function(){
2233			$("#reviews").css("width","850px");
2234		},150);
2235	});
2236
2237	$( document ).ready(function() {
2238		$('#error_container').hide();
2239	});
2240
2241	
2242	function removeItemFromCart(sku)
2243	{
2244		var is_script = false;
2245		let ajaxUrl = 'welcome/update_shopping_cart/';
2246		if (is_script) {
2247			ajaxUrl += '?is_script=true';
2248		}
2249	  $.post(base_url + ajaxUrl, 
2250			{
2251				'sku' : sku,
2252				'qty' : '0'
2253			}, 
2254			function(responseText)
2255			{		
2256				/*console.log(responseText);
2257				return false;*/
2258				location.reload();
2259			});
2260	}
2261
2262	/*$('#coupon').focusout(function() {
2263		updateCart('coupon', 'coupon'); return false;
2264	});*/
2265	function updateCart(id_sku, sku, code= false)
2266	{
2267
2268					$("#error_container").css('display', 'block');
2269			$("#errors").html('Please select at least one item for adding coupon');
2270			
2271			setTimeout(function() {
2272  				$("#error_container").css('display', 'none');
2273				$("#errors").html('');
2274			}, 5000);
2275			}
2276
2277
2278	function getCheckoutTrackedQueryString() {
2279		var allowedKeys = {
2280			'utm_source': true,
2281			'utm_campaign': true,
2282			'utm_agid': true,
2283			'utm_term': true,
2284			'utm_device': true,
2285			'utm_content': true,
2286			'utm_medium': true,
2287			'network': true,
2288			'campaignid': true,
2289			'targetid': true,
2290			'adgroupid': true,
2291			'extension': true,
2292			'device': true,
2293			'creative': true,
2294			'keyword': true,
2295			'matchtype': true,
2296			'target': true,
2297			'placement': true,
2298			'user_location': true,
2299			'gclid': true,
2300			'ad_position': true
2301		};
2302
2303		var rawSearch = window.location.search ? window.location.search.substring(1) : '';
2304		if (!rawSearch) {
2305			return '';
2306		}
2307
2308		var pairs = rawSearch.split('&');
2309		var queryString = [];
2310
2311		for (var i = 0; i < pairs.length; i++) {
2312			if (!pairs[i]) {
2313				continue;
2314			}
2315
2316			var idx = pairs[i].indexOf('=');
2317			var rawKey = idx >= 0 ? pairs[i].substring(0, idx) : pairs[i];
2318			var rawValue = idx >= 0 ? pairs[i].substring(idx + 1) : '';
2319			var key = decodeURIComponent((rawKey || '').replace(/\+/g, ' '));
2320
2321			if (!key || key === 'u' || !allowedKeys[key]) {
2322				continue;
2323			}
2324
2325			var value = decodeURIComponent((rawValue || '').replace(/\+/g, ' '));
2326			queryString.push(encodeURIComponent(key) + '=' + encodeURIComponent(value));
2327		}
2328
2329		return queryString.join('&');
2330	}
2331
2332	function setOrAppendQueryParam(queryString, key, value) {
2333		if (value === undefined || value === null || value === '') {
2334			return queryString;
2335		}
2336
2337		var param = encodeURIComponent(key) + '=' + encodeURIComponent(String(value));
2338		var parts = queryString ? queryString.split('&') : [];
2339		var filtered = [];
2340
2341		for (var i = 0; i < parts.length; i++) {
2342			if (!parts[i]) {
2343				continue;
2344			}
2345			var currentKey = decodeURIComponent(parts[i].split('=')[0]);
2346			if (currentKey !== key) {
2347				filtered.push(parts[i]);
2348			}
2349		}
2350
2351		filtered.push(param);
2352		return filtered.join('&');
2353	}
2354
2355	function buildCheckoutUrl(path, isScript) {
2356		var queryString = getCheckoutTrackedQueryString();
2357		if (isScript) {
2358			queryString = setOrAppendQueryParam(queryString, 'is_script', 'true');
2359		}
2360		return s_base_url + path + (queryString ? '?' + queryString : '');
2361	}
2362
2363	var forceGuestCheckout = false;
2364	var guestCheckoutToken = '084e0343a0486ff05530df6c705c8bb4';
2365	var tpLogoValue = "";
2366
2367	function getGuestCheckoutUrl(isScript) {
2368		var queryString = getCheckoutTrackedQueryString();
2369		queryString = setOrAppendQueryParam(queryString, 'g', guestCheckoutToken);
2370		if (tpLogoValue) {
2371			queryString = setOrAppendQueryParam(queryString, 'tp_logo', tpLogoValue);
2372		}
2373		if (isScript) {
2374			queryString = setOrAppendQueryParam(queryString, 'is_script', 'true');
2375		}
2376		return s_base_url + 'checkout' + (queryString ? '?' + queryString : '');
2377	}
2378
2379			function checkout(){
2380			var errorText = $("#errors").text();
2381			if(errorText.length==0){
2382				if(!$('.cart_item').length){
2383					alert('Please Select at least one product to proceed');
2384					return;
2385				}
2386									var is_script = false;
2387					if (forceGuestCheckout) {
2388						window.location.replace(getGuestCheckoutUrl(is_script));
2389					} else {
2390						window.location.replace(buildCheckoutUrl('welcome/new_account_checkout', is_script));
2391					}
2392							}
2393		}
2394		
2395	
2396</script>
2396
2397
2398            <div class="clearfooter"></div>
2399            <!-- END CONTENT WRAP ===================================================================-->
2400
2401
2402        </div>
2403        <!-- END WRAPPER ==========================================================================-->
2404
2405                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       <footer class="footer_section">
2406<div class="newsletter_area_main">
2407   <div class="newsletter_area_inner w-100">
2408      <div class="newsletter_area">
2409         <span class="ThemeFontTwo text-uppercase text-center WhiteColor mb-2 section_subtitle subtitle_red_shape subtitle_shape">Stay Updated</span>
2410         <h3 class="nwsltr newsletter_title text-uppercase WhiteColor ThemeFont mt-4 mb-4"><b>Subscribe to our newsletter</b></h3>
2411         <p class="text-center alert alert-success p-3 mb-2" id="newsletter_success" style="display:none;">You have been added to the list!</p>
2412         <p class="text-center alert alert-danger p-3 mb-2" id="newsletter_error" style="display:none;"></p>
2413         <form action="" class="form_standard flex_input_group mt-3" onsubmit="submitNewsletter(); return false;">
2414            <input type="text" placeholder="Enter email address" class="form-control" id="newsletter" name="newsletter">
2415            <input class="tbtn tbtn-theme tbtn-md input_last" type="button" value="Subscribe Now" onclick="submitNewsletter(); return false;">
2416         </form>
2417      </div>
2418   </div>
2419</div>
2420
2421   <div class="footer_section_bg">
2422      <div class="container">
2423         <div class="footer_section_area">
2424            <div class="footer_section_inner">
2425			
2426					<div class="footer_inventory_section w100 float-left">
2427						<div class="footer_inventory_text">
2428							<h2 class="WhiteColor ThemeFont text-uppercase TextShadow">You Meet the Best People at Honda, Sea-Doo and Can-Am of Winston-Salem</h2>
2429						</div>
2430						<a class="tbtn tbtn-theme tbtn-md m-2 mt-4" href="/New_For_Sale_Clemmons_NC/Major_Unit_List?fltr=New_Inventory&filterChange=1&preserveSearch=1">SHOP NEW</a>
2431						
2432                    </div>
2433               <div class="row">
2434                  <div class="col-lg-3 col-md-12">
2435                     <h3 class="footer_title">Address</h3>
2436                     <div class="footer_address_area">
2437                        <div class="footer_address_inr">
2438                           <a href="/contactus">
2439                             <p>6209 Ramada Dr, <br/>Clemmons, NC 27012-9733</p>
2440                           </a>
2441                        </div>
2442
2443                     </div>
2444                  </div>
2445				  <div class="col-lg-3 col-md-12">
2446                     <div class="quick_links_mod">
2447                        <div class="one-fifth">
2448    <h3>quick links </h3>
2449    <ul class="clear">
2450        <li><a href="https://www.hondaws.com/privacypolicy" >Privacy Policy</a></li>
2451        <li><a href="https://www.hondaws.com/termsofservice" >Terms of Service</a></li>
2452		 
2453		<!-- <li><a href="" ></a></li>  -->
2454
2455    </ul>
2456</div>
2457
2458						<ul class="clear">
2459							<li><a href="/New_Units_For_Sale_Clemmons_NC/Major_Unit_List?filterChange=1&amp;fltr=New_Inventory&amp;search_keywords=">New Inventory</a></li>
2460							<li><a href="/credit-financing-atvs-utvs-motorcycles-dealership--financing">Get Financing</a></li>
2461							<li><a href="/parts-atvs-utvs-motorcycles-dealership--parts">Parts Department</a></li>
2462							<li><a href="/service-repair-atvs-utvs-motorcycles-dealership--service">Service Department</a></li>
2463							<li><a href="/aboutus">About Us</a></li>
2464						</ul>
2465                     </div>
2466                  </div>
2467					<div class="col-lg-3 col-md-12">
2468						<h3 class="footer_title"><a href="/contactus">Contact Us</a></h3>
2469						<div class="footer_contact2">
2470							<a href="tel:3367650330">3367650330</a>
2471							<a href="mailto:[email protected]"></a>
2472						</div>
2473					</div>
2474<!--                   <div class="col-lg-3 col-md-12">
2475                     <h3 class="footer_title"><a href="/contactus">Contact Us</a></h3>
2476                     <div class="footer_contact2">
2477                        <a href="tel:"></a>
2478                        <a href="mailto:"></a>
2479                     </div>
2480                  </div> -->
2481
2482                  <div class="col-lg-3 col-md-12">
2483                     <h3 class="footer_title">Hours</h3>
2484                     <div class="footer_time_sec">Sunday and Monday : Closed<br/>
2485Tuesday - Friday : 9:00 A.M. - 6:00 P.M.<br/>
2486Saturday : 9:00 A.M. - 5:00 P.M.
2487</div>
2488                  </div>
2489               </div>
2490			   
2491			   		<div class="footer_bottom_social_links text-center">
2492                            <a class="social" href="https://www.facebook.com/hondaofws" target="_blank" title="Facebook">
2493        <i class="fa fa-facebook-f"></i>
2494    </a>
2495 
2496 
2497    <a class="social" href="https://www.youtube.com/@hondaws" target="_blank" title="YouTube">
2498       <i class="fa fa-youtube"></i>
2499    </a>
2500 
2501 
2502    <a class="social" href="https://www.instagram.com/hondaofws" target="_blank" title="Instagram">
2503        <i class="fa fa-instagram"></i>
2504    </a>
2505 
2506 
2507 
2508 
2509 
2510 
2511 
2512 
2513 
2514
2515                    </div>
2516            </div>
2517         </div>
2518      </div>
2519   </div>
2520</footer>
2521
2522
2523
2524<script type="text/javascript">
2525   /* Submit on Enter */
2526   $(document).ready(function(){
2527       $('#search').keydown(function(e){
2528           if(e.keyCode == 13)
2529           {
2530               e.preventDefault();
2531               setSearch($('#search').val());
2532               return false;
2533           }
2534       });
2535   
2536       $('.scl').click(function(e){
2537           $('.scl').removeClass('active');
2538           $(this).addClass('active');
2539           $('.social-page').hide();
2540           $('.'+$(this).data('link')).show();
2541       });
2542   
2543   });
2544   
2545   
2546   
2547</script>
vendor: 1 bytes, line 2547
2547
2548<script>
2549   function submitNewsletter()
2550           {                
2551                   $.post(base_url + 'ajax/updateNewsletterList/',
2552                   { 
2553                           'email' : $('#newsletter').val(),
2554                           'ajax' : true
2555                   })
2556                   .done(function (response) {
2557                           /** Parse the JSON response */
2558                           var responseData = JSON.parse(response);
2559                           
2560                           /** Check the "status" field in the response */
2561                           if (responseData.status === "success") {
2562                                   /** Hide error message first */
2563                                   $('#newsletter_error').hide();
2564                   $('#newsletter').val('');
2565                                   /** Success case: Show success message or perform any other actions */
2566                                   $('#newsletter_success').show();
2567                           } else if (responseData.status === "error") {
2568                                   /** Error case: Display the error message */
2569                                   var errorMessage = responseData.message;
2570   
2571                                   /** Remove HTML tags */
2572                                   var plainTextErrorMessage = errorMessage.replace(/<\/?[^>]+(>|$)/g, "");
2573   
2574                                   /** Remove newline characters and replace them with spaces */
2575                                   plainTextErrorMessage = plainTextErrorMessage.replace(/\n/g, ' ');
2576   
2577                                   /** Hide success message first */
2578                                   $('#newsletter_success').hide();
2579   
2580                   /** Empty text of newsletter_error */
2581                   $('#newsletter_error').text('');
2582   
2583                                   /** Display the error message in the specified <p> element */
2584                                   $('#newsletter_error').text(plainTextErrorMessage).show();
2585                           }
2586                   })
2587                   .fail(function (xhr, textStatus, errorThrown) {
2588                           /** This function will be called when there's an error  */
2589                           console.error("Error: " + errorThrown);
2590                           /** Display an error message to the user or perform any other error handling  */
2591                           /** Example: $('#error_message').text("An error occurred");  */
2592                   });
2593           }
2594</script>
vendor: 1 bytes, line 2594
2594
2595<script>
2596   function showSubNav( from ){ alert("here");
2597       $(".SubNavs").hide();
2598       if($('.dynamicNavCont ul').length > 0){
2599           $('.dynamicNavCont ul li').each(function(){
2600               $(this).find('.fa').removeClass('fa-caret-up').addClass('fa-caret-down')
2601           });
2602       }
2603       $(".productNavCont #nav"+from).show();
2604       console.log($("#nav"+from).parent().find('.fa').length);
2605       if($(".productNavCont #nav"+from).parent().find('.fa').length > 0){
2606           console.log($("#nav"+from).parent().find('.fa'));
2607           $(".productNavCont #nav"+from).parent().find('.fa').removeClass('fa-caret-down').addClass('fa-caret-up');
2608       }
2609   }
2610   
2611   function openLogin()
2612   {
2613       window.location.replace('https://www.hondaws.com/checkout/account');
2614   }
2615   
2616   function openCreateAccount()
2617   {
2618       window.location.replace('https://www.hondaws.com/checkout/account');
2619   }
2620</script>
vendor: 1 bytes, line 2620
2620
2621<script>
2622   $(document).ready(function() {
2623   
2624       $('.panel-title').click(function() {
2625           var id = $(this).data('id');
2626           var not = $(this).data('not');
2627           $('#'+not).slideUp();
2628           $('#'+id).slideDown();
2629           //alert(id);
2630       });
2631       if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
2632           $("body").css("display","table");
2633       }
2634   
2635       $( ".topNavAnchors" ).hover(
2636           function() {
2637               showSubNav( $(this).attr("id") );
2638           }, function() {
2639               //showSubNav( $(this).attr("id") );
2640           }
2641       );
2642   
2643       $( ".dynamicTopNavAnchors" ).hover(
2644           function() {
2645               dynamicShowSubNav( $(this).attr("id") );
2646           }, function() {
2647               console.log("footer");
2648               dynamicShowSubNav( $(this).attr("id") );
2649               //showSubNav( $(this).attr("id") );
2650           }
2651       );
2652       if (navigator.userAgent.match(/Tablet|iPad/i))
2653       {   
2654           $( ".dynamicTopNavAnchors" ).click(
2655               function() {
2656                   dynamicShowSubNav( $(this).attr("id") );
2657               }, function() {
2658                   console.log("footer");
2659                   dynamicShowSubNav( $(this).attr("id") );
2660                   //showSubNav( $(this).attr("id") );
2661               }
2662           );
2663       }
2664       $(document).mouseup(function (e){
2665           var container = $(".SubNavs");
2666           if (!container.is(e.target) // if the target of the click isn't the container...
2667               && container.has(e.target).length === 0) // ... nor a descendant of the container
2668           {
2669               container.hide();
2670               if(container.parent().find('.fa').length > 0)
2671                   container.parent().find('.fa').removeClass('fa-caret-up').addClass('fa-caret-down');
2672           }
2673       });
2674   
2675       try {
2676   
2677           $('.popup-gallery').magnificPopup({
2678               delegate: 'a',
2679               type: 'image',
2680               tLoading: 'Loading image #%curr%...',
2681               mainClass: 'mfp-img-mobile',
2682               gallery: {
2683                   enabled: true,
2684                   navigateByImgClick: false,
2685                   preload: [0,1] // Will preload 0 - before current, and 1 after the current image
2686               },
2687               image: {
2688                   tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
2689                   titleSrc: function(item) {
2690                       return item.el.attr('title') + '<small>&trade;</small>';
2691                   }
2692               }
2693           });
2694       } catch(err) {
2695           console.log("Error with magnificPopup AGAIN: " + err);
2696       }
2697   
2698   });
2699</script>
2699
2700
2701<script type="text/javascript">
2702   /* Submit on Enter */
2703   $(document).ready(function(){
2704       $('#search').keydown(function(e){
2705           if(e.keyCode == 13)
2706           {
2707               e.preventDefault();
2708               setSearch($('#search').val());
2709               return false;
2710           }
2711       });
2712   
2713       $('.scl').click(function(e){
2714           $('.scl').removeClass('active');
2715           $(this).addClass('active');
2716           $('.social-page').hide();
2717           $('.'+$(this).data('link')).show();
2718       });
2719   
2720   });
2721   
2722   
2723   
2724   function setURLSearch(event, url, section, id, name)
2725   {
2726   console.log('url: ' + url);
2727   console.log('section: ' + section);
2728   console.log('id: ' + id);
2729   console.log('name: ' + name); 
2730   
2731   $.post(base_url + 'ajax/setURLSearch/',
2732   {
2733   'ajax' : true,
2734   'url' : url,
2735   'section' : section,
2736   'name' : name,
2737   'id': id
2738   },
2739   function(newURL)
2740   {
2741   console.log(newURL);
2742   window.location.href = base_url + 'shopping/productlist/' + newURL;
2743   
2744   });
2745   }
2746   
2747   function fixedEncodeURIComponent (str) {
2748   return encodeURIComponent(str).replace(/[!'()]/g, escape).replace(/\*/g, "%2A");
2749   }
2750   
2751   function setSearch(search)
2752   {
2753   search = search.toLowerCase();
2754   encoded = fixedEncodeURIComponent(search);
2755   console.log('Search: ' + encoded);
2756   window.location.href = base_url + 'shopping/productlist/SE-' + encoded;
2757   }
2758   
2759   function removeHeaderSearch() {
2760       $.post(base_url + 'ajax/removeHeaderSearch/',{},
2761           function(newURL) {
2762           });
2763   }
2764   
2765   function removeMainSearch(url, section, id, name)
2766   {
2767   $.post(base_url + 'ajax/removeSearch/',
2768   {
2769   'ajax' : true,
2770   'url' : url,
2771   'section' : section,
2772   'name' : name,
2773   'id': id
2774   },
2775   function(newURL)
2776   {
2777   window.location.href = base_url + 'shopping/productlist/' + newURL;
2778   });
2779   
2780   }
2781   
2782   
2783</script>
2783
2784
2785
2786
2787                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
2787<script type="application/javascript">
2788    $(document).ready(function() {
2789
2790            if($("#owl-demo").length > 0){
2791                $("#owl-demo").owlCarousel({
2792                    navigation : true,
2793                    slideSpeed : 500,
2794                    paginationSpeed : 500,
2795                    singleItem:true,
2796                        autoPlay: 5000,
2797                    autoPlayTimeout: 1000
2798                });
2799            }
2800
2801
2802
2803        $("#hotels-flats").owlCarousel({
2804            items : 4,
2805            lazyLoad : true,
2806            navigation : true,
2807            autoPlay: true,
2808            autoPlayTimeout:3000
2809        });
2810
2811        $("#homes-for-rent").owlCarousel({
2812            items : 4,
2813            lazyLoad : true,
2814            navigation : true
2815        });
2816        $("#homes-for-rent-1").owlCarousel({
2817            items : 3,
2818            lazyLoad : true,
2819            navigation : true
2820        });
2821        $("#hotels-flats-1").owlCarousel({
2822            items : 3,
2823            lazyLoad : true,
2824            navigation : true
2825        });
2826        $("#hotels-flats-2").owlCarousel({
2827            items : 3,
2828            lazyLoad : true,
2829            navigation : true,
2830            autoPlay: true,
2831            autoPlayTimeout:3000
2832        });
2833
2834
2835    });
2836
2837</script>
2837<script>
2838			var id = new Array();
2839			var price = jQuery('.cart_total h3')[0].innerHTML.replace("Cart Total: $","");						
2840            var len = jQuery('input[placeholder="Add Quanity"]').length;
2841			for(i=0;i<len;i++)
2842			{
2843			id.push(jQuery('input[placeholder="Add Quanity"]')[i].id);
2844			}
2845			var google_tag_params = {
2846			ecomm_prodid: id,
2847			ecomm_pagetype: 'cart',
2848			ecomm_totalvalue: price
2849			};
2850			</script>
2850<script>var ct = ""; var resetAll = function() {
2851}
2852
2853switch (ct) {
2854
2855
2856}</script>
2856<script>var ctd = ""; var resetAll = function() {
2857}
2858
2859switch (ctd) {
2860
2861
2862}</script>
2862<script type="application/javascript">
2863    var model_val;
2864    var make_val;
2865    var year_val;
2866    var machine_val;
2867
2868
2869    function updateGarage()
2870    {
2871        var pathname = window.location.pathname;
2872        $('#update_garage_form').append('<input type="hidden" name="url" value="'+pathname +'" />');
2873        $('#update_garage_form').submit();
2874
2875    }
2876
2877    function executeMachine() {
2878        try {
2879            $("#machine").selectbox({
2880                onChange: function (val, inst) {
2881                    if (val != '') {
2882                        machine_val = val;
2883                        $.ajax(
2884                            {
2885                                async: false,
2886                                type: 'POST',
2887                                url: base_url +'ajax/getMake/',
2888                                data: {
2889                                    'machineId': val,
2890                                                                        'ajax': true
2891                                },
2892                                success: function (encodeResponse) {
2893                                    responseData = JSON.parse(encodeResponse);
2894                                    $('#make').selectbox("detach");
2895                                    var mySelect = $('#make');
2896                                    mySelect.html($('<option></option>').val('').html('-- Select Make --'));
2897
2898
2899                                    // JLB 09-28-17
2900                                    // It would be great if these were alphabetized, otherwise, it's a little stupid.
2901                                    var reverseMap = {};
2902                                    var arr = [];
2903                                    for (var x in responseData) {
2904                                        reverseMap[responseData[x]] = x;
2905                                        arr.push(responseData[x]);
2906                                    }
2907
2908                                    // now, sort it
2909                                    arr.sort(function (a, b) {
2910                                        a = a.toLowerCase();
2911                                        b = b.toLowerCase();
2912                                        if (a < b) {
2913                                            return -1
2914                                        } else if (a > b) {
2915                                            return 1;
2916                                        } else {
2917                                            return 0;
2918                                        }
2919                                    });
2920
2921                                    // Now, iterate and make them in alphabetical order
2922                                    for (var i = 0; i < arr.length; i++) {
2923                                        var text = arr[i];
2924                                        var val = reverseMap[text];
2925                                        mySelect.append(
2926                                            $('<option></option>').val(val).html(text)
2927                                        );
2928                                    }
2929
2930                                    executeMake();
2931                                    $('#make').selectbox("attach");
2932                                }
2933                            });
2934                    }
2935                    else {
2936                        $('#make').selectbox("detach");
2937                        $('#make').html($('<option></option>').val('').html('-- Make --'));
2938                        executeMake();
2939                        $('#make').selectbox("attach");
2940                    }
2941                    $('#model').selectbox("detach");
2942                    $('#year').selectbox("detach");
2943                    $('#model').html($('<option></option>').val('').html('-- Model --'));
2944                    executeModel();
2945                    $('#model').selectbox("attach");
2946                    $('#year').html($('<option></option>').val('').html('-- Year --'));
2947                    executeYear();
2948                    $('#year').selectbox("attach");
2949                    $('#add').attr('class', 'button_no');
2950
2951                }
2952            });
2953        } catch(err) {
2954            console.log("Error executeMachine: " + err);
2955        }
2956    }
2957
2958    function executeMake() {
2959        try {
2960
2961
2962            $("#make").selectbox({
2963                onChange: function (val, inst) {
2964                    if (val != '') {
2965                        make_val = val;
2966                        $.ajax(
2967                            {
2968                                async: false,
2969                                type: 'POST',
2970                                url: base_url +'ajax/getNewYear/',
2971                                data: {
2972                                    'makeId': val,
2973                                                                        'ajax': true
2974                                },
2975                                success: function (encodeResponse) {
2976                                    responseData = JSON.parse(encodeResponse);
2977
2978                                    var arr = [];
2979
2980                                    for (var x in responseData) {
2981                                        arr.push(responseData[x]);
2982                                    }
2983
2984                                    arr.sort(function (a, b) {
2985                                        return b - a
2986                                    });
2987                                    console.log(["Array in executeMake success", arr]);
2988                                    $('#year').selectbox("detach");
2989                                    var mySelect = $('#year');
2990                                    mySelect.html($('<option></option>').val('').html('-- Select Year --'));
2991                                    $.each(arr, function (val, text) {
2992                                        mySelect.append(
2993                                            $('<option></option>').val(text).html(text)
2994                                        );
2995                                    });
2996                                    executeYear();
2997                                    $('#year').selectbox("attach");
2998                                }
2999                            });
3000                    }
3001                    else {
3002                        $('#year').selectbox("detach");
3003                        $('#year').html($('<option></option>').val('').html('-- Model --'));
3004                        executeYear();
3005                        $('#year').selectbox("attach");
3006                    }
3007                    $('#model').selectbox("detach");
3008                    $('#model').html($('<option></option>').val('').html('-- Year --'));
3009                    executeModel();
3010                    $('#model').selectbox("attach");
3011                    $('#add').attr('class', 'button_no');
3012
3013                }
3014            });
3015        } catch(err) {
3016            console.log("Error executeMake: " + err);
3017        }
3018    }
3019
3020    function executeYear() {
3021        try {
3022
3023            $("#year").selectbox({
3024                onChange: function (val, inst) {
3025                    if (val != '') {
3026                        year_val = val;
3027                        $.ajax(
3028                            {
3029                                async: false,
3030                                type: 'POST',
3031                                url: base_url +'ajax/getNewModel/',
3032                                data: {
3033                                    'year': val, // $("#update_garage_form [name=year] option:selected").text(),
3034                                    'makeId': make_val,
3035                                                                        'ajax': true
3036                                },
3037                                success: function (encodeResponse) {
3038                                    responseData = JSON.parse(encodeResponse);
3039
3040                                    var arr = [];
3041                                    var reverseMap = {};
3042
3043                                    for (var x in responseData) {
3044                                        arr.push(responseData[x]);
3045                                        reverseMap[responseData[x]] = x;
3046                                    }
3047
3048                                    arr.sort(function (a, b) {
3049                                        a = a.toLowerCase();
3050                                        b = b.toLowerCase();
3051                                        if (a < b) {
3052                                            return -1
3053                                        } else if (a > b) {
3054                                            return 1;
3055                                        } else {
3056                                            return 0;
3057                                        }
3058                                    });
3059                                    $('#model').selectbox("detach");
3060                                    var mySelect = $('#model');
3061                                    mySelect.html($('<option></option>').val('').html('-- Select Model --'));
3062                                    for (var i = 0; i < arr.length; i++) {
3063                                        var text = arr[i];
3064                                        var val = reverseMap[text];
3065                                        mySelect.append(
3066                                            $('<option></option>').val(val).html(text)
3067                                        );
3068                                    }
3069                                    executeModel();
3070                                    $('#model').selectbox("attach");
3071                                }
3072                            });
3073                    }
3074                    else {
3075                        $('#model').selectbox("detach");
3076                        $('#model').html($('<option></option>').val('').html('-- Year --'));
3077                        executeModel();
3078                        $('#model').selectbox("attach");
3079                    }
3080                    $('#add').attr('class', 'button_no');
3081
3082                }
3083            });
3084        } catch(err) {
3085            console.log("Error executeYear: " + err);
3086        }
3087    }
3088
3089    function executeModel()
3090    {
3091        try {
3092
3093            $("#model").selectbox({
3094                onChange: function (val, inst) {
3095                    displayAdd(val);
3096                    updateGarage();
3097                }
3098            });
3099
3100        } catch(err) {
3101            console.log("Error executeModel: " + err);
3102        }
3103    }
3104
3105
3106    function displayAdd(val)
3107    {
3108        if(val != '')
3109            $('#add').attr('class', 'button' );
3110        else
3111            $('#add').attr('class', 'button_no' );
3112    }
3113
3114
3115    // JLB 09-27-17
3116    // I have no idea why these were run at the top before the functions were defined, and I fear running them does something bad...but it looks relatively safe.
3117    (function() {
3118        // used for fitment/garrage-part-number
3119        executeMachine();
3120        executeMake();
3121        executeModel();
3122        executeYear();
3123    })();
3124
3125</script>
vendor: 1 bytes, line 3125
3125
3126<script type="application/javascript">
3127    function showVideo(vidId, vidTit, override_id, override_vdottle, id_extra) {
3128        if (!override_id) {
3129            override_id = "mainVideo";
3130        }
3131
3132        if (!override_vdottle) {
3133            override_vdottle = "vdottl";
3134        }
3135
3136        if (!id_extra) {
3137            id_extra = "";
3138        }
3139
3140        var mainVideo = $('#' + override_id).data('id');
3141        //var mainTitle = $('.vdottl').html();
3142        $('.' + override_vdottle).html(vidTit);
3143        $("#" + override_id)[0].src = "https://www.youtube.com/embed/" + vidId + "?rel=0&autoplay=1";
3144        $('#' + override_id).data('id', vidId);
3145        //$('.shwVidHalf').show();
3146        $('#' + vidId + id_extra).hide();
3147        $('#' + mainVideo + id_extra).show();
3148        //$("#mainVideo")[0].src = "https://www.youtube.com/embed/"+vidId+"?rel=0&autoplay=1";
3149    }
3150</script>
3150<script type="text/javascript">
3151
3152    $(window).on('load',function() {
3153        try {
3154            $("#flexiselDemo1").flexisel();
3155        } catch(err) {
3156            console.log("Error in flexiselDemo: " + err);
3157        }
3158
3159        try {
3160            $("#flexiselDemo2").flexisel({
3161                enableResponsiveBreakpoints: true,
3162                responsiveBreakpoints: {
3163                    portrait: {
3164                        changePoint: 480,
3165                        visibleItems: 1
3166                    },
3167                    landscape: {
3168                        changePoint: 640,
3169                        visibleItems: 2
3170                    },
3171                    tablet: {
3172                        changePoint: 768,
3173                        visibleItems: 3
3174                    }
3175                }
3176            });
3177        } catch(err) {
3178            console.log("Error in flexiselDemo2: " + err);
3179        }
3180
3181        try {
3182            $("#flexiselDemo3").flexisel({
3183                visibleItems: 5,
3184                animationSpeed: 1000,
3185                autoPlay: true,
3186                autoPlaySpeed: 3000,
3187                pauseOnHover: true,
3188                enableResponsiveBreakpoints: true,
3189                responsiveBreakpoints: {
3190                    portrait: {
3191                        changePoint: 480,
3192                        visibleItems: 3
3193                    },
3194                    landscape: {
3195                        changePoint: 640,
3196                        visibleItems: 4
3197                    },
3198                    tablet: {
3199                        changePoint: 768,
3200                        visibleItems: 5
3201                    }
3202                }
3203            });
3204        } catch(err) {
3205            console.log("Error in flexiselDemo3: " + err);
3206        }
3207
3208        try {
3209            $("#flexiselDemo4").flexisel({
3210                clone: false
3211            });
3212        } catch(err) {
3213            console.log("Error in flexiselDemo4: " + err);
3214        }
3215
3216    });
3217</script>
3217
3218<link type="text/css" rel="stylesheet" href="https://www.hondaws.com/assets/css_front/style.css">
3219
3220<script>
3221    function submitNewsletter()
3222	{		
3223		$.post(base_url + 'ajax/updateNewsletterList/',
3224		{ 
3225			'email' : $('#newsletter').val(),
3226			'ajax' : true
3227		})
3228		.done(function (response) {
3229			/** Parse the JSON response */
3230			var responseData = JSON.parse(response);
3231			
3232			/** Check the "status" field in the response */
3233			if (responseData.status === "success") {
3234				/** Hide error message first */
3235				$('#newsletter_error').hide();
3236
3237				/** Success case: Show success message or perform any other actions */
3238				$('#newsletter_success').show();
3239			} else if (responseData.status === "error") {
3240				/** Error case: Display the error message */
3241				var errorMessage = responseData.message;
3242
3243				/** Remove HTML tags */
3244				var plainTextErrorMessage = errorMessage.replace(/<\/?[^>]+(>|$)/g, "");
3245
3246				/** Remove newline characters and replace them with spaces */
3247				plainTextErrorMessage = plainTextErrorMessage.replace(/\n/g, ' ');
3248
3249				/** Hide success message first */
3250				$('#newsletter_success').hide();
3251
3252                /** Empty text of newsletter_error */
3253                $('#newsletter_error').text('');
3254
3255				/** Display the error message in the specified <p> element */
3256				$('#newsletter_error').text(plainTextErrorMessage).show();
3257			}
3258		})
3259		.fail(function (xhr, textStatus, errorThrown) {
3260			/** This function will be called when there's an error  */
3261			console.error("Error: " + errorThrown);
3262			/** Display an error message to the user or perform any other error handling  */
3263			/** Example: $('#error_message').text("An error occurred");  */
3264		});
3265	}
3266</script>
3266
3267
3268<script>
3269    if(window.location.href.indexOf('shopping/cart') != -1)
3270    {
3271        var id = new Array();
3272        var price = jQuery('.cart_total h3')[0].innerHTML.replace("Cart Total: $",""). replace("","");
3273        var len = jQuery('input[placeholder="Add Quanity"]').length;
3274        for(i=0;i<len;i++)
3275        {
3276            id.push(jQuery('input[placeholder="Add Quanity"]')[i].id);
3277        }
3278        var google_tag_params = {
3279            ecomm_prodid: id,
3280            ecomm_pagetype: 'cart',
3281            ecomm_totalvalue: price
3282        };
3283    }
3284</script>
3284
3285
3286<script>
3287    if(window.location.pathname == '/')
3288    {
3289        var google_tag_params = {
3290            ecomm_pagetype: 'home'
3291        };
3292    }
3293</script>
3293
3294
3295<script>
3296    try { 
3297        if(page != undefined && page == "category")
3298        {
3299            var google_tag_params = {
3300                ecomm_pagetype: 'category'
3301            };
3302        }
3303
3304    } catch (err) {
3305       // console.log("Error in page category check: " + err);
3306    }
3307
3308</script>
3308
3309
3310<!-- start code of benz_views/footer.php -->
3311<script>
3312    function showSubNav( from ){ 
3313        $(".SubNavs").hide();
3314        if($('.dynamicNavCont ul').length > 0){
3315            $('.dynamicNavCont ul li').each(function(){
3316                $(this).find('.fa').removeClass('fa-caret-up').addClass('fa-caret-down')
3317            });
3318        }
3319        $(".productNavCont #nav"+from).show();
3320        console.log($("#nav"+from).parent().find('.fa').length);
3321        if($(".productNavCont #nav"+from).parent().find('.fa').length > 0){
3322            console.log($("#nav"+from).parent().find('.fa'));
3323            $(".productNavCont #nav"+from).parent().find('.fa').removeClass('fa-caret-down').addClass('fa-caret-up');
3324        }
3325    }
3326    
3327    function getUrlVars(){
3328        var vars = [], hash;
3329        var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
3330        for(var i = 0; i < hashes.length; i++)
3331        {
3332            hash = hashes[i].split('=');
3333            vars.push(hash[0]);
3334            vars[hash[0]] = hash[1];
3335        }
3336        return vars;
3337    }
3338
3339    function openLogin()
3340    {
3341        var query_string = getUrlVars();
3342        console.log(query_string);
3343        // window.location.replace('https://www.hondaws.com/checkout/account');
3344        var _baseURL = "https://www.hondaws.com/checkout/account";
3345        var finalURL = _baseURL + (query_string ? "?" + query_string : "");
3346
3347        window.location.replace(finalURL);
3348    }
3349
3350    function openCreateAccount()
3351    {
3352        window.location.replace('https://www.hondaws.com/checkout/account');
3353    }
3354</script>
vendor: 1 bytes, line 3354
3354
3355<script>
3356    $(document).ready(function() {
3357
3358    $('.panel-title').click(function() {
3359        var id = $(this).data('id');
3360        var not = $(this).data('not');
3361        $('#'+not).slideUp();
3362        $('#'+id).slideDown();
3363        //alert(id);
3364    });
3365    if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
3366        $("body").css("display","table");
3367    }
3368
3369    $( ".topNavAnchors" ).hover(
3370        function() {
3371            showSubNav( $(this).attr("id") );
3372        }, function() {
3373            //showSubNav( $(this).attr("id") );
3374        }
3375    );
3376
3377    $( ".dynamicTopNavAnchors" ).hover(
3378        function() {
3379            dynamicShowSubNav( $(this).attr("id") );
3380        }, function() {
3381            console.log("footer");
3382            dynamicShowSubNav( $(this).attr("id") );
3383            //showSubNav( $(this).attr("id") );
3384        }
3385    );
3386    if (navigator.userAgent.match(/Tablet|iPad/i))
3387    {   
3388        $( ".dynamicTopNavAnchors" ).click(
3389            function() {
3390                dynamicShowSubNav( $(this).attr("id") );
3391            }, function() {
3392                console.log("footer");
3393                dynamicShowSubNav( $(this).attr("id") );
3394                //showSubNav( $(this).attr("id") );
3395            }
3396        );
3397    }
3398    $(document).mouseup(function (e){
3399        var container = $(".SubNavs");
3400        if (!container.is(e.target) // if the target of the click isn't the container...
3401            && container.has(e.target).length === 0) // ... nor a descendant of the container
3402        {
3403            container.hide();
3404            if(container.parent().find('.fa').length > 0)
3405                container.parent().find('.fa').removeClass('fa-caret-up').addClass('fa-caret-down');
3406        }
3407    });
3408
3409    try {
3410
3411        $('.popup-gallery').magnificPopup({
3412            delegate: 'a',
3413            type: 'image',
3414            tLoading: 'Loading image #%curr%...',
3415            mainClass: 'mfp-img-mobile',
3416            gallery: {
3417                enabled: true,
3418                navigateByImgClick: false,
3419                preload: [0,1] // Will preload 0 - before current, and 1 after the current image
3420            },
3421            image: {
3422                tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
3423                titleSrc: function(item) {
3424                    return item.el.attr('title') + '<small>Honda, Sea-Doo and Can-Am of Winston-Salem&trade;</small>';
3425                }
3426            }
3427        });
3428    } catch(err) {
3429        console.log("Error with magnificPopup AGAIN: " + err);
3430    }
3431
3432    });
3433</script>
vendor: 1 bytes, line 3433
3433
3434<script type="text/javascript">
3435    /* Submit on Enter */
3436    $(document).ready(function(){
3437        $('#search').keydown(function(e){
3438            if(e.keyCode == 13)
3439            {
3440                e.preventDefault();
3441                setSearch($('#search').val());
3442                return false;
3443            }
3444        });
3445
3446        $('.scl').click(function(e){
3447            $('.scl').removeClass('active');
3448            $(this).addClass('active');
3449            $('.social-page').hide();
3450            $('.'+$(this).data('link')).show();
3451        });
3452
3453    });
3454	
3455	function setURLSearch(event, url, section, id, name)
3456	{
3457		console.log('url: ' + url);
3458		console.log('section: ' + section);
3459		console.log('id: ' + id);
3460		console.log('name: ' + name); 
3461		
3462		$.post(base_url + 'ajax/setURLSearch/',
3463		{
3464			'ajax' : true,
3465			'url' : url,
3466			'section' : section,
3467			'name' : name,
3468			'id': id
3469		},
3470		function(newURL)
3471		{
3472			console.log(newURL);
3473			window.location.href = base_url + 'shopping/productlist/' + newURL;
3474			
3475		});
3476	}
3477
3478    function fixedEncodeURIComponent (str) {
3479	  return encodeURIComponent(str).replace(/[!'()]/g, escape).replace(/\*/g, "%2A");
3480	}
3481
3482	function setSearch(search)
3483	{
3484		search = search.toLowerCase();
3485		encoded = fixedEncodeURIComponent(search);
3486		console.log('Search: ' + encoded);
3487		window.location.href = base_url + 'shopping/productlist/SE-' + encoded;
3488	}
3489
3490    function removeHeaderSearch() {
3491        $.post(base_url + 'ajax/removeHeaderSearch/',{},
3492            function(newURL) {
3493            });
3494    }
3495
3496    function removeMainSearch(url, section, id, name)
3497	{
3498		$.post(base_url + 'ajax/removeSearch/',
3499		{
3500			'ajax' : true,
3501			'url' : url,
3502			'section' : section,
3503			'name' : name,
3504			'id': id
3505		},
3506		function(newURL)
3507		{
3508			window.location.href = base_url + 'shopping/productlist/' + newURL;
3509		});
3510
3511	}
3512
3513
3514</script>
3514
3515                                                                    
3516                                                                                                                                                                                                                                                                                        
3517
3518                                                                                                        
3519
3520                                                                                                        
3521
3522
3523<script>                                                                                                                                                                                                                                                                                     
3524$(document).ready(function()
3525{	
3526	applyHeader();
3527});
3528
3529function applyHeader()
3530	{
3531		
3532		$('.inr-link').click(function(){
3533			$('html, body').animate({
3534				scrollTop: $( $(this).attr('href') ).offset().top
3535			}, 1000);
3536			return false;
3537		});	
3538		
3539		$('.sidemenu_js').bind('click', function() {
3540			var target=$(this).attr('data-target');
3541			var target_class=$(this).attr('data-class');
3542			if ($(this).hasClass('va_active')) {
3543				$(this).removeClass('va_active');
3544			} else {
3545				$(this).addClass('va_active');
3546			}                      
3547		});
3548		
3549	}
3550	
3551		$(window).scroll(function(){
3552			if ($(window).scrollTop() >= 50) {
3553				 $('.combine_header').addClass('fix_header');
3554			}
3555			else {
3556				$('.combine_header').removeClass('fix_header');
3557			}
3558		});
3559		                                                                                                                                </script>
3559                                                                                                                                                                                                <div class="footer_bottom_bar">
3560	<div class="container_b">
3561		<div class="row">
3562			 									<div class="col-md-6">
3563						<p class="cwhite" style="margin-top:10px;">2026 COPYRIGHT VIRTUAL DEALER 360</p>
3564					</div>
3565					<div class="col-md-6 text-right">
3566						<div class="bottom_logo_black">
3567							POWERED BY : <a href="https://www.virtualdealer360.com/"><img class="rr_logo" src="/assets/footer_logos/vd_360.png" title="VIRTUAL DEALER 360" alt="VIRTUAL DEALER 360"></a>
3568						</div>
3569						<div class="bottom_logo_white" style="display:none;">
3570							POWERED BY : <a href="https://www.virtualdealer360.com/"><img class="rr_logo" src="/assets/footer_logos/vd_360_white.png" title="VIRTUAL DEALER 360" alt="VIRTUAL DEALER 360"></a>
3571						</div>
3572					</div>
3573									</div>
3574	</div>
3575</div>
3576        <style>
3577            .bnz-nv{
3578                transition:0.5s;
3579            }
3580        </style>
3581
3582        
3582<script>
3583            function showSubNav( from ){
3584                $(".SubNavs").hide();
3585                
3586                $(".productNavCont #nav"+from).show();
3587                if($(".productNavCont #nav"+from).parent().find('.fa').length > 0)
3588                    $(".productNavCont #nav"+from).parent().find('.fa').removeClass('fa-caret-down').addClass('fa-caret-up');
3589            }
3590            function dynamicShowSubNav( from ){
3591                $(".SubNavs").hide();
3592                if($('.dynamicNavCont ul').length > 0){
3593                    $('.dynamicNavCont ul li').each(function(){
3594                        $(this).find('.fa').removeClass('fa-caret-up').addClass('fa-caret-down')
3595                    });
3596                }
3597                $(".dynamicNavCont #nav"+from).show();
3598                if($(".dynamicNavCont #nav"+from).parent().find('.fa').length > 0)
3599                    $(".dynamicNavCont #nav"+from).parent().find('.fa').removeClass('fa-caret-down').addClass('fa-caret-up');
3600            }
3601
3602            //$( ".bnz-nv" ).on("mouseleave", function() {
3603            $(".SubNavs").hide('slow');
3604            //});
3605
3606            function openLogin()
3607            {
3608                                window.location.replace('https://www.hondaws.com/checkout/account');
3609            }
3610
3611            function openCreateAccount()
3612            {
3613                                window.location.replace('https://www.hondaws.com/checkout/account');
3614            }
3615        </script>
3615
3616
3617        
3617<script>
3618            $(document).ready(function() {
3619
3620                if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
3621                    $("body").css("display","table");
3622                }
3623
3624                $( ".topNavAnchors" ).hover(
3625                    function() {
3626                        showSubNav( $(this).attr("id") );
3627                    }, function() {
3628                        //showSubNav( $(this).attr("id") );
3629                    }
3630                );
3631
3632                $( ".dynamicTopNavAnchors" ).hover(
3633                    function() {
3634                        // console.log("master_v");
3635                        dynamicShowSubNav( $(this).attr("id") );
3636                    }, function() {
3637                        dynamicShowSubNav( $(this).attr("id") );
3638                        //showSubNav( $(this).attr("id") );
3639                    }
3640                );
3641
3642                if (navigator.userAgent.match(/Tablet|iPad/i))
3643                {   
3644                    $( ".dynamicTopNavAnchors" ).click(
3645                        function() {
3646                            dynamicShowSubNav( $(this).attr("id") );
3647                        }, function() {
3648                            // console.log("footer");
3649                            dynamicShowSubNav( $(this).attr("id") );
3650                            //showSubNav( $(this).attr("id") );
3651                        }
3652                    );
3653                }
3654                $(".SubNavs").hide('slow');
3655
3656                
3657                $(document).mouseup(function (e){
3658                    var container = $(".SubNavs");
3659                    if (!container.is(e.target) // if the target of the click isn't the container...
3660                        && container.has(e.target).length === 0) // ... nor a descendant of the container
3661                    {
3662                        container.hide();
3663                        if(container.parent().find('.fa').length > 0)
3664                            container.parent().find('.fa').removeClass('fa-caret-up').addClass('fa-caret-down');
3665                    }
3666                });
3667            });
3668        </script>
3668
3669
3670        
3670<script type="text/javascript">
3671
3672            /* Submit on Enter */
3673            $(document).ready(function(){
3674                $('#search').keydown(function(e){
3675                    if(e.keyCode == 13)
3676                    {
3677                        e.preventDefault();
3678                        setSearch($('#search').val());
3679                        return false;
3680                    }
3681                });
3682            });
3683
3684
3685           
3686			
3687			function getSessionSearch()
3688			{
3689				$.post(base_url + 'ajax/getSessionSearchData/',
3690                {
3691                    'ajax' : true
3692                },
3693                function(session)
3694                {
3695                    console.log(session);
3696                });
3697			}
3698			
3699			function setURLSearch(event, url, section, id, name)
3700			{
3701				event.preventDefault();
3702				console.log('url: ' + url);
3703				console.log('section: ' + section);
3704				console.log('id: ' + id);
3705				console.log('name: ' + name);
3706				
3707				$.post(base_url + 'ajax/setURLSearch/',
3708                {
3709                    'ajax' : true,
3710					'url' : url,
3711                    'section' : section,
3712                    'name' : name,
3713                    'id': id
3714                },
3715                function(newURL)
3716                {
3717					console.log(newURL);
3718                    window.location.href = base_url + 'shopping/productlist/' + newURL;
3719					/*
3720					var win = window.open(base_url + 'shopping/productlist/' + newURL, '_blank');
3721					if (win) {
3722						//Browser has allowed it to be opened
3723						win.focus();
3724					} else {
3725						//Browser has blocked it
3726						alert('Please allow popups for this website');
3727					}
3728					*/
3729					
3730                });
3731			}
3732			
3733			function removeMainSearch(url, section, id, name)
3734            {
3735				console.log('url: ' + url);
3736				console.log('section: ' + section);
3737				console.log('id: ' + id);
3738				console.log('name: ' + name);
3739                $.post(base_url + 'ajax/removeSearch/',
3740                {
3741                    'ajax' : true,
3742					'url' : url,
3743                    'section' : section,
3744                    'name' : name,
3745                    'id': id
3746                },
3747                function(newURL)
3748                {
3749					//console.log("master",newURL);
3750                    window.location.href = base_url + 'shopping/productlist/' + newURL;
3751                });
3752
3753            }
3754			
3755
3756			function fixedEncodeURIComponent (str) {
3757			  return encodeURIComponent(str).replace(/[!'()]/g, escape).replace(/\*/g, "%2A");
3758			}
3759
3760            function setSearch(search)
3761            {
3762                search = search.toLowerCase();
3763				encoded = fixedEncodeURIComponent(search);
3764                encoded = encoded.replace(/%20/g, "");
3765				//console.log('Search: ' + encoded);
3766                window.location.href = base_url + 'shopping/productlist/SE-'+ encoded;
3767            }
3768			
3769
3770            function removeHeaderSearch() {
3771                $.post(base_url + 'ajax/removeHeaderSearch/',{},
3772                function(newURL) {
3773                });
3774            }
3775
3776            
3777
3778
3779        </script>
3779
3780
3781
3782
3783<script>
3784		
3785		var getUrlParameter = function getUrlParameter(sParam) {
3786			var sPageURL = window.location.search.substring(1),
3787				sURLVariables = sPageURL.split('&'),
3788				sParameterName,
3789				i;
3790
3791			for (i = 0; i < sURLVariables.length; i++) {
3792				sParameterName = sURLVariables[i].split('=');
3793
3794				if (sParameterName[0] === sParam) {
3795					return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
3796				}
3797			}
3798		};
3799				
3800			var muoptions = {
3801
3802				  url: function(phrase) {
3803				condition = getUrlParameter('fltr');
3804				return_url = base_url + "motorcycle_ci/mu_predictive_search/" + condition;
3805				console.log(return_url);
3806				return return_url;
3807			  },
3808
3809			  getValue: "name",
3810			  
3811			  list: {
3812					maxNumberOfElements: 10,
3813					match: {
3814						enabled: false
3815					},
3816					onClickEvent: function() {
3817						var value = $("#mu_search").getSelectedItemData().name;
3818						console.log(value);
3819						$("#mu_search").val(value).trigger("change");
3820						//$("form.moto_search_form").submit();
3821						if($(window).width() > 767 && $("form#moto_search").length > 0){ 
3822                                $("form#moto_search").submit();
3823                        }else if($(window).width() <= 767 && $("form#moto_search_mobile").length > 0){
3824                                $("form#moto_search_mobile").submit();
3825                        }else{
3826                                $("form.moto_search_form").submit();
3827						}
3828						
3829					}
3830				},
3831
3832			  ajaxSettings: {
3833				dataType: "json",
3834				method: "POST",
3835				data: {
3836				  dataType: "json"
3837				}
3838			  },
3839
3840			  preparePostData: function(data) {
3841				data.phrase = $("#mu_search").val();
3842				return data;
3843			  },
3844
3845			  requestDelay: 400
3846			};
3847			
3848			$("#mu_search").easyAutocomplete(muoptions);
3849			
3850			var mumobileoptions = {
3851
3852			  url: function(phrase) {
3853				condition = getUrlParameter('fltr');
3854				return_url = base_url + "motorcycle_ci/mu_predictive_search/" + condition;
3855				console.log(return_url);
3856				return return_url;
3857			  },
3858
3859			  getValue: "name",
3860			  
3861			  list: {
3862					maxNumberOfElements: 10,
3863					match: {
3864						enabled: false
3865					},
3866					onClickEvent: function() {
3867						var value = $("#mu_search_mobile").getSelectedItemData().name;
3868						console.log(value);
3869						$("#mu_search").val(value).trigger("change");
3870						//$("form.moto_search_form").submit();
3871                        if($(window).width() > 767 && $("form#moto_search").length > 0){ 
3872                                $("form#moto_search").submit();
3873                        }else if($(window).width() <= 767 && $("form#moto_search_mobile").length > 0){
3874                                $("form#moto_search_mobile").submit();
3875                        }else{
3876                                $("form.moto_search_form").submit();
3877						}
3878						
3879						
3880					}
3881				},
3882
3883			  ajaxSettings: {
3884				dataType: "json",
3885				method: "POST",
3886				data: {
3887				  dataType: "json"
3888				}
3889			  },
3890
3891			  preparePostData: function(data) {
3892				data.phrase = $("#mu_search_mobile").val();
3893				return data;
3894			  },
3895
3896			  requestDelay: 400
3897			};
3898			
3899			$(".goBtn_b").click(function() {
3900				if($(window).width() > 767 && $("form#moto_search").length > 0)
3901					$("form#moto_search").submit();
3902				else if($(window).width() <= 767 && $("form#moto_search_mobile").length > 0)
3903					$("form#moto_search_mobile").submit();
3904				else
3905					$("form.moto_search_form").submit();
3906			});
3907			
3908			$("#mu_search_mobile").easyAutocomplete(mumobileoptions);
3909			
3910			var mumainoptions = {
3911
3912			  url: function(phrase) {
3913				condition = getUrlParameter('fltr');
3914				return_url = base_url + "motorcycle_ci/mu_predictive_search/" + condition;
3915				console.log(return_url);
3916				return return_url;
3917			  },
3918
3919			  getValue: "name",
3920			  
3921			  list: {
3922					maxNumberOfElements: 10,
3923					match: {
3924						enabled: false
3925					},
3926					onClickEvent: function() {
3927						var value = $("#major_unit_search").getSelectedItemData().name;
3928						console.log(value);
3929						$("#major_unit_search").val(value).trigger("change");
3930						$( "#major_unit_search_form" ).submit();
3931
3932					}
3933				},
3934
3935			  ajaxSettings: {
3936				dataType: "json",
3937				method: "POST",
3938				data: {
3939				  dataType: "json"
3940				}
3941			  },
3942
3943			  preparePostData: function(data) {
3944				data.phrase = $("#major_unit_search").val();
3945				return data;
3946			  },
3947
3948			  requestDelay: 400
3949			};
3950
3951			$("#major_unit_search").easyAutocomplete(mumainoptions);
3952			
3953			$("#mu_search_mobile").keydown(function(e){
3954				if(e.keyCode == 13)
3955				{
3956				  e.preventDefault();
3957				  console.log($("#mu_search_mobile").val());
3958				  $("#mu_search").val($("#mu_search_mobile").val());
3959				  $("form.moto_search_form").submit();
3960				  return false;
3961				}
3962			});
3963			
3964			
3965				var options = {
3966
3967				  url: function(phrase) {
3968					return base_url + "welcome/predictive_search";
3969				  },
3970
3971				  getValue: "name",
3972				  
3973				  list: {
3974						maxNumberOfElements: 10,
3975						match: {
3976							enabled: false
3977						},
3978						onClickEvent: function() {
3979							var value = $("#search").getSelectedItemData().name;
3980							console.log(value);
3981							setSearch(value);
3982						}
3983					},
3984
3985				  ajaxSettings: {
3986					dataType: "json",
3987					method: "POST",
3988					data: {
3989					  dataType: "json"
3990					}
3991				  },
3992
3993				  preparePostData: function(data) {
3994					data.phrase = $("#search").val();
3995					return data;
3996				  },
3997
3998				  requestDelay: 400
3999				};
4000			$("#search").easyAutocomplete(options);
4001			
4002			var mobileoptions = {
4003
4004				  url: function(phrase) {
4005					return base_url + "welcome/predictive_search";
4006				  },
4007
4008				  getValue: "name",
4009				  
4010				  list: {
4011						maxNumberOfElements: 10,
4012						match: {
4013							enabled: false
4014						},
4015						onClickEvent: function() {
4016							var value = $("#search_mobile").getSelectedItemData().name;
4017							console.log(value);
4018							setSearch(value);
4019						}
4020					},
4021
4022				  ajaxSettings: {
4023					dataType: "json",
4024					method: "POST",
4025					data: {
4026					  dataType: "json"
4027					}
4028				  },
4029
4030				  preparePostData: function(data) {
4031					data.phrase = $("#search_mobile").val();
4032					return data;
4033				  },
4034
4035				  requestDelay: 400
4036				};
4037				$("#search_mobile").easyAutocomplete(mobileoptions);
4038				
4039				$("form.moto_search_form").on("submit", function(e) {
4040					if ($("#search").val() !== undefined)
4041					{
4042						e.preventDefault();
4043						e.stopPropagation();
4044						console.log($("#search").val());
4045						setSearch($("#search").val());
4046					}
4047					
4048				});
4049				$("#search_mobile").keydown(function(e){
4050					if(e.keyCode == 13)
4051					{
4052					  e.preventDefault();
4053					  console.log($("#search_mobile").val());
4054					  $("#search").val($("#search_mobile").val());
4055					  $("form.moto_search_form").submit();
4056					  return false;
4057					}
4058				});
4059
4060				$("form.moto_search_form .goBtn_b").on("click", function(e) {
4061					if ($("#search").val() !== undefined)
4062					{
4063						e.preventDefault();
4064						e.stopPropagation();
4065						console.log($("#search").val());
4066						setSearch($("#search").val());
4067					}
4068				});
4069				</script>
4069<!-- Start Tracking -->
4070<!-- BEGIN: Google Trusted Stores -->
4071
4072
4073
4074
4075
4076
4077
4078<!-- Google Code for Remarketing Tag -->
4079<!--------------------------------------------------
4080Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ad$
4081--------------------------------------------------->
4082  
4082<script>
4083          var curr = "$";
4084      var curr_code = "";
4085        if(window.location.pathname == "/"){
4086      var google_tag_params = {
4087        ecomm_pagetype: 'home',
4088        ecomm_totalvalue: 0
4089      };
4090    }
4091    else if (window.location.pathname.indexOf('shopping/productlist') >= 0){
4092      var google_tag_params = {
4093        ecomm_pagetype: 'category',
4094      };
4095    }
4096    else if (window.location.pathname.indexOf('shopping/item') >= 0){
4097
4098      var pid = [];
4099      for(i=1 ;i<jQuery('select[name="question[]"] option').length ;i++){
4100        pid.push(jQuery('select[name="question[]"] option')[i].value)
4101      }
4102      var google_tag_params = {
4103        ecomm_prodid: pid,
4104        ecomm_pagetype: 'product',
4105        ecomm_totalvalue: parseFloat(jQuery('.prodPrice').text().replace(curr,'').replace(curr_code,''))
4106      };
4107    }
4108    else if (window.location.pathname == "/shopping/cart"){
4109
4110      var pid = [];
4111      jQuery('input[placeholder="Add Quanity"]').each(function(){
4112        pid.push(jQuery(this).attr('id'))
4113      })
4114
4115      var google_tag_params = {
4116        ecomm_prodid:  pid,
4117        ecomm_pagetype: 'cart',
4118        ecomm_totalvalue: parseFloat(jQuery('.cart_total h3').text().split(curr)[1])
4119      };
4120    }
4121    else if (window.location.href.indexOf('confirm') > 0 ){
4122      var google_tag_params = {
4123        ecomm_pagetype: 'purchase'
4124      };
4125    }
4126    else{
4127      var google_tag_params = {
4128        ecomm_pagetype: 'other',
4129        ecomm_totalvalue: 0
4130      };
4131    }
4132  </script>
4132
4133  <!-- Google Code for Remarketing Tag -->
4134  <!--------------------------------------------------
4135  Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
4136  --------------------------------------------------->
4137  
4137<script type="text/javascript">
4138    /* <![CDATA[ */
4139    var google_conversion_id = 1052220103;
4140    var google_custom_params = window.google_tag_params;
4141    var google_remarketing_only = true;
4142    /* ]]> */
4143  </script>
4143
4144  
4144<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
4145  </script>
4145
4146  <noscript>
4147    <div style="display:inline;">
4148      <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1052220103/?guid=ON&amp;script=0"/>
4149    </div>
4150  </noscript>
4151
4152
4153
4154<!-- Google Analytics -->
4155<script type="text/javascript">
vendor: 335 bytes, lines 4155-4161
4155
4156(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4157(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4158m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
4159})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
4160
4161ga('create', '
4161UA-12591015-1
vendor: 36 bytes, lines 4161-4162
4161', 'auto');
4162ga('send', 'pageview');
4163ga('require', 'ecommerce');
4164  </script>
4164
4165
4166<!-- End Google Analytics -->
4167<!-- End Tracking -->
4168
4169<script>
4170var csid = getCookie("csid");
4171if(csid == undefined){
4172  var csid = uuidv4();
4173  setCookie('csid',csid,365);  
4174}
4175
4176  
4177ga('set','userId',csid);
4178
4179function uuidv4() {
4180  return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c =>
4181    (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)
4182  );
4183}
4184function setCookie(name,value,days) {
4185    var expires = "";
4186    if (days) {
4187        var date = new Date();
4188        date.setTime(date.getTime() + (days*24*60*60*1000));
4189        expires = "; expires=" + date.toUTCString();
4190    }
4191    document.cookie = name + "=" + (value || "")  + expires + "; path=/";
4192}
4193function getCookie(name) {
4194    var nameEQ = name + "=";
4195    var ca = document.cookie.split(';');
4196    for(var i=0;i < ca.length;i++) {
4197        var c = ca[i];
4198        while (c.charAt(0)==' ') c = c.substring(1,c.length);
4199        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
4200    }
4201    return null;
4202}
4203function eraseCookie(name) {   
4204    document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
4205}
4206
4207
4208</script>
4208
4209
4210
4211
4212
4213
4214
4215
4216        
4216<script type="application/javascript">
4217    var model_val;
4218    var make_val;
4219    var year_val;
4220    var machine_val;
4221
4222
4223    function updateGarage()
4224    {
4225        var pathname = window.location.pathname;
4226        $('#update_garage_form').append('<input type="hidden" name="url" value="'+pathname +'" />');
4227        $('#update_garage_form').submit();
4228
4229    }
4230
4231    function executeMachine() {
4232        try {
4233            $("#machine").selectbox({
4234                onChange: function (val, inst) {
4235                    if (val != '') {
4236                        machine_val = val;
4237                        $.ajax(
4238                            {
4239                                async: false,
4240                                type: 'POST',
4241                                url: base_url +'ajax/getMake/',
4242                                data: {
4243                                    'machineId': val,
4244                                                                        'ajax': true
4245                                },
4246                                success: function (encodeResponse) {
4247                                    responseData = JSON.parse(encodeResponse);
4248                                    $('#make').selectbox("detach");
4249                                    var mySelect = $('#make');
4250                                    mySelect.html($('<option></option>').val('').html('-- Select Make --'));
4251
4252
4253                                    // JLB 09-28-17
4254                                    // It would be great if these were alphabetized, otherwise, it's a little stupid.
4255                                    var reverseMap = {};
4256                                    var arr = [];
4257                                    for (var x in responseData) {
4258                                        reverseMap[responseData[x]] = x;
4259                                        arr.push(responseData[x]);
4260                                    }
4261
4262                                    // now, sort it
4263                                    arr.sort(function (a, b) {
4264                                        a = a.toLowerCase();
4265                                        b = b.toLowerCase();
4266                                        if (a < b) {
4267                                            return -1
4268                                        } else if (a > b) {
4269                                            return 1;
4270                                        } else {
4271                                            return 0;
4272                                        }
4273                                    });
4274
4275                                    // Now, iterate and make them in alphabetical order
4276                                    for (var i = 0; i < arr.length; i++) {
4277                                        var text = arr[i];
4278                                        var val = reverseMap[text];
4279                                        mySelect.append(
4280                                            $('<option></option>').val(val).html(text)
4281                                        );
4282                                    }
4283
4284                                    executeMake();
4285                                    $('#make').selectbox("attach");
4286                                }
4287                            });
4288                    }
4289                    else {
4290                        $('#make').selectbox("detach");
4291                        $('#make').html($('<option></option>').val('').html('-- Make --'));
4292                        executeMake();
4293                        $('#make').selectbox("attach");
4294                    }
4295                    $('#model').selectbox("detach");
4296                    $('#year').selectbox("detach");
4297                    $('#model').html($('<option></option>').val('').html('-- Model --'));
4298                    executeModel();
4299                    $('#model').selectbox("attach");
4300                    $('#year').html($('<option></option>').val('').html('-- Year --'));
4301                    executeYear();
4302                    $('#year').selectbox("attach");
4303                    $('#add').attr('class', 'button_no');
4304
4305                }
4306            });
4307        } catch(err) {
4308            console.log("Error executeMachine: " + err);
4309        }
4310    }
4311
4312    function executeMake() {
4313        try {
4314
4315
4316            $("#make").selectbox({
4317                onChange: function (val, inst) {
4318                    if (val != '') {
4319                        make_val = val;
4320                        $.ajax(
4321                            {
4322                                async: false,
4323                                type: 'POST',
4324                                url: base_url +'ajax/getNewYear/',
4325                                data: {
4326                                    'makeId': val,
4327                                                                        'ajax': true
4328                                },
4329                                success: function (encodeResponse) {
4330                                    responseData = JSON.parse(encodeResponse);
4331
4332                                    var arr = [];
4333
4334                                    for (var x in responseData) {
4335                                        arr.push(responseData[x]);
4336                                    }
4337
4338                                    arr.sort(function (a, b) {
4339                                        return b - a
4340                                    });
4341                                    console.log(["Array in executeMake success", arr]);
4342                                    $('#year').selectbox("detach");
4343                                    var mySelect = $('#year');
4344                                    mySelect.html($('<option></option>').val('').html('-- Select Year --'));
4345                                    $.each(arr, function (val, text) {
4346                                        mySelect.append(
4347                                            $('<option></option>').val(text).html(text)
4348                                        );
4349                                    });
4350                                    executeYear();
4351                                    $('#year').selectbox("attach");
4352                                }
4353                            });
4354                    }
4355                    else {
4356                        $('#year').selectbox("detach");
4357                        $('#year').html($('<option></option>').val('').html('-- Model --'));
4358                        executeYear();
4359                        $('#year').selectbox("attach");
4360                    }
4361                    $('#model').selectbox("detach");
4362                    $('#model').html($('<option></option>').val('').html('-- Year --'));
4363                    executeModel();
4364                    $('#model').selectbox("attach");
4365                    $('#add').attr('class', 'button_no');
4366
4367                }
4368            });
4369        } catch(err) {
4370            console.log("Error executeMake: " + err);
4371        }
4372    }
4373
4374    function executeYear() {
4375        try {
4376
4377            $("#year").selectbox({
4378                onChange: function (val, inst) {
4379                    if (val != '') {
4380                        year_val = val;
4381                        $.ajax(
4382                            {
4383                                async: false,
4384                                type: 'POST',
4385                                url: base_url +'ajax/getNewModel/',
4386                                data: {
4387                                    'year': val, // $("#update_garage_form [name=year] option:selected").text(),
4388                                    'makeId': make_val,
4389                                                                        'ajax': true
4390                                },
4391                                success: function (encodeResponse) {
4392                                    responseData = JSON.parse(encodeResponse);
4393
4394                                    var arr = [];
4395                                    var reverseMap = {};
4396
4397                                    for (var x in responseData) {
4398                                        arr.push(responseData[x]);
4399                                        reverseMap[responseData[x]] = x;
4400                                    }
4401
4402                                    arr.sort(function (a, b) {
4403                                        a = a.toLowerCase();
4404                                        b = b.toLowerCase();
4405                                        if (a < b) {
4406                                            return -1
4407                                        } else if (a > b) {
4408                                            return 1;
4409                                        } else {
4410                                            return 0;
4411                                        }
4412                                    });
4413                                    $('#model').selectbox("detach");
4414                                    var mySelect = $('#model');
4415                                    mySelect.html($('<option></option>').val('').html('-- Select Model --'));
4416                                    for (var i = 0; i < arr.length; i++) {
4417                                        var text = arr[i];
4418                                        var val = reverseMap[text];
4419                                        mySelect.append(
4420                                            $('<option></option>').val(val).html(text)
4421                                        );
4422                                    }
4423                                    executeModel();
4424                                    $('#model').selectbox("attach");
4425                                }
4426                            });
4427                    }
4428                    else {
4429                        $('#model').selectbox("detach");
4430                        $('#model').html($('<option></option>').val('').html('-- Year --'));
4431                        executeModel();
4432                        $('#model').selectbox("attach");
4433                    }
4434                    $('#add').attr('class', 'button_no');
4435
4436                }
4437            });
4438        } catch(err) {
4439            console.log("Error executeYear: " + err);
4440        }
4441    }
4442
4443    function executeModel()
4444    {
4445        try {
4446
4447            $("#model").selectbox({
4448                onChange: function (val, inst) {
4449                    displayAdd(val);
4450                    updateGarage();
4451                }
4452            });
4453
4454        } catch(err) {
4455            console.log("Error executeModel: " + err);
4456        }
4457    }
4458
4459
4460    function displayAdd(val)
4461    {
4462        if(val != '')
4463            $('#add').attr('class', 'button' );
4464        else
4465            $('#add').attr('class', 'button_no' );
4466    }
4467
4468
4469    // JLB 09-27-17
4470    // I have no idea why these were run at the top before the functions were defined, and I fear running them does something bad...but it looks relatively safe.
4471    (function() {
4472        // used for fitment/garrage-part-number
4473        executeMachine();
4474        executeMake();
4475        executeModel();
4476        executeYear();
4477    })();
4478
4479</script>
4479
4480
4481    
4481<script type="application/javascript">
4482    function showVideo(vidId, vidTit, override_id, override_vdottle, id_extra) {
4483        if (!override_id) {
4484            override_id = "mainVideo";
4485        }
4486
4487        if (!override_vdottle) {
4488            override_vdottle = "vdottl";
4489        }
4490
4491        if (!id_extra) {
4492            id_extra = "";
4493        }
4494
4495        var mainVideo = $('#' + override_id).data('id');
4496        //var mainTitle = $('.vdottl').html();
4497        $('.' + override_vdottle).html(vidTit);
4498        $("#" + override_id)[0].src = "https://www.youtube.com/embed/" + vidId + "?rel=0&autoplay=1";
4499        $('#' + override_id).data('id', vidId);
4500        //$('.shwVidHalf').show();
4501        $('#' + vidId + id_extra).hide();
4502        $('#' + mainVideo + id_extra).show();
4503        //$("#mainVideo")[0].src = "https://www.youtube.com/embed/"+vidId+"?rel=0&autoplay=1";
4504    }
4505</script>
4505
4506        
4506<script>
4507            //cntnr-ttl
4508            //if( "cart" == "index" ) {
4509            $('.grghdng').html($('.cntnr-ttl').html());
4510            $('.cntnr-ttl').addClass('ttldspl');
4511            //} else {
4512            //	$('.cntnr-ttl').removeClass('ttldspl');
4513            //}
4514            //if (!$('.grghdng').is(':empty')){
4515            //	$('.grghdng').addClass('mrgn60');
4516            //} else {
4517            //	$('.grghdng').removeClass('mrgn60');
4518            //}
4519        </script>
4519
4520        
4520<script>
4521(function(d, s, id) {
4522  var js, fjs = d.getElementsByTagName(s)[0];
4523  if (d.getElementById(id)) return;
4524  js = d.createElement(s); js.id = id;
4525  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5&appId=1038872762878770";
4526  fjs.parentNode.insertBefore(js, fjs);
4527}(document, 'script', 'facebook-jssdk'));
4528</script>
4528
4529
4530        
4530<script>
4531            var url = window.location.href;
4532
4533            var resetAll = function() {
4534}
4535
4536switch (url) {
4537
4538
4539}
4540        </script>
4540
4541        
4541<script type="application/javascript" src="https://www.hondaws.com/custom.js" ></script>
4541
4542
4543                </body>
4544</html>

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.