On Mercer's Theorem