function changeCurrency() {
	var currency = $(this).val();
	$('.dollars').hide();
	$('.euros').hide();
	$('.pounds').hide();
	$('.' + currency).show();
	
	$('input:radio').attr('checked', false);
	switch(currency) {
	case 'dollars':	$('[id^="dollars"]').attr('checked', 'checked'); break;
	case 'euros':	$('[id^="euros"]').attr('checked', 'checked'); break;
	case 'pounds':	$('[id^="pounds"]').attr('checked', 'checked'); break;
	}
}
$(document).ready(function() {
	$('input:radio').click( changeCurrency );
});
