A nice recommendation from LifeHacker comes in the form of Net Profiles:

Freeware application Net Profiles lets you automate tasks—like mapping network drives or switching the default printer—based on the network your computer is currently connected to.