jQuery Tabs and Cookie

jQuery Tabs and Cookie

Hi, I've installed the jQuery UI Tabs plugin, on this page for example:  http://onomadesign.com/wordpress/identity-design/access-energy-corporation/

Now, there are 3 tabs: by name, date and industry. When a user picks a project from the 'industry' tab, I want it to stay open when he gets on that page. So I thought, this calls for that Cookie plugin.

I tried a lot of different things, but can't get it to work..

This is my code for the UI Tabs plugin: 

  1.   $(document).ready(function(){
  2. $(function () {
  3.     var tabContainers = $('div.sc_menu_wrapper > div');
  4.     
  5.     $('a.tab').click(function () {
  6.         tabContainers.hide().filter(this.hash).show();
  7.         
  8.         $('a.tab').removeClass('selected');
  9.         $(this).addClass('selected');
  10.         
  11.         return false;
  12.     }).filter(':first').click();
  13. });});

So, what should I do with the Cookie plugin for it to remember the last tab?

Thank you in advance!