$(function() {
	
	// Hide the "other" field unless other is selected in the drop-down
	var dropDownMenu = $("select#edit-submitted-amount");
	var otherField = $("#webform-component-amount_other");
	otherField.hide();
	
	checkSelected();
	
	dropDownMenu.change(function() {
		checkSelected();
	});
	
	function checkSelected()
	{
		if( dropDownMenu.val() == 'other' )
			otherField.show();
		else
			otherField.hide();
	}
	
});