Won't wake up and beeps when trying to
After my computer has been asleep for a while, and I try to wake it up, it will not wake up. Instead, the screen remains black and a loud beeping occurs. I let the beeping go on, thinking it will end, but it doesn't. The only way I can get my computer to work is to turn the power off on the power strip I have my computer plugged into, then turn it back on and turn on my computer. It seems to be fine after that. Can anyone tell me what the beeping means and how to fix this? Thank You!
iMac (24-inch Mid 2007), OS X Mountain Lion (10.8.4)