Usually when it's something like that I'd first check the battery, then the ac adapter, then it gets expensive and annoying. After that it's probably the power supply or the motherboard, at least in my experience, and since you're out of warranty and the model is really outdated, if it's not the ac adapter or the battery, it might be time to look at something new...
Good luck!