title: jQuery hide and show element and remember using cookie
body: <p>I have the following fiddle here: <a href="http://jsfiddle.net/9jN8L/" rel="nofollow">http://jsfiddle.net/9jN8L/</a></p>
  
  <p>The idea is that sidebar will be shown and if the user clicks the link then it will hide and a cookie will be created and remember that they have hidden it. Should they click it again it will show the sidebar again and delete the cookie (this is why the code is duplicated inside the toggle method functions)</p>
  
  <p>However the sidebar is hidden by default and it doesn't show when the link is clicked after it has been hidden... Can anyone help? Thanks</p>