document.observe("dom:loaded", function() {

	$$('a.referral_showdetails').each(function(link){
		link.observe('click',function(click){
			Event.stop(click);
			detailsDiv = $(link).up().next('div.referral_details');
			Effect.toggle(detailsDiv,'blind');
			link.toggleClassName('shown');
		});
	});
	
});
