$(document).ready(function(){
	$('div#facs').facts();
});

$.fn.facts = function() {
	var speed = 1600;
	$(this).find('div.factsDetail').hide();
	$(this).find('a.active').each(function(){
		$('div#fucts' + $(this).attr('id')).fadeIn(speed, 'linear');
	});
	$(this).find('a').click(function() {
		$('div.factsDetail').hide();
		$('a').removeClass('active');
		$('div#fucts' + $(this).attr('id')).fadeIn(speed, 'linear');
		$(this).addClass('active');
		return false;
	});
};
