function topMenuSetStyle(obj)
{
	if(obj.className=='')
	{
		obj.setAttribute('class', 'current');
		obj.setAttribute('className', 'current');
	}
	else
	{
		obj.setAttribute('class', '');
		obj.setAttribute('className', '');
	}
}

function switchTab(tab, num)
{
	$('span.active').prev().addClass('underline');

	$('span.active').removeClass('active');
	$(tab).addClass('active');
	
	$(tab).prev().removeClass('underline');

	$('#tab_container div').css('display', 'none');
	$('#tab_' + num).css('display', 'block');
	$('#tab_' + num + ' div').css('display', 'block');
}