function setTab(rootId, tabId, href) {
  var rootDiv = $('#' + rootId);
  var activeAnchor = $('#' + tabId);
  var activeTab = $('#' + tabId + 'Tab');
  var moreLink = rootDiv.children('.title').children('a.more');
  rootDiv.children('.title').children('span').removeClass('this');
  if('' == href) {
    moreLink.hide();
  } else {
    moreLink.show();
    moreLink.attr('href', href);
  }
  rootDiv.children('.block').hide();
  activeAnchor.addClass('this');
  activeTab.show();
}
