Freelancers & intellectual property

If you paid a freelancer to do a website for you, design a logo, code a programme or write copy who owns the intellectual property rights in that work? What if your employee does all the above?

Your intellectual property is your business’ greatest asset!