// JavaScript Document
$(document).ready( function()
{
	$('#types a').click( function()
	{
		showType($(this).text(), $('#topCenterContentBox .blockTextContainer'), $('#types'));
	});
});

function showType(id, typesObjects, linksObjects)
{
	typesObjects.find('.activeType').fadeOut('slow', function()				
	{
		linksObjects.find('.activeLink').removeClass('activeLink');
		typesObjects.find('.activeType').removeClass('activeType');
		$('#type'+id).addClass('activeLink');
		typesObjects.find('#type'+id+'Text').fadeIn('slow', function()
		{
			typesObjects.find('#type'+id+'Text').addClass('activeType');
		});
	});
	
	
}
