Hello, and welcome to JustAnswer.com!My name is XXXXX XXXXX I'm here to help.
Your Mac came with 2 grey discs, one labeled Application Install. Insert that disc into your Mac, then open the Install Bundled Software option. That will reinstall iPhoto, and get you back up and running. Make sure that before you open iPhoto, you run Software Update from the Apple menu in the upper left corner, and install any available updates for iPhoto.
thank you ... it worked..