$(function() {
$( "#tabs" ).tabs( "option", "active", 2 );
...