You're not being judged at office parties in most cases but you will be scrutinized if you drink too much alcohol, make off-color remarks, dress inappropriately (casual-Friday attire is safe) or behave in a manner that wouldn't fit in your workplace.
WSJ: 'Don't Cleat the Boss' and Other Tips to Manage the Summer Office Picnic