Just using $URLSegment returns the name of the page you're currently on. In need the name of the section each page belongs to, the Level1 page names.
I'll see if the code from NathanB works later today, i'll report back here if it's the right solution.
Thanks for the help everyone!