+ $('div.tab').hide();
+
+ /* See if that tab has been rendered to the page. */
+ tabname = '#tab-' + $(this).attr('id');
+ tab = $(tabname);
+ if(tab.children().length < 1) {
+ /* If not, return true so that we actually reload. */
+ tab.load($(this).attr('href') + ' ' + tabname + '> *');
+ }
+ tab.show();