Try the power supply. I was having a similar problem recently, where it'd just turn off and coudln't turn it back on without flipping the switch in the back. Could be power cord, power supply, motherboard, or potentially anything else in there. But try the power supply first. It's pretty much the only real pain in the ass (besides the motherboard) to replace. And it's fairly cheap, comparitively speaking.
Graphic Design / Photography / Web Design