$(document).ready(function () 
    {
		var $tabs = $('#tabs').tabs(); // first tab selected

		$('.regnav #reg1').click(function() { // bind click event to link
		    $tabs.tabs('select', 1); // switch to third tab
		});
		$('.regnav #reg2').click(function() { // bind click event to link
		    $tabs.tabs('select', 2); // switch to third tab
		});
    });
