How to Manage Creative Yet Difficult Employees

Sometimes your most creative employees can get pretty moody, other times their behaviour is simply erratic, and every once in awhile you come across their sheer arrogance. The only problem is that these employees are so talented, you can't just let them go. How can you figure out how to manage these creative, yet often-difficult employees?