Code determines which section of the site is current and applies the relevant classes to the menu items