If you want to be fancy and have html5 support, I would probably make each link similar to this:
<a class="tabLink" data-href="#tabs-1-4">BUY NOW</a>
<a class="tabLink" data-href="#tabs-2-4">BUY NOW</a>
Script (works for all links at once):
var jqTabHost = ".whateverTheNameOfYourTabElementIs";
$('a.tabLink').click(function() {
//Something like (not sure exactly):
var href = $(this).data('href');
//EITHER
$('a[href=' + href + ']').click();
//OR (better)
$(jqTabHost).tabs( "load", href.substring(1) );
return false;
});
Without custom attribute support you could use href instead of data-href, and munge the href so it's not quite the same.
The idea behind this is keeping the code as short as possible and separating the data (where something links, in HTML) from the behavior (how to make that link work, in script).