Here is a quick guide on how to do this but fair warning - it will not work with dropdown menu items. Someone with more JavaScript knowledge will have to help with that
We're going to add some custom code to a Page Layout. This will ensure that the code takes effect on every page within that Layout. You are free to add this to as many Layouts as necessary.