Is there a codec that I can download to enable me to play my AVI files on a Mac 10.6 + operating system?

Download and install the freeware 3ivx™ D4 CODEC per the installation instructions in the associated ReadMe file. This CODEC adds support for a variety of DivX and other formats which often carry the .avi extension.