$(document).ready(function() {
	$('#tabcontrol > ul').tabs({selected: -1 }); //0 selects the first tab. etc.
	$('#tabcontrol > ul > li a').click(function(){
		$('#tabcontrol > ul').tabs({selected: 0 });		
	});
	$('#tabcontrolsub > ul').tabs({ selected: 0 }); //0 selects the first tab, 1 the second, and 2 the third. -1 means none
});

