How to toggle elements using pure JavaScript and CSS. Change inner html and attributes like titles without jQuery. Use cookies to remember current behavior.