I don't recommend installing Yosemite or El Capitan on that computer as it will not have graphics acceleration (in other words it'll be unusable). You can either install 10.7 Lion (not difficult, just get the installer/DMG), or 10.8, which requires you to use MacPostFactor in order to hack the installation process (I only recommend doing it if you're advanced in this sort of thing).