jQuery UI tabs - Remember currently selected tab after refresh

jQuery UI tabs - Remember currently selected tab after refresh

I'm using the jQuery UI tab widget.  Inside my tabs I have sorting links that pass a variable to the URL and reloads the page.  

I'm wondering how I might be able to select the currently selected tab when the page reloads so the user doesn't have to re-navigate back to that tab.  Is this possible?  Maybe I could use a URL variable to select the correct tab?  Any help is appreciated.  Please keep in mind I'm no Javascript expert.

Thanks!!