TabControl = function(control_id, options) {
    var id = "#" + control_id;
    $$(id+' div.vertical-tabs a').each(function(a) {
	  var page = a.getAttribute('href').match(/[-_\w]+$/i)[0];

      if (page != options['current']) { $(page).hide() } 
      else { $(a.parentNode).addClassName('vt-active') }

      Event.observe(a, 'click', function(e) {
        $$(id+' div.vertical-tabs span.vt-active').each(function(e) { e.removeClassName('vt-active'); })
        $$(id+' .tab_page[id!='+page+']').each(function(e) { e.hide() });
        $(a.parentNode).addClassName('vt-active');
        $(page).show();
        Event.stop(e);
      });
    });
  }