Andrew Palmer danced for 24 hours to raise money for two charities