title: CSS style switcher disabled in Safari 5.1
body: <p>I have this jQuery based CSS style switcher in my webpage.  When I updated the browser to Safari 5.1 this script stopped working. I looked around and saw <a href="https://discussions.apple.com/thread/3215084?start=0&amp;tstart=0" rel="nofollow">this</a> apple discussion page and the cause was alternate stylesheets has been disabled in Safari 5.1.  Can anyone help me to work around this issue?  I am not a programmer so I cannot figure this out.</p>
  
  <p>Author's page <a href="http://www.kelvinluck.com/assets/jquery/styleswitch/toggle.html" rel="nofollow">http://www.kelvinluck.com/assets/jquery/styleswitch/toggle.html</a></p>
  
  <pre><code>(function($)
  {
      $(document).ready(function() {
          $('.styleswitch').click(function()
          {
              switchStylestyle(this.getAttribute("rel"));
              return false;
          });
          var c = readCookie('style');
          if (c) switchStylestyle(c);
      });
  
      function switchStylestyle(styleName)
      {
          $('link[rel*=style][title]').each(function(i) 
          {
              this.disabled = true;
              if (this.getAttribute('title') == styleName) this.disabled = false;
          });
          createCookie('style', styleName, 365);
      }
  })(jQuery);
  </code></pre>