I am using a great piece of code here to show hide elements. So far it works perfectly but need cookie functionality to work, which is baffling me.

The show hide code is as follows:
...