function Switch(activeTab)
{
  // deselect
  $('H5.selected').find('TR').children(':first').find('IMG').attr('src', 'images/menu_0a.gif');
  $('H5.selected').find('TR').children(':last').css('background', 'url(images/menu_0b.gif) right no-repeat');
  $('H5.selected').removeClass('selected');

  // select
  $(activeTab).addClass('selected');
  $(activeTab).find('TR').children(':first').find('IMG').attr('src', 'images/menu_1a.gif');
  $(activeTab).find('TR').children(':last').css('background', 'url(images/menu_1b.gif) right no-repeat');

  var content = $(activeTab).next('DIV').html();
  $('#content').html(content);

  if ($("#tabs H5:eq(0)").html() != $(activeTab).html())
  {
    $("#content TR:nth-child(odd)").css("background", "#FFFFFF");
    $("#content TR:nth-child(even)").css("background", "#F0F0F0");
  }

  return false;
}

function TabsInit(PageNo)
{
  if (arguments.length == 0)
   	PageNo = 0;

  $('#tabs H5').eq(PageNo).trigger('click');

  $('#tabs H5').bind('mouseenter', function(){$(this).not('.selected').find('B').wrapInner('<FONT color=red></FONT>');});
  $('#tabs H5').bind('mouseleave click', function(){txt=$('B FONT',this).html(); $('B',this).html(txt);});
}

$(document).ready(function() {TabsInit(0)});
