use a general fade function that's callable, and adjust fadeIn and fadeOut to DRY-ly use fade().