On post pages, Menu Bar Search box doesnt open when search icon is clicked. (it works on main page)
Drupal.behaviors.advocateTheme... is only running on the main page.
If that is by design, the code that sets the click event listeners can be set in a document ready block instead of Drupal.behaviors... See Working Code below. (just like the section above it setting the load resize scroll event handlers)
(I'm using chrome on win10x64)