I got this working now by adding the javascript code to switch tabs directly to the document and hence being processed prior to any of the other routines.
$('#tabs a').click(function (e) {
e.preventDefault();
$(this).tab('show');
});
I have put this in a check to ensure we are not in the LiveSite since I believe the Kentico scripts are loaded in all other ViewMode's.