Here's a good question: Why would a slot-loading Bondi-Blue iMac running OS10.2.8 wake itself up from sleep and restart itself every midnight? I can't find any setting in this OS that would do such a thing.
-Paul
You are not alone:
http://discussions.apple.com/thread.jspa?messageID=7506237