You seem to have lost the file associations, I mean, which program opens which kind of files.
I'm not sure, you need to give us more info about your computer, operational system, etc.
Did you run a full scanning with avast? Do you use other security programs (antispyware, antitrojan, etc.)?