Main navigation menu to anchor links not highlighting anchor links
<p>Hi Everyone,</p>

<p>I have a main menu navigation that has secondary links to a page with anchor links that open up content below it using smoothScroll. I’ve been able to get the anchor links on the page to highlight after being selected and the secondary links in the main menu nav to go to the correct content, but if I select one of the secondary links from the main navigation [under 'Betts Lake'] the anchor link image [e.g. Image of House and name of house type Crane, Heron, Peregrine, Redtail] either doesn’t highlight or shows the highlight on the secondary link in the main menu nav of the "Betts Lake" dropdown. I’m sure I’m missing something simple but I can’t see it. c1992.paas2.tx.modxcloud.com/index.php?id=6</p>

<p>This is my jQuery:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;script&gt;
$(document).ready(function(){
  // Add smooth scrolling to all links
  $("a").on('click', function(event) {
    // Make sure this.hash has a value before overriding default behavior
    if (this.hash !== "") {
      // Prevent default anchor click behavior
      event.preventDefault();
      // Store hash
      var hash = this.hash;
      // Using jQuery's animate() method to add smooth page scroll
      // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
      $('html, body').animate({
        scrollTop: $(hash).offset().top
      }, 800, function(){
   
        // Add hash (#) to URL when done scrolling (default click behavior)
        window.location.hash = hash;
      });
    } // End if
  });
   $('#layoutbg a,.navnew2 ul li a').click(function(){
         $('#layoutbg a').removeClass('active');
         $(this).addClass('active');
    });
});
&lt;/script&gt;</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;

  &lt;!-- Basic Page Needs
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;title&gt;Colorado Golf Club - Betts Lake&lt;/title&gt;
  &lt;meta name="description" content="Meta Description Placeholder"&gt;

  &lt;!-- Mobile Specific Metas
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;


  &lt;!-- CSS
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
  &lt;link rel="stylesheet" href="assets/css/normalize.css"&gt;
  &lt;link rel="stylesheet" href="assets/css/skeleton.css"&gt;
  &lt;link rel="stylesheet" href="assets/fonts/MyFontsWebfontsKit.css"&gt;

  &lt;!-- Favicon
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
  &lt;link rel="icon" type="image/png" href="assets/images/favicon.png"&gt;
  
  &lt;style&gt;
#bettsactive .options:not(:target) {display: none;}
#bettsactive .options:target {display: block; outline: none;}
&lt;/style&gt;

&lt;/head&gt;
&lt;body&gt;

  &lt;!-- Primary Page Layout
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
     &lt;div class="u-max-full-width" id="topheader"&gt;
      &lt;div class="container"&gt;
       &lt;div class="row"&gt;
        &lt;p id="location"&gt;Parker, Colorado&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;303&amp;nbsp;840&amp;nbsp;5400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="mailto:info@coloradogolfclub.com" target="_blank"&gt;&lt;img src="assets/images/mail.png" alt="email" id="mail"&gt;&lt;/a&gt;
        &lt;/p&gt;
       &lt;/div&gt;
      &lt;/div&gt;
     &lt;/div&gt;
     &lt;div class="u-max-full-width"&gt;
      &lt;a href="index.php?id=1" title="Colorado Golf Club Home Page" id="header"&gt;Colorado Golf Club&lt;/a&gt;
      &lt;div class="container"&gt;
       &lt;div class="row"&gt; 
       &lt;div class="nav"&gt;
        &lt;div class="twelve columns" id="bettsnav"&gt;
      &lt;ul class="topnav" id="topnav"&gt;
       &lt;li class="searchnewtop"&gt;
        &lt;form class="sisea-search-form" action="index.php?id=8" method="post" name="searchform" id="searchform"&gt;
       &lt;fieldset&gt;
        &lt;input type="text" name="search" id="search" value="" placeholder=""/&gt;
        &lt;button class="icon-search" type="submit"&gt;&lt;/button&gt;
       &lt;/fieldset&gt;
       &lt;/form&gt;
       &lt;/li&gt;       
       &lt;li class="navnewspace"&gt;&lt;a href="#"&gt;&amp;nbsp;&lt;/a&gt;&lt;/li&gt;
       &lt;li class="navnew1"&gt;&lt;a href="index.php?id=4"&gt;CUSTOM HOME SITES&lt;/a&gt;&lt;/li&gt;
       &lt;li class="navnew2"&gt;&lt;a href="index.php?id=6"&gt;BETTS LAKE&lt;/a&gt;
        &lt;ul&gt;
         &lt;li&gt;&lt;a href="index.php?id=6#option1"&gt;CRANE&lt;/a&gt;&lt;/li&gt;
         &lt;li&gt;&lt;a href="index.php?id=6#option2"&gt;REDTAIL&lt;/a&gt;&lt;/li&gt;
         &lt;li&gt;&lt;a href="index.php?id=6#option3"&gt;PEREGRINE&lt;/a&gt;&lt;/li&gt;
         &lt;li&gt;&lt;a href="index.php?id=6#option4"&gt;HERON&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;/li&gt;
       &lt;li class="navnew3"&gt;&lt;a href="index.php?id=5"&gt;COLORADO GOLF CLUB LIVING&lt;/a&gt;
        &lt;ul&gt;
         &lt;li&gt;&lt;a href="index.php?id=5#galleryslider"&gt;IMAGE GALLERY&lt;/a&gt;&lt;/li&gt;
         &lt;li&gt;&lt;a href="index.php?id=5#mastermap"&gt;COMMUNITY MAP&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;/li&gt;
       &lt;li class="navnew4"&gt;&lt;a href="index.php?id=3"&gt;ABOUT&lt;/a&gt;
        &lt;ul&gt;
         &lt;li&gt;&lt;a href="index.php?id=5#galleryslider"&gt;IMAGE GALLERY&lt;/a&gt;&lt;/li&gt;
         &lt;li&gt;&lt;a href="index.php?id=5#mastermap"&gt;COMMUNITY MAP&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;/li&gt;
       &lt;li class="searchnew"&gt;
        &lt;form class="sisea-search-form" action="index.php?id=8" method="post" name="searchform" id="searchform"&gt;
       &lt;fieldset&gt;
        &lt;input type="text" name="search" id="search" value="" placeholder=""/&gt;
        &lt;button class="icon-search" type="submit"&gt;&lt;/button&gt;
       &lt;/fieldset&gt;
       &lt;/form&gt;
       &lt;/li&gt;
       &lt;li class="icon"&gt;
    &lt;a href="javascript:void(0);" style="font-size:1.1em;width:40px;height:40px;text-align:center;padding-top:10px;margin-top:-10px;" onclick="myFunction()"&gt;&lt;b&gt;☰&lt;/b&gt;&lt;/a&gt;
  &lt;/li&gt;
      &lt;/ul&gt;
     &lt;/div&gt;
    &lt;/div&gt;
      &lt;/div&gt;
     &lt;/div&gt;
     &lt;/div&gt;
&lt;div class="u-max-full-width" id="videotop"&gt;
    &lt;div class="row"&gt;
      &lt;div class="twelve columns" id="video"&gt;
       &lt;div id="bettsbannertop"&gt;
        &lt;img src="assets/images/betts-cover.jpg" style="width:100%;" alt="Betts Lake - Colorado Golf Club"&gt;
      &lt;/div&gt;
      &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="u-max-full-width"&gt;
      &lt;div class="container"&gt;
       &lt;div class="row"&gt;
      &lt;div class="twelve columns" id="custombodytop"&gt;
       &lt;h2&gt;Custom Appointed Luxury Homes at Betts Lake&lt;/h2&gt;
       &lt;p&gt;Combine the new trend in luxury living with smaller, more efficient homes for a lock-and-leave lifestyle. Colorado Golf Club's custom-appointed homes sit on half- to one-acre lots surrounding Betts Lake.  &lt;/p&gt;&lt;p&gt;Choose from four floor plans, all featuring comfortable main living, spacious lower levels, and outdoor rooms, decks, and patios. All within the gates of one of America's most acclaimed golf communities. &lt;br&gt; &lt;/p&gt;  &lt;p&gt;Award-winning architect Karen Keating of TKP Architects has combined all the hallmarks of fine living—richly appointed spaces for everyday life, and modern amenities for entertaining guests. A smaller footprint with numerous design configuration options allows for a luxurious yet low-maintenance lifestyle.&lt;/p&gt;    &lt;p&gt;Homes start at $1,080,000 and range from 2,648 to 4,308 square feet.&lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;/div&gt;
      &lt;div class="u-max-full-width" id="bettsbodytopbottom"&gt;
       &amp;nbsp;&amp;nbsp;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;div class="container"&gt;
 &lt;div class="row"&gt;
  &lt;div class="twelve columns" id="homebody"&gt;
   &lt;h3 id="featuredprop"&gt;CHOOSE A HOME PLAN&lt;/h3&gt;
  &lt;/div&gt;
 &lt;/div&gt;
&lt;/div&gt;

&lt;div class="u-max-full-width"&gt;
&lt;div class="container" id="bettsboxes"&gt;
 &lt;div class="row"&gt;
  &lt;div class="three columns"&gt;
   &lt;span id="layoutbg" class="option1"&gt;&lt;a href="#option1" class="smoothScroll"&gt;&lt;img src="assets/images/crane.jpg" alt="Betts Lake Home Layout 1" style="width:100%;background-color:transparent;" /&gt;&lt;span id="homelayout1text"&gt;&lt;h3&gt;Crane&lt;/h3&gt;&lt;/span&gt;&lt;span id="homelayout1bottomhover"&gt;&lt;img src="assets/images/layout-bottom.png" style="width:100%;"&gt;&lt;img src="assets/images/layout-bottom-hover.png" style="width:100%;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;
  &lt;/div&gt;
  &lt;div class="three columns"&gt;
   &lt;span id="layoutbg" class="option2"&gt;&lt;a href="#option2" class="smoothScroll"&gt;&lt;img src="assets/images/redtail.jpg" alt="Betts Lake Home Layout 2" style="width:100%;background-color:transparent;" /&gt;&lt;span id="homelayout2text"&gt;&lt;h3&gt;Redtail&lt;/h3&gt;&lt;/span&gt;&lt;span id="homelayout2bottomhover"&gt;&lt;img src="assets/images/layout-bottom.png" style="width:100%;"&gt;&lt;img src="assets/images/layout-bottom-hover.png" style="width:100%;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;
  &lt;/div&gt;
  &lt;div class="three columns"&gt;
   &lt;span id="layoutbg" class="option3"&gt;&lt;a href="#option3" class="smoothScroll"&gt;&lt;img src="assets/images/peregrine.jpg" alt="Betts Lake Home Layout 3" style="width:100%;background-color:transparent;" /&gt;&lt;span id="homelayout3text"&gt;&lt;h3&gt;Peregrine&lt;/h3&gt;&lt;/span&gt;&lt;span id="homelayout3bottomhover"&gt;&lt;img src="assets/images/layout-bottom.png" style="width:100%;"&gt;&lt;img src="assets/images/layout-bottom-hover.png" style="width:100%;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;
  &lt;/div&gt;
  &lt;div class="three columns"&gt;
   &lt;span id="layoutbg" class="option4"&gt;&lt;a href="#option4" class="smoothScroll"&gt;&lt;img src="assets/images/heron.jpg" alt="Betts Lake Home Layout 4" style="width:100%;background-color:transparent;" /&gt;&lt;span id="homelayout4text"&gt;&lt;h3&gt;Heron&lt;/h3&gt;&lt;/span&gt;&lt;span id="homelayout4bottomhover"&gt;&lt;img src="assets/images/layout-bottom.png" style="width:100%;"&gt;&lt;img src="assets/images/layout-bottom-hover.png" style="width:100%;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;
  &lt;/div&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;div class="row"&gt;
&lt;div id="bettsactive"&gt;
 &lt;div id="option1" class="options"&gt;
  &lt;span id="betts1image"&gt;&lt;img src="assets/images/peregrine-photo-body.jpg" alt="The Crane Layout" style="width:100%;" /&gt;&lt;/span&gt;
  &lt;span id="option1bg"&gt;
  &lt;span id="betts1"&gt;&lt;h3&gt;THE CRANE&lt;/h3&gt;
  &lt;p&gt;The Crane home features a dynamic floor plan that allows you to create the perfect setting for both private living and exquisite entertaining. The central entryway divides the private master suite and study from the active living areas, with beautiful views and inviting outdoor spaces. An open interior accommodates a lifetime’s worth of furniture, art and kitchenware. The lower level provides a vast entertaining space or multiple bedroom suites for friends and family. You have the flexibility to customize your home for your lifestyle. &lt;/p&gt;&lt;/span&gt;
  &lt;span id="betts1specs"&gt;&lt;h5&gt;FEATURES&lt;/h5&gt;
  &lt;p&gt;3,582 to 4,243 square feet&lt;/p&gt;  &lt;p&gt;3 to 5 Bedrooms&lt;/p&gt;  &lt;p&gt;3 to 7 Bathrooms&lt;/p&gt;  &lt;p&gt;3- to 4-Car Garage&lt;/p&gt;    &lt;p&gt;From $1,340,000 &lt;/p&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span id="bettslayout"&gt;&lt;span id="betts1image2a"&gt;&lt;img src="assets/images/crane_lower_2.png" alt="The Crane Layout" style="width:100%;" /&gt;&lt;/span&gt;&lt;span id="betts1image2b"&gt;&lt;img src="assets/images/crane_main-2.png" alt="The Crane Layout" style="width:100%;" /&gt;&lt;/span&gt;&lt;/span&gt;
 &lt;/div&gt; &lt;!-- end option 1 --&gt;
 &lt;div id="option2" class="options"&gt;
  &lt;span id="betts2image"&gt;&lt;img src="assets/images/peregrine-photo-body.jpg" alt="The Crane Layout" style="width:100%;" /&gt;&lt;/span&gt;
  &lt;span id="option1bg"&gt;
  &lt;span id="betts2"&gt;&lt;h3&gt;THE REDTAIL&lt;/h3&gt;
  &lt;p&gt;The Redtail design is for those who have an appetite for alternatives and finishes. With an optional upper level and a range of configurations on the main and lower levels, this home can become the perfect empty-nester ranch, a six- or seven-bedroom home suitable for a young family, or a second home accommodating multiple couples and guest parties. A casita option allows for a guesthouse or an apartment for in-laws or grown children. Entertain with a formal dining room or enjoy the intimacy of a breakfast nook just off the kitchen. Covered and uncovered deck spaces maximize outdoor living.&lt;/p&gt;&lt;/span&gt;
  &lt;span id="betts2specs"&gt;&lt;h5&gt;FEATURES&lt;/h5&gt;
  &lt;p&gt;3,210 to 4,456 square feet&lt;/p&gt;  &lt;p&gt;3 to 6 Bedrooms&lt;/p&gt;  &lt;p&gt;3 to 7 Bathrooms&lt;/p&gt;  &lt;p&gt;2- to 4-Car Garage&lt;/p&gt;    &lt;p&gt;From $1,190,000&lt;/p&gt;
  &lt;/span&gt;&lt;/span&gt;
  &lt;span id="bettslayout"&gt;&lt;span id="betts2image2a"&gt;&lt;img src="assets/images/redtail_lower-2.png" alt="The Crane Layout" style="width:100%;" /&gt;&lt;/span&gt;&lt;span id="betts2image2b"&gt;&lt;img src="assets/images/redtail_main-2.png" alt="The Crane Layout" style="width:100%;" /&gt;&lt;/span&gt;&lt;/span&gt;
 &lt;/div&gt; &lt;!-- end options2 --&gt;
 &lt;div id="option3" class="options"&gt;
  &lt;span id="betts3image"&gt;&lt;img src="assets/images/peregrine-photo-body.jpg" alt="The Crane Layout" style="width:100%;" /&gt;&lt;/span&gt;
  &lt;span id="option1bg"&gt;
  &lt;span id="betts3"&gt;&lt;h3&gt;THE PEREGRINE&lt;/h3&gt;
  &lt;p&gt;Designed for casual living, the Peregrine home opens with a dynamic entry space that showcases the open interior and outdoor rooms. Natural light streams from all directions, creating an alluring sense of space. This home is perfect for entertaining friends while allowing for serenity and privacy in the main floor master suite. The lower level offers an easy flow to the outdoors and a flexible space for incorporating entertaining areas and guest rooms.&lt;/p&gt;&lt;/span&gt;
  &lt;span id="betts3specs"&gt;&lt;h5&gt;FEATURES&lt;/h5&gt;
  &lt;p&gt;3,482 to 3,590 square feet&lt;/p&gt;  &lt;p&gt;3 to 5 Bedrooms&lt;/p&gt;  &lt;p&gt;3 to 4 Bathrooms&lt;/p&gt;  &lt;p&gt;3- to 4-Car Garage&lt;/p&gt;    &lt;p&gt;From $1,260,000&lt;/p&gt;&lt;p&gt;The Peregrine offers endless choices for customizing your home, from additional bedroom suites to outdoor entertainment areas. &lt;a href="https://c1992.paas2.tx.modxcloud.com/index.php?id=3"&gt;Contact us&lt;/a&gt; for more information about custom features at Betts Lake. &lt;br&gt;&lt;/p&gt;
  &lt;/span&gt;&lt;/span&gt;
  &lt;span id="bettslayout"&gt;&lt;span id="betts3image2a"&gt;&lt;img src="assets/images/peregrine-lower-2.png" alt="The Crane Layout" style="width:100%;" /&gt;&lt;/span&gt;&lt;span id="betts3image2b"&gt;&lt;img src="assets/images/peregrine-main-2.png" alt="The Crane Layout" style="width:100%;" /&gt;&lt;/span&gt;&lt;/span&gt; 
 &lt;/div&gt; &lt;!-- end option 3 --&gt;
 &lt;div id="option4" class="options"&gt;
  &lt;span id="betts4image"&gt;&lt;img src="assets/images/peregrine-photo-body.jpg" alt="The Crane Layout" style="width:100%;" /&gt;&lt;/span&gt;
  &lt;span id="option1bg"&gt;
  &lt;span id="betts4"&gt;&lt;h3&gt;THE HERON&lt;/h3&gt;
  &lt;p&gt;The Heron is the most compact of the Betts Lake home designs. Efficient and well organized, this design maximizes all the interior and external spaces to create comfortable living spaces and relaxation. Windows and long, diagonal view corridors fill the interior with natural light and an expansive feel. A comfortable and private study provides space for work and reflection, and lower level finish options allow you to integrate guest rooms or entertaining spaces.&lt;/p&gt;&lt;/span&gt;
  &lt;span id="betts4specs"&gt;&lt;h5&gt;FEATURES&lt;/h5&gt;
  &lt;p&gt;2,965 to 3,300 square feet&lt;/p&gt;&lt;p&gt;2 to 4 bedrooms&lt;/p&gt;&lt;p&gt;3 to 4 bathrooms&lt;/p&gt;&lt;p&gt;3- to 4-car garage&lt;/p&gt;&lt;p&gt;From $1,080,000&lt;/p&gt;&lt;p&gt;The Heron offers endless choices for customizing your home, from additional bedroom suites to outdoor entertainment areas. &lt;a href="index.php?id=3"&gt;Contact us&lt;/a&gt; for more information about custom features at Betts Lake. &lt;/p&gt;&lt;/span&gt;&lt;/span&gt;
  &lt;span id="bettslayout"&gt;&lt;span id="betts4image2a"&gt;&lt;img src="assets/images/heron-lower-2.png" alt="The Crane Layout" style="width:100%;" /&gt;&lt;/span&gt;&lt;span id="betts4image2b"&gt;&lt;img src="assets/images/heron-main-2.png" alt="The Crane Layout" style="width:100%;" /&gt;&lt;/span&gt;&lt;/span&gt;
 &lt;/div&gt; &lt;!-- end option 4 --&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="bettsseo"&gt;
 &lt;div class="container"&gt;
  &lt;div class="row"&gt;
   &lt;h4&gt;Design Center&lt;/h4&gt;
   &lt;p&gt;Exceptional design is high priority at Betts Lake at Colorado Golf Club, and with our onsite design center, homeowners can plan their dream home and personalize their interiors easily and conveniently. &lt;/p&gt;&lt;p&gt;The design center is stocked with the most current finishes, including options for tile, carpet, hardwood, lighting, plumbing, millwork, hardware, and more. Available luxury brand names include Sub-Zero, Wolf, Tharpe, Brizo, Kohler, Glazzio and Hubbardton Forge. Our design coordinator will facilitate an easy design process with options that reflect the latest trends as well as timeless classics and impeccable quality. &lt;/p&gt;
  &lt;/div&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;div class="container"&gt;
 &lt;div class="row"&gt;
  &lt;div class="five columns" id="bettsbottomseo"&gt;
   &lt;h4&gt;Lakeside Living&lt;/h4&gt;
   &lt;p&gt;Within the gates one of America’s most acclaimed golf communities, you’ll discover a country-club lifestyle complete with lakeside homes, meandering paths, abundant wildlife, and dramatic mountain views. Choose from four floor plans, all featuring comfortable main level living, spacious lower levels, and outdoor rooms, decks, and patios.&lt;/p&gt;
   &lt;p&gt;&amp;nbsp;&lt;/p&gt;
  &lt;/div&gt;
  &lt;div class="seven columns" id="bettsbottomseo"&gt;
   &lt;img src="assets/images/betts_map_160912.png" alt="Betts Lake Lot Premiums" style="width:100%;" /&gt;
  &lt;/div&gt;
 &lt;/div&gt;
&lt;/div&gt;
 &lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div id="footer"&gt;
 &lt;div class="container"&gt;
  &lt;div class="row"&gt;
   &lt;div class="twelve columns"&gt;
    &lt;div class="social"&gt;
    &lt;ul&gt;
     &lt;li&gt;&lt;a href="http://www.facebook.com/" target="_blank"&gt;&lt;img src="assets/images/facebook.png"&gt;&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href="http://www.instagram.com/" target="_blank"&gt;&lt;img src="assets/images/instagram.png"&gt;&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href="http://ww.twitter.com/" target="_blank"&gt;&lt;img src="assets/images/twitter.png"&gt;&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href="http://www.vimeo.com/" target="_blank"&gt;&lt;img src="assets/images/vimeo.png"&gt;&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a href="http://plus.google.com/" target="_blank"&gt;&lt;img src="assets/images/google%2B.png"&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/div&gt;
    &lt;div class="policy"&gt;
     &lt;ul&gt;
      &lt;li&gt;Terms&lt;/li&gt;|
      &lt;li&gt;Privacy Policy&lt;/li&gt;|
      &lt;li&gt;&lt;a href="index.php?id=3"&gt;Contact&lt;/a&gt;&lt;/li&gt;
     &lt;/ul&gt;
    &lt;/div&gt;
    &lt;p&gt;©2016, Colorado Golf Club&lt;/p&gt;
   &lt;/div&gt;
  &lt;/div&gt;
 &lt;/div&gt;
&lt;/div&gt;
 &lt;/div&gt;
 

&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"&gt;&lt;/script&gt;
&lt;script&gt;
$(document).ready(function(){
  // Add smooth scrolling to all links
  $("a").on('click', function(event) {
    // Make sure this.hash has a value before overriding default behavior
    if (this.hash !== "") {
      // Prevent default anchor click behavior
      event.preventDefault();
      // Store hash
      var hash = this.hash;
      // Using jQuery's animate() method to add smooth page scroll
      // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
      $('html, body').animate({
        scrollTop: $(hash).offset().top
      }, 800, function(){
   
        // Add hash (#) to URL when done scrolling (default click behavior)
        window.location.hash = hash;
      });
    } // End if
  });
   $('#layoutbg a,.navnew2 ul li a').click(function(){
         $('#layoutbg a').removeClass('active');
         $(this).addClass('active');
    });
});
&lt;/script&gt;

&lt;script&gt;
function myFunction() {
    var x = document.getElementById("topnav");
    if (x.className === "topnav") {
        x.className += " responsive";
    } else {
        x.className = "topnav";
    }
}
&lt;/script&gt;

&lt;!-- End Document
  –––––––––––––––––––––––––––––––––––––––––––––––––– --&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
</div>
</div>
</p>

<p>Any help or assistance you can provide would be so greatly appreciated!</p>