JQuery UI Tabs

JQuery UI Tabs

Hello everyone, I'm new to this and I love the product!!
 
I just added the Tabs plugin to my asp.net app.  Simple, working well,.
However I got a requirement that from C# code behind I need to set an active tab based on a boatload of logical events thru the app
 
Example:
  My control has 3 tabs
  C# code:   tab3.selected = true      /// this is just to help you understand my issue.

I've tried some JavaScript / JQuery methods, no luck.

anyone have any methods / tricks to do this?

Thanks in advance
Robert