var selected_tab = 0;

function tabMouseMove(id) {
	if ($('#tab-item-' + id).attr('class') != 'tabs-selected') {
		$('#tab-item-' + id).attr('class', '');
	}
}

function tabMouseOver(id) {
	if ($('#tab-item-' + id).attr('class') != 'tabs-selected') {
		$('#tab-item-' + id).attr('class', 'tabs-hovered');
	}
}

function tabMouseClick(id) {
	if ($('#tab-item-' + id).attr('class') != 'tabs-selected') {
		if (id == 0) {
			$('#CenterCol').addClass('CenterColWelcome');
			$('#ReleaseMillionairs').show();
		} else {
			$('#ReleaseMillionairs').hide();
			$('#CenterCol'). removeClass('CenterColWelcome');
		}
		$('#tab-item-' + selected_tab).attr('class', '');
		$('#tab-item-' + id).attr('class', 'tabs-selected');

		$('#CoachingBlock_' + selected_tab).hide();
		$('#CoachingBlock_' + id).show();
		
		$('#CoachingBottomBlock_' + selected_tab).hide();
		$('#CoachingBottomBlock_' + id).show();
		
		selected_tab = id;
	}
}