function closeTab(button, tab)
{
	$('#' + button).css('font-weight', 'normal'); 	
	$('#' + tab).slideUp('fast');
}

function openTab(button, tab)
{
	closeAllTabs(); 
	$('#' + button).css('font-weight', 'bold'); 	
	$('#' + tab).slideDown('slow');
}

function closeAllTabs()
{
	closeTab('btnShowIntro', 'tabIntro'); 
	closeTab('btnShowCustomization', 'tabCustomization'); 
	closeTab('btnShowExtreme', 'tabExtreme'); 
	closeTab('btnShowScenarious', 'tabScenarios'); 
}

$(document).ready(
	function()
	{
		$('.linkScreenshot').colorbox({transition:"fade"});
		$('#btnShowIntro').click(function() {
			openTab('btnShowIntro', 'tabIntro');
			return false;
		});
		
		$('#btnShowCustomization').click(function() {
			openTab('btnShowCustomization', 'tabCustomization'); 
			return false;
		});
		$('#btnShowExtreme').click(function() {
			openTab('btnShowExtreme', 'tabExtreme');
			return false;
		});
		
		$('#btnShowScenarios').click(function() {
			openTab('btnShowScenarios', 'tabScenarios'); 
			return false;
		});
		
		openTab('btnShowIntro', 'tabIntro');
	}
);
